/* Brad LaForge for Calgary Director: site styles.
   Look and feel: GoA visual identity STANDARDS only (VI Manual Ed. 28 + the alberta.ca live palette),
   per Research/goa-vi-tokens.md. Never GoA identity, never the UCP logo.
   Sky #00b6ed is decoration only (bars and rules): it never carries text.
   This file is served under a content-hashed name (site.<hash>.css) that browsers cache for a year:
   after ANY edit, rename it to the new hash and update index.html (.frontend-work/fingerprint.py does both). */

:root{
  color-scheme:light;
  --bl-sky:#00b6ed;
  --bl-sky-dark:#002c4e;      /* the one dark band; white text 14.28:1 */
  --bl-sky-20:#ccf0fb;        /* secondary text on Sky Dark: 11.85:1 */
  --bl-stone-mid:#545860;     /* secondary text: 7.14:1 on white, 6.38:1 on #f2f2f2 */
  --bl-stone-light:#d0d1db;   /* hairlines only */
  --bl-text:#333333;          /* 12.63:1 */
  --bl-link:#006dcc;          /* 5.17:1 on white, 4.62:1 on #f2f2f2 */
  --bl-link-hover:#004f84;
  --bl-link-visited:#756693;
  --bl-focus:#006dcc;
  --bl-focus-on-dark:#feba35; /* 8.36:1 on Sky Dark */
  --bl-border-input:#666666;  /* 5.74:1 */
  --bl-surface-subtle:#f2f2f2;
  --bl-error:#b42318;         /* 6.57:1 on white */
  --bl-success:#006f4c;       /* 6.22:1 on white */
  --bl-review:#feba35;
  --bl-font:"Helvetica Neue","HelveticaNeue",Helvetica,Arial,sans-serif;
  --bl-gutter:clamp(16px,5vw,64px);
  --bl-max:1200px;
  --sec:clamp(48px,9vw,136px);
  --mast-h:72px;              /* the sticky header is 5 px + this + 1 px tall */
  --head-h:78px;
}
@media (max-width:759px){:root{--mast-h:54px;--head-h:60px}}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--bl-text);font-family:var(--bl-font);
  font-size:clamp(1.0625rem,1rem + .25vw,1.1875rem);line-height:1.5;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
img{display:block;max-width:100%;height:auto}
h1,h2,h3,p,ul,ol,dl,dd,figure,blockquote{margin:0}
ul,ol{padding:0;list-style:none}
a{color:var(--bl-link);text-decoration-thickness:1px;text-underline-offset:.3em}
a:hover{color:var(--bl-link-hover);text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--bl-focus);outline-offset:2px}
p,li,dd,figcaption{text-wrap:pretty}
[hidden]{display:none !important}
.wrap{width:100%;max-width:calc(var(--bl-max) + 2 * var(--bl-gutter));margin:0 auto;padding:0 var(--bl-gutter)}
.nw{white-space:nowrap}
.vh{position:absolute !important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.skip{position:absolute;left:8px;top:-80px;z-index:1100;background:var(--bl-text);color:#fff;padding:12px 16px;font-weight:700}
.skip:focus{top:12px;color:#fff}
/* Anchors and keyboard focus land below the sticky header (review.css adds the review bar) */
html{scroll-padding-top:calc(var(--head-h) + 12px)}

/* Section label: a short Sky bar (the VI colour-bar cue) and a quiet name */
.label{display:flex;align-items:flex-start;text-wrap:balance;gap:12px;font-size:.9375rem;font-weight:700;line-height:1.3;color:var(--bl-text);margin-bottom:clamp(14px,2vw,28px)}
.label::before{content:"";flex:none;width:32px;height:5px;margin-top:calc(.65em - 2.5px);background:var(--bl-sky)}
.h2{font-size:clamp(2rem,1.35rem + 2.9vw,4rem);line-height:1.03;letter-spacing:-.03em;font-weight:700;text-wrap:balance}

/* Ballot box: a ranked ballot's numbered box, always an outline (never a filled square) */
.box{flex:none;display:grid;place-items:center;width:1.7em;height:1.7em;border:3px solid var(--bl-sky-dark);color:var(--bl-sky-dark);background:#fff;
  font-weight:700;font-size:2.125rem;line-height:1;font-variant-numeric:tabular-nums}

/* Buttons (alberta.ca: 4 px radius, bold label) */
.actions{display:flex;flex-wrap:wrap;gap:12px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 24px;border-radius:4px;margin:0;
  border:2px solid var(--bl-link);background:var(--bl-link);color:#fff;font:700 1.0625rem/1.2 var(--bl-font);text-align:center;text-decoration:none;cursor:pointer}
.btn:hover{background:var(--bl-link-hover);border-color:var(--bl-link-hover);color:#fff;text-decoration:none}
.btn:visited{color:#fff}
.btn--line,.btn--line:visited{background:#fff;color:var(--bl-link)}
.btn--line:hover{background:var(--bl-surface-subtle);color:var(--bl-link-hover);border-color:var(--bl-link-hover)}
.btn--sm{min-height:44px;padding:0 18px;font-size:1rem}
/* While a form sends: aria-disabled (not disabled) keeps focus on the button */
.btn[disabled],.btn[aria-disabled="true"]{cursor:progress;opacity:.72}
.btn[disabled]:hover,.btn[aria-disabled="true"]:hover{background:var(--bl-link);border-color:var(--bl-link)}

/* Masthead: sticky on every width. The Sky line on top fades, in one calm step, into a pale Sky
   tint that runs down to almost white, closed by a pale Sky hairline. Text on it stays dark (AA).
   In review mode review.js sets --rv-bar-h, so the header sticks under the review bar. */
.bar{height:8px;background:var(--bl-sky)}
.site-head{position:sticky;top:var(--rv-bar-h,0px);z-index:60;
  background:linear-gradient(180deg,var(--bl-sky) 0,var(--bl-sky) 5px,#7fd9f5 7px,#d6f2fc 13px,#eaf8fe 40%,#f7fcfe 100%);
  border-bottom:1px solid #c6e9f6;padding-top:5px}
/* Frosted glass (Jaeger 2026-11-02): the page shows through, blurred. The tint stays at 80-84% where the
   text sits, so header text keeps AA contrast even over the navy band or a dark photo (at 65% the blue
   links drop to about 4:1 over navy). Browsers without backdrop-filter keep the solid gradient above. */
@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
  .site-head{background:linear-gradient(180deg,var(--bl-sky) 0,var(--bl-sky) 5px,rgba(127,217,245,.75) 7px,rgba(214,242,252,.8) 13px,rgba(234,248,254,.82) 40%,rgba(247,252,254,.84) 100%);
    -webkit-backdrop-filter:saturate(180%) blur(16px);backdrop-filter:saturate(180%) blur(16px);border-bottom-color:rgba(150,205,230,.6)}
}
.mast{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;row-gap:0;min-height:var(--mast-h)}
.wordmark{display:inline-flex;align-items:center;gap:0 .28em;min-height:44px;font-weight:700;font-size:1.3125rem;letter-spacing:-.015em;color:var(--bl-text);text-decoration:none;white-space:normal}
/* With enlarged text the header may wrap: "Re-elect" and "Brad LaForge" each stay whole and stack */
.wordmark{flex-wrap:wrap}
.wordmark > span{white-space:nowrap}
.wordmark:hover,.wordmark:visited{color:var(--bl-text);text-decoration:none}
.nav{display:flex;flex-wrap:wrap;align-items:center;gap:clamp(8px,1.6vw,24px);font-size:1rem}
.nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;color:var(--bl-link-hover);text-decoration:none;white-space:nowrap}
.nav a:hover{text-decoration:underline}
.nav .nav__vote{font-weight:700}
@media (max-width:899px){.nav .opt{display:none}}
/* The email sits where the phone was: the full address from 760 px up; on phones an envelope icon
   (its name stays "Email blaforge@…"). Room for it: the wordmark shrinks a little up to 430 px and,
   below 360 px, stacks "Brad" over "LaForge" so How to vote keeps its place. */
.nav__mail-icon{display:none;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:759px){
  .mast{gap:12px;row-gap:0}
  .wordmark{font-size:clamp(1.0625rem,4.4vw,1.1875rem)}
  .nav .nav__mail{justify-content:center;width:40px;padding:0}
  .nav__mail-icon{display:block}
  .nav__mail-text{position:absolute !important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
}
@media (max-width:359px){
  .wordmark{flex-direction:column;align-items:flex-start;justify-content:center;gap:0;line-height:1.1}
}
/* "RE-ELECT" corner banner on the sticky header (Jaeger 2026-11-02, after a UCP candidate card): a red
   band across the screen's top-left corner, hanging a little below the header. Its centre sits --cn-d
   from both edges; the wordmark starts --cn-clear in, past the band. Canada red #d52b1e carries the white
   caps at 5:1. Decorative: the wordmark's hidden "Re-elect" gives screen readers the same words. */
.site-head{--cn-d:33px;--cn-h:26px;--cn-clear:72px;--cn-shrink:.68}
.corner{position:absolute;top:0;left:0;z-index:2;width:calc(var(--cn-d) * 2 + var(--cn-h));height:calc(var(--cn-d) * 2 + var(--cn-h));
  overflow:hidden;pointer-events:none}
.corner span{position:absolute;top:calc(var(--cn-d) - var(--cn-h) / 2);left:calc(var(--cn-d) - 100px);width:200px;height:var(--cn-h);
  display:flex;align-items:center;justify-content:center;transform:rotate(-45deg);background:#d52b1e;color:#fff;
  font-weight:700;font-size:.8125rem;line-height:1;letter-spacing:.08em;text-transform:uppercase}
.site-head .mast{padding-left:max(var(--bl-gutter), calc(var(--cn-clear) - max(0px, (100vw - var(--bl-max) - 2 * var(--bl-gutter)) / 2)))}
@media (min-width:760px){
  .site-head{--cn-d:48px;--cn-h:34px;--cn-clear:104px;--cn-shrink:.63}
  .corner span{left:calc(var(--cn-d) - 130px);width:260px;font-size:1.0625rem}
}
/* As the page scrolls the banner shrinks into the header: its reach below the top (2 x --cn-d + 0.71 x
   --cn-h: 84 px on phones, 120 px wider) times --cn-shrink (.68 / .63) fits inside the 60 / 78 px header.
   Where scroll-driven animations work it shrinks gradually over the first 200 px of scroll (Jaeger:
   "slower and smoother"); elsewhere html.is-scrolled (site.js 6) starts a .6 s glide. */
.corner{transform-origin:0 0;transition:transform .6s cubic-bezier(.4,0,.2,1)}
.is-scrolled .corner{transform:scale(var(--cn-shrink))}
@keyframes corner-dock{from{transform:scale(1)}to{transform:scale(var(--cn-shrink))}}
@supports (animation-timeline: scroll()){
  .corner{transition:none;animation:corner-dock ease-in-out both;animation-timeline:scroll(root);animation-range:0 200px}
}
.top-mark{position:absolute;top:0;left:0;width:1px;height:12px;pointer-events:none}
@media (max-width:339px){.nav{font-size:.9375rem}}

/* Hero: the text and Brad's portrait. The portrait is the full blazer photo framed from the top
   (head and shoulders into the blazer), a Sky line on its left and a name plate on its foot.
   Phones: the photo first, then the text; the frame shrinks with the screen height so the H1, the
   "1" row, the vote and member lines and both buttons stay on the first screen (390 x 844 and
   360 x 780, and with browser toolbars showing, e.g. 390 x 664, 393 x 659, 360 x 690: hence the
   220 px floor under 480 px). Upright phones put the name plate UNDER the photo (Brad, 2026-11-04:
   on that short, wide frame it covered his chin); it shares the same height budget. Wider: text
   left, a portrait column right, the plate on the photo's foot. */
.hero__in{display:grid;gap:clamp(28px,4vw,64px);align-items:center;padding-top:clamp(12px,3vw,48px);padding-bottom:clamp(28px,4vw,56px)}
.hero__photo{position:relative;margin:0;border-left:7px solid var(--bl-sky);background:#b98b5a;overflow:hidden}
.hero__photo picture,.hero__photo img{display:block;width:100%;height:100%}
.hero__photo img{object-fit:cover;object-position:50% 30%}
/* Short phone screens (browser toolbars showing): the frame is wide and short, so aim lower to keep the smile above the name plate */
@media (max-width:759px) and (max-height:720px){.hero__photo img{object-position:50% 46%}}
.plate{position:absolute;left:0;bottom:0;max-width:calc(100% - 16px);padding:10px 16px 11px 14px;background:var(--bl-sky-dark);color:#fff;line-height:1.3}
.plate b{display:block;font-size:1.0625rem}
.plate span{display:block;font-size:.875rem;color:var(--bl-sky-20)}
h1{font-size:clamp(3.25rem,1.2rem + 5.4vw,6.75rem);line-height:.96;letter-spacing:-.04em;font-weight:700;color:var(--bl-text)}
.lede{font-size:clamp(1.1875rem,1rem + .6vw,1.5rem);line-height:1.42;margin-top:clamp(18px,2vw,28px);max-width:22.5em}
.ballot{display:flex;align-items:center;gap:18px;margin-top:clamp(22px,2.6vw,36px);padding:14px 0;
  border-top:1px solid var(--bl-stone-light);border-bottom:1px solid var(--bl-stone-light);max-width:32rem}
.ballot strong{display:block;font-size:1.3125rem;line-height:1.2}
.ballot .sub{display:block;color:var(--bl-stone-mid);font-size:1.0625rem;line-height:1.35;margin-top:2px}
.when{margin-top:12px;font-size:1rem;line-height:1.4;max-width:32rem;text-wrap:wrap}
.when + .when{margin-top:4px}
.when[data-phase="done"]{margin-top:clamp(16px,2vw,28px);font-size:clamp(1.0625rem,1rem + .4vw,1.375rem)}
/* site.js joins "4 days left." with no-break spaces; the last-day line may wrap between words */
.count{color:var(--bl-sky-dark);font-weight:700}
.hero .actions{margin-top:clamp(18px,2.2vw,28px)}

@media (max-width:759px){
  .hero__in{gap:14px;padding-top:12px;padding-bottom:28px}
  .hero__photo{order:-1;height:clamp(240px,calc(100vh - 436px),calc((100vw - 2 * var(--bl-gutter)) * 1.1))}
  .hero__text{display:flex;flex-direction:column}
  .hero h1{font-size:clamp(2.375rem,12vw,3.25rem)}
  .lede{display:none}
  .ballot{gap:14px;margin-top:12px;padding:9px 0}
  .ballot .box{width:1.67em;height:1.67em;font-size:1.875rem}
  .ballot strong{font-size:1.25rem}
  .ballot .sub{font-size:1rem}
  .when{margin-top:10px}
  .hero .actions{margin-top:14px}
  .hero .actions .btn{flex:1 1 auto;padding:0 16px}
  .plate{padding:8px 12px 9px 11px}
  .plate b{font-size:1rem}
  .plate span{font-size:.8125rem}
}
@supports (height:1svh){@media (max-width:759px){
  .hero__photo{height:clamp(240px,calc(100svh - 436px),calc((100vw - 2 * var(--bl-gutter)) * 1.1))}
}}
/* Phones held upright: a lower floor (220 px: photo plus plate), so with the browser's toolbars
   showing the buttons still make the first screen. From 480 px (landscape phones) the 240 px floor
   stays, so the name plate never reaches Brad's smile in the narrower portrait frame below. */
@media (max-width:479px){
  .hero__photo{height:clamp(220px,calc(100vh - 436px),calc((100vw - 2 * var(--bl-gutter)) * 1.1))}
}
@supports (height:1svh){@media (max-width:479px){
  .hero__photo{height:clamp(220px,calc(100svh - 436px),calc((100vw - 2 * var(--bl-gutter)) * 1.1))}
}}
@media (max-width:389px){
  .hero .actions .btn{padding:0 12px;font-size:1rem}
  /* 24 px less photo: after the cut-off the member line wraps to 3 lines at 360 x 780 */
  .hero__photo{height:clamp(220px,calc(100vh - 460px),calc((100vw - 2 * var(--bl-gutter)) * 1.1))}
}
@supports (height:1svh){@media (max-width:389px){
  .hero__photo{height:clamp(220px,calc(100svh - 460px),calc((100vw - 2 * var(--bl-gutter)) * 1.1))}
}}
/* Upright phones: the name plate sits under the photo, inside the same figure, so the height
   budget above is unchanged and the photo takes what the plate leaves. The crop keeps the 30%
   framing unless that would bring his chin within 14 px of the photo's foot; then it rises just
   enough (blazer-*.jpg is 941 x 1672 and his chin sits 1.066 photo-widths from its top). Browsers
   without container units get the stepped aim instead. */
@media (max-width:479px){
  .hero__photo{display:flex;flex-direction:column}
  .hero__photo picture{flex:1 1 0;min-height:0;height:auto}
  .plate{position:static;max-width:none;padding:5px 12px 6px 11px;line-height:1.2}
  .plate b{font-size:.9375rem}
  .plate span{font-size:.8125rem}
}
@media (max-width:479px) and (max-height:760px){.hero__photo img{object-position:50% 40%}}
@media (max-width:479px) and (max-height:720px){.hero__photo img{object-position:50% 46%}}
@supports (height:1cqh){@media (max-width:479px){
  .hero__photo picture{container-type:size}
  .hero__photo img{object-position:50% min((100cqh - 177.68cqw) * .3, 100cqh - 14px - 106.6cqw)}
}}
/* 480 to 759 px (landscape phones, zoomed pages, small tablets): the width follows the height, so
   the frame stays slightly portrait and never crops Brad's face into a wide, short strip */
@media (min-width:480px) and (max-width:759px){.hero__photo{width:auto;aspect-ratio:10 / 11;justify-self:start}}
@media (max-width:359px){
  .when__verb{display:none}
  .when{font-size:.9375rem}
}
@media (min-width:760px){
  .hero__in{grid-template-columns:minmax(0,1fr) auto}
  /* A 2:3 portrait column (head to blazer buttons): as tall as the first screen allows, never wider
     than 40% of the page */
  .hero__photo{grid-column:2;grid-row:1;width:min(40vw,calc((100vh - var(--head-h) - 96px) * .6667),520px);aspect-ratio:2 / 3;min-width:280px}
  .hero__text{grid-column:1;grid-row:1}
}
@supports (height:1svh){@media (min-width:760px){
  .hero__photo{width:min(40vw,calc((100svh - var(--head-h) - 96px) * .6667),520px)}
}}

/* Your Calgary. Your vote. In person. (right under the record, which carries the space above) */
.seat{padding:0 0 clamp(8px,2vw,24px)}
.seat__list{display:grid;gap:0 clamp(24px,3vw,40px)}
@media (min-width:760px){
  .seat__list{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto auto}
  /* Shared rows: the sublines line up even when one heading wraps */
  .seat__list li{display:grid;grid-row:span 2;grid-template-rows:subgrid;align-content:start}
}
.seat__list li{border-top:2px solid var(--bl-text);padding:12px 0 16px}
.seat__big{font-size:clamp(1.625rem,1.1rem + 2vw,2.875rem);line-height:1.05;letter-spacing:-.03em;font-weight:700;color:var(--bl-sky-dark)}
.seat__list p + p{margin-top:8px;color:var(--bl-stone-mid);font-size:clamp(1.0625rem,1rem + .2vw,1.1875rem);line-height:1.45;max-width:24em}

/* Member guide */
.vote{background:var(--bl-surface-subtle);padding:var(--sec) 0}
/* The guide's lead line, under its heading: who votes for this seat */
.vote__lead{margin-top:14px;font-size:clamp(1.125rem,1rem + .45vw,1.375rem);line-height:1.45;color:var(--bl-stone-mid);max-width:32em}
.share{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.share-msg{font-size:.9375rem;color:var(--bl-success);font-weight:700;overflow-wrap:anywhere}
/* Empty live regions stay rendered (out of sight), so screen readers announce what is put in them */
.share-msg:empty,.form__status:empty{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.steps{display:grid;gap:0 32px;margin-top:clamp(28px,4vw,52px)}
@media (min-width:640px){.steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1080px){.steps{grid-template-columns:repeat(4,minmax(0,1fr))}.step h3{min-height:2.5em}}
.step{border-top:2px solid var(--bl-text);padding:18px 0 30px}
.step__n{display:block;font-size:clamp(2rem,1.8rem + 1.4vw,3.5rem);line-height:1;font-weight:700;letter-spacing:-.03em;margin-bottom:12px;color:var(--bl-sky-dark)}
.step h3{font-size:1.25rem;line-height:1.25;margin-bottom:6px}
.step p{font-size:1rem;line-height:1.5}
.step p + p{margin-top:6px}
.step .links{display:flex;flex-wrap:wrap;gap:0 16px;margin-top:2px}
.step .links a{display:inline-flex;align-items:center;min-height:44px;font-weight:700}
.step .links a:visited{color:var(--bl-link-visited)}
.count:empty{display:none}
@media (max-width:639px){
  .step{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:10px;padding:14px 0 18px}
  .step__n{grid-row:1 / span 8;margin:0;font-size:2rem}
  .step > :not(.step__n){grid-column:2}
}
.vote__foot{display:grid;gap:28px 48px;margin-top:clamp(12px,2vw,24px)}
@media (min-width:860px){.vote__foot{grid-template-columns:minmax(0,7fr) minmax(0,5fr);align-items:start}}
.vote__foot h3{font-size:1.125rem;line-height:1.3;margin-bottom:8px}
.dates dl{border-top:2px solid var(--bl-text)}
.dates dl > div{display:grid;gap:0 20px;padding:8px 0;border-bottom:1px solid var(--bl-stone-light);font-size:1rem;line-height:1.45}
@media (min-width:560px){.dates dl > div{grid-template-columns:12.5rem minmax(0,1fr)}}
.dates dt{font-weight:700}
.dates__cal{margin-top:18px}
.vote__side{display:grid;gap:16px}
.ranked,.stuck{background:#fff;border-left:3px solid var(--bl-sky);padding:16px 20px}
.ranked p,.stuck p{font-size:1rem;line-height:1.5;color:var(--bl-stone-mid)}
.ranked p + p{margin-top:8px}
.stuck a{font-weight:700}
/* The campaign email inside a sentence: may break after "blaforge" (<wbr>) on narrow phones */
a.mail{overflow-wrap:anywhere}
/* Inline links inside sentences: a taller hit area (44 px) without changing the line box */
.stuck a,.privacy-note a,.next a,.done p a{padding:12px 0}

/* The ask: the one Sky Dark band */
/* The Rank band: Brad at the 2025 AGM podium behind the Sky Dark band colour at 84% (Jaeger 2026-11-02).
   The podium's UCP sign is blurred in the image file (no Party logo, Schedule D item 5). */
.ask{color:#fff;padding:var(--sec) 0;background-color:var(--bl-sky-dark);background-size:cover;background-position:center 40%;
  background-image:linear-gradient(rgba(0,44,78,.84),rgba(0,44,78,.84)),url(../img/agm-stage-800.jpg);
  background-image:linear-gradient(rgba(0,44,78,.84),rgba(0,44,78,.84)),image-set(url(../img/agm-stage-800.avif) type("image/avif"),url(../img/agm-stage-800.webp) type("image/webp"),url(../img/agm-stage-800.jpg) type("image/jpeg"))}
@media (min-width:760px){.ask{
  background-image:linear-gradient(rgba(0,44,78,.84),rgba(0,44,78,.84)),url(../img/agm-stage-1600.jpg);
  background-image:linear-gradient(rgba(0,44,78,.84),rgba(0,44,78,.84)),image-set(url(../img/agm-stage-1600.avif) type("image/avif"),url(../img/agm-stage-1600.webp) type("image/webp"),url(../img/agm-stage-1600.jpg) type("image/jpeg"))}}
.ask__in{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px clamp(16px,4vw,48px);align-items:start}
.ask .box{width:clamp(52px,9vw,128px);height:clamp(52px,9vw,128px);font-size:clamp(2rem,5.6vw,5.25rem);border:clamp(4px,.45vw,6px) solid #fff;color:#fff;background:transparent}
.ask .h2{font-size:clamp(2.125rem,1.5rem + 3.8vw,5.25rem);max-width:12em;color:#fff}
.ask__actions{margin-top:clamp(22px,2.6vw,36px);align-items:flex-start}
.ask :focus-visible{outline-color:var(--bl-focus-on-dark)}
.btn--white,.btn--white:visited{background:#fff;border-color:#fff;color:var(--bl-sky-dark)}
.btn--white:hover{background:var(--bl-sky-20);border-color:var(--bl-sky-20);color:var(--bl-sky-dark)}
.btn--ghost,.btn--ghost:visited{background:transparent;border-color:#fff;color:#fff}
.btn--ghost:hover{background:rgba(255,255,255,.12);border-color:#fff;color:#fff}
@media (max-width:599px){
  .ask__main{display:contents}
  .ask .h2{grid-column:2;align-self:center}
  .ask__actions{grid-column:1 / -1;margin-top:0}
}
@media (max-width:479px){.ask__actions .btn{flex:1 1 100%}}

/* Cards and forms */
.card{background:#fff;color:var(--bl-text);border-top:6px solid var(--bl-sky);padding:clamp(20px,3vw,36px)}
.card--line{border:1px solid var(--bl-stone-light);border-top:6px solid var(--bl-sky)}
.card__h{font-size:clamp(1.5rem,1.3rem + .9vw,2rem);line-height:1.15;letter-spacing:-.02em;font-weight:700;text-wrap:balance}
.card__intro{margin-top:6px;color:var(--bl-stone-mid);font-size:1.0625rem;line-height:1.45}
.form{display:grid;gap:18px;position:relative}
.form__body,.panel{display:grid;gap:18px}
fieldset{border:0;margin:0;padding:0;min-width:0}
legend{padding:0;font-weight:700;font-size:1rem;line-height:1.3;margin-bottom:8px}
legend.card__h{font-size:clamp(1.375rem,1.25rem + .6vw,1.75rem);margin-bottom:14px}
.field{display:grid;gap:6px;min-width:0}
.field > label{font-weight:700;font-size:1rem;line-height:1.3}
.opt-tag{font-weight:400;color:var(--bl-stone-mid)}
.hint{font-size:.9375rem;line-height:1.4;color:var(--bl-stone-mid);margin-bottom:-8px}
.field .hint{margin:0}
.pair{display:grid;gap:18px;align-items:start}
@media (min-width:520px){.pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px}}
input[type=text],input[type=email],input[type=tel],select,textarea{width:100%;min-height:48px;margin:0;padding:10px 12px;
  font:400 1.0625rem/1.35 var(--bl-font);color:var(--bl-text);background-color:#fff;border:1px solid var(--bl-border-input);border-radius:4px}
textarea{min-height:112px;resize:vertical;line-height:1.45}
select{-webkit-appearance:none;appearance:none;padding-right:40px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center}
input:focus-visible,select:focus-visible,textarea:focus-visible{border-color:var(--bl-focus)}
input:not([type=checkbox]):not([type=radio])[aria-invalid="true"],select[aria-invalid="true"],textarea[aria-invalid="true"],.is-invalid .pills{border-color:var(--bl-error) !important;box-shadow:inset 0 0 0 1px var(--bl-error)}
.is-invalid .opts{box-shadow:-12px 0 0 -9px var(--bl-error)}
input[type=checkbox]{width:24px;height:24px;margin:0;flex:none;accent-color:var(--bl-link)}
.opts{display:grid;gap:0}
.opt{display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer;line-height:1.3}
.check{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;align-items:start}
.check input{margin-top:1px}
.check label{font-size:1rem;line-height:1.45;cursor:pointer}
.err{color:var(--bl-error);font-size:.9375rem;font-weight:700;line-height:1.35}
.privacy-note{font-size:.9375rem;color:var(--bl-stone-mid);line-height:1.4}
.privacy-note a{white-space:nowrap}
.form__foot{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}
.form__status{font-size:1rem;line-height:1.4;flex:1 1 14rem}
.form__status.is-error{color:var(--bl-error);font-weight:700}
.hp{position:absolute !important;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

/* Yes / not yet / not sure, and the 4-way choice (2 x 2): radios drawn as segmented buttons */
.pills,.seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--bl-border-input);border-radius:4px;overflow:hidden}
.pills label{position:relative;display:block;cursor:pointer}
.pills input,.seg__input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.pills span,.seg__btn{display:flex;align-items:center;justify-content:center;text-align:center;min-height:48px;padding:6px 8px;
  font-weight:700;font-size:1rem;line-height:1.2;color:var(--bl-link);background:#fff;border-left:1px solid var(--bl-border-input);cursor:pointer}
.pills label:first-child span,.seg__btn:first-of-type{border-left:0}
.pills label:hover span,.seg__btn:hover{background:var(--bl-surface-subtle);color:var(--bl-link-hover)}
.pills input:checked + span,.seg__input:checked + .seg__btn{background:var(--bl-sky-dark);color:#fff}
.pills input:focus-visible + span,.seg__input:focus-visible + .seg__btn{outline:3px solid var(--bl-focus);outline-offset:-6px}
.pills input:checked:focus-visible + span,.seg__input:checked:focus-visible + .seg__btn{outline-color:var(--bl-focus-on-dark)}
.seg{grid-template-columns:repeat(2,minmax(0,1fr))}
.seg__btn{min-height:56px;padding:8px 10px;text-wrap:balance;border-left:0}
.seg__btn:nth-of-type(2n){border-left:1px solid var(--bl-border-input)}
.seg__btn:nth-of-type(n+3){border-top:1px solid var(--bl-border-input)}
/* After the vote, Count me in and Help on AGM day are hidden (data-phase): Tell Brad and Invite share one row */
.seg__btn[hidden] + .seg__input + .seg__btn{border-left:0}
.seg__btn[hidden] + .seg__input + .seg__btn + .seg__input + .seg__btn{border-left:1px solid var(--bl-border-input);border-top:0}
/* Each hidden radio sits over its own label, so magnifiers, focus rings and voice control point at the right option */
.seg{position:relative}
.seg__input{inset:0;width:100%;height:100%;-webkit-appearance:none;appearance:none}
#tk-kind-pledge{grid-area:1 / 1}
#tk-kind-message{grid-area:1 / 2}
#tk-kind-invite{grid-area:2 / 1}
#tk-kind-help{grid-area:2 / 2}
/* Windows contrast themes replace colours: keep the chosen option visible */
@media (forced-colors:active){
  .pills input:checked + span,.seg__input:checked + .seg__btn{forced-color-adjust:none;background:Highlight;color:HighlightText}
}
@media (max-width:519px){.seg__btn{min-height:60px;padding:6px;font-size:.9375rem}}
@media (max-width:359px){.seg__btn{padding:6px 4px;font-size:.875rem}}

/* Success: tailored next steps */
.done__h{font-size:1.5rem;line-height:1.2;letter-spacing:-.01em}
.done__h:focus{outline:none}
.done__h:focus-visible{outline:3px solid var(--bl-focus);outline-offset:4px}
.done p{margin-top:8px;line-height:1.45}
.done__lead{color:var(--bl-stone-mid)}
.next{margin-top:14px;border-top:1px solid var(--bl-stone-light)}
.next li{position:relative;padding:12px 0 12px 38px;border-bottom:1px solid var(--bl-stone-light);line-height:1.45}
.next li::before{content:"";position:absolute;left:0;top:14px;width:22px;height:22px;border:2px solid var(--bl-sky-dark)}
.done__actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.done .share-msg{margin-top:10px}

/* About, condensed: two big statement rows beside the photo of Brad and his wife, then the bio */
.about{padding:var(--sec) 0}
.about__grid{display:grid;gap:20px clamp(32px,5vw,72px);align-items:start}
@media (min-width:860px){.about__grid{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}}
.lines{border-bottom:1px solid var(--bl-stone-light)}
.lines > li{display:grid;gap:10px;padding:clamp(20px,2.6vw,36px) 0;border-top:1px solid var(--bl-stone-light)}
.about__photo{margin:0;max-width:440px}
.about__photo img{width:100%;aspect-ratio:1 / 1;object-fit:cover;object-position:50% 22%;background:#9cc3dc}
@media (min-width:860px){.about__photo{justify-self:end;width:100%;max-width:360px}.about__photo img{aspect-ratio:4 / 5}}
.about__photo figcaption,.bio__photo figcaption{margin-top:8px;font-size:.9375rem;line-height:1.4;font-weight:700;color:var(--bl-stone-mid)}
.line{font-size:clamp(2rem,1.3rem + 2.6vw,3.75rem);line-height:1.04;letter-spacing:-.03em;font-weight:400;text-wrap:balance}
.line__sub{color:var(--bl-stone-mid);font-size:clamp(1.0625rem,1rem + .3vw,1.25rem)}
/* Full bio: a native <details> that sits under the rows like one more row (works without JS).
   The marker is a small outlined box, the ballot-box cue, with a plus or a minus */
.bio{margin-top:clamp(20px,3vw,40px);border-top:1px solid var(--bl-stone-light);border-bottom:1px solid var(--bl-stone-light)}
.bio__sum{display:flex;align-items:center;gap:14px;min-height:60px;padding:8px 0;cursor:pointer;list-style:none;
  font-weight:700;font-size:clamp(1.125rem,1.04rem + .35vw,1.3125rem);line-height:1.3;color:var(--bl-link)}
.bio__sum::-webkit-details-marker{display:none}
.bio__icon{flex:none;fill:none;stroke:currentColor;stroke-width:2}
.bio[open] .bio__v{display:none}
.bio__sum:hover span{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.3em}
.bio__sum:hover{color:var(--bl-link-hover)}
.bio__body{display:grid;gap:18px 48px;padding:6px 0 clamp(28px,3.4vw,48px)}
.bio__photo{margin:0;max-width:480px}
.bio__photo img{width:100%;aspect-ratio:3 / 2;object-fit:cover;object-position:50% 40%;background:#b4c6cf}
.bio__text{max-width:36em}
.bio__text p + p{margin-top:.9em}
.bio__text .bio__h{margin:1.4em 0 .4em;font-size:1rem;line-height:1.3;font-weight:700;color:var(--bl-text)}
.bio__text .bio__end{margin-top:1.2em;font-weight:700;color:var(--bl-text)}
@media (min-width:860px){
  .bio__body{grid-template-columns:360px minmax(0,1fr);align-items:start;padding-top:12px}
}
/* What Calgary UCP members are saying: phones = one swipe row (the next card peeks, no autoplay),
   760 px and up = a calm grid. Sits between About and the Rank me band; About carries the space above */
.said{margin-bottom:var(--sec)}
.said__row:focus-visible{outline-offset:-3px}
.said__list{display:grid;grid-auto-flow:column;grid-auto-columns:calc(.84 * (100vw - 2 * var(--bl-gutter)));gap:12px;
  width:max-content;padding:0 var(--bl-gutter)}
.said__card{display:flex;scroll-snap-align:start}
.said .quote{flex:1 1 auto;display:flex;flex-direction:column;justify-content:space-between;gap:14px;margin:0;
  background:var(--bl-surface-subtle);border-left:3px solid var(--bl-sky);padding:18px 20px 20px}
.quote blockquote p{font-size:clamp(1.0625rem,1rem + .2vw,1.1875rem);line-height:1.45}
.quote figcaption{font-size:.9375rem;line-height:1.4;color:var(--bl-stone-mid)}
.quote figcaption b{display:block;color:var(--bl-text)}
/* A card whose endorser sent a photo: a round headshot beside the name */
.quote figcaption.has-photo{display:flex;align-items:center;gap:12px}
.quote figcaption.has-photo picture{display:block;flex:none}
.quote__photo{display:block;width:56px;height:56px;border-radius:50%;object-fit:cover;flex:none}
.said__hint{margin-top:10px;font-size:.875rem;line-height:1.4;color:var(--bl-stone-mid)}
@media (max-width:759px){
  .said__row{margin:0 calc(-1 * var(--bl-gutter));overflow-x:auto;overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory;scroll-padding-inline:var(--bl-gutter);scrollbar-width:none}
  .said__row::-webkit-scrollbar{display:none}
}
@media (min-width:760px){
  .said__list{width:auto;padding:0;grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .said__hint{display:none}
}
/* Every card the same size (Jaeger 2026-11-13): equal columns, and every row as tall as the tallest
   card. Eight quotes = four rows of two from 760 px, two rows of four from 1080 px. While Roy's
   "Read more" is open, rows go back to their own height so the other cards don't stretch with it. */
@media (min-width:760px){
  .said__list{grid-auto-rows:1fr}
  .said__list:has(.quote__more[open]){grid-auto-rows:auto}
  /* Opened, Roy's letter takes a full row of its own, so the other cards keep their size */
  .said__card--long:has(.quote__more[open]){grid-column:1 / -1}
}
@media (min-width:1080px){.said__list{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Record */
.record{padding:var(--sec) 0}
.record__grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px 20px;align-items:end}
.record__head{grid-column:1;grid-row:1}
.record__photo{grid-column:2;grid-row:1;margin:0;width:104px}
.record__photo img{width:100%;aspect-ratio:4 / 5;object-fit:cover;background:#1d57c4}
@media (max-width:359px){.record__photo{width:72px}}
.creds,.promises,.next2{grid-column:1 / -1}
.creds{border-bottom:1px solid var(--bl-stone-light)}
.creds > div{display:grid;gap:2px 24px;padding:14px 0;border-top:1px solid var(--bl-stone-light)}
@media (min-width:560px){.creds > div{grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:baseline}}
.creds dt{font-weight:700;font-size:clamp(1.125rem,1.04rem + .35vw,1.3125rem);line-height:1.3}
.creds dd{color:var(--bl-stone-mid)}
.promises,.next2{margin-top:clamp(12px,2vw,24px)}
.promises h3,.next2 h3{font-size:clamp(1.125rem,1.04rem + .35vw,1.3125rem);line-height:1.3;margin-bottom:10px}
.promises ol{border-top:2px solid var(--bl-text);border-bottom:2px solid var(--bl-text)}
.promises li{display:grid;grid-template-columns:2rem minmax(0,1fr);padding:8px 0;border-top:1px solid var(--bl-stone-light);font-size:1rem;line-height:1.45}
.promises li:first-child{border-top:0}
/* A blue check (#0077cd: 4.9:1 on white; Sky fails 3:1), cut from a block by an SVG mask, centred on the first line */
.promises li::before{content:"";width:1.25em;height:1.25em;margin-top:.1em;background:#0077cd;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.7 15.2 2.6 10.1l1.9-1.9 3.2 3.2 7.8-7.8 1.9 1.9z'/%3E%3C/svg%3E") center / contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.7 15.2 2.6 10.1l1.9-1.9 3.2 3.2 7.8-7.8 1.9 1.9z'/%3E%3C/svg%3E") center / contain no-repeat}
.next2 ul{border-top:2px solid var(--bl-text)}
/* Two photos under Key accomplishments: one column on phones, two from 560 px; each at its own shape */
.moments{display:grid;gap:16px;align-items:start;margin-top:clamp(20px,2.4vw,28px)}
@media (min-width:560px){.moments{grid-template-columns:repeat(2,minmax(0,1fr))}}
.moments figure{margin:0}
.moments img{display:block;width:100%;height:auto;background:#1d57c4}
.moments figcaption{margin-top:8px;font-size:.9375rem;line-height:1.4;font-weight:700;color:var(--bl-stone-mid)}
.next2 li{position:relative;padding:10px 0 10px 22px;border-bottom:1px solid var(--bl-stone-light);font-size:1rem;line-height:1.45}
.next2 li::before{content:"";position:absolute;left:2px;top:.95em;width:9px;height:9px;border:2px solid var(--bl-sky-dark)}
/* I stand for: the same quiet box list as the next 2 years */
.values{margin-top:clamp(20px,2.6vw,32px)}
.values li{padding-top:7px;padding-bottom:7px}
@media (min-width:860px){
  .record__grid{grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:0 clamp(40px,5vw,72px);align-items:start}
  .record__photo{grid-column:1;grid-row:1 / span 2;width:auto;max-width:340px}
  .record__head{grid-column:2;grid-row:1;margin-bottom:clamp(20px,2.6vw,36px)}
  .creds{grid-column:2;grid-row:2}
  /* Key accomplishments (long lines) take the wide column under the credentials; the short goal and
     values lists sit in the narrow column under the photo */
  .promises{grid-column:2;grid-row:3;margin-top:clamp(40px,4vw,56px)}
  .next2{grid-column:1;grid-row:3;margin-top:clamp(40px,4vw,56px)}
}

/* Contact */
.contact{padding:var(--sec) 0}
.contact__grid{display:grid;gap:clamp(32px,4vw,48px) clamp(40px,5vw,72px)}
.talk{max-width:44rem}
/* Two columns only from 1240 px: narrower, the big email would wrap */
@media (min-width:1240px){
  .contact__grid{grid-template-columns:minmax(0,1fr) minmax(0,min(31rem,45%));align-items:start}
  .contact__intro{grid-column:1;grid-row:1}
  .talk{grid-column:2;grid-row:1}
}
.say{margin-top:14px;font-size:clamp(1.125rem,1rem + .45vw,1.375rem);color:var(--bl-stone-mid);max-width:24em}
.reach{margin-top:clamp(20px,3vw,36px);border-bottom:1px solid var(--bl-stone-light)}
.reach li{display:grid;gap:2px;padding:14px 0;border-top:1px solid var(--bl-stone-light)}
.reach span{font-size:.9375rem;color:var(--bl-stone-mid)}
.reach a{display:inline-flex;align-items:center;min-height:44px;font-weight:700;text-decoration:none;color:var(--bl-text);overflow-wrap:anywhere;
  font-size:clamp(1.0625rem,.9rem + 1vw,1.625rem);line-height:1.2}
.reach a:hover{color:var(--bl-link);text-decoration:underline}
/* The email as big as the column allows: about 17.5 em wide, so width / 18 keeps it on one line */
.reach .big{font-size:clamp(1rem,calc((100vw - 2 * var(--bl-gutter)) / 18),2.125rem);letter-spacing:-.02em;line-height:1.1}

/* Footer */
.foot{background:var(--bl-surface-subtle);border-top:1px solid var(--bl-stone-light)}
.foot__in{padding-top:20px;padding-bottom:22px;font-size:.9375rem;line-height:1.5;color:var(--bl-stone-mid)}

/* Small phones (360 x 780 and down): a tighter rhythm keeps the page within 8 screens; 390 is unchanged.
   Last in the file so it wins over the base rules above. */
@media (max-width:389px){
  :root{--sec:32px}
  .seat{padding:0 0 12px}
  .seat__list li{padding:10px 0 12px}
  .step{padding:12px 0 14px}
  .steps{margin-top:22px}
  .lines > li{padding:16px 0}
  .creds > div{padding:10px 0}
  .vote__foot{gap:20px}
  .vote__side{gap:12px}
  .dates__cal{margin-top:12px}
  .dates dl > div{padding:6px 0}
  .ranked,.stuck{padding:14px 16px}
  .promises li{padding:6px 0}
  .next2 li{padding:8px 0 8px 22px}
  .reach li{padding:10px 0}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none !important;animation:none !important}
}
@media print{
  .site-head{position:static}
  .skip,.nav,.actions,.card,.share,.dates__cal{display:none !important}
  .ask,.vote{background:#fff}
  .ask *{color:#000 !important}
  .ask .box{border-color:#000}
}

/* A long endorsement: first paragraph, the rest behind "Read more" (native details, no JS) */
.quote blockquote p + p,.quote__more p{margin-top:.7em}
.quote__more summary{display:inline-flex;align-items:center;min-height:44px;margin-top:.2em;cursor:pointer;list-style:none;font-weight:700;color:var(--bl-link);text-decoration:underline;text-underline-offset:.25em}
.quote__more summary::-webkit-details-marker{display:none}
.quote__more summary:hover{color:var(--bl-link-hover)}
.quote__more summary:focus-visible{outline:3px solid var(--bl-link);outline-offset:2px}
.quote__close,.quote__more[open] .quote__open{display:none}
.quote__more[open] .quote__close{display:inline}
.quote__more[open] summary{order:2}
.quote__more[open]{display:flex;flex-direction:column}
.said__card--long blockquote p{max-width:44em}
