/* How's the Care? — public styles. Look (2026-10-04): "Civic Newsprint" with Canadian colours.
   Three themes: Maple (default: warm paper, flag red, navy), Light (white paper) and Dark. Everyone starts on Maple;
   the device's dark mode is deliberately NOT followed (Marc, 2026-10-04). Text size: html[data-size] s / m / l / xl.
   Red is the flag and the main "share" action; navy is links, the insider action and research; red/green also mark
   negative/positive, always with a word. Source Serif 4 headlines, Source Sans 3 text, thin rules.
   No inline styles anywhere (strict CSP). Phone-first. */
@font-face { font-family: 'Source Serif 4'; src: url('/fonts/serif.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('/fonts/serif-italic.woff2') format('woff2'); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/fonts/sans.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/fonts/sans-italic.woff2') format('woff2'); font-weight: 200 900; font-style: italic; font-display: swap; }

/* ---------- themes ---------- */
:root { /* Maple */
  --bg: #FBF8F2; --paper: #F3EDE3; --card: #FFFFFF; --ink: #1E1A17; --ink-2: #3B3530; --muted: #6B6259; --line: #E2D8CA; --line-2: #EFE8DC;
  --accent: #1F3A5F; --accent-ink: #FFFFFF; --accent-soft: #E6EBF2; --teal: #1F3A5F; --tile-none: #DDD5C8;
  --canada: #C8201A; --canada-ink: #FFFFFF; --canada-soft: #FBE7E3; --flag: #D52B1E;
  --neg: #A3231B; --neg-soft: #FBECEA; --pos: #1C6B3A; --pos-soft: #E8F3EC;
  --green: #2E7D4F; --orange: #C07A12; --red: #B42A20;
  --ok: #1C6B3A; --ok-soft: #E8F3EC; --warn: #8A5300; --warn-soft: #FBF1DE; --bad: #A3231B; --bad-soft: #FBECEA;
  --radius: 3px; --shadow: 0 1px 2px rgb(60 40 20 / .07); --lift: 0 8px 24px rgb(60 40 20 / .14);
  --f-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --f-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
:root[data-theme="light"] {
  --bg: #FFFFFF; --paper: #F6F7F9; --card: #FFFFFF; --ink: #1B2129; --ink-2: #39414C; --muted: #5A6370; --line: #D5D9DF; --line-2: #ECEEF1;
  --accent-soft: #E7ECF3; --tile-none: #E2E5EA; --canada-soft: #FCEBE9;
  --shadow: 0 1px 2px rgb(20 30 45 / .06); --lift: 0 8px 24px rgb(20 30 45 / .14);
}
:root[data-theme="dark"] {
  --bg: #12161C; --paper: #1A2028; --card: #1A2028; --ink: #E7EAEE; --ink-2: #CBD1D8; --muted: #A2ABB6; --line: #34404D; --line-2: #222A33;
  --accent: #9DB8DD; --accent-ink: #12161C; --accent-soft: #1E2A3A; --teal: #9DB8DD; --tile-none: #2C3440;
  --canada: #EF5A4E; --canada-ink: #1A0C0A; --canada-soft: #3A1B18; --flag: #E0392D;
  --neg: #F08C82; --neg-soft: #3A1D1A; --pos: #7FCB98; --pos-soft: #16301F;
  --green: #3E9A63; --orange: #C9831B; --red: #C2453B;
  --ok: #7FCB98; --ok-soft: #16301F; --warn: #F0C062; --warn-soft: #332810; --bad: #F08C82; --bad-soft: #3A1D1A;
  --shadow: none; --lift: 0 8px 28px rgb(0 0 0 / .5);
  color-scheme: dark;
}
/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; font-size: 106.25%; }
html[data-size="s"] { font-size: 95%; } html[data-size="l"] { font-size: 118.75%; } html[data-size="xl"] { font-size: 131.25%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.6 var(--f-body); overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; font-weight: 650; margin: 0 0 .5rem; letter-spacing: -.005em; }
h1 { font-size: clamp(1.8rem, 5.5vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 3.2vw, 1.5rem); margin-top: 1.4rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 .8rem; }
a { color: var(--accent); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code { font-size: .9em; background: var(--line-2); padding: .05em .35em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--bg); padding: .5rem 1rem; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1400px; }
.muted { color: var(--muted); } .small { font-size: .9rem; } .fine { font-size: .82rem; color: var(--muted); }
.link { font-weight: 600; }
.ic { vertical-align: -3px; flex: none; }
main { padding-top: 1.2rem; padding-bottom: 2.5rem; min-height: 60vh; }

/* ---------- brand artwork (brand.js) ---------- */
.fl-r { fill: var(--flag); } .fl-w { fill: #fff; }
.flag-sm { width: 1.7em; height: .85em; vertical-align: -.1em; margin-right: .5em; box-shadow: 0 0 0 1px var(--line); }
.flag-xs { width: 1.5em; height: .75em; vertical-align: -.08em; margin-right: .3em; box-shadow: 0 0 0 1px var(--line); }
.leaf, .pi-leaf, .thanks-leaf { fill: var(--flag); }
.mk-leaf { fill: var(--flag); }
.mk-beat { fill: none; stroke: #fff; stroke-width: 200; stroke-linejoin: round; stroke-linecap: round; }
.rd-staff { fill: var(--accent); }
.rd-snake { fill: none; stroke: var(--canada); stroke-width: 4; stroke-linecap: round; }
.rd-head { fill: var(--canada); }
.beat path { fill: none; stroke: var(--canada); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.flagband { height: 6px; background: linear-gradient(90deg, var(--flag) 0 25%, var(--bg) 25% 75%, var(--flag) 75%); }
.flagband.thin { height: 4px; }

/* ---------- masthead ---------- */
.announce { background: var(--accent); color: var(--accent-ink); text-align: center; padding: .4rem 1rem; font-weight: 600; font-size: .9rem; }
.sample-bar { background: var(--warn-soft); color: var(--warn); text-align: center; padding: .35rem 1rem; font-size: .85rem; border-bottom: 1px solid var(--line); }
.mast { border-bottom: 1px solid var(--line); background: var(--bg); }
.mast-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .45rem 0 .1rem; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mt-where { display: inline-flex; align-items: center; }
.prefs { display: flex; gap: .45rem; align-items: center; margin-left: auto; }
.pill { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.pill button { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-height: 30px; min-width: 32px; padding: .2rem .6rem; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: none; cursor: pointer; }
.pill button + button { border-left: 1px solid var(--line); }
.pill button:hover { background: var(--line-2); }
.pill button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.pill .ic { width: 14px; height: 14px; } .pill .pi-leaf { width: 13px; height: 13px; }
.pill.size button { padding: .2rem .45rem; letter-spacing: 0; }
.pill.size button:nth-child(1) { font-size: .66rem; } .pill.size button:nth-child(3) { font-size: .8rem; } .pill.size button:nth-child(4) { font-size: .88rem; }
.pill sup { font-size: .62em; }
.brand-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; padding-top: .35rem; }
.mast-beat { width: 100%; height: 30px; opacity: .55; }
.mast-beat.right { transform: scaleX(-1); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: clamp(2.3rem, 6.5vw, 3.2rem); height: auto; flex: none; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 7vw, 3.1rem); line-height: 1.05; letter-spacing: -.015em; }
.brand-name .q { color: var(--canada); }
.brand-tag { text-align: center; font-family: var(--f-display); font-style: italic; color: var(--muted); font-size: .98rem; margin: .1rem 0 .55rem; }
.nav { display: flex; align-items: center; gap: .2rem 1.3rem; border-top: 1px solid var(--line); padding: .45rem 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink-2); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: .35rem 0; }
.nav a:hover { color: var(--accent); }
.nav a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--canada); }
.nav-ctas { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.nav .nav-insider, .nav .nav-cta { display: inline-flex; align-items: center; gap: .45rem; text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 700; padding: .4rem .85rem; border-radius: var(--radius); box-shadow: none; }
.nav .nav-insider { color: var(--accent); background: var(--accent-soft); border: 2px solid var(--accent); }
.nav .nav-insider:hover, .nav .nav-insider.on { background: var(--accent); color: var(--accent-ink); }
.nav .nav-cta { background: var(--canada); color: var(--canada-ink); border: 2px solid var(--canada); padding: .25rem .9rem; }
.nav .nav-cta:hover { color: var(--canada-ink); filter: brightness(1.08); }
.nav-cta > span, .dock-share > span { display: flex; flex-direction: column; line-height: 1.1; }
.nav-cta small, .dock-share small { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; opacity: .88; }

/* Phones: a bar pinned to the bottom with the two ways to post, instead of the buttons in the menu bar. */
.dock { display: none; }
@media (max-width: 759px) {
  .nav-ctas { display: none; }
  .dock { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-flow: column; grid-auto-columns: auto; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgb(0 0 0 / .08); }
  .dock a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
  .dock-share { background: var(--canada); color: var(--canada-ink); font-size: 1rem; }
  .dock-insider { background: var(--accent); color: var(--accent-ink); padding: 0 1rem; }
  .dock-sup { width: 50px; border: 1px solid var(--canada); background: var(--card); color: var(--canada); }
  .dock-sup .ic { width: 22px; height: 22px; fill: currentColor; }
  body.has-dock { padding-bottom: 78px; }
  .mt-anon { display: none; }
  .brand-row { grid-template-columns: 1fr; justify-items: center; }
  .mast-beat { display: none; }
  /* The title fills the width of the phone (about 40px tall on a typical phone, never smaller than before). */
  .brand-name { font-size: max(2rem, 10.4vw); }
  .brand-mark { width: max(2.3rem, 11.4vw); }
  .mast-top { padding-top: .35rem; }
}
@media (max-width: 860px) { .mt-where span { display: none; } .pill [data-theme-set] span { display: none; } }
@media (max-width: 560px) { .brand-tag { font-size: .88rem; } }
.pill button, .mt-where { white-space: nowrap; }

/* ---------- buttons, notices ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; border: 1px solid var(--ink-2); border-radius: var(--radius); background: var(--bg); color: var(--ink); padding: .5rem 1rem; font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--line-2); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.accent:hover, .btn.canada:hover, .btn.insider:hover { filter: brightness(1.1); }
.btn.canada { background: var(--canada); color: var(--canada-ink); border-color: var(--canada); }
.btn.insider { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.quiet { border-color: var(--line); color: var(--muted); }
.btn.small { min-height: 40px; padding: .35rem .8rem; font-size: .88rem; }
.btn.big { padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn.block { width: 100%; }
.btnrow { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-start; margin: .8rem 0; }
.btnrow form { margin: 0; }
.badge { display: inline-block; font-family: var(--f-body); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .1rem .4rem; vertical-align: 2px; margin-left: .45rem; }
.badge.sample { background: var(--warn-soft); color: var(--warn); border: 1px dashed var(--warn); }
.notice { background: var(--paper); border-left: 3px solid var(--accent); padding: .75rem .9rem; margin: 0 0 1rem; }
.notice.crisis { background: var(--warn-soft); border-left-color: var(--warn); }
.form-ok { background: var(--ok-soft); color: var(--ok); padding: .7rem 1rem; font-weight: 600; margin: 0 0 1rem; }
.form-err { background: var(--bad-soft); color: var(--bad); padding: .7rem 1rem; font-weight: 600; margin: 0 0 1rem; }
.form-err ul { margin: 0; padding-left: 1.2rem; }
.empty { color: var(--muted); padding: 1.2rem; text-align: center; border: 1px dashed var(--line); }
.card { border-top: 1px solid var(--ink); padding: .8rem 0; margin-bottom: 1rem; }
.card h2 { margin-top: 0; }
.crumbs { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 .3rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 44rem; }
.prose { max-width: 46rem; }
.prose h2 { border-top: 1px solid var(--line); padding-top: .8rem; }
.prose li { margin-bottom: .35rem; }
.cols { columns: 2 14rem; }
h2.sec { font-size: 1.05rem; font-family: var(--f-body); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); border-top: 2px solid var(--ink); padding-top: .55rem; margin: 1.4rem 0 .4rem; }

/* ---------- layout ---------- */
.cols2 { display: grid; gap: 0 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .cols2 { grid-template-columns: minmax(0, 1fr) 300px; }
  .col-side { border-left: 1px solid var(--line); padding-left: 2.5rem; margin-left: -2.5rem; }
}

/* ---------- home: hero ---------- */
.hero { position: relative; display: grid; gap: 1.4rem 2.5rem; grid-template-columns: minmax(0, 1fr); padding: .6rem 0 1.6rem; border-bottom: 1px solid var(--line); }
.hero::before { content: ''; position: absolute; z-index: -1; left: -90px; top: -70px; width: 440px; height: 440px; background: url('/img/leaf.svg') no-repeat center / contain; opacity: .055; pointer-events: none; }
@media (min-width: 980px) { .hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; padding-top: 1.2rem; } }
.hero-kicker { display: flex; align-items: center; margin: 0 0 .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--canada); }
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.5rem); line-height: 1.04; font-weight: 700; max-width: 16ch; margin-bottom: .7rem; }
.hero h1 .hl { display: block; color: var(--canada); }
.hero-ctas { display: grid; gap: .7rem; margin: 1.2rem 0 .8rem; }
@media (min-width: 600px) { .hero-ctas { grid-template-columns: 1fr 1fr; } }
.cta-share, .cta-insider { display: flex; align-items: center; gap: .8rem; min-height: 76px; padding: .9rem 1.1rem; border-radius: 4px; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, filter .15s; }
.cta-share:hover, .cta-insider:hover { transform: translateY(-2px); box-shadow: var(--lift); filter: brightness(1.06); }
.cta-share { background: var(--canada); color: var(--canada-ink); }
.cta-insider { background: var(--accent); color: var(--accent-ink); }
.cta-share .ic, .cta-insider .ic { width: 28px; height: 28px; stroke-width: 2.2; }
.cta-insider .ic:last-child { width: 20px; height: 20px; margin-left: auto; }
.cta-share b, .cta-insider b { display: block; font-size: 1.15rem; line-height: 1.2; }
.cta-share small, .cta-insider small { display: block; font-size: .8rem; opacity: .92; margin-top: .15rem; }
/* Phones: the two buttons come straight after the headline, so they're on the first screen. */
@media (max-width: 759px) {
  .hero-text { display: flex; flex-direction: column; }
  .hero-kicker { order: 1; } .hero h1 { order: 2; } .hero-ctas { order: 3; margin: .4rem 0 .9rem; } .hero .lede { order: 4; } .hero-text .fine { order: 5; }
  .hk-more { display: none; }
  /* Two tiles side by side: icon on top, the label in bold, one short line under it. */
  .hero-ctas { grid-template-columns: 1fr 1fr; gap: .55rem; }
  .hero h1 { margin-bottom: .2rem; }
  .cta-share, .cta-insider { flex-direction: column; align-items: flex-start; gap: .2rem; min-height: 0; padding: .6rem .75rem .65rem; }
  .cta-share .ic, .cta-insider .ic { width: 22px; height: 22px; }
  .cta-share b, .cta-insider b { font-size: 1.05rem; }
  .cta-share small, .cta-insider small { font-size: .74rem; }
  .cta-insider .ic:last-child { display: none; }
}
.hero-map { position: relative; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--canada); padding: .8rem 1rem .4rem; box-shadow: var(--shadow); }
.hero-rod { position: absolute; right: .7rem; top: .6rem; width: 44px; height: 44px; }
.hm-head { margin: 0 0 .2rem; padding-right: 52px; font-size: .88rem; color: var(--muted); }
.hm-head b { display: block; font-family: var(--f-display); font-size: 1.2rem; color: var(--ink); }

/* ---------- map of Canada (canada-map.js) ---------- */
.cmap { position: relative; margin: .3rem 0 0; }
.cmap svg { display: block; width: 100%; height: auto; max-height: 540px; }
.cmap.big { max-width: 960px; } .cmap.big svg { max-height: 760px; }
.cm-p path { fill: var(--tile-none); stroke: var(--card); stroke-width: 1.3; stroke-linejoin: round; transition: filter .15s; }
.cm-p.h-green path { fill: var(--green); } .cm-p.h-orange path { fill: var(--orange); } .cm-p.h-red path { fill: var(--red); }
.cm-p:focus { outline: none; }
.cm-p:hover path, .cm-p.on path, .cm-p:focus-visible path { filter: brightness(1.13) saturate(1.1); stroke: var(--ink); stroke-width: 2; }
.cm-l { font: 700 18px var(--f-body); fill: var(--ink); stroke: var(--card); stroke-width: 4px; paint-order: stroke; text-anchor: middle; dominant-baseline: middle; pointer-events: none; letter-spacing: .03em; }
@media (max-width: 640px) { .cm-l { font-size: 30px; stroke-width: 7px; } .cmap svg { max-height: none; } }
.cm-lead { stroke: var(--muted); stroke-width: 1; fill: none; pointer-events: none; }
.cm-city { stroke: var(--card); stroke-width: 2.5; fill: var(--ink); transform-box: fill-box; transform-origin: center; animation: hotspot 2.6s ease-in-out infinite; }
.cm-city.h-green { fill: #1E5C38; } .cm-city.h-orange { fill: #8C5200; } .cm-city.h-red { fill: #7A1710; }
@keyframes hotspot { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.3); } 90% { transform: scale(.95); } }
@media (prefers-reduced-motion: reduce) { .cm-city { animation: none; } .cta-share, .cta-insider { transition: none; } }
.cm-tip { position: absolute; z-index: 5; min-width: 12rem; max-width: 16rem; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--canada); box-shadow: var(--lift); padding: .55rem .75rem .6rem; font-size: .85rem; line-height: 1.35; }
.cm-tip b { display: block; font-family: var(--f-display); font-size: 1.05rem; }
.cm-tip span { display: block; color: var(--muted); }
.cm-tip .tip-tone { font-size: .78rem; }
.cm-tip a { display: inline-block; margin-top: .3rem; font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .78rem; margin: .5rem 0; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend i { display: inline-block; width: .75rem; height: .75rem; }
.legend .h-green { background: var(--green); } .legend .h-orange { background: var(--orange); } .legend .h-red { background: var(--red); } .legend .h-none { background: var(--tile-none); }
.legend .dotkey { border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--muted); }

/* ---------- indicator bank (bank.js): official measures, shaded in blue (never the rating colours) ---------- */
:root { --mq0: #DCE6F2; --mq1: #A9C1DD; --mq2: #6F96C2; --mq3: #3B6A9F; --mq4: #1F3A5F; }
:root[data-theme="dark"] { --mq0: #22324A; --mq1: #2F4F78; --mq2: #4A73A6; --mq3: #7FA3CF; --mq4: #BFD3EC; }
.hband { padding: 1.3rem 0 1.4rem; border-bottom: 1px solid var(--line); }
.hband-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .4rem 1.5rem; border-top: 3px solid var(--accent); padding-top: .6rem; margin-bottom: .7rem; }
.hband-head h2 { margin: 0 0 .15rem; font-size: clamp(1.3rem, 3.2vw, 1.6rem); }
.hband-head p { margin: 0; font-size: .85rem; color: var(--muted); }
.hband-links { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.hband-links .ic { width: 16px; height: 16px; }
.hgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 640px) { .hgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .hgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .hgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.ht { position: relative; display: flex; flex-direction: column; gap: .1rem; min-width: 0; padding: .6rem .7rem .55rem; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.ht:hover { box-shadow: var(--lift); transform: translateY(-1px); }
.ht-ic { position: absolute; right: .55rem; top: .55rem; color: var(--accent); opacity: .7; }
.ht-ic .ic { width: 18px; height: 18px; }
.ht > b { font: 650 1.55rem/1.1 var(--f-display); color: var(--accent); padding-right: 1.4rem; font-variant-numeric: tabular-nums; }
.ht-l { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); line-height: 1.25; }
.ht-r { font-size: .75rem; color: var(--ink-2); }
.ht-s { font-size: .7rem; color: var(--muted); margin-top: auto; padding-top: .2rem; }
.data-links { margin: .2rem 0 0; }
.explorer { margin: .6rem 0 1.4rem; }
.mpick { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .4rem 0 .8rem; }
.mpick label { font-weight: 700; }
.mpick select { font: inherit; font-size: 1rem; min-height: 44px; padding: .4rem .6rem; border: 2px solid var(--accent); border-radius: var(--radius); background: var(--card); color: var(--ink); max-width: 100%; }
.exp-grid { display: grid; gap: 1rem 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .exp-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } .exp-map { position: sticky; top: 1rem; } }
.cm-p.m-q0 path { fill: var(--mq0); } .cm-p.m-q1 path { fill: var(--mq1); } .cm-p.m-q2 path { fill: var(--mq2); } .cm-p.m-q3 path { fill: var(--mq3); } .cm-p.m-q4 path { fill: var(--mq4); }
.cm-p.m-qx path { fill: var(--tile-none); }
.legend .m-q0 { background: var(--mq0); } .legend .m-q2 { background: var(--mq2); } .legend .m-q4 { background: var(--mq4); } .legend .m-qx { background: var(--tile-none); }
.cm-tip .tip-big { font: 650 1.2rem var(--f-display); color: var(--ink); }
.mp-head h3 { font-size: 1.4rem; margin: .1rem 0 .3rem; }
.mp-note { font-size: .92rem; color: var(--ink-2); margin: 0 0 .5rem; }
.mp-nums { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem; padding: .6rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.mp-ca b { display: block; font: 650 2rem/1 var(--f-display); color: var(--accent); }
.mp-ca span { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.mp-legend { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--muted); }
.lg-scale { display: inline-block; width: 90px; height: 9px; background: linear-gradient(90deg, var(--mq0), var(--mq2), var(--mq4)); }
.mp-better { flex-basis: 100%; margin: 0; font-size: .8rem; color: var(--muted); }
.mrank { list-style: none; margin: 0 0 .6rem; padding: 0; }
.mrank li { display: grid; grid-template-columns: 1.6rem minmax(7rem, 11rem) minmax(0, 1fr) auto; align-items: center; gap: .55rem; padding: .32rem .2rem; border-bottom: 1px solid var(--line-2); font-size: .9rem; scroll-margin-top: 1rem; }
.mrank li:target { background: var(--accent-soft); }
.mrank li.ca { font-weight: 700; background: var(--paper); }
.mr-n { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.mr-bar { width: 100%; height: 8px; }
.mb-q0 { fill: var(--mq1); } .mb-q1 { fill: var(--mq1); } .mb-q2 { fill: var(--mq2); } .mb-q3 { fill: var(--mq3); } .mb-q4 { fill: var(--mq4); } .mb-ca { fill: var(--canada); }
.mr-v { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 480px) { .mrank li { grid-template-columns: 1.3rem minmax(0, 1fr) 4.5rem auto; } }
.mp-src a { overflow-wrap: anywhere; }
.geo-h { font-family: var(--f-body); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1rem 0 0; }
.erw { display: grid; gap: 0 2rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: .6rem; }
.erw-p { border-top: 2px solid var(--ink); padding: .5rem 0 1rem; }
.erw-p h2 { font-size: 1.15rem; margin: 0 0 .4rem; }
.erw-p ul { list-style: none; margin: 0; padding: 0; }
.erw-p li { display: flex; flex-direction: column; gap: .1rem; padding: .45rem 0; border-bottom: 1px solid var(--line-2); font-size: .9rem; }
.erw-p li a { text-decoration: none; } .erw-p li a:hover b { text-decoration: underline; }
.erw-p li a .ic { width: 14px; height: 14px; }
.erw-k { font-size: .76rem; color: var(--muted); }

/* ---------- home: three columns ---------- */
.home-grid { display: grid; gap: 0 2rem; grid-template-columns: minmax(0, 1fr); grid-template-areas: "rail" "main" "side"; padding-top: 1.2rem; }
.home-rail { grid-area: rail; } .home-main { grid-area: main; } .home-side { grid-area: side; }
@media (min-width: 640px) and (max-width: 1099px) { .home-rail .mgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .home-grid { grid-template-columns: 340px minmax(0, 1fr); grid-template-areas: "rail main" "rail side"; }
  .home-rail { border-right: 1px solid var(--line); padding-right: 1.6rem; margin-right: -.4rem; }
}
@media (min-width: 1340px) {
  .home-grid { grid-template-columns: 350px minmax(0, 1fr) 300px; grid-template-areas: "rail main side"; }
  .home-side { border-left: 1px solid var(--line); padding-left: 1.6rem; margin-left: -.4rem; }
}

/* ---------- the tracker (tracker.js): dense two-column figures ---------- */
.rail { margin-bottom: 1.2rem; }
.rail-head h2 { display: flex; align-items: center; gap: .5rem; font: 700 1.05rem var(--f-body); text-transform: uppercase; letter-spacing: .07em; color: var(--ink); border-top: 3px solid var(--canada); padding-top: .55rem; margin: 0 0 .15rem; }
.rail-beat { width: 2.4rem; height: 1.2rem; opacity: 1; }
.rail-beat path { stroke-width: 2.2; }
.rail-head p { font-size: .78rem; color: var(--muted); margin: 0 0 .6rem; line-height: 1.4; }
.rail-head.official h2 { border-top-color: var(--accent); margin-top: 1.5rem; }
.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.m { position: relative; display: flex; flex-direction: column; gap: .12rem; min-width: 0; margin: 0; padding: .55rem .65rem .5rem; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.m:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.m > b { font: 650 1.65rem/1.05 var(--f-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.m > b small { font-size: .55em; font-weight: 600; color: var(--muted); }
.m-l { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); line-height: 1.25; }
.m-s { font-size: .74rem; color: var(--muted); line-height: 1.3; }
.m .stars { font-size: .9rem; }
.m.wide, .m-head.wide { grid-column: 1 / -1; }
.m-head { margin: .5rem 0 0; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.m-head span { text-transform: none; letter-spacing: 0; font-weight: 400; }
.ts-nums { display: flex; justify-content: space-between; gap: .5rem; margin: .1rem 0 .35rem; font-size: .85rem; }
.ts-nums a { text-decoration: none; font-weight: 600; }
.ts-nums b { font: 650 1.45rem var(--f-display); margin-right: .2rem; }
.ts-neg { color: var(--neg); } .ts-pos { color: var(--pos); }
.split { display: block; width: 100%; height: 8px; }
.sp-neg { fill: var(--neg); } .sp-pos { fill: var(--pos); }
.spark { display: block; width: 100%; height: 46px; margin: .35rem 0 .1rem; }
.sk-bar { fill: var(--canada); } .sk-bar.zero { fill: var(--line); }
.sk-base { stroke: var(--line); vector-effect: non-scaling-stroke; }
.bars ul { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.bars a { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; column-gap: .45rem; row-gap: .15rem; align-items: center; color: var(--ink); text-decoration: none; font-size: .82rem; }
.bars a:hover .b-name { text-decoration: underline; }
.bars .ci { width: 16px; height: 16px; color: var(--accent); }
.b-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { grid-column: 2 / -1; display: block; width: 100%; height: 5px; background: var(--line-2); }
.bar .h-green { fill: var(--green); } .bar .h-orange { fill: var(--orange); } .bar .h-red { fill: var(--red); } .bar .h-none { fill: var(--muted); }
.m.prov { border-left-width: 4px; }
.m.prov.h-green { border-left-color: var(--green); } .m.prov.h-orange { border-left-color: var(--orange); } .m.prov.h-red { border-left-color: var(--red); }
.m.prov > b { font-size: 1.12rem; line-height: 1.2; }
.stat-m > b { font-size: 1.3rem; color: var(--accent); }
.stat-m figcaption { display: flex; flex-direction: column; gap: .25rem; }
.stat-m .m-l { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .8rem; }
.m-x { font-weight: 400; color: var(--muted); }
.rail-more { margin: .6rem 0 0; }

/* ---------- home: feed and sidebar ---------- */
.feed-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; border-top: 2px solid var(--ink); padding-top: .5rem; margin: 0 0 .2rem; }
.feed-head h2.sec { border: 0; margin: 0; padding: 0; }
.chips { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.chips a { padding: .3rem .85rem; font-size: .78rem; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.chips a + a { border-left: 1px solid var(--line); }
.chips a:hover { background: var(--line-2); }
.chips a[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chips a.c-neg[aria-pressed="true"] { background: var(--neg); color: var(--card); }
.chips a.c-pos[aria-pressed="true"] { background: var(--pos); color: var(--card); }
.insider-panel { position: relative; margin: 0 0 1.2rem; padding: 1.1rem 1.1rem 1.2rem; background: var(--accent); color: var(--accent-ink); border-top: 5px solid var(--canada); }
.insider-panel h2 { color: inherit; margin: .3rem 0 .4rem; font-size: 1.4rem; }
.insider-panel p { font-size: .93rem; opacity: .93; }
.insider-panel .ip-ic { width: 36px; height: 36px; }
.insider-panel .btn.insider { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.catlist { margin: 0; padding-left: 1.1rem; }
.catlist li { margin-bottom: .2rem; }
.catlist.icons { list-style: none; padding: 0; }
.catlist.icons a { display: flex; align-items: center; gap: .6rem; padding: .25rem 0; text-decoration: none; }
.catlist.icons a:hover span { text-decoration: underline; }
.catlist.icons .ci { width: 18px; height: 18px; color: var(--canada); }

/* ---------- ratings, tone, heat ---------- */
.stars { color: var(--ink); letter-spacing: .05em; font-size: 1.1rem; white-space: nowrap; }
.stars.sm { font-size: .95rem; }
.stars .off { color: var(--line); }
.dot { display: inline-block; width: .75rem; height: .75rem; vertical-align: -1px; background: var(--tile-none); }
.dot-green { background: var(--green); } .dot-orange { background: var(--orange); } .dot-red { background: var(--red); }
.tone-tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .12rem .45rem; margin-right: .4rem; vertical-align: 1px; }
.tone-tag.t-negative { background: var(--neg-soft); color: var(--neg); }
.tone-tag.t-positive { background: var(--pos-soft); color: var(--pos); }
.tone-tag.t-insider { background: var(--accent-soft); color: var(--accent); }
.tone-line { margin: 0 0 .4rem; }

/* The first question on every report: big red / green choices (text + icon, never colour alone). */
.tone-pick { border-top: 0; padding-top: 0; }
.tones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.tone { position: relative; display: block; cursor: pointer; }
.tone input { position: absolute; opacity: 0; inset: 0; }
.tone span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; min-height: 112px; padding: .9rem .6rem; text-align: center; font-weight: 700; font-size: 1.02rem; line-height: 1.25; border: 2px solid currentColor; }
.tone-neg span { color: var(--neg); background: var(--neg-soft); }
.tone-pos span { color: var(--pos); background: var(--pos-soft); }
.tone-neg input:checked + span { background: var(--neg); color: var(--card); border-color: var(--neg); }
.tone-pos input:checked + span { background: var(--pos); color: var(--card); border-color: var(--pos); }
.tone input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- report lists ---------- */
.rlist { display: flex; flex-direction: column; }
.rcard { padding: .85rem 0 .85rem .9rem; border-bottom: 1px solid var(--line); border-left: 3px solid var(--line); transition: background .15s; }
.rcard:hover { background: var(--line-2); }
.rcard.t-negative { border-left-color: var(--neg); }
.rcard.t-positive { border-left-color: var(--pos); }
.kicker { margin: 0 0 .2rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.kicker a { color: inherit; text-decoration: none; }
.rcard h3 { margin: 0 0 .3rem; font-size: 1.25rem; line-height: 1.22; font-weight: 600; }
.rcard h3 a { text-decoration: none; color: var(--ink); }
.rcard h3 a:hover { text-decoration: underline; }
.meta { font-size: .85rem; color: var(--muted); margin: 0; }
.catgrid { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 1px solid var(--ink); }
.catgrid a { display: flex; align-items: flex-start; gap: .8rem; height: 100%; padding: .85rem .3rem .85rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.cg-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--canada-soft); color: var(--canada); transition: background .15s, color .15s; }
.cg-ic .ci { width: 23px; height: 23px; }
.cg-t { display: flex; flex-direction: column; gap: .15rem; }
.catgrid b { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; }
.catgrid a:hover b { color: var(--accent); text-decoration: underline; }
.catgrid a:hover .cg-ic { background: var(--canada); color: var(--canada-ink); }
.cg-t > span { color: var(--muted); font-size: .9rem; }
@media (min-width: 600px) { .catgrid { column-gap: 1.5rem; } }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 .5rem; }
.filters select { font: inherit; min-height: 44px; padding: .4rem .6rem; border: 1px solid var(--ink-2); border-radius: var(--radius); background: var(--bg); color: var(--ink); max-width: 100%; }
.insider-box p { font-size: .95rem; }

/* ---------- share page ---------- */
.share-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.share-rod { flex: none; width: 76px; height: 76px; margin-top: .4rem; }
@media (max-width: 600px) { .share-rod { display: none; } }
.insider-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem 1.1rem; align-items: center; margin: 1.5rem 0; padding: 1.2rem 1.3rem; background: var(--accent); color: var(--accent-ink); border-left: 6px solid var(--canada); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.insider-card:hover { transform: translateY(-2px); box-shadow: var(--lift); color: var(--accent-ink); }
.insider-card > .ic { width: 42px; height: 42px; }
.icd-t b { display: block; font: 650 1.4rem/1.2 var(--f-display); }
.icd-t span { display: block; margin-top: .25rem; font-size: .95rem; opacity: .93; }
.icd-go { grid-column: 1 / -1; justify-self: start; padding: .6rem 1.1rem; background: var(--accent-ink); color: var(--accent); font-weight: 700; border-radius: var(--radius); }
@media (min-width: 720px) { .insider-card { grid-template-columns: auto minmax(0, 1fr) auto; } .icd-go { grid-column: auto; } }
.form-h { display: flex; align-items: center; gap: .6rem; }
.form-h .ci { flex: none; width: 1em; height: 1em; color: var(--canada); }
.thanks-h .thanks-leaf { width: .85em; height: .85em; vertical-align: -.06em; }

/* ---------- one report ---------- */
.report h1 { margin: .2rem 0 .5rem; font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1.12; }
.byline { font-size: .86rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: .6rem; margin-bottom: 1rem; }
.numbers { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin-bottom: 1rem; }
.numbers.n2 { --n: 2; } .numbers.n3 { --n: 3; }
.numbers div { text-align: center; padding: .65rem .3rem; border-left: 1px solid var(--line); }
.numbers div:first-child { border-left: 0; }
.numbers b { display: block; font-family: var(--f-display); font-size: 1.9rem; font-weight: 600; line-height: 1; }
.numbers b.hot { color: var(--canada); }
.numbers span { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: .3rem; color: var(--muted); }
.aspects { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .9rem; }
.story { font-family: var(--f-display); font-size: 1.18rem; line-height: 1.6; }
.story p { margin-bottom: .9rem; }
.disclaim { font-size: .82rem; font-style: italic; color: var(--muted); }
.flag summary { list-style: none; } .flag summary::-webkit-details-marker { display: none; }
.flag-form { border: 1px solid var(--line); background: var(--paper); padding: .7rem; margin-top: .4rem; }
.share { border-top: 1px solid var(--ink); padding-top: .6rem; margin: 1.4rem 0; }
.share h2 { margin-top: 0; font-size: 1.15rem; }
.copyrow { display: flex; gap: .4rem; }
.copyrow input { flex: 1; min-width: 0; min-height: 44px; font: inherit; font-size: .9rem; padding: .4rem .6rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.comments { margin-top: 1.4rem; }
.comments > h2 { border-top: 1px solid var(--ink); padding-top: .6rem; }
.comment { padding: .7rem 0; border-bottom: 1px solid var(--line); white-space: pre-line; }
.comment .fine { margin: .25rem 0 0; white-space: normal; }
.flag-link { margin-left: .5rem; color: var(--muted); }

/* ---------- forms ---------- */
fieldset { border: 0; border-top: 1px solid var(--line); padding: .7rem 0 .2rem; margin: 0 0 1.1rem; }
legend { font-family: var(--f-display); font-weight: 650; font-size: 1.2rem; padding: 0 .4rem 0 0; }
.field { display: flex; flex-direction: column; gap: .25rem; margin-bottom: 1rem; }
.field > span { font-weight: 600; }
.field em, legend em { font-weight: 400; color: var(--muted); font-style: normal; }
.field small { color: var(--muted); font-size: .85rem; }
.field input, .field select, .field textarea, .wait input, .wait select { width: 100%; min-height: 44px; font: inherit; color: var(--ink); background: var(--card); border: 1px solid #8A929C; border-radius: var(--radius); padding: .55rem .7rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; }
.field.inline { flex-direction: row; align-items: center; justify-content: space-between; gap: .8rem; }
.field.inline select { width: auto; }
.wait { display: flex; gap: .5rem; } .wait input { max-width: 7rem; }
.check { display: flex; gap: .55rem; align-items: flex-start; margin-bottom: .55rem; }
.check input { margin-top: .3rem; width: 1.15rem; height: 1.15rem; accent-color: var(--accent); flex: none; }
.rate { margin-bottom: .6rem; }
.more summary { cursor: pointer; font-weight: 600; margin-bottom: .6rem; }
.agree { background: var(--paper); border: 1px solid var(--line); padding: .7rem; }

/* ---------- tables, rankings ---------- */
.table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table th, .table td { padding: .5rem .4rem; border-bottom: 1px solid var(--line); }
.rank { padding-left: 1.4rem; } .rank li { margin-bottom: .45rem; }

/* ---------- ads: directly sold, standard sizes, always labelled ----------
   banner 728×90 (320×100 on phones) · box 300×250 · tall 300×600 (wide screens only, sticky in sidebars). */
.ad { margin: 1.2rem auto; text-align: center; }
.ad-label { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .3rem; }
.ad-in { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .3rem; margin: 0 auto; padding: .8rem 1.1rem; text-decoration: none; color: #1B2129; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--ad, #555); overflow: hidden; }
.ad-in:hover { border-color: var(--ad, #555); color: #1B2129; }
.ad-banner .ad-in { width: 100%; max-width: 728px; min-height: 90px; flex-direction: row; flex-wrap: wrap; column-gap: 1.2rem; text-align: left; }
.ad-box .ad-in { width: 300px; max-width: 100%; height: 250px; }
.ad-tall { display: none; }
@media (min-width: 960px) { .ad-tall { display: block; position: sticky; top: 1rem; } .ad-tall .ad-in { width: 300px; max-width: 100%; height: 600px; gap: .8rem; } .ad-tall .ad-head { font-size: 1.6rem; } }
@media (max-width: 760px) { .ad-banner .ad-in { max-width: 320px; min-height: 100px; flex-direction: column; text-align: center; } .ad-banner .ad-body, .ad-banner .ad-cta { display: none; } }
.ad-who { display: inline-flex; align-items: center; gap: .45rem; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #39414C; }
.ad-mark { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; background: var(--ad, #555); color: #fff; font-family: var(--f-display); font-size: .95rem; letter-spacing: 0; }
.ad-head { font-family: var(--f-display); font-size: 1.22rem; font-weight: 650; line-height: 1.18; }
.ad-body { font-size: .88rem; color: #39414C; }
.ad-cta { margin-top: .2rem; background: var(--ad, #555); color: #fff; padding: .35rem .9rem; font-weight: 600; font-size: .85rem; }
.ad-in:has(.ad-sample) { padding-bottom: 1.6rem; }
.ad-sample { position: absolute; right: 0; bottom: 0; background: #FBF1DE; color: #8A5300; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .45rem; }
.ad-cat-legal { --ad: #22355A; } .ad-cat-transport { --ad: #1E5E57; } .ad-cat-mobility { --ad: #6A4521; }
.ad-cat-homecare { --ad: #5C3358; } .ad-cat-other { --ad: #4A525C; }

/* ---------- research: news items and statistics (kept visibly apart from visitor reports) ---------- */
.kicker.news { color: var(--muted); }
.ncard { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.ncard h3 { margin: 0 0 .3rem; font-size: 1.15rem; line-height: 1.22; font-weight: 600; }
.nsum { margin: 0 0 .3rem; font-size: .95rem; color: var(--ink-2); }
.stat { margin: 0; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.stat > b { display: block; font-family: var(--f-display); font-size: 1.75rem; font-weight: 650; line-height: 1.1; color: var(--accent); }
.stat figcaption { font-weight: 600; font-size: .95rem; }
.stat .geo { font-weight: 400; color: var(--muted); }
.stat .src { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 1.5rem; }
.research-note { border-left: 3px solid var(--line); padding-left: .7rem; max-width: 46rem; }

/* ---------- footer ---------- */
.foot { background: var(--paper); border-top: 1px solid var(--line); padding: 0 0 2rem; margin-top: 1rem; }
.foot-grid { display: grid; gap: .8rem 1.8rem; padding-top: 1.4rem; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 108px minmax(0, 1fr); align-items: start; } }
.seal { display: block; width: 100px; height: 100px; }
.sl-o, .sl-i { fill: none; stroke: var(--canada); stroke-width: 1.5; }
.sl-t { font: 700 8.4px var(--f-body); fill: var(--canada); letter-spacing: .1em; }
.standing { font-size: .88rem; color: var(--ink-2); max-width: 52rem; }
.crisis-line { font-size: .9rem; font-weight: 600; }
.foot-links { display: flex; gap: .4rem 1.2rem; flex-wrap: wrap; margin: .6rem 0; font-size: .85rem; font-weight: 600; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

/* ---------- admin sign-in card (shared with admin.css) ---------- */
body.auth { display: grid; place-items: center; min-height: 100vh; padding: 16px; background: var(--paper); }
.auth-card { width: 100%; max-width: 420px; background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 1.4rem; }
.auth-brand { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; margin-bottom: .8rem; }
.auth-brand em { color: var(--accent); font-style: normal; }
.auth-card form + form { margin-top: .6rem; }

/* Menu bar on narrower screens: Rankings and About move to the footer. */
@media (max-width: 1020px) { .nav .nv-rankings, .nav .nv-about { display: none; } }
@media (max-width: 480px) { .nav { gap: .2rem .9rem; } .nav a { letter-spacing: .03em; } }
.kicker .badge { margin-left: .5rem; }

/* Donations: a quiet one-line invitation (home sidebar, after posting) */
.support-nudge { font-size: .9rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: .75rem; margin-top: 1rem; }
.support-nudge .sn-leaf { width: .9em; height: .9em; vertical-align: -.1em; fill: var(--flag); }

/* ---------- Stats (/stats): a word-cloud view and a list view of the same sourced figures, numbered sources, and a
   card per item in a <dialog>. Five ink colours, for variety only (never meaning negative or positive). */
:root { --st0: #1F3A5F; --st1: #B42A20; --st2: #7A4B12; --st3: #3E5C76; --st4: #6B2E4F; }
:root[data-theme="dark"] { --st0: #9DB8DD; --st1: #EF7A70; --st2: #E0B36A; --st3: #A9C4D8; --st4: #D99BBF; }
/* Stats in the menu (Marc, 2026-10-24): a yellow pill with a black outline that gently pulses, like Make It HAPIN's.
   The ring stays small because the menu bar clips anything beyond its padding. It stops on hover and for anyone
   who has asked their device for less motion. Same yellow in every theme, always with dark text. */
.nav a.nv-stats { display: inline-flex; align-items: center; gap: .3rem; color: #1E1A17; background: #FFC72C; border: 2px solid #1E1A17; border-radius: 99px; padding: .25rem .75rem; font-weight: 700; }
.nav a.nv-stats .ic { width: 15px; height: 15px; }
.nav a.nv-stats:hover, .nav a.nv-stats.on { background: #FFD65C; color: #1E1A17; box-shadow: none; }
:root[data-theme="dark"] .nav a.nv-stats { border-color: #FFC72C; }
@media (prefers-reduced-motion: no-preference) {
  .nav a.nv-stats { animation: stats-pulse 2.6s ease-in-out infinite; }
  .nav a.nv-stats:hover, .nav a.nv-stats:focus-visible { animation: none; }
}
@keyframes stats-pulse {
  0% { scale: 1; box-shadow: 0 0 0 0 rgb(255 199 44 / .75); }
  45% { scale: 1.05; }
  70% { box-shadow: 0 0 0 6px rgb(255 199 44 / 0); }
  100% { scale: 1; box-shadow: 0 0 0 0 rgb(255 199 44 / 0); }
}
.stats-head { max-width: 50rem; }
.stats-page { padding-bottom: 1rem; }
.stats-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin: 1rem 0 .4rem; padding: .5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; gap: .25rem; }
.seg .btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.stats-hint { margin: 0; color: var(--muted); font-size: .9rem; }
.stats-views[data-view="list"] .cloud, .stats-views[data-view="cloud"] .stats-list { display: none; }

.cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 1.3rem; padding: 1.5rem 0 2rem; }
.ci { --c: var(--st0); position: relative; display: inline-flex; flex-direction: column; align-items: center; text-align: center; max-width: 19rem; padding: .7rem .9rem; border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform .25s ease, background-color .2s, box-shadow .2s; }
.ci:hover, .ci:focus-visible { transform: rotate(0) scale(1.05); background: var(--card); color: var(--ink); box-shadow: var(--lift); z-index: 2; }
.ci.t0 { --c: var(--st0); } .ci.t1 { --c: var(--st1); } .ci.t2 { --c: var(--st2); } .ci.t3 { --c: var(--st3); } .ci.t4 { --c: var(--st4); }
.ci.tilt0 { transform: rotate(-1.5deg); } .ci.tilt1 { transform: rotate(1deg); } .ci.tilt3 { transform: rotate(-.75deg); } .ci.tilt4 { transform: rotate(1.5deg); }
.ci b { font-family: var(--f-display); font-weight: 750; line-height: 1.02; color: var(--c); letter-spacing: -.015em; text-wrap: balance; }
.ci .ci-text { font-size: .9rem; line-height: 1.35; color: var(--ink-2); margin-top: .35rem; }
.ci small { margin-top: .3rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ci-label { font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bg); background: var(--c); border-radius: 99px; padding: .18rem .6rem; margin-bottom: .45rem; }
.ci sup { position: absolute; top: .3rem; right: .4rem; font-size: .65rem; font-weight: 700; color: var(--muted); }
.ci.w5 b { font-size: clamp(2.8rem, 7vw, 4.4rem); } .ci.w5 { max-width: 21rem; }
.ci.w4 b { font-size: clamp(2.2rem, 5.2vw, 3.3rem); }
.ci.w3 b { font-size: clamp(1.8rem, 3.8vw, 2.5rem); }
.ci.w2 b { font-size: 1.6rem; } .ci.w2 .ci-text { font-size: .85rem; }
.ci.w1 b { font-size: 1.3rem; } .ci.w1 .ci-text { font-size: .8rem; } .ci.w1 { max-width: 15rem; }
.ci-news { max-width: 17rem; border-top: 2px solid var(--c); border-bottom: 1px solid var(--line); }
.ci-news .ci-text { font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 1.05rem; color: var(--ink); margin: 0; }

.stats-list { max-width: 52rem; }
.stats-list h2 { margin-top: 2rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.stats-list h2:first-child { margin-top: .5rem; }
.sl { list-style: none; padding: 0; margin: 0; }
.sl li { display: grid; grid-template-columns: minmax(5.5rem, auto) 1fr; gap: .9rem; align-items: baseline; padding: .6rem 0; border-bottom: 1px solid var(--line-2); }
.sl-fig { font-family: var(--f-display); font-size: 1.4rem; font-weight: 650; white-space: nowrap; }
.sl-news li { grid-template-columns: 1fr; }
.sl-news cite { font-family: var(--f-display); font-style: italic; font-weight: 600; }
a.sl-fig, a.sl-label, .sl-news cite a { color: inherit; text-decoration: none; }
a.sl-fig { color: var(--accent); }
a.sl-label { font-weight: 700; }
a.sl-fig:hover, a.sl-label:hover, .sl-news cite a:hover { text-decoration: underline; }
.cite { font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
@media (max-width: 480px) { .sl li { grid-template-columns: 1fr; gap: .1rem; } .sl-fig { white-space: normal; } }

.sources { margin-top: 2.5rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.sources h2 { margin-top: 0; }
.refs { padding-left: 1.6rem; font-size: .88rem; color: var(--ink-2); }
.refs li { margin-bottom: .4rem; overflow-wrap: anywhere; scroll-margin-top: 1rem; }
.refs li:target { background: var(--warn-soft); }

.pop { border: 0; padding: 0; width: min(34rem, calc(100vw - 32px)); max-height: calc(100dvh - 40px); border-radius: var(--radius); background: var(--card); color: var(--ink); box-shadow: var(--lift); overflow: hidden auto; }
.pop::backdrop { background: rgb(20 16 12 / .55); }
.pop-x { position: absolute; top: .7rem; right: .7rem; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font: inherit; font-size: 1.5rem; line-height: 1; color: var(--ink); cursor: pointer; }
.pop-x:hover { background: var(--ink); color: var(--bg); }
.pop-in { --c: var(--st0); padding: 1.5rem 1.4rem 1.1rem; border-top: 8px solid var(--c); }
.pop-in.t0 { --c: var(--st0); } .pop-in.t1 { --c: var(--st1); } .pop-in.t2 { --c: var(--st2); } .pop-in.t3 { --c: var(--st3); } .pop-in.t4 { --c: var(--st4); }
.pop-in .ci-label { display: inline-block; }
.pop-fig { font-family: var(--f-display); font-weight: 750; font-size: clamp(2.6rem, 10vw, 4rem); line-height: 1.02; color: var(--c); margin: .5rem 0 .6rem; text-wrap: balance; }
.pop-head { font-size: 1.25rem; line-height: 1.3; margin: .5rem 2.6rem .3rem 0; }
.pop-meta { color: var(--muted); font-size: .9rem; font-weight: 600; }
.pop-in h3 { font-family: var(--f-body); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c); margin: 1.1rem 0 .25rem; }
.pop-in > p { margin: 0 0 .6rem; }
.pop-src { margin-top: 1.2rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.pop-src p { margin: 0 0 .5rem; }
.pop-src-h { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pop-all { font-size: .9rem; font-weight: 600; align-self: center; }
.pop-nav { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem .8rem; background: var(--card); border-top: 1px solid var(--line); }
.pop-step { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.pop-step:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pop-count { font-size: .85rem; font-weight: 600; color: var(--muted); }
@keyframes pop-open { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes from-right { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes from-left { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .pop[open] { animation: pop-open .25s ease-out; }
  .pop-body.from-next { animation: from-right .22s ease-out; }
  .pop-body.from-prev { animation: from-left .22s ease-out; }
}
@media (prefers-reduced-motion: reduce) { .ci, .ci:hover, .ci:focus-visible { transition: none; transform: none; } }

/* Printing the Stats page: the list and the sources, nothing else. */
@media print {
  .mast, .foot, .dock, .ad, .stats-tools, .stats-views .cloud, .pop, .research-note, .skip { display: none !important; }
  .stats-views .stats-list { display: block !important; }
  body { background: #fff; color: #000; }
  .sl li { break-inside: avoid; }
  .stats-list h2 { break-after: avoid; }
  .refs { font-size: 9pt; }
  .refs a, .sl a { color: inherit; text-decoration: none; }
}

/* Support (donations): a heart button in the top bar on every page, and a small box under each report and on the
   Stats page, like How's the Food?. Both show only once a PayPal link is saved in Admin → Settings. */
.sup-top { display: inline-flex; align-items: center; gap: .3rem; min-height: 30px; padding: .2rem .7rem .2rem .55rem; border: 1px solid var(--canada); border-radius: 999px; background: var(--card); color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: none; text-decoration: none; white-space: nowrap; }
.sup-top .ic { width: 14px; height: 14px; color: var(--canada); fill: currentColor; }
.sup-top:hover { background: var(--canada-soft); }
@media (max-width: 560px) { .sup-top { padding: .2rem .5rem; } .sup-top span { display: none; } }
.sup-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin: 1.4rem 0; padding: .9rem 1rem; border: 1px solid var(--line); border-left: 4px solid var(--canada); background: var(--card); }
.sup-box p { margin: 0; }
.sup-box-t { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-2); flex: 1 1 18rem; }
.sup-box-t b { color: var(--ink); }
.sup-box-t .ic { flex: none; width: 20px; height: 20px; margin-top: .15rem; color: var(--canada); fill: currentColor; }
.btn.sup-btn { border-color: var(--canada); color: var(--ink); }
.btn.sup-btn:hover { background: var(--canada); color: var(--canada-ink); }
@media print { .sup-top, .sup-box { display: none !important; } }
