/* /compare/ pages. Colours: VOO blue solid, VTI orange dashed (line style carries meaning too). */
:root { --ink:#1e293b; --muted:#475569; --line:#e2e8f0; --brand:#1d4ed8; --a:#1d4ed8; --b:#c2410c; }
* { box-sizing: border-box; }
body { margin:0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color:var(--ink); line-height:1.6; background:#fff; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.skip { position:absolute; left:-9999px; } .skip:focus { left:8px; top:8px; background:#fff; padding:8px; z-index:10; }
.staging-banner { background:#7c2d12; color:#fff; text-align:center; padding:6px 12px; font-size:.85rem; }
.site-header { display:flex; flex-wrap:wrap; gap:8px 24px; justify-content:space-between; align-items:center; padding:12px 16px; border-bottom:1px solid var(--line); }
.logo { font-weight:700; font-size:1.25rem; text-decoration:none; }
.site-header nav, footer { display:flex; flex-wrap:wrap; gap:4px 16px; }
.site-header nav a, footer a { display:inline-block; padding:6px 0; }
main { max-width: 820px; margin: 0 auto; padding: 16px; }
h1 { margin:.4em 0 .6em; } h2 { margin:2em 0 .6em; }
.crumbs, .source { font-size:.85rem; color:var(--muted); }
.answer { border-left:4px solid var(--brand); background:#eff6ff; padding:4px 16px; border-radius:0 8px 8px 0; }
.table-wrap { overflow-x:auto; }
table { border-collapse:collapse; width:100%; font-size:.95rem; }
caption { text-align:left; color:var(--muted); font-size:.85rem; padding-bottom:6px; }
th, td { border-bottom:1px solid var(--line); padding:8px 6px; text-align:left; vertical-align:top; }
thead th { border-bottom:2px solid #94a3b8; }
tr.group th { background:#f1f5f9; }
.tool { border:1px solid var(--line); border-radius:12px; padding:16px; }
.tool h3 { margin-top:0; }
.asof { background:#fff7ed; border:1px solid #fdba74; border-radius:8px; padding:8px 12px; font-size:.9rem; }
.fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; }
label { display:flex; flex-direction:column; font-size:.85rem; font-weight:600; gap:4px; min-width:0; }
input, select { font:inherit; font-size:1rem; padding:10px; border:1px solid #64748b; border-radius:8px; width:100%; min-height:46px; background:#fff; color:var(--ink); }
button, .btn-cta { font:inherit; font-weight:600; background:var(--brand); color:#fff; border:0; border-radius:8px; padding:12px 20px; min-height:46px; cursor:pointer; text-decoration:none; display:inline-block; text-align:center; }
button { margin-top:12px; }
.presets-label { margin:16px 0 6px; font-size:.85rem; font-weight:600; }
.presets { list-style:none; display:flex; flex-wrap:wrap; gap:8px; padding:0; margin:0; }
.presets a { display:inline-block; border:1px solid #64748b; border-radius:999px; padding:8px 14px; text-decoration:none; font-size:.9rem; }
.status { min-height:1.2em; margin:8px 0; font-size:.9rem; color:var(--muted); }
.msg { background:#f1f5f9; border-radius:8px; padding:8px 12px; font-size:.9rem; }
.msg-error { background:#fef2f2; border:1px solid #fca5a5; }
.cards { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.card-fund { border:1px solid var(--line); border-radius:10px; padding:10px 12px; display:flex; flex-direction:column; min-width:0; }
.card-ticker { font-weight:700; display:flex; gap:8px; align-items:center; }
.card-value { font-size:clamp(1.15rem,5vw,1.6rem); font-weight:700; overflow-wrap:anywhere; }
.key { width:22px; border-top:3px solid var(--a); } .key-vti { border-top:3px dashed var(--b); }
figure { margin:20px 0; } figcaption { font-weight:600; font-size:.9rem; }
.chart { width:100%; height:auto; display:block; }
.chart .grid { stroke:var(--line); } .chart .tick { font-size:10px; fill:var(--muted); }
.chart polyline { fill:none; stroke-width:1.6; stroke-linejoin:round; }
.chart .line-a { stroke:var(--a); } .chart .line-b { stroke:var(--b); stroke-dasharray:5 3; }
.chart .watermark { font-size:20px; font-weight:700; fill:#7c2d12; opacity:.16; }
summary { cursor:pointer; padding:10px 0; font-weight:600; }
.cta-box { background:#f8fafc; border:1px solid var(--line); border-radius:10px; padding:4px 14px; margin-top:16px; }
.cta-row { display:flex; flex-wrap:wrap; gap:10px; } .cta-row a { flex:1 1 220px; }
footer { justify-content:center; border-top:1px solid var(--line); padding:20px 16px; margin-top:32px; }
#results[aria-busy="true"] { opacity:.5; }
label.wide { grid-column: 1 / -1; max-width: 320px; }
