/* ==========================================================
   CDS Journey — Public FAQ page
   Namespace: .rd-faq-*
   Route: /faq/ (account:faq)
   Palette: Navy / Olive / Gold / neutrals — no purple/teal/bright blue
   ========================================================== */

/* ---- Shell: neutralize legacy purple.css link rules ----
   (page body only — do not wrap .rd-header in a chrome parent) */

.rd-faq-page {
    background: var(--rd-surface-canvas, #FFFFFF);
    color: var(--rd-text-primary, #212529);
    font-family: var(--rd-font-body, "Inter", Arial, sans-serif);
}

.rd-faq-page a:link,
.rd-faq-page a:visited {
    color: inherit;
}

.rd-faq-page a:hover {
    color: inherit;
}

.rd-faq-page a:not([class]):link,
.rd-faq-page a:not([class]):visited {
    color: var(--rd-interactive-default, #1A2B4C);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rd-faq-page a:not([class]):hover {
    color: var(--rd-interactive-hover, #4B5320);
}

.rd-faq-page a:not([class]):focus-visible {
    outline: var(--rd-focus-ring-width, 2px) solid var(--rd-color-gold, #D4AF37);
    outline-offset: 3px;
}

/* ==========================================================
   Intro — compact editorial (not homepage hero)
   ========================================================== */

.rd-faq-intro {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: 40px 28px;
    background: var(--rd-surface-default, #F8F9FB);
}

.rd-faq-intro__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        linear-gradient(90deg, rgba(26, 43, 76, 0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(26, 43, 76, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}

.rd-faq-intro__inner {
    position: relative;
    z-index: 1;
    max-width: 40rem;
}

.rd-faq-intro__eyebrow {
    position: relative;
    display: inline-block;
    margin: 0 0 14px;
    padding-bottom: 10px;
    font-family: var(--rd-font-mono, "IBM Plex Mono", monospace);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rd-color-olive, #4B5320);
}

.rd-faq-intro__eyebrow::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background: var(--rd-color-gold, #D4AF37);
}

.rd-faq-intro__title {
    margin: 0;
    font-family: var(--rd-font-display, "Fraunces", Georgia, serif);
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--rd-color-navy, #1A2B4C);
    text-wrap: balance;
}

.rd-faq-intro__lead {
    margin: 14px 0 0;
    max-width: 36rem;
    font-family: var(--rd-font-body, "Inter", Arial, sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--rd-text-secondary, #6C757D);
}

/* ==========================================================
   FAQ list — editorial, no mega-card
   ========================================================== */

.rd-faq-list {
    padding-block: 12px 48px;
    background: var(--rd-color-white, #FFFFFF);
}

.rd-faq-list__inner {
    max-width: 46rem;
}

.rd-faq-item {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    padding-block: 28px;
    border-bottom: 1px solid var(--rd-border-subtle, #DDE2E6);
}

.rd-faq-item:first-child {
    border-top: 1px solid var(--rd-border-subtle, #DDE2E6);
}

.rd-faq-item__number {
    display: block;
    margin-top: 2px;
    font-family: var(--rd-font-display, "Fraunces", Georgia, serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--rd-color-olive, #4B5320);
    position: relative;
    padding-left: 12px;
}

.rd-faq-item__number::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.15em;
    width: 2px;
    background: var(--rd-color-gold, #D4AF37);
}

.rd-faq-item__question {
    margin: 0;
    font-family: var(--rd-font-body, "Inter", Arial, sans-serif);
    font-size: clamp(17px, 2.2vw, 20px);
    font-weight: 600;
    line-height: 1.35;
    color: var(--rd-color-navy, #1A2B4C);
    text-wrap: pretty;
}

.rd-faq-item__answer {
    margin-top: 10px;
    max-width: 42rem;
    font-family: var(--rd-font-body, "Inter", Arial, sans-serif);
    font-size: 15.5px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--rd-color-slate, #343A40);
}

.rd-faq-item__answer p {
    margin: 0 0 10px;
}

.rd-faq-item__answer p:last-child {
    margin-bottom: 0;
}

.rd-faq-item__answer ul {
    margin: 8px 0 0;
    padding-left: 1.2em;
}

.rd-faq-item__answer li {
    margin-bottom: 6px;
}

.rd-faq-item__answer li:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   Support CTA — single contact presentation
   Match: split panel (copy | divider | icon + actions)
   ========================================================== */

.rd-faq-support {
    padding-block: 8px 56px;
    background: var(--rd-color-white, #FFFFFF);
}

.rd-faq-support__panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 56rem;
    padding: 28px 24px;
    background: var(--rd-surface-default, #F8F9FB);
    border: none;
    border-radius: 16px;
}

.rd-faq-support__copy {
    flex: 1 1 auto;
    min-width: 0;
}

.rd-faq-support__eyebrow {
    margin: 0 0 10px;
    font-family: var(--rd-font-body, "Inter", Arial, sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rd-color-olive, #4B5320);
}

.rd-faq-support__title {
    margin: 0;
    font-family: var(--rd-font-display, "Fraunces", Georgia, serif);
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--rd-color-navy, #1A2B4C);
}

.rd-faq-support__lead {
    margin: 12px 0 0;
    max-width: 28rem;
    font-family: var(--rd-font-body, "Inter", Arial, sans-serif);
    font-size: 15px;
    line-height: 1.55;
    color: var(--rd-text-secondary, #6C757D);
}

.rd-faq-support__divider {
    display: none;
    width: 1px;
    align-self: stretch;
    background: var(--rd-border-subtle, #DDE2E6);
    flex: 0 0 1px;
}

.rd-faq-support__aside {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 0 0 auto;
}

.rd-faq-support__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(75, 83, 32, 0.12);
    color: var(--rd-color-olive, #4B5320);
}

.rd-faq-support__icon svg {
    display: block;
}

.rd-faq-support__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.rd-faq-support__aside-title {
    margin: 0 0 2px;
    font-family: var(--rd-font-body, "Inter", Arial, sans-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--rd-color-navy, #1A2B4C);
}

.rd-faq-support__cta {
    min-height: 44px;
    padding-inline: 20px;
    border-radius: 10px;
    margin-bottom: 4px;
}

.rd-faq-support__alt {
    margin: 0;
    font-family: var(--rd-font-body, "Inter", Arial, sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--rd-text-secondary, #6C757D);
}

.rd-faq-support__link {
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    color: var(--rd-color-navy, #1A2B4C);
    text-decoration: none;
}

.rd-faq-support__link:link,
.rd-faq-support__link:visited {
    color: var(--rd-color-navy, #1A2B4C);
}

.rd-faq-support__link:hover {
    color: var(--rd-color-olive, #4B5320);
}

.rd-faq-support__link:focus {
    outline: none;
}

.rd-faq-support__link:focus-visible {
    outline: 2px solid var(--rd-color-navy, #1A2B4C);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ==========================================================
   Tablet 768+
   ========================================================== */

@media (min-width: 768px) {
    .rd-faq-intro {
        padding-block: 52px 36px;
    }

    .rd-faq-list {
        padding-block: 8px 56px;
    }

    .rd-faq-item {
        column-gap: 20px;
        padding-block: 32px;
    }

    .rd-faq-item__number {
        font-size: 20px;
        padding-left: 14px;
    }

    .rd-faq-support {
        padding-block: 8px 72px;
    }

    .rd-faq-support__panel {
        flex-direction: row;
        align-items: center;
        gap: 32px;
        padding: 36px 40px;
    }

    .rd-faq-support__divider {
        display: block;
        min-height: 7.5rem;
    }

    .rd-faq-support__copy {
        flex: 1 1 0;
        max-width: none;
    }

    .rd-faq-support__aside {
        flex: 0 1 20rem;
        gap: 18px;
    }

    .rd-faq-support__icon {
        width: 64px;
        height: 64px;
    }
}

/* ==========================================================
   Desktop 1200+
   ========================================================== */

@media (min-width: 1200px) {
    .rd-faq-intro {
        padding-block: 60px 40px;
    }

    .rd-faq-item {
        column-gap: 24px;
    }

    .rd-faq-item__answer {
        font-size: 16px;
    }

    .rd-faq-support__panel {
        padding: 40px 48px;
        gap: 40px;
    }
}
