/* =============================================================================
   FedWell — Design System
   ============================================================================= */

:root {
    --fw-cream:        #FDF8F0;
    --fw-charcoal:     #2D2D2D;
    --fw-dark-brown:   #3D2B1F;
    --fw-warm-green:   #4A7C59;
    --fw-warm-green-d: #3A6348;
    --fw-soft-gold:    #C9A96E;
    --fw-light-sage:   #E8EDE5;
    --fw-muted:        #696969;
    --fw-border:       #E0D8CD;
}

/* =============================================================================
   Reset & Base
   ============================================================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Screen-reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Global focus-visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--fw-warm-green);
    outline-offset: 2px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--fw-cream);
    color: var(--fw-charcoal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--fw-dark-brown);
    line-height: 1.3;
}

a {
    color: var(--fw-warm-green);
    text-decoration: none;
}

a:hover {
    color: var(--fw-warm-green-d);
}

.fw-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================================================
   Header
   ============================================================================= */

.fw-header {
    background: white;
    border-bottom: 1px solid var(--fw-border);
    padding: 14px 0;
    /* Containing block for the absolute-positioned mobile hamburger
       dropdown (.fw-nav.fw-nav-open). Without this the dropdown's
       top: 100% measured from the viewport, dropping the menu down
       around the Expert Contributors section. */
    position: relative;
}

.fw-header-inner {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.fw-logo {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fw-dark-brown);
}

.fw-logo:hover {
    color: var(--fw-dark-brown);
}

.fw-byline {
    font-size: 0.85rem;
    color: var(--fw-muted);
}

/* =============================================================================
   Footer
   ============================================================================= */

.fw-footer {
    background: var(--fw-dark-brown);
    color: #ccc;
    padding: 32px 0;
    margin-top: 60px;
    text-align: center;
}

.fw-footer-brand {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 6px;
}

.fw-footer-tagline {
    font-size: 0.85rem;
    color: #aaa;
}

.fw-footer-links {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.fw-footer-link {
    font-size: 0.84rem;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.fw-footer-link:hover {
    color: #ccc;
}

.fw-footer-disclaimer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.18);
    /* Bumped from 0.82rem grey-on-dark which read as illegible (#22).
       Larger size + brighter colour gives the medical disclaimer the
       weight it deserves without making it visually compete with the
       brand row. WCAG-AA contrast against the dark-brown footer. */
    font-size: 0.88rem;
    color: #d8d2c8;
    line-height: 1.6;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================================================
   Hero
   ============================================================================= */

.fw-hero {
    text-align: center;
    padding: 64px 0 48px;
}

.fw-hero-title {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.fw-hero-seal {
    display: block;
    margin: 0 auto 16px;
    opacity: 0.85;
}

.fw-hero-subtitle {
    font-size: 1.1rem;
    color: var(--fw-muted);
    margin-bottom: 32px;
}

/* =============================================================================
   Search
   ============================================================================= */

.fw-search-form {
    display: flex;
    max-width: 560px;
    margin: 0 auto;
    gap: 0;
}

.fw-search-input {
    flex: 1;
    height: 48px;
    padding: 0 20px;
    border: 1px solid var(--fw-border);
    border-right: none;
    border-radius: 24px 0 0 24px;
    font-size: 1rem;
    background: white;
    color: var(--fw-charcoal);
    outline: none;
}

.fw-search-input:focus {
    border-color: var(--fw-warm-green);
}

.fw-search-btn {
    height: 48px;
    padding: 0 24px;
    background: var(--fw-warm-green);
    color: white;
    border: none;
    border-radius: 0 24px 24px 0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.fw-search-btn:hover {
    background: var(--fw-warm-green-d);
}

.fw-search-form-inline {
    margin-bottom: 32px;
}

.fw-search-suggestions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.fw-search-suggestions a {
    display: inline-block;
    padding: 10px 18px;
    font-size: 0.88rem;
    color: var(--fw-muted);
    background: var(--fw-light-sage);
    border: 1px solid var(--fw-border);
    border-radius: 20px;
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.fw-search-suggestions a:hover {
    color: var(--fw-warm-green);
    border-color: var(--fw-warm-green);
    background: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.fw-search-suggestions a:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Horizontal-scroll pill rows on mobile — wrapping to 3 lines reads as a
   broken layout. Single scrollable row reads as a deliberate carousel and
   keeps every pill reachable. */
@media (max-width: 640px) {
    .fw-search-suggestions,
    .fw-topics,
    .fw-contributor-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px 16px;
        margin-left: -16px;
        margin-right: -16px;
    }

    .fw-search-suggestions::-webkit-scrollbar,
    .fw-topics::-webkit-scrollbar,
    .fw-contributor-filters::-webkit-scrollbar {
        display: none;
    }

    .fw-search-suggestions a,
    .fw-topic-pill,
    .fw-contributor-filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* =============================================================================
   Stats Bar
   ============================================================================= */

.fw-stats-bar {
    background: white;
    border-top: 1px solid var(--fw-border);
    border-bottom: 1px solid var(--fw-border);
    padding: 20px 0;
}

.fw-stats-inner {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.fw-stat {
    text-align: center;
}

.fw-stat-number {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--fw-dark-brown);
}

.fw-stat-label {
    font-size: 0.85rem;
    color: var(--fw-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============================================================================
   Sections
   ============================================================================= */

.fw-section {
    padding: 56px 0;
}

.fw-section-alt {
    background: var(--fw-light-sage);
}

.fw-section-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-align: center;
}

.fw-section-subtitle {
    text-align: center;
    color: var(--fw-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.fw-link {
    color: var(--fw-warm-green);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.fw-link:hover {
    border-bottom-color: var(--fw-warm-green);
}

.fw-muted-text {
    color: var(--fw-muted);
    text-align: center;
    font-size: 0.95rem;
}

/* Warm invitation that sits below the search bar + suggestion pills
   on both /search (empty state) and / (homepage). Needs space above so
   it doesn't crowd the pills, and a max-width so it reads as one breath
   per line on phone. */
.fw-search-prompt {
    color: var(--fw-muted);
    text-align: center;
    font-size: 0.95rem;
    margin-top: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.fw-filedrawer-link {
    text-align: center;
    margin-top: 14px;
    font-size: 0.9rem;
}
.fw-filedrawer-link a {
    color: var(--fw-warm-green);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed var(--fw-soft-gold);
    padding-bottom: 1px;
}
.fw-filedrawer-link a:hover { border-bottom-style: solid; }

/* Citable capture */
.fw-cite { margin-top: 20px; }
.fw-cite-btn {
    background: none;
    border: 1px solid var(--fw-soft-gold);
    color: var(--fw-dark-brown);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
}
.fw-cite-btn:hover { background: var(--fw-light-sage); }
.fw-cite-panel {
    margin-top: 12px;
    border: 1px solid var(--fw-border);
    border-left: 3px solid var(--fw-soft-gold);
    border-radius: 8px;
    padding: 14px 16px;
    background: #FDFBF6;
}
.fw-cite-doi {
    font-size: 0.8rem;
    color: var(--fw-muted);
    margin-bottom: 12px;
}
.fw-cite-doi-id { font-family: ui-monospace, Menlo, monospace; color: var(--fw-dark-brown); }
.fw-cite-permalink { color: var(--fw-warm-green); text-decoration: none; }
.fw-cite-row {
    display: grid;
    grid-template-columns: 74px 1fr auto;
    gap: 10px;
    align-items: start;
    margin-bottom: 10px;
}
.fw-cite-label { font-size: 0.75rem; font-weight: 700; color: var(--fw-muted); padding-top: 6px; text-transform: uppercase; letter-spacing: 0.4px; }
.fw-cite-text {
    margin: 0;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 0.78rem;
    white-space: pre-wrap;
    word-break: break-word;
    background: #fff;
    border: 1px solid var(--fw-border);
    border-radius: 6px;
    padding: 8px 10px;
    line-height: 1.45;
}
.fw-cite-copy {
    background: var(--fw-warm-green);
    color: #fff;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}
.fw-cite-copy:hover { filter: brightness(1.08); }
@media (max-width: 560px) {
    .fw-cite-row { grid-template-columns: 1fr; }
    .fw-cite-label { padding-top: 0; }
}

/* Portable credential card (scholarly) */
.fw-cred-card {
    border: 1px solid var(--fw-border);
    border-top: 3px solid var(--fw-soft-gold);
    border-radius: 10px;
    padding: 18px 20px;
    margin: 18px 0;
    background: linear-gradient(180deg, #FDFBF6, #fff);
}
.fw-cred-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fw-cred-kicker { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--fw-soft-gold); }
.fw-cred-id { font-family: ui-monospace, Menlo, monospace; font-size: 0.78rem; color: var(--fw-muted); }
.fw-cred-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 12px; margin: 14px 0;
}
.fw-cred-stat { text-align: center; }
.fw-cred-num { font-family: Georgia, serif; font-size: 1.6rem; font-weight: 600; color: var(--fw-dark-brown); line-height: 1.1; }
.fw-cred-label { font-size: 0.72rem; color: var(--fw-muted); margin-top: 4px; }
.fw-cred-foot { font-size: 0.85rem; color: var(--fw-muted); line-height: 1.5; margin: 4px 0 0; }
@media (max-width: 560px) {
    .fw-cred-stats { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================================
   Contributors
   ============================================================================= */

.fw-contributor-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.fw-contributor-filter-btn {
    background: var(--fw-light-sage);
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fw-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.fw-contributor-filter-btn:hover {
    color: var(--fw-dark-brown);
    background: #dde5da;
}

.fw-contributor-filter-btn.active {
    background: var(--fw-warm-green);
    color: white;
    border-color: var(--fw-warm-green);
}

.fw-contributors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 24px;
    justify-items: center;
    align-items: stretch;
    /* All cards in a row share the tallest content's height. Combined
       with .fw-contributor's grid-template-rows ending in 1fr and the
       links row's align-self: end, the social-icons row aligns
       horizontally across cards even when names/roles/specialties
       differ in length (#17). */
    grid-auto-rows: 1fr;
}

.fw-contributor {
    display: grid;
    grid-template-rows: auto auto auto auto 1fr;
    justify-items: center;
    gap: 6px;
    width: 160px;
    text-align: center;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s;
}

.fw-contributor:hover {
    color: inherit;
    transform: translateY(-2px);
}

.fw-contributor-photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fw-contributor:hover .fw-contributor-photo {
    transform: scale(1.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.fw-contributor-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--fw-dark-brown);
    line-height: 1.2;
}

.fw-contributor-role {
    font-size: 0.84rem;
    color: var(--fw-warm-green);
    font-weight: 500;
    min-height: 2.5em;
}

.fw-contributor-affil {
    font-size: 0.84rem;
    color: var(--fw-muted);
    line-height: 1.3;
    min-height: 2.6em;
    /* Prefer breaks at word boundaries; only break inside a single
       very long word as a last resort. hyphens: manual (not auto)
       so the browser doesn't insert hyphenation hyphens mid-word
       like "Mitochon-/drial" — that was a regression from an earlier
       version of #18. */
    hyphens: manual;
    word-break: normal;
    overflow-wrap: break-word;
}

.fw-expert-byline-specialty,
.fw-expert-byline-title {
    hyphens: manual;
    word-break: normal;
    overflow-wrap: break-word;
}

.fw-contributor-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-self: end;
    padding-top: 6px;
}

.fw-contributor-social {
    color: var(--fw-muted);
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
}

.fw-contributor-social:hover {
    color: var(--fw-warm-green);
}

/* =============================================================================
   Contributor Profile Page
   ============================================================================= */

.fw-contributor-profile {
    background: white;
    border: 1px solid var(--fw-border);
    border-radius: 8px;
    padding: 32px;
}

.fw-contributor-profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.fw-contributor-profile-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.fw-contributor-profile-name {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.fw-contributor-profile-title {
    font-size: 0.95rem;
    color: var(--fw-warm-green);
    font-weight: 500;
    margin-bottom: 2px;
}

.fw-contributor-profile-specialty {
    font-size: 0.85rem;
    color: var(--fw-muted);
}

.fw-contributor-nuggets-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    color: var(--fw-dark-brown);
    margin-top: 28px;
    margin-bottom: 16px;
}

.fw-contributor-nuggets-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fw-contributor-nuggets-grid .fw-result-card {
    border-left: 3px solid var(--fw-soft-gold);
}

@media (max-width: 640px) {
    .fw-contributor-profile {
        padding: 20px;
    }

    .fw-contributor-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .fw-contributor-profile-photo {
        width: 80px;
        height: 80px;
    }

    .fw-contributor-profile-name {
        font-size: 1.25rem;
    }
}

/* =============================================================================
   How It Works (Pipeline Flow)
   ============================================================================= */

.fw-pipeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 12px 0;
}

.fw-pipe-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 160px;
}

.fw-pipe-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--fw-soft-gold);
    color: var(--fw-soft-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.fw-pipe-icon-challenge {
    border-color: #D4845A;
    color: #D4845A;
}

.fw-pipe-icon-consensus {
    border-color: var(--fw-warm-green);
    color: var(--fw-warm-green);
}

.fw-pipe-icon-publish {
    border-color: var(--fw-dark-brown);
    color: var(--fw-dark-brown);
}

.fw-pipe-step:hover .fw-pipe-icon {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fw-pipe-label {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fw-dark-brown);
    margin-bottom: 4px;
}

.fw-pipe-detail {
    font-size: 0.88rem;
    color: var(--fw-charcoal);
    line-height: 1.4;
    opacity: 0.75;
}

.fw-pipe-arrow {
    display: flex;
    align-items: center;
    padding-top: 16px;
    color: var(--fw-border);
    flex-shrink: 0;
    margin: 0 4px;
}

.fw-pipeline-footnote {
    text-align: center;
    font-size: 0.85rem;
    color: var(--fw-muted);
    margin-top: 24px;
    font-style: italic;
}

/* Why FedWell Section */
.fw-why-section {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.fw-why-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--fw-charcoal);
    margin-bottom: 16px;
}

.fw-why-coda {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    color: var(--fw-dark-brown);
    font-style: italic;
}

/* =============================================================================
   Topics
   ============================================================================= */

.fw-topics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.fw-topic-pill {
    display: inline-block;
    padding: 8px 16px;
    background: var(--fw-light-sage);
    color: var(--fw-dark-brown);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.fw-topic-pill:hover {
    background: var(--fw-warm-green);
    color: white;
}

/* =============================================================================
   Search Results
   ============================================================================= */

.fw-search-page {
    padding: 32px 0;
}

.fw-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fw-result-card {
    background: white;
    border: 1px solid var(--fw-border);
    border-radius: 8px;
    padding: 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: block;
    color: inherit;
}

.fw-result-card:hover {
    border-color: var(--fw-warm-green);
    box-shadow: 0 2px 8px rgba(74, 124, 89, 0.1);
    color: inherit;
}

.fw-result-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.fw-result-category {
    display: inline-block;
    font-size: 0.82rem;
    padding: 3px 10px;
    background: var(--fw-light-sage);
    color: var(--fw-warm-green);
    border-radius: 10px;
    font-weight: 500;
    /* Keep each badge on one line and let the row wrap instead, so a long
       category like "Cardiometabolic" doesn't break mid-word on mobile. */
    white-space: nowrap;
    flex-shrink: 0;
}

.fw-result-badge {
    font-size: 0.82rem;
    color: var(--fw-soft-gold);
    font-weight: 500;
}

.fw-result-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.15rem;
    color: var(--fw-dark-brown);
    margin-bottom: 6px;
}

.fw-result-snippet {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

.fw-result-source {
    font-size: 0.8rem;
    color: var(--fw-muted);
}

.fw-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--fw-muted);
}

.fw-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
    margin-top: 8px;
}
.fw-pagination-info {
    font-size: 0.85rem;
    color: var(--fw-muted);
}
.fw-pagination-btn {
    padding: 6px 16px;
    border: 1px solid var(--fw-border);
    border-radius: 6px;
    background: white;
    color: var(--fw-charcoal);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.fw-pagination-btn:hover {
    border-color: var(--fw-warm-green);
    color: var(--fw-warm-green);
}

/* =============================================================================
   Nugget Detail Page
   ============================================================================= */

.fw-nugget-page {
    padding: 32px 0;
}

.fw-back-link {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--fw-warm-green);
    margin-bottom: 24px;
}

.fw-back-link:hover {
    color: var(--fw-warm-green-d);
}

.fw-nugget-detail {
    background: white;
    border: 1px solid var(--fw-border);
    border-radius: 8px;
    padding: 32px;
}

/* Legacy article styles (non-nugget documents) */
.fw-legacy-article-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--fw-border);
}

.fw-legacy-article-title {
    font-size: 2rem;
    margin-bottom: 12px;
}

.fw-legacy-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fw-legacy-article-content {
    font-size: 1rem;
    line-height: 1.7;
}

.fw-legacy-article-content h1 {
    font-size: 1.75rem;
    margin: 28px 0 12px;
}

.fw-legacy-article-content h2 {
    font-size: 1.4rem;
    margin: 24px 0 10px;
}

.fw-legacy-article-content h3 {
    font-size: 1.15rem;
    margin: 20px 0 8px;
}

.fw-legacy-article-content p {
    margin-bottom: 14px;
}

.fw-legacy-article-content ul,
.fw-legacy-article-content ol {
    margin: 10px 0 14px 24px;
}

.fw-legacy-article-content li {
    margin-bottom: 6px;
}

.fw-legacy-article-content a {
    color: var(--fw-warm-green);
    text-decoration: underline;
}

.fw-legacy-article-source {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--fw-border);
    font-size: 0.9rem;
    color: var(--fw-muted);
}

.fw-legacy-article-source a {
    color: var(--fw-warm-green);
}

/* =============================================================================
   Evidence Level Badges
   ============================================================================= */

.fw-evidence-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.fw-evidence-badge-toggle {
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.fw-evidence-badge-toggle:hover {
    filter: brightness(0.95);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.fw-badge-chevron {
    font-size: 0.6rem;
    margin-left: 2px;
    display: inline-block;
    transition: transform 0.2s;
}

.fw-evidence-badge-expanded .fw-badge-chevron {
    transform: rotate(180deg);
}

.fw-evidence-proscons-panel {
    margin: 12px 0 8px;
    animation: fw-slide-down 0.2s ease-out;
}

@keyframes fw-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fw-contested-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 600;
    background: #FEE2E2;
    color: #DC2626;
    letter-spacing: 0.3px;
}

.fw-nullresult-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 700;
    background: #EEF2FF;
    color: #3730A3;
    border: 1px solid #C7D2FE;
    letter-spacing: 0.3px;
}

.fw-language-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 600;
    background: #EDE8F5;
    color: #5B4A8A;
    letter-spacing: 0.3px;
}

/* =============================================================================
   Nugget Cards (search results)
   ============================================================================= */

.fw-nugget-result-card {
    border-left: 3px solid var(--fw-soft-gold);
}

/* Recipe cards in search results and on contributor pages: a photo on top. */
.fw-recipe-result-card { border-left: 3px solid var(--fw-warm-green); }
.fw-recipe-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    display: block;
}

.fw-evidence-desc-inline {
    font-size: 0.78rem;
    color: var(--fw-muted);
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 6px;
}

.fw-nugget-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--fw-dark-brown);
    margin-bottom: 4px;
}

.fw-nugget-claim-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    color: var(--fw-dark-brown);
    margin-bottom: 8px;
    line-height: 1.4;
}

.fw-nugget-sources-text {
    font-size: 0.8rem;
    color: var(--fw-muted);
    font-style: italic;
    margin-bottom: 4px;
}

/* Soften the no-sources note further so it reads as context, not citation. */
.fw-nugget-sources-text.fw-sources-none,
.fw-nugget-detail-sources.fw-sources-none,
.fw-counter-nugget-sources.fw-sources-none {
    opacity: 0.75;
}

.fw-nugget-expert-text {
    font-size: 0.8rem;
    color: var(--fw-muted);
}

/* Expert byline (compact, for search cards) */
.fw-expert-byline-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.fw-expert-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.fw-expert-byline-compact .fw-expert-byline-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fw-dark-brown);
}

.fw-expert-byline-compact .fw-expert-byline-title {
    font-size: 0.75rem;
    color: var(--fw-muted);
    margin-left: 4px;
}

/* Expert byline (full, for nugget detail) */
.fw-expert-byline-full {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--fw-light-sage);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, transform 0.15s;
}

.fw-expert-byline-full:hover {
    background: #dde5da;
    transform: translateY(-1px);
    color: inherit;
    text-decoration: none;
}

.fw-expert-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.fw-expert-byline-info {
    min-width: 0;
}

.fw-expert-byline-full .fw-expert-byline-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fw-dark-brown);
    line-height: 1.2;
}

.fw-expert-byline-full .fw-expert-byline-title {
    font-size: 0.85rem;
    color: var(--fw-warm-green);
    font-weight: 500;
    margin-top: 2px;
}

.fw-expert-byline-specialty {
    font-size: 0.8rem;
    color: var(--fw-muted);
    margin-top: 2px;
}

/* Contributor type badge */
.fw-expert-type-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 10px;
    letter-spacing: 0.02em;
    vertical-align: middle;
    margin-left: 4px;
}

/* =============================================================================
   Nugget Detail View
   ============================================================================= */

.fw-nugget-detail-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--fw-dark-brown);
    margin-bottom: 12px;
    line-height: 1.2;
}

.fw-nugget-detail-claim {
    font-size: 1.6rem;
    line-height: 1.35;
    margin-bottom: 16px;
}

.fw-nugget-detail-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.fw-nugget-date {
    font-size: 0.8rem;
    color: var(--fw-muted);
}

.fw-evidence-desc {
    font-size: 0.85rem;
    color: var(--fw-muted);
    font-style: italic;
    padding: 8px 12px;
    background: var(--fw-light-sage);
    border-radius: 6px;
    margin-bottom: 20px;
}

.fw-nugget-detail-sources {
    font-size: 0.95rem;
    margin-bottom: 20px;
    padding: 12px;
    background: var(--fw-light-sage);
    border-radius: 6px;
}

.fw-nugget-detail-expert {
    margin-bottom: 20px;
}

/* =============================================================================
   Summary / Detailed Toggle
   ============================================================================= */

.fw-view-toggle {
    display: inline-flex;
    background: var(--fw-light-sage);
    border: 1px solid var(--fw-border);
    border-radius: 20px;
    padding: 3px;
    margin-bottom: 20px;
}

.fw-toggle-btn {
    padding: 6px 18px;
    border: none;
    border-radius: 18px;
    background: transparent;
    color: var(--fw-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

/* On mobile the toggle was visually buried at the top of the nugget page.
   Make it a higher-contrast, full-width control with a label so it reads
   as a real interactive switch rather than two tiny pills. */
@media (max-width: 640px) {
    .fw-view-toggle {
        display: flex;
        width: 100%;
        background: white;
        border: 1px solid var(--fw-warm-green);
        padding: 4px;
        margin-bottom: 16px;
    }

    .fw-toggle-btn {
        flex: 1 1 0;
        padding: 10px 12px;
        font-size: 0.95rem;
        min-height: 44px;
        color: var(--fw-warm-green);
    }

    .fw-toggle-active {
        background: var(--fw-warm-green) !important;
        color: white !important;
    }
}

.fw-toggle-btn:hover {
    color: var(--fw-charcoal);
}

.fw-toggle-active {
    background: white;
    color: var(--fw-dark-brown);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fw-view-summary,
.fw-view-detailed {
    display: none;
}

.fw-view-active {
    display: block;
}

/* Recipe Nuggets: hero image, Description/Full Recipe views, pre-wrapped text */
.fw-recipe-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    display: block;
}

.fw-recipe-view {
    display: none;
}

.fw-recipe-view.fw-view-active {
    display: block;
}

.fw-recipe-text {
    white-space: pre-wrap;
    line-height: 1.65;
    color: var(--fw-charcoal);
    font-size: 1rem;
}
.fw-recipe-text .fw-recipe-h {
    display: inline-block;
    font-size: 1.08rem;
    color: var(--fw-dark-brown);
    margin-top: 0.3rem;
}
.fw-recipe-nutrition {
    margin-top: 22px;
    padding: 16px 18px;
    background: var(--fw-light-sage);
    border-radius: 8px;
}
.fw-nutri-title { font-weight: 700; color: var(--fw-dark-brown); margin-bottom: 8px; }
.fw-nutri-sub {
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--fw-warm-green); font-weight: 700; margin: 10px 0 4px;
}
.fw-nutri-row {
    display: flex; justify-content: space-between;
    font-size: 0.9rem; padding: 3px 0; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.fw-nutri-row span:last-child { font-weight: 600; color: var(--fw-dark-brown); }
.fw-nutri-note { font-size: 0.75rem; color: var(--fw-muted); font-style: italic; margin-top: 8px; }
.fw-nutri-servings { margin-bottom: 10px; font-size: 0.85rem; color: var(--fw-charcoal); }
.fw-nutri-serv {
    width: 60px; padding: 3px 6px; margin-left: 6px;
    border: 1px solid var(--fw-border); border-radius: 5px; background: #fff;
    color: var(--fw-dark-brown); font-weight: 600;
}

.fw-recipe-full {
    font-size: 0.98rem;
}

/* =============================================================================
   Evidence Pros/Cons (toggled from evidence badge)
   ============================================================================= */

.fw-evidence-proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.fw-evidence-strengths,
.fw-evidence-limitations {
    padding: 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.fw-evidence-strengths {
    background: #F0F7F2;
    border: 1px solid #C8DEC8;
}

.fw-evidence-limitations {
    background: #FDF6F0;
    border: 1px solid #E8D8C8;
}

.fw-evidence-strengths h4,
.fw-evidence-limitations h4 {
    font-family: Georgia, 'Times New Roman', serif;
    /* Was 0.85rem / default weight, which read as a slightly-darker
       body line not a section heading (#28). Bump weight and size,
       letter-spacing for a label feel. */
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.fw-evidence-strengths h4 {
    color: #3A6348;
}

.fw-evidence-limitations h4 {
    color: #8B6B4A;
}

.fw-evidence-proscons ul {
    margin: 0;
    padding-left: 18px;
}

.fw-evidence-proscons li {
    margin-bottom: 4px;
    color: var(--fw-charcoal);
}

/* Expert face + name byline, sitting directly under the Nugget claim. Even
   20px gap above (to the claim) and below (to the evidence/category row) so it
   sits on the same vertical rhythm as every other block on the page. */
.fw-nugget-detail-claim + .fw-nugget-detail-expert {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* =============================================================================
   Contested Section
   ============================================================================= */

/* Review Due Date */
.fw-review-due {
    font-size: 0.8rem;
    color: var(--fw-muted);
    margin: 8px 0;
    font-style: italic;
}

/* Corroboration Status */
.fw-corroboration {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 12px;
    margin: 8px 0;
}

.fw-corroboration-pending {
    background: #FDF5E6;
    color: #B8860B;
}

.fw-corroboration-corroborated {
    background: #E8EDE5;
    color: #4A7C59;
}

.fw-corroboration-disputed {
    background: #FEF2F2;
    color: #DC2626;
}

.fw-corroboration-suggestion {
    background: #E8F0F8;
    color: #5B8DB8;
}

/* Builds-on link (knowledge chain) */
.fw-builds-on {
    margin: 10px 0;
    font-size: 0.85rem;
    color: var(--fw-muted);
}
.fw-builds-on-label {
    font-weight: 600;
}
.fw-builds-on-link {
    color: var(--fw-warm-green);
    text-decoration: none;
}
.fw-builds-on-link:hover {
    text-decoration: underline;
}

/* Contest Action (for logged-in contributors) */
.fw-contest-action {
    margin: 16px 0;
    padding: 14px 18px;
    background: var(--fw-light-sage);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.fw-contest-btn {
    background: white;
    border: 1px solid var(--fw-warm-green);
    color: var(--fw-warm-green);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.fw-contest-btn:hover {
    background: var(--fw-warm-green);
    color: white;
}
.fw-contest-hint {
    font-size: 0.8rem;
    color: var(--fw-muted);
}

/* Contested Section */
.fw-contested-section {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.fw-contested-section h3 {
    color: #DC2626;
    font-size: 1rem;
    margin-bottom: 6px;
}

.fw-contested-section p {
    font-size: 0.9rem;
    color: #991B1B;
    margin-bottom: 16px;
}

/* Debate Thread */
.fw-debate-thread {
    background: white;
    border: 1px solid #FECACA;
    border-radius: 6px;
    padding: 16px;
    margin-top: 12px;
}

.fw-debate-thread h4 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    color: var(--fw-dark-brown);
    margin-bottom: 6px;
}

.fw-debate-thread p {
    font-size: 0.85rem;
    color: var(--fw-charcoal);
    margin-bottom: 10px;
}

.fw-debate-contribute-link {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--fw-warm-green);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.fw-debate-contribute-link:hover {
    border-bottom-color: var(--fw-warm-green);
}

/* Counter-Nugget Cards */
.fw-counter-nuggets {
    margin-top: 12px;
}
.fw-counter-nuggets h4 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    color: var(--fw-dark-brown);
    margin-bottom: 10px;
}
.fw-counter-nugget-card {
    background: white;
    border: 1px solid #FECACA;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 10px;
}
.fw-counter-nugget-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    color: var(--fw-dark-brown);
    font-weight: 600;
    margin-bottom: 6px;
}
.fw-counter-nugget-claim {
    font-size: 0.9rem;
    color: var(--fw-charcoal);
    line-height: 1.5;
    margin-bottom: 8px;
}
.fw-counter-nugget-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.fw-counter-nugget-sources {
    font-size: 0.78rem;
    color: var(--fw-muted);
}
.fw-counter-nugget-expert {
    font-size: 0.82rem;
    color: var(--fw-muted);
    margin-bottom: 6px;
}
.fw-counter-nugget-link {
    font-size: 0.85rem;
    color: var(--fw-warm-green);
    text-decoration: none;
    font-weight: 500;
}
.fw-counter-nugget-link:hover {
    text-decoration: underline;
}

/* Corroborate Button + Section (public site) */
.fw-contributor-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}
.fw-corroborate-action {
    padding: 14px 18px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.fw-corroborate-btn {
    background: white;
    border: 1px solid var(--fw-soft-gold);
    color: #92700C;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.fw-corroborate-btn:hover {
    background: var(--fw-soft-gold);
    color: white;
}
.fw-corroborate-hint {
    font-size: 0.8rem;
    color: var(--fw-muted);
}

/* Corroborations section on nugget detail */
.fw-corroborations-section {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}
.fw-corroborations-section h3 {
    font-family: Georgia, 'Times New Roman', serif;
    color: #92700C;
    font-size: 1rem;
    margin-bottom: 12px;
}
.fw-corroborations-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fw-corroboration-card {
    background: white;
    border: 1px solid #FDE68A;
    border-radius: 6px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.fw-corroboration-card.fw-corroboration-card-confirmed {
    border-color: var(--fw-soft-gold);
    background: #FEFCE8;
}
.fw-corroboration-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.fw-corroboration-content {
    flex: 1;
    min-width: 0;
}
.fw-corroboration-expert {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--fw-dark-brown);
}
.fw-corroboration-title {
    font-size: 0.8rem;
    color: var(--fw-muted);
    margin-bottom: 4px;
}
.fw-corroboration-evidence {
    font-size: 0.88rem;
    color: var(--fw-charcoal);
    line-height: 1.5;
    margin-top: 4px;
}
.fw-corroboration-date {
    font-size: 0.75rem;
    color: var(--fw-muted);
    margin-top: 4px;
}

/* Corroboration card in contributor sidebar */
.fw-corroboration-header {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #92700C;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.fw-corroboration-original {
    font-size: 0.8rem;
    color: var(--fw-muted);
    margin-bottom: 8px;
}
.fw-corroboration-summary {
    font-size: 0.88rem;
    color: var(--fw-charcoal);
    line-height: 1.5;
    margin-bottom: 10px;
}
.fw-btn-corroborate {
    background: var(--fw-soft-gold);
    border-color: var(--fw-soft-gold);
    color: white;
}
.fw-btn-corroborate:hover {
    background: #B8953F;
    border-color: #B8953F;
}

/* Video Discussion */
.fw-debate-video {
    background: white;
    border: 1px solid #FECACA;
    border-radius: 6px;
    padding: 16px;
    margin-top: 10px;
}

.fw-debate-video h4 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    color: var(--fw-dark-brown);
    margin-bottom: 6px;
}

.fw-debate-video p {
    font-size: 0.85rem;
    color: var(--fw-charcoal);
    margin-bottom: 8px;
}

.fw-coming-soon {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--fw-muted);
    background: var(--fw-light-sage);
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 500;
}

/* =============================================================================
   Transparency Declarations
   ============================================================================= */

.fw-transparency-expand {
    margin-top: 20px;
    border: 1px solid var(--fw-border);
    border-left: 3px solid var(--fw-soft-gold);
    border-radius: 8px;
    overflow: hidden;
}

.fw-transparency-summary {
    padding: 14px 20px;
    background: #FDF8F0;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--fw-dark-brown);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fw-transparency-summary::-webkit-details-marker {
    display: none;
}

.fw-transparency-summary:hover {
    background: #F8F0E4;
}

.fw-transparency-icon {
    color: var(--fw-soft-gold);
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.fw-transparency-expand[open] .fw-transparency-icon {
    transform: rotate(90deg);
}

.fw-transparency-count {
    font-size: 0.75rem;
    color: var(--fw-soft-gold);
    font-weight: 600;
    margin-left: auto;
    background: #FDF5E6;
    padding: 2px 8px;
    border-radius: 10px;
}

.fw-transparency-content {
    padding: 16px 20px;
    border-top: 1px solid var(--fw-border);
}

.fw-transparency-intro {
    font-size: 0.85rem;
    color: var(--fw-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.fw-transparency-list {
    margin: 0;
    padding: 0;
}

.fw-transparency-cat {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--fw-charcoal);
    margin-bottom: 2px;
    margin-top: 12px;
}

.fw-transparency-cat:first-child {
    margin-top: 0;
}

.fw-transparency-desc {
    font-size: 0.85rem;
    color: var(--fw-muted);
    margin-left: 0;
    line-height: 1.5;
}


/* =============================================================================
   Expandable Dialogue Section
   ============================================================================= */

.fw-dialogue-expand {
    margin-top: 20px;
    border: 1px solid var(--fw-border);
    border-radius: 8px;
    overflow: hidden;
}

.fw-dialogue-expand summary {
    padding: 14px 20px;
    background: var(--fw-light-sage);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--fw-dark-brown);
}

.fw-dialogue-expand summary:hover {
    background: #DDE5DA;
}

.fw-dialogue-content {
    padding: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    max-height: 500px;
    overflow-y: auto;
}

/* Styled speaker turns inside the expanded Socratic dialogue. Replaces
   the raw [Expert]: / [FedWell]: markers that used to leak through. */
.fw-dialogue-turn {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    align-items: flex-start;
}

.fw-dialogue-speaker {
    flex: 0 0 auto;
    min-width: 64px;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1.2;
    text-align: center;
}

.fw-dialogue-turn-expert .fw-dialogue-speaker {
    background: var(--fw-light-sage);
    color: var(--fw-dark-brown);
}

.fw-dialogue-turn-bot .fw-dialogue-speaker {
    background: var(--fw-cream);
    color: var(--fw-warm-green);
    border: 1px solid var(--fw-warm-green);
}

/* Share row on the Nugget detail page. The Nugget is the shareable unit;
   keep the buttons quiet (sage outline) so they sit below the content
   without competing with the claim. */
.fw-nugget-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 20px 0 8px;
    padding-top: 20px;
    border-top: 1px solid var(--fw-border);
}

.fw-nugget-share-label {
    font-size: 0.85rem;
    color: var(--fw-muted);
    margin-right: 4px;
}

.fw-share-btn {
    display: inline-block;
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fw-warm-green);
    background: var(--fw-light-sage);
    border: 1px solid var(--fw-border);
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.fw-share-btn:hover {
    color: white;
    background: var(--fw-warm-green);
    border-color: var(--fw-warm-green);
}

.fw-dialogue-body {
    flex: 1 1 auto;
    min-width: 0;
}

.fw-dialogue-body > p:first-child {
    margin-top: 0;
}

.fw-dialogue-body > p:last-child {
    margin-bottom: 0;
}

/* =============================================================================
   Related Points Section
   ============================================================================= */

.fw-nugget-disclaimer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--fw-border);
    font-size: 0.75rem;
    color: var(--fw-muted);
    line-height: 1.5;
}
.fw-nugget-disclaimer a {
    color: var(--fw-muted);
    text-decoration: underline;
}

.fw-related-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--fw-border);
}

.fw-related-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.fw-related-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--fw-border);
    border-radius: 6px;
    margin-bottom: 8px;
    color: inherit;
    transition: border-color 0.2s;
}

.fw-related-card:hover {
    border-color: var(--fw-warm-green);
    color: inherit;
}

.fw-related-claim {
    font-size: 0.9rem;
    color: var(--fw-dark-brown);
}

/* Mobile: these three are flex rows (badge/button on the left, text on the
   right). On a phone the text gets crushed into a narrow right-hand column and
   wraps a word or two per line. Stack them so the badge/button sits above the
   full-width text instead. */
@media (max-width: 640px) {
    .fw-related-card,
    .fw-contest-action,
    .fw-corroborate-action {
        flex-direction: column;
        align-items: flex-start;
    }
    .fw-related-claim,
    .fw-contest-hint,
    .fw-corroborate-hint {
        width: 100%;
    }
}

/* =============================================================================
   Topic Bubble Map
   ============================================================================= */

/* Explore page filters */
.fw-explore-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.fw-filter-pill {
    padding: 6px 18px;
    border: 1px solid var(--fw-border);
    border-radius: 20px;
    background: white;
    color: var(--fw-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.fw-filter-pill:hover {
    border-color: var(--fw-warm-green);
    color: var(--fw-warm-green);
}

.fw-filter-active {
    background: var(--fw-warm-green);
    color: white;
    border-color: var(--fw-warm-green);
}

.fw-filter-active:hover {
    background: var(--fw-warm-green-d);
    border-color: var(--fw-warm-green-d);
    color: white;
}

.fw-topic-map {
    max-width: 800px;
    margin: 0 auto;
}

.fw-bubble-svg {
    width: 100%;
    height: auto;
}

.fw-bubble-circle {
    transition: opacity 0.2s, transform 0.2s;
    transform-box: fill-box;
    transform-origin: center;
}

.fw-bubble-group:hover .fw-bubble-circle {
    opacity: 0.85;
    transform: scale(1.05);
}

.fw-bubble-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
}

.fw-bubble-count {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 10px;
    pointer-events: none;
    opacity: 0.7;
}

/* =============================================================================
   Header Navigation
   ============================================================================= */

.fw-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.fw-nav-link {
    font-size: 0.9rem;
    color: var(--fw-warm-green);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.fw-nav-link:hover {
    color: var(--fw-warm-green-d);
}

.fw-nav-link--plain {
    color: var(--fw-charcoal);
    font-weight: 400;
}

.fw-nav-link--plain:hover {
    color: var(--fw-warm-green);
}

/* Mobile hamburger */
.fw-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--fw-charcoal);
}

@media (max-width: 640px) {
    .fw-nav {
        gap: 12px;
    }
    .fw-nav-link--plain {
        display: none;
    }
    .fw-nav-toggle {
        display: block;
    }
    .fw-nav.fw-nav-open .fw-nav-link--plain {
        display: block;
    }
    .fw-nav.fw-nav-open {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: white;
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--fw-border);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        z-index: 100;
    }
}

/* Source reference styling. Sources used to be nowrap which produced
   horizontal overflow when a citation (or, in legacy bad-data nuggets,
   a 'NAME:' placeholder leak) had no spaces. Allow wrapping; only
   break inside an unbreakable string as a last resort. */
.fw-source-ref {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Universal break-anywhere safety net for any bordered text container
   that holds expert-supplied content. Long URLs, citations, or
   bad-data leaks must wrap inside the box, not push it wide. Combined
   with min-width: 0 so the box can shrink inside flex/grid layouts. */
.fw-nugget-detail-sources,
.fw-nugget-sources-text,
.fw-counter-nugget-sources,
.fw-evidence-desc,
.fw-evidence-strengths li,
.fw-evidence-limitations li,
.fw-nugget-detail-claim,
.fw-nugget-claim-text,
.fw-dialogue-content,
.fw-dialogue-body,
.fw-transparency-desc,
.fw-counter-nugget-claim,
.fw-result-card,
.fw-my-nugget-claim,
.fw-my-nugget-name {
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}

/* Breadcrumbs */
.fw-breadcrumb {
    /* Vertical only: the element is also .fw-container, whose 0 20px gives the
       horizontal padding. A `12px 0` shorthand zeroed that, so the breadcrumb
       sat flush against the viewport edge, out of line with the page content. */
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 0.85rem;
    color: var(--fw-muted);
}

.fw-breadcrumb a {
    color: var(--fw-warm-green);
    text-decoration: none;
}

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

.fw-breadcrumb-sep {
    margin: 0 6px;
    color: var(--fw-border);
}

.fw-contributor-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--fw-light-sage);
    padding: 3px 14px 3px 3px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--fw-warm-green);
    font-weight: 600;
    text-decoration: none;
}
.fw-contributor-badge:hover {
    background: var(--fw-warm-green);
    color: white;
}
.fw-badge-photo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 640px) {
    .fw-hero {
        padding: 40px 0 32px;
    }

    .fw-hero-title {
        font-size: 1.75rem;
    }

    .fw-hero-subtitle {
        font-size: 1rem;
    }

    .fw-search-form {
        max-width: 100%;
    }

    .fw-stats-inner {
        gap: 24px;
    }

    .fw-stat-number {
        font-size: 1.35rem;
    }

    /* Stack the verification pipeline vertically on mobile. Previously it
       wrapped into a 2x2 grid, which read as a parallel matrix instead of
       a sequential flow. Vertical stack preserves the step order
       (Claim -> Challenge -> Consensus -> Publish) and keeps each step at
       full width, with a small numeric prefix for explicit ordering. */
    .fw-pipeline {
        flex-direction: column;
        align-items: stretch;
        /* Each step is its own beat; tighter gap blurred them together
           on phone. */
        gap: 28px;
        max-width: 320px;
        margin: 0 auto;
    }

    .fw-pipe-step {
        width: auto;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 14px;
    }

    .fw-pipe-icon {
        flex: 0 0 auto;
        width: 48px;
        height: 48px;
        margin-bottom: 0;
    }

    .fw-pipe-arrow {
        display: none;
    }

    .fw-contributors {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        /* Row gap larger than column gap on phone so adjacent cards
           in the same row stay close, but rows breathe. */
        gap: 28px 16px;
    }

    .fw-contributor {
        width: auto;
    }

    .fw-contributor-photo {
        width: 72px;
        height: 72px;
    }

    .fw-nugget-detail {
        padding: 20px;
    }

    .fw-legacy-article-title {
        font-size: 1.5rem;
    }

    .fw-evidence-proscons {
        grid-template-columns: 1fr;
    }

    /* On mobile the nugget_name (.fw-nugget-detail-name) is the title
       and the claim text (.fw-nugget-detail-claim) is body. Both used
       to render heading-sized, competing for the eye (#15). Reduce
       the claim to body-paragraph weight and bring the name down a
       touch to keep the visual hierarchy clear: title -> claim body ->
       evidence apparatus. */
    .fw-nugget-detail-name {
        font-size: 1.3rem;
        font-weight: 700;
        line-height: 1.25;
    }

    .fw-nugget-detail-claim {
        font-size: 1.02rem;
        font-weight: 500;
        line-height: 1.5;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
        color: var(--fw-charcoal);
    }
}

/* =============================================================================
   Contributor Tab Navigation
   ============================================================================= */

.fw-contribute-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}
.fw-contribute-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--fw-border);
    margin-bottom: 20px;
}
.fw-tab {
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--fw-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.fw-tab:hover {
    color: var(--fw-charcoal);
    text-decoration: none;
}
.fw-tab-active {
    color: var(--fw-dark-brown);
    border-bottom-color: var(--fw-warm-green);
    font-weight: 600;
}
@media (max-width: 768px) {
    .fw-contribute-tabs {
        gap: 0;
    }
    .fw-tab {
        flex: 1;
        text-align: center;
        padding: 10px 8px;
        font-size: 0.85rem;
    }
}

/* Get Vouched platform showcase: one engine, every field */
.gv-showcase { max-width: 940px; margin: 8px auto 0; text-align: center; }
.gv-showcase-title { font-family: Georgia, serif; color: var(--fw-dark-brown); font-size: 1.6rem; margin: 0 0 8px; }
.gv-showcase-sub { color: var(--fw-muted); max-width: 640px; margin: 0 auto 26px; line-height: 1.5; }
.gv-showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.gv-showcase-card { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 7px; padding: 20px 22px; background: var(--fw-cream); border: 1px solid var(--fw-light-sage); border-radius: 14px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.gv-showcase-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.09); border-color: var(--fw-soft-gold); }
.gv-showcase-field { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fw-soft-gold); font-weight: 700; }
.gv-showcase-name { font-family: Georgia, serif; font-size: 1.3rem; color: var(--fw-warm-green); }
.gv-showcase-example { color: var(--fw-charcoal); font-size: 0.95rem; line-height: 1.45; }
.gv-showcase-arrow { margin-top: 4px; font-size: 0.85rem; color: var(--fw-warm-green); font-weight: 600; }
.gv-showcase-ghost { background: transparent; border: 2px dashed var(--fw-soft-gold); }
.gv-showcase-ghost:hover { background: var(--fw-cream); border-color: var(--fw-warm-green); }
.gv-showcase-ghost .gv-showcase-name { color: var(--fw-soft-gold); }
@media (max-width: 600px) { .gv-showcase-grid { grid-template-columns: 1fr; } }

/* ===== Get Vouched platform: enterprise pillars ===== */
.gv-pillar { text-align: center; }
.gv-pillar-kicker { display: inline-block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--fw-soft-gold); margin-bottom: 8px; }
.gv-pillar-lead { max-width: 680px; margin: 0 auto 28px; color: var(--fw-charcoal); font-size: 1.05rem; line-height: 1.6; }

/* Insight dashboard mock */
.gv-dash { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--fw-light-sage); border-radius: 14px; padding: 22px 24px; box-shadow: 0 6px 22px rgba(0,0,0,.06); text-align: left; }
.gv-dash-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.gv-dash-title { font-family: Georgia, serif; font-size: 1.15rem; color: var(--fw-dark-brown); }
.gv-dash-sub { font-size: 0.76rem; color: var(--fw-muted); }
.gv-dash-row { display: grid; grid-template-columns: 1.4fr 1.2fr auto; align-items: center; gap: 10px 14px; padding: 10px 0; border-top: 1px solid var(--fw-light-sage); }
.gv-dash-label { font-weight: 600; color: var(--fw-charcoal); font-size: 0.92rem; }
.gv-dash-bar { grid-column: 1 / 2; grid-row: 2; height: 7px; background: var(--fw-light-sage); border-radius: 4px; overflow: hidden; }
.gv-dash-bar > span { display: block; height: 100%; background: #C0392B; border-radius: 4px; }
.gv-dash-note { font-size: 0.82rem; color: var(--fw-muted); }
.gv-dash-flag { justify-self: end; font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.gv-dash-flag.gv-red { color: #C0392B; background: #FBEAE8; }
.gv-dash-flag.gv-green { color: var(--fw-warm-green); background: var(--fw-light-sage); }
.gv-dash-gap { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--fw-soft-gold); font-size: 0.9rem; color: var(--fw-charcoal); }

/* Portable credential card */
.gv-credential { max-width: 460px; margin: 0 auto; background: linear-gradient(150deg, var(--fw-dark-brown), var(--fw-warm-green)); color: #fff; border-radius: 16px; padding: 26px 28px; text-align: left; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.gv-cred-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.gv-cred-seal { width: 40px; height: 40px; border-radius: 50%; background: var(--fw-soft-gold); color: var(--fw-dark-brown); display: flex; align-items: center; justify-content: center; font-family: Georgia, serif; font-weight: 700; }
.gv-cred-issuer { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.gv-cred-name { font-family: Georgia, serif; font-size: 1.7rem; margin-bottom: 10px; }
.gv-cred-stats { font-size: 0.95rem; opacity: 0.95; margin-bottom: 16px; line-height: 1.5; }
.gv-cred-stats b { color: var(--fw-soft-gold); }
.gv-cred-domains { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.gv-cred-domains span { font-size: 0.78rem; padding: 4px 11px; border-radius: 20px; background: rgba(255,255,255,0.14); }
.gv-cred-foot { font-size: 0.78rem; opacity: 0.8; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 12px; }

/* Two-up: tiered access + trust principle */
.gv-twoup { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gv-mini { background: #fff; border: 1px solid var(--fw-light-sage); border-radius: 14px; padding: 24px; text-align: left; }
.gv-mini-title { font-family: Georgia, serif; font-size: 1.2rem; color: var(--fw-dark-brown); margin: 0 0 8px; }
.gv-mini-text { color: var(--fw-charcoal); line-height: 1.55; margin: 0 0 16px; font-size: 0.95rem; }
.gv-tier { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 12px; padding: 7px 0; }
.gv-tier-name { font-weight: 600; font-size: 0.9rem; color: var(--fw-charcoal); }
.gv-tier-bar { height: 8px; background: var(--fw-light-sage); border-radius: 4px; overflow: hidden; }
.gv-tier-bar > span { display: block; height: 100%; background: var(--fw-warm-green); border-radius: 4px; }
.gv-tier-count { font-size: 0.82rem; color: var(--fw-muted); white-space: nowrap; }
.gv-trust-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gv-trust-chips span { font-size: 0.8rem; font-weight: 600; color: var(--fw-warm-green); background: var(--fw-light-sage); padding: 5px 12px; border-radius: 20px; }
.gv-alsopublic { border-top: 1px solid var(--fw-light-sage); }

/* ===== Public/Private fork chooser ===== */
.gv-fork { text-align: center; }
.gv-fork-lead { color: var(--fw-muted); margin: 0 0 26px; }
.gv-fork-stage { position: relative; }
.gv-fork-panel { display: none; }
.gv-fork-panel.is-active { display: block; animation: gv-fork-in 0.34s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes gv-fork-in { from { opacity: 0; transform: translateY(14px) scale(0.995); } to { opacity: 1; transform: none; } }

/* the two doors */
.gv-fork-doors { max-width: 780px; margin: 0 auto; }
.gv-fork-panel.gv-fork-doors.is-active { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gv-door { position: relative; overflow: hidden; text-align: left; background: linear-gradient(180deg, #ffffff, #fffdf8); border: 1px solid var(--fw-light-sage); border-radius: 18px; padding: 26px 28px; cursor: pointer; display: flex; flex-direction: column; gap: 7px; transition: border-color .2s, box-shadow .28s, transform .2s; font-family: inherit; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.gv-door::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--fw-warm-green); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.gv-door[data-open="private"]::before { background: var(--fw-soft-gold); }
.gv-door:hover { border-color: var(--fw-warm-green); box-shadow: 0 14px 34px rgba(0,0,0,.10); transform: translateY(-3px); }
.gv-door[data-open="private"]:hover { border-color: var(--fw-soft-gold); }
.gv-door:hover::before { transform: scaleX(1); }
.gv-door-icon { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 2px; transition: transform .2s; }
.gv-door:hover .gv-door-icon { transform: scale(1.06) rotate(-3deg); }
.gv-door-icon svg { width: 24px; height: 24px; }
.gv-door[data-open="public"] .gv-door-icon { background: var(--fw-light-sage); color: var(--fw-warm-green); }
.gv-door[data-open="private"] .gv-door-icon { background: color-mix(in srgb, var(--fw-soft-gold) 22%, #fff); color: var(--fw-soft-gold); }
.gv-door-kicker { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--fw-soft-gold); }
.gv-door[data-open="public"] .gv-door-kicker { color: var(--fw-warm-green); }
.gv-door-title { font-family: Georgia, serif; font-size: 1.4rem; color: var(--fw-dark-brown); line-height: 1.15; }
.gv-door-sub { color: var(--fw-charcoal); font-size: 0.95rem; line-height: 1.5; }
.gv-door-cta { margin-top: 8px; color: var(--fw-warm-green); font-weight: 600; font-size: 0.9rem; }
.gv-door[data-open="private"] .gv-door-cta { color: var(--fw-soft-gold); }
.gv-door-cta .gv-arr { display: inline-block; transition: transform .2s; }
.gv-door:hover .gv-door-cta .gv-arr { transform: translateX(5px); }

/* branch header as a floating pill */
.gv-branch-head { display: inline-flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 22px; background: #fff; border: 1px solid var(--fw-light-sage); border-radius: 30px; padding: 6px 8px; box-shadow: 0 3px 14px rgba(0,0,0,.05); flex-wrap: wrap; }
.gv-fork-back, .gv-branch-switch { border: none; background: var(--fw-light-sage); border-radius: 20px; padding: 6px 15px; font-size: 0.82rem; color: var(--fw-warm-green); cursor: pointer; font-family: inherit; font-weight: 600; transition: background .15s, color .15s; }
.gv-fork-back:hover, .gv-branch-switch:hover { background: var(--fw-warm-green); color: #fff; }
.gv-crumb { font-family: Georgia, serif; color: var(--fw-dark-brown); font-size: 1.05rem; padding: 0 6px; }

/* sub-options, staggered in */
.gv-branch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 13px; max-width: 780px; margin: 0 auto; }
.gv-suboption { position: relative; text-decoration: none; text-align: left; background: #fff; border: 1px solid var(--fw-light-sage); border-radius: 14px; padding: 15px 17px; display: flex; flex-direction: column; gap: 2px; transition: border-color .18s, transform .18s, box-shadow .18s; opacity: 0; animation: gv-sub-in .42s cubic-bezier(0.22,1,0.36,1) forwards; }
.gv-suboption:hover { border-color: var(--fw-warm-green); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.gv-suboption b { font-family: Georgia, serif; color: var(--fw-dark-brown); font-size: 1rem; }
.gv-suboption span { color: var(--fw-muted); font-size: 0.82rem; }
.gv-suboption::after { content: '\2192'; position: absolute; top: 14px; right: 15px; color: var(--fw-warm-green); opacity: 0; transform: translateX(-4px); transition: opacity .18s, transform .18s; }
.gv-suboption:hover::after { opacity: 1; transform: none; }
.gv-suboption-ghost { border-style: dashed; border-color: var(--fw-soft-gold); background: transparent; }
.gv-suboption-ghost b { color: var(--fw-soft-gold); }
@keyframes gv-sub-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.gv-branch-grid .gv-suboption:nth-child(1){animation-delay:.02s}
.gv-branch-grid .gv-suboption:nth-child(2){animation-delay:.06s}
.gv-branch-grid .gv-suboption:nth-child(3){animation-delay:.10s}
.gv-branch-grid .gv-suboption:nth-child(4){animation-delay:.14s}
.gv-branch-grid .gv-suboption:nth-child(5){animation-delay:.18s}
.gv-branch-grid .gv-suboption:nth-child(6){animation-delay:.22s}
.gv-branch-grid .gv-suboption:nth-child(7){animation-delay:.26s}
.gv-branch-grid .gv-suboption:nth-child(8){animation-delay:.30s}

@media (max-width: 600px) { .gv-fork-panel.gv-fork-doors.is-active { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .gv-fork-panel.is-active, .gv-suboption { animation: none !important; opacity: 1 !important; }
  .gv-door, .gv-door-icon, .gv-door-cta .gv-arr, .gv-suboption, .gv-suboption::after { transition: none !important; }
}

/* fork enhancements: field icons, brand tint, hover preview, background motif */
.gv-fork-stage { position: relative; min-height: 236px; }
.gv-fork-bg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; stroke: var(--fw-soft-gold); stroke-width: 1; fill: none; opacity: 0.07; pointer-events: none; }
.gv-fork-doors, .gv-branch-head, .gv-branch-grid { position: relative; z-index: 1; }
.gv-sub-ic { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; background: color-mix(in srgb, var(--sub-accent, var(--fw-warm-green)) 14%, #fff); color: var(--sub-accent, var(--fw-warm-green)); }
.gv-sub-ic svg { width: 17px; height: 17px; }
.gv-sub-name { color: var(--fw-muted); font-size: 0.82rem; }
.gv-sub-eg { color: var(--fw-charcoal); font-size: 0.8rem; line-height: 1.4; max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; transition: max-height .28s ease, opacity .28s ease, margin-top .28s ease; }
.gv-suboption:hover .gv-sub-eg { max-height: 64px; opacity: 1; margin-top: 7px; }
.gv-suboption:hover { border-color: var(--sub-accent, var(--fw-warm-green)); }
.gv-suboption::after { color: var(--sub-accent, var(--fw-warm-green)); }
@media (prefers-reduced-motion: reduce) { .gv-sub-eg { transition: none !important; } }

/* ===== Averral: what it is + how it works ===== */
.sch-what { text-align: center; padding-top: 8px; }
.sch-what-lead { max-width: 720px; margin: 0 auto 32px; font-size: 1.2rem; line-height: 1.6; color: var(--fw-charcoal); }
.sch-what-lead b { color: var(--fw-dark-brown); }
.sch-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 860px; margin: 0 auto; text-align: left; }
.sch-how-step { background: #fff; border: 1px solid var(--fw-light-sage); border-radius: 12px; padding: 20px 22px; }
.sch-how-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--fw-warm-green); color: #fff; font-weight: 700; font-size: 0.95rem; margin-bottom: 12px; }
.sch-how-step b { display: block; color: var(--fw-dark-brown); font-size: 1.02rem; margin-bottom: 6px; }
.sch-how-step p { color: var(--fw-muted); font-size: 0.92rem; line-height: 1.5; margin: 0; }
.sch-what-sub { max-width: 640px; margin: 34px auto 0; color: var(--fw-muted); font-size: 1rem; }
.sch-cta { max-width: 620px; margin: 22px auto 0; font-size: 0.98rem; line-height: 1.6; color: var(--fw-charcoal); }
.sch-cta b { color: var(--fw-dark-brown); }
.sch-cta a { color: var(--fw-warm-green); font-weight: 600; text-decoration: none; white-space: nowrap; border-bottom: 1px solid transparent; }
.sch-cta a:hover { border-bottom-color: var(--fw-warm-green); }
@media (max-width: 720px) { .sch-how { grid-template-columns: 1fr; } }

/* ===== Scholia: scholarly feature mocks ===== */
.sch-convo { max-width: 560px; margin: 0 auto; text-align: left; background: #fff; border: 1px solid var(--fw-light-sage); border-radius: 14px; padding: 22px 24px; box-shadow: 0 6px 22px rgba(0,0,0,.06); }
.sch-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.sch-who { width: 30px; min-width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sch-a { background: var(--fw-warm-green); }
.sch-b { background: var(--fw-soft-gold); }
.sch-text { color: var(--fw-charcoal); font-size: 0.95rem; line-height: 1.45; }
.sch-distil { text-align: center; color: var(--fw-muted); font-size: 0.8rem; letter-spacing: 0.04em; margin: 6px 0 12px; }
.sch-outnugget { background: var(--fw-cream); border: 1px solid var(--fw-soft-gold); border-radius: 12px; padding: 14px 16px; }
.sch-outnugget b { display: block; font-family: Georgia, serif; color: var(--fw-dark-brown); margin: 6px 0 4px; }
.sch-by { font-size: 0.82rem; color: var(--fw-muted); }
.sch-null { max-width: 560px; margin: 0 auto; text-align: left; background: #fff; border: 1px solid var(--fw-light-sage); border-left: 4px solid #8B8B8B; border-radius: 12px; padding: 20px 22px; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.sch-null-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #6b6b6b; background: #ECECEC; padding: 4px 10px; border-radius: 20px; margin-bottom: 10px; }
.sch-null b { display: block; font-family: Georgia, serif; font-size: 1.15rem; color: var(--fw-dark-brown); margin-bottom: 8px; }
.sch-null p { color: var(--fw-charcoal); line-height: 1.5; margin: 0 0 12px; }
.sch-twoup { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; max-width: 820px; margin: 0 auto; text-align: left; }
.sch-cite { background: #fff; border: 1px solid var(--fw-light-sage); border-radius: 14px; padding: 20px 22px; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.sch-cite b { display: block; font-family: Georgia, serif; color: var(--fw-dark-brown); margin: 8px 0 14px; line-height: 1.35; }
.sch-doi { display: flex; align-items: center; gap: 10px; font-family: ui-monospace, monospace; font-size: 0.82rem; color: var(--fw-muted); border-top: 1px solid var(--fw-light-sage); padding-top: 12px; }
.sch-citebtn { margin-left: auto; border: 1px solid var(--fw-warm-green); color: var(--fw-warm-green); background: #fff; border-radius: 6px; padding: 3px 12px; font-size: 0.78rem; cursor: pointer; font-family: inherit; }
@media (max-width: 720px) { .sch-twoup { grid-template-columns: 1fr; } }

/* Enemy beat: the consultant's watch */
.gv-enemy { text-align: center; background: var(--fw-light-sage); }
.gv-enemy-kicker { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--fw-soft-gold); margin: 0 0 12px; }
.gv-enemy-quote { font-family: Georgia, serif; font-size: 1.85rem; line-height: 1.32; color: var(--fw-dark-brown); max-width: 740px; margin: 0 auto 20px; font-style: italic; border: none; padding: 0; }
.gv-enemy-body { max-width: 640px; margin: 0 auto; color: var(--fw-charcoal); font-size: 1.05rem; line-height: 1.6; }

/* Ray's portrait + scarcity + closing beat */
.gv-ray-photo { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 20px; box-shadow: 0 6px 20px rgba(0,0,0,.16); border: 3px solid #fff; }
.gv-scarcity { font-size: 0.82rem; color: var(--fw-muted); margin-top: 12px; }
.gv-closing { text-align: center; background: var(--fw-light-sage); }
.gv-closing-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 16px; border: 3px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,.16); }
.gv-closing-quote { font-family: Georgia, serif; font-size: 1.9rem; font-style: italic; color: var(--fw-dark-brown); margin: 0 auto 12px; border: none; padding: 0; }
.gv-closing-text { color: var(--fw-charcoal); max-width: 520px; margin: 0 auto 22px; font-size: 1.05rem; line-height: 1.5; }
.gv-closing-cta { text-decoration: none; padding: 0.7rem 1.6rem; border-radius: 10px; display: inline-block; }

/* Compact, demoted pipeline for the platform pitch */
.gv-pipe-compact { text-align: center; padding-top: 24px; padding-bottom: 24px; }
.gv-pipe-compact-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fw-muted); font-weight: 700; margin: 0 0 8px; }
.gv-pipe-inline { font-family: Georgia, serif; font-size: 1.25rem; color: var(--fw-warm-green); margin-bottom: 8px; }
.gv-pipe-compact-note { color: var(--fw-muted); font-size: 0.9rem; max-width: 560px; margin: 0 auto; line-height: 1.5; }

@media (max-width: 720px) { .gv-twoup { grid-template-columns: 1fr; } .gv-dash-row { grid-template-columns: 1fr auto; } .gv-dash-bar { grid-column: 1 / -1; grid-row: 2; } .gv-enemy-quote { font-size: 1.4rem; } }
