/* Transition Health Coverage Bridge — TBV house style (forked from va-affordability 9/2/26) */

/* --- Brand tokens (shared across all TBV tools) --- */
:root {
    --primary: #1a365d;
    --primary-light: #2b6cb0;
    --accent: #e53e3e;
    --accent-gold: #C4A55A;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-light: #ffffff;
    --bg-page: #edf2f7;
    --bg-surface: #f7fafc;
    --bg-card: #ffffff;
    --border-color: #cbd5e0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --green: #276749;
    --green-light: #38a169;
    --warning-bg: #fffaf0;
    --warning-border: #ed8936;
    --content-w: min(1800px, 96vw);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    margin: 0;
    padding: 24px;
    line-height: 1.55;
}
main { max-width: var(--content-w); margin: 0 auto; }
a { color: var(--primary-light); }

/* --- Header (house standard) --- */
.header-container { text-align: center; margin-bottom: 32px; }
.brand-header { margin-bottom: 8px; position: relative; }
.home-btn {
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary);
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    font-weight: 600;
}
.home-btn:hover { background-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.home-btn--tools { left: auto; right: 0; background-color: var(--primary); color: var(--text-light); border: none; }
.home-btn--tools:hover { background-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.brand-name { font-size: 1.6em; font-weight: 800; letter-spacing: -0.02em; }
.brand-the, .brand-better { color: var(--primary); }
.brand-veteran { color: var(--accent-gold); }
h1 { text-align: center; color: var(--primary); margin: 0 0 8px; font-size: 1.9em; letter-spacing: -0.02em; }
.tool-subtitle { font-size: 1em; color: var(--text-secondary); margin: 0 auto; max-width: 720px; line-height: 1.5; }
#tour-restart {
    margin-top: 10px;
    background: none;
    border: 1.5px dashed var(--accent-gold);
    color: #8B6914;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
}
#tour-restart:hover { background: #faf6ec; }

h2 { color: var(--primary); border-bottom: 2px solid var(--primary-light); padding-bottom: 12px; margin-top: 0; font-size: 1.15em; letter-spacing: -0.01em; }
h3 { color: var(--primary); margin-top: 0; font-size: 1.05em; letter-spacing: -0.01em; }

/* --- Section containers --- */
.section-container {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}
#about-this-tool {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}
#about-this-tool p { margin: 0; }

/* --- Mode pills --- */
#mode-pills { margin-bottom: 20px; }
.mp-label { font-weight: 800; color: var(--primary); margin: 0 0 8px; }
.mp-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mode-pill {
    border: 1.5px solid var(--border-color); background: var(--bg-card);
    border-radius: 999px; padding: 9px 15px; font-size: 0.88rem; font-weight: 600;
    color: var(--text-secondary); cursor: pointer; transition: 0.15s;
}
.mode-pill:hover { border-color: var(--accent-gold); }
.mode-pill.active { background: var(--primary); border-color: var(--primary); color: var(--text-light); }
.mode-briefing { margin: 10px 0 0; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 10px 14px; font-size: 0.9rem; color: var(--primary); }

/* --- Inputs --- */
.start-here-badge {
    display: inline-block; background: var(--accent-gold); color: var(--primary);
    font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
    border-radius: 999px; padding: 5px 13px; margin-bottom: 16px;
}
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.input-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 16px; }
.fg-field { margin-bottom: 12px; }
.fg-field label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 5px; }
.fg-field input, .fg-field select {
    width: 100%; padding: 9px 10px; border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm); font-size: 0.92rem; background: var(--bg-card); color: var(--text-primary);
}
.fg-field input:focus, .fg-field select:focus { outline: none; border-color: var(--accent-gold); }
.field-hint { font-size: 0.78rem; color: var(--text-secondary); margin: 4px 0 0; }
.field-hint strong { color: var(--green); }

#live-strip {
    margin: 16px 0 4px; background: #faf6ec; border: 1px solid var(--accent-gold);
    border-radius: var(--radius-md); padding: 12px 16px; font-size: 0.95rem; color: var(--primary); min-height: 44px;
}
.compare-btn {
    display: block; width: 100%; margin-top: 14px; background: var(--primary); color: var(--text-light);
    font-size: 1.08rem; font-weight: 800; border: none; border-radius: var(--radius-md);
    padding: 15px; cursor: pointer; transition: 0.15s;
}
.compare-btn:hover { background: var(--primary-light); }

/* --- Hero verdict --- */
.verdict-card { background: var(--primary); color: var(--text-light); border-radius: var(--radius-lg); padding: 24px 26px; margin-bottom: 14px; box-shadow: var(--shadow-lg); }
.v-kicker { color: var(--accent-gold); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; }
.v-line { font-size: 1.22rem; line-height: 1.45; margin: 0; }
.v-line strong { color: var(--accent-gold); }
.v-sub { margin: 10px 0 0; font-size: 0.93rem; color: #d3dce8; }
.v-warning { color: #ffd9d9; }

/* The punchline band — what the family actually pays */
@keyframes cost-glow {
    from { box-shadow: 0 0 0 0 rgba(196, 165, 90, 0.6); }
    to   { box-shadow: 0 0 0 16px rgba(196, 165, 90, 0); }
}
.v-cost {
    background: linear-gradient(135deg, #C4A55A, #dcc07a);
    color: var(--primary);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin: 14px 0 4px;
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.5;
    animation: cost-glow 2.2s ease-out infinite;
}
.v-cost strong { font-size: 1.22em; color: #12283f; }
.vc-label { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #6b5518; margin-bottom: 4px; }
@media (prefers-reduced-motion: reduce) { .v-cost { animation: none; } }

/* Matching highlight on the table's bottom-line row */
.cmp-table tr.punchline-row td { background: #faf6ec; font-weight: 600; border-top: 2px solid var(--accent-gold); }

/* --- Hero capture --- */
#hero-capture { background: #faf6ec; border: 1.5px solid var(--accent-gold); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.hc-line { font-size: 0.98rem; color: var(--primary); margin: 0 0 10px; }
.hc-form { display: flex; gap: 8px; flex-wrap: wrap; }
.hc-form input, #email-results-form input {
    flex: 1; min-width: 220px; padding: 11px 12px; border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm); font-size: 0.95rem;
}
.action-btn { background: var(--primary); color: var(--text-light); font-weight: 800; border: none; border-radius: var(--radius-sm); padding: 11px 18px; cursor: pointer; font-size: 0.92rem; }
.action-btn:hover { background: var(--primary-light); }
.action-btn.secondary { background: var(--bg-card); color: var(--primary); border: 1.5px solid var(--primary); }
.action-btn[disabled] { opacity: 0.6; cursor: wait; }
.hc-hint { font-size: 0.76rem; color: var(--text-secondary); margin: 8px 0 0; }
.email-status { font-size: 0.85rem; margin: 6px 0 0; min-height: 1.1em; }
.email-status.success { color: var(--green-light); }
.email-status.error { color: var(--accent); }

/* --- Results --- */
.results-title-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.results-title-row h2 { border: none; padding-bottom: 0; margin: 0; font-size: 1.3em; }
.retake-btn { background: none; border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 7px 12px; font-size: 0.82rem; color: var(--text-secondary); cursor: pointer; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-bottom: 8px; }
.cmp-table th, .cmp-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-color); text-align: left; }
.cmp-table th { color: var(--primary); font-size: 0.85rem; }
.cmp-table th.best-col { color: #8B6914; }
.best-tag { display: inline-block; margin-left: 7px; background: var(--accent-gold); color: var(--primary); font-size: 0.68rem; font-weight: 800; border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.cmp-table td.num, .cmp-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-note { font-size: 0.82rem; color: var(--text-secondary); margin: 8px 0 4px; }

.callout { border-radius: var(--radius-md); padding: 16px 18px; margin: 16px 0; }
.callout h3 { margin-bottom: 8px; }
.callout p { font-size: 0.92rem; margin: 0 0 6px; }
.callout-gold { background: #faf6ec; border: 1.5px solid var(--accent-gold); }
.callout-gold h3 { color: #8B6914; }
.callout-red { background: var(--warning-bg); border: 1.5px solid var(--warning-border); }
.callout-red h3 { color: var(--accent); }
.callout-note { background: var(--bg-surface); border: 1px solid var(--border-color); }
.callout-note h3 { color: var(--text-secondary); }

/* Comparison table: ineligible benefit columns explain themselves */
.cmp-table th.na-col { color: var(--text-secondary); font-weight: 600; }
.na-cell { color: var(--text-secondary); font-size: 0.88rem; vertical-align: top; background: var(--bg-surface); border-left: 1px solid var(--border-color); max-width: 240px; }
.cell-muted { color: #a0aec0; font-size: 0.85rem; }

#family-plan { margin: 16px 0; }
.state-prog { border-left: 3px solid var(--accent-gold); padding: 6px 0 6px 14px; margin-bottom: 10px; }
.state-prog p { font-size: 0.9rem; color: var(--text-secondary); margin: 4px 0 0; }
.prog-scope { font-weight: 600; color: var(--primary) !important; font-size: 0.84rem !important; }
.state-mismatch { margin-bottom: 14px; }

#email-results-container { border: 2px solid var(--accent-gold); border-radius: var(--radius-md); margin-top: 20px; padding: 16px 18px; }
#email-results-form { display: flex; gap: 8px; flex-wrap: wrap; }
#action-bar { display: flex; gap: 12px; justify-content: center; margin-top: 20px; margin-bottom: 4px; flex-wrap: wrap; }
#action-bar .action-btn { flex: 0 1 auto; min-width: 130px; }

/* Gold attention pulse on both email captures (house pattern) */
@keyframes hc-glow {
    from { box-shadow: 0 0 0 0 rgba(196, 165, 90, 0.45), var(--shadow-md); }
    to   { box-shadow: 0 0 0 14px rgba(196, 165, 90, 0), var(--shadow-md); }
}
#hero-capture, #email-results-container { animation: hc-glow 2.2s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { #hero-capture, #email-results-container { animation: none; } }

/* --- FAQ (house standard — gold +/− toggles, no native markers) --- */
.faq-section h2 { margin-bottom: 16px; }
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    background-color: var(--bg-surface);
    transition: background-color 0.15s ease;
}
.faq-item[open] {
    background-color: var(--bg-card);
    box-shadow: var(--shadow-sm);
}
.faq-item summary {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 1em;
    color: var(--primary);
    list-style: none;
    line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
    content: '+';
    display: inline-block;
    width: 18px;
    margin-right: 6px;
    color: var(--accent-gold);
    font-weight: 700;
}
.faq-item[open] summary::before { content: '−'; }
.faq-item p {
    margin: 0;
    padding: 0 18px 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95em;
}

/* --- More tools (house standard) --- */
.more-tools {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.more-tools h3 { font-size: 1rem; color: #999; margin: 0 0 0.75rem; font-weight: 500; }
.more-tools .tools-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.more-tools .tools-links a { color: #C5A55A; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.more-tools .tools-links a:hover { color: #e0c675; text-decoration: underline; }

/* --- Footer --- */
footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85em;
    line-height: 1.55;
    padding: 16px 8px 8px;
    max-width: var(--content-w);
    margin: 0 auto;
}
footer a { color: var(--primary-light); }

/* --- Tour --- */
#tour-root[hidden] { display: none; }
/* Backdrop is a transparent layer — ALL dimming comes from the spotlight's
   9999px box-shadow, so the spotlighted section itself stays bright. */
#tour-backdrop { position: fixed; inset: 0; pointer-events: none; z-index: 900; }
#tour-spotlight { position: absolute; border-radius: var(--radius-md); box-shadow: 0 0 0 9999px rgba(10, 20, 35, 0.55); background: transparent; pointer-events: none; z-index: 901; transition: all 0.25s ease; }
#tour-tooltip { position: absolute; z-index: 902; background: var(--bg-card); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 16px 18px; max-width: 380px; }
#tour-step-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8B6914; margin: 0 0 4px; }
#tour-title { color: var(--primary); font-size: 1.02rem; margin: 0 0 6px; }
#tour-text { font-size: 0.88rem; color: var(--text-secondary); margin: 0 0 12px; }
#tour-controls { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
#tour-exit { background: none; border: none; color: var(--text-secondary); font-size: 0.82rem; cursor: pointer; text-decoration: underline; }
#tour-nav { display: flex; gap: 8px; }
#tour-back, #tour-next { border-radius: var(--radius-sm); padding: 8px 14px; font-size: 0.86rem; font-weight: 700; cursor: pointer; }
#tour-back { background: var(--bg-card); border: 1.5px solid var(--border-color); color: var(--text-secondary); }
#tour-next { background: var(--primary); border: none; color: var(--text-light); }

/* --- Mobile --- */
@media (max-width: 860px) {
    .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    body { padding: 14px; }
    h1 { font-size: 1.35rem; }
    .brand-header { padding-top: 44px; }
    .home-btn { top: 0; transform: none; }
    .home-btn--tools { top: 0; transform: none; right: 0; }
    #tour-tooltip { position: fixed !important; left: 12px !important; right: 12px; bottom: 12px; top: auto !important; max-width: none; width: auto; border-radius: 16px 16px 0 0; }
    .mp-row { flex-direction: column; }
    .mode-pill { text-align: left; }
}

/* --- Print --- */
@media print {
    #hero-capture, #email-results-container { animation: none; }
    .no-print, .home-btn, #mode-pills, #live-strip, .faq-section, .more-tools, #action-bar, #email-results-container, #tour-root, #tour-restart { display: none !important; }
    body { padding: 0; max-width: 100%; background: #fff; }
    .section-container { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; }
    .verdict-card { background: none; color: var(--text-primary); box-shadow: none; border: 1px solid #ddd; }
    .v-line strong, .v-kicker { color: var(--primary); }
    .v-sub { color: var(--text-secondary); }
}

/* Cash-flow footnote inside the punchline band */
.vc-note { display: block; font-size: 0.78rem; font-weight: 500; color: #5c4a15; margin-top: 6px; }

/* ── VA Healthcare Navigator additions ── */
.ladder-rung { border-left: 4px solid #c8ccd4; }
.ladder-rung.rung-achieved { border-left-color: #2e7d32; background: #f2f8f2; }
.ladder-rung.rung-next { border-left-color: #b8860b; background: #fdf8ec; box-shadow: 0 1px 6px rgba(184,134,11,.18); }
.ladder-rung .best-tag { margin-left: 8px; }
.ladder-rung summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ladder-rung summary::-webkit-details-marker { display: none; }
.ladder-rung .rung-toggle::before { content: '+'; font-weight: 800; font-size: 1.1rem; color: #8a8f99; }
.ladder-rung[open] .rung-toggle::before { content: '\2212'; }
.ladder-rung summary:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ladder-rung > p, .ladder-rung > .prog-scope { margin-top: 8px; }
#mode-pills .mp-label { text-align: center; }
#mode-pills .mp-row { justify-content: center; }
#mode-pills .mode-briefing { text-align: center; }
.hero-delta { padding-top: 12px; }
.hero-delta .cmp-table { margin-bottom: 0; }
.hero-delta .cmp-table th, .hero-delta .cmp-table td { padding: 8px 10px; }
.hero-delta .cmp-table td:last-child { background: #fdf8ec; }
#live-strip { text-align: center; }
/* Clickability affordance for collapsed rungs: brief staggered pulse + stronger toggle */
@keyframes rungPulse { 0%, 100% { box-shadow: none; } 50% { box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.28); } }
.ladder-rung:not([open]) { animation: rungPulse 1.8s ease-in-out 2 0.5s; }
.ladder-rung:not([open]):nth-of-type(2) { animation-delay: 0.8s; }
.ladder-rung:not([open]):nth-of-type(3) { animation-delay: 1.1s; }
.ladder-rung:not([open]):nth-of-type(4) { animation-delay: 1.4s; }
.ladder-rung:not([open]):nth-of-type(5) { animation-delay: 1.7s; }
.ladder-rung .rung-toggle::before { color: var(--accent-gold, #b8860b); font-size: 1.3rem; }
.ladder-rung summary:hover { background: rgba(184, 134, 11, 0.07); }
@media (prefers-reduced-motion: reduce) { .ladder-rung { animation: none !important; } }
/* Free-for-everyone: card grid, three-ish across on desktop */
.free-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.free-card { margin: 0; height: 100%; box-sizing: border-box; }
.free-card p { font-size: 0.88rem; }
.free-card .prog-scope { font-size: 0.75rem; }
/* Free cards: full boxes, not left-bar list items */
.free-card { border: 1px solid var(--border-color, #d9dde5); border-left: 1px solid var(--border-color, #d9dde5); border-radius: 10px; padding: 12px 14px; background: var(--bg-surface, #fff); }
/* Free cards are links */
a.free-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: box-shadow .14s, transform .14s; }
a.free-card:hover { box-shadow: 0 3px 12px rgba(16, 35, 64, 0.12); transform: translateY(-1px); }
a.free-card strong { color: var(--primary); }
.free-more { margin-top: auto; padding-top: 8px; font-size: 0.78rem; font-weight: 700; color: var(--accent-gold, #b8860b); }
.emergency-block { margin-top: 14px; }
.emergency-block p { margin: 6px 0; }

/* Work With Me header button (site-wide, added 8/17/26) */
.home-btn--wwm { left: auto; right: 114px; background: #C5A55A; color: #0e2340; font-weight: 700; }
.home-btn--wwm:hover { background: #b08f45; color: #0e2340; box-shadow: none; }

/* ── VA Affordability additions ── */
.form-grid { grid-template-columns: repeat(2, 1fr); }
.input-card h3 { margin-bottom: 10px; }
.fg-field .with-prefix { position: relative; }
.fg-field .with-prefix input { padding-left: 24px; }
.fg-field .with-prefix::before { content: '$'; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); font-size: 0.9rem; pointer-events: none; }
.fg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.va-comp-line { background: #faf6ec; border: 1px solid var(--accent-gold); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 0.86rem; color: var(--primary); margin-top: 6px; }
.va-comp-line strong { color: #8B6914; }
.form-drawer { margin-top: 16px; border: 1px dashed var(--border-color); border-radius: var(--radius-md); background: var(--bg-surface); }
.form-drawer > summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--primary); list-style: none; }
.form-drawer > summary::-webkit-details-marker { display: none; }
.form-drawer > summary::before { content: '+'; color: var(--accent-gold); font-weight: 800; margin-right: 8px; }
.form-drawer[open] > summary::before { content: '−'; }
.form-drawer .drawer-hint { font-weight: 500; color: var(--text-secondary); font-size: 0.84rem; margin-left: 6px; }
.form-drawer .drawer-body { padding: 4px 16px 16px; }
.form-drawer .form-grid { margin-top: 8px; }
.field-error { border-color: var(--accent) !important; box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.18); }
.form-error { color: var(--accent); font-size: 0.88rem; margin: 8px 0 0; text-align: center; min-height: 1.1em; }
#live-strip .lift { color: #8B6914; font-weight: 800; }

/* Required / optional affordances (house pattern from stay-or-separate) */
.req-tag {
    display: inline-block; vertical-align: middle; margin-left: 6px;
    background: rgba(196,165,90,0.16); color: #8B6914; border: 1px solid var(--accent-gold);
    font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em;
    padding: 2px 8px; border-radius: 999px;
}
.optional-tag { color: var(--text-secondary); font-weight: 400; font-size: 0.78rem; margin-left: 4px; }
.req-legend { font-size: 0.86rem; color: var(--text-secondary); margin: -6px 0 14px; }
.req-legend .req-tag { margin-left: 2px; margin-right: 2px; }
.fg-field.field-missing { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 8px; background: rgba(229,62,62,0.04); }
.input-card.field-missing { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Readiness questions */
.rq { margin-bottom: 12px; }
.rq p { font-size: 0.86rem; font-weight: 700; color: var(--text-secondary); margin: 0 0 6px; }
.rq-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.rq-opts label { border: 1.5px solid var(--border-color); border-radius: 999px; padding: 6px 12px; font-size: 0.83rem; cursor: pointer; background: var(--bg-card); }
.rq-opts label:has(input:checked) { background: var(--primary); color: var(--text-light); border-color: var(--primary); }
.rq-opts input { position: absolute; opacity: 0; pointer-events: none; }

/* Hero: two numbers */
.two-num { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 6px; }
.num-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-md); padding: 14px 16px; }
.num-card.comfortable { background: linear-gradient(135deg, #C4A55A, #dcc07a); color: var(--primary); border: none; animation: cost-glow 2.2s ease-out infinite; }
.num-card .nc-label { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; margin-bottom: 4px; }
.num-card .nc-amount { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.num-card .nc-sub { display: block; font-size: 0.8rem; margin-top: 4px; opacity: 0.9; }
.num-card.comfortable .nc-label { color: #6b5518; opacity: 1; }
.chip { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; }
.chip-gold { background: var(--accent-gold); color: var(--primary); }
.chip-navy { background: var(--primary); color: var(--text-light); }
.chip-red { background: var(--accent); color: #fff; }
.chip-green { background: var(--green-light); color: #fff; }
@media (prefers-reduced-motion: reduce) { .num-card.comfortable { animation: none; } }

/* Constraint ceilings */
.ceil-row td:first-child { font-weight: 600; }
.ceil-row.binding td { background: #fdf8ec; border-top: 2px solid var(--accent-gold); }
.ceil-why { display: block; font-size: 0.8rem; font-weight: 400; color: var(--text-secondary); margin-top: 2px; }

/* Gauge */
.gauge { position: relative; height: 18px; border-radius: 999px; background: linear-gradient(90deg, #38a169 0%, #C4A55A 40%, #ed8936 70%, #e53e3e 100%); margin: 12px 0 6px; }
.gauge-needle { position: absolute; top: -6px; width: 4px; height: 30px; background: var(--primary); border-radius: 2px; transform: translateX(-50%); }
.gauge-labels { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-secondary); }
.tier { display: inline-block; font-weight: 800; border-radius: var(--radius-sm); padding: 4px 10px; }
.tier-green { background: #f0fff4; color: var(--green); border: 1.5px solid var(--green-light); }
.tier-yellow { background: #fffaf0; color: #8B6914; border: 1.5px solid var(--accent-gold); }
.tier-red { background: #fff5f5; color: var(--accent); border: 1.5px solid var(--accent); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .cmp-table { min-width: 520px; }

/* Ladder table current-row highlight */
.cmp-table tr.you-row td { background: #fdf8ec; font-weight: 700; }

@media (max-width: 860px) {
    .form-grid, .two-num, .fg-two { grid-template-columns: 1fr; }
}
@media print {
    .form-drawer, #readiness-drawer { display: none !important; }
    .num-card.comfortable { animation: none; }
}

/* ── Transition Health Coverage Bridge additions ── */
.fg-field input[type="date"] { font-family: inherit; }
#live-strip .runway { font-size: 1.15rem; font-weight: 800; }
#live-strip .runway.zero { color: var(--accent); }
#live-strip .runway.ok { color: var(--green); }

/* Hero: three tiles */
.three-num { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 6px; }
.num-card.gap-zero .nc-amount { color: #9ae6b4; }
.num-card.gap-bad { background: rgba(229,62,62,0.22); border-color: rgba(229,62,62,0.5); }
.num-card.gap-bad .nc-amount { color: #feb2b2; }

/* Timeline strip */
.tl-wrap { margin: 12px 0 4px; }
.tl-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }
.tl-label { font-size: 0.82rem; font-weight: 700; color: var(--text-secondary); }
.tl-bar { position: relative; display: flex; height: 34px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); background: var(--bg-surface); }
.tl-seg { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.72rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; border-right: 1px solid rgba(255,255,255,0.35); min-width: 0; }
.tl-seg.uninsured { background: repeating-linear-gradient(135deg, #e53e3e 0 8px, #c53030 8px 16px); }
.tl-axis { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.tl-ticks { position: relative; height: 18px; font-size: 0.7rem; color: var(--text-secondary); }
.tl-tick { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.tl-tick::before { content: ''; display: block; width: 1px; height: 5px; background: var(--border-color); margin: 0 auto 1px; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 0.78rem; color: var(--text-secondary); margin-top: 8px; }
.tl-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; background: var(--sw); }
.tl-marker { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--primary); opacity: 0.85; }
.tl-marker::after { content: attr(data-label); position: absolute; top: -1px; left: 4px; font-size: 0.62rem; font-weight: 800; color: var(--primary); background: rgba(255,255,255,0.85); padding: 0 3px; border-radius: 3px; }
.path-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.path-tab { border: 1.5px solid var(--border-color); background: var(--bg-card); border-radius: 999px; padding: 6px 12px; font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); cursor: pointer; }
.path-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.path-tab .pt-cost { font-weight: 500; opacity: 0.85; margin-left: 4px; }

/* Clocks */
.clock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 10px; }
.clock { border: 1px solid var(--border-color); border-left: 5px solid var(--border-color); border-radius: 10px; padding: 10px 12px; background: var(--bg-surface); }
.clock.closing { border-left-color: var(--accent); background: #fff5f5; }
.clock.open { border-left-color: var(--accent-gold); }
.clock.missed { border-left-color: #a0aec0; opacity: 0.8; }
.clock.future { border-left-color: var(--primary-light); }
.clock.courtesy { border-style: dashed; }
.clock .ck-days { font-size: 1.25rem; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.clock.closing .ck-days { color: var(--accent); }
.clock.missed .ck-days { color: #718096; }
.clock .ck-date { font-size: 0.78rem; color: var(--text-secondary); }
.clock .ck-label { font-weight: 700; font-size: 0.88rem; margin: 4px 0 2px; color: var(--text-primary); }
.clock .ck-why { font-size: 0.8rem; color: var(--text-secondary); margin: 0; }
.clock .ck-form { font-size: 0.74rem; margin-top: 6px; }

/* Action plan */
.act-list { list-style: none; padding: 0; margin: 10px 0 0; }
.act { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.act:last-child { border-bottom: none; }
.act .a-date { font-size: 0.8rem; font-weight: 800; color: var(--primary); }
.act .a-date .a-rel { display: block; font-weight: 500; color: var(--text-secondary); font-size: 0.72rem; }
.act .a-title { font-weight: 700; font-size: 0.92rem; margin: 0 0 2px; }
.act .a-why { font-size: 0.84rem; color: var(--text-secondary); margin: 0; }
.act .a-form { font-size: 0.76rem; margin-top: 4px; }
.act.high .a-title::before { content: '●'; color: var(--accent); margin-right: 6px; font-size: 0.7em; vertical-align: middle; }
.act.low { opacity: 0.8; }

/* Path table */
.path-row.best td { background: #f0fff4; border-top: 2px solid var(--green-light); }
.path-row.wait td { background: #fff5f5; }
.path-notes { display: block; font-size: 0.78rem; color: var(--text-secondary); margin-top: 2px; font-weight: 400; }
.gap-chip { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: 0.7rem; font-weight: 800; }
.gap-chip.zero { background: #c6f6d5; color: var(--green); }
.gap-chip.bad { background: #fed7d7; color: var(--accent); }
.verify-note { font-size: 0.74rem; color: var(--text-secondary); }
.verify-note::before { content: '⚑ '; color: #8B6914; }

/* Ladder */
.ladder-row.current td { background: #fdf8ec; font-weight: 700; }
.status-yes { color: var(--green); font-weight: 700; }
.status-likely { color: #8B6914; font-weight: 700; }
.status-check { color: #8B6914; font-weight: 700; }
.status-blocked { color: var(--accent); font-weight: 700; }

@media (max-width: 860px) {
    .three-num { grid-template-columns: 1fr; }
    .tl-row, .tl-axis { grid-template-columns: 80px 1fr; }
    .act { grid-template-columns: 90px 1fr; }
}
@media print {
    .path-tabs { display: none !important; }
    .tl-seg { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .clock, .act { page-break-inside: avoid; }
}

/* Viewer toggle (service member vs. spouse view): one quiet line, off by default */
.viewer-line { margin: 8px 0 0; text-align: center; }
.viewer-toggle { background: none; border: 1px dashed var(--border-color); color: var(--text-secondary); border-radius: 999px; padding: 5px 14px; font-size: 0.8rem; cursor: pointer; }
.viewer-toggle:hover { border-color: var(--accent-gold); color: var(--primary); }
.viewer-toggle[aria-pressed="true"] { background: #faf6ec; border: 1.5px solid var(--accent-gold); color: #8B6914; font-weight: 700; }
.dep-list { list-style: none; padding: 0; margin: 8px 0 0; }
.dep-list li { padding: 6px 0; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; }
.dep-list li:last-child { border-bottom: none; }
.dep-list strong { color: var(--primary); }

/* Collapsed How It Works (house pattern for long methodology sections, copied from champva) */
.how-it-works p { color: var(--text-secondary); line-height: 1.6; font-size: 0.95em; margin: 0 0 12px 0; }
.how-it-works p:last-child { margin-bottom: 0; }
details.how-it-works summary {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    text-align: left;
}
details.how-it-works summary::-webkit-details-marker { display: none; }
details.how-it-works summary h2 { margin: 0; border-bottom: none; padding-bottom: 0; flex: 0 1 auto; min-width: 0; }
details.how-it-works .teaser { flex: 1; text-align: right; font-size: 0.88em; color: var(--text-secondary); font-style: italic; }
details.how-it-works .acc-chevron {
    flex: 0 0 auto;
    width: 10px; height: 10px;
    border-right: 2.5px solid var(--accent-gold);
    border-bottom: 2.5px solid var(--accent-gold);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -4px;
}
details.how-it-works[open] .acc-chevron { transform: rotate(225deg); margin-top: 4px; }
details.how-it-works[open] summary h2 { border-bottom: 2px solid var(--primary-light); padding-bottom: 12px; }
details.how-it-works[open] summary { margin-bottom: 10px; }
@media (max-width: 560px) { details.how-it-works .teaser { display: none; } }

/* 9/3/26 UX audit */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tl-seg.light { color: #1a202c; }
.tl-tick.first { transform: none; }
.tl-marker::after { top: 100%; margin-top: 2px; background: none; }
.tl-row { margin-bottom: 20px; }
.a-tag { display: inline-block; background: var(--accent); color: #fff; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 2px 7px; vertical-align: middle; margin-right: 4px; }
.act.high .a-title::before { content: none; }
.num-card.comfortable .nc-label { color: #4a3a0f; }
.fg-field input:focus-visible, .fg-field select:focus-visible, .mode-pill:focus-visible, .path-tab:focus-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media print {
    .num-card { border-color: #ccc !important; background: #fff !important; }
    .num-card .nc-amount, .num-card .nc-label, .num-card .nc-sub { color: var(--primary) !important; }
    .verdict-card .chip { border: 1px solid #ccc; color: var(--primary); background: #fff; }
}

/* Official links (government/administrator portals only) */
.official-links { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-surface); }
.official-links h4 { margin: 0 0 4px; color: var(--primary); font-size: 0.95rem; }
.official-links ul { margin: 8px 0 0; padding-left: 18px; columns: 2; column-gap: 24px; font-size: 0.88rem; }
.official-links li { break-inside: avoid; margin-bottom: 4px; }
@media (max-width: 860px) { .official-links ul { columns: 1; } }

/* Pre-separation checklist under the first action */
.act-sub { margin: 6px 0 4px; padding-left: 18px; font-size: 0.84rem; color: var(--text-secondary); }
.act-sub li { margin-bottom: 4px; }
