/* Wantam design tokens and components. See ../DESIGN.md. */
@font-face { font-family: "Montserrat"; src: url("media/montserrat-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
/* Same width as Montserrat, so the page doesn't jump when the font loads. */
@font-face { font-family: "Montserrat fallback"; src: local("Arial"), local("Roboto"); size-adjust: 112.8%; ascent-override: 85.8%; descent-override: 22.3%; line-gap-override: 0%; }

:root {
  color-scheme: light;
  --blue-50: #F3F6FF; --blue-100: #E3E9FD; --blue-200: #C5D1FB; --blue-300: #A9BBFA;
  --blue: #315BEF; --blue-600: #2448CC; --blue-700: #1B38A3; --blue-900: #0F1F5C;
  --black: #0B0C0D; --red: #B8101F; --green: #0B6B32; --white: #FFFFFF;
  --bg: var(--white); --ink: var(--black); --muted: #555B66; --line: #DDE2EC; --control: #7C8493;
  --link: var(--blue-600); --focus: var(--blue);
  --aye: var(--blue); --no: #8A5A00; --spoilt: #7C8493;
  --head: "Montserrat", "Montserrat fallback", Arial, sans-serif;
  --text: system-ui, Roboto, "Segoe UI", sans-serif;
  --t-hero: min(14.2vw, 6rem);
  --t-num: min(15.5vw, 7rem, 24vh);
  --t-1: clamp(2rem, 1.3rem + 3vw, 3.75rem);
  --t-2: clamp(1.75rem, 1.3rem + 1.9vw, 3rem);
  --t-3: clamp(1.1875rem, 1.1rem + .4vw, 1.4375rem);
  --t-quote: clamp(1.25rem, 1.1rem + .8vw, 1.75rem);
  --t-lead: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --t-body: 1.0625rem; --t-small: .9375rem;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: clamp(72px, 10vw, 136px);
  --r-card: clamp(24px, 3vw, 40px); --r-pill: 999px;
  --head-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + var(--s4)); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-body)/1.6 var(--text); overflow-wrap: break-word; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, table { margin: 0; padding: 0; }
h1, h2, h3, h4, .num, .btn, .count { font-family: var(--head); }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: var(--t-1); line-height: 1.06; }
h2 { font-size: var(--t-2); line-height: 1.12; }
h3 { font-size: var(--t-3); line-height: 1.3; letter-spacing: -.02em; }
h4 { font-size: var(--t-body); line-height: 1.4; letter-spacing: -.01em; }
p, li { max-width: 64ch; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
main { display: block; padding-top: var(--head-h); }
.wrap { width: min(1240px, 100% - 2 * var(--s4)); margin-inline: auto; }
.lead { font-size: var(--t-lead); line-height: 1.5; }
.small { font-size: var(--t-small); line-height: 1.5; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: var(--s4); }
.stack > * + h2 { margin-top: var(--s6); }
.section { padding-block: var(--s9); }
.tint { background: linear-gradient(var(--white), var(--blue-100)); }
.centre { display: flex; flex-direction: column; align-items: center; gap: var(--s4); text-align: center; }
.centre h2 { max-width: 20ch; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--s4); top: -90px; z-index: 30; padding: var(--s3) var(--s5); border-radius: var(--r-pill); background: var(--blue); color: var(--white); }
.skip:focus { top: var(--s3); }
[hidden] { display: none !important; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons. Blue means "you can do something here". */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 52px; padding: var(--s2) var(--s5); border: 2px solid var(--blue); border-radius: var(--r-pill); background: var(--blue); color: var(--white); font-size: 1rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--blue-700); border-color: var(--blue-700); }
.btn:active { background: var(--blue-900); border-color: var(--blue-900); }
.btn.alt { background: transparent; color: var(--blue-600); border-color: var(--blue); }
.btn.alt:hover { background: var(--blue-100); color: var(--blue-700); border-color: var(--blue-700); }
.btn.soft { background: var(--blue-100); border-color: var(--blue-100); color: var(--blue-700); }
.btn.soft:hover { background: var(--blue-200); border-color: var(--blue-200); }
.btn.white { background: var(--white); border-color: var(--white); color: var(--black); }
.btn.white:hover { background: var(--blue-100); border-color: var(--blue-100); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.go { display: inline-flex; align-items: center; gap: var(--s3); min-height: 52px; color: inherit; font-weight: 650; text-decoration: none; }
.go:hover { text-decoration: underline; }
.dot { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; padding: 0; border: 1.5px solid currentColor; border-radius: 50%; background: transparent; color: inherit; transition: background-color .2s, border-color .2s, color .2s; }
button.dot { cursor: pointer; }
a:hover > .dot, a.dot:hover, button.dot:hover:not(:disabled), summary.dot:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
button.dot:disabled { opacity: .4; cursor: default; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s3) var(--s5); }

/* Header: logo, centred links, round button and pill. JavaScript sets data-tone to match the section behind it. */
.top { position: fixed; inset: 0 0 auto; z-index: 20; height: var(--head-h); color: var(--black); background: var(--white); transition: background-color .25s, color .25s; }
.top[data-tone=dark] { background: var(--black); color: var(--white); }
.top[data-tone=clear] { background: transparent; color: var(--white); }
.top[data-tone=photo] { background: var(--black); color: var(--white); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); height: 100%; }
.brand { display: inline-flex; align-items: center; min-height: 52px; border-radius: 14px; transition: background-color .25s, box-shadow .25s; }
.brand img { width: 129px; height: 46px; }
/* The logo has black letters, so it sits on white when the header is dark. */
.top:is([data-tone=dark], [data-tone=clear], [data-tone=photo]) .brand, .foot .brand { background: var(--white); box-shadow: 0 0 0 6px var(--white); }
.nav { display: none; gap: var(--s6); list-style: none; }
.nav a, .menu-panel a { color: inherit; font-size: var(--t-small); font-weight: 650; text-decoration: none; }
.nav a { display: inline-flex; align-items: center; min-height: 48px; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .5em; }
.tools { display: flex; align-items: center; gap: var(--s2); }
.tools .btn { min-height: 48px; padding-inline: var(--s4); font-size: var(--t-small); border-color: currentColor; background: transparent; color: inherit; }
.tools .btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.top:is([data-tone=dark], [data-tone=clear], [data-tone=photo]) :focus-visible { outline-color: var(--blue-300); }
.tools > .dot, .tools .long { display: none; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.menu-panel { position: absolute; inset: var(--head-h) 0 auto; padding: var(--s4); background: var(--white); color: var(--black); border-block: 1px solid var(--line); }
.menu-panel ul { list-style: none; }
.menu-panel a { display: flex; align-items: center; min-height: 56px; font-family: var(--head); font-size: var(--t-3); font-weight: 700; letter-spacing: -.02em; }
.menu-panel li { max-width: none; }
.menu-panel li + li { border-top: 1px solid var(--line); }

/* Hero */
.hero { display: flex; flex-direction: column; min-height: max(560px, 100svh); margin-top: calc(-1 * var(--head-h)); padding-top: var(--head-h); background: linear-gradient(var(--white) 30%, var(--blue-100)); }
.hero-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s5); padding-block: var(--s6); text-align: center; }
.hero h1 { font-size: var(--t-hero); line-height: 1.02; letter-spacing: -.055em; }
.hero-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .06em .18em; }
/* Countdown to election day. JavaScript fills it in and shows it; without JavaScript the date in the text is enough. */
.countdown { display: flex; justify-content: center; gap: clamp(6px, 1.6vw, 16px); }
.countdown > div { min-width: clamp(64px, 17vw, 120px); padding: var(--s3) var(--s2); border: 1.5px solid var(--blue-200); border-radius: 20px; background: var(--white); }
.countdown b { display: block; color: var(--blue); font: 800 clamp(1.75rem, 1.1rem + 3vw, 3.5rem)/1 var(--head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: var(--s1); color: var(--muted); font-size: var(--t-small); font-weight: 600; }
.hero .lead { max-width: 34ch; }
.hero-strip { border-top: 1px solid var(--blue-300); }
.hero-strip ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s4); padding-block: var(--s3); list-style: none; }
.hero-strip li, .hero-strip a { display: flex; align-items: center; gap: var(--s3); min-height: 48px; color: var(--ink); font-size: var(--t-small); font-weight: 650; line-height: 1.3; text-decoration: none; }
.hero-strip a:hover { text-decoration: underline; }
.hero-strip li.scroll { display: none; }

/* Action cards */
.cards { display: grid; gap: var(--s4); margin-top: var(--s7); list-style: none; }
.cards li { max-width: none; }
.card { display: flex; flex-direction: column; height: 100%; min-height: 300px; padding: var(--s5); border: 1.5px solid var(--line); border-radius: var(--r-card); background: var(--white); color: var(--ink); text-decoration: none; transition: background-color .3s, border-color .3s; }
.card:hover, .card:focus-visible { background: var(--blue-100); border-color: var(--blue-300); }
.card:hover .dot { background: var(--blue); border-color: var(--blue); color: var(--white); }
.card .badge { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--s6); border-radius: 50%; background: var(--c); color: var(--white); }
.card .badge .icon { width: 24px; height: 24px; }
.card p { margin-top: var(--s2); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: auto; padding-top: var(--s5); font-size: var(--t-small); font-weight: 650; }

/* The flag story. Without JavaScript, or with reduced motion, the panels simply stack. */
.panel { display: grid; place-items: center; padding: calc(var(--head-h) + var(--s6)) var(--s4) var(--s8); text-align: center; background: var(--p-bg, var(--white)); color: var(--p-ink, var(--white)); }
.panel.intro { --p-ink: var(--black); background: linear-gradient(var(--white), var(--blue-50)); }
.panel.black { --p-bg: var(--black); } .panel.red { --p-bg: var(--red); } .panel.green { --p-bg: var(--green); }
.band + .band { border-top: 10px solid var(--white); }
.panel > div { display: flex; flex-direction: column; align-items: center; }
.panel .story-title { max-width: 18ch; font-family: var(--head); font-size: var(--t-3); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.num { max-width: none; margin-block: var(--s4); font-size: var(--t-num); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.intro .num { color: var(--blue); }
.panel .label { max-width: 34ch; font-size: var(--t-lead); font-weight: 600; text-wrap: balance; }
.panel .small { margin-top: var(--s4); }
.panel:not(.intro) a:not(.btn) { color: inherit; }
.panel:not(.intro) :focus-visible { outline-color: var(--white); }
.panel .btn { margin-top: var(--s5); }
@media (min-height: 480px) { /* too short (a phone on its side): the panels stack instead */
.motion .story { height: 420svh; }
.motion .story-view { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.motion .band { position: absolute; inset: 0; }
.motion .band + .band { --r: 90vmax; --y: calc(100% + var(--r) - var(--p, 0) * (100% + 18vmax)); border: 0; background: var(--white); clip-path: circle(calc(var(--r) + 12px) at 50% var(--y)); visibility: hidden; }
.motion .band.on { visibility: visible; }
.motion .band + .band .panel { clip-path: circle(var(--r) at 50% var(--y)); }
.motion .panel { height: 100%; padding-bottom: var(--s6); }
}

/* They said / The record shows */
.shapes { position: relative; overflow: hidden; }
.shapes::before, .shapes::after { content: ""; position: absolute; z-index: 0; width: 46vw; aspect-ratio: 1; border-radius: 50%; background: var(--blue-50); }
.shapes::before { left: -16vw; bottom: -8vw; }
.shapes::after { right: -18vw; top: 8vw; }
.shapes > * { position: relative; z-index: 1; }
.entry { max-width: 1040px; margin: var(--s6) auto 0; padding: clamp(16px, 2.4vw, 32px); border-radius: var(--r-card); background: var(--white); }
.entry-head { padding: var(--s2) var(--s2) var(--s5); }
.pair { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); }
.said, .shows { padding: clamp(20px, 3vw, 36px); border-radius: calc(var(--r-card) * .7); }
.said { background: var(--blue-100); }
.shows { background: var(--black); color: var(--white); }
.shows a { color: var(--blue-300); }
.shows :focus-visible { outline-color: var(--blue-300); }
.pair h2, .pair h3, .pair h4 { font-size: var(--t-body); line-height: 1.4; letter-spacing: -.01em; }
.said blockquote, .shows .finding { margin-top: var(--s3); font-size: var(--t-quote); line-height: 1.35; text-wrap: pretty; }
.shows .finding { font-weight: 650; }
.pair .small { margin-top: var(--s4); }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); font-size: var(--t-small); }
.status b { padding: 4px var(--s4); border: 2px solid currentColor; border-radius: var(--r-pill); font-weight: 750; }
.sample { max-width: none; padding: var(--s3) var(--s5); border: 2px dashed var(--control); border-radius: 18px; background: var(--white); color: var(--ink); font-size: var(--t-small); text-align: left; }

/* Carousels never move by themselves. */
.track { display: flex; gap: var(--gap); overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.track > li { flex: 0 0 var(--w); max-width: none; }
.track:focus-visible { outline-offset: -3px; }
.arrows { align-items: center; justify-content: center; gap: var(--s3); }
.arrows [data-count] { min-width: 5.5em; text-align: center; font-variant-numeric: tabular-nums; }
.js-only { display: none; }
.js .js-only { display: flex; }

/* Names: black and white, and quiet on purpose */
.names { background: var(--black); color: var(--white); --focus: var(--white); }
.names .sample { background: transparent; color: var(--white); border-color: #8C93A0; }
.names .track { --w: min(78vw, 620px); --gap: 0px; margin-block: var(--s7) var(--s5); padding: var(--s4) calc(50% - var(--w) / 2); }
.names .track > li { scroll-snap-align: center; display: flex; flex-direction: column; justify-content: center; gap: var(--s2); min-height: 170px; padding-inline: var(--s4); text-align: center; color: #B4B8C0; }
.names .track h3 { font-size: clamp(1.75rem, 1rem + 3.4vw, 3.75rem); font-weight: 700; line-height: 1.1; }
.names .track p { margin-inline: auto; }
.motion .names .track > li { transform: scale(.72); transition: transform .5s var(--ease), color .5s; }
.names .track > li.now { color: var(--white); }
.motion .names .track > li.now { transform: none; }
.names .dot:hover:not(:disabled), .names a:hover > .dot { background: var(--white); border-color: var(--white); color: var(--black); }

/* MP votes. Every mark is the same size (--u) in all three groups, so areas compare fairly. */
.field-votes { --u: min(14px, (100vw - 2 * var(--s4)) / 39); display: flex; flex-wrap: wrap; gap: var(--s5) var(--s7); margin-top: var(--s7); }
.field-votes svg { display: block; width: calc(var(--cols) * var(--u)); height: auto; margin-top: var(--s3); }
.count { display: block; font-size: var(--t-1); font-weight: 800; line-height: 1.1; letter-spacing: -.05em; }
.key { display: inline-block; width: 12px; height: 12px; margin-right: var(--s2); border-radius: 3px; background: var(--c); }
.c-aye { --c: var(--aye); } .c-no { --c: var(--no); } .c-spoilt { --c: var(--spoilt); }
.c-black { --c: var(--black); } .c-red { --c: var(--red); } .c-green { --c: var(--green); }
.mark { fill: var(--c); }
.row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: end; }
label, legend { display: block; padding: 0; font-weight: 650; }
input[type=search] { width: 100%; min-height: 52px; padding: var(--s2) var(--s5); border: 2px solid var(--control); border-radius: var(--r-pill); background: var(--white); color: var(--ink); font: 400 var(--t-body)/1.2 var(--text); }
.find { flex: 1 1 260px; max-width: 460px; }
.find input { margin-top: var(--s2); }
.tabs { display: flex; flex-wrap: wrap; gap: 0 var(--s5); border-bottom: 1px solid var(--line); list-style: none; }
.tabs a, .tabs span { display: inline-flex; align-items: center; min-height: 52px; border-bottom: 3px solid transparent; font-weight: 650; text-decoration: none; }
.tabs [aria-current] { border-color: var(--blue); color: var(--ink); }
.bar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; }
.bar span { flex: var(--n) 0 0; min-width: 4px; background: var(--c); }
.totals { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); margin-top: var(--s3); }
.totals dt { font-size: var(--t-small); }
.totals dd { font-family: var(--head); font-size: var(--t-2); font-weight: 800; line-height: 1.2; letter-spacing: -.04em; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.choices { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.choices label { position: relative; font-weight: 400; }
.choices input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choices span { display: flex; align-items: center; min-height: 52px; padding: var(--s2) var(--s5); border: 2px solid var(--control); border-radius: var(--r-pill); }
.choices input:checked + span { border-color: var(--blue); background: var(--blue); color: var(--white); font-weight: 650; }
.choices input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.votes { width: 100%; border-collapse: collapse; table-layout: fixed; }
.votes caption { padding-bottom: var(--s4); text-align: left; }
.votes th, .votes td { padding: var(--s4) var(--s3) var(--s4) 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.votes thead th { color: var(--muted); font-size: var(--t-small); font-weight: 650; }
.votes thead th:first-child { width: 36%; }
.votes thead th:last-child { width: 4rem; }
.votes tbody th { font-weight: 650; }
.votes tr > :last-child { padding-right: 0; }
.votes .small { display: block; }

/* Share section: full width photo */
.share { position: relative; display: flex; align-items: center; min-height: 100svh; padding-block: calc(var(--head-h) + var(--s6)) var(--s7); overflow: hidden; background: var(--black); color: var(--white); --focus: var(--white); }
.share > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.share::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(11 12 13 / .82), rgb(11 12 13 / .74)); }
.share .wrap { position: relative; z-index: 1; }
.share h2 { max-width: 12ch; font-size: var(--t-1); }
.share h2 + p { margin-top: var(--s4); }
.share form { max-width: 480px; margin-top: var(--s6); }
.share .choices { flex-direction: column; }
.share .choices span { border-radius: 24px; border-color: rgb(255 255 255 / .7); background: rgb(11 12 13 / .6); }
.share .choices input:checked + span { border-color: var(--white); background: var(--white); color: var(--black); }
.share .row { margin-top: var(--s5); }
.share [role=status] { min-height: 1.6em; margin-top: var(--s3); }
.motion .fade > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.motion .fade > * + * { transition-delay: .15s; }
.motion .fade.seen > * { opacity: 1; transform: none; }

/* News: stepped card heights */
.news .track { --w: min(74vw, 298px); --gap: var(--s4); --edge: max(var(--s4), (100% - 1240px) / 2); margin-top: var(--s7); padding: 4px var(--edge); scroll-padding-inline: var(--edge); }
.news .track > li { scroll-snap-align: start; }
.news .track img { width: 100%; aspect-ratio: var(--shape, 1); object-fit: cover; border-radius: var(--r-card); background: var(--blue-50); }
.news .track > li:nth-child(4n + 1) { --shape: 3 / 4; }
.news .track > li:nth-child(4n + 2) { --shape: 5 / 6; }
.news .track > li:nth-child(4n + 4) { --shape: 4 / 3; }
.news .track .small { margin-top: var(--s4); }
.news .track h3 { margin-top: var(--s1); }
.news .arrows { justify-content: flex-end; margin-top: var(--s5); }

/* Final call: photo circles grow as you scroll */
.join { position: relative; display: grid; place-items: center; min-height: 100svh; overflow: hidden; background: linear-gradient(var(--white), var(--blue-100)); }
.join .centre { position: relative; z-index: 1; padding: 250px var(--s4); }
.join h2 { max-width: 14ch; font-size: var(--t-1); }
.bubble { position: absolute; left: var(--x); top: var(--top); width: clamp(92px, var(--size), 260px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: var(--white); }
.motion .bubble { transform: scale(calc(.55 + .45 * var(--p, 1))); }
.bubble.wide-only { display: none; }

/* Footer */
.flag { display: grid; grid-template-rows: 8px 2px 8px 2px 8px; }
.flag i:nth-child(1) { background: var(--black); }
.flag i:nth-child(3) { background: var(--red); }
.flag i:nth-child(5) { background: var(--green); }
.flag i:nth-child(even) { background: var(--white); }
.foot { padding-block: var(--s8) var(--s6); background: var(--black); color: var(--white); --focus: var(--blue-300); }
.foot-grid { display: grid; gap: var(--s7) var(--s6); }
.foot .brand { margin: 6px; }
.foot .brand img { width: 208px; height: 74px; }
.foot h2 { color: #B4B8C0; font-size: var(--t-small); font-weight: 600; letter-spacing: 0; }
.foot ul { margin-top: var(--s2); list-style: none; }
.foot li, .foot a:not(.brand) { display: flex; align-items: center; min-height: 44px; color: var(--white); font-weight: 650; text-decoration: none; }
.foot a:not(.brand):hover { text-decoration: underline; }
.foot-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); margin-top: var(--s7); }
.foot .muted { color: #B4B8C0; }

/* Inside pages */
.page-head { padding-block: var(--s5) var(--s7); background: linear-gradient(var(--white), var(--blue-100)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0 var(--s2); list-style: none; font-size: var(--t-small); color: var(--muted); }
.crumbs li { display: flex; align-items: center; min-height: 44px; }
.crumbs li + li::before { content: "/"; margin-right: var(--s2); }
.block { padding-block: var(--s7); }
.block + .block { border-top: 1px solid var(--line); }
.split { display: grid; gap: var(--s7); grid-template-columns: minmax(0, 1fr); }
.sources { padding-left: 1.6em; }
.sources li + li, .timeline li + li { margin-top: var(--s4); }
.sources li::marker { font-weight: 800; }
.timeline { padding: 0; list-style: none; }
.timeline .when { display: block; color: var(--muted); font-size: var(--t-small); }
.facts { display: grid; gap: var(--s2) var(--s5); grid-template-columns: minmax(0, 1fr); }
.facts dt { font-weight: 650; }
.facts dd + dt { margin-top: var(--s2); }
.steps { display: grid; gap: var(--s4); list-style: none; }
.steps > li, .notice { max-width: none; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-card); background: var(--blue-50); }
.notice { background: var(--blue-100); }
.swatches { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); list-style: none; }
.swatches i { display: block; height: 72px; border: 1px solid var(--control); border-radius: 18px; background: var(--c); }
.list { list-style: none; }
.list > li + li { margin-top: var(--s6); }

/* Memorial page: black and white, no campaign colours */
.memorial { --bg: var(--black); --ink: var(--white); --muted: #B4B8C0; --line: #33373F; --link: var(--white); --focus: var(--white); }
.memorial h1, .memorial h2, .memorial h3 { font-weight: 600; }
.memorial .sample { background: transparent; color: var(--white); border-color: #8C93A0; }
.memorial .foot { border-top: 1px solid var(--line); }
.people { display: grid; gap: var(--s7) var(--s6); grid-template-columns: minmax(0, 1fr); list-style: none; }
.people .stack > * + * { margin-top: var(--s2); }
.people a { display: inline-block; padding-block: 10px; }

@media (min-width: 480px) {
  .tools .long { display: inline; }
}
@media (min-width: 620px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 800px) {
  :root { --t-hero: min(7.4vw, 7.25rem, 14vh); --t-num: min(10.5vw, 9rem, 24vh); }
  .top[data-tone=photo] { background: linear-gradient(rgb(11 12 13 / .8), transparent); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
  .card { min-height: 360px; padding: var(--s6); }
  .pair, .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split.wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts { grid-template-columns: 11rem minmax(0, 1fr); }
  .facts dd + dt { margin-top: 0; }
  .field-votes { --u: calc((min(1240px, 100vw - 2 * var(--s4)) - 2 * var(--s7) - 130px) / 61); flex-wrap: nowrap; }
  .hero-strip ul { display: flex; justify-content: space-between; }
  .hero-strip li.scroll { display: flex; }
  .share::after { background: linear-gradient(90deg, rgb(11 12 13 / .9), rgb(11 12 13 / .72) 42%, rgb(11 12 13 / .08) 78%), linear-gradient(rgb(11 12 13 / .7), transparent 130px); }
  .join .centre { padding-block: var(--s8); }
  .bubble.wide-only { display: block; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .foot-grid > :first-child { grid-column: auto; }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .menu { display: none; }
  .tools > .dot { display: inline-grid; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
@media (forced-colors: active) {
  .mark { fill: CanvasText; }
  .bar span, .key, .swatches i, .flag i { forced-color-adjust: none; }
  .choices input:checked + span { outline: 3px solid Highlight; }
}
@media print {
  .top, .foot, .flag, .skip, .js .js-only { display: none; }
  main { padding-top: 0; }
}
