/* ═══════════════════════════════════════════════════════
   21VOX DCA YEAR PAGES: /dca-calculator/since-2013 … /since-2025
   A Readout in "The Instrument" family. Loaded after styles.css and css/tool.css,
   which supply the head, answer card, bars, chart frame, reading column, FAQ and band.
   Markup: scripts/generate-dca-pages.js (regenerate the pages; never edit them by hand).
   ═══════════════════════════════════════════════════════ */

.dy-k-btc { --k: var(--tl-btc); }
.dy-k-base { --k: var(--tl-base); }

/* ── Breadcrumb. A <nav>: undo styles.css's nav {} and nav a {} rules (and their phone display: none) ── */
.tl nav.dy-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 9px; margin: 0 0 14px; font-size: 13px; line-height: 1.4; color: var(--tl-dim); }
.tl .dy-crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--tl-muted); text-decoration: none; }
.tl .dy-crumbs a:hover { color: var(--orange); }
.dy-crumbs [aria-current="page"] { color: var(--tl-quiet); }

/* ── Head: the h1's accent stays on one line; the as-of chip sits where the tools put their live price ── */
.dy-head h1 em { white-space: nowrap; }
.dy-asof { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0; padding: 6px 12px; border: 1px solid var(--tl-line); border-radius: 999px; font-family: var(--mono); font-size: 11px; line-height: 1.4; color: var(--tl-quiet); }
.dy-asof span[aria-hidden] { color: var(--tl-dim); }

/* ── Results ── */
.dy-results { margin-top: 28px; }

/* Start-year switcher: the answer card's bottom row (and again at the end of the page) */
.tl nav.dy-years { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0; }
.dy-answer .dy-years { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--tl-warm-line); }
.dy-years-k { flex: none; }
.tl .dy-years-list { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tl .dy-years-list li { margin: 0; }
.tl .dy-years .dy-year { min-height: 40px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tl-soft); text-decoration: none; }
.tl .dy-years .dy-year:hover { color: var(--tl-text); }
.tl .dy-years .dy-year[aria-current="page"] { border-color: var(--orange); background: var(--orange); color: var(--tl-ink); cursor: default; }

/* Key figures: the rest of the old results grid */
.dy-figs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; }
.dy-fig { display: flex; flex-direction: column; min-width: 0; padding: 16px; background: var(--tl-card); border: 1px solid var(--tl-line); border-radius: 14px; }
.dy-fig dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; line-height: 1.4; text-transform: uppercase; color: var(--tl-muted); }
.dy-fig-v { margin: 8px 0 0; font-family: var(--serif); font-size: 28px; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--tl-text); }
.dy-fig-v small { font-size: 0.6em; color: var(--tl-quiet); }
.dy-fig-v.up { color: var(--tl-up); }
.dy-fig-v.dn { color: var(--tl-down); }
.dy-fig-s { margin: 4px 0 0; font-size: 13px; line-height: 1.4; font-variant-numeric: tabular-nums; color: var(--tl-muted); overflow-wrap: anywhere; }

/* ── Reading column ── */
/* The crashes, each with its depth as a bar */
.tl-read ul.dy-dd { list-style: none; margin: 4px 0 8px; padding: 0; border-bottom: 1px solid var(--tl-line); }
.tl-read .dy-dd li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 220px) 56px; gap: 4px 18px; align-items: center; margin: 0; padding: 12px 0; border-top: 1px solid var(--tl-line); }
.dy-dd-name { min-width: 0; }
.dy-dd-name strong { display: block; font-size: 17px; line-height: 1.35; }
.dy-dd-range { display: block; margin-top: 2px; font-family: var(--mono); font-size: 12px; line-height: 1.4; font-variant-numeric: tabular-nums; color: var(--tl-muted); }
.dy-dd-track { height: 10px; border-radius: 3px; background: var(--tl-track); overflow: hidden; }
.dy-dd-fill { display: block; height: 100%; border-radius: 3px; background: var(--tl-down); }
.tl-read p.dy-dd-note { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--tl-muted); }
.dy-dd-pct { text-align: right; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--tl-down); }

/* Into the calculator */
.dy-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin: 40px 0 32px; padding: 22px 24px; background: var(--tl-warm); border: 1px solid var(--tl-answer-line); border-radius: 16px; }
.dy-cta > div { flex: 1 1 300px; min-width: 0; }
.tl-read .dy-cta h3 { margin: 6px 0 4px; font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.15; }
.tl-read .dy-cta p:not(.tl-k) { margin: 0; font-size: 16px; line-height: 1.55; color: var(--tl-soft); }
.tl-read .dy-cta .tl-k { margin: 0; font-size: 11px; line-height: 1.4; color: var(--orange); }
.tl-read a.dy-cta-btn { flex: none; gap: 8px; min-height: 48px; padding: 0 20px; font-size: 16px; color: var(--tl-ink); text-decoration: none; }
.tl-read a.dy-cta-btn:hover { color: var(--tl-ink); }

.dy-read > section + section { margin-top: 56px; }
.dy-faq { margin-top: 52px; }
.dy-end h2 { margin: 0 0 16px; font-size: 28px; }
.tl-read .dy-note { margin: 40px 0 0; font-size: 13px; line-height: 1.6; color: var(--tl-dim); }

/* ── Tablets and small laptops: figures in two rows of three ── */
@media (max-width: 1199px) {
    .dy-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (pointer: coarse) {
    .tl .dy-crumbs a { min-height: 44px; }
    .tl .dy-years .dy-year { min-height: 44px; }
}

/* ── Phones ── */
@media (max-width: 640px) {
    .dy-results { margin-top: 22px; }
    .tl-head.dy-head { gap: 14px; }
    .dy-asof { padding: 0; border: 0; border-radius: 0; color: var(--tl-muted); }
    /* One row of years that scrolls sideways inside the card, edges faded */
    .tl .dy-answer nav.dy-years { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 10px; }
    .tl .dy-answer .dy-years-list { min-width: 0; flex-wrap: nowrap; margin: 0 -20px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%); }
    .dy-answer .dy-years-list::-webkit-scrollbar { display: none; }
    .dy-answer .dy-years-list li { flex: none; }
    .dy-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .dy-fig { padding: 14px; }
    .dy-fig-v { font-size: 23px; }
    .tl-read .dy-dd li { grid-template-columns: minmax(0, 1fr) 56px; }
    .dy-dd-name { grid-column: 1 / -1; }
    .dy-cta { padding: 20px; }
    .tl-read .dy-cta h3 { font-size: 24px; }
    .tl-read a.dy-cta-btn { width: 100%; }
    .dy-read > section + section { margin-top: 44px; }
    .dy-faq { margin-top: 44px; }
    .dy-end h2 { font-size: 24px; }
}
