.psycheopedia-library {
    padding-bottom: 3rem;
}

.psycheopedia-library:has(.psycheopedia-library__intro) {
    padding-top: 0;
}

.psycheopedia-library__intro {
    --psy-bg: #f2f6f6;
    width: 100%;
    margin: 0 0 2rem;
    padding: 56px 0 2rem;
    text-align: center;
    background:
        radial-gradient(ellipse 48% 130% at 6% 22%, rgba(255, 255, 255, 0.95), transparent 68%),
        radial-gradient(ellipse 42% 120% at 94% 14%, rgba(12, 138, 105, 0.24), transparent 66%),
        radial-gradient(ellipse 55% 100% at 50% 105%, rgba(10, 83, 190, 0.12), transparent 64%),
        linear-gradient(180deg, #f4fafa 0%, #eef4f4 55%, var(--psy-bg) 100%);
}

@media (max-width: 1199.98px) {
    .psycheopedia-library__intro {
        padding-top: 36px;
    }
}

.psycheopedia-library__intro .section-header-fourteen {
    margin-bottom: 0.75rem;
}

.psycheopedia-library__intro .section-header-fourteen h2 {
    color: #0a53be;
}

.psycheopedia-library__intro .psycheopedia-library__lead {
    margin-bottom: 0;
}

.psycheopedia-topic__lead {
    font-size: 1.125rem;
    line-height: 1.55;
    color: #1f2937;
    margin: 0 auto 1.5rem;
    max-width: 48rem;
    text-align: center;
}

.psycheopedia-library__lead {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: #6c757d;
    font-size: 1.05rem;
    line-height: 1.6;
}

.psycheopedia-library + .selection-form-cta {
    margin-top: 0;
}

.psycheopedia-cta--after-featured {
    margin-bottom: 2rem;
}

.psycheopedia-detail__content .selection-form-cta--inline {
    border-radius: 12px;
    margin: 2rem 0;
    padding: 1.25rem;
}

.psycheopedia-related-articles {
    margin-top: 2.25rem;
}

.psycheopedia-related-articles__title {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
}

.psycheopedia-related-articles__rail {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    padding-inline: 0;
    box-sizing: border-box;
}

.psycheopedia-related-articles__rail .psycheopedia-featured-rail {
    display: block;
    gap: 0;
}

.psycheopedia-related-articles__rail .psycheopedia-featured-rail__viewport {
    position: relative;
    border: none;
    overflow: hidden;
    background: transparent;
}

.psycheopedia-related-articles__rail .psycheopedia-featured-rail:not(.is-looping) .psycheopedia-featured-rail__track {
    justify-content: flex-start;
}

.psycheopedia-related-article-tile {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: min(200px, 72%);
    overflow: hidden;
    scroll-snap-align: start;
    cursor: pointer;
    border: 1px solid rgba(156, 163, 175, 0.45);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.psycheopedia-related-article-tile__media {
    flex: none;
    width: 100%;
    height: 110px;
    overflow: hidden;
    background: #f1f5f9;
}

.psycheopedia-related-article-tile__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.psycheopedia-related-article-tile__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0.65rem 0.75rem 0.75rem;
    background: #fff;
}

.psycheopedia-related-article-tile__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    color: #0f172a;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.psycheopedia-related-article-tile__date {
    margin-top: auto;
    padding-top: 0.35rem;
    font-size: 0.7rem;
    line-height: 1.25;
    color: #6c757d;
}

.psycheopedia-featured-rail-outer {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 2.25rem;
    padding-inline: clamp(0.75rem, 2.5vw, 1.5rem);
    box-sizing: border-box;
}

.psycheopedia-featured-rail-outer .psycheopedia-featured-rail {
    display: block;
    width: 100%;
    max-width: calc(5 * 230px + 4 * 1rem + 0.2 * 230px);
    margin-inline: auto;
    gap: 0;
}

.psycheopedia-featured-rail {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    max-width: none;
    margin: 0;
}

.psycheopedia-featured-rail__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6c757d;
    line-height: 0;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.psycheopedia-featured-rail__btn:hover:not(:disabled) {
    color: #374151;
    background: rgba(15, 23, 42, 0.06);
}

.psycheopedia-featured-rail__btn:focus-visible {
    outline: 2px solid rgba(14, 130, 253, 0.45);
    outline-offset: 2px;
}

.psycheopedia-featured-rail__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.psycheopedia-featured-rail__btn .feather-chevron-left,
.psycheopedia-featured-rail__btn .feather-chevron-right {
    display: block;
    font-size: 1.15rem;
    line-height: 1;
}

.psycheopedia-featured-rail__viewport {
    flex: 1;
    min-width: 0;
    overflow-x: clip;
    overflow-y: visible;
    border: 1px solid rgba(156, 163, 175, 0.35);
    border-radius: 12px;
    background: transparent;
}

.psycheopedia-featured-rail-outer .psycheopedia-featured-rail__viewport {
    position: relative;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.psycheopedia-featured-rail__fade {
    display: none;
}

.psycheopedia-featured-rail-outer .psycheopedia-featured-rail__fade {
    position: absolute;
    top: 0.85rem;
    bottom: 1rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    pointer-events: auto;
    cursor: pointer;
    background: transparent;
}

/* Related: center arrows on full tile height (media + body) */
.psycheopedia-related-articles__rail .psycheopedia-featured-rail__fade {
    position: absolute;
    top: 0.85rem;
    bottom: 1rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    pointer-events: auto;
    cursor: pointer;
    background: transparent;
}

.psycheopedia-featured-rail-outer .psycheopedia-featured-rail__fade--prev {
    left: 0.35rem;
    border-radius: 0;
}

.psycheopedia-featured-rail-outer .psycheopedia-featured-rail__fade--next {
    right: 0.35rem;
    border-radius: 0;
}

.psycheopedia-related-articles__rail .psycheopedia-featured-rail__fade--prev {
    left: 0.35rem;
    border-radius: 0;
}

.psycheopedia-related-articles__rail .psycheopedia-featured-rail__fade--next {
    right: 0.35rem;
    border-radius: 0;
}

.psycheopedia-featured-rail-outer .psycheopedia-featured-rail__fade .psycheopedia-featured-rail__btn,
.psycheopedia-related-articles__rail .psycheopedia-featured-rail__fade .psycheopedia-featured-rail__btn {
    pointer-events: none;
    width: 2.25rem;
    height: 2.25rem;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.psycheopedia-featured-rail-outer .psycheopedia-featured-rail__fade:hover .psycheopedia-featured-rail__btn,
.psycheopedia-related-articles__rail .psycheopedia-featured-rail__fade:hover .psycheopedia-featured-rail__btn {
    background: #f8fafc;
    color: #111827;
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.24);
}

.psycheopedia-featured-rail-outer .psycheopedia-featured-rail__fade.is-disabled,
.psycheopedia-related-articles__rail .psycheopedia-featured-rail__fade.is-disabled,
.psycheopedia-featured-rail-outer .psycheopedia-featured-rail:not(.is-looping) .psycheopedia-featured-rail__fade,
.psycheopedia-related-articles__rail .psycheopedia-featured-rail:not(.is-looping) .psycheopedia-featured-rail__fade {
    display: none;
}

.psycheopedia-featured-rail__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding: 0.85rem 0.65rem 1rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.psycheopedia-featured-rail-outer .psycheopedia-featured-rail__track {
    padding-inline: 0;
}

.psycheopedia-related-articles__rail .psycheopedia-featured-rail__track {
    padding: 0.85rem 0 1rem;
}

.psycheopedia-featured-rail:not(.is-looping) .psycheopedia-featured-rail__track {
    justify-content: center;
}

.psycheopedia-featured-rail__track::-webkit-scrollbar {
    display: none;
}

.psycheopedia-tile--featured {
    position: relative;
    flex: 0 0 auto;
    flex-shrink: 0;
    box-sizing: border-box;
    width: min(230px, 78vw);
    height: 310px;
    min-width: min(230px, 78vw);
    max-width: min(230px, 78vw);
    min-height: 310px;
    max-height: 310px;
    overflow: hidden;
    scroll-snap-align: start;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12);
    background: transparent;
    text-decoration: none;
    color: inherit;
    display: block;
}

@media (min-width: 576px) {
    .psycheopedia-featured-rail-outer .psycheopedia-tile--featured {
        width: 230px;
        min-width: 230px;
        max-width: 230px;
        height: 310px;
        min-height: 310px;
        max-height: 310px;
    }
}

.psycheopedia-tile--featured .psycheopedia-tile__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.psycheopedia-tile--featured .psycheopedia-tile__overlay {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.72) 100%);
    pointer-events: none;
    z-index: 1;
}

.psycheopedia-tile--featured .psycheopedia-tile__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1rem 1.1rem 1.15rem;
    margin: 0;
    text-align: right;
}

.psycheopedia-tile--featured .psycheopedia-tile__title {
    margin: 0;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
    text-align: right;
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.85);
}

.psycheopedia-featured-rail__track .psycheopedia-tile--featured:hover {
    transform: scale(1.04);
    opacity: 1;
    z-index: 2;
    box-shadow: 0 12px 40px rgba(14, 130, 253, 0.22);
    outline: 2px solid rgba(14, 130, 253, 0.35);
    outline-offset: 0;
    overflow: visible;
}

.psycheopedia-alphabet {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.psycheopedia-alphabet__letters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}

.psycheopedia-alphabet__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
        box-shadow 0.2s ease, transform 0.2s ease;
}

.psycheopedia-alphabet__btn:hover:not(:disabled):not(.is-active) {
    border-color: rgba(14, 130, 253, 0.45);
    color: #0e82fd;
    box-shadow: 0 0 0 3px rgba(14, 130, 253, 0.1);
}

.psycheopedia-alphabet__btn.is-active:hover:not(:disabled),
.psycheopedia-alphabet__btn.is-active:active:not(:disabled) {
    transform: scale(1.06);
}

.psycheopedia-alphabet__btn:focus-visible {
    outline: 2px solid rgba(14, 130, 253, 0.55);
    outline-offset: 2px;
}

.psycheopedia-alphabet__btn.is-active {
    background: #0e82fd;
    border-color: #0e82fd;
    color: #fff;
    box-shadow: 0 4px 14px rgba(14, 130, 253, 0.35);
}

.psycheopedia-alphabet__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.psycheopedia-alphabet__empty {
    margin: 0.75rem 0 0;
    text-align: center;
    color: #6c757d;
    font-size: 0.95rem;
}

.psycheopedia-search {
    max-width: 520px;
    margin: 0 auto 2rem;
}

.psycheopedia-search__field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.psycheopedia-search__field:focus-within {
    border-color: rgba(14, 130, 253, 0.55);
    box-shadow: 0 0 0 3px rgba(14, 130, 253, 0.12);
}

.psycheopedia-search__field .feather-search {
    flex-shrink: 0;
    font-size: 1.15rem;
    color: #6c757d;
}

.psycheopedia-search__field .form-control {
    border: 0;
    box-shadow: none;
    padding: 0.35rem 0;
    font-size: 1rem;
    background: transparent;
}

.psycheopedia-search__field .form-control:focus {
    box-shadow: none;
}

.psycheopedia-search__empty {
    margin: 0.75rem 0 0;
    text-align: center;
    color: #6c757d;
    font-size: 0.95rem;
}

.psycheopedia-letter-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0.25rem 0 1rem;
}

.psycheopedia-letter-section[hidden] {
    display: none;
}

.psycheopedia-letter-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.psycheopedia-letter-divider__label {
    flex-shrink: 0;
    min-width: 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.04em;
    color: #0a53be;
}

.psycheopedia-letter-divider__line {
    flex: 1;
    height: 1px;
    background: #0a53be;
}

.psycheopedia-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
    padding: 0;
}

.psycheopedia-tile {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    margin: 0;
    transition: transform 0.35s ease, opacity 0.35s ease, max-height 0.35s ease,
        margin 0.35s ease, padding 0.35s ease, visibility 0.35s ease,
        box-shadow 0.35s ease, outline-color 0.35s ease, border-width 0.35s ease,
        background 0.35s ease;
    transform: scale(1);
    opacity: 1;
    position: relative;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.psycheopedia-tile:focus-visible {
    outline: 2px solid rgba(15, 23, 42, 0.35);
    outline-offset: 2px;
}

article.psycheopedia-tile {
    cursor: default;
}

.psycheopedia-tile.is-leaving,
.psycheopedia-tile.is-entering {
    opacity: 0;
    transform: scale(0.88);
    max-height: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
}

.psycheopedia-tile.is-filtered-out {
    display: none;
}

.psycheopedia-tile.is-flipping {
    z-index: 1;
    will-change: transform;
}

.psycheopedia-tile__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.15rem 1.2rem 1.25rem;
    gap: 0.55rem;
}

.psycheopedia-tile__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    color: #1f2937;
    transition: color 0.35s ease;
}

.psycheopedia-tile__excerpt {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.55;
    color: #6c757d;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    transition: color 0.35s ease;
}

/* Hover / active: siblings shrink when any visible tile is hovered (:has) */
.psycheopedia-tiles:has(.psycheopedia-tile:hover:not(.is-filtered-out):not(.is-leaving):not(.is-entering):not(.is-flipping)) .psycheopedia-tile:not(:hover):not(.is-filtered-out):not(.is-leaving):not(.is-entering):not(.is-flipping),
.psycheopedia-tiles:has(.psycheopedia-tile:active:not(.is-filtered-out):not(.is-leaving):not(.is-entering):not(.is-flipping)) .psycheopedia-tile:not(:active):not(.is-filtered-out):not(.is-leaving):not(.is-entering):not(.is-flipping),
.psycheopedia-tiles.is-hovering:has(.psycheopedia-tile.is-hovered) .psycheopedia-tile:not(.is-hovered):not(.is-filtered-out):not(.is-leaving):not(.is-entering):not(.is-flipping) {
    transform: scale(0.92);
    opacity: 0.72;
}

.psycheopedia-tiles.is-hovering:has(.psycheopedia-tile.is-hovered) .psycheopedia-tile:not(.is-hovered):not(.is-filtered-out):not(.is-leaving):not(.is-entering):not(.is-flipping) {
    pointer-events: none;
}

.psycheopedia-tile:hover:not(.is-filtered-out):not(.is-leaving):not(.is-entering):not(.is-flipping),
.psycheopedia-tile:active:not(.is-filtered-out):not(.is-leaving):not(.is-entering):not(.is-flipping),
.psycheopedia-tile.is-hovered:not(.is-flipping) {
    transform: scale(1.06);
    opacity: 1;
    z-index: 2;
    box-shadow: 0 12px 40px rgba(14, 130, 253, 0.28);
    outline: 2px solid rgba(14, 130, 253, 0.45);
    outline-offset: 0;
}

.psycheopedia-tiles .psycheopedia-tile:hover:not(.psycheopedia-tile--featured):not(.is-filtered-out):not(.is-leaving):not(.is-entering):not(.is-flipping),
.psycheopedia-tiles .psycheopedia-tile:active:not(.psycheopedia-tile--featured):not(.is-filtered-out):not(.is-leaving):not(.is-entering):not(.is-flipping),
.psycheopedia-tiles .psycheopedia-tile.is-hovered:not(.psycheopedia-tile--featured):not(.is-flipping) {
    background: #e6f7ee;
}

.psycheopedia-tile.is-hovered:not(.is-flipping)::after {
    content: "";
    position: absolute;
    inset: -10px;
}

@media (prefers-reduced-motion: reduce) {
    .psycheopedia-tile,
    .psycheopedia-tile__title {
        transition-duration: 0.01s;
    }

    .psycheopedia-tile.is-leaving,
    .psycheopedia-tile.is-entering {
        transform: none;
    }

    .psycheopedia-alphabet__btn.is-active:hover:not(:disabled),
    .psycheopedia-alphabet__btn.is-active:active:not(:disabled) {
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .psycheopedia-featured-rail-outer {
        margin-bottom: 1.75rem;
        padding-inline: 0.5rem;
    }

    .psycheopedia-featured-rail {
        gap: 0.35rem;
    }

    .psycheopedia-featured-rail__btn {
        width: 1.75rem;
        height: 1.75rem;
    }

    .psycheopedia-featured-rail-outer .psycheopedia-featured-rail__fade {
        width: 2.25rem;
        top: 0.85rem;
        bottom: 1rem;
    }

    .psycheopedia-related-articles__rail .psycheopedia-featured-rail__fade {
        width: 2.25rem;
        top: 0.85rem;
        bottom: 1rem;
    }

    .psycheopedia-featured-rail-outer .psycheopedia-featured-rail__fade .psycheopedia-featured-rail__btn,
    .psycheopedia-related-articles__rail .psycheopedia-featured-rail__fade .psycheopedia-featured-rail__btn {
        width: 2rem;
        height: 2rem;
    }

    .psycheopedia-featured-rail-outer .psycheopedia-tile--featured,
    .psycheopedia-tile--featured {
        width: min(210px, 72vw);
        min-width: min(210px, 72vw);
        max-width: min(210px, 72vw);
        height: 285px;
        min-height: 285px;
        max-height: 285px;
    }

    .psycheopedia-letter-sections {
        gap: 1.5rem;
    }

    .psycheopedia-letter-divider {
        gap: 0.6rem;
        margin-bottom: 0.75rem;
    }

    .psycheopedia-letter-divider__label {
        font-size: 0.75rem;
    }

    .psycheopedia-tiles {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .psycheopedia-tile__body {
        padding: 1rem 1rem 1.1rem;
    }

    .psycheopedia-tile__title {
        font-size: 0.98rem;
    }

    .psycheopedia-tile__excerpt {
        font-size: 0.84rem;
    }
}

.psycheopedia-detail {
    align-items: stretch;
}

.psycheopedia-paragraph-nav {
    align-self: stretch;
    margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
    .psycheopedia-paragraph-nav {
        margin-bottom: 0;
    }

    .psycheopedia-paragraph-nav__inner {
        position: sticky;
        top: 100px;
        z-index: 100;
    }
}

.psycheopedia-paragraph-nav__inner {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    padding: 1.25rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.psycheopedia-paragraph-nav__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
    flex: 0 1 auto;
    min-width: 0;
}

.psycheopedia-paragraph-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.psycheopedia-paragraph-nav__toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.25rem;
    border: 0;
    background: transparent;
    color: #6c757d;
    font-size: 1.25rem;
    line-height: 1;
}

.psycheopedia-paragraph-nav__toggle[hidden] {
    display: none;
}

.psycheopedia-paragraph-nav__active-label {
    display: none;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0e82fd;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.psycheopedia-paragraph-nav__search {
    max-width: none;
    margin: 0 0 1rem;
}

.psycheopedia-disease-search__results {
    list-style: none;
    margin: 0.65rem 0 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.psycheopedia-disease-search__results[hidden] {
    display: none;
}

.psycheopedia-disease-search__results li {
    margin: 0;
}

.psycheopedia-disease-search__link {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #374151;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.psycheopedia-disease-search__link:hover {
    background: rgba(14, 130, 253, 0.06);
    color: #0e82fd;
    border-left-color: #0e82fd;
}

.psycheopedia-paragraph-nav__list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.psycheopedia-paragraph-nav__link {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #374151;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.psycheopedia-paragraph-nav__link:hover {
    background: rgba(14, 130, 253, 0.06);
    color: #0e82fd;
}

.psycheopedia-paragraph-nav__link.is-active {
    background: rgba(14, 130, 253, 0.1);
    color: #0e82fd;
    border-left-color: #0e82fd;
    font-weight: 600;
}

.psycheopedia-paragraph-nav__link.is-filtered-out {
    display: none;
}

.psycheopedia-paragraph-nav__empty {
    margin-top: 0.5rem;
    text-align: left;
}

.psycheopedia-detail__content .support-guide-description[id] {
    scroll-margin-top: var(--nav-scroll-margin, 100px);
}

@property --nav-expand-progress {
    syntax: "<number>";
    inherits: true;
    initial-value: 1;
}

@media (max-width: 991.98px) {
    .psycheopedia-paragraph-nav__inner {
        --nav-expand-progress: 1;
        position: static;
        max-height: none;
        overflow: visible;
        transition: none;
    }

    .psycheopedia-library--detail .psycheopedia-paragraph-nav__inner::before {
        display: none;
    }

    .psycheopedia-paragraph-nav__header {
        margin-bottom: 1rem;
        cursor: default;
    }

    .psycheopedia-paragraph-nav__slot {
        display: block;
        width: 100%;
    }

    .psycheopedia-paragraph-nav.is-nav-stuck {
        min-height: var(--nav-placeholder-h, 0);
    }

    .psycheopedia-paragraph-nav__inner.is-nav-stuck {
        --nav-collapsed-h: 3.25rem;
        position: fixed;
        top: var(--nav-sticky-top, 90px);
        left: 0;
        right: 0;
        width: 100%;
        z-index: 200;
        border-radius: 0;
        border-left: none;
        border-right: none;
        max-height: calc(
            var(--nav-collapsed-h) +
            (var(--nav-expanded-max-h, min(50vh, 420px)) - var(--nav-collapsed-h)) * var(--nav-expand-progress)
        );
        overflow-x: hidden;
        overflow-y: auto;
        padding-top: calc(0.75rem + 0.5rem * var(--nav-expand-progress));
        padding-bottom: calc(0.75rem + 0.5rem * var(--nav-expand-progress));
        transition: none;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .psycheopedia-paragraph-nav__inner.is-nav-stuck.is-nav-portaled {
        margin: 0;
    }

    .psycheopedia-paragraph-nav__inner.is-nav-stuck.is-collapsing,
    .psycheopedia-paragraph-nav__inner.is-nav-stuck.is-expanding {
        transition:
            --nav-expand-progress 0.4s cubic-bezier(0.32, 0.72, 0, 1),
            max-height 0.4s cubic-bezier(0.32, 0.72, 0, 1),
            padding 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .psycheopedia-paragraph-nav__inner.is-nav-stuck.is-expanding {
        transition-duration: 0.42s;
    }

    .psycheopedia-paragraph-nav__inner.is-nav-stuck.is-collapsing {
        transition-duration: 0.36s;
    }

    .psycheopedia-paragraph-nav__inner.is-nav-stuck.is-expanding-by-tap {
        transition:
            --nav-expand-progress 0.7s cubic-bezier(0.32, 0.72, 0, 1),
            max-height 0.7s cubic-bezier(0.32, 0.72, 0, 1),
            padding 0.7s ease-out;
    }

    .psycheopedia-paragraph-nav__inner.is-nav-stuck.is-collapsing .psycheopedia-paragraph-nav__header,
    .psycheopedia-paragraph-nav__inner.is-nav-stuck.is-expanding .psycheopedia-paragraph-nav__header,
    .psycheopedia-paragraph-nav__inner.is-nav-stuck.is-collapsing .psycheopedia-paragraph-nav__active-label,
    .psycheopedia-paragraph-nav__inner.is-nav-stuck.is-expanding .psycheopedia-paragraph-nav__active-label,
    .psycheopedia-paragraph-nav__inner.is-nav-stuck.is-collapsing .psycheopedia-paragraph-nav__search,
    .psycheopedia-paragraph-nav__inner.is-nav-stuck.is-expanding .psycheopedia-paragraph-nav__search,
    .psycheopedia-paragraph-nav__inner.is-nav-stuck.is-collapsing .psycheopedia-paragraph-nav__list,
    .psycheopedia-paragraph-nav__inner.is-nav-stuck.is-expanding .psycheopedia-paragraph-nav__list {
        transition:
            opacity 0.22s ease-out,
            max-height 0.4s cubic-bezier(0.32, 0.72, 0, 1),
            margin 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .psycheopedia-paragraph-nav__inner.is-nav-stuck.is-collapsed {
        overflow: hidden;
        min-height: var(--nav-collapsed-h);
    }

    .psycheopedia-paragraph-nav__inner.is-nav-stuck .psycheopedia-paragraph-nav__header {
        cursor: pointer;
        margin-bottom: calc(1rem * var(--nav-expand-progress));
        flex-wrap: nowrap;
        min-width: 0;
        overflow: hidden;
        gap: 0.5rem;
    }

    .psycheopedia-paragraph-nav__inner.is-nav-stuck .psycheopedia-paragraph-nav__title {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .psycheopedia-paragraph-nav__inner.is-nav-stuck:not(.is-expanded) .psycheopedia-paragraph-nav__toggle {
        pointer-events: none;
        cursor: default;
    }

    .psycheopedia-paragraph-nav__inner.is-nav-stuck.is-expanded .psycheopedia-paragraph-nav__toggle {
        pointer-events: auto;
        cursor: pointer;
    }

    .psycheopedia-paragraph-nav__inner.is-nav-stuck .psycheopedia-paragraph-nav__active-label:not([hidden]) {
        display: block;
        flex: 1 1 0;
        min-width: 0;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        opacity: clamp(0, calc(1 - var(--nav-expand-progress) * 25), 1);
    }

    .psycheopedia-paragraph-nav__inner.is-nav-stuck.is-expanded .psycheopedia-paragraph-nav__active-label {
        flex: 0 0 0;
        max-width: 0;
        overflow: hidden;
        opacity: 0;
    }

    .psycheopedia-paragraph-nav__inner.is-nav-stuck .psycheopedia-paragraph-nav__search,
    .psycheopedia-paragraph-nav__inner.is-nav-stuck .psycheopedia-paragraph-nav__list {
        opacity: min(1, calc(var(--nav-expand-progress) * 3));
        max-height: calc(min(1, var(--nav-expand-progress) * 1.5) * 50vh);
        overflow: hidden;
        pointer-events: none;
    }

    .psycheopedia-paragraph-nav__inner.is-nav-stuck .psycheopedia-paragraph-nav__search {
        margin: 0 0 calc(var(--nav-expand-progress) * 1rem);
    }

    .psycheopedia-paragraph-nav__inner.is-nav-stuck.is-nav-interactive .psycheopedia-paragraph-nav__search,
    .psycheopedia-paragraph-nav__inner.is-nav-stuck.is-nav-interactive .psycheopedia-paragraph-nav__list {
        pointer-events: auto;
    }

    .psycheopedia-paragraph-nav__inner.is-nav-settling:not(.is-nav-stuck) {
        animation: psycheopedia-nav-settle 0.45s ease-out;
    }

    @keyframes psycheopedia-nav-settle {
        from {
            opacity: 0.88;
            transform: translateY(-4px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .psycheopedia-detail__content .support-guide-description[id] {
        scroll-margin-top: var(--nav-scroll-margin, calc(var(--nav-sticky-top, 90px) + 3.5rem));
    }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
    .psycheopedia-paragraph-nav__inner.is-nav-stuck.is-collapsing,
    .psycheopedia-paragraph-nav__inner.is-nav-stuck.is-expanding,
    .psycheopedia-paragraph-nav__inner.is-nav-stuck.is-expanding-by-tap,
    .psycheopedia-paragraph-nav__inner.is-nav-settling:not(.is-nav-stuck) {
        transition: none;
        animation: none;
    }
}

/* --- Detail page decorations --- */

.psycheopedia-library--detail {
    position: relative;
}

.psycheopedia-library--detail > .container {
    position: relative;
    z-index: 1;
}

.psycheopedia-detail__decor {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.psycheopedia-detail__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
}

.psycheopedia-detail__blob--one {
    width: min(420px, 55vw);
    height: min(420px, 55vw);
    top: -8%;
    right: -6%;
    background: radial-gradient(circle, rgba(140, 110, 180, 0.35) 0%, rgba(140, 110, 180, 0) 70%);
    animation: psycheopedia-detail-float 18s ease-in-out infinite;
}

.psycheopedia-detail__blob--two {
    width: min(360px, 48vw);
    height: min(360px, 48vw);
    bottom: 6%;
    left: -8%;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.28) 0%, rgba(66, 133, 244, 0) 70%);
    animation: psycheopedia-detail-float 22s ease-in-out infinite reverse;
}

@keyframes psycheopedia-detail-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, 18px, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .psycheopedia-detail__blob--one,
    .psycheopedia-detail__blob--two {
        animation: none;
    }
}

.psycheopedia-detail {
    position: relative;
    z-index: 1;
}

.psycheopedia-library--detail .psycheopedia-paragraph-nav__inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(90deg, #4285f4, #e6dcf4);
}

.psycheopedia-detail-heading {
    margin-bottom: 1.25rem;
}

.psycheopedia-detail-heading .service-inner-fourteen {
    margin-bottom: 0;
}

.psycheopedia-detail__lead {
    max-width: 48rem;
    margin: 0 0 1.75rem;
    padding-left: 1rem;
    border-left: 3px solid #4285f4;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: #6c757d;
}

.psycheopedia-library--detail .psycheopedia-paragraph-card {
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
}

.psycheopedia-library--detail .psycheopedia-paragraph-card.support-guide-description {
    margin-bottom: 1.25rem;
}

.psycheopedia-library--detail .psycheopedia-paragraph-card.support-guide-description:last-child {
    margin-bottom: 0;
}

.psycheopedia-library--detail .psycheopedia-paragraph__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.psycheopedia-paragraph__index {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border-radius: 8px;
    background: rgba(10, 83, 190, 0.1);
    color: #0a53be;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 767.98px) {
    .psycheopedia-detail__lead {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .psycheopedia-library--detail .psycheopedia-paragraph-card {
        padding: 1.15rem 1.25rem;
    }

    .psycheopedia-paragraph__index {
        min-width: 2rem;
        height: 2rem;
        font-size: 0.8125rem;
    }
}

/* --- Index feed carousels (blog + psycheotalk) --- */

.psycheopedia-feed-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.psycheopedia-feed-section .section-header-fourteen h3 {
    font-size: 1.35rem;
}

.psycheopedia-feed-section .owl-stage {
    display: flex;
    align-items: stretch;
}

.psycheopedia-feed-section .owl-item {
    display: flex;
}

.psycheopedia-feed-section.blog-section-fourteen .blog-inner-fourt-all,
.psycheopedia-feed-section.blog-section-fourteen .blog-inner-fourt-all.h-100 {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 332px;
    min-height: 332px;
    max-height: 332px;
    overflow: hidden;
}

.psycheopedia-feed-section.blog-section-fourteen .blog-inner-fourt-all .blog-inner-fourt-main {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    height: auto;
    padding: 14px 10px;
}

.psycheopedia-feed-section.blog-section-fourteen .blog-inner-fourt-all .blog-inner-fourt-main .blog-inner-right-fourt {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-height: 0;
}

.psycheopedia-feed-section.blog-section-fourteen .blog-inner-fourt-all .blog-inner-fourt-main .blog-inner-right-fourt .blog-inner-right-img {
    flex: 0 0 auto;
    height: 145px;
    margin: 0 0 8px;
    overflow: hidden;
    border-radius: 12px;
}

.psycheopedia-feed-section.blog-section-fourteen .blog-inner-fourt-all .blog-inner-fourt-main .blog-inner-right-fourt .blog-inner-right-img .blog-inner-right-inner,
.psycheopedia-feed-section.blog-section-fourteen .blog-inner-fourt-all .blog-inner-fourt-main .blog-inner-right-fourt .blog-inner-right-img img.blog-inner-right-inner {
    display: block;
    width: 100%;
    height: 145px;
    max-height: 145px;
    object-fit: cover;
    border-radius: 12px;
}

.psycheopedia-feed-section.blog-section-fourteen .blog-inner-fourt-all .blog-inner-fourt-main .blog-inner-right-fourt .blog-inner-top-content {
    top: 10px;
    left: 10px;
    padding: 3px 8px 3px 3px;
}

.psycheopedia-feed-section.blog-section-fourteen .blog-inner-fourt-all .blog-inner-fourt-main .blog-inner-right-fourt .blog-inner-top-content img {
    width: 28px;
    height: 28px;
}

.psycheopedia-feed-section.blog-section-fourteen .blog-inner-fourt-all .blog-inner-fourt-main .blog-inner-right-fourt .blog-inner-top-content span {
    font-size: 12px;
}

.psycheopedia-feed-section.blog-section-fourteen .blog-inner-fourt-all .blog-inner-fourt-main .blog-inner-right-fourt .blog-inner-right-fourt-care {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    flex: 0 0 auto;
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    min-height: calc(18px * 1.3 * 2);
    max-height: none;
    color: #1f2937;
}

.psycheopedia-feed-section.blog-section-fourteen .blog-inner-fourt-all .blog-inner-fourt-main .blog-inner-right-fourt .blog-articles-list {
    flex: 0 0 auto;
    margin: 0 0 4px;
    min-height: 1.25rem;
}

.psycheopedia-feed-section.blog-section-fourteen .blog-inner-fourt-all .blog-inner-fourt-main .blog-inner-right-fourt .blog-articles-list li {
    font-size: 12px;
    margin: 0 12px 0 0;
}

.psycheopedia-feed-section.blog-section-fourteen .blog-inner-fourt-all .blog-inner-fourt-main .blog-inner-right-fourt .blog-articles-list-two {
    display: flex;
    flex-wrap: wrap;
    flex: 0 0 auto;
    align-content: flex-start;
    gap: 4px;
    margin: 0 0 5px;
    min-height: 1.45rem;
    max-height: 1.45rem;
    overflow: hidden;
}

.psycheopedia-feed-section.blog-section-fourteen .blog-inner-fourt-all .blog-inner-fourt-main .blog-inner-right-fourt .blog-articles-list-two li {
    margin: 0;
}

.psycheopedia-feed-section .blog-tag {
    font-size: 0.68rem;
    padding: 0.1rem 0.4rem;
    line-height: 1.2;
}

.psycheopedia-feed-section.blog-section-fourteen .blog-inner-fourt-all .blog-inner-fourt-main .blog-inner-right-fourt .psycheopedia-feed-card__lead {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    flex: 0 0 auto;
    margin: 0;
    min-height: calc(14px * 1.4 * 2);
    max-height: calc(14px * 1.4 * 2);
    font-size: 14px;
    line-height: 1.4;
    color: #4b5563;
}

.psycheopedia-feed-section .blog-btn-sec {
    margin-top: 1rem;
}

/* --- Disease tiles marquee (detail page footer) --- */

.psycheopedia-marquee {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 2.25rem 0 2rem;
    background:
        linear-gradient(
            to top,
            rgba(9, 229, 171, 0.12) 0,
            rgba(9, 229, 171, 0.06) 140px,
            rgba(9, 229, 171, 0.015) 260px,
            rgba(9, 229, 171, 0) 320px
        ),
        #f2f6f6;
    border-top: none;
    overflow: hidden;
    box-sizing: border-box;
}

.psycheopedia-marquee__viewport {
    overflow: hidden;
}

.psycheopedia-marquee__viewport.is-manual-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.psycheopedia-marquee__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1rem;
    width: max-content;
    padding-inline: clamp(0.75rem, 2.5vw, 1.5rem);
    will-change: transform;
}

.psycheopedia-marquee__tile {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.psycheopedia-marquee__tile:hover {
    border-color: #d7c7f0;
    box-shadow: 0 6px 14px rgba(140, 110, 180, 0.14);
    transform: translateY(-1px);
}

.psycheopedia-marquee__tile.is-current {
    border-color: #e6dcf4;
    box-shadow: 0 4px 14px rgba(140, 110, 180, 0.16);
    background: linear-gradient(180deg, #fff 0%, #faf8fd 100%);
}

.psycheopedia-marquee__tile-title {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1f2937;
}

@media (max-width: 767.98px) {
    .psycheopedia-marquee {
        padding: 2rem 0 1.5rem;
        background:
            linear-gradient(
                to top,
                rgba(9, 229, 171, 0.1) 0,
                rgba(9, 229, 171, 0.04) 100px,
                rgba(9, 229, 171, 0) 200px
            ),
            #f2f6f6;
    }

    .psycheopedia-marquee__tile {
        padding: 0.75rem 1rem;
    }

    .psycheopedia-marquee__tile-title {
        font-size: 0.92rem;
    }
}

/* Author card */
.psycheopedia-author-rail,
.psycheopedia-author--mobile {
    min-width: 0;
}

.psycheopedia-author__inner {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    padding: 1.25rem;
    text-align: center;
}

.psycheopedia-author__heading {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
}

.psycheopedia-author__photo-wrap {
    width: 96px;
    height: 96px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
}

.psycheopedia-author__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.psycheopedia-author__name {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
}

.psycheopedia-author__description {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #6b7280;
}

.psycheopedia-author__link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #09e5ab;
    text-decoration: none;
}

.psycheopedia-author__link:hover,
.psycheopedia-author__link:focus {
    color: #0f766e;
    text-decoration: underline;
}

.psycheopedia-author--mobile,
.psycheopedia-author-rail--under-toc,
.psycheopedia-author-rail--side {
    display: none;
}

.psycheopedia-author-rail--under-toc {
    margin-top: 1rem;
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .psycheopedia-detail--has-author > .psycheopedia-paragraph-nav {
        position: sticky;
        top: 100px;
        z-index: 100;
        align-self: start;
    }

    .psycheopedia-detail--has-author .psycheopedia-paragraph-nav__inner {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .psycheopedia-detail--has-author .psycheopedia-author-rail--under-toc {
        display: block;
    }

    .psycheopedia-detail--has-author .psycheopedia-author-rail--side,
    .psycheopedia-detail--has-author .psycheopedia-author--mobile {
        display: none !important;
    }
}

@media (min-width: 1400px) {
    .psycheopedia-detail--has-author {
        display: grid;
        column-gap: 1.5rem;
        grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(200px, 240px);
        grid-template-areas: "toc content author";
    }

    .psycheopedia-detail--has-author > .psycheopedia-paragraph-nav,
    .psycheopedia-detail--has-author > .psycheopedia-detail__content,
    .psycheopedia-detail--has-author > .psycheopedia-author-rail--side {
        width: auto;
        max-width: none;
        flex: none;
        padding-left: 0;
        padding-right: 0;
    }

    .psycheopedia-detail--has-author > .psycheopedia-paragraph-nav {
        grid-area: toc;
        position: static;
    }

    .psycheopedia-detail--has-author > .psycheopedia-detail__content {
        grid-area: content;
    }

    .psycheopedia-detail--has-author > .psycheopedia-author-rail--side {
        grid-area: author;
        display: block;
        position: sticky;
        top: 100px;
        align-self: start;
        z-index: 90;
    }

    .psycheopedia-detail--has-author .psycheopedia-author-rail--under-toc,
    .psycheopedia-detail--has-author .psycheopedia-author--mobile {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .psycheopedia-author-rail--under-toc,
    .psycheopedia-author-rail--side {
        display: none !important;
    }

    .psycheopedia-author--mobile {
        display: block;
        margin: 0 0 1.5rem;
    }
}
