/* UBC — Departure Board, white and blue */

:root {
  --page: #FFFFFF;
  --navy: #14296B;
  --blue: #1F3FA6;
  --gold: #F2B731;
  --void: #C0182B;

  /* white surface (default) */
  --board: #FFFFFF;
  --edge: #D3DAE6;
  --rule: #E3E8F0;
  --ink: #0F1A33;
  --text: #2C3A55;
  --muted: #55627D;
  --live-text: var(--blue);
  --void-text: var(--void);
  --flap-top: #1E3C93;
  --flap-bot: #19337F;
  --flap-ink: #FFFFFF;
  --hinge: #0D1E55;
  --pin: #9AA8C7;
  --btn-bg: var(--blue);
  --btn-ink: #FFFFFF;
  --btn-hover: var(--navy);
  --focus: var(--blue);

  --display: 'Teko', 'Anek Latin', sans-serif;
  --sans: 'Anek Latin', system-ui, sans-serif;

  --gutter: clamp(16px, 3.4vw, 48px);
  --board-pad: clamp(20px, 3.2vw, 48px);
  --space: clamp(20px, 2.6vw, 36px);
  color-scheme: light;
}

/* navy surface: the lit boards */
.surface-navy {
  --board: var(--navy);
  --edge: #0C1C50;
  --rule: rgba(255, 255, 255, .16);
  --ink: #FFFFFF;
  --text: #DCE3F5;
  --muted: #B4C1E3;
  --live-text: var(--gold);
  --void-text: #FF8F99;
  --flap-top: #FFFFFF;
  --flap-bot: #EDF1F8;
  --flap-ink: var(--navy);
  --hinge: #C3CCDF;
  --pin: #6F82BF;
  --btn-bg: #FFFFFF;
  --btn-ink: var(--navy);
  --btn-hover: var(--gold);
  --focus: var(--gold);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-stretch: 87%;
  font-size: 18px;
  line-height: 1.55;
  min-height: 100vh;
}
::selection { background: var(--blue); color: #FFFFFF; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
p, li, dd { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--blue); color: #FFFFFF; padding: 10px 16px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- shared type ---------- */
.label {
  font-family: var(--sans);
  font-stretch: 100%;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(44px, 6vw, 88px);
  line-height: .92;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
em { font-style: normal; color: var(--ink); font-weight: 600; }

/* ---------- flap cells ---------- */
.flaps { display: inline-flex; flex-wrap: wrap; row-gap: .1em; }
.flaps .word { display: inline-flex; white-space: nowrap; }
.cell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: .62em;
  height: 1.06em;
  margin-right: .06em;
  padding-top: .08em;
  border-radius: .05em;
  background: linear-gradient(180deg, var(--flap-top) 0 50%, var(--flap-bot) 50% 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 .03em .06em rgba(10, 20, 60, .3);
  color: var(--flap-ink);
  font-family: var(--display);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cell::before { /* hinge */
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: max(1px, .02em);
  background: var(--hinge);
}
.cell::after { /* side pins */
  content: "";
  position: absolute; top: calc(50% - .07em); left: -.035em; right: -.035em;
  height: .14em;
  border-left: max(2px, .04em) solid var(--pin);
  border-right: max(2px, .04em) solid var(--pin);
  pointer-events: none;
}
.cell.blank { color: transparent; }
.cell.is-flipping { animation: flap .07s linear; }
@keyframes flap {
  0% { transform: scaleY(1); }
  50% { transform: scaleY(.82); filter: brightness(.85); }
  100% { transform: scaleY(1); }
}
/* live flaps: the logo's gold, navy letters */
.cell.is-live, .line.is-live .cell, .row.is-live > .col-key .cell {
  --hinge: #C99418;
  background: linear-gradient(180deg, #F6C445 0 50%, #EDB22A 50% 100%);
  color: var(--navy);
}
.row.is-live .col-status .cell { color: var(--gold); }
.row.is-void .cell { color: #FF8F99; }
/* small flaps: the two-tone split carries the hinge; an axle line would read as a strike */
.flaps-sm .cell::before, .flaps-sm .cell::after { display: none; }
.cell.eol { display: none; }
.cell.brk { flex-basis: 100%; width: 0; height: 0; margin: 0; padding: 0; visibility: hidden; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0; border-radius: 2px;
  font-family: var(--sans); font-stretch: 100%;
  font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s cubic-bezier(.2,.7,.2,1), color .18s cubic-bezier(.2,.7,.2,1), box-shadow .18s cubic-bezier(.2,.7,.2,1);
}
.btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-live { background: var(--btn-bg); color: var(--btn-ink); }
.btn-live:hover { background: var(--btn-hover); }
.surface-navy .btn-live:hover { color: var(--navy); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--muted); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }

/* ---------- masthead ---------- */
.masthead { max-width: 1440px; margin: 0 auto; padding: 18px var(--gutter) 0; }
.masthead-bar {
  display: flex; align-items: center; gap: 16px 32px;
  padding: 12px 0;
}
.plate { flex: 0 0 auto; display: block; }
.plate img { width: 84px; height: auto; }
.tabs { display: flex; gap: 4px; margin-right: auto; }
.tabs a {
  padding: 10px 14px;
  font-family: var(--sans); font-stretch: 100%;
  font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-radius: 2px;
}
.tabs a:hover { background: #EEF2FA; color: var(--blue); }
.masthead-cta { flex: 0 0 auto; }
.service-line {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  margin-top: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 3px double var(--ink);
  font-family: 'Archivo', sans-serif; font-stretch: 112%;
  font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- boards ---------- */
main { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.board {
  padding: clamp(56px, 7vw, 112px) 0;
  scroll-margin-top: 24px;
}
.board:not(.surface-navy) + .board:not(.surface-navy) { border-top: 1px solid var(--rule); }
/* the two navy sections stay solid colour, without frame or shadow */
.board.surface-navy {
  margin-top: clamp(28px, 4vw, 56px);
  padding: var(--board-pad);
  border-radius: 4px;
  background:
    radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1.4px) 0 0 / 7px 7px,
    var(--board);
}
.board-head {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px;
  padding-bottom: var(--space);
  margin-bottom: var(--space);
  border-bottom: 2px solid var(--rule);
}
.board-head p { max-width: 60ch; color: var(--text); }
@media (min-width: 900px) {
  .board-head:has(> :nth-child(2)) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 48px; }
}

.board-head:has(+ .strip) { border-bottom: 0; padding-bottom: 0; }
.strip {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  margin: 0; padding: 10px 0;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule);
  font-stretch: 100%; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

/* ---------- hero ---------- */
.board-hero { margin-top: 22px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
@media (min-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr); align-items: start; }
}
.hero-main { container-type: inline-size; }
.flap-title {
  display: grid; gap: .1em;
  font-family: var(--display);
  font-weight: 600;
  /* longest line is 15 cells at .68em each: fit it to the column */
  font-size: clamp(30px, calc(100cqi / 10.3), 112px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}
.flap-title .line { display: block; }
@container (max-width: 560px) {
  /* narrow column: let each line wrap by words at a size that still leads */
  .flap-title { font-size: calc(100cqi / 6.9); }
}
.lede {
  max-width: 54ch;
  margin-top: clamp(22px, 3vw, 36px);
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.surface-navy .btn-ghost { color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.surface-navy .btn-ghost:hover { box-shadow: inset 0 0 0 2px #FFFFFF; }

.readout { padding-top: 8px; }
@media (min-width: 1040px) {
  .readout { align-self: stretch; padding: 0 0 0 clamp(28px, 3vw, 48px); border-top: 0; border-left: 2px solid var(--rule); }
}
.readout-amount { margin: 18px 0 6px; font-family: var(--display); font-size: clamp(48px, 5vw, 70px); line-height: 1; }
.split { margin: 20px 0 6px; }
.split-cells { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; }
.split-cells i {
  display: block; height: 22px; border-radius: 2px;
  background: linear-gradient(180deg, #FFFFFF 0 50%, #E9EDF6 50%);
}
.split-cells i.is-club { background: linear-gradient(180deg, #4E63A6 0 50%, #455A9C 50%); }
.split-rows { margin-top: 10px; }
.split-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.split-row dt {
  font-stretch: 100%; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.split-row .dt-sub { display: block; margin-top: 4px; font-weight: 500; letter-spacing: 0; color: var(--muted); text-transform: none; font-size: 14px; }
.split-row dd { font-family: var(--display); font-size: clamp(30px, 2.6vw, 38px); line-height: 1; flex: 0 0 auto; }
.split-row.is-club dt { color: var(--muted); }

/* ---------- opening: the original UBC masthead type (user request); the rest of the page keeps the flap system ---------- */
.hero-classic { margin-top: 0; padding-top: clamp(36px, 5vw, 64px); }
.classic-title {
  font-family: 'Archivo', sans-serif;
  font-stretch: 62%;
  font-weight: 800;
  font-size: clamp(64px, 13.2vw, 196px);
  line-height: .84;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.classic-accent { color: var(--blue); }
.classic-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 28px 56px;
  margin-top: clamp(28px, 4vw, 48px);
}
.classic-lede {
  flex: 1 1 460px; min-width: 0; max-width: 620px;
  font-family: 'Literata', Georgia, serif;
  font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; font-weight: 300;
  color: var(--ink);
}
.classic-lede em { font-style: italic; font-weight: 300; color: inherit; }
.classic-readout {
  flex: 0 1 300px;
  font-family: 'Archivo', sans-serif; font-stretch: 112%;
  font-size: 12px; line-height: 1.7; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.classic-amount {
  display: block;
  font-stretch: 62%; font-size: 56px; font-weight: 800; letter-spacing: 0; line-height: 1.1;
  color: var(--ink);
}
.split-band { display: flex; min-height: clamp(150px, 18vw, 240px); margin-top: clamp(32px, 4vw, 56px); }
.split-band-causes, .split-band-club {
  min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
}
.split-band-causes { flex: 75 1 0; padding: clamp(16px, 2vw, 28px); background: var(--blue); color: #FFFFFF; }
.split-band-club { flex: 25 1 0; padding: clamp(12px, 1.6vw, 22px); border: 1px solid var(--ink); border-left: 0; color: var(--ink); }
.split-band-label { font-family: 'Archivo', sans-serif; font-stretch: 112%; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.split-band-amt { font-family: 'Archivo', sans-serif; font-stretch: 62%; font-weight: 800; line-height: .85; }
.split-band-causes .split-band-amt { font-size: clamp(56px, 9vw, 132px); }
.split-band-club .split-band-amt { font-size: clamp(26px, 4vw, 60px); }

/* ---------- register ---------- */
.register { position: relative; }
.seat-axis {
  display: flex; justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--display); font-size: 18px; letter-spacing: .1em; color: var(--muted);
}
.seat-grid {
  --cols: 40;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 2px;
}
@media (min-width: 700px) { .seat-grid { --cols: 100; } }
@media (min-width: 1100px) { .seat-grid { gap: 3px; } }
.seat-grid i {
  display: block; aspect-ratio: 3 / 5; border-radius: 1px;
  background: linear-gradient(180deg, #E6EAF2 0 50%, #DCE2EC 50%);
}
.seat-grid i:nth-child(10n) { background: linear-gradient(180deg, #CCD4E2 0 50%, #C2CBDB 50%); }
.seat-grid i.is-live { background: var(--gold); box-shadow: 0 0 0 2px var(--navy); }
.seat-grid i.is-found { background: var(--blue); }
.strip-lines { margin-top: 24px; }
.strip-lines, .line-rows .row { display: grid; grid-template-columns: minmax(8rem, auto) minmax(0, 1fr); column-gap: 28px; align-items: center; }
.line-rows .row { padding: 14px 0; }
.line-rows .col-key, .line-rows .col-status { font-family: var(--display); font-size: clamp(22px, 2.4vw, 34px); line-height: 1; }

.lookup { margin-top: 28px; padding-top: 24px; border-top: 2px solid var(--rule); }
.lookup .label { display: block; margin-bottom: 10px; }
.lookup-well { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px 20px; }
.lookup input {
  width: 9.5ch;
  padding: 6px 14px 2px;
  background: #FFFFFF;
  border: 1px solid #B8C3D6;
  border-radius: 2px;
  color: var(--ink);
  caret-color: var(--blue);
  font-family: var(--display); font-size: 40px; font-weight: 600; letter-spacing: .12em; line-height: 1.1;
}
.lookup input::placeholder { color: #5E6B89; }
.lookup input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 1px var(--blue); }
.lookup-out {
  flex: 1 1 280px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px;
  font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); line-height: 1; text-transform: uppercase; letter-spacing: .06em;
}
.lookup-num { font-size: 1.2em; }
.lookup-status { color: var(--text); }
.lookup-status.is-live { color: var(--live-text); }
.lookup-status.is-void { color: var(--void-text); }
.lookup-out.is-live .lookup-num .cell { --hinge: #C99418; background: linear-gradient(180deg, #F6C445 0 50%, #EDB22A 50% 100%); color: var(--navy); }
.lookup-out.is-void .lookup-num .cell { color: #FFB3BA; }

/* register: seats 0001-0416 taken (navy), 0417 waiting (gold), the rest open */
#register .seat-grid i.is-taken { background: linear-gradient(180deg, #2A4DB5 0 50%, var(--blue) 50%); box-shadow: none; }
#register .seat-grid i.is-live { background: var(--gold); box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px var(--navy); }
#register .seat-grid i.is-found { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--ink); position: relative; z-index: 1; }
#register .seat-grid i.is-found:not(.is-taken) { background: var(--ink); }
#register .row.is-live > .col-key .cell,
#register .lookup-out.is-live .lookup-num .cell {
  --hinge: #C99418;
  background: linear-gradient(180deg, #F6C445 0 50%, #EDB22A 50% 100%);
  color: var(--navy);
}
#register .line-rows .col-status { text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
#register .lookup-out.is-void .lookup-num .cell {
  --hinge: #C9D0DD;
  background: linear-gradient(180deg, #F1F3F8 0 50%, #E6EAF2 50% 100%);
  box-shadow: inset 0 0 0 1px #DCE1EA;
  color: var(--void);
}
#register .lookup-status.is-taken { color: var(--ink); }
.lookup-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- principles ---------- */
@media (min-width: 900px) {
  .principle-rows .row { grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 40px; align-items: baseline; }
}
.principle-rows .row:first-child { padding-top: 0; }

/* ---------- who ---------- */
.roll .row {
  display: flex; align-items: center; gap: .45em;
  padding: 14px 0 10px;
  font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.6vw, 52px); line-height: 1; letter-spacing: .02em; text-transform: uppercase;
  color: var(--blue);
}
/* a gold seat-mark before each kind of member, echoing seat 0417 in the register */
.roll .row::before {
  content: ""; flex: 0 0 auto;
  width: .3em; height: .48em; margin-top: -.12em;
  border-radius: 2px;
  background: linear-gradient(180deg, #F6C445 0 50%, #EDB22A 50% 100%);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}
.roll .row:hover::before { transform: scaleY(1.25); }
.roll .row:last-child { border-bottom: 1px solid var(--rule); }
.roll-coda { margin-top: 22px; max-width: 60ch; font-size: clamp(19px, 1.6vw, 22px); color: var(--text); }

/* ---------- rows (admission, council) ---------- */
.row {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.row:last-child { border-bottom: 0; }
.col-name {
  display: flex; align-items: baseline;
  font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.2vw, 44px); line-height: 1; letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
}
.col-desc { max-width: 60ch; color: var(--text); }
.col-key { font-family: var(--display); font-size: clamp(36px, 3.6vw, 52px); line-height: 1; }
.stages .row { grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; align-items: center; }
.stages .col-key { grid-row: span 2; }
@media (min-width: 900px) {
  .stages .row { grid-template-columns: 7.5rem minmax(0, .9fr) minmax(0, 1.4fr); }
  .stages .col-key { grid-row: auto; }
}
.stages .row.is-live .col-name { color: var(--blue); }
/* the selected step is blue; the steps still ahead sit on light flaps */
.stages .row:not(.is-live) > .col-key .cell { --hinge: #C9D0DD; --pin: #B8C2D3; background: linear-gradient(180deg, #F1F3F8 0 50%, #E6EAF2 50% 100%); box-shadow: inset 0 0 0 1px #DCE1EA; color: var(--ink); }
.stages .row.is-live > .col-key .cell { --hinge: #172F7E; background: linear-gradient(180deg, #2A4DB5 0 50%, var(--blue) 50% 100%); color: #FFFFFF; }

.offices .col-term {
  font-stretch: 100%; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.offices .col-term.is-live { color: var(--blue); }
.rank { flex: 0 0 auto; width: calc(var(--rank) * .55em); }
.rank[style*="--rank:0"] { display: none; }
.offices .row:not(:first-child) .rank { position: relative; height: .5em; margin-right: .3em; }
.offices .row:not(:first-child) .rank::after {
  content: ""; position: absolute; right: 0; bottom: .08em;
  width: .42em; height: .5em;
  border-left: 2px solid #9AA8C7; border-bottom: 2px solid #9AA8C7;
}
.offices .col-name { font-size: clamp(24px, 2.4vw, 34px); align-items: baseline; }
.offices .rank::after { transform-origin: top left; }
[data-reveal].reveal-wait > * { opacity: 0; transform: translateX(-16px); }
[data-reveal].reveal-grow > * {
  opacity: 1; transform: none;
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--i, 0) * var(--reveal-step, 260ms));
}
.roll { --reveal-step: 140ms; }
.offices.reveal-wait .rank::after { clip-path: inset(0 100% 100% 0); }
.offices.reveal-grow .rank::after {
  clip-path: inset(0 0 0 0);
  transition: clip-path .5s cubic-bezier(.65, 0, .35, 1);
  transition-delay: calc(var(--i, 0) * var(--reveal-step, 260ms) - 120ms);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal].reveal-wait > *, [data-reveal].reveal-grow > * { opacity: 1; transform: none; transition: none; }
  .offices.reveal-wait .rank::after, .offices.reveal-grow .rank::after { clip-path: none; transition: none; }
}

.strip-offices { display: none; }
@media (min-width: 900px) {
  .strip-offices { display: grid; }
  .strip-offices, .offices .row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) minmax(0, .7fr); gap: 40px; align-items: center; }
  .offices .col-term, .strip-offices span:last-child { text-align: right; }
}
.promises {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px;
  margin-top: var(--space); padding-top: var(--space);
  border-top: 2px solid var(--rule);
}
@media (min-width: 900px) { .promises { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; } }
.promises p { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.35; color: var(--text); }

/* ---------- terms ---------- */
.terms { display: grid; grid-template-columns: minmax(0, 1fr); }
.terms p { font-size: clamp(21px, 2vw, 28px); line-height: 1.3; color: var(--text); }
.terms p + p { margin-top: 22px; padding-top: 22px; border-top: 2px solid var(--rule); }
@media (min-width: 800px) {
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms p:first-child { padding-right: 36px; }
  .terms p + p { margin-top: 0; padding: 0 0 0 36px; border-top: 0; border-left: 2px solid var(--rule); }
}
.runin { font-weight: 700; color: var(--ink); }
.runin.is-live-text { color: var(--blue); }
.pillars {
  display: flex; flex-wrap: wrap; gap: 10px 36px;
  margin-top: var(--space); padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-stretch: 100%; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

/* ---------- ledger ---------- */
.ledger { width: 100%; border-collapse: collapse; }
.ledger thead th {
  padding: 0 0 12px;
  text-align: left;
  font-stretch: 100%; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.ledger thead th:last-child, .ledger .amt { text-align: right; }
.ledger tbody tr { border-top: 1px solid var(--rule); }
.ledger tbody th, .ledger td { padding: 16px 0; vertical-align: middle; }
.ledger tbody th { width: 34%; padding-right: 20px; text-align: left; font-weight: 500; font-size: 19px; color: var(--ink); }
.ledger tbody tr.is-club th { color: var(--muted); }
.ledger td:nth-child(2) { width: 46%; padding-right: 20px; }
.cellbar { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; }
.cellbar i { display: block; height: 22px; border-radius: 2px; background: linear-gradient(180deg, #EDF0F6 0 50%, #E5E9F1 50%); }
.cellbar i.on { background: linear-gradient(180deg, var(--flap-top) 0 50%, var(--flap-bot) 50%); }
.is-club .cellbar i.on { background: linear-gradient(180deg, #A3B4DE 0 50%, #97AAD8 50%); }
.amt { font-family: var(--display); font-size: clamp(28px, 2.6vw, 38px); line-height: 1; white-space: nowrap; }
.ledger tfoot tr { border-top: 2px solid var(--ink); }
.ledger tfoot th, .ledger tfoot td { padding-top: 20px; }
.ledger tfoot th { text-align: left; font-stretch: 100%; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.ledger-note { font-stretch: 100%; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.amt-total { font-size: clamp(40px, 4vw, 60px); }
@media (max-width: 699px) {
  .ledger thead { display: none; }
  .ledger tbody tr, .ledger tfoot tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; padding: 16px 0; }
  .ledger tbody th, .ledger td, .ledger tfoot th, .ledger tfoot td { width: auto; padding: 0; }
  .ledger td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- nominate counter ---------- */
.board-counter { margin-bottom: clamp(28px, 4vw, 56px); }
.counter-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 980px) { .counter-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; } }
.counter-intro { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.contact-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.contact-row .runin { font-stretch: 100%; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-name { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
.contact-tel {
  display: inline-block; margin-top: 8px;
  font-family: var(--display); font-size: 30px; line-height: 1.1; letter-spacing: .06em; color: var(--live-text);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em;
}
.contact-tel:hover { color: var(--ink); }
.nominate { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 560px) { .nominate { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field-wide { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-stretch: 100%; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field .opt { letter-spacing: .06em; text-transform: none; font-weight: 500; }
.field input {
  min-height: 52px;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--navy);
  caret-color: var(--blue);
  font-family: var(--sans); font-stretch: 100%; font-size: 19px; letter-spacing: .02em;
}
.field input:focus { outline: none; box-shadow: 0 0 0 3px var(--gold); }
.field input[aria-invalid="true"] { box-shadow: 0 0 0 3px var(--void-text); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.form-status { flex: 1 1 260px; font-size: 16px; line-height: 1.45; }
.form-status.is-void { color: var(--void-text); }
.form-status.is-live { color: var(--live-text); }
.form-status a { color: #FFFFFF; text-underline-offset: .2em; }

/* ---------- footer ---------- */
.footer { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter) 24px; overflow: hidden; }
.footer-line {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
  padding: 16px 4px;
  border-top: 1px solid var(--edge);
  font-stretch: 100%; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.footer-line a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .25em; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand img { width: 46px; height: auto; mix-blend-mode: multiply; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .masthead-bar { flex-wrap: wrap; }
  .masthead-cta { margin-left: auto; }
  .tabs {
    order: 3; flex: 1 1 100%; margin: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px;
    border-top: 1px solid var(--rule); padding-top: 8px;
  }
  .tabs a { padding: 10px 6px; font-size: 13px; }
  .service-line { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .cell.is-flipping { animation: none; }
  .btn { transition: none; }
}
