/* FAQ knowledge hub: extends the secondary practice system. */
body.secondary-v3.faq-hub {
    --faq-teal: #75b8aa;
    --faq-teal-soft: rgba(117, 184, 170, 0.16);
    --faq-brass-soft: rgba(223, 191, 107, 0.14);
    overflow-x: hidden;
}

.faq-hero {
    position: relative;
    min-height: 720px;
    padding: calc(var(--secondary-nav-height) + 104px) 0 96px;
    overflow: hidden;
    border-bottom: 1px solid var(--secondary-line);
    background: #0b0d0c;
}

.faq-hero::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: '';
    background: rgba(8, 10, 9, 0.72);
}

.faq-hero__scene {
    position: absolute;
    inset: var(--secondary-nav-height) 0 0 38%;
    margin: 0;
    opacity: 0.5;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.faq-hero__scene::after {
    position: absolute;
    inset: 0;
    content: '';
    background: rgba(9, 11, 10, 0.28);
}

.faq-hero__scene img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 56% center;
    filter: saturate(0.72) contrast(1.06);
}

.faq-hero__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(280px, 0.58fr);
    gap: clamp(56px, 8vw, 120px);
    align-items: end;
}

.faq-hero__copy {
    max-width: 760px;
}

.faq-hero__copy h1 {
    max-width: 12ch;
    margin-bottom: 30px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(3.4rem, 7vw, 6rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

html[lang='zh-CN'] .faq-hero__copy h1 {
    max-width: 11ch;
    font-family: 'Noto Sans SC', 'PingFang SC', sans-serif;
    font-size: clamp(3rem, 6vw, 5.35rem);
    font-weight: 700;
    line-height: 1.08;
}

.faq-hero__copy > p {
    max-width: 66ch;
    margin-bottom: 34px;
    color: #d1d5d0;
    font-size: clamp(1.04rem, 1.6vw, 1.2rem);
    line-height: 1.75;
}

.faq-hero__actions,
.faq-commercial__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.faq-decision-brief {
    position: relative;
    padding: 30px 0 8px 28px;
    border-left: 1px solid var(--secondary-line-strong);
}

.faq-decision-brief::before {
    position: absolute;
    top: 0;
    left: -1px;
    width: 1px;
    height: 86px;
    content: '';
    background: var(--faq-teal);
    box-shadow: 0 12px 30px rgba(117, 184, 170, 0.26);
}

.faq-decision-brief h2 {
    margin-bottom: 12px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.7rem;
    line-height: 1.2;
}

html[lang='zh-CN'] .faq-decision-brief h2 {
    font-family: 'Noto Sans SC', 'PingFang SC', sans-serif;
    font-weight: 700;
}

.faq-decision-brief p {
    margin-bottom: 24px;
    color: var(--secondary-muted);
    line-height: 1.7;
}

.faq-decision-brief ol {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: decision;
}

.faq-decision-brief li {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #e4e2db;
    font-size: 0.88rem;
    counter-increment: decision;
}

.faq-decision-brief li::before {
    min-width: 2ch;
    color: var(--secondary-brass-strong);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    content: counter(decision, decimal-leading-zero);
}

.faq-category-rail {
    position: sticky;
    top: var(--secondary-nav-height);
    z-index: 40;
    max-width: 100%;
    overflow-x: hidden;
    background: rgba(11, 13, 12, 0.96);
    border-bottom: 1px solid var(--secondary-line);
    backdrop-filter: blur(14px);
}

.faq-category-rail__inner {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 8px;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-brass) transparent;
}

.faq-category-rail a {
    display: inline-flex;
    min-height: 52px;
    padding: 0 18px;
    align-items: center;
    flex: 0 0 auto;
    color: #c8cbc6;
    border-bottom: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.faq-category-rail a:hover,
.faq-category-rail a:focus-visible {
    color: var(--secondary-brass-strong);
    border-bottom-color: var(--secondary-brass-strong);
}

.faq-category {
    scroll-margin-top: calc(var(--secondary-nav-height) + 62px);
}

.faq-category:nth-child(even) {
    background: var(--secondary-surface);
    border-block: 1px solid rgba(242, 239, 232, 0.07);
}

.faq-category__layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
    gap: clamp(48px, 8vw, 118px);
    align-items: start;
}

.faq-category__header {
    position: sticky;
    top: calc(var(--secondary-nav-height) + 96px);
    min-width: 0;
}

.faq-category__header h2,
.faq-decision h2,
.faq-commercial h2,
.faq-sources h2 {
    max-width: 15ch;
    margin-bottom: 18px;
    word-break: normal;
    hyphens: manual;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.2rem, 4.2vw, 4rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

html[lang='zh-CN'] .faq-category__header h2,
html[lang='zh-CN'] .faq-decision h2,
html[lang='zh-CN'] .faq-commercial h2,
html[lang='zh-CN'] .faq-sources h2 {
    font-family: 'Noto Sans SC', 'PingFang SC', sans-serif;
    font-weight: 700;
    line-height: 1.15;
}

.faq-category__header p,
.faq-decision__layout > div > p,
.faq-sources__layout > div > p {
    max-width: 42ch;
    color: var(--secondary-muted);
    line-height: 1.75;
}

.faq-category__items {
    border-top: 1px solid var(--secondary-line);
}

.faq-disclosure {
    border-bottom: 1px solid var(--secondary-line);
}

.faq-disclosure summary {
    position: relative;
    display: grid;
    min-height: 92px;
    padding: 28px 68px 28px 0;
    align-items: center;
    color: var(--secondary-ink);
    cursor: pointer;
    list-style: none;
}

.faq-disclosure summary::-webkit-details-marker {
    display: none;
}

.faq-disclosure summary::before,
.faq-disclosure summary::after {
    position: absolute;
    top: 50%;
    right: 18px;
    width: 20px;
    height: 1px;
    content: '';
    background: var(--secondary-brass-strong);
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-disclosure summary::after {
    transform: rotate(90deg);
}

.faq-disclosure[open] summary::after {
    transform: rotate(0deg);
}

.faq-disclosure summary:hover h3 {
    color: var(--secondary-brass-strong);
}

.faq-disclosure summary:focus-visible {
    outline: 2px solid var(--secondary-brass-strong);
    outline-offset: 4px;
}

.faq-disclosure h3 {
    max-width: 64ch;
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(1rem, 1.7vw, 1.18rem);
    font-weight: 600;
    line-height: 1.45;
    transition: color 180ms ease;
}

html[lang='zh-CN'] .faq-disclosure h3 {
    font-family: 'Noto Sans SC', 'PingFang SC', sans-serif;
}

.faq-answer {
    overflow: hidden;
}

.faq-answer-lead {
    max-width: 70ch;
    margin-bottom: 0;
    padding: 0 68px 32px 0;
    color: #c6cbc5;
    line-height: 1.82;
}

.faq-disclosure[open] .faq-answer {
    animation: faq-answer-in 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes faq-answer-in {
    from { opacity: 0; transform: translateY(-8px); filter: blur(3px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.faq-decision {
    overflow-x: hidden;
    background: #101310;
    border-block: 1px solid var(--secondary-line);
}

.faq-decision__layout {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    gap: clamp(52px, 8vw, 112px);
    align-items: end;
}

.faq-decision__states {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--secondary-line-strong);
    list-style: none;
    counter-reset: states;
}

.faq-decision__states li {
    min-height: 132px;
    padding: 22px 14px;
    color: #d9ddd7;
    border-right: 1px solid var(--secondary-line);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
    counter-increment: states;
}

.faq-decision__states li:first-child {
    border-left: 1px solid var(--secondary-line);
}

.faq-decision__states li::before {
    display: block;
    margin-bottom: 26px;
    color: var(--faq-teal);
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    content: counter(states, decimal-leading-zero);
}

.faq-commercial {
    background: var(--secondary-brass);
    color: #11130f;
}

.faq-commercial__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(56px, 9vw, 128px);
    align-items: end;
}

.faq-commercial h2 {
    max-width: 13ch;
    color: #11130f;
}

.faq-commercial__copy > p {
    max-width: 62ch;
    margin-bottom: 32px;
    color: #292c25;
    font-size: 1.05rem;
    line-height: 1.72;
}

.faq-commercial .secondary-button {
    color: #f2efe8;
    background: #11130f;
    border-color: #11130f;
    box-shadow: 0 18px 38px rgba(17, 19, 15, 0.2);
}

.faq-commercial .secondary-text-link {
    color: #171914;
    border-bottom-color: rgba(17, 19, 15, 0.4);
}

.faq-commercial__terms {
    margin: 0;
    border-top: 1px solid rgba(17, 19, 15, 0.42);
}

.faq-commercial__terms div {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(17, 19, 15, 0.24);
}

.faq-commercial__terms dt {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.faq-commercial__terms dd {
    margin: 0;
    font-weight: 700;
}

.faq-sources {
    padding-block: 82px;
}

.faq-sources__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(48px, 8vw, 112px);
}

.faq-sources h2 {
    font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.faq-sources ul {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--secondary-line);
    list-style: none;
}

.faq-sources li {
    border-bottom: 1px solid var(--secondary-line);
}

.faq-sources a {
    display: flex;
    min-height: 58px;
    padding: 14px 0;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #d7dbd5;
    text-decoration: none;
}

.faq-sources a:hover {
    color: var(--secondary-brass-strong);
}

@media (max-width: 980px) {
    .faq-hero {
        min-height: auto;
    }

    .faq-hero__scene {
        inset-inline-start: 24%;
    }

    .faq-hero__layout,
    .faq-category__layout,
    .faq-decision__layout,
    .faq-commercial__layout,
    .faq-sources__layout {
        grid-template-columns: 1fr;
    }

    .faq-hero__copy h1 {
        max-width: 13ch;
    }

    .faq-decision-brief {
        max-width: 620px;
    }

    .faq-category__header {
        position: static;
    }

    .faq-decision__states {
        grid-template-columns: repeat(5, minmax(128px, 1fr));
        overflow-x: auto;
    }
}

@media (max-width: 640px) {
    .faq-hero {
        padding: calc(var(--secondary-nav-height) + 70px) 0 68px;
    }

    .faq-hero::after {
        background: rgba(8, 10, 9, 0.82);
    }

    .faq-hero__scene {
        inset: var(--secondary-nav-height) 0 0 16%;
        opacity: 0.42;
        clip-path: none;
    }

    .faq-hero__layout {
        gap: 48px;
    }

    .faq-hero__copy h1 {
        max-width: 12ch;
        font-size: clamp(2.75rem, 13vw, 4rem);
        line-height: 1;
    }

    html[lang='zh-CN'] .faq-hero__copy h1 {
        max-width: 11ch;
        font-size: clamp(2.45rem, 11vw, 3.6rem);
    }

    html[lang='de'] .faq-category__header h2 {
        max-width: 100%;
        font-size: clamp(1.75rem, 7vw, 2.2rem);
        word-break: normal;
        hyphens: manual;
    }

    .faq-hero__actions,
    .faq-commercial__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .faq-hero__actions .secondary-button,
    .faq-commercial__actions .secondary-button {
        justify-content: center;
        text-align: center;
    }

    .faq-decision-brief {
        padding-left: 22px;
    }

    .faq-category-rail__inner {
        width: 100%;
        padding-inline: 16px;
        overflow-x: visible;
    }

    .faq-category-rail a {
        min-height: 48px;
        padding-inline: 14px;
        min-width: 0;
        flex: 1 1 0;
        justify-content: center;
        overflow-wrap: anywhere;
        text-align: center;
        white-space: normal;
    }

    .faq-category {
        padding-block: 78px;
    }

    .faq-category__layout {
        gap: 38px;
    }

    .faq-decision__states {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow-x: visible;
    }

    .faq-category__header h2,
    .faq-decision h2,
    .faq-commercial h2,
    .faq-sources h2 {
        font-size: clamp(2.15rem, 10vw, 3.15rem);
    }

    .faq-disclosure summary {
        min-height: 80px;
        padding: 22px 48px 22px 0;
    }

    .faq-disclosure summary::before,
    .faq-disclosure summary::after {
        right: 8px;
        width: 17px;
    }

    .faq-answer-lead {
        padding: 0 24px 28px 0;
    }

    .faq-commercial__terms div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .faq-sources {
        padding-block: 68px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-disclosure[open] .faq-answer {
        animation: none;
    }

    .faq-disclosure summary::before,
    .faq-disclosure summary::after {
        transition: none;
    }
}
