.primary-nav { gap: 16px; }
.sample-hero { padding-block: 64px 38px; }
.sample-hero h1 { font-size: clamp(2.8rem, 5vw, 4.4rem); }
.sample-hero .lede { max-width: 850px; }
.sample-disclosure { display: inline-block; color: #53657a; background: #edf3f8; padding: 9px 13px; border-left: 3px solid #7895ad; font-size: .875rem; margin-top: 14px; }
.sample-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-bottom: 70px; }
.sample-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 8px 30px #06244c09; }
.sample-card-content { padding: 28px; display: flex; flex: 1; flex-direction: column; }
.sample-card-content h2 { font: 700 1.6rem/1.2 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -.025em; }
.sample-card-content p { color: var(--muted); }
.sample-card-content .button { align-self: flex-start; margin-top: auto; }
.sample-card .eyebrow { font-size: .875rem; }
.sample-preview { padding: 24px 26px 12px; min-height: 302px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.sample-preview .chart-svg { height: 148px; margin-top: 10px; }
.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; }
.sample-preview.dark { background: var(--navy); color: white; }
.sample-preview-label { display: flex; justify-content: space-between; gap: 15px; font-size: .875rem; font-weight: 700; margin-bottom: 14px; }
.sample-preview-value { font-size: 2.4rem; font-weight: 780; letter-spacing: -.035em; line-height: 1.15; }
.sample-preview-value small { font-size: .875rem; display: block; font-weight: 450; letter-spacing: 0; margin-top: 8px; }
.mini-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mini-metrics strong { display: block; font-size: 1.5rem; }
.mini-metrics span { font-size: .875rem; }
.sample-report { padding-bottom: 65px; }
.sample-breadcrumb { font-size: .9rem; margin: 24px 0 0; color: var(--blue); }
.sample-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; margin: 20px 0 26px; }
.sample-control { display: grid; gap: 7px; font-weight: 700; font-size: .9rem; }
.sample-control select { padding: 12px 38px 12px 14px; border: 1px solid #98aabd; background: white; border-radius: 6px; color: var(--navy); font: inherit; }
.sample-control input[type=range] { width: min(300px, 100%); accent-color: var(--blue); min-height: 32px; }
.sample-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 28px; }
.sample-kpi { border: 1px solid var(--line); border-top: 3px solid var(--blue); background: white; padding: 20px; }
.sample-kpi span { color: #53657a; font-size: .875rem; display: block; }
.sample-kpi strong { font-size: clamp(1.65rem,2.5vw,2.3rem); font-weight: 780; display: block; line-height: 1.2; letter-spacing: -.03em; margin: 12px 0 10px; color: var(--navy); }
.sample-kpi small { font-size: .875rem; display: block; line-height: 1.4; color: #53657a; }
.sample-split { display: grid; grid-template-columns: 1.45fr 1fr; gap: 26px; margin-bottom: 28px; align-items: start; }
.report-panel { min-width: 0; padding: 28px; border: 1px solid var(--line); background: white; border-radius: 8px; margin-bottom: 24px; }
.report-panel h2 { font: 750 1.4rem/1.3 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -.025em; }
.report-panel h3 { margin-top: 24px; }
.report-panel p:last-child { margin-bottom: 0; }
.report-panel.subtle { background: #f1f5f9; }
.report-panel.navy { background: var(--navy); color: #d7e2f0; }
.report-panel.navy h2, .report-panel.navy h3, .report-panel.navy strong { color: white; }
.report-panel.navy a { color: white; }
.report-note { color: #53657a; font-size: .9rem; line-height: 1.65; }
.report-table-wrap { overflow-x: auto; max-width: 100%; border-radius: 6px; }
.report-table { width: 100%; border-collapse: collapse; font-size: .94rem; font-variant-numeric: tabular-nums; }
.report-table th { padding: 13px 14px; text-align: right; background: #edf3f8; color: var(--navy); font-size: .875rem; white-space: nowrap; }
.report-table th:first-child, .report-table td:first-child { text-align: left; }
.report-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.report-table tr.total { font-weight: 800; color: var(--navy); background: #f6f9fc; }
.report-table .wrap { white-space: normal; min-width: 190px; }
.report-table caption { text-align: left; padding: 0 0 15px; color: #53657a; font-size: .9rem; }
.favorable { color: #286039; }
.unfavorable { color: #934520; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .875rem; color: #53657a; margin: 8px 0 15px; }
.chart-legend span::before { content: ''; display: inline-block; width: 22px; height: 4px; margin-right: 7px; vertical-align: middle; background: var(--blue); }
.chart-legend .budget::before { background: #8a9bad; }
.chart-legend .target::before { background: #b35f39; }
.sample-findings { padding-left: 22px; margin: 12px 0 0; }
.sample-findings li { margin-bottom: 17px; padding-left: 4px; }
.ai-mark { display: inline-block; border: 1px solid #b7c9d9; background: #edf3f8; color: var(--blue); padding: 5px 9px; border-radius: 4px; font-size: .875rem; font-weight: 700; margin-bottom: 13px; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.review-grid h3 { font-size: 1.08rem; }
.review-grid .report-note { font-size: .94rem; }
.sample-math { background: #edf3f8; padding: 16px 20px; font-variant-numeric: tabular-nums; border-left: 3px solid var(--blue); margin: 20px 0; }
.report-toolbar-links { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }
.sample-end { padding: 35px; border-left: 4px solid var(--green); background: #f1f5f9; margin-top: 30px; }
.sample-end h2 { font-size: 1.8rem; }
.sample-end .actions { margin-top: 20px; }
select:focus-visible, input:focus-visible { outline: 3px solid #70ab54; outline-offset: 3px; }
@media (max-width:1100px) {
 .sample-kpis { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:760px) {
 .sample-grid, .sample-split, .review-grid { grid-template-columns: 1fr; }
 .sample-hero { padding-block: 38px 22px; }
 .report-panel { padding: 20px; }
 .sample-kpis { gap: 10px; }
 .sample-kpi { padding: 15px; }
 .sample-toolbar { align-items: stretch; }
 .sample-toolbar .sample-control { width: 100%; }
 .sample-preview { min-height: 210px; }
}
@media print {
 .sample-toolbar, .sample-breadcrumb, .sample-end, .sample-disclosure { display:none; }
 .sample-kpis { grid-template-columns:repeat(4,1fr); }
 .report-panel, .sample-kpi { break-inside:avoid; }
 .report-table-wrap { overflow:visible; }
 .report-panel.navy { background:white; color:black; }
 .report-panel.navy h2, .report-panel.navy h3, .report-panel.navy strong { color:black; }
}

/* Preserve readable chart labels on narrow screens. */
#dash-chart, #cash-chart { overflow-x: auto; }
#dash-chart .chart-svg, #cash-chart .chart-svg { min-width: 560px; }
.report-table tbody th { font-weight: 600; text-align: left; white-space: normal; }
