/* Kyra Smith for Student Captain -- styles for the landing page and the manifesto.
   Values are the design handoff's (design_handoff_kyra_campaign/README.md). */

@font-face { font-family: "Archivo"; font-weight: 400 700; font-display: swap; src: url(fonts/archivo-latin.woff2) format("woff2"); }
@font-face { font-family: "Archivo Black"; font-weight: 400; font-display: swap; src: url(fonts/archivo-black-latin.woff2) format("woff2"); }
@font-face { font-family: "Yellowtail"; font-weight: 400; font-display: swap; src: url(fonts/yellowtail-latin.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --cream: #F3EDE6;
  --stripe: #E6D8CC;
  --outline: #E2CFC2;
  --maroon: #6E1A1A;
  --mid: #8E1B1B;
  --red: #B3201F;
  --deep: #3A0E0E;
  --ink: #2A1A18;
  --body: #4A332F;
  --muted: #6B4A44;
  --yellow: #F2C14E;
  --card: #FFFFFF;
  --brand: linear-gradient(90deg, #3A0E0E, #8E1B1B 55%, #B3201F);
  --display: "Archivo Black", "Arial Black", sans-serif;
  --script: "Yellowtail", cursive;
  --sans: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mid); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.page { min-height: 100vh; overflow: hidden; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.script { font-family: var(--script); font-weight: 400; }

/* ---------------------------------------------------------------- buttons */

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; text-decoration: none; cursor: pointer; white-space: nowrap;
  font: 600 14px var(--sans);
}
.pill-outline { background: transparent; border: 2px solid var(--deep); color: var(--deep); padding: 8px 16px; }
.pill-red { background: var(--red); border: 0; color: #fff; padding: 10px 18px; }
.pill-red:hover { color: #fff; background: var(--mid); }
.pill-outline:hover { color: var(--deep); background: rgba(58, 14, 14, .06); }

/* ---------------------------------------------------------------- header */

.top { position: relative; z-index: 2; padding-top: 22px; padding-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-family: var(--display); font-size: 15px; letter-spacing: .02em; color: var(--deep); text-transform: uppercase; }
.brand-sub { font-size: 13px; color: var(--muted); }
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-weight: 600; font-size: 14px; }
.nav > a:not(.pill) { color: var(--deep); text-decoration: none; padding: 12px 2px; margin: -12px 0; }
.nav > a:not(.pill):hover { color: var(--red); }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; padding-top: 24px; }
.stripes { position: absolute; right: -120px; top: -40px; width: 520px; height: 720px; pointer-events: none; opacity: .9; }
.stripes > span { position: absolute; width: 560px; height: 48px; border-radius: 999px; background: var(--stripe); transform: rotate(-38deg); }
.stripes > span:nth-child(1) { left: 40px; top: 60px; }
.stripes > span:nth-child(2) { left: 60px; top: 200px; }
.stripes > span:nth-child(3) { left: 80px; top: 340px; }
.stripes > span:nth-child(4) { left: 100px; top: 480px; }

.hero-stack { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-vote { display: inline-block; font-size: clamp(44px, 7vw, 76px); color: var(--red); line-height: .8; transform: rotate(-4deg); }
/* The second min() term keeps the longer line (up to about 5em, e.g. "H. SMITH") on one line on phones;
   raise the divisor if the name gets longer. */
.hero-name { margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: min(clamp(64px, 13vw, 168px), calc((100vw - 48px) / 5)); line-height: .86; letter-spacing: -.02em; color: var(--maroon); text-transform: uppercase; }
.hero-name span { display: block; white-space: nowrap; }
.hero-role { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; flex-wrap: wrap; justify-content: center; }
.tag-for { background: var(--red); color: #fff; font-family: var(--display); font-size: clamp(14px, 1.6vw, 20px); padding: 6px 14px; border-radius: 4px; }
.role-text { font-family: var(--display); font-size: clamp(26px, 4vw, 48px); color: var(--ink); letter-spacing: -.01em; text-transform: uppercase; }

/* The portrait is a tall arch with her whole pose, hands on hips (owner, 2026-10-11). The photo's
   width is the arch's width -- her elbows touch the photo's edges, so they meet the arch's
   straight sides. Behind it: a gold line and a wider maroon arch. --pw is the block's width. */
.portrait-block { --pw: min(560px, 92vw); position: relative; width: var(--pw); aspect-ratio: 1 / 1.18; margin-top: 28px; }
.echo {
  position: absolute; inset: -6% 0 auto 0; display: flex; flex-direction: column; align-items: center;
  font-family: var(--display); font-size: clamp(56px, 10vw, 110px); line-height: .92;
  color: transparent; -webkit-text-stroke: 2px var(--outline); pointer-events: none; user-select: none;
}
.disc { position: absolute; left: 7%; right: 7%; bottom: 0; aspect-ratio: 900 / 1233; border-radius: 999px 999px 30px 30px; background: radial-gradient(ellipse at 50% 28%, #B3201F 0%, #6E1A1A 72%); }
.ring { position: absolute; left: 10.5%; right: 10.5%; bottom: 1.6%; aspect-ratio: 900 / 1233; border-radius: 999px 999px 26px 26px; border: 3px solid var(--yellow); opacity: .55; }
.portrait { position: absolute; left: 13%; right: 13%; bottom: 3%; aspect-ratio: 900 / 1233; border-radius: 999px 999px 22px 22px; border: 7px solid var(--cream); overflow: hidden; background: var(--maroon); box-shadow: 0 26px 40px -26px rgba(58, 14, 14, .7); }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.portrait-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(58, 14, 14, 0) 90%, rgba(58, 14, 14, .35) 100%); pointer-events: none; }

.banner-wrap { position: relative; max-width: 760px; margin: calc(-0.075 * min(560px, 92vw)) auto 0; display: flex; flex-direction: column; align-items: center; }
.banner { width: 100%; background: var(--brand); color: #fff; border-radius: 22px; padding: 22px 28px 26px; text-align: center; box-shadow: 0 18px 40px -18px rgba(58, 14, 14, .6); }
.banner-as { display: inline-block; background: var(--yellow); color: var(--maroon); font-size: 22px; padding: 0 14px; border-radius: 999px; margin-top: -40px; margin-bottom: 6px; }
.banner-title { font-family: var(--display); font-size: clamp(30px, 5vw, 56px); line-height: .95; letter-spacing: -.01em; text-transform: uppercase; }
.values { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin: -2px 0 0; padding: 9px 22px; list-style: none; background: var(--yellow); color: var(--deep); font-weight: 700; font-size: 15px; border-radius: 0 0 14px 14px; }
.values li { display: block; }

/* ---------------------------------------------------------------- sections */

.platform { padding-top: 110px; padding-bottom: 40px; }
.section-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 36px; }
.kicker { font-size: 34px; color: var(--red); }
.h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 60px); line-height: .95; color: var(--deep); text-wrap: balance; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.card { background: var(--card); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 240px; }
.card-n { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--outline); }
.card h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--maroon); line-height: 1.05; }
.card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body); text-wrap: pretty; }

.about { padding-top: 60px; padding-bottom: 60px; }
.about-panel { background: var(--maroon); color: var(--cream); border-radius: 28px; padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px; align-items: center; }
.about-quote { margin: 0; font-family: var(--display); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; text-wrap: balance; }
.about-text { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.6; color: #F1E3D8; }
.about-text p { margin: 0; text-wrap: pretty; }
.signature { font-size: 36px; color: var(--yellow); }

.manifesto { padding-top: 40px; padding-bottom: 40px; }
.manifesto-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px; align-items: center; border: 2px solid var(--outline); border-radius: 28px; padding: clamp(28px, 5vw, 56px); background: var(--card); }
.manifesto-lead { display: flex; flex-direction: column; gap: 10px; }
.manifesto-h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: min(clamp(40px, 6vw, 72px), calc((100vw - 104px) / 6.8)); line-height: .9; color: var(--maroon); }
.manifesto-lead p { margin: 6px 0 0; font-size: 17px; line-height: 1.55; color: var(--body); max-width: 440px; text-wrap: pretty; }
.manifesto-side { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.manifesto-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-weight: 600; color: var(--deep); font-size: 16px; }
.manifesto-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.btn-red, .btn-outline { font-weight: 700; padding: 14px 22px; border-radius: 999px; text-decoration: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--mid); color: #fff; }
.btn-outline { color: var(--maroon); border: 2px solid var(--maroon); }
.btn-outline:hover { color: var(--maroon); background: rgba(110, 26, 26, .06); }
.manifesto-soon { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 12px 22px; border-radius: 999px; background: var(--yellow); color: var(--deep); font-weight: 700; font-size: 16px; }

.vote { padding-top: 60px; padding-bottom: 90px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.vote-kicker { font-size: 40px; color: var(--red); }
.vote-big { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(56px, 11vw, 140px); line-height: .85; color: var(--maroon); text-transform: uppercase; }
.date-pill { background: var(--yellow); color: var(--deep); font-weight: 700; font-size: 18px; padding: 12px 24px; border-radius: 999px; }

/* ---------------------------------------------------------------- Catch the Votes
   The board is a canvas drawn by game.js; the score chips, the toast and the start / end
   screens are HTML laid over it. While a round runs (.is-playing) the board takes touch drags
   instead of scrolling the page. */

.play { padding-top: 40px; padding-bottom: 40px; }
.play-panel { border: 2px solid var(--outline); border-radius: 28px; padding: clamp(24px, 5vw, 48px); background: var(--card); }
.play-panel .section-head { margin-bottom: 20px; }
.play-how { margin: 6px 0 0; max-width: 560px; font-size: 16px; line-height: 1.5; color: var(--body); text-wrap: pretty; }

.game { position: relative; max-width: 760px; margin: 0 auto; border-radius: 20px; overflow: hidden; background: var(--cream); box-shadow: 0 0 0 2px var(--outline); -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.game-canvas { display: block; width: 100%; height: 420px; touch-action: pan-y; }
.game.is-playing .game-canvas { touch-action: none; cursor: grab; }
/* The Ask Ky note steps aside during a round: on phones it sat on the board, where the box moves. */
body:has(.game.is-playing) .chat-fab, body:has(.game.is-playing) .chat-teaser { opacity: 0; visibility: hidden; }
.game-hud { position: absolute; top: 10px; left: 10px; right: 58px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.game-chip { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .9); box-shadow: 0 2px 8px -3px rgba(58, 14, 14, .35); font: 700 14px var(--sans); color: var(--deep); white-space: nowrap; }
.game-chip b { font-family: var(--display); font-weight: 400; }
.game-time.is-low { background: var(--red); color: #fff; animation: game-pulse .5s ease-in-out infinite alternate; }
@keyframes game-pulse { to { transform: scale(1.1); } }
.game-toast { position: absolute; top: 54px; left: 50%; max-width: calc(100% - 24px); margin: 0; padding: 8px 16px; border-radius: 999px; background: var(--deep); color: var(--yellow); font: 700 15px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translateX(-50%); opacity: 0; pointer-events: none; }

.game-sound { position: absolute; top: 6px; right: 8px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--maroon); box-shadow: 0 2px 8px -3px rgba(58, 14, 14, .35); cursor: pointer; }
.game-sound:hover { color: var(--red); }
.game-sound[aria-pressed="true"] .game-sound-off, .game-sound[aria-pressed="false"] .game-sound-on { display: none; }
.game-sound[aria-pressed="false"] { color: var(--muted); }
.game-screen { z-index: 2; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; background: rgba(243, 237, 230, .84); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.game-screen[hidden] { display: none; }
.game-ready { font-size: 48px; line-height: 1; color: var(--red); }
.game-tip { margin: 0; font-size: 17px; font-weight: 700; color: var(--deep); }
.game-keys { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.game-btn { margin-top: 4px; padding: 14px 30px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font: 400 18px var(--display); letter-spacing: .02em; cursor: pointer; box-shadow: 0 10px 20px -10px rgba(179, 32, 31, .9); transition: transform .15s, background .15s; }
.game-btn:hover { background: var(--mid); transform: translateY(-2px); }
.game-btn-outline { background: #fff; color: var(--maroon); box-shadow: inset 0 0 0 2px var(--maroon); }
.game-btn-outline:hover { background: #fff; color: var(--red); }
.game-result { margin: 0; font-size: 18px; font-weight: 700; color: var(--deep); }
.game-result b { display: block; font-family: var(--display); font-weight: 400; font-size: 66px; line-height: 1; color: var(--maroon); }
.game-rank { margin: 0; font-size: 17px; font-weight: 700; color: var(--red); }
.game-newbest { margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--yellow); color: var(--deep); font: 400 14px var(--display); }
.game-newbest[hidden] { display: none; }
.game-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.game-cta { margin: 6px 0 0; font-size: 15px; line-height: 1.4; color: var(--body); text-wrap: balance; }
.game-cta b { color: var(--red); }
.game-shared { margin: 0; min-height: 1.2em; font-size: 13px; color: var(--muted); }

@media (max-width: 400px) {
  .play-panel { padding: 22px 14px; }
  .game-ready { font-size: 40px; }
  .game-result b { font-size: 54px; }
  .game-btn { padding: 12px 22px; font-size: 16px; }
  .game-chip { padding: 4px 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .game-time.is-low { animation: none; }
  .game-btn { transition: none; }
}

/* ---------------------------------------------------------------- Proud moments (photo gallery)
   Wide screens: justified rows -- the photos of a row share one height and the row fills the
   width, because each photo grows by its own shape (--ar, from its .ar-* class; src/pages.mjs
   picks the rows). Phones and tablets: one swipeable row of equal cards, each photo whole over a
   blurred copy of itself. A tap opens the photo full screen (.lightbox). */

.gallery { padding-top: 10px; padding-bottom: 70px; }
.gallery .section-head { margin-bottom: 22px; }
.gallery-intro { margin: 6px 0 0; max-width: 560px; font-size: 16px; line-height: 1.5; color: var(--body); text-wrap: pretty; }
.gallery-grid { display: flex; flex-direction: column; gap: 14px; }
.gallery-row { display: flex; gap: 14px; }
.gallery-item { flex: var(--ar) 1 0px; min-width: 0; }
.ar-916 { --ar: .5625; } .ar-23 { --ar: .6667; } .ar-34 { --ar: .75; } .ar-45 { --ar: .8; } .ar-11 { --ar: 1; }
.ar-54 { --ar: 1.25; } .ar-43 { --ar: 1.3333; } .ar-32 { --ar: 1.5; } .ar-169 { --ar: 1.7778; } .ar-21 { --ar: 2; }
.gallery-tile { position: relative; display: block; overflow: hidden; border-radius: 18px; background: var(--stripe); color: #fff; text-decoration: none; cursor: zoom-in; box-shadow: 0 14px 28px -18px rgba(58, 14, 14, .6); }
.gallery-photo { display: block; width: 100%; height: auto; aspect-ratio: var(--ar); object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.gallery-tile:hover .gallery-photo { transform: scale(1.04); }
.gallery-fill { display: none; }
.gallery-tag { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--deep); font: 700 12px var(--sans); box-shadow: 0 2px 6px -2px rgba(58, 14, 14, .35); }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; background: linear-gradient(to bottom, rgba(58, 14, 14, 0), rgba(58, 14, 14, .88)); font: 700 15px/1.3 var(--sans); text-align: left; text-wrap: balance; }
.gallery-swipe { display: none; }

/* the full-screen viewer */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #1c0808; color: #fff; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; }
.lightbox::backdrop { background: rgba(24, 7, 7, .7); }
.lightbox[open] { display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; }
.lightbox-figure { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; margin: 0; padding: 64px 0 28px; }
.lightbox-figure img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); object-fit: contain; border-radius: 12px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); }
.lightbox figcaption { max-width: 640px; font: 600 16px/1.4 var(--sans); text-align: center; text-wrap: balance; }
.lightbox-count { margin-left: 8px; color: var(--yellow); font-weight: 700; white-space: nowrap; }
.lightbox-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 18px; cursor: pointer; }
.lightbox-arrow { grid-row: 1; justify-self: center; display: grid; place-items: center; width: 48px; height: 48px; padding: 0 0 3px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox-close:hover, .lightbox-arrow:hover { background: rgba(255, 255, 255, .26); }
.lightbox-prev { grid-column: 1; }
.lightbox-next { grid-column: 3; }
.lightbox.is-single .lightbox-arrow { visibility: hidden; }
html:has(.lightbox[open]) { overflow: hidden; }

@media (max-width: 899px) {
  .gallery-grid { flex-direction: row; gap: 12px; margin: 0 -24px; padding: 4px 24px 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-row { display: contents; }
  .gallery-item { flex: none; scroll-snap-align: start; }
  /* a card always fits the screen's height too (a phone turned sideways is only ~360px tall) */
  .gallery-tile { width: min(320px, calc(100vw - 96px), calc((100vh - 90px) * .8)); width: min(320px, calc(100vw - 96px), calc((100svh - 90px) * .8)); aspect-ratio: 4 / 5; background: var(--deep); }
  .gallery-photo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
  .is-tall .gallery-photo { object-fit: cover; }
  .gallery-fill { display: block; position: absolute; top: -30px; left: -30px; width: calc(100% + 60px); max-width: none; height: calc(100% + 60px); object-fit: cover; filter: blur(18px) brightness(.7) saturate(1.2); }
  .gallery-tile:hover .gallery-photo { transform: none; }
  .gallery-caption { font-size: 14px; }
  .gallery-swipe { display: block; margin: -8px 0 0; text-align: right; font-size: 13px; font-weight: 700; color: var(--muted); }
}
@media (max-width: 640px) {
  .gallery-grid { margin: 0 -16px; padding: 4px 16px 22px; scroll-padding-inline: 16px; }
  .lightbox[open] { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .lightbox-figure { padding: 64px 12px 100px; }
  .lightbox-figure img { max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); }
  .lightbox-arrow { position: absolute; bottom: max(24px, env(safe-area-inset-bottom)); }
  .lightbox-prev { left: 24px; }
  .lightbox-next { right: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-photo { transition: none; }
}

/* ---------------------------------------------------------------- Mark your calendar
   The key dates as tear-off calendar pages on a dotted line. site.js draws the line and pops
   the pages in (they start hidden only under .motion), marks .is-next / .is-today / .is-past,
   and throws confetti from the election page. --n is the number of dates (set by site.js). */

.dates { padding-top: 10px; padding-bottom: 90px; }
.dates-panel { border: 2px solid var(--outline); border-radius: 28px; padding: clamp(28px, 5vw, 56px); background: var(--card); display: flex; flex-direction: column; align-items: center; }
.dates-panel .section-head { align-self: stretch; margin-bottom: 34px; }

.kd { --n: 3; position: relative; width: 100%; max-width: 900px; }
.kd-line { position: absolute; top: 26px; left: calc(50% / var(--n)); right: calc(50% / var(--n)); height: 6px; border-radius: 999px;
  background: repeating-linear-gradient(90deg, var(--outline) 0 14px, transparent 14px 24px); transform-origin: left center; }
.kd-list { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.kd-item { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* the calendar page */
.kd-cal { position: relative; display: flex; flex-direction: column; text-align: center; width: 132px; border-radius: 18px; background: #fff; color: var(--maroon);
  box-shadow: 0 0 0 2px var(--outline), 0 16px 30px -16px rgba(58, 14, 14, .5); perspective: 400px; cursor: default;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s; }
.kd-cal:hover { transform: translateY(-6px) rotate(-3deg); box-shadow: 0 0 0 2px var(--outline), 0 24px 34px -16px rgba(58, 14, 14, .55); }
.kd-rings { position: absolute; top: -9px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 30px; pointer-events: none; }
.kd-rings i { display: block; width: 9px; height: 20px; border-radius: 5px; background: var(--deep); box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .25); }
.kd-wday { display: block; padding: 11px 0 8px; border-radius: 18px 18px 0 0; background: var(--brand); color: #fff; font-family: var(--display); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; }
.kd-day { display: block; padding-top: 6px; font-family: var(--display); font-size: 66px; line-height: 1; transform-origin: 50% 0; }
.kd-month { display: block; padding: 4px 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }

/* the words under it */
.kd-body { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 18px; max-width: 250px; }
.kd-when { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--cream); color: var(--muted); }
.kd-when:empty { display: none; }
.kd-title { margin: 2px 0 0; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.1; color: var(--maroon); text-wrap: balance; }
.kd-says { margin: 0; font-size: 15px; line-height: 1.5; color: var(--body); text-wrap: pretty; }

/* election day: a gold page, a spinning star, a little bigger */
.kd-item.is-big .kd-cal { width: 146px; background: linear-gradient(160deg, #FFF3CF, #F2C14E); box-shadow: 0 0 0 3px var(--maroon), 0 18px 34px -14px rgba(179, 32, 31, .6); }
.kd-item.is-big .kd-wday { background: var(--deep); color: var(--yellow); }
.kd-item.is-big .kd-day { font-size: 74px; color: var(--red); }
.kd-item.is-big .kd-month { color: var(--maroon); }
.kd-item.is-big .kd-title { color: var(--red); font-size: 24px; }
.kd-item.is-big .kd-when { background: var(--yellow); color: var(--deep); }
.kd-star { position: absolute; top: -16px; right: -16px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: var(--yellow); font-size: 22px; line-height: 1; box-shadow: 0 6px 14px -6px rgba(58, 14, 14, .7); animation: kd-spin 6s linear infinite; }
@keyframes kd-spin { to { transform: rotate(360deg); } }

/* the next date pulses; today goes red; past dates get a stamp */
.kd-item.is-next .kd-cal::after { content: ""; position: absolute; inset: -9px; border: 3px solid var(--red); border-radius: 26px; pointer-events: none; animation: kd-pulse 1.8s ease-out infinite; }
@keyframes kd-pulse { from { opacity: .8; transform: scale(.96); } to { opacity: 0; transform: scale(1.12); } }
.kd-item.is-next .kd-when { background: var(--red); color: #fff; }
.kd-item.is-past .kd-cal { filter: grayscale(.85); opacity: .6; }
.kd-item.is-past .kd-cal::before { content: "Done ✓"; position: absolute; z-index: 1; top: 54%; left: 50%; padding: 4px 10px; border: 3px solid var(--red); border-radius: 8px; background: rgba(255, 255, 255, .85); color: var(--red); font-family: var(--display); font-size: 15px; letter-spacing: .04em; white-space: nowrap; transform: translate(-50%, -50%) rotate(-12deg); }
.kd-item.is-past .kd-title, .kd-item.is-past .kd-says { opacity: .6; }

.kd-confetti { position: absolute; z-index: 3; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; }
.tl-ics { margin-top: 34px; }

/* the pieces site.js brings in */
.motion [data-keydates] [data-kd-anim] { opacity: 0; }

@media (max-width: 640px) {
  .dates { padding-bottom: 170px; }   /* room under the dates for the Ask Ky note and its bubble */
  .dates-panel .section-head { margin-bottom: 24px; }
  .kd-line { top: 40px; bottom: 40px; left: 47px; right: auto; width: 6px; height: auto; transform-origin: center top;
    background: repeating-linear-gradient(180deg, var(--outline) 0 14px, transparent 14px 24px); }
  .kd-list { grid-template-columns: 1fr; gap: 26px; }
  .kd-item { display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: center; text-align: left; }
  .kd-cal, .kd-item.is-big .kd-cal { width: 94px; justify-self: center; }
  .kd-day { font-size: 46px; }
  .kd-item.is-big .kd-day { font-size: 50px; }
  .kd-wday { font-size: 13px; padding: 9px 0 6px; }
  .kd-month { font-size: 12px; letter-spacing: .08em; padding-bottom: 10px; }
  .kd-rings { padding: 0 20px; }
  .kd-star { width: 32px; height: 32px; font-size: 18px; top: -12px; right: -12px; }
  .kd-body { align-items: flex-start; margin-top: 0; max-width: none; }
  .kd-title, .kd-item.is-big .kd-title { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .kd-star, .kd-item.is-next .kd-cal::after { animation: none; }
  .kd-cal { transition: none; }
  .kd-cal:hover { transform: none; }
}

.footer { background: var(--deep); color: var(--outline); padding: 22px 24px; text-align: center; font-size: 14px; }

/* ---------------------------------------------------------------- Ask Ky
   Notebook (the owner's pick, 2026-10-09): a school exercise book -- a spiral along the top, a red
   margin, ruled lines that scroll with the words. Ky writes on the lines; the visitor's questions
   stick on as yellow sticky notes; suggestions are highlighted words. A floating page on wide
   screens, the whole screen on phones. The launcher is a taped-on sticky note; --lift (set by
   site.js) raises it above the footer. */

.chat-dock { --lift: 0px; position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; max-width: calc(100vw - 40px); }

.chat-fab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 112px; height: 96px; padding: 0; border: 0; background: #FFE57F; color: var(--deep); font: 700 12px var(--sans); box-shadow: 0 12px 18px -10px rgba(90, 60, 0, .55); transform: translateY(var(--lift)) rotate(-6deg); transition: box-shadow .2s, background .2s, opacity .3s, translate .5s cubic-bezier(.34, 1.56, .64, 1); cursor: pointer; }
/* The note waits for the visitor's first scroll (site.js adds .is-awake), so it never sits on the
   hero at first sight. */
.js .chat-dock:not(.is-awake) .chat-fab { opacity: 0; translate: 0 40px; visibility: hidden; }
.chat-fab:hover { background: #FFE06A; box-shadow: 0 18px 24px -12px rgba(90, 60, 0, .6); }
.chat-fab::before { content: ""; position: absolute; top: -9px; left: 50%; width: 50px; height: 18px; transform: translateX(-50%) rotate(3deg); background: rgba(255, 255, 255, .65); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.chat-fab-ask { font-family: var(--script); font-size: 28px; font-weight: 400; line-height: 1.05; color: var(--red); }
.chat-fab[hidden] { display: none; }
/* The bubble that pops up beside the note when a visitor reaches the bottom of the page. */
.chat-teaser { position: absolute; right: calc(100% + 14px); bottom: 12px; display: flex; align-items: flex-start; gap: 2px; width: max-content; max-width: min(250px, calc(100vw - 150px)); padding: 12px 6px 12px 16px; border-radius: 16px; background: #FFFDF6; box-shadow: 0 0 0 1px #EAE1D4, 0 14px 26px -12px rgba(58, 14, 14, .5); transform: translateY(var(--lift)); }
.chat-teaser[hidden] { display: none; }
.chat-teaser::after { content: ""; position: absolute; right: -9px; top: 50%; margin-top: -9px; border: 9px solid transparent; border-right: 0; border-left-color: #FFFDF6; filter: drop-shadow(1px 0 0 #EAE1D4); }
.chat-teaser-open { padding: 0; border: 0; background: none; color: var(--deep); font: 600 14px/1.35 var(--sans); text-align: left; cursor: pointer; }
.chat-teaser-open .script { display: block; font-size: 24px; line-height: 1.1; color: var(--red); }
.chat-teaser-close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin-top: -6px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; }
.chat-teaser-close:hover { background: rgba(110, 26, 26, .08); color: var(--deep); }

.chat-panel {
  position: relative; width: 400px; max-width: 100%; height: 620px; max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px);
  display: flex; flex-direction: column; border-radius: 10px 22px 22px 10px;
  background: linear-gradient(90deg, transparent 52px, #F0A3A3 52px, #F0A3A3 54px, transparent 54px) #FFFDF6;
  box-shadow: 0 0 0 1px #EAE1D4, 0 30px 60px -22px rgba(58, 14, 14, .5); transform-origin: bottom right;
}
.chat-panel[hidden] { display: none; }
.nb-spiral { position: absolute; top: -10px; left: 22px; right: 22px; height: 26px; pointer-events: none;
  background:
    radial-gradient(circle at 13px 19px, #3A2A26 3.6px, transparent 4.2px),
    radial-gradient(circle at 13px 11px, transparent 5px, #8A7A72 5.5px, #8A7A72 7.2px, transparent 7.7px);
  background-size: 26px 26px; background-repeat: repeat-x; }
.chat-head { position: relative; padding: 20px 54px 8px 66px; }
.chat-name { margin: 0; font-family: var(--script); font-weight: 400; font-size: 40px; line-height: 1.05; color: var(--red); transform: rotate(-2deg); transform-origin: left; }
.chat-role { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.chat-close { position: absolute; top: 16px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.chat-close:hover { background: rgba(110, 26, 26, .08); color: var(--deep); }

.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 18px 16px 66px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth;
  border-top: 1px solid #D8E3F0; background: repeating-linear-gradient(180deg, transparent 0 27px, #D8E3F0 27px 28px); background-position: 0 7px; background-attachment: local; }
.msg { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-ky { position: relative; font-size: 15.5px; line-height: 28px; color: var(--ink); }
.msg-ky::before { content: "Ky:"; position: absolute; left: -50px; top: -2px; font-family: var(--script); font-size: 22px; line-height: 28px; color: var(--red); white-space: nowrap; }
.msg-user { position: relative; align-self: flex-end; max-width: 78%; margin: 10px 4px 8px; padding: 14px 14px 12px; background: #FFE57F; color: #3A2A10; font-weight: 600; font-size: 15px; line-height: 1.4; box-shadow: 0 10px 14px -10px rgba(90, 60, 0, .5); transform: rotate(1.6deg); }
.msg-user:nth-of-type(even) { transform: rotate(-1.2deg); }
.msg-user::before { content: ""; position: absolute; top: -9px; left: 50%; width: 54px; height: 18px; transform: translateX(-50%) rotate(-4deg); background: rgba(255, 255, 255, .6); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.msg-typing { color: var(--muted); font-style: italic; }
.msg-typing i { font-style: normal; animation: nb-dot 1.2s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .2s; }
.msg-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes nb-dot { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.msg-new { animation: nb-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes nb-in { from { opacity: 0; translate: 0 10px; } }

.chat-foot { padding: 10px 16px 12px 66px; border-top: 1px dashed #E2D6C6; }
.chips { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.chip { border: 0; padding: 0 3px; background: linear-gradient(transparent 52%, #FFE57F 52%); color: var(--deep); font: 700 13.5px var(--sans); cursor: pointer; }
.chip:hover { background: linear-gradient(transparent 15%, #FFE57F 15%); }
.chip:disabled { opacity: .45; cursor: default; }
.chat-form { display: flex; align-items: center; gap: 10px; margin: 0; }
.chat-input { flex: 1; min-width: 0; height: 44px; padding: 0 2px; border: 0; border-bottom: 2px solid var(--deep); border-radius: 0; background: transparent; color: var(--ink); font: 500 16px var(--sans); outline: none; }
.chat-input::placeholder { font-style: italic; color: #A2928A; }
.chat-input:focus { border-bottom-color: var(--red); }
.chat-send { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--red); color: #fff; cursor: pointer; box-shadow: 0 6px 12px -6px rgba(179, 32, 31, .8); transition: transform .15s, background .15s; }
.chat-send:hover:not(:disabled) { transform: scale(1.06); background: var(--mid); }
.chat-send:disabled { background: #D9C9BE; box-shadow: none; cursor: default; }
.chat-note { margin: 8px 0 0; font-size: 11px; font-style: italic; color: #8A7A72; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 700px) {
  .chat-fab { width: 90px; height: 78px; font-size: 12px; }
  .chat-fab-ask { font-size: 23px; }
}
@media (max-width: 560px), (max-height: 520px) {
  .chat-panel { position: fixed; inset: 0; width: auto; height: auto; max-height: none; border-radius: 0; box-shadow: none; }
  .nb-spiral { top: max(2px, env(safe-area-inset-top)); }
  .chat-head { padding-top: calc(26px + env(safe-area-inset-top)); }
  .chat-foot { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  html.chat-open, html.chat-open body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-fab { transition: none; }
  .msg-new { animation: none; }
  .msg-typing i { animation: none; opacity: .7; }
  .chat-log { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- Kyra's song
   The button for the 30-second clip of "Stay Fly With Ky" (song.js): bottom left, across from the
   Ask Ky note, only while the song plays or sits paused part-way. --lift (site.js) keeps it off the
   footer, and it steps aside during a round of the game, as the note does. */

.song { --lift: 0px; position: fixed; left: 20px; bottom: 20px; z-index: 49; transform: translateY(var(--lift)); }
.song[hidden] { display: none; }
/* The cream ring keeps it apart from the dark-red hero banner it can float over on phones. */
.song-btn { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border: 0; border-radius: 999px; background: var(--deep); color: var(--cream); font: 700 14px var(--sans); box-shadow: 0 0 0 2px var(--cream), 0 12px 20px -10px rgba(58, 14, 14, .65); cursor: pointer; }
.song-btn:hover { background: var(--maroon); }
.song-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.song-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--deep); }
.song-pause, .song.is-playing .song-play { display: none; }
.song.is-playing .song-pause { display: block; }
.song-label { white-space: nowrap; }
.song-bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.song-bars i { width: 3px; height: 100%; border-radius: 2px; background: var(--yellow); transform: scaleY(.35); transform-origin: bottom; }
.song.is-playing .song-bars i:nth-child(odd) { transform: scaleY(.8); }
.motion .song.is-playing .song-bars i { animation: song-bar .7s ease-in-out infinite alternate; }
.motion .song.is-playing .song-bars i:nth-child(2) { animation-duration: .5s; animation-delay: -.2s; }
.motion .song.is-playing .song-bars i:nth-child(3) { animation-duration: .6s; animation-delay: -.4s; }
.motion .song.is-playing .song-bars i:nth-child(4) { animation-duration: .45s; animation-delay: -.1s; }
@keyframes song-bar { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.motion .song:not([hidden]) { animation: song-in .5s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes song-in { from { opacity: 0; translate: 0 24px; } }
body:has(.game.is-playing) .song { visibility: hidden; }
@media (max-width: 599px) {
  .song { left: 16px; bottom: 16px; }
  /* Ask Ky's bubble reaches across to the left edge on narrow screens: the button steps up over it
     (the bubble is 88 px tall here, 107 px on the narrowest phones, where its text wraps more). */
  body:has(.chat-teaser:not([hidden])) .song { bottom: 132px; }
}
@media (max-width: 350px) {
  .song-label { display: none; }
  .song-btn { padding-right: 12px; }
  body:has(.chat-teaser:not([hidden])) .song { bottom: 152px; }
}
@media print { .song { display: none; } }

/* ---------------------------------------------------------------- phones */

@media (max-width: 640px) {
  .top { padding-top: 16px; padding-bottom: 4px; gap: 6px; }
  .brand { max-width: calc(100% - 120px); min-height: 36px; justify-content: center; }
  .brand-title { font-size: 13px; }
  .nav { width: 100%; flex-wrap: nowrap; gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav > a:not(.pill) { margin: 0; flex: none; }
  .nav .pill-outline { flex: none; padding: 12px 2px; border: 0; border-radius: 0; background: none; color: var(--red); font: 700 14px var(--sans); }
  .nav .pill-red { position: absolute; top: 16px; right: 24px; }
  .hero { padding-top: 12px; }
}
@media (max-width: 400px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .nav { gap: 10px; font-size: 13px; }
  .nav > a:not(.pill) { min-width: 40px; text-align: center; }
  .nav .pill-outline { font-size: 13px; }
  .nav .pill-red { right: 16px; }
  .about-panel, .manifesto-panel, .dates-panel { padding: 26px 20px; }
  .card { padding: 24px; min-height: 0; }
  .kd-item { grid-template-columns: 84px 1fr; gap: 12px; }
  .kd-cal, .kd-item.is-big .kd-cal { width: 80px; }
  .kd-day { font-size: 40px; }
  .kd-item.is-big .kd-day { font-size: 44px; }
  .kd-month { font-size: 12px; letter-spacing: .04em; }
  .kd-rings { padding: 0 16px; }
  .kd-line { left: 39px; }
}

@media (max-width: 640px) {
  .nav > a:not(.pill) { min-width: 40px; text-align: center; }
}
@media (max-width: 360px) {
  .nav { flex-wrap: wrap; overflow-x: visible; row-gap: 0; }
}

/* ---------------------------------------------------------------- motion
   motion-boot.js adds .motion to <html> when animation is wanted, so these start hidden and
   site.js brings them in. Without JavaScript, or with reduced motion, nothing is hidden. */

.motion [data-anim="vote"], .motion [data-anim="name"], .motion [data-anim="role"],
.motion [data-anim="disc"], .motion [data-anim="ring"], .motion [data-anim="portrait"],
.motion [data-anim="banner"], .motion [data-anim="as"], .motion [data-anim="values"],
.motion [data-anim="values"] > *, .motion [data-anim="echo"] > *, .motion [data-anim="stripes"] > *,
.motion [data-reveal] { opacity: 0; }

/* ---------------------------------------------------------------- outside Jamaica */

.blocked-body { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.blocked { max-width: 520px; padding: clamp(28px, 6vw, 48px); border: 2px solid var(--outline); border-radius: 28px; background: var(--card); text-align: center; }
.blocked-flag { display: block; margin: 0 auto 16px; border-radius: 6px; box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .5); }
.blocked-kicker { font-size: 34px; color: var(--red); }
.blocked-title { margin: 2px 0 14px; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 7vw, 40px); line-height: 1; color: var(--maroon); text-wrap: balance; }
.blocked p { margin: 0 0 10px; font-size: 16px; line-height: 1.55; color: var(--body); }
.blocked .blocked-small { font-size: 14px; color: var(--muted); }
.blocked .blocked-credit { margin: 18px 0 0; font-size: 12px; }
.blocked-credit a { color: var(--muted); }

/* ---------------------------------------------------------------- manifesto page
   The read-online page and -- printed by headless Chrome in the build -- the PDF (Letter, a few
   pages). Cards never split across pages; on phones everything stacks. */

.doc-body { background: #EEE9E4; }
.doc-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; background: var(--deep); color: var(--cream); font-size: 14px; font-weight: 600; }
.doc-bar a.back { color: var(--cream); text-decoration: none; white-space: nowrap; padding: 12px 4px; margin: -12px -4px; }
.doc-bar a.back:hover { color: #fff; text-decoration: underline; }
.doc-bar .download { background: var(--yellow); color: var(--deep); border-radius: 999px; padding: 10px 18px; font: 700 14px var(--sans); text-decoration: none; white-space: nowrap; }
.doc-bar .download:hover { color: var(--deep); background: #F5CC6A; }
.doc-page { max-width: 8.5in; margin: 48px auto; padding: 0.75in; background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 12px 32px -12px rgba(58, 14, 14, .18); }
.doc-head { display: flex; flex-direction: column; gap: 2px; border-bottom: 4px solid var(--red); padding-bottom: 16px; margin-bottom: 20px; }
.doc-head .script { font-size: 30px; color: var(--red); }
.doc-head h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 56px; line-height: .9; color: var(--maroon); text-transform: uppercase; }
.doc-sub { font-family: var(--display); font-size: 17px; color: var(--ink); margin-top: 8px; }
.doc-intro { margin: 0; font-size: 12pt; line-height: 1.6; }

.doc-sec { margin-top: 26px; }
.doc-h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; margin: 0 0 12px; font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.1; color: var(--maroon); text-transform: uppercase; break-after: avoid; }
.doc-h2 .script { font-size: 28px; color: var(--red); text-transform: none; }
.doc-lead { margin: -2px 0 12px; font-size: 11pt; line-height: 1.5; color: var(--body); }

/* the three big plans */
.plans { display: flex; flex-direction: column; gap: 12px; }
.plan { display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 14px 18px 14px 14px; border: 1.5px solid var(--outline); border-radius: 16px; background: #FBF7F2; break-inside: avoid; }
.plan-n { font-family: var(--display); font-size: 42px; line-height: .9; color: var(--red); text-align: center; }
.plan h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--maroon); }
.plan p { margin: 0 0 6px; font-size: 11pt; line-height: 1.5; color: var(--ink); }
.plan ul { margin: 0; padding-left: 18px; font-size: 10.5pt; line-height: 1.5; color: var(--body); }
.plan li::marker { color: var(--red); }

/* six everyday improvements */
.goals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.goal { position: relative; padding: 15px 16px 15px 54px; border: 1.5px solid var(--outline); border-radius: 14px; break-inside: avoid; }
.goal:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* an odd one out spans the row */
.goal-n { position: absolute; left: 13px; top: 12px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--deep); font: 400 14px var(--display); }
.goal h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: 16px; color: var(--maroon); }
.goal p { margin: 0; font-size: 10.5pt; line-height: 1.5; color: var(--body); }

/* quarter by quarter */
.quarters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quarter { display: flex; flex-direction: column; overflow: hidden; border: 1.5px solid var(--outline); border-radius: 14px; break-inside: avoid; }
.quarter-head { display: flex; flex-direction: column; gap: 1px; padding: 11px 13px 9px; background: linear-gradient(135deg, #3A0E0E, #8E1B1B 60%, #B3201F); color: #fff; }
.quarter-n { font: 400 12px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.quarter-when { font: 400 14px var(--display); line-height: 1.2; }
.quarter-term { font-size: 12px; font-weight: 600; color: #F1E3D8; }
.quarter-theme { margin-top: 2px; font-size: 21px; line-height: 1.1; color: var(--yellow); }
.quarter-steps { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 11px 11px 13px; list-style: none; font-size: 10pt; line-height: 1.4; color: var(--ink); }
.quarter-steps li { position: relative; padding-left: 19px; }
.quarter-steps li::before { content: ""; position: absolute; left: 0; top: 3px; width: 10px; height: 10px; border: 2px solid var(--mid); border-radius: 3px; }

/* honesty and accountability */
.doc-notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; break-inside: avoid; }
.doc-note { padding: 12px 15px; border-left: 5px solid var(--yellow); border-radius: 12px; background: #FCF3DA; }
.doc-note h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: 14.5px; color: var(--deep); }
.doc-note p { margin: 0; font-size: 10.5pt; line-height: 1.55; color: var(--ink); }

.doc-close { break-inside: avoid; margin-top: 20px; padding: 20px 24px; border-radius: 16px; background: var(--maroon); color: var(--cream); }
.doc-close p { margin: 0; font-family: var(--display); font-size: 19px; line-height: 1.2; }
.doc-close .signature { display: block; margin-top: 6px; font-size: 28px; }
.doc-vote { display: inline-block; margin-top: 10px; padding: 6px 14px; border-radius: 999px; background: var(--yellow); color: var(--deep); font: 400 13px var(--display); letter-spacing: .02em; }

@media (max-width: 640px) {
  .doc-page { margin: 0; padding: 32px 20px; border-radius: 0; box-shadow: none; }
  .doc-head h1 { font-size: 44px; }
  .plan { grid-template-columns: 1fr; gap: 4px; }
  .plan-n { text-align: left; font-size: 34px; }
  .goals, .quarters, .doc-notes { grid-template-columns: 1fr; }
}

@page { size: letter; margin: 0.6in; }
@media print {
  .doc-body { background: #fff; }
  .doc-bar { display: none !important; }
  .doc-page { margin: 0; padding: 0; max-width: none; box-shadow: none; border-radius: 0; }
  .doc-body * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc-goals, .doc-tenure { break-before: page; }
  .quarter-n, .quarter-term { font-size: 11px; }   /* the PDF keeps its compact labels */
}
