/* BillDecoded page layout, v4 (Oct 2026). Mobile first: rules are written for a 360 to 400px phone, one media query widens them.
   Brand: indigo field, yellow accent. Slab colours are the universal traffic light (green, yellow, orange, red) and appear
   only in the slab meter, slab tables and the 500-unit warning. Hanken Grotesk for words, Anton for big numbers,
   Anek for Tamil, Hindi and Malayalam. Banned: left-edge stripes, cream backgrounds, serif display type, glowing dots. */
@font-face { font-family: 'Hanken Grotesk'; src: url(/assets/fonts/HankenGrotesk-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Anton'; src: url(/assets/fonts/Anton-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Anek Tamil'; src: url(/assets/fonts/AnekTamil-Variable.woff2) format('woff2'); font-weight: 100 800; font-display: swap; unicode-range: U+0B80-0BFF, U+200C-200D, U+25CC; }
@font-face { font-family: 'Anek Devanagari'; src: url(/assets/fonts/AnekDevanagari-Variable.woff2) format('woff2'); font-weight: 100 800; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A8E0-A8FF; }
@font-face { font-family: 'Anek Malayalam'; src: url(/assets/fonts/AnekMalayalam-Variable.woff2) format('woff2'); font-weight: 100 800; font-display: swap; unicode-range: U+0D00-0D7F, U+200C-200D, U+25CC; }

:root, :root:is(*) {
  color-scheme: light;
  --indigo: #211C5A;        /* brand field: header, hero band, footer */
  --indigo-2: #2F2A74;      /* raised surface on the band */
  --indigo-3: #4B44B0;      /* links on white */
  --yellow: #FFC83D;        /* accent: the go button, the highlighter, the logo tile */
  --yellow-soft: #FFE59A;
  --on-band: #FFFFFF;
  --on-band-2: #CFCBEF;     /* secondary text on the band, 8.6:1 */
  --paper: #FFFFFF;
  --mist: #F3F2FA;          /* the bill panel and soft tiles */
  --rule: #E2E0EF;
  --line-strong: #8A87A6;
  --ink: #17153A;
  --ink-2: #4F4C6B;
  --accent: #4B44B0; --accent-hover: #211C5A; --accent-tint: #ECEBFA; --on-accent: #FFFFFF;
  --s1: #2E9E4F;            /* slab: free */
  --s2: #E9B91A;            /* slab: first paid slab */
  --s3: #F08A24;            /* slab: dearer */
  --s4: #D93A3A;            /* slab: past the limit */
  --save: #1E7B45; --save-tint: #E6F4EC; --cost: #A12626; --cost-tint: #FCE9E9; --cliff: #7A4A00; --cliff-tint: #FFF2D3; --focus: #211C5A;
  --font-sans: 'Hanken Grotesk', 'Anek Tamil', 'Anek Devanagari', 'Anek Malayalam', 'Noto Sans', system-ui, sans-serif;
  --num: 'Anton', 'Hanken Grotesk', 'Noto Sans', sans-serif;
  --gut: 20px;
  --wrap: 1200px;
  --r: 14px;
}

html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); }
.bd { font-family: var(--font-sans); font-size: 18px; line-height: 1.6; }
a { color: var(--indigo-3); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:not([class]):hover { color: var(--indigo); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gut); top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; border-radius: 8px; }
.bd :focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }
.site-head :focus-visible, .hero :focus-visible, .site-foot :focus-visible, .panel :focus-visible { outline-color: var(--yellow); }

/* Header and band share the indigo field */
.site-head { background: var(--indigo); color: var(--on-band); }
.site-head__in, .page, .site-foot__in { max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; }
.logo img { display: block; width: 28px; height: 28px; }
.logo span { font-weight: 800; font-size: 21px; letter-spacing: -0.035em; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: 16px; color: #fff; text-decoration: none; }
.site-nav a[aria-current="page"] { background: rgba(255,255,255,.14); }

/* Type */
h1, h2, h3 { font-family: var(--font-sans); text-wrap: balance; margin: 0; }
h1 { font-size: 36px; line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
h3 { font-size: 19px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: 18px; line-height: 1.5; }
.muted { color: var(--ink-2); }
.small { font-size: 16px; line-height: 1.5; }

/* Page rhythm */
.page { display: grid; padding-bottom: 56px; }
section { display: grid; gap: 16px; min-width: 0; }
.doc__body > section, .page > section:not(.hero) { margin-top: 48px; }

/* Hero band: full-bleed indigo, white text */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 8px 0 28px; color: var(--on-band); }
.hero::before { content: ""; position: absolute; inset: 0 -100vmax; background: var(--indigo); z-index: -1; }
.hero > *, .hero__text > * { min-width: 0; }
.hero__text { display: grid; gap: 10px; }
.hero h1 { color: #fff; }
.hero .lead { color: var(--on-band-2); max-width: 36ch; }
.hero a:not(.calc__go):not(.board) { color: #fff; }
.crumbs { font-size: 15px; color: var(--on-band-2); margin: 4px 0 6px; }
.crumbs a { color: #fff; }
.status { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--yellow); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }

/* Board chooser on the band */
.boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 6px 0 0; padding: 0; border: 0; }
.boards legend { font-weight: 700; font-size: 16px; margin-bottom: 8px; padding: 0; color: #fff; }
.board { display: grid; min-height: 56px; padding: 8px 14px; border-radius: 12px; background: var(--indigo-2); color: #fff; text-decoration: none; align-content: center; }
.board strong { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.board span { font-size: 14px; line-height: 1.3; color: var(--on-band-2); }
.board--on { background: #fff; color: var(--indigo); box-shadow: inset 0 0 0 3px var(--yellow); }
.board--on span { color: var(--ink-2); }

/* Calculator input, on the band */
.calc { display: grid; grid-template-columns: minmax(0, 1fr); }
.calc > *, .calc__in > *, .calc__out > *, .calc__side > * { min-width: 0; }
.calc [hidden] { display: none !important; }
.calc__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.calc__modes { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; background: var(--indigo-2); border-radius: 999px; }
.calc__modes .calc__mode { min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: #fff; font: 700 16px/1.2 var(--font-sans); cursor: pointer; padding: 0 8px; }
.calc__modes .calc__mode[aria-pressed="true"] { background: #fff; color: var(--indigo); }
.calc .bd-field { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.calc .bd-field__label { font-size: 16px; font-weight: 700; color: #fff; }
.calc .bd-field__help { color: var(--on-band-2); font-size: 15px; }
.calc .bd-field__error { color: #FFD1D1; font-weight: 700; }
.calc .bd-field__box { min-height: 68px; border: 0; border-radius: var(--r); background: #fff; padding: 0 0 0 16px; overflow: hidden; gap: 8px; }
.calc .bd-field__box:focus-within { box-shadow: 0 0 0 3px var(--yellow); }
.calc .bd-field__input { width: 100%; font: 400 38px/1 var(--num); color: var(--ink); padding: 12px 0 10px; }
.calc .bd-field__suffix { font-weight: 700; color: var(--ink-2); font-size: 16px; }
.calc__go { align-self: stretch; display: flex; align-items: center; padding: 0 18px; background: var(--yellow); color: var(--indigo); font-weight: 800; font-size: 17px; text-decoration: none; white-space: nowrap; }
.calc__go:hover { background: #FFD666; color: var(--indigo); }
.calc__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc__pair .bd-field__box { padding-right: 12px; }
.calc__pair .bd-field__input { font-size: 28px; }
.calc__try { display: flex; align-items: center; gap: 6px; }
.calc__try::-webkit-scrollbar { display: none; }
.calc__try span { flex: none; font-size: 15px; color: var(--on-band-2); font-weight: 700; }
.calc__try .calc__mode { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 4px; border: 0; border-radius: 999px; background: var(--indigo-2); color: #fff; font: 700 16px/1 var(--font-sans); font-variant-numeric: tabular-nums; cursor: pointer; }

/* The bill panel: everything about the answer in one place */
.calc__out { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 20px; }
.calc__side { display: grid; gap: 14px; align-content: start; }
.calc .bd-bill { border-radius: 18px 18px 0 0; background: var(--mist); padding: 20px 18px 16px; scroll-margin-top: 12px; }
.calc .bd-bill::after { background: linear-gradient(135deg, var(--mist) 50%, transparent 50%) 0 -8px / 16px 16px repeat-x, linear-gradient(225deg, var(--mist) 50%, transparent 50%) 0 -8px / 16px 16px repeat-x; }
.calc .bd-bill__kicker { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.calc .bd-bill__total { font: 400 60px/1.15 var(--num); color: var(--indigo); margin: 12px 0 2px; }
.calc .bd-bill__total span { display: inline-block; line-height: 1; background: linear-gradient(transparent var(--hl-top, 58%), var(--yellow-soft) var(--hl-top, 58%), var(--yellow-soft) var(--hl-bot, 88%), transparent var(--hl-bot, 88%)); padding: 0 3px; margin-left: -3px; }
.calc .bd-bill__note { font-size: 15px; }
.calc .bd-bill__lines { border-top: 1px solid var(--rule); }
.calc .bd-bill__line { border-bottom: 1px solid var(--rule); }
.calc .bd-bill__name, .calc .bd-bill__amt { font-weight: 700; }
.bd-callout { border: 0; border-radius: var(--r); padding: 14px 16px; }
.bd-callout strong { margin-bottom: 2px; }
.bd-callout--cliff { background: var(--cliff-tint); }
.bd-callout--cliff svg, .bd-callout--cliff strong { color: var(--cliff); }
.bd-callout--cost { background: var(--cost-tint); }
.bd-callout--cost svg, .bd-callout--cost strong { color: var(--cost); }
.calc .bd-source { font-size: 15px; line-height: 1.45; }
.bd-btn { border-radius: var(--r); font-weight: 800; }
.bd-btn--primary { background: var(--indigo); color: #fff; border: 0; }
.bd-btn--primary:hover { background: #17134A; color: #fff; }
.bd-btn--secondary { border: 2px solid var(--indigo); color: var(--indigo); background: #fff; }
.bd-btn--wa { background: #25D366; color: #0B2E1A; border: 0; min-height: 56px; }
.bd-btn--wa:hover { background: #1FC05B; color: #0B2E1A; }
.bd-btn--wa svg { width: 24px; height: 24px; }

/* Slab meter: traffic light, labelled, with a marker for where you are */
.meter { display: grid; gap: 6px; margin: 6px 0 16px; }
.meter__bar { position: relative; display: flex; gap: 3px; height: 14px; }
.meter__bar span:not(.meter__mark) { border-radius: 999px; }
.meter__mark { position: absolute; top: -7px; width: 6px; height: 28px; border-radius: 3px; background: var(--indigo); box-shadow: 0 0 0 3px #fff; transform: translateX(-3px); transition: left .3s cubic-bezier(.22,.61,.36,1); }
@media (prefers-reduced-motion: reduce) { .meter__mark { transition: none; } }
.meter__labels { display: flex; gap: 3px; }
.meter__labels span { min-width: 0; font-size: 13px; line-height: 1.3; color: var(--ink-2); white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; font-weight: 700; }

/* One plain note on what every home should know */
.note { font-size: 17px; line-height: 1.55; padding: 16px 18px; border-radius: var(--r); background: var(--accent-tint); }
.note strong { font-weight: 800; color: var(--indigo); }

/* Content */
.doc, .doc__body { display: grid; min-width: 0; }
.toc { display: none; }
.table-wrap { overflow-x: auto; border-radius: var(--r); background: var(--mist); }
table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.45; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: 14px 16px 6px; font-weight: 800; font-size: 17px; caption-side: top; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--rule); text-align: right; vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { text-align: left; padding-left: 16px; }
th:last-child, td:last-child { padding-right: 16px; }
thead th { font-weight: 700; color: var(--ink-2); font-size: 14px; }
tbody th { font-weight: 700; }
td.you, th.you { font-weight: 800; color: var(--indigo); }
tr.cliff-row th, tr.cliff-row td { background: var(--cost-tint); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; counter-increment: s; align-items: start; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--indigo); font: 400 22px/40px var(--num); text-align: center; }

.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.log li { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r); background: var(--mist); }
.log time, .log .when { justify-self: start; font-size: 14px; font-weight: 800; color: var(--indigo); background: var(--yellow-soft); padding: 2px 10px; border-radius: 999px; }
.log li.next time, .log li.next .when { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule); }

.answers { display: grid; gap: 10px; }
.answers > div { padding: 16px 18px; border-radius: var(--r); background: var(--mist); display: grid; gap: 4px; }
.answers strong { font-weight: 800; color: var(--indigo); }

.panel { background: var(--indigo); color: #fff; border-radius: 20px; padding: 24px 20px; display: grid; gap: 16px; }
.page > .panel, .doc__body > .panel { margin-top: 48px; }
.panel h2 { color: #fff; }
.panel .checks svg { color: var(--yellow); }
.panel .bd-btn--secondary { background: var(--yellow); color: var(--indigo); border: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.checks svg { width: 22px; height: 22px; color: var(--s1); margin-top: 3px; }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.trio > div { padding: 14px 12px; border-radius: var(--r); background: var(--mist); display: grid; gap: 4px; }
.trio strong { font: 400 26px/1.05 var(--num); color: var(--indigo); font-variant-numeric: tabular-nums; }
.trio span { font-size: 14px; line-height: 1.3; color: var(--ink-2); }

.billmap { display: grid; gap: 8px; }
.billmap > div { display: grid; gap: 2px; padding: 12px 16px; border-radius: 12px; background: var(--mist); }
.billmap b { font-weight: 800; font-size: 17px; color: var(--indigo); }

details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 700; list-style: none; display: grid; grid-template-columns: 1fr 28px; gap: 12px; align-items: start; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: ""; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(var(--indigo), var(--indigo)) center / 12px 2px no-repeat, linear-gradient(var(--indigo), var(--indigo)) center / 2px 12px no-repeat, var(--yellow); }
details[open] summary::after { background: linear-gradient(var(--indigo), var(--indigo)) center / 12px 2px no-repeat, var(--yellow); }
details > div { margin-top: 10px; color: var(--ink-2); display: grid; gap: 8px; }
.sources { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.trust { display: grid; gap: 10px; }
.trust > p:not(.small) { padding: 14px 16px; border-radius: var(--r); background: var(--mist); }

/* Footer: the indigo field again */
.site-foot { background: var(--indigo); color: var(--on-band-2); margin-top: 24px; }
.site-foot__in { display: grid; gap: 16px; padding-top: 40px; padding-bottom: 48px; font-size: 16px; line-height: 1.5; }
.site-foot__in > p:first-child { font-weight: 800; font-size: 24px; line-height: 1.2; letter-spacing: -0.03em; color: #fff; max-width: 22ch; }
.site-foot nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.site-foot nav a { display: flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; font-weight: 700; }
.site-foot nav a:hover { color: var(--yellow); }
.site-foot a { color: #fff; }

@media (hover: hover) {
  .calc__try .calc__mode:hover, .board:not(.board--on):hover { background: #3A3488; }
  .site-nav a:hover { background: rgba(255,255,255,.1); }
}

/* Desktop: the same page widened. On the band, headline left and calculator input right; the bill panel below in two columns. */
@media (min-width: 1024px) {
  :root { --gut: 48px; }
  h1 { font-size: 60px; letter-spacing: -0.04em; }
  h2 { font-size: 38px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); column-gap: 64px; padding: 24px 0 48px; align-items: end; }
  .hero .lead { font-size: 20px; max-width: 40ch; }
  .calc__try .calc__mode { flex: 0 0 auto; min-width: 64px; padding: 0 16px; }
  .boards { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 560px; }
  .calc__out { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); column-gap: 48px; padding-top: 32px; align-items: start; }
  .doc { grid-template-columns: 220px minmax(0, 760px); column-gap: 80px; align-items: start; }
  .toc { display: block; position: sticky; top: 24px; margin-top: 48px; }
  .toc__title { font-weight: 800; font-size: 16px; margin-bottom: 8px; color: var(--indigo); }
  .toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .toc a { display: block; padding: 7px 12px; border-radius: 10px; font-size: 15px; line-height: 1.35; color: var(--ink); text-decoration: none; }
  .toc a:hover { background: var(--mist); color: var(--indigo); }
  .answers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-foot nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Two-bill check (Why is my TNEB bill so high?) */
.cmp .calc__pair .bd-field__input { font-size: 32px; }
.cmp__opt { font-weight: 400; color: var(--on-band-2); }
.cmp__out { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r); background: #fff; color: var(--ink); font-size: 16px; line-height: 1.5; }
.cmp__out[hidden] { display: none; }
.cmp__pair { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 700; }
.cmp__pair strong { font: 400 26px/1.1 var(--num); color: var(--indigo); font-variant-numeric: tabular-nums; }
.byline { margin-top: 20px; }
.cmp .bd-field__input::placeholder { color: #B9B6CF; }
@media (min-width: 1024px) { .answers.answers--stack { grid-template-columns: minmax(0, 1fr); } }

/* Charts drawn from the engine's numbers (inline SVG and HTML bars) */
.chart { margin: 4px 0 0; padding: 16px 12px 14px; border-radius: var(--r); background: var(--mist); }
.chart svg { display: block; width: 100%; height: auto; }
.chart figcaption, .bars figcaption { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin-top: 10px; padding: 0 4px; }
.chart figcaption strong { color: var(--indigo); }
.ch-grid { stroke: var(--rule); stroke-width: 1; }
.ch-lab { font: 600 12px var(--font-sans); fill: var(--ink-2); }
.ch-line { fill: none; stroke: var(--indigo); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.ch-line--hot { stroke: var(--s4); }
.ch-jump { stroke: var(--s4); stroke-width: 2.5; stroke-dasharray: 4 4; }
.ch-dot { fill: var(--indigo); stroke: #fff; stroke-width: 2; }
.ch-dot--hot { fill: var(--s4); }
.ch-note { font: 700 15px var(--font-sans); fill: var(--ink); }
.ch-note--hot { font: 400 20px var(--num); fill: var(--s4); }
.ch-s1 { fill: var(--s1); } .ch-s2 { fill: var(--s2); } .ch-s3 { fill: var(--s3); } .ch-s4 { fill: var(--s4); }
.bars { margin: 4px 0 0; padding: 16px; border-radius: var(--r); background: var(--mist); display: grid; gap: 14px; }
.bars__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.bars__lab { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 15px; }
.bars__lab span { color: var(--ink-2); }
.bars__track { height: 14px; border-radius: 999px; background: #fff; overflow: hidden; }
.bars__fill { display: block; height: 100%; border-radius: 999px; background: var(--indigo); }
.bars__fill--hot { background: var(--s4); }
.bars__val { font: 400 24px/1 var(--num); color: var(--indigo); font-variant-numeric: tabular-nums; }
.short { padding: 20px 18px; border-radius: var(--r); background: var(--accent-tint); }
.doc__body > .short { margin-top: 24px; }
.short h2 { font-size: 22px; }
.short .checks svg { color: var(--indigo); }

/* Hover on the indigo field: never indigo-on-indigo */
.site-head a:hover, .site-foot a:hover, .hero a:not(.calc__go):not(.board):hover, .panel a:not(.bd-btn):hover { color: var(--yellow); }
.logo:hover { color: #fff; }
.board:hover { color: #fff; }
.board--on:hover { color: var(--indigo); }

/* Blog and state hub cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cards a { display: grid; gap: 6px; padding: 18px; border-radius: var(--r); background: var(--mist); color: var(--ink); text-decoration: none; }
.cards a:hover { background: var(--accent-tint); color: var(--ink); }
.cards strong { font-size: 19px; line-height: 1.3; font-weight: 800; color: var(--indigo); letter-spacing: -0.01em; }
.cards span { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.cards em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--indigo-3); }
.site-foot__cols { display: grid; gap: 20px; }
.site-foot__cols h2 { font-size: 15px; font-weight: 800; color: var(--yellow); letter-spacing: 0; margin-bottom: 4px; }
.site-foot__cols nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-foot__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } .site-foot__cols nav { grid-template-columns: 1fr; } }

/* Input focus: one soft ring on the box, no second outline on the field inside it */
.calc .bd-field__input:focus, .calc .bd-field__input:focus-visible { outline: none; }
.calc .bd-field__box:focus-within { box-shadow: 0 0 0 3px var(--on-band-2); }
.tag { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--yellow-soft); color: var(--indigo); font-size: 12px; font-weight: 700; white-space: nowrap; }
.bars__fill--good { background: var(--yellow); }
td.txt, th.txt { text-align: left; } th.nw { white-space: nowrap; }

/* Blog post cards: cover, chip, date and read time, title, summary */
.pcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pcard a { display: grid; height: 100%; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); text-decoration: none; }
.pcard a:hover { box-shadow: inset 0 0 0 2px var(--indigo); color: var(--ink); }
.pcard img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; background: var(--indigo); }
.pcard__t { display: grid; gap: 8px; align-content: start; padding: 18px 18px 20px; }
.pchip { justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--yellow-soft); color: var(--indigo); font-size: 13px; font-weight: 800; }
.pmeta { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.pcard h3 { font-size: 21px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; color: var(--indigo); }
.pcard__t > p:not(.pmeta) { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.pmore { justify-self: start; font-size: 15px; font-weight: 800; color: var(--indigo); border-bottom: 2px solid var(--yellow); padding-bottom: 2px; margin-top: 4px; }
@media (min-width: 1024px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.sl-select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: 400 32px/1 var(--num); color: var(--ink); width: 100%; cursor: pointer; }
.cmp .bd-field__box .bd-field__suffix:first-child { font: 400 28px/1 var(--num); color: var(--ink-2); }
table.tight { font-size: 14px; } table.tight th, table.tight td { padding-left: 6px; padding-right: 6px; }
/* Header on small phones: short state label, tighter menu */
.site-nav .ns { display: none; }
@media (max-width: 479px) {
  .site-nav .nl { display: none; } .site-nav .ns { display: inline; }
  .site-nav { gap: 0; } .site-nav a { padding: 0 9px; font-size: 15px; }
  .logo span { font-size: 19px; }
}
@media (max-width: 359px) { .site-nav a { padding: 0 6px; font-size: 14px; } .logo span { font-size: 17px; } .logo { gap: 6px; } .logo img { width: 24px; height: 24px; } :root { --gut: 14px; } }
@media (max-width: 400px) { table { font-size: 15px; } th, td { padding: 10px 6px; } th:first-child, td:first-child { padding-left: 12px; } th:last-child, td:last-child { padding-right: 12px; } }
