/*
 * what_we_cover.css
 * Bridge of Hope Recovery - public taxonomy pages (KAN-299 / KAN-300).
 * Shared by the What We Cover hub and the /experiences/ and /effects/
 * topic pages. Designed mobile portrait first (360-430px).
 */

/* ---------- shared topic page shell ---------- */

.topic-page,
.wwc-page {
    max-width: 46rem;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

.topic-page h2,
.wwc-page h2 {
    font-size: 1.3rem;
    color: var(--boh-text-heading);
    margin: 0 0 0.75rem;
}

/* ---------- breadcrumb ---------- */

.topic-breadcrumb {
    font-size: 0.85rem;
    color: var(--boh-text-muted);
    margin-bottom: 1.5rem;
}

.topic-breadcrumb a {
    color: var(--boh-teal);
    text-decoration: none;
}

.topic-breadcrumb a:hover { text-decoration: underline; }

.topic-breadcrumb .crumb-sep {
    margin: 0 0.4rem;
    color: var(--boh-text-subtle);
}

/* ---------- header ---------- */

.topic-header { margin-bottom: 1.75rem; }

.topic-eyebrow,
.wwc-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: var(--boh-amber-dark);
    margin: 0 0 0.5rem;
}

.topic-title,
.wwc-title {
    font-size: 1.75rem;
    line-height: 1.25;
    color: var(--boh-text-heading);
    margin: 0;
}

/* ---------- body ---------- */

.topic-body { margin-bottom: 2.25rem; }

.topic-lede {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--boh-text-body);
    border-left: 3px solid var(--boh-gold);
    padding-left: 1rem;
    margin-bottom: 1.25rem;
}

.topic-body p:not(.topic-lede) {
    line-height: 1.7;
    color: var(--boh-text-body);
}

/* ---------- survivor voices (effect pages) ---------- */

.topic-voices { margin-bottom: 2.25rem; }

.topic-voice-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topic-voice {
    display: inline-block;
    background: var(--boh-bg-cream);
    border: 1px solid var(--boh-border);
    border-radius: 1.25rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.92rem;
    font-style: italic;
    color: var(--boh-text-body);
}

.topic-voices-outro {
    margin-top: 1rem;
    color: var(--boh-text-muted);
    font-size: 0.95rem;
}

/* ---------- related items ---------- */

.topic-related { margin-bottom: 2.25rem; }

.topic-related-intro {
    color: var(--boh-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.topic-effect-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.topic-effect-card {
    display: block;
    background: var(--boh-bg-cream);
    border: 1px solid var(--boh-border);
    border-radius: 0.5rem;
    padding: 0.9rem 1rem;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.topic-effect-card:hover { border-color: var(--boh-teal); }

.topic-effect-name {
    display: block;
    font-weight: 600;
    color: var(--boh-blue);
    margin-bottom: 0.25rem;
}

.topic-effect-desc {
    display: block;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--boh-text-muted);
}

.topic-experience-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-experience-list li {
    border-bottom: 1px solid var(--boh-border);
}

.topic-experience-list a {
    display: block;
    padding: 0.7rem 0.25rem;
    color: var(--boh-blue);
    text-decoration: none;
    line-height: 1.45;
}

.topic-experience-list a:hover { color: var(--boh-blue-dark); text-decoration: underline; }

/* ---------- non-diagnosis note ---------- */

.topic-note {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: var(--boh-bg-light);
    border-left: 3px solid var(--boh-sage-dark);
    border-radius: 0.35rem;
    padding: 1rem 1.1rem;
    margin-bottom: 2.25rem;
}

.topic-note i {
    color: var(--boh-sage-dark);
    font-size: 1.1rem;
    line-height: 1.5;
}

.topic-note p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--boh-text-body);
}

/* ---------- call to action ---------- */

.topic-cta {
    background: var(--boh-bg-dark);
    border-top: 3px solid var(--boh-gold);
    border-radius: 0.5rem;
    padding: 1.75rem 1.5rem;
    margin-bottom: 2.25rem;
    text-align: center;
}

.topic-cta h2 { color: var(--boh-text-on-dark); }

.topic-cta p {
    color: var(--boh-text-on-dark);
    opacity: 0.85;
    line-height: 1.65;
}

.topic-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.25rem 0 1rem;
}

.topic-cta-buttons .btn {
    background: var(--boh-bg-cream);
}

.topic-cta-now { margin: 0; }

.topic-cta-now a {
    color: var(--boh-gold);
    font-size: 0.95rem;
}

/* ---------- siblings / see-all ---------- */

.topic-siblings { margin-bottom: 1rem; }

.topic-siblings ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.topic-siblings ul li { border-bottom: 1px solid var(--boh-border); }

.topic-siblings ul a {
    display: block;
    padding: 0.7rem 0.25rem;
    color: var(--boh-blue);
    text-decoration: none;
    line-height: 1.45;
}

.topic-siblings ul a:hover { color: var(--boh-blue-dark); text-decoration: underline; }

.topic-all-link {
    color: var(--boh-teal);
    font-weight: 600;
}

/* ---------- 404 ---------- */

.topic-not-found {
    text-align: center;
    padding-top: 3rem;
}

.topic-not-found h1 {
    font-size: 1.5rem;
    color: var(--boh-text-heading);
}

.topic-not-found p {
    color: var(--boh-text-muted);
    margin: 0.75rem 0 1.5rem;
}

/* ---------- What We Cover hub ---------- */

.wwc-page { max-width: 52rem; }

.wwc-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.wwc-lede {
    max-width: 40rem;
    margin: 1rem auto 0;
    line-height: 1.7;
    color: var(--boh-text-body);
}

.wwc-domain {
    margin-bottom: 2.5rem;
    scroll-margin-top: 5rem;
}

.wwc-domain-desc {
    color: var(--boh-text-muted);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.wwc-topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wwc-topic-list li { border-bottom: 1px solid var(--boh-border); }

.wwc-topic-list a {
    display: block;
    padding: 0.7rem 0.25rem;
    color: var(--boh-blue);
    text-decoration: none;
    line-height: 1.45;
}

.wwc-topic-list a:hover { color: var(--boh-blue-dark); text-decoration: underline; }

.wwc-effects-groups h3 {
    font-size: 1.05rem;
    color: var(--boh-text-heading);
    margin: 1.5rem 0 0.5rem;
}

/* ---------- wider screens ---------- */

@media (min-width: 576px) {
    .topic-page, .wwc-page { padding: 2.25rem 1.5rem 4rem; }

    .topic-title, .wwc-title { font-size: 2.1rem; }

    .topic-cta-buttons {
        flex-direction: row;
        justify-content: center;
    }

    /* site.css gives bare buttons width:100%; restore natural width in rows */
    .topic-cta-buttons .btn { width: auto; }

    .topic-effect-list { grid-template-columns: 1fr 1fr; }

    .wwc-topic-list.wwc-two-col {
        columns: 2;
        column-gap: 2rem;
    }

    .wwc-topic-list.wwc-two-col li { break-inside: avoid; }
}
