/* Keith Plowman for Northern Director.
   Type and layout follow whitehouse.gov (2025): Instrument Serif headings, Instrument Sans text, wide tracked caps
   for labels (their licensed "Nord" -> Archivo Expanded here). Identity (seal, wordmark) is never used.
   Colour is the campaign's own Alberta Blue & Gold palette (v1.0, 2026-11-05): built on the official provincial
   colours, read against unitedconservative.ca and alberta.ca. ../../../Tools/palette.py writes the tokens below and
   checks every text pair (all WCAG AA, most AAA); the reference sheet is ../../../Brand/palette.html.
   Gold marks action (buttons, ballot, map numbers) and is never text on white; Sky is for dark grounds only. */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/InstrumentSerif-normal-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/InstrumentSerif-italic-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/InstrumentSans-normal-400_700-100.woff2") format("woff2"); }
@font-face { font-family: "Archivo Expanded"; font-style: normal; font-weight: 500 700; font-stretch: 125%; font-display: swap;
  src: url("/assets/fonts/Archivo-normal-500_700-125.woff2") format("woff2"); }

:root {
  /* Alberta Blue & Gold */
  --night: #071533;           /* Northern Night: hero, map, footer */
  --deep: #0A204B;            /* Deep Blue: contact gradient */
  --navy: #0F2A5F;            /* Alberta Navy: headings, rules */
  --blue: #0D3692;            /* Alberta Blue, official (PMS 286C): ticker, link text */
  --royal: #1358BB;           /* accent on light grounds: labels, emphasis, hover */
  --sky: #5EBBF8;             /* Big Sky: information on dark grounds only */
  --sky-pale: #A8D8FB;
  --frost: #E6EDF9;           /* alternate section ground */
  --ink: #2D3645;             /* body text */
  --slate: #5A6475;           /* captions and labels, AA on white and frost */
  --gold: #FEBA35;            /* Alberta Gold, official (PMS 136C): action only */
  --gold-hi: #FED372;
  --wheat: #F8E2B8;
  --white: #FFFFFF;
  --line: #CCD1DA;
  /* region map, on --night */
  --map-other: #142036;
  --map-north: #1A3363;
  --map-hover: #1D3D7D;
  --map-active: #184DA3;
  --map-water: #001426;
  --map-inset: #394863;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wide: "Archivo Expanded", "Instrument Sans", system-ui, sans-serif;

  --max: 1240px;
  --hdr-h: 110px;             /* sticky header on tablets and desktops (58 px on phones) */

  /* Type and spacing follow whitehouse.gov's fluid system (read from their CSS, 2026-11-05). Each size is
     designed at two screen widths, 440 px and 1440 px, moves in a straight line between them and keeps
     growing to about 1920 px. Below 440 px whitehouse.gov shrinks all text with the screen (body text
     reaches 11.6 px at 320 px); here text holds its 440 px size instead (body a touch larger: 17 px) and only
     the headings and display sizes keep scaling, so long names still fit. One token per role, no one-offs. */
  --fs-caps: .75rem;                                    /* small caps: kickers, labels, nav, ticker */
  --fs-small: .875rem;                                  /* fine print, hints, captions */
  --fs-button: .875rem;                                 /* buttons (WH heading-6) */
  --fs-body: 1.0625rem;
  --fs-large: clamp(1.0625rem, 4.09vw, 1.125rem);       /* ledes */
  --fs-h3: clamp(1.25rem, 5.45vw, 1.5rem);              /* card titles */
  --fs-h2: clamp(1.75rem, 7.73vw, 2.125rem);            /* panel titles, quotes, the menu */
  --fs-section: clamp(1.75rem, 7.73vw, 2.125rem);       /* section titles, the statement, the phone number */
  --fs-display-s: clamp(2.1818rem, 10.91vw, 3rem);      /* the three numbers */
  --fs-display: clamp(2.4091rem, 12.05vw, 3.3125rem);   /* the hero name */
  --gutter: max(1rem, 4.09vw);
  --s-section: clamp(4rem, 19.78vw - 3.418rem, 6.25rem); /* WH spacing-100: 64 px on phones, 100 px from 782 px */
}
/* 440 px to 1440 px: straight lines between whitehouse.gov's two design widths */
@media (min-width: 440px) {
  :root {
    --fs-body: clamp(1.0625rem, .1vw + 1.035rem, 1.125rem);
    --fs-large: clamp(1.125rem, .3vw + 1.0425rem, 1.3125rem);
    --fs-h3: clamp(1.5rem, .4vw + 1.39rem, 1.75rem);
    --fs-h2: clamp(2.125rem, .4vw + 2.015rem, 2.375rem);
    --fs-section: clamp(2.125rem, 2vw + 1.575rem, 3.375rem);
    --fs-display-s: clamp(3rem, 1.2vw + 2.67rem, 3.75rem);
    --fs-display: clamp(3.3125rem, 2.9vw + 2.515rem, 5.125rem);
    --gutter: clamp(1.125rem, 2.2vw + .52rem, 2.5rem);
  }
}
/* 1440 px and up: everything keeps growing until about 1920 px */
@media (min-width: 1440px) {
  :root {
    --fs-caps: clamp(.75rem, .42vw + .375rem, .875rem);
    --fs-small: clamp(.875rem, .49vw + .4375rem, 1.0208rem);
    --fs-button: clamp(.875rem, .49vw + .4375rem, 1.0208rem);
    --fs-body: clamp(1.125rem, .63vw + .5625rem, 1.3125rem);
    --fs-large: clamp(1.3125rem, .73vw + .6563rem, 1.5313rem);
    --fs-h3: clamp(1.75rem, .97vw + .875rem, 2.0417rem);
    --fs-h2: clamp(2.375rem, 1.32vw + 1.1875rem, 2.7708rem);
    --fs-section: clamp(3.375rem, 1.88vw + 1.6875rem, 3.9375rem);
    --fs-display-s: clamp(3.75rem, 2.08vw + 1.875rem, 4.375rem);
    --fs-display: clamp(5.125rem, 2.85vw + 2.5625rem, 5.9792rem);
    --gutter: clamp(2.5rem, 1.39vw + 1.25rem, 2.9167rem);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 1rem); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--sans); letter-spacing: .2px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; color: var(--navy); }
h2 { font-size: var(--fs-section); line-height: 1.08; letter-spacing: .02em; text-wrap: balance; }
h3 { font-size: var(--fs-h3); line-height: 1.18; letter-spacing: .02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; }
.ticker :focus-visible, .hero :focus-visible, .region :focus-visible, .contact :focus-visible, .ftr :focus-visible { outline-color: var(--gold); }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sep { opacity: .6; padding: 0 .35em; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--gold); color: var(--night);
  padding: .7rem 1rem; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }

.kicker {
  font: 600 var(--fs-caps)/1.3 var(--wide); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .82); margin: 0 0 1.1rem;
}
.kicker-ink { color: var(--royal); }
.fine { font-size: var(--fs-small); line-height: 1.5; color: var(--slate); }
.fine-dark { color: rgba(255, 255, 255, .56); margin-top: 2.25rem; max-width: 65ch; }

/* Buttons: whitehouse.gov's button (square corners, 2 px border, semibold uppercase with open tracking,
   15 x 20 px padding) in the campaign colours. Every button on the site uses it. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 3rem;
  padding: .9375rem 1.25rem; font: 600 var(--fs-button)/1.18 var(--sans); letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; border: 2px solid transparent; border-radius: 0;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn .arr { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .85); }
.btn-ghost:hover { background: var(--white); color: var(--night); }
.cta-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Phase switches (site.js sets html[data-phase]: join -> vote -> after) */
html[data-phase="join"] .show-late { display: none !important; }
html:not([data-phase="join"]) .show-join { display: none !important; }

/* Ticker */
.ticker { background: var(--blue); color: var(--white); overflow: hidden; position: relative; z-index: 30; }
.ticker-link { display: block; text-decoration: none; padding: .8rem 0; }
.ticker-track { display: inline-flex; white-space: nowrap; animation: tick 38s linear infinite; will-change: transform; }
.ticker-item { font: 600 var(--fs-caps)/1.2 var(--wide); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; padding-right: 4rem; }
.ticker-dot { padding: 0 .6em; color: var(--gold); }
.ticker-arr { display: inline-block; width: 14px; height: 10px; margin-left: .55em; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ticker-link:hover .ticker-track, .ticker-link:focus-visible .ticker-track { animation-play-state: paused; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Header */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--white); color: var(--navy); border-bottom: 1px solid var(--line); }
.hdr-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 64px;
  padding: 0 var(--gutter); max-width: calc(1440px + 2 * var(--gutter)); margin: 0 auto; }
.hdr-menu { justify-self: start; display: inline-flex; align-items: center; gap: .65rem; background: none; border: 0;
  min-height: 44px; padding: 0; color: inherit; cursor: pointer; font: 500 var(--fs-caps)/1 var(--wide); font-stretch: 125%;
  letter-spacing: .16em; text-transform: uppercase; }
.burger { position: relative; width: 18px; height: 2px; background: currentColor; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.wordmark { text-decoration: none; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .55rem 0; }
.wm-name { font: 600 1.02rem/1 var(--wide); font-stretch: 125%; letter-spacing: .3em; text-transform: uppercase; margin-right: -.3em; }
.wm-sub { font: italic 400 .98rem/1 var(--serif); letter-spacing: .3px; color: var(--blue); }
.hdr-call { justify-self: end; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  font: 500 var(--fs-caps)/1 var(--wide); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; min-height: 44px; }
.hdr-call svg { width: 17px; height: 17px; fill: currentColor; }
.hdr-nav { display: flex; justify-content: center; gap: clamp(1.5rem, 3vw, 3.25rem); border-top: 1px solid var(--line);
  margin: 0 var(--gutter); padding: 0; }
.hdr-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font: 500 var(--fs-caps)/1 var(--wide);
  font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; }
.hdr-nav a:hover, .hdr-call:hover, .hdr-menu:hover { color: var(--royal); }

/* Menu overlay */
.menu { position: fixed; inset: 0; z-index: 50; background: var(--frost); color: var(--navy); overflow-y: auto; }
.menu-in { max-width: 760px; margin: 0 auto; padding: 1.25rem var(--gutter) 3rem; }
.menu-close { background: none; border: 0; cursor: pointer; color: inherit; padding: 0; min-height: 44px; display: inline-flex; gap: .5rem; align-items: center;
  font: 500 var(--fs-caps)/1 var(--wide); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; }
.menu-close span { font: 400 1.6rem/0.6 var(--sans); }
.menu nav { display: flex; flex-direction: column; margin: 2.5rem 0 2rem; border-top: 1px solid var(--line); }
.menu nav a { font: 400 var(--fs-h2)/1.15 var(--serif); text-decoration: none; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.menu nav a:hover { color: var(--royal); }
.menu-phone { display: inline-flex; align-items: center; min-height: 44px; font: 600 var(--fs-body)/1 var(--wide); font-stretch: 125%; letter-spacing: .12em; text-decoration: none; color: var(--royal); }

/* Hero */
.hero { position: relative; isolation: isolate; background: var(--night); color: var(--white);
  min-height: clamp(560px, 80vh, 860px); display: flex; align-items: flex-end; overflow: hidden; }
/* portrait fills the right 54%; its left edge melts into the navy behind the headline */
.hero-img img { position: absolute; top: 0; right: 0; bottom: 0; width: 54%; height: 100%; object-fit: cover; object-position: 50% 26%; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--night) 0%, var(--night) 46%, rgba(7, 21, 51, .62) 52%, rgba(7, 21, 51, .18) 59%, rgba(7, 21, 51, 0) 66%); }
.hero-in { padding-top: 5rem; padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.hero h1 { color: var(--white); font-size: var(--fs-display); line-height: .98; letter-spacing: .01em; max-width: 11ch; margin: 0 0 1.5rem; }
.h1-name { display: block; }
.h1-for { display: block; font-style: italic; font-size: .52em; line-height: 1.12; color: rgba(255, 255, 255, .9); margin-top: .2em; letter-spacing: .3px; }
.hero-lede { font-size: var(--fs-large); line-height: 1.55; max-width: min(34rem, 41vw); color: rgba(255, 255, 255, .9); margin-bottom: 2rem; }
.hero .kicker .sep { color: var(--gold); opacity: 1; }
@media (max-width: 439px) { .hero .kicker .sep { display: block; height: 0; overflow: hidden; } }

/* Stats */
.stats { padding: var(--s-section) 0 calc(var(--s-section) * .8); text-align: center; position: relative; }
.statement { font: 400 var(--fs-section)/1.1 var(--serif); color: var(--navy); max-width: 22ch; margin: 0 auto;
  letter-spacing: .3px; text-wrap: balance; }
.statement em { color: var(--royal); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 960px; margin: clamp(2.75rem, 5vw, 4.5rem) auto 1.75rem; border-top: 1px solid var(--line); }
.stat { padding: 1.9rem 1rem 0; display: flex; flex-direction: column; gap: .7rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat dd { margin: 0; font: 400 var(--fs-display-s)/1 var(--serif); color: var(--navy); }
.stat dt { font: 600 var(--fs-caps)/1.3 var(--wide); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }

/* Letter */
.letter { background: var(--frost); padding: var(--s-section) 0; }
.letter-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: start; }
.letter-photo { margin: 0; position: sticky; top: 140px; }
.letter-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.letter-photo figcaption, .family-photo figcaption { font: 600 var(--fs-caps)/1.3 var(--wide); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin-top: .9rem; }
.letter-text h2 { margin-bottom: 2rem; max-width: 20ch; }
.nowrap-line { display: inline-block; }
.prose { max-width: 38rem; }
.prose p + p { margin-top: 1.15rem; }
.prose .lead { font: 400 var(--fs-large)/1.5 var(--sans); color: var(--navy); }
.signature { margin-top: 2.25rem; display: flex; flex-direction: column; gap: .35rem; }
.sig-name { font: italic 400 var(--fs-h2)/1 var(--serif); color: var(--navy); }
.sig-phone { display: inline-flex; align-items: center; min-height: 44px; font: 600 var(--fs-caps)/1 var(--wide); font-stretch: 125%; letter-spacing: .16em; color: var(--royal); text-decoration: none; }
.sig-phone:hover { text-decoration: underline; }
.sig-ask { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--royal); text-underline-offset: 4px; }

/* Pillars */
.pillars { padding: var(--s-section) 0; }
.pillars h2 { max-width: 18ch; margin-bottom: clamp(2.5rem, 4vw, 3.75rem); }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 2.6vw, 2.75rem); }
@media (max-width: 1199px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
.pillar { border-top: 2px solid var(--navy); padding-top: 1.5rem; }
.pillar-k { font: 600 var(--fs-caps)/1.3 var(--wide); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin-bottom: 1.1rem; }
.pillar-k span { color: var(--royal); margin-right: .7em; }
.pillar h3 { margin-bottom: .8rem; }
.boards { margin-top: clamp(2.75rem, 4.5vw, 4rem); padding-top: 1.6rem; border-top: 2px solid var(--navy); }
.board-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 0 clamp(1.5rem, 2.6vw, 2.75rem); }
.board-list li { display: flex; flex-direction: column; gap: .35rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.b-org { font: 400 var(--fs-large)/1.2 var(--serif); color: var(--navy); }
.b-meta { font: 600 var(--fs-caps)/1.3 var(--wide); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.b-meta span { display: block; margin-top: .3rem; font: 600 var(--fs-small)/1.35 var(--sans); letter-spacing: .01em; text-transform: none; color: var(--royal); }

/* Family. The Alberta flag lies under the frost (Jaeger, 2026-11-05), toned into it by Tools/family_flag.py: the image
   fades to --frost at its edges, and its centre (the shield) follows the text block at every width. */
.family { position: relative; isolation: isolate; overflow: hidden; background: var(--frost); padding: var(--s-section) 0; }
.family-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3.4fr) minmax(0, 3.4fr); gap: clamp(1rem, 2.2vw, 2rem); align-items: end; }
.family-text { position: relative; align-self: center; padding-right: clamp(0rem, 3vw, 3rem); }
.family-text::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; height: min(47.5rem, 63vw); aspect-ratio: 3; transform: translate(-50%, -50%); background: url(/assets/img/family-flag.webp) center / 100% 100% no-repeat; pointer-events: none; }
.family-text h2 { margin-bottom: 1.75rem; }
.family blockquote { margin: 0; border-left: 3px solid var(--gold); padding-left: 1.25rem; }
.family blockquote p { font: italic 400 var(--fs-h3)/1.3 var(--serif); color: var(--navy); }
.family-photo { margin: 0; }
.family-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.fp-2 { transform: translateY(-2.5rem); }

/* Region map */
.region { background: var(--night); color: var(--white); padding: var(--s-section) 0; }
.region h2 { color: var(--white); max-width: 20ch; }
.region-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.region-lede { margin-top: 1.25rem; font-size: var(--fs-large); color: rgba(255, 255, 255, .82); max-width: 40rem; }
.region-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.map-wrap { container-type: inline-size; container-name: nmap; }
.region-side { position: sticky; top: 132px; }

.ed-card { border-top: 2px solid var(--gold); padding: 1.35rem 0 1.5rem; min-height: 15.5rem; }
.ed-card-k { font: 600 var(--fs-caps)/1.3 var(--wide); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .7rem; }
.ed-card-h { color: var(--white); font-size: var(--fs-h3); line-height: 1.08; margin-bottom: .9rem; }
.ed-card-p { color: rgba(255, 255, 255, .8); font-size: var(--fs-body); }
.ed-card dl { margin: 0; display: grid; gap: .8rem; }
.ed-card dt { font: 600 var(--fs-caps)/1.3 var(--wide); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .58); margin-bottom: .2rem; }
.ed-card dd { margin: 0; font-size: var(--fs-body); line-height: 1.5; color: rgba(255, 255, 255, .92); }
.ed-est { color: rgba(255, 255, 255, .58); font-size: var(--fs-small); }
.ed-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .16); columns: 1; }
.ed-list button { width: 100%; display: flex; align-items: center; gap: .85rem; text-align: left; cursor: pointer;
  background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .9);
  font: 500 var(--fs-body)/1.25 var(--sans); padding: .62rem .25rem; transition: background-color .15s, color .15s; }
.ed-list .n { flex: 0 0 auto; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--night); font: 700 var(--fs-caps)/1 var(--sans); }
.ed-list button:hover, .ed-list button[aria-pressed="true"] { background: rgba(255, 255, 255, .07); color: var(--white); }
.ed-list button[aria-pressed="true"] .n { background: var(--white); }
.ed-lookup { margin-top: 1.1rem; font-size: var(--fs-small); line-height: 1.5; color: rgba(255, 255, 255, .78); }
.ed-lookup a { color: var(--sky); text-underline-offset: 3px; }

/* the SVG (presentation sizes are in map units; 1000 units = map width) */
.nmap { display: block; width: 100%; height: auto; }
.nmap text { font-family: var(--sans); }
.m-other path { fill: var(--map-other); stroke: rgba(255, 255, 255, .16); stroke-width: .9; }
.m-ed { fill: var(--map-north); stroke: none; cursor: pointer; transition: fill .18s; }
.m-ed:hover { fill: var(--map-hover); }
.m-ed.is-active { fill: var(--map-active); }
.m-water, .m-county, .m-edline, .m-outline, .m-ctx, .m-ctylbl, .m-lakelbl, .m-towns, .m-inset, .m-leader { pointer-events: none; }
.m-lake { fill: var(--map-water); stroke: rgba(94, 187, 248, .32); stroke-width: .7; }
.m-river { fill: none; stroke: rgba(94, 187, 248, .46); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.m-county { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: .8; stroke-dasharray: 3 3; }
.m-edline { fill: none; stroke: rgba(255, 255, 255, .62); stroke-width: 1.3; stroke-linejoin: round; }
.m-outline { fill: none; stroke: var(--white); stroke-width: 2.2; stroke-linejoin: round; }
.m-ctx circle { fill: rgba(255, 255, 255, .55); }
.m-ctx text { font-size: 17px; font-weight: 500; fill: rgba(255, 255, 255, .58); letter-spacing: .02em; }
.m-ctylbl text { font-family: var(--serif); font-style: italic; font-size: 15.5px; fill: rgba(255, 255, 255, .52); letter-spacing: .02em; }
.m-lakelbl text { font-family: var(--serif); font-style: italic; font-size: 13.5px; fill: var(--sky-pale); }
.m-towns text { fill: var(--white); paint-order: stroke; stroke: var(--map-north); stroke-width: 3.4px; stroke-linejoin: round; }
.m-t1 { font-weight: 600; }
.m-t2 { font-weight: 500; fill: rgba(255, 255, 255, .9); }
.m-dot { fill: var(--white); }
.m-dot-big { stroke: var(--map-north); stroke-width: 1.6; }
.m-num { cursor: pointer; }
.m-num circle { fill: var(--gold); stroke: var(--night); stroke-width: 2.2; transition: fill .15s; }
.m-num text { font-weight: 700; fill: var(--night); }
.m-num:hover circle, .m-num.is-active circle { fill: var(--white); }
.m-leader { stroke: var(--gold); stroke-width: 1.4; fill: none; }
.m-inset rect { fill: rgba(7, 21, 51, .9); stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.m-inset-k { font: 600 10px/1 var(--wide); font-stretch: 125%; letter-spacing: .2em; fill: rgba(255, 255, 255, .72); }
.m-inset-c { font-size: 10.5px; fill: rgba(255, 255, 255, .72); }
.m-in-o { fill: var(--map-inset); stroke: var(--night); stroke-width: .5; }
.m-in-n { fill: var(--white); stroke: var(--night); stroke-width: .5; }
.m-in-agm { fill: var(--gold); stroke: var(--white); stroke-width: 1.5; }
.m-in-agml { font: 700 10px/1 var(--sans); fill: var(--white); letter-spacing: .08em; }
.m-towns-m, .m-nums-m { display: none; }
@container nmap (max-width: 560px) {
  .m-towns-d, .m-nums-d, .m-ctylbl, .m-lakelbl { display: none; }
  .m-towns-m, .m-nums-m { display: inline; }
  .m-towns text { stroke-width: 6px; }
  .m-edline { stroke-width: 2; } .m-outline { stroke-width: 3.2; } .m-county { display: none; }
  .m-inset { display: none; }
}

/* Desktop: the whole Northern region (heading, card, map, list) fits one screen under the sticky
   header (Jaeger, 2026-11-05). The map column follows the viewport height (the map is portrait,
   1000 x 1330.4) and is capped so both side columns keep 17rem; the wrappers step aside
   (display: contents) so heading, card, map, list and notes each take a grid area. Smaller or
   shorter screens keep the stacked layout. Only #north: 404.html reuses .region. */
@media (min-width: 1200px) and (min-height: 640px) {
  html { scroll-padding-top: var(--hdr-h); }
  #north { --pad: clamp(1.25rem, 3.2vh, 2.5rem); --gap: clamp(1.75rem, 2.4vw, 3rem);
    min-height: calc(100svh - var(--hdr-h)); padding: var(--pad) 0; display: flex; align-items: center; }
  #north > .wrap { max-width: calc(1440px + 2 * var(--gutter)); display: grid; column-gap: var(--gap);
    grid-template-columns: minmax(17rem, 1fr) min(calc((100svh - var(--hdr-h) - 2 * var(--pad)) * .7517), calc(100% - 34rem - 2 * var(--gap))) minmax(17rem, 1fr);
    grid-template-rows: auto 1fr auto auto;
    grid-template-areas: "head map list" "card map list" "card map lookup" "card map fine"; }
  #north .region-grid, #north .region-side { display: contents; }
  #north .region-head { grid-area: head; margin: 0 0 1.25rem; }
  #north .kicker { margin-bottom: .75rem; }
  #north h2 { font-size: var(--fs-h2); max-width: none; }
  #north .region-lede { margin-top: .8rem; font-size: var(--fs-body); line-height: 1.55; }
  #north .map-wrap { grid-area: map; align-self: center; }
  #north .ed-card { grid-area: card; min-height: 0; padding: 1rem 0 0; }
  #north .ed-card-h { margin-bottom: .7rem; }
  #north .ed-card-p, #north .ed-card dd { font-size: var(--fs-small); line-height: 1.45; }
  #north .ed-card dl { gap: .55rem; }
  #north .ed-list { grid-area: list; align-self: start; }
  /* the 13 rows scale with the screen height: about 30 px each at 720 px tall, 37 px at 960 */
  #north .ed-list button { padding: clamp(.18rem, .55vh, .5rem) .25rem; font-size: var(--fs-small); }
  #north .ed-list .n { width: clamp(1.25rem, 2.9vh, 1.6rem); height: clamp(1.25rem, 2.9vh, 1.6rem); font-size: clamp(.64rem, 1.4vh, .74rem); }
  #north .ed-lookup { grid-area: lookup; margin-top: .9rem; }
  #north .fine-dark { grid-area: fine; margin-top: .7rem; font-size: var(--fs-caps); line-height: 1.45; }
}

/* Check my region (postal code lookup: src/region.js + assets/region.js) */
.check { background: var(--frost); padding: var(--s-section) 0; }
.check-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.check h2 { margin-bottom: 1rem; }
.check-lede { font-size: var(--fs-large); color: var(--ink); max-width: 40rem; }
.check-form { margin-top: 1.75rem; max-width: 36rem; }
.check-label { display: block; margin-bottom: .6rem; font: 600 var(--fs-caps)/1.3 var(--wide); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.check-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.check-row input { flex: 1 1 11rem; min-height: 3rem; padding: .7rem 1rem; border: 2px solid var(--navy); border-radius: 0; background: var(--white); color: var(--navy); font: 600 var(--fs-large)/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.check-row input::placeholder { color: var(--slate); opacity: .7; }
.check-row input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.check-result { margin-top: 1.5rem; max-width: 42rem; padding: 1.4rem 1.5rem 1.5rem; background: var(--white); border-top: 4px solid var(--navy); }
.check-result.is-yes { border-top-color: var(--gold); }
.check-result.is-no { border-top-color: var(--slate); }
.check-result.is-busy { border-top-color: var(--line); color: var(--slate); }
.check-result p + p { margin-top: .55rem; }
.check-result a:not(.btn) { color: var(--blue); }
.res-k { margin-bottom: .5rem; font: 600 var(--fs-caps)/1.3 var(--wide); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: var(--royal); }
.res-h { font: 400 var(--fs-h3)/1.15 var(--serif); color: var(--navy); }
.res-small { font-size: var(--fs-small); color: var(--slate); }
.check-result .res-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.1rem; }
.btn-line { color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }
.check-fine { margin-top: 1.5rem; max-width: 65ch; }
.check-fine a { color: var(--blue); }
.check-qr { margin: 0; padding-top: 3.25rem; text-align: center; }
.check-qr img { width: 200px; height: 200px; padding: 14px; background: var(--white); border: 1px solid var(--line); }
.check-qr figcaption { margin-top: .85rem; font: 600 var(--fs-caps)/1.5 var(--wide); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.check-qr figcaption span { display: block; font: 600 var(--fs-small)/1.4 var(--sans); letter-spacing: .02em; text-transform: none; color: var(--navy); }
@media (max-width: 719px) {
  .check-grid { grid-template-columns: 1fr; }
  .check-qr { display: none; }
  .check-row .btn { flex: 1 1 100%; justify-content: center; }
}

/* Vote */
.vote { padding: var(--s-section) 0; }
.vote h2 { max-width: 16ch; }
.vote-lede { margin-top: 1.25rem; font-size: var(--fs-large); max-width: 40rem; color: var(--ink); }
.steps { list-style: none; padding: 0; margin: clamp(2.5rem, 4vw, 3.75rem) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2rem); counter-reset: step; }
.step { background: var(--frost); padding: 1.75rem 1.6rem 1.9rem; border-top: 4px solid var(--navy); counter-increment: step; display: flex; flex-direction: column; gap: .8rem; }
.step-date { font: 600 var(--fs-caps)/1.3 var(--wide); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: var(--royal); }
.step-date::before { content: "0" counter(step); color: var(--navy); margin-right: .9em; }
.step-links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: auto; padding-top: .4rem; }
.step-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.step-links a:hover { color: var(--royal); }
.ballot-row { margin-top: clamp(2.5rem, 4vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.ballot { background: var(--white); border: 1px solid var(--navy); box-shadow: 10px 10px 0 var(--wheat); padding: 1.6rem 1.75rem; }
.ballot-k { font: 600 var(--fs-caps)/1.3 var(--wide); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.ballot-line { display: flex; align-items: center; gap: 1.1rem; padding-top: 1.1rem; }
.ballot-box { flex: 0 0 auto; width: 3.4rem; height: 3.4rem; border: 2px solid var(--navy); display: grid; place-items: center;
  font: 400 2.5rem/1 var(--serif); color: var(--royal); }
.ballot-name { font: 600 var(--fs-body)/1.2 var(--wide); font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.ballot-text { max-width: 40rem; }
.ballot-text h3 { margin-bottom: .8rem; }
.ballot-text p + p { margin-top: .8rem; }

/* Contact */
.contact { color: var(--white); padding: var(--s-section) 0; position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(321deg, var(--deep) 7.41%, var(--blue) 80.62%); }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/furrows.svg") center / cover no-repeat; opacity: .9; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6.4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; }
.contact-photo img { width: clamp(140px, 12vw, 190px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); }
.contact h2 { color: var(--white); max-width: 20ch; margin-bottom: 1.25rem; font-size: var(--fs-h2); }
.big-phone { display: inline-flex; align-items: center; min-height: 44px; padding: .2em 0; font: 400 var(--fs-section)/1 var(--serif); text-decoration: none; letter-spacing: .02em; margin-bottom: 1.25rem; }
.big-phone:hover { color: var(--gold); }
.contact-email { display: flex; align-items: center; width: fit-content; min-height: 44px; margin: -1rem 0 1.25rem; font: 600 var(--fs-large)/1.2 var(--sans); color: var(--white); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: .2em; overflow-wrap: anywhere; }
.contact-email:hover { color: var(--gold); text-decoration-color: currentColor; }
.contact-sign { margin-top: 2rem; font: italic 400 var(--fs-large)/1.4 var(--serif); color: rgba(255, 255, 255, .88); }
.contact-sign span { white-space: nowrap; }

/* Ask Keith a question: JSON form (assets/ask.js -> POST /api/ask, src/ask.js). Gold marks the
   action and the problems (no red); labels are wide caps like the rest of the site. */
.ask { background: rgba(7, 21, 51, .58); border: 1px solid rgba(255, 255, 255, .16); border-radius: 0;
  padding: clamp(1.4rem, 2.6vw, 2.5rem); }
.ask .kicker { color: var(--gold); margin-bottom: .7rem; }
.ask-h { color: var(--white); font-size: var(--fs-h2); line-height: 1.1; }
.ask-sub { margin: .6rem 0 1.5rem; color: rgba(255, 255, 255, .84); font-size: var(--fs-body); line-height: 1.55; }
.ask-nojs { color: rgba(255, 255, 255, .9); }
.ask-nojs a { color: var(--gold); }
.ask-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.1rem; }
.ask fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.f-wide { grid-column: 1 / -1; }
.f-label { display: block; padding: 0; margin: 0 0 .5rem; font: 600 var(--fs-caps)/1.3 var(--wide); font-stretch: 125%;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .88); }
.f-opt { font: 400 var(--fs-caps)/1 var(--sans); letter-spacing: .01em; text-transform: none; color: rgba(255, 255, 255, .64); }
.ask input[type="text"], .ask select, .ask textarea { display: block; width: 100%; min-height: 48px; margin: 0;
  padding: .7rem .85rem; border: 2px solid rgba(255, 255, 255, .4); border-radius: 0; background: var(--white);
  color: var(--ink); font: 400 1rem/1.4 var(--sans); }
.ask textarea { min-height: 6.25rem; resize: vertical; }
.ask select { appearance: none; padding-right: 2.5rem; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%230F2A5F' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .9rem center / 12px 8px; }
.ask ::placeholder { color: #6B7385; opacity: 1; }
.ask [aria-invalid="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.f-hint { margin-top: .45rem; font-size: var(--fs-small); color: rgba(255, 255, 255, .74); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1rem; border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 0; color: var(--white); font: 500 var(--fs-small)/1.15 var(--sans); transition: background-color .15s, border-color .15s, color .15s; }
.chip:hover span { border-color: var(--white); }
.chip input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--night); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.consent { display: flex; gap: .7rem; align-items: center; min-height: 44px; font-size: var(--fs-small); line-height: 1.45; color: rgba(255, 255, 255, .9); cursor: pointer; }
.consent input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--gold); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ask-error { color: var(--gold); font-weight: 600; font-size: var(--fs-body); }
.ask-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
button.btn { cursor: pointer; }
.btn[disabled] { opacity: .7; cursor: progress; }
.ask-privacy { flex: 1 1 15rem; font-size: var(--fs-small); line-height: 1.5; color: rgba(255, 255, 255, .7); }
.ask-done:focus { outline: none; }
.ask.is-done > .ask-h, .ask.is-done > .ask-sub { display: none; }
.ask-next { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 2px solid var(--gold); }
.ask-next-t { color: var(--white); font-size: var(--fs-body); line-height: 1.5; margin-bottom: 1rem; }
.ask-again { margin-top: 1.5rem; padding: 0; border: 0; background: none; color: var(--sky); cursor: pointer;
  display: inline-flex; align-items: center; min-height: 44px; font: 600 var(--fs-body)/1.4 var(--sans); text-decoration: underline; text-underline-offset: 4px; }

/* Footer */
.ftr { background: var(--night); color: rgba(255, 255, 255, .78); padding: 2.75rem 0 3rem; text-align: center; }
.ftr-name { font: 600 .9rem/1 var(--wide); font-stretch: 125%; letter-spacing: .3em; text-transform: uppercase; color: var(--white); margin-right: -.3em; }
.ftr-sub { margin-top: .9rem; font: italic 400 var(--fs-body)/1.3 var(--serif); }
.ftr-c { margin-top: 1.4rem; font-size: var(--fs-small); color: rgba(255, 255, 255, .58); }

/* Tablet */
@media (max-width: 1023px) {
  .letter-grid, .region-grid, .ballot-row { grid-template-columns: 1fr; }
  .letter-photo, .region-side { position: static; }
  .letter-photo { max-width: 640px; }
  .family-grid { grid-template-columns: 1fr 1fr; }
  .family-text { grid-column: 1 / -1; padding: 0 0 1.5rem; }
  .family-text::before { height: 27.5rem; }
  .fp-2 { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .ed-list { columns: 2; column-gap: 2rem; }
  .ed-list li { break-inside: avoid; }
  .ed-card { min-height: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .ask { max-width: 46rem; }
}

/* Phone */
@media (max-width: 719px) {
  html { scroll-padding-top: 76px; }
  .hdr-nav { display: none; }
  .hdr-row { min-height: 58px; }
  .hdr-menu-t, .hdr-call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hdr-call { width: 44px; height: 44px; justify-content: flex-end; }
  .hdr-menu { width: 44px; height: 44px; }
  .wm-name { font-size: .86rem; letter-spacing: .24em; margin-right: -.24em; }
  .wm-sub { font-size: .9rem; }
  .hero { display: block; min-height: 0; }
  .hero-img img { position: static; width: 100%; height: auto; aspect-ratio: 4232 / 4032; object-position: 50% 30%; }
  .hero-shade { display: none; }
  .hero-img { position: relative; display: block; }
  .hero-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
    background: linear-gradient(0deg, var(--night) 6%, rgba(7, 21, 51, 0)); }
  .hero-in { position: relative; padding-top: 0; margin-top: -1.5rem; padding-bottom: 3rem; }
  .hero-lede { max-width: none; }
  .hero h1 { max-width: none; }
  .stat-row { grid-template-columns: 1fr; border-top: 0; margin-top: 2.25rem; }
  .stat { padding: 1.4rem 0; border-top: 1px solid var(--line); }
  .stat + .stat { border-left: 0; }
  .pillar-grid { grid-template-columns: 1fr; }
  .family-grid { gap: .75rem; }
  .ed-list { columns: 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-photo img { width: 140px; }
  .ask-form { grid-template-columns: 1fr; }
  .cta-row .btn, .ask-actions .btn { flex: 1 1 auto; justify-content: center; }
  .ballot { box-shadow: 6px 6px 0 var(--wheat); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .ticker-link { text-align: center; }
  .ticker-track [aria-hidden="true"] { display: none; }
  .ticker-item { padding-right: 0; white-space: normal; }
}
@media print {
  .ticker, .hdr, .menu, .cta-row, .region-side, .ask { display: none !important; }
  .region, .contact, .ftr { background: none !important; color: #000 !important; }
}
