/* RetailInterest styles. Plain CSS, no build step, no web fonts.
   Look: calm, Apple-inspired, dark only (owner's decision, 26 Nov 2026): a near-black page,
   navy panels, large tight headings, one blue and a gold for actions.
   Colours live in the :root tokens only (tests/test_design_rules.py checks this). */
:root {
  --bg: #070b14;
  --ground: #111a2c;      /* panels and table heads */
  --fg: #eef2fb;
  --muted: #9aa7c0;
  --line: #33415f;
  --line-soft: #1d2942;
  --accent: #7aabff;
  --on-accent: #04122e;
  --brand: #0b1730;       /* header, hero, footer */
  --brand-2: #142c63;
  --brand-glow: #2f6bff;
  --on-brand: #ffffff;
  --on-brand-muted: #b9c6e0;
  --gold: #ffb547;        /* actions and highlights on the navy */
  --on-gold: #1c1403;
  --warn: #ffcf85;
  --good: #46c480;
  --draft-bg: #3a3010;
  --draft-fg: #f2d98a;
  --max: 66rem;
  --measure: 62ch;   /* body text: about 75 characters a line */
  --error: #f2b8b5;
  color-scheme: dark;
  --series-1: #3987e5;
  --series-2: #d95926;
  --radius: 18px;
  --radius-sm: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: .15em; text-decoration-thickness: .06em; }
a:hover { text-decoration-thickness: .12em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
input, select { accent-color: var(--accent); }
h1, h2 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
/* Skip link: off screen until it has keyboard focus. */
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--bg); color: var(--accent); padding: .75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.skip-link:focus { top: .5rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* Header: a navy bar that stays in view, with the menu. */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--brand) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--on-brand) 10%, transparent);
  color: var(--on-brand);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; font-size: 1.4375rem; letter-spacing: -.02em; text-decoration: none; color: var(--on-brand); padding: .6rem 0; }
.brand img { display: block; border-radius: 22%; box-shadow: 0 2px 10px rgb(0 0 0 / .25); }
.nav ul, .menu ul { list-style: none; margin: 0; padding: 0; }
.nav ul { display: flex; align-items: center; gap: .25rem; }
.nav a { display: inline-block; padding: .65rem .7rem; border-radius: 999px; font-size: .9375rem; font-weight: 500; color: var(--on-brand-muted); text-decoration: none; transition: background-color .15s ease-out, color .15s ease-out; }
.nav a:hover { color: var(--on-brand); background: color-mix(in srgb, var(--on-brand) 12%, transparent); }
.nav .current a { color: var(--on-brand); background: color-mix(in srgb, var(--on-brand) 16%, transparent); }
.nav .nav-cta { margin-left: .6rem; }
.nav .nav-cta a, .nav .nav-cta.current a { background: var(--gold); color: var(--on-gold); font-weight: 700; padding: .65rem 1.15rem; }
.nav .nav-cta a:hover { background: color-mix(in srgb, var(--gold) 85%, var(--on-brand)); color: var(--on-gold); }
.site-header :focus-visible { outline-color: var(--gold); }
.menu { display: none; }
.menu summary { list-style: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: color-mix(in srgb, var(--on-brand) 12%, transparent); }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 1.25rem; height: 2px; border-radius: 2px; background: var(--on-brand); transition: transform .18s ease-out; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu[open] .menu-icon { background: transparent; }
.menu[open] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu[open] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--brand); border-top: 1px solid color-mix(in srgb, var(--on-brand) 10%, transparent); padding: .5rem 22px 1.5rem; box-shadow: 0 24px 40px -20px rgb(0 0 0 / .5); }
.menu li + li { border-top: 1px solid color-mix(in srgb, var(--on-brand) 10%, transparent); }
.menu nav a { display: block; padding: .95rem 0; font-size: 1.1875rem; font-weight: 600; letter-spacing: -.01em; color: var(--on-brand); text-decoration: none; }
.menu .current a { color: var(--gold); }
@media (max-width: 1100px) { .nav { display: none; } .menu { display: block; } }

.main-body { padding-top: 3rem; padding-bottom: 5rem; }
h1 { font-size: 2.75rem; line-height: 1.08; letter-spacing: -.025em; font-weight: 700; margin: 0 0 1rem; max-width: 20ch; }
h2 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; margin: 4rem 0 1rem; }
.lede { font-size: 1.25rem; line-height: 1.42; letter-spacing: -.01em; max-width: var(--measure); margin: 0 0 1rem; }
@media (max-width: 720px) {
  .main-body { padding-top: 2rem; }
  h1 { font-size: 2.125rem; }
  h2 { font-size: 1.375rem; margin-top: 2.75rem; }
  .lede { font-size: 1.1875rem; }
}
.prose { max-width: 44rem; }
.prose li, .prose dd { max-width: var(--measure); }
.prose h2 { margin-top: 2.5rem; font-size: 1.375rem; }
.updated { color: var(--muted); font-size: .875rem; margin-top: 2.5rem; }
.draft {
  background: var(--draft-bg); color: var(--draft-fg);
  padding: .5rem .75rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .9rem;
}
.source { color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.key { font-size: .9rem; max-width: var(--measure); }
.terms dt { font-weight: 600; margin-top: 1rem; }
.terms dd { margin: .15rem 0 0; max-width: var(--measure); }
main p { max-width: var(--measure); }
.steps li, .notes li { margin-bottom: .5rem; max-width: var(--measure); }
.crumbs { font-size: .8125rem; color: var(--muted); margin: -1.3rem 0 .2rem; }
.crumbs a { display: inline-block; padding: .8rem 0; text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }

/* Tables: each sits in a rounded panel that scrolls sideways when it must. */
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .9rem; }
th, td { text-align: left; padding: .7rem .55rem; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
tr > :first-child { padding-left: 1.1rem; }
tr > :last-child { padding-right: 1.1rem; }
tbody tr:last-child > *, tfoot tr:last-child > * { border-bottom: 0; }
thead th { font-size: .78rem; color: var(--muted); font-weight: 600; vertical-align: bottom; white-space: normal; background: var(--ground); }
th[scope="row"] { font-weight: 600; }
.num { text-align: right; }
.cusip { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.table-scroll { overflow-x: auto; background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--radius); margin: 1rem 0; }
.table-scroll:has(> table.narrow) { display: inline-block; max-width: 100%; }
.table-scroll:has(> svg) { padding: 1.25rem 1rem .75rem; }
.table-scroll tbody tr:hover > * { background: var(--ground); }
table.narrow { width: auto; min-width: min(100%, 22rem); }
tfoot th, tfoot td { font-weight: 700; border-top: 1px solid var(--line); }
tr.week th { text-align: left; padding-top: .8rem; font-size: .875rem; background: var(--ground); color: var(--fg); }
tr.holiday td { color: var(--muted); font-style: italic; }
td.status-tentative { color: var(--muted); }
.wrap-cells { min-width: 40rem; }
.wrap-cells td, .wrap-cells th { white-space: normal; vertical-align: top; }
/* Keep the security name in view while a wide table scrolls sideways. */
.table-scroll tbody th[scope="row"], .table-scroll thead th:first-child {
  position: sticky; left: 0; z-index: 1;
}
.table-scroll tbody th[scope="row"] { background: var(--bg); }
/* A link that is alone in a table cell (the PDF releases): a bigger area to tap, same layout. */
td > a[href$=".pdf"] { display: inline-block; padding: .5rem; margin: -.5rem; }

/* Footer: the same navy as the header, with every page in columns. */
.site-footer { background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 80%, var(--brand-2))); color: var(--on-brand-muted); font-size: .875rem; padding: 3.5rem 0 2.5rem; }
.site-footer a { color: var(--on-brand); }
.site-footer :focus-visible { outline-color: var(--gold); }
.footer-top { display: flex; flex-wrap: wrap; gap: 2rem 2.5rem; padding-bottom: 2.5rem; }
.footer-top > nav { flex: 1 1 9rem; }
.footer-brand { flex: 1.6 1 16rem; }
.footer-brand p { margin: .5rem 0 0; max-width: 22rem; font-size: .9375rem; line-height: 1.5; }
.footer-title { margin: .6rem 0 .5rem; font-size: .8125rem; font-weight: 700; color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-block; padding: .55rem 0; font-size: .9375rem; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-notes { border-top: 1px solid color-mix(in srgb, var(--on-brand) 14%, transparent); padding-top: 1.5rem; }
.notice { margin: .35rem 0; max-width: 60rem; font-size: .8125rem; }
.copyright { margin: 1rem 0 0; font-size: .8125rem; }
@media (max-width: 860px) { .footer-brand { flex-basis: 100%; } }
@media (max-width: 480px) { .footer-top { gap: 1.25rem; } .footer-top > nav { flex-basis: 100%; } }

/* Home and hub: the latest rates as large figures, then the next auctions. */
.snapshot { margin: 2.5rem 0 0; }
.snapshot h2 { margin-top: 0; }
.snapshot section + section { margin-top: 3.5rem; }
.rates { list-style: none; margin: 1rem 0 .75rem; padding: .75rem; gap: .6rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); background: var(--ground); border-radius: var(--radius); }
.rates li { padding: 1rem 1rem 1.1rem; }
.rates-term { display: block; font-size: .8125rem; font-weight: 600; }
.rates-value { display: block; color: var(--accent); font-size: 2rem; line-height: 1.15; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: .15rem 0 .2rem; }
.rates-date { display: block; font-size: .75rem; color: var(--muted); white-space: nowrap; }
.snapshot .table-scroll { max-width: 44rem; }
.snapshot .table-scroll td, .snapshot .table-scroll th { white-space: normal; }
.status { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: color-mix(in srgb, var(--gold) 26%, transparent); color: var(--warn); }
.status-announced { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.status-results-out { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }

/* Home page */
.hero { color: var(--on-brand); background:
    radial-gradient(52rem 30rem at 88% -20%, color-mix(in srgb, var(--brand-glow) 70%, transparent), transparent 62%),
    radial-gradient(40rem 26rem at -10% 120%, color-mix(in srgb, var(--brand-glow) 38%, transparent), transparent 60%),
    linear-gradient(165deg, var(--brand), var(--brand-2)); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 3.5rem; align-items: center; padding-top: 4.5rem; padding-bottom: 5rem; }
.hero h1 { font-size: 3.5rem; line-height: 1.04; letter-spacing: -.035em; max-width: none; margin-bottom: 1.25rem; }
.hero .lede { color: var(--on-brand-muted); margin-bottom: 2rem; }
.hero .accent { color: var(--gold); }
.hero :focus-visible { outline-color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.btn { display: inline-block; padding: .85rem 1.6rem; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 1.0625rem; text-decoration: none; transition: transform .15s ease-out, background-color .15s ease-out; }
.btn:hover { background: color-mix(in srgb, var(--gold) 85%, var(--on-brand)); transform: translateY(-1px); }
.btn-quiet { background: color-mix(in srgb, var(--on-brand) 10%, transparent); color: var(--on-brand); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--on-brand) 45%, transparent); }
.btn-quiet:hover { background: color-mix(in srgb, var(--on-brand) 20%, transparent); }
.hero-proof { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 2rem 0 0; padding: 0; font-size: .875rem; color: var(--on-brand-muted); }
.hero-proof li::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold); margin-right: .55rem; transform: translateY(-.05em); }
.feature { background: var(--bg); color: var(--fg); border-radius: 24px; padding: 1.9rem 1.9rem 1.6rem; box-shadow: 0 2px 4px rgb(0 0 0 / .12), 0 30px 60px -24px rgb(0 0 0 / .55); }
.feature a { color: var(--accent); }
.feature h2 { font-size: 1rem; letter-spacing: 0; margin: 0; color: var(--muted); font-weight: 600; }
.feature-value { color: var(--accent); font-size: 4.5rem; line-height: 1; font-weight: 700; letter-spacing: -.045em; font-variant-numeric: tabular-nums; margin: .5rem 0 .6rem; }
.feature-note { font-size: .9375rem; margin: 0 0 1rem; }
.feature-range { font-size: .8125rem; color: var(--muted); margin: .5rem 0 .25rem; }
.feature .source { margin: 0; }
.delta { display: inline-block; padding: .05rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.spark { display: block; width: 100%; height: auto; overflow: visible; }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark-area { fill: color-mix(in srgb, var(--accent) 16%, transparent); stroke: none; }
.spark-dot { fill: var(--gold); stroke: var(--bg); stroke-width: 2.5; }
.rates-change, .rates-earn { display: block; font-size: .78rem; line-height: 1.4; }
.rates-change { font-weight: 600; margin-bottom: .45rem; }
.rates li { background: var(--bg); border-radius: 14px; }
.rates-earn { color: var(--muted); margin-bottom: .45rem; }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 0 2rem; }
.duo .table-scroll td, .duo .table-scroll th { white-space: normal; }
.records { display: flex; flex-wrap: wrap; gap: 1rem 3.5rem; margin: 1.25rem 0; }
.records dt { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.records div:last-child dd:not(.when) { color: var(--accent); }
.records dd { margin: 0; font-size: 2rem; line-height: 1.15; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.records dd.when { font-size: .8125rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.history-chart { display: block; width: 100%; min-width: 38rem; height: auto; }
.history-chart .grid { stroke: var(--line-soft); stroke-width: 1; }
.history-chart .axis { fill: var(--muted); font-size: 12px; }
.facts { list-style: none; padding: 0; margin: 1.25rem 0 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem 2rem; }
.facts li { border-top: 3px solid var(--accent); padding-top: .9rem; }
.facts h3 { font-size: 1.0625rem; letter-spacing: -.01em; margin: 0 0 .35rem; }
.facts p { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.facts a { white-space: nowrap; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-top: 3rem; padding-bottom: 3.5rem; }
  .hero h1 { font-size: 2.5rem; }
  .feature-value { font-size: 3.75rem; }
}

/* Home hub: four headline figures in the hero, each with its date and source. */
.figures-panel h2 { font-size: .875rem; font-weight: 600; letter-spacing: 0; color: var(--on-brand-muted); margin: 0 0 .8rem; }
.figures { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.figures li {
  display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.15rem 1rem; border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-brand) 12%, transparent), 0 24px 44px -26px rgb(0 0 0 / .7);
}
.figure-label { font-size: .8125rem; font-weight: 600; color: var(--on-brand-muted); }
.figure-value { font-size: clamp(1.35rem, 2.1vw, 1.75rem); line-height: 1.1; white-space: nowrap; font-weight: 700; letter-spacing: -.035em; color: var(--accent); font-variant-numeric: tabular-nums; }
.figures li:first-child .figure-value { color: var(--gold); }
.figure-note { font-size: .8125rem; line-height: 1.4; color: var(--fg); }
.figure-source { margin-top: auto; padding-top: .35rem; font-size: .75rem; color: var(--on-brand-muted); }
.figure-source a { color: var(--accent); }

/* Home hub: the next 14 days, one row per day. Event types are written out, not shown by colour alone. */
.agenda { list-style: none; margin: 1rem 0; padding: 0; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.agenda > li { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); gap: .25rem 1rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
.agenda > li:last-child { border-bottom: 0; }
.agenda-day { margin: 0; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.agenda ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.agenda ul li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .55rem; font-size: .9rem; line-height: 1.4; }
.agenda-note { color: var(--muted); font-size: .8125rem; }
.tag { display: inline-block; min-width: 4.6rem; text-align: center; padding: .08rem .45rem; border-radius: 999px; font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.tag-fed { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.tag-inflation { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }

/* Home hub: the directory, grouped by what a reader wants. */
.directory section + section { margin-top: 1.75rem; }
.directory h3 { margin: 0; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.directory .cards { margin: .75rem 0 0; }
.cards p.card-figure { margin-top: .7rem; color: var(--accent); font-weight: 600; font-size: .875rem; }

/* Home hub: the 12-month line beside the records. */
.history-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 1.5rem 2.5rem; align-items: center; }
.year-panel { background: var(--ground); border-radius: var(--radius); padding: 1rem 1.15rem .9rem; }
.year-title { margin: 0 0 .5rem; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.year-panel .feature-range { margin-bottom: 0; }
@media (max-width: 860px) {
  .history-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .hero-inner { padding-top: 2rem; padding-bottom: 2.5rem; gap: 1.75rem; }
  .hero h1 { font-size: 2rem; margin-bottom: .9rem; }
  .hero .lede { font-size: 1.0625rem; margin-bottom: 1.25rem; }
  .hero .btn { padding: .7rem 1.15rem; font-size: .9375rem; }
  .tag { min-width: 0; }
  .figures { gap: .6rem; }
  .figures li { padding: .9rem .9rem .85rem; }
  .figure-value { font-size: 1.3rem; }
  .agenda > li { grid-template-columns: minmax(0, 1fr); }
  .rates { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .5rem; gap: .5rem; }
  .rates li { padding: .8rem .8rem .9rem; }
  .rates-value { font-size: 1.5rem; }
}

/* Page tiles on the home page and the hub. The whole tile is the link. */
.cards { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .9rem; }
.cards li { position: relative; background: var(--ground); border-radius: var(--radius); padding: 1.4rem 1.5rem 1.5rem; transition: background-color .18s ease-out; }
.cards li:hover { background: color-mix(in srgb, var(--ground) 70%, var(--line)); }
.cards li:hover a { color: var(--accent); }
.cards a { font-weight: 700; font-size: 1.1875rem; letter-spacing: -.015em; color: var(--fg); text-decoration: none; display: inline-block; padding: .6rem 0; margin: -.6rem 0; }
.cards a::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.cards a::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .45em; border: solid var(--accent); border-width: .14em .14em 0 0; transform: translateY(-.08em) rotate(45deg); transition: transform .18s ease-out; }
.cards li:hover a::after { transform: translate(.2em, -.08em) rotate(45deg); }
.cards p { margin: .5rem 0 0; font-size: .9375rem; line-height: 1.45; color: var(--muted); }

/* Calculators */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; margin: 2rem 0; }
@media (max-width: 720px) { .calc { grid-template-columns: minmax(0, 1fr); } .calc-results { order: -1; } }
.calc-form, .calc-results { border-radius: var(--radius); padding: 1.5rem; }
.calc-form { border: 1px solid var(--line-soft); }
.calc-results { background: var(--ground); }
.field { margin: 0 0 1rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .3rem; padding: 0; }
.field label.radio { display: inline-block; font-weight: 400; margin-right: 1rem; padding: .6rem 0; }
.field input[type="number"], .field input[type="date"], .field select {
  width: 100%; min-height: 2.75rem; font: inherit; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--fg); font-variant-numeric: tabular-nums;
  transition: border-color .15s ease-out, box-shadow .15s ease-out;
}
.field input:focus, .field select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.with-unit { display: flex; align-items: center; gap: .5rem; }
.with-unit span { color: var(--muted); }
.calc-error { color: var(--error); font-size: .9rem; margin: 0; min-height: 1.2em; }
.calc-results dl { margin: 0; }
.calc-results dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.calc-results dt { color: var(--muted); font-size: .9375rem; }
.calc-results dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.calc-results .main dd { color: var(--accent); font-size: 1.75rem; line-height: 1.15; font-weight: 700; letter-spacing: -.03em; }
.calc-results .source { margin-bottom: 0; }
.formula { max-width: 44rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875rem; background: var(--ground); padding: .8rem 1rem; border-radius: var(--radius-sm); overflow-x: auto; }
/* Ladder calculator: the list of bills to tick. */
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .35rem .75rem; }
.field label.check { display: flex; align-items: baseline; gap: .5rem; font-weight: 400; margin: 0; padding: .2rem 0; min-height: 2.75rem; }
.check small { display: block; color: var(--muted); font-size: .8rem; }

/* Fed dot plot: server-drawn SVG, no script. One dot for each participant. */
.dots-chart { display: block; width: 100%; min-width: 34rem; max-width: 50rem; height: auto; }
.dots-chart .grid { stroke: var(--line); stroke-width: 1; }
.dots-chart .axis { fill: var(--muted); font-size: 11px; }
.dots-chart .col-label { fill: var(--fg); font-size: 12px; font-weight: 600; }
.dots-chart .dot { fill: var(--series-1); }
.dots-chart .median { stroke: var(--series-2); stroke-width: 2.5; stroke-linecap: round; }
.dots-chart .median-label { fill: var(--fg); font-size: 11px; font-weight: 600; }
.chart-legend .swatch.median { background: var(--series-2); }
.chart-legend .swatch.dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--series-1); }

/* Yield curve chart: server-drawn SVG, no script. Colours checked for colour-blind separation, light and dark. */
.curve-chart { display: block; width: 100%; min-width: 34rem; max-width: 46rem; height: auto; }
.curve-chart .grid { stroke: var(--line-soft); stroke-width: 1; }
.curve-chart .axis { fill: var(--muted); font-size: 11px; }
.curve-chart .end-label { fill: var(--fg); font-size: 11px; }
.curve-chart .curve { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.curve-chart .curve.s1 { stroke: var(--series-1); }
.curve-chart .curve.s2 { stroke: var(--series-2); }
.curve-chart .dot { stroke: var(--bg); stroke-width: 2; }
.curve-chart .s1 .dot { fill: var(--series-1); }
.curve-chart .s2 .dot { fill: var(--series-2); }
.curve-chart .hit { fill: transparent; }
.curve-chart .pt:hover .dot { r: 6px; }
.chart-legend { list-style: none; padding: 0; margin: 0 0 .5rem; display: flex; gap: 1.25rem; font-size: .9rem; }
.chart-legend .swatch { display: inline-block; width: 1rem; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: .4rem; }
.swatch.s1 { background: var(--series-1); }
.swatch.s2 { background: var(--series-2); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.main-body > h2:first-child { margin-top: 0; }
