/* Letter, Where we stand, Privacy and Unsubscribe pages.
   Loaded after main.css and reuses its tokens. Nothing here applies to the home page.

   Accessibility fixes (these pages only), measured against WCAG 2.2 AA:
   - Body text on --section panels: main.css uses 75% white (4.43:1, fails). Here: 88% (5.40:1).
   - --error text on --section: 4.22:1 (fails). Here: #ffd6d6 (4.83:1), plus an "Error:" prefix.
   - Form field borders: --line is 1.42:1 on --section (fields need 3:1). Here: 60% white (3.46:1). */

/* ---------- Self-hosted fonts (no Google Fonts request on these pages) ---------- */
/* Elms Sans (SIL OFL 1.1, see assets/fonts/OFL-ElmsSans.txt): Latin, Latin Extended, Vietnamese. */
@font-face { font-family: "Elms Sans"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/elms-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Elms Sans"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/elms-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Elms Sans"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/elms-sans-vietnamese.woff2") format("woff2");
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Elms Sans"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("../fonts/elms-sans-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Elms Sans"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("../fonts/elms-sans-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Elms Sans"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("../fonts/elms-sans-italic-vietnamese.woff2") format("woff2");
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
/* Public Sans (SIL OFL 1.1, see assets/fonts/OFL-PublicSans.txt): body text. Latin, Latin Extended, Vietnamese. */
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/public-sans-latin-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/public-sans-latin-ext-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/public-sans-vietnamese-normal.woff2") format("woff2");
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Public Sans"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/public-sans-latin-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/public-sans-latin-ext-italic.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Public Sans"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/public-sans-vietnamese-italic.woff2") format("woff2");
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
/* Fallbacks where Elms Sans has no glyphs: Noto Sans for Cyrillic (Russian), Noto Sans SC / TC for Chinese.
   Each downloads only when the page actually shows that script. Licences in assets/fonts/. */
@font-face { font-family: "OST Noto Sans"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/noto-sans-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "OST Noto Sans"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("../fonts/noto-sans-cyrillic-italic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "OST Noto Sans SC"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/noto-sans-sc-subset.woff2") format("woff2");
	unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF; }
@font-face { font-family: "OST Noto Sans TC"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/noto-sans-tc-subset.woff2") format("woff2");
	unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF; }

/* ---------- Tokens added for these pages (built on main.css's tokens) ---------- */
:root {
	--text-strong: rgba(255, 255, 255, 0.88);
	--error-strong: #ffd6d6;
	--field-border: rgba(255, 255, 255, 0.6);
	--field-border-focus: #fff;
	--bar-other: #9aa7d9;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--motion: 0.2s; /* one duration for every transition and crossfade (FADE_MS in common.js matches) */
	--sign-bar-height: 3.75rem;
}

/* Body text is Public Sans; headings, field labels, buttons and other display type stay Elms Sans. */
body.letter-page, body.simple-page {
	--font-body: "Public Sans", "OST Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Elms Sans", "OST Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-family: var(--font-body);
}
:is(body.letter-page, body.simple-page) :is(h1, h2, h3, h4, h5, h6, legend, label, button, .button, .label, .topbar-title, summary) { font-family: var(--font-display); }
/* …except where a label or button holds running text. */
:is(body.letter-page, body.simple-page) :is(.check label, .sp-chip, .sp-add, input, textarea, select) { font-family: var(--font-body); }

/* ---------- Script-specific typography ---------- */
:lang(zh-Hans) { font-family: "Elms Sans", "OST Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
:lang(zh-Hant) { font-family: "Elms Sans", "OST Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif; }
/* Uppercase and wide tracking suit short Latin labels only. */
:lang(zh-Hans) :is(h1, h2, h3, h4, label, legend, button, .button, .label, .topbar-title, summary),
:lang(zh-Hant) :is(h1, h2, h3, h4, label, legend, button, .button, .label, .topbar-title, summary) { text-transform: none; letter-spacing: 0.02em; }
:lang(vi) :is(h1, h2, h3, h4, label, legend, button, .button, .label, .topbar-title, summary),
:lang(ru) :is(h1, h2, h3, h4, label, legend, button, .button, .label, .topbar-title, summary) { letter-spacing: 0.04em; }
:lang(vi) { line-height: 1.9; }
:lang(vi) :is(h1, h2, h3, h4) { line-height: 1.4; }
/* The language menu shows every script; system fonts avoid downloading fonts for scripts the page isn't using. */
.lang-menu a { font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }

/* ---------- Utilities ---------- */
.visually-hidden {
	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-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	background: #fff; color: var(--bg); padding: 0.75rem 1rem; border: 0; border-radius: 5px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 3.25rem; padding: 0 1.5rem;
	font: inherit; font-size: 0.8rem; font-weight: 700; line-height: 1.2;
	text-transform: uppercase; letter-spacing: 0.1em; text-align: center;
	color: var(--heading); background: transparent;
	border: solid 2px var(--field-border); border-radius: 5px; cursor: pointer;
	text-decoration: none; transition: background-color var(--motion);
}
.button:hover { background: rgba(255, 255, 255, 0.075); border-bottom-color: var(--field-border); }
.button.primary { background: #fff; color: var(--bg); border-color: #fff; }
.button.primary:hover { background: rgba(255, 255, 255, 0.85); }
.link-button {
	display: inline-flex; align-items: center; gap: 0.5rem; height: auto; min-height: 2.75rem; padding: 0 0.25rem;
	background: none; border: 0; color: var(--text-strong);
	font: inherit; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer;
}
.link-button:hover { background: none; color: #fff; text-decoration: underline dotted; }
/* On the white Sign area, hovering keeps the link dark (white would vanish). */
.pane-sign .link-button:hover { color: var(--bg); }
/* "I'm not connected to a PPS school →": a next-step link, set to the right. */
:is(body.letter-page, body.simple-page) .link-button.link-next { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; }
.school-none:not([hidden]) { display: flex; justify-content: flex-end; }
.link-next .icon { width: 1.1rem; height: 1.1rem; flex: none; transition: transform var(--motion) var(--ease); }
.link-next:hover .icon { transform: translateX(3px); }
/* Quick crossfade between states (e.g. after "I'm not connected…"). */
.is-fading-out { opacity: 0; transition: opacity var(--motion) ease-out; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fade-in var(--motion) ease-out both; }

/* ---------- Top bar: page title + language. No banner, so the content gets the room. ---------- */
.topbar {
	display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
	max-width: 80rem; margin: 0 auto; padding: 0.4rem 1rem;
}
/* Letter page: a back arrow to the home page, just left of the title. */
.topbar-start { display: flex; align-items: center; gap: 0.25rem; min-width: 0; }
.topbar-back {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 2.75rem; height: 2.75rem; margin-left: -0.6rem; border: 0; border-radius: 5px; color: #fff;
}
.topbar-back:hover { background: rgba(255, 255, 255, 0.1); }
.topbar-back .icon { width: 1.5rem; height: 1.5rem; }
.topbar-title {
	margin: 0; min-width: 0; color: #fff;
	font-size: 0.85rem; font-weight: 900; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase;
}

/* Language picker: globe + current language, opens a list of native names. */
.lang-switch { position: relative; }
.lang-button {
	display: inline-flex; align-items: center; gap: 0.4rem;
	height: 2.75rem; padding: 0 0.6rem;
	font-size: 0.85rem; font-weight: 700; letter-spacing: 0; text-transform: none;
	background: transparent; border: solid 2px var(--field-border); border-radius: 5px; color: #fff;
}
.lang-button .chevron { width: 1rem; height: 1rem; transition: transform var(--motion); }
.lang-button[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.lang-menu {
	position: absolute; right: 0; top: calc(100% + 0.35rem); z-index: 50;
	min-width: 12rem; margin: 0; padding: 0.35rem; list-style: none;
	background: var(--section-dark); border: solid 2px var(--field-border); border-radius: 5px;
	box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.35);
}
.lang-menu a { display: flex; align-items: center; min-height: 2.75rem; padding: 0 0.75rem; border: 0; border-radius: 3px; color: #fff; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: rgba(255, 255, 255, 0.12); }
.lang-menu a[aria-current="true"] { font-weight: 700; box-shadow: inset 3px 0 0 #fff; }

.review-note, .demo-banner {
	max-width: 80rem; margin: 0.25rem auto 0; padding: 0.5rem 1rem;
	font-size: 0.875rem; line-height: 1.5; color: var(--text-strong);
}
.demo-banner { color: var(--bg); background: var(--success); font-weight: 700; margin-top: 0.5rem; }
.demo-banner > p { margin: 0; }
.demo-states { margin-top: 0.35rem; font-size: 0.85rem; font-weight: 600; line-height: 1.6; }
.demo-states p { margin: 0; }
.demo-states-group { font-weight: 800; }
.demo-states a { color: var(--bg); border-bottom: solid 1px rgba(46, 49, 65, 0.45); margin-right: 0.4rem; white-space: nowrap; }
.demo-states a:hover { border-bottom-color: transparent; }
.demo-states a[aria-current="page"] { border-bottom: 0; background: rgba(46, 49, 65, 0.12); padding: 0 0.3rem; border-radius: 3px; }

/* ---------- Two panes ---------- */
.letter-layout { padding-bottom: calc(var(--sign-bar-height) + env(safe-area-inset-bottom, 0px)); }
.pane-bar { margin: 0; padding: 0; border: 0; font-size: inherit; }
/* With the letter open, its "Read the letter" bar has nothing left to do: the Sign bar at the bottom switches back. */
.pane-letter.is-expanded .pane-bar { display: none; }
/* Same for the open Sign pane: only the "Read the letter" bar shows above the form. */
.pane-sign.is-expanded .pane-bar { display: none; }
.pane-toggle {
	display: flex; align-items: center; gap: 0.75rem; width: 100%;
	height: auto; min-height: 3.5rem; padding: 0 1rem;
	font: inherit; font-size: 0.9rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase;
	color: #fff; background: var(--section-dark); border: 0; border-radius: 0; cursor: pointer; text-align: left;
}
.pane-toggle:hover { background: var(--section-dark); }
.pane-toggle .pane-label { flex: 1; }
.pane-toggle .chevron { transition: transform var(--motion) var(--ease); }
.pane.is-expanded .pane-toggle { cursor: default; }
.pane.is-expanded .pane-toggle .chevron { transform: rotate(90deg); }
.bar-count { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: none; opacity: 0.85; }
.pane-toggle:focus-visible { outline-offset: -3px; }

/* Collapsed panes: kept in the page (form data and scroll survive), just not shown. */
.pane:not(.is-expanded) .pane-panel { display: none; }
/* Focus lands on an opened pane for screen readers; no outline around the whole pane. */
.pane-panel:focus { outline: none; }
.pane.is-entering .pane-panel { animation: pane-in var(--motion) var(--ease); }
@keyframes pane-in { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }

/* Collapsed Letter bar sticks to the top; collapsed Sign bar is pinned to the bottom as the main call to action. */
/* Stick the whole (collapsed) Letter section: its bar alone would stop at the section's own edge. */
.pane-letter:not(.is-expanded) { position: sticky; top: 0; z-index: 20; }
.pane-sign:not(.is-expanded) .pane-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
	padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--section-dark);
	box-shadow: 0 -0.5rem 1.5rem rgba(0, 0, 0, 0.3);
}
.pane-sign:not(.is-expanded) .pane-toggle { min-height: var(--sign-bar-height); background: var(--section-dark); color: #fff; justify-content: center; }
.pane-sign:not(.is-expanded) .pane-toggle .pane-label { flex: none; font-size: 1rem; }
/* The "Read the letter" bar is blue; the open Sign pane is white. (The collapsed Sign bar at the bottom stays dark so it stands out.) */
.pane-letter .pane-toggle, .pane-letter .pane-toggle:hover { background: var(--section); color: #fff; }
.pane-sign.is-expanded .pane-toggle { background: #fff; color: var(--bg); border-bottom: solid 1px #d9dce6; }
.pane-sign.is-expanded .pane-toggle { --focus-ring: rgba(76, 92, 150, 0.45); }
.pane-sign.is-expanded .bar-count { display: none; }

.pane-letter .pane-panel { padding: 1.5rem 1rem 3rem; }
.pane-sign .pane-panel { background: var(--section); padding: 1.25rem 1rem 3rem; color: var(--text-strong); }
.pane-panel > * { max-width: 42rem; margin-left: auto; margin-right: auto; }
.sign-title { display: none; }

/* Sign the letter, with Print to its right (it moves under Sign when there isn't room). */
.letter-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1.5rem; margin-top: 2.5rem; }

/* "To:" and "Subject:" at the top of the letter: labels in one column, text in the other. */
.letter-header {
	display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.6rem 1.25rem;
	margin: 0 0 2rem; padding: 0 0 1.25rem; border-bottom: solid 2px var(--line);
}
.letter-header dt { margin: 0; font-weight: 700; color: #fff; }
.letter-header dd { margin: 0; }
.letter-subject { font-weight: 700; color: #fff; }

/* ---------- The letter ---------- */
.letter-body { max-width: 38rem; color: var(--text-strong); }
.letter-body p { margin: 0 0 1.25rem; }
.letter-body strong { color: #fff; font-weight: 700; }
.letter-body a { overflow-wrap: anywhere; }
.count-inline { color: #fff; font-weight: 700; }

/* Comparison chart: a real table, drawn as bars. */
.compare { margin: 2rem 0 1rem; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.4; }
.compare-table caption {
	text-align: left; color: #fff; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
	padding-bottom: 0.75rem; line-height: 1.5;
}
.compare-table thead th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-strong); text-align: left; padding: 0 0.5rem 0.5rem; border-bottom: solid 2px var(--line); }
.c-group-row th {
	padding: 1rem 0.5rem 0.4rem; text-align: left; color: #fff;
	font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.c-row th, .c-row td { padding: 0.45rem 0.5rem; border-top: solid 1px var(--line); vertical-align: middle; text-align: left; }
.c-name { font-weight: 600; color: var(--text-strong); white-space: nowrap; }
.c-star { color: #fff; margin-left: 0.1rem; }
.c-pct { width: 45%; }
.c-pct-num { display: inline-block; min-width: 2.75rem; font-weight: 700; color: #fff; }
.c-bar { display: inline-block; vertical-align: middle; width: calc(100% - 3.25rem); height: 0.65rem; }
.c-bar-track { fill: rgba(255, 255, 255, 0.08); }
.c-bar-fill { fill: var(--bar-other); }
.c-moved, .c-pop { font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-row.is-highlight { background: rgba(255, 255, 255, 0.06); }
.c-row.is-highlight .c-name { color: #fff; font-weight: 900; }
.c-row.is-highlight .c-bar-fill { fill: #fff; }
.compare figcaption { margin-top: 0.75rem; }
.c-note { font-size: 0.85rem; line-height: 1.5; margin: 0; }

/* Phones: each district becomes a small card: name and percent, a bar, then the counts. */
@media (max-width: 599px) {
	.compare-table, .compare-table thead, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td, .compare-table caption { display: block; }
	.compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.c-row { display: grid; grid-template-columns: 1fr auto; column-gap: 0.75rem; padding: 0.6rem 0.5rem; border-top: solid 1px var(--line); }
	.c-row th, .c-row td { border: 0; padding: 0; }
	.c-name { grid-column: 1; grid-row: 1; z-index: 1; white-space: normal; }
	.c-pct { grid-column: 1 / -1; grid-row: 1 / span 2; width: auto; display: grid; grid-template-columns: 1fr auto; row-gap: 0.35rem; }
	.c-pct-num { grid-column: 2; grid-row: 1; text-align: right; min-width: 0; }
	.c-bar { grid-column: 1 / -1; grid-row: 2; width: 100%; }
	.c-moved, .c-pop { grid-column: 1 / -1; font-size: 0.85rem; color: var(--text-strong); white-space: normal; }
	.c-moved { margin-top: 0.35rem; }
	.c-moved::before, .c-pop::before { content: attr(data-label) " "; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
}

/* Signatures summary (totals only) */
.signatures { margin: 2.5rem 0; padding: 1.5rem 1.25rem; background: var(--section-dark); color: var(--text-strong); }
.signatures h3 { margin: 0 0 0.75rem; font-size: 1rem; }
.signatures h4 { margin: 1.5rem 0 0.5rem; font-size: 0.8rem; }
.sig-lead { font-size: 1.25rem; color: #fff; font-weight: 700; margin: 0 0 0.5rem !important; }
.sig-list { list-style: none; margin: 0 0 0.5rem; padding: 0; }
.sig-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-top: solid 1px var(--line); }
.sig-list li:last-child { border-bottom: solid 1px var(--line); }
.sig-list .n { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.sig-note { font-size: 0.875rem; line-height: 1.55; }
.sig-schools { color: #fff; font-weight: 600; }

/* Collapsible appendix */
.appendix { margin: 2rem 0 0; border-top: solid 2px var(--line); border-bottom: solid 2px var(--line); }
.appendix summary {
	display: flex; align-items: center; gap: 0.75rem; min-height: 3.25rem; cursor: pointer; list-style: none;
	color: #fff; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.appendix summary::-webkit-details-marker { display: none; }
.appendix summary::before {
	content: ""; width: 0.5rem; height: 0.5rem; flex: none;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform var(--motion);
}
.appendix[open] summary::before { transform: rotate(45deg); }
.appendix-body { font-size: 0.9rem; line-height: 1.6; padding-bottom: 1rem; }
.appendix-body ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.appendix-body li { margin-bottom: 0.5rem; }
.ref-group { margin: 1rem 0 0.4rem !important; color: #fff; font-weight: 700; }

/* ---------- Sign form ---------- */
.live-count { margin: 0 0 1rem; color: #fff; font-size: 1.15rem; font-weight: 700; }
.sign-form .field { margin-bottom: 1.6rem; }
.sign-form label, .sign-form legend, .sign-form .label {
	display: block; margin: 0 0 0.5rem; padding: 0;
	font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; line-height: 1.5;
}
.optional-tag { font-weight: 600; letter-spacing: 0.04em; text-transform: none; color: var(--text-strong); }
.hint { margin: -0.25rem 0 0.5rem; font-size: 0.9rem; line-height: 1.5; color: var(--text-strong); }
.note { margin: 0.75rem 0 0; font-size: 0.95rem; line-height: 1.5; color: #fff; }
.note:empty { display: none; }

.sign-form input[type="text"], .sign-form input[type="email"], .sign-form input[type="tel"], .sign-form input[type="search"], .sign-form textarea,
.simple-page input[type="search"] {
	display: block; width: 100%; min-height: 3rem; padding: 0.6rem 1rem;
	font: inherit; font-size: 1.05rem; font-weight: 400; line-height: 1.5; color: #fff;
	background: var(--field); border: solid 2px var(--field-border); border-radius: 5px;
}
.sign-form textarea { min-height: 7.5rem; resize: vertical; }
/* Focus: the border darkens and the ring hugs it (see :focus-visible in main.css). */
.sign-form input:focus, .sign-form textarea:focus, .simple-page input[type="search"]:focus { border-color: var(--field-border-focus); box-shadow: 0 0 0 3px var(--focus-ring); outline: none; }
::placeholder { color: rgba(255, 255, 255, 0.7); opacity: 1; }
.sign-form [aria-invalid="true"] { border-color: var(--error-strong) !important; box-shadow: inset 4px 0 0 var(--error-strong); }
.sign-form [aria-invalid="true"]:focus { box-shadow: inset 4px 0 0 var(--error-strong), 0 0 0 3px var(--focus-ring); }
.sign-form .choices label { padding-left: 2.25rem; position: relative; font-size: 1.05rem; text-transform: none; letter-spacing: 0; color: var(--text-strong); font-weight: 400; min-height: 2.75rem; display: flex; align-items: center; margin: 0; }
.sign-form .choices label:before { top: 50%; transform: translateY(-50%); border-color: var(--field-border); }
.sign-form .choices input:checked + label:before { box-shadow: inset 0 0 0 4px var(--section); }
.sign-form .choices { gap: 0.25rem; }

.field-error, .error-summary { color: var(--error-strong); font-weight: 600; font-size: 0.95rem; line-height: 1.5; }
.field-error { margin: 0.5rem 0 0; }
.field-error::before { content: "! "; font-weight: 900; }
.error-summary { padding: 0.75rem 1rem; margin-bottom: 1.5rem; border: solid 2px var(--error-strong); border-radius: 5px; }
.error-summary ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.error-summary a { color: var(--error-strong); }

.counter { margin: 0.4rem 0 0; font-size: 0.85rem; text-align: right; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.counter.is-over { color: var(--error-strong); font-weight: 700; }

.turnstile:empty { display: none; }
.turnstile { margin: 0 0 1rem; min-height: 0; }

.notice { margin: 0 0 1.25rem; padding: 1rem 0 0; border-top: solid 2px var(--line); font-size: 0.9rem; line-height: 1.55; }
.notice p { margin: 0 0 0.6rem; }
.notice a { color: #fff; }

.submit { width: 100%; min-height: 3.5rem; font-size: 0.9rem; }
.submit .spinner, .unsub .spinner { display: none; }
.is-busy .spinner {
	display: inline-block; width: 1.1rem; height: 1.1rem; border-radius: 50%;
	border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite;
}
.is-busy { cursor: progress; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin: 1rem 0 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error-strong); font-weight: 600; }
.form-status.is-success { color: var(--success); font-weight: 600; }
.form-status.is-info { color: #fff; font-weight: 600; }

/* Thank-you state */
.thanks { color: var(--text-strong); outline: none; }
.thanks-icon { width: 3rem; height: 3rem; fill: none; stroke: var(--success); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.thanks h3 { font-size: 1.15rem; margin: 0.5rem 0 0.75rem; }
.thanks h4 { font-size: 0.8rem; margin: 2rem 0 0.5rem; }
.share { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-top: 1rem; }
.share .button { padding: 0 0.75rem; font-size: 0.75rem; }
.share .button { min-height: 3.25rem; font-size: 0.8rem; }

/* ---------- School picker ---------- */
.school-picker { position: relative; }
.sp-input-wrap { position: relative; }
.sp-input-wrap .icon { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); opacity: 0.8; pointer-events: none; }
.sign-form input.sp-input { padding-left: 2.75rem; }
.sp-listbox {
	margin: 0.5rem 0 0; padding: 0.25rem; list-style: none;
	max-height: min(22rem, 55vh); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
	background: var(--section-dark); border: solid 2px var(--field-border); border-radius: 5px;
}
.sp-option {
	display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0.5rem 0.75rem;
	border-radius: 3px; cursor: pointer; color: var(--text-strong); line-height: 1.3;
}
.sp-option .sp-text { flex: 1; min-width: 0; }
.sp-option .sp-name { display: block; color: #fff; font-weight: 600; }
.sp-option .sp-meta { display: block; font-size: 0.8rem; margin-top: 0.1rem; }
.sp-option .sp-check { width: 1.35rem; height: 1.35rem; flex: none; border: solid 2px var(--field-border); border-radius: 3px; display: grid; place-items: center; }
.sp-option[aria-selected="true"] .sp-check { background: #fff; border-color: #fff; }
.sp-option[aria-selected="true"] .sp-check::after { content: ""; width: 0.4rem; height: 0.75rem; border: solid var(--section-dark); border-width: 0 3px 3px 0; transform: translateY(-1px) rotate(45deg); }
.sp-option.is-active { background: rgba(255, 255, 255, 0.14); box-shadow: inset 3px 0 0 #fff; }
.sp-option mark { background: none; color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.sp-option.sp-other { border-top: solid 1px var(--line); margin-top: 0.25rem; }
.sp-empty { padding: 0.75rem; font-size: 0.95rem; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.sp-chips:empty { display: none; }
.sp-collapse .sp-chips { margin: 0; }
.sp-collapse .sp-chips:not(:empty) ~ .sp-input-wrap { margin-top: 0.75rem; }
/* The "+" sits in the same 1.35rem column as the checkbox below, so "Add another school" and
   "Keep me updated…" start at the same place. */
.sign-form .sp-add {
	display: flex; align-items: center; gap: 0.75rem; height: auto; min-height: 2.75rem; margin: 0.5rem 0 0; padding: 0;
	border: 0; border-radius: 3px; background: none; color: var(--bg);
	font-size: 1.05rem; font-weight: 600; text-transform: none; letter-spacing: 0; text-align: left;
}
.sign-form .sp-add:hover { background: none; color: var(--section-dark); text-decoration: underline; }
.sign-form .sp-add:focus { outline: none; }
.sign-form .sp-add:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 0; }
.sp-add .icon { width: 1.35rem; height: 1.35rem; flex: none; }
.sp-chip {
	display: inline-flex; align-items: center; gap: 0.25rem; min-height: 2.75rem; height: auto; padding: 0.25rem 0.4rem 0.25rem 0.85rem;
	font: inherit; font-size: 0.95rem; font-weight: 600; letter-spacing: 0; text-transform: none; text-align: left;
	color: var(--bg); background: #fff; border: 0; border-radius: 999px; cursor: pointer;
}
.sp-chip:hover { background: rgba(255, 255, 255, 0.85); }
.sp-chip .icon { width: 1.5rem; height: 1.5rem; padding: 0.2rem; }

/* Checklist picker */
.sp-checklist fieldset { border: 0; margin: 1rem 0 0; padding: 0; }
.sp-checklist legend { font-size: 0.75rem !important; }
.sp-check-row { position: relative; display: flex; align-items: center; min-height: 2.75rem; }
.sp-check-row input { position: absolute; opacity: 0; width: 1.35rem; height: 1.35rem; left: 0; margin: 0; }
.sp-check-row label {
	position: relative; display: block !important; width: 100%; margin: 0 !important; padding: 0.5rem 0 0.5rem 2.25rem !important;
	font-size: 1rem !important; font-weight: 400 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--text-strong) !important; cursor: pointer;
}
.sp-check-row label::before {
	content: ""; position: absolute; left: 0; top: 0.65rem; width: 1.35rem; height: 1.35rem;
	border: solid 2px var(--field-border); border-radius: 3px; background: var(--field);
}
.sp-check-row input:checked + label { color: #fff !important; }
.sp-check-row input:checked + label::before { background: #fff; border-color: #fff; }
.sp-check-row input:checked + label::after {
	content: ""; position: absolute; left: 0.5rem; top: 0.85rem; width: 0.4rem; height: 0.75rem;
	border: solid var(--section); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.sp-check-row input:focus-visible + label::before { outline: 3px solid var(--focus-ring); outline-offset: 0; }
.sp-check-row .sp-meta { font-size: 0.8rem; margin-left: 0.4rem; color: var(--text-strong); }
.sp-showing { font-size: 0.85rem; margin: 0.5rem 0 0; }

/* ---------- Simple pages (Where we stand, Privacy, Unsubscribe) ---------- */
.page { max-width: 52rem; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.panel { background: var(--section); color: var(--text-strong); padding: 1.5rem 1.25rem; margin-bottom: 2.5rem; }
.panel h2, .panel h3, .page h2 { color: #fff; }
.page h2 { font-size: 1rem; margin: 0 0 1rem; padding-bottom: 0.75rem; border-bottom: solid 2px var(--line); }
.panel h3 { font-size: 0.8rem; margin: 1.5rem 0 0.75rem; }
.page-cta { text-align: center; margin-top: 2rem; }
.prose { max-width: 40rem; color: var(--text-strong); }
.prose h2 { font-size: 0.95rem; margin: 2rem 0 0.75rem; padding: 0; border: 0; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.35rem; }
.prose strong { color: #fff; }

/* Find my representative: a card per school with its two state legislators. */
.rep-jump { max-width: 40rem; margin: 1.5rem 0 2rem; }
.rep-jump h2 { font-size: 0.8rem; margin: 0 0 0.75rem; padding: 0; border: 0; }
.rep-jump ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.rep-jump a { display: inline-block; padding: 0.375rem 0.75rem; border: solid 1px var(--line); border-radius: 999px; font-size: 0.9rem; color: #fff; }
.rep-jump a:hover { border-color: rgba(255, 255, 255, 0.5); }
.rep-school { max-width: 40rem; margin: 0 0 1.25rem; padding: 1.25rem 1.25rem 1.375rem; border: solid 1px var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.04); scroll-margin-top: 1.5rem; }
.page .rep-school h2 { margin: 0 0 0.25rem; padding: 0; border: 0; font-size: 1.25rem; letter-spacing: 0.02em; text-transform: none; }
.rep-people { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem 1.5rem; margin: 1rem 0 0; padding: 0; }
.rep-person { display: flex; flex-direction: column; gap: 0.125rem; }
.rep-role { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.rep-name { color: #fff; font-weight: 700; font-size: 1.0625rem; }
.rep-district { font-size: 0.9rem; color: var(--text-strong); }
.rep-email { align-self: flex-start; margin-top: 0.25rem; font-size: 0.9rem; overflow-wrap: anywhere; }
.rep-both { margin: 1.25rem 0 0; }
:lang(zh-Hans) .rep-role, :lang(zh-Hant) .rep-role { letter-spacing: 0.02em; }

/* Resources: other people's tools, as tiles with a picture of each page. */
.resource-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.25rem; margin: 1.75rem 0 0; padding: 0; }
.resource a { display: flex; flex-direction: column; height: 100%; color: inherit; border: solid 1px var(--line); border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, 0.04); transition: border-color var(--motion), transform var(--motion); }
.resource a:hover { border-color: rgba(255, 255, 255, 0.5); }
.resource a:focus-visible { outline-offset: 3px; }
.resource-shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #fff; border-bottom: solid 1px var(--line); }
.resource-shot-none { display: flex; align-items: center; justify-content: center; background: var(--section-dark, #3d4a7c); color: rgba(255, 255, 255, 0.85); font-weight: 700; font-size: 1.1rem; }
.resource-text { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.875rem 1rem 1rem; }
.resource-title { color: #fff; font-weight: 700; font-size: 1.0625rem; line-height: 1.35; }
.resource a:hover .resource-title { text-decoration: underline; text-underline-offset: 3px; }
.resource-host { font-size: 0.875rem; color: var(--text); }

.sector-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.5rem; }
.sector-list li { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; align-items: center; padding: 0.5rem 0; border-top: solid 1px var(--line); }
.sector-list .name { color: #fff; font-weight: 600; }
.sector-list .n { color: #fff; font-weight: 900; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.sector-list svg { grid-column: 1 / -1; width: 100%; height: 0.5rem; }
.sector-list .c-bar-fill { fill: #fff; }
.sector-list .c-bar-track { fill: rgba(255, 255, 255, 0.15); }
.sector-list .is-bucket .name { font-weight: 400; color: var(--text-strong); }

.check { position: relative; display: flex; align-items: center; min-height: 2.75rem; }
.check input { width: 1.35rem; height: 1.35rem; margin: 0 0.75rem 0 0; accent-color: #fff; flex: none; }
.check label { margin: 0 !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 1rem !important; font-weight: 400 !important; color: var(--text-strong) !important; cursor: pointer; }
.school-list { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.school-list li {
	display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem; align-items: center;
	padding: 0.75rem 0; border-top: solid 1px var(--line);
}
.school-list li:last-child { border-bottom: solid 1px var(--line); }
.school-list .name { color: #fff; font-weight: 600; }
.school-list .meta { grid-column: 1; font-size: 0.85rem; line-height: 1.4; }
.school-list .n { grid-column: 2; grid-row: 1 / span 2; text-align: right; color: #fff; font-weight: 900; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.school-list .n small { display: block; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-strong); }
.badge {
	display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.3rem;
	font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px;
	background: var(--success); color: var(--bg);
}
.badge.is-none { background: transparent; color: var(--text-strong); border: solid 1px var(--field-border); font-weight: 600; }
.unsub { text-align: left; }
.unsub p { margin: 0 0 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { padding: 2rem 1rem 3rem; font-size: 0.9rem; border-top: solid 1px var(--line); }
.site-footer-inner { max-width: 80rem; margin: 0 auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 1rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.disclaimer { font-size: 0.85rem; margin: 0; }

/* ---------- Tablet portrait (600–899px): same accordion, wider centred column ---------- */
@media (min-width: 600px) {
	.topbar { padding-left: 2rem; padding-right: 2rem; }
	.pane-letter .pane-panel, .pane-sign .pane-panel { padding-left: 2rem; padding-right: 2rem; }
	.pane-toggle { padding: 0 2rem; }
	.share { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Desktop and iPad landscape (900px and up): side by side ---------- */
@media (min-width: 900px) {
	.topbar-title { font-size: 1rem; }
	.letter-layout {
		display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: 3rem;
		max-width: 80rem; margin: 0 auto; padding: 1rem 2rem 4rem; align-items: start;
	}
	.pane-bar { display: none; }
	/* Once you've scrolled past the form, this takes you back to it. */
	.letter-cta { justify-content: flex-start; max-width: 38rem; margin-left: 0; }
	.pane .pane-panel, .pane:not(.is-expanded) .pane-panel { display: block; animation: none; }
	.pane-letter .pane-panel { padding: 2rem 2rem 2.5rem; }
	.pane-panel > * { max-width: none; }
	.letter-body { max-width: 38rem; margin-left: 0; }
	/* The form has no scroll area of its own. */
	.pane-sign .pane-panel { padding: 2rem 2rem 2.5rem; }
	.sign-title { display: block; font-size: 1.1rem; margin: 0 0 0.5rem; }
	.pane-sign .pane-heading.visually-hidden { position: static !important; }
}

/* Wide screens: the Sign panel stays in view while you scroll the letter, on every step.
   main.js sets "top": 1rem normally, or a negative value when the panel is taller than the window,
   so it pins by its bottom edge and nothing is ever cut off. */
@media (min-width: 900px) {
	.pane-sign { position: sticky; top: 1rem; }
}
}

/* Step 2 arrivals: the count line, the checkbox and the share buttons come in one by one. */
@keyframes reveal-up { from { opacity: 0; transform: translateY(0.6rem); } to { opacity: 1; transform: none; } }
.reveal { animation: reveal-up var(--motion) var(--ease) both; }
/* The count inside the step 2 school block: the number in its own cell, the words beside it. */
.school-tally:not([hidden]) { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 0.75rem; }
.school-tally-label { font-size: 1.05rem; line-height: 1.3; color: #1c1e26; }
.school-tally-words { display: flex; flex-direction: column; gap: 0.15rem; }
.school-tally-you { font-size: 1.05rem; line-height: 1.3; font-weight: 700; color: var(--honor-dark); }
.school-tally-you[hidden] { display: none; }
/* The count is one of the page's most dominant elements. */
.school-tally-n { font-family: var(--font-display); font-size: 3.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--bg); font-variant-numeric: tabular-nums; }
@keyframes plus-one { 0% { transform: none; } 40% { transform: scale(1.18); } 100% { transform: none; } }
.school-tally.is-plus-one .school-tally-n { animation: plus-one calc(var(--motion) * 2) var(--ease); transform-origin: center 70%; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* main.css makes every button full width under 480px; these ones keep their own size. */
.lang-button, .link-button, .sp-chip, .pane-toggle { width: auto; }
.pane-toggle { width: 100%; }
.sig-endorsements li { display: block; }
.sig-endorsements li > span:first-child { display: block; color: #fff; font-weight: 600; }
.sig-endorsements .meta { display: block; font-size: 0.85rem; }

/* ---------- The letter in a blue panel ----------
   The same blue box the form used to sit in (--section), on phones and wide screens alike.
   Text is 88% white (5.40:1); the other districts' bars are #c3cbec (3.9:1, numbers are also shown as text). */
.pane-letter .pane-panel { background: var(--section); }
.pane-letter.is-expanded .pane-toggle { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.25); }
.pane-letter .c-bar-track { fill: rgba(255, 255, 255, 0.14); }
.pane-letter .c-bar-fill { fill: #c3cbec; }
.pane-letter .c-row.is-highlight { background: rgba(255, 255, 255, 0.1); }

/* ---------- The Sign area on white ----------
   Same idea as the letter: dark text on white. Tokens are redefined for this area only, so every
   form rule above picks them up. Contrast on white: text #474c5e 8.2:1, field borders #767c93 4.3:1
   (fields need 3:1), errors #b3261e 6.2:1, success #1d6b44 6.6:1. */
.pane-sign .pane-panel {
	--text-strong: #474c5e;
	--field: #fff;
	--field-border: #767c93;
	--field-border-focus: var(--bg);
	--focus-ring: rgba(76, 92, 150, 0.45);
	--error-strong: #b3261e;
	--success: #1d6b44;
	--line: #d9dce6;
	background: #fff;
	color: var(--text-strong);
}
.pane-sign :is(h2, h3, h4, .sign-title),
.pane-sign .sign-form :is(label, legend, .label) { color: #1c1e26; }
.pane-sign .sign-form :is(input[type="text"], input[type="email"], input[type="search"], textarea) { color: #1c1e26; }
.pane-sign ::placeholder { color: #6b7188; }
.pane-sign .notice a, .pane-sign .hint a { color: #1c1e26; border-bottom-color: rgba(28, 30, 38, 0.45); }
.pane-sign .form-status.is-info { color: #1c1e26; }
/* Buttons: the main one is solid dark blue; the share buttons are outlined. */
.pane-sign .button { color: var(--bg); border-color: var(--field-border); }
.pane-sign .button:hover { background: #f1f2f8; }
.pane-sign .button.primary { background: var(--bg); border-color: var(--bg); color: #fff; }
.pane-sign .button.primary:hover { background: var(--section-dark); }
/* School picker */
.pane-sign .sp-listbox { background: #fff; border-color: var(--field-border); box-shadow: 0 6px 18px rgba(28, 30, 38, 0.12); }
.pane-sign .sp-option .sp-name, .pane-sign .sp-option mark { color: #1c1e26; }
.pane-sign .sp-option.is-active { background: #eef0f7; box-shadow: inset 3px 0 0 var(--bg); }
.pane-sign .sp-option[aria-selected="true"] .sp-check { background: var(--bg); border-color: var(--bg); }
.pane-sign .sp-option[aria-selected="true"] .sp-check::after { border-color: #fff; }
.pane-sign .sp-chip { background: var(--bg); color: #fff; }
.pane-sign .sp-chip:hover { background: var(--section-dark); }
.pane-sign .sp-check-row input:checked + label { color: #1c1e26 !important; }
.pane-sign .sp-check-row input:checked + label::before { background: var(--bg); border-color: var(--bg); }
.pane-sign .sp-check-row input:checked + label::after { border-color: #fff; }

/* ---------- Share line, steps 2 and 3 ---------- */
/* "{name} and N others have already signed", above the form. */
/* "{name} invited you to sign": a block of its own, like the school card, close above it. */
.invite-block { margin: 0 0 0.5rem; padding: 0.8rem 1rem; border: solid 2px var(--line); border-radius: 5px; font-size: 1.05rem; font-weight: 700; line-height: 1.4; color: #1c1e26; }
/* Above the form it's a light grey band attached to the top of the Sign block (it cancels the panel's
   top and side padding to reach its edges). */
.pane-sign .pane-panel > .social-proof {
	width: calc(100% + 2rem); max-width: none; margin: -1.25rem -1rem 1.25rem; padding: 0.9rem 1rem;
	border: 0; border-radius: 0; background: #eceef3; color: #1c1e26;
}
@media (min-width: 600px) { .pane-sign .pane-panel > .social-proof { width: calc(100% + 4rem); margin: -1.25rem -2rem 1.25rem; padding: 0.9rem 2rem; } }
@media (min-width: 900px) { .pane-sign .pane-panel > .social-proof { margin: -2rem -2rem 1.5rem; } }
/* At the top of the letter: on the blue panel (wide screens) it reads in white. */
.letter-invite { margin-bottom: 1.5rem; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
/* Wide screens show the form beside the letter, invitation and all: once is enough. */
@media (min-width: 900px) { .letter-invite { display: none !important; } }
.share-block { margin: 0 0 0.5rem; }
.check-field .check { align-items: flex-start; }
.check-field .check input { margin-top: 0.15rem; }
.check-field .hint { margin: 0.25rem 0 0 2.1rem; }
.pane-sign .check input { accent-color: var(--bg); }
.pane-sign .check label { color: #1c1e26 !important; font-size: 1.05rem !important; }
.school-list .signed-by { margin: 0.35rem 0 0; font-size: 0.9rem; line-height: 1.5; color: var(--text-strong); }
.thanks-title { display: flex; align-items: center; gap: 0.6rem; }
.thanks-title .thanks-icon { width: 2.25rem; height: 2.25rem; flex: none; }
.sign-title[hidden] { display: none !important; }
.share:has([data-share="native"][hidden]) [data-share="copy"] { grid-column: 1 / -1; }
.letter-body ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.letter-body ol li { margin: 0 0 0.75rem; padding-left: 0.25rem; }

/* School card: the school name and a pencil on one line, then the count on its own full-width line. */
.school-card { margin: 0 0 1.5rem; padding: 0.6rem 0.5rem 0.6rem 1rem; border: solid 2px var(--line); border-radius: 5px; }
.school-card-row { display: flex; align-items: center; gap: 0.5rem; }
/* "Affiliation": a small label over the school name, like the form's field labels. */
.school-card-label { margin: 0.2rem 0 0; font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #4a4f5c; }
.school-card-name { flex: 1; min-width: 0; margin: 0; font-weight: 700; color: #1c1e26; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pane-sign .school-card-change {
	flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; min-height: 0; padding: 0;
	background: none; border: 0; border-radius: 5px; color: var(--bg); cursor: pointer;
}
.pane-sign .school-card-change:hover, .pane-sign .school-card-change[aria-expanded="true"] { background: #eef0f7; }
.school-card-change .icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.school-card-body { margin: 0.35rem 0.5rem 0.15rem 0; padding-top: 0.5rem; border-top: solid 1px var(--line); }
.school-card-count { margin: 0; font-size: 0.95rem; line-height: 1.45; }
.school-change { margin: 0 0 1.5rem; }
.school-change-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 0.5rem; }
.school-change-head .label { margin-bottom: 0.5rem; }
/* Step 1's "School affiliation" field: the chosen school sits in a box drawn like a text input,
   with the pencil inside on the right; the school's count reads like a hint under it. */
.school-field-box {
	display: flex; align-items: center; gap: 0.5rem; min-height: 3rem; padding: 0 0.35rem 0 1rem;
	background: var(--field); border: solid 2px var(--field-border); border-radius: 5px;
}
/* Focusing the pencil focuses the field as a whole, like a text input. */
.school-field-box:has(:focus-visible) { border-color: var(--field-border-focus); box-shadow: 0 0 0 3px var(--focus-ring); }
.school-field-box :focus-visible { outline: none; }
.school-field .school-card-name { flex: 1; min-width: 0; font-weight: 400; font-size: 1.05rem; line-height: 1.5; color: #1c1e26; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.school-field .school-card-body { margin: 0.5rem 0 0; padding: 0; border: 0; }
.school-field .school-card-count { margin: 0; font-size: 0.95rem; line-height: 1.45; color: var(--text-strong); }
/* Same label as on the school card ("School affiliation"). */
.school-change-head .school-change-title { margin: 0; }
.school-change .school-none { margin: 0.5rem 0 0; }
/* On phones the search lifts itself toward the top when focused; keep it (and its title) clear of the Letter bar. */
.sp-input { scroll-margin-top: calc(var(--sign-bar-height) + 3rem); }
/* Step 2: share by school. */
.share-cluster { margin: 1.75rem 0 0; }
/* A full sentence ("How many people from Lane can you get to sign? 10? 20? …"): body type, bold, so it reads as a question. */
.pane-sign .thanks .share-cluster-title { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; line-height: 1.4; margin: 0 0 1rem; text-transform: none; letter-spacing: 0; color: #1c1e26; }
.share-cluster .field { margin-bottom: 0.75rem; }
.share-cluster .school-none { margin: 0.5rem 0 0; }
.share-school { margin: 0 0 1.75rem; padding: 0.85rem 0.75rem 0.85rem 1.15rem; }
.share-box .school-tally { margin: 0 0 1rem; }
/* Boxes on step 2, like the school block: "Get more people from {school} to sign" with the updates
   switch, and (after sharing) the leaderboard switch. */
/* Thank-you step, top to bottom with room between: the school block (boxed, when picked here), the count,
   heading and share buttons (unboxed), then each switch in its own box. */
.share-box.leaderboard { margin: 0 0 1.25rem; padding: 1rem 1.15rem; border: solid 2px var(--line); border-radius: 5px; }
.share-box#share-box { margin: 0 0 1.75rem; }
/* A switch, and the sentence that replaces it once on (see createToggle in form.js). */
.toggle-off:not([hidden]), .toggle-on:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; }
.toggle-text { display: flex; flex-direction: column; gap: 0.2rem; }
.toggle-label, .toggle-on-text { margin: 0; font-size: 1rem; line-height: 1.4; color: #1c1e26; }
.leaderboard .toggle-label, .honor-showname .toggle-label { font-weight: 700; }
.toggle-desc { font-size: 0.9rem; line-height: 1.4; color: #4a4f5c; }
.pane-sign .switch, .honor-roll .switch {
	position: relative; flex: none; width: 3.25rem; height: 2rem; padding: 0; border: 0; border-radius: 1rem;
	background: #c9ccd8; cursor: pointer; transition: background-color var(--motion) var(--ease);
}
.pane-sign .switch:hover, .honor-roll .switch:hover { background: #b7bbcb; }
.pane-sign .switch[aria-checked="true"], .honor-roll .switch[aria-checked="true"] { background: var(--bg); }
.switch-thumb { position: absolute; top: 0.2rem; left: 0.2rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform var(--motion) var(--ease); }
.switch[aria-checked="true"] .switch-thumb { transform: translateX(1.25rem); }
.toggle-on .link-button { flex: none; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; }

/* ---------- Phones and tablets: the open letter on white ----------
   Below 900px the letter reads on white, like the Sign area (the "Read the letter" bar stays blue).
   Wide screens keep the blue letter panel beside the white Sign panel. */
@media (max-width: 899px) {
	.pane-letter .pane-panel {
		--text-strong: #474c5e;
		--line: #d9dce6;
		background: #fff;
		color: var(--text-strong);
	}
	.pane-letter .pane-panel { --focus-ring: rgba(76, 92, 150, 0.45); }
	.pane-letter :is(.letter-header dt, .letter-subject, .letter-body strong, .count-inline, .compare-table caption, .c-group-row th,
		.c-star, .c-pct-num, .c-row.is-highlight .c-name, .sig-lead, .sig-list .n, .sig-schools, .appendix summary, .ref-group, h2, h3, h4) { color: #1c1e26; }
	.pane-letter .letter-body a, .pane-letter .appendix-body a { color: var(--bg); }
	.pane-letter .letter-invite { color: #1c1e26; border-color: var(--line); }
	.pane-letter .c-bar-track { fill: #eceef4; }
	.pane-letter .c-bar-fill { fill: #9aa3c7; }
	.pane-letter .c-row.is-highlight { background: #f3f4f8; }
	.pane-letter .c-row.is-highlight .c-bar-fill { fill: var(--bg); }
	.pane-letter .signatures { background: #f3f4f8; }
	.pane-letter .button { color: var(--bg); border-color: #767c93; }
	.pane-letter .button.primary { background: var(--bg); border-color: var(--bg); color: #fff; }
	.pane-letter .button.primary:hover { background: var(--section-dark); }
	.pane-letter .link-button { color: var(--bg); }
	.pane-letter .link-button:hover { color: var(--section-dark); }
}

/* ---------- Phones: the Sign bar that docks at the end of the letter ----------
   While the letter is open, the Sign button sticks to the bottom of the screen, edge to edge, in the
   bar colour. When you scroll to its place after the letter it stops sticking (CSS position: sticky
   does this), and it morphs into the inline button: margins grow in, corners round, and the colour
   switches straight to the dark button blue. .is-stuck is set by dock.js. The dock keeps the same
   height in both states, so the morph never moves the point where it docks. */
@media (max-width: 899px) {
	/* The dock replaces the old separate bottom bar. */
	.pane-sign:not(.is-expanded) .pane-bar { display: none; }
	/* A sticky element can't leave its parent, so the row it sits in steps aside (display: contents):
	   the whole letter panel becomes its parent, and it can stay at the bottom from top to end. */
	.letter-cta { display: contents; }
	.cta-dock {
		position: sticky; bottom: env(safe-area-inset-bottom, 0px); z-index: 30;
		display: block; width: 100%; max-width: 42rem; height: 3.75rem; margin: 2.5rem auto 0;
	}
	.cta-dock-end { display: block; height: 0; }
	.pane-letter .cta-sign {
		position: relative; box-sizing: border-box; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0 1rem;
		display: flex; align-items: center; justify-content: center; gap: 0.5rem;
		border-radius: 5px; box-shadow: none; transition: none;
	}
	/* The morph: margins, width, corners and shadow animate; the colour changes at once. */
	.cta-dock.is-ready .cta-sign {
		transition: width var(--motion) var(--ease), margin var(--motion) var(--ease), border-radius var(--motion) var(--ease), box-shadow var(--motion) var(--ease);
	}
	.cta-sign .chevron { width: 1.1rem; height: 1.1rem; }
	/* Stuck: the full screen width (out past the page gutters), square corners, the bar colour, a shadow above. */
	.cta-dock.is-stuck .cta-sign {
		width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0;
		background: var(--section-dark); border-color: var(--section-dark);
		box-shadow: 0 -0.5rem 1.5rem rgba(0, 0, 0, 0.3);
	}
	/* Under the iPhone home indicator, the bar colour carries on to the screen's edge. */
	.cta-dock.is-stuck .cta-sign::after {
		content: ""; position: absolute; left: 0; right: 0; top: 100%; height: env(safe-area-inset-bottom, 0px); background: inherit;
	}
	.cta-dock:not(.is-stuck) .cta-sign .chevron { display: none; }
}
@media (min-width: 900px) {
	.cta-sign .chevron, .cta-dock-end { display: none; }
	.cta-dock.is-signed { display: none; }
}

/* ---------- Honor Roll ----------
   The orange button sits at the right of the Sign card's top row; the dialog lists every school.
   Apricot #fbb26a, with dark text on it (#1c1e26, 9.3:1): it reads as a reward next to the dark blue
   buttons without shouting. On white, orange text and thin marks use the deeper tones: --honor-dark
   (#9a4a06, 6.3:1, for text) and --honor-accent (#c26a10, 3.9:1, for underlines and edges). */
:root {
	--honor: #fbb26a; --honor-hover: #f5a04f; --honor-ink: #1c1e26;
	--honor-dark: #9a4a06; --honor-accent: #c26a10; --honor-tint: #fff4e6; --honor-line: #f7cf9f;
}
.sign-head { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; margin: 0 0 1rem; }
.sign-head .sign-title { flex: 1; margin: 0; }
.button.honor-open {
	display: inline-flex; align-items: center; gap: 0.4rem; width: auto; height: auto; min-height: 2.5rem; padding: 0.35rem 0.9rem;
	font-size: 0.75rem; line-height: 1.2; white-space: nowrap;
	background: var(--honor); border: 0; color: var(--honor-ink);
}
.pane-sign .button.honor-open { color: var(--honor-ink); }
.pane-sign .button.honor-open:hover, .button.honor-open:hover { background: var(--honor-hover); }
.honor-open .icon { width: 1.05rem; height: 1.05rem; fill: currentColor; stroke: none; }

.honor-roll {
	--focus-ring: rgba(76, 92, 150, 0.45);
	width: min(36rem, calc(100% - 1.5rem)); max-width: none; max-height: calc(100dvh - 1.5rem);
	padding: 0; border: 0; border-radius: 8px; background: #fff; color: #474c5e;
	box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
	overflow: hidden; flex-direction: column;
}
.honor-roll[open] { display: flex; }
.honor-roll::backdrop { background: rgba(20, 22, 30, 0.6); }
.honor-roll[open] { animation: honor-in var(--motion) var(--ease); }
@keyframes honor-in { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
.honor-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0.75rem 0.25rem 1.25rem; }
.honor-title { margin: 0; font-size: 1.1rem; color: #1c1e26; }
.honor-close { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; background: none; border: 0; border-radius: 50%; color: #1c1e26; cursor: pointer; box-shadow: none; }
.honor-close:hover { background: #f1f2f8; }
.honor-close .icon { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.honor-body { overflow-y: auto; padding: 0 1.25rem; overscroll-behavior: contain; }
/* Room at the end of the list (the body has no top or bottom padding, so pinned rows sit right at its edges). */
.honor-body::after { content: ""; display: block; height: 1.5rem; }
.honor-intro { margin: 1rem 0; font-size: 1rem; line-height: 1.5; color: #474c5e; }
.honor-status:empty { display: none; }
.honor-status { margin: 1rem 0; color: #474c5e; }
.honor-list { list-style: none; margin: 0; padding: 0; }
.honor-row {
	display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: center; column-gap: 0.75rem;
	margin: 0; padding: 0.7rem 0.5rem; border-bottom: solid 1px #e6e8ef;
}
.honor-rank { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.honor-rank-n { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: #1c1e26; font-variant-numeric: tabular-nums; }
.honor-tied { margin-top: 0.2rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6b7188; }
.honor-main { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; min-width: 0; }
.honor-name { font-weight: 600; line-height: 1.3; color: #1c1e26; }
.honor-recent { font-size: 0.85rem; line-height: 1.3; color: #1d6b44; }
.honor-count { text-align: right; line-height: 1.1; white-space: nowrap; }
.honor-count-n { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--bg); font-variant-numeric: tabular-nums; }
.honor-count-label { display: block; font-size: 0.75rem; color: #6b7188; }
.honor-count.is-under { font-size: 0.85rem; color: #6b7188; }
.honor-subhead { margin: 1.5rem 0 0.25rem; font-size: 0.75rem; letter-spacing: 0.1em; color: #4a4f5c; }
/* Your own schools: tinted orange, with a tag, so they're easy to find. */
.honor-row.is-mine { background: var(--honor-tint); box-shadow: inset 4px 0 0 var(--honor-accent); border-bottom-color: var(--honor-line); }
/* …and they stay in view while scrolling: stuck to the top or bottom edge (offsets set in honor-roll.js).
   The lists step aside (display: contents) so a row can stick anywhere in the scrolling area. */
.honor-body .honor-list:not([hidden]) { display: contents; }
.honor-row.is-mine { position: sticky; z-index: 1; border-top: solid 1px var(--honor-line); }
.honor-mine { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--honor); color: var(--honor-ink); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; }
@media (prefers-reduced-motion: reduce) { .honor-roll[open] { animation: none; } }

/* Step 2 for someone not connected to a school: the reason to share reads as a sentence, not a heading. */
.thanks .share-cluster-title.is-message { font-family: var(--font-body); font-size: 1.05rem; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; }

/* Thank-you step: [Honor Roll] "Lane is #3" / "Look out, Rosa Parks is close behind!" between the
   heading and the share box. The card's top Honor Roll button gives way to this one. */
.honor-standing-text { display: flex; flex-direction: column; gap: 0.15rem; margin: 0; min-width: 0; line-height: 1.35; }
.honor-badge-text { font-size: 1.1rem; font-weight: 700; color: #1c1e26; }
.honor-badge-text:empty { display: none; }
.honor-badge-more { font-size: 0.95rem; font-weight: 600; color: var(--honor-dark); }
.honor-badge-more[hidden] { display: none; }

/* Share row with a share sheet: the Share button fills the row, Copy link is a square icon button. */
.share.is-compact { grid-template-columns: minmax(0, 1fr) auto; }
.share.is-compact [data-share="copy"] { width: 3.25rem; padding: 0; justify-content: center; }
.share.is-compact [data-share="copy"] .icon { margin: 0; }
.share.is-compact [data-share="copy"] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Thank-you step's school block: "SCHOOL AFFILIATION ✎" on one line, then each school on its own line. */
.school-card-head { display: flex; align-items: center; gap: 0.25rem; }
.school-card-head .school-card-label { margin: 0; }
.pane-sign .school-card-change.is-small { width: 2.25rem; height: 2.25rem; margin: -0.5rem 0; }
.school-card-change.is-small .icon { width: 1rem; height: 1rem; }
.school-card-names { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.2rem; }
.school-card-names .school-card-name { white-space: normal; line-height: 1.35; }

/* Honor Roll tabs: Schools and People. */
.honor-tabs { display: flex; gap: 0.25rem; padding: 0 1.25rem; border-bottom: solid 1px #d9dce6; }
.honor-tab {
	flex: 1; min-height: 2.75rem; padding: 0.5rem 0.75rem; margin-bottom: -1px; background: none; border: 0; border-bottom: solid 3px transparent;
	font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7188; cursor: pointer; box-shadow: none;
}
.honor-tab:hover { color: #1c1e26; }
.honor-tab[aria-selected="true"] { color: #1c1e26; border-bottom-color: var(--honor-accent); }
.honor-panel[hidden] { display: none; }
.honor-person-schools { font-size: 0.85rem; line-height: 1.35; color: #474c5e; }
.honor-empty { margin: 1rem 0; color: #474c5e; }

/* "Add me to my school Honor Roll" arriving after a share: a slow fade and rise. */
@keyframes arrive { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
.share-box.is-arriving { animation: arrive 0.6s var(--ease) both; }

/* A switch turned on: the box shows a check, which pops in with a burst of sparks while the box glows. */
.toggle-on:not([hidden]) { justify-content: flex-start; }
.toggle-on .toggle-on-text { flex: 1; }
.toggle-check {
	position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--honor);
}
.toggle-check svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: var(--honor-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.toggle-check::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; opacity: 0;
	box-shadow: 0 -20px 0 var(--honor), 14px -14px 0 #f2a541, 20px 0 0 var(--honor), 14px 14px 0 #f2a541,
		0 20px 0 var(--honor), -14px 14px 0 #f2a541, -20px 0 0 var(--honor), -14px -14px 0 #f2a541;
}
@keyframes check-pop { 0% { transform: scale(0) rotate(-45deg); } 60% { transform: scale(1.25) rotate(8deg); } 100% { transform: none; } }
@keyframes check-draw { from { stroke-dashoffset: 20; } to { stroke-dashoffset: 0; } }
@keyframes check-burst { 0% { opacity: 1; transform: scale(0.3); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes box-glow { 0% { border-color: var(--honor); box-shadow: 0 0 0 0 rgba(194, 106, 16, 0.35); } 40% { box-shadow: 0 0 0 8px rgba(194, 106, 16, 0); } 100% { border-color: var(--line); box-shadow: none; } }
.share-box.is-celebrating { animation: box-glow 0.9s ease-out; }
.is-celebrating .toggle-check { animation: check-pop 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
.is-celebrating .toggle-check path { stroke-dasharray: 20; animation: check-draw 0.3s 0.25s ease-out both; }
.is-celebrating .toggle-check::after { animation: check-burst 0.6s 0.2s ease-out; }
.is-celebrating .toggle-on-text { animation: reveal-up 0.4s 0.1s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .share-box.is-arriving, .share-box.is-celebrating, .is-celebrating * , .is-celebrating .toggle-check::after { animation: none !important; } }
.school-tally-you.fade-in { animation-duration: 0.6s; }

/* People tab: a big tie sits under one heading ("Tied for 1st") instead of each row saying "Tied". */
.honor-tie-head {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	margin: 1.25rem 0 0.25rem; padding: 0.75rem 0.85rem; border-radius: 6px;
	background: #fff; border: solid 1px var(--honor-line); color: #1c1e26;
}
.honor-tie-place { display: flex; flex-direction: column; gap: 0.15rem; }
.honor-tie-place strong { font-family: var(--font-display); font-size: 1rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--honor-dark); }
.honor-tie-place span { font-size: 0.85rem; color: #474c5e; }
.honor-tie-head .honor-count-n { color: var(--honor-dark); }
/* The heading stays at the top while you scroll through its group. */
/* On the People tab the header stays at the top while you scroll its group (the Schools tab pins your own schools instead). */
#honor-people .honor-tie-head { position: sticky; top: 0; z-index: 1; }

/* Cancel keeps a full-size tap area without making its row taller than the label, so the search box sits
   exactly where the school box was. */
.pane-sign .school-change-head .link-button { min-height: 0; height: auto; padding: 0.75rem 0; margin: -0.75rem 0; line-height: 1.2; }
/* Preview (?preview=1): a plain bar, in its own color so it isn't mistaken for the designers' demo. */
.demo-banner.is-preview { background: #fde9a8; color: #3d2e00; text-align: center; }

/* "Someone just signed!": the row lights up with a sweep of light, a party pill bounces in, the count
   jumps with a "+1" and a burst of confetti. After 3 seconds it all fades back to the usual line. */
.honor-row.is-just { isolation: isolate; }
.honor-row.is-just:not(.is-mine) { position: relative; }
.honor-row.is-just::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(100deg, #fde3cf 0%, #fde3cf 35%, #fff6d6 50%, #fde3cf 65%, #fde3cf 100%) 0 0 / 300% 100%;
	transition: opacity 0.8s ease;
}
.honor-row.is-just.is-flashing::before { animation: honor-sweep 1.2s ease-out backwards; }
.honor-row.is-just.is-settled::before { opacity: 0; }
@keyframes honor-sweep { from { background-position: 100% 0; opacity: 0; } 20% { opacity: 1; } to { background-position: 0 0; opacity: 1; } }

.honor-recent-swap { display: grid; justify-items: start; }
.honor-recent-swap > * { grid-area: 1 / 1; transition: opacity 0.6s ease, transform 0.6s var(--ease); }
.honor-recent.is-usual { opacity: 0; transform: translateY(0.3rem); }
.honor-recent.is-usual:empty::before { content: "\00a0"; }
.honor-recent.is-just {
	display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.6rem 0.15rem 0.45rem; border-radius: 999px;
	background: var(--honor); color: var(--honor-ink); font-weight: 700; box-shadow: 0 0.2rem 0.6rem rgba(194, 106, 16, 0.35);
}
.honor-recent.is-just::before { content: "🎉"; display: inline-block; }
.is-settled .honor-recent.is-usual { opacity: 1; transform: none; }
.is-settled .honor-recent.is-just { opacity: 0; transform: translateY(-0.3rem) scale(0.9); }
.honor-row.is-flashing .honor-recent.is-just { animation: honor-pill 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) backwards; }
.honor-row.is-flashing .honor-recent.is-just::before { animation: honor-wiggle 0.6s 0.5s ease-in-out 2; }
@keyframes honor-pill { 0% { opacity: 0; transform: scale(0.3) rotate(-6deg); } 60% { opacity: 1; transform: scale(1.12) rotate(2deg); } 100% { opacity: 1; transform: none; } }
@keyframes honor-wiggle { 0%, 100% { transform: none; } 25% { transform: rotate(-18deg) scale(1.2); } 75% { transform: rotate(18deg) scale(1.2); } }

.honor-count { position: relative; }
.honor-plus {
	position: absolute; right: 0; top: -0.2rem; pointer-events: none;
	font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--honor-dark);
	animation: honor-plus 1.6s 0.2s ease-out both;
}
@keyframes honor-plus { 0% { opacity: 0; transform: translateY(0.5rem) scale(0.6); } 20% { opacity: 1; transform: translateY(-0.4rem) scale(1.2); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-1.6rem); } }
@keyframes honor-pop { 0% { transform: scale(1); } 30% { transform: scale(1.45); color: var(--honor-dark); } 100% { transform: scale(1); } }
@keyframes honor-sparks { 0% { opacity: 1; transform: scale(0.3) rotate(0); } 100% { opacity: 0; transform: scale(1.9) rotate(40deg); } }
.honor-row.is-flashing .honor-count-n { display: inline-block; position: relative; transform-origin: center; animation: honor-pop 0.7s cubic-bezier(0.3, 1.4, 0.5, 1); }
.honor-row.is-flashing .honor-count-n::before, .honor-row.is-flashing .honor-count-n::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; opacity: 0; pointer-events: none;
}
.honor-row.is-flashing .honor-count-n::after {
	box-shadow: 0 -24px 0 var(--honor), 17px -17px 0 #f2a541, 24px 0 0 #2f8f5b, 17px 17px 0 #f2a541,
		0 24px 0 var(--honor), -17px 17px 0 #4c5c96, -24px 0 0 #2f8f5b, -17px -17px 0 #f2a541;
	animation: honor-sparks 0.8s 0.1s ease-out;
}
.honor-row.is-flashing .honor-count-n::before {
	width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 1px;
	box-shadow: 9px -30px 0 #4c5c96, 30px -9px 0 var(--honor), 30px 12px 0 #f2a541, 9px 30px 0 #2f8f5b,
		-12px 30px 0 var(--honor), -30px 9px 0 #f2a541, -30px -12px 0 #4c5c96, -9px -30px 0 #2f8f5b;
	animation: honor-sparks 1s 0.25s ease-out;
}
@media (prefers-reduced-motion: reduce) {
	.honor-row.is-just *, .honor-row.is-just::before, .honor-row.is-flashing .honor-count-n::before, .honor-row.is-flashing .honor-count-n::after { animation: none !important; }
	.honor-plus { display: none; }
}

/* The Honor Roll is always (nearly) full height, so it doesn't grow or shrink with the tab or the list. */
.honor-roll { height: calc(100dvh - 3rem); }
.honor-roll .honor-body { flex: 1; }
@media (max-width: 736px) { .honor-roll { height: calc(100dvh - 1.5rem); } }

/* Rows without a rank (under 10, or inside a big tie) keep the rank column empty, so every school and
   person name lines up on the same edge. */
.honor-list-rest .honor-row > .honor-main, .honor-row.is-grouped > .honor-main { grid-column: 2; }

/* Thank-you step's school field uses step 1's header row: label left, Done right. */
.share-cluster .school-change-head .label { margin: 0; }
#share-school-field > .school-change-head { margin-top: 0.75rem; }
.demo-banner .demo-leave { margin: 0.2rem 0 0; font-weight: 600; }
.demo-banner .demo-leave a { color: inherit; border-bottom: solid 1px currentColor; }
.demo-banner .demo-leave a:hover { border-bottom-color: transparent; }


/* ---------- "See who has signed" ----------
   Its own orange block, attached to the bottom of the white Sign block (it cancels the panel's side and
   bottom padding to reach its edges). It opens "Who has signed": the signatures at your school and across
   PPS (big numbers), a chevron, and where your school stands ("[#1] Alameda is #1 on the Honor Roll!"). */
.pane-sign .pane-panel > .who-signed {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title chevron" "counts chevron" "standing standing";
	align-items: center; column-gap: 1rem;
	width: calc(100% + 2rem); max-width: none; height: auto; margin: 2rem -1rem -3rem; padding: 1.25rem 1rem;
	background: var(--honor); color: var(--honor-ink); border: 0; border-radius: 0; box-shadow: none; cursor: pointer;
	font: inherit; line-height: 1.3; letter-spacing: 0; text-transform: none; text-align: left; white-space: normal;
	--focus-ring: rgba(28, 30, 38, 0.55);
}
.pane-sign .pane-panel > .who-signed:hover { background: var(--honor-hover); }
.pane-sign .pane-panel > .who-signed:disabled { cursor: default; opacity: 0.85; }
/* Honor Roll switched off (content/site.json showHonorRoll): "Who has signed" and the counts, nothing to open. */
html[data-honor="off"] [data-honor-only="on"], html:not([data-honor="off"]) [data-honor-only="off"],
html[data-honor="off"] .who-signed > .chevron, html[data-honor="off"] .who-signed-standing, html[data-honor="off"] [data-honor-link] { display: none !important; }
html[data-honor="off"] .pane-sign .pane-panel > .who-signed { column-gap: 0; cursor: default; }
html[data-honor="off"] .pane-sign .pane-panel > .who-signed:hover { background: var(--honor); }
.who-signed-title { grid-area: title; font-family: var(--font-display); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.who-signed-counts { grid-area: counts; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 0.5rem; }
/* No counts to show (yet): no empty row, so the title and the chevron line up. */
.who-signed-counts:not(:has(> :not([hidden]))) { display: none; }
.who-signed-count:not([hidden]) { display: flex; flex-direction: column; }
.who-signed-n { font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; color: inherit; }
.who-signed-label { font-size: 0.95rem; font-weight: 600; }
.who-signed > .chevron { grid-area: chevron; align-self: center; width: 1.75rem; height: 1.75rem; fill: none; stroke: currentColor; stroke-width: 2.25; }
.who-signed-standing:not([hidden]) {
	grid-area: standing; display: flex; align-items: center; gap: 0.6rem;
	margin-top: 0.85rem; padding-top: 0.75rem; border-top: solid 1px rgba(28, 30, 38, 0.25);
	font-size: 1rem; font-weight: 700;
}
/* Names only, before the ranking: the card is a plain block; "Lane Honor Roll ›" under the counts opens Lane's names. */
.pane-sign .pane-panel > .who-signed.is-static { cursor: default; }
.pane-sign .pane-panel > .who-signed.is-static:hover { background: var(--honor); }
.who-signed.is-static > .chevron { display: none; }
.who-signed-link {
	grid-area: standing; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
	width: 100%; height: auto; min-height: 2.75rem; margin-top: 0.85rem; padding: 0.75rem 0 0;
	background: none; border: 0; border-top: solid 1px rgba(28, 30, 38, 0.25); border-radius: 0;
	color: inherit; font: inherit; font-size: 1rem; font-weight: 700; letter-spacing: 0; text-transform: none; text-align: left; cursor: pointer;
}
.who-signed-link:hover { background: none; text-decoration: underline; }
.who-signed-link .chevron { width: 1.75rem; height: 1.75rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2.25; }
.who-signed-rank:not([hidden]) {
	flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; padding: 0.15rem 0.55rem;
	border-radius: 999px; background: var(--honor-ink); color: var(--honor); font-family: var(--font-display); font-weight: 800;
}
@media (min-width: 600px) { .pane-sign .pane-panel > .who-signed { width: calc(100% + 4rem); margin: 2rem -2rem -3rem; padding: 1.25rem 2rem; } }
@media (min-width: 900px) { .pane-sign .pane-panel > .who-signed { margin: 2rem -2rem -2.5rem; } }

/* "Who has signed": "Honor Roll: the top 10" over the first places. */
.honor-subhead-top { margin-top: 0.5rem; color: var(--honor-dark); }

/* The pop-up's list and its foot: Sign the letter, always one tap away. */
.honor-content { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.honor-foot { flex: none; padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom, 0px)); border-top: solid 1px #e6e8ef; }
.honor-foot .button { width: 100%; }
.honor-roll .button.primary { background: var(--bg); border-color: var(--bg); color: #fff; }

/* ---------- DLI map page (/dli-map/) ----------
   Phones first: the scenario switch, the numbers, the map (tall enough to use), then the list of moves.
   From 900px the map and the list sit side by side. Rows are buttons: pressed = highlighted on the map. */
.page.dli { max-width: 74rem; }
.dli-heading { font-size: 1.35rem; line-height: 1.25; margin: 0 0 0.5rem; padding: 0; border: 0; color: #fff; }
.dli-sub { max-width: 44rem; margin: 0 0 1.25rem; color: var(--text-strong); }
.dli-switch { display: inline-flex; border: solid 2px rgba(255, 255, 255, 0.5); border-radius: 6px; overflow: hidden; }
.dli-switch-button {
	height: auto; min-height: 2.75rem; padding: 0 1.1rem; margin: 0; border: 0; border-radius: 0; box-shadow: none;
	background: transparent; color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
}
.dli-switch-button:hover { background: rgba(255, 255, 255, 0.12); }
.dli-switch-button[aria-pressed="true"] { background: #fff; color: var(--bg); }
.dli-switch-button:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.dli-switch-button[aria-pressed="true"]:focus-visible { outline-color: var(--section); }
.dli-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 1.25rem 0; }
@media (min-width: 700px) { .dli-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dli-stat { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; padding: 0.85rem 1rem; background: var(--section); border-radius: 6px; }
.dli-stat-n { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.dli-stat-label { font-size: 0.85rem; line-height: 1.35; color: var(--text-strong); overflow-wrap: anywhere; }
.dli-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (min-width: 900px) { .dli-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.dli-map { height: min(70vh, 38rem); min-height: 22rem; border-radius: 6px; background: #e3e6ef; color: #1c1e26; overflow: hidden; }
.dli-map.is-missing { height: auto; min-height: 0; }
.dli-map-msg { margin: 0; padding: 1.25rem; color: #1c1e26; }
.dli-list-label { margin: 0 0 0.25rem; font-size: 0.85rem; letter-spacing: 0.08em; color: #fff; }
.dli-list-hint { margin: 0 0 0.75rem; font-size: 0.9rem; color: var(--text-strong); }
.dli-list { list-style: none; margin: 0; padding: 0; border-radius: 6px; overflow: hidden; background: var(--section); }
.dli-list li { margin: 0; padding: 0; border-bottom: solid 1px rgba(255, 255, 255, 0.18); }
.dli-list li:last-child { border-bottom: 0; }
.dli-move {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 0.75rem; width: 100%; height: auto; margin: 0; padding: 0.8rem 1rem;
	background: transparent; color: #fff; border: 0; border-radius: 0; box-shadow: none; cursor: pointer; text-align: left;
	font-family: var(--font-body); font-size: 1rem; font-weight: 400; line-height: 1.35; letter-spacing: 0; text-transform: none; white-space: normal;
}
.dli-move:hover { background: var(--section-dark); }
.dli-move[aria-pressed="true"] { background: #fff; color: #1c1e26; }
.dli-move:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.dli-move[aria-pressed="true"]:focus-visible { outline-color: var(--section); }
.dli-move-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.5rem; min-width: 0; }
.dli-move-name { font-weight: 600; overflow-wrap: anywhere; }
.dli-move-miles { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; text-align: right; white-space: nowrap; }
.dli-move-meta { grid-column: 1 / -1; font-size: 0.85rem; color: var(--text-strong); }
.dli-move[aria-pressed="true"] .dli-move-meta { color: #474c5e; }
/* Travel times: an icon and minutes for car, transit, bike and walking, on one wrapping line. */
.dli-times { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; font-size: 0.85rem; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.dli-move[aria-pressed="true"] .dli-times { color: #474c5e; }
.dli-time { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.dli-time .icon { width: 1.05rem; height: 1.05rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dli-tag { flex: none; padding: 0.1rem 0.4rem; border-radius: 4px; color: #fff; font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.dli-notes { max-width: 52rem; margin-top: 2rem; font-size: 0.9rem; line-height: 1.55; color: var(--text-strong); }
.dli-notes p { margin: 0 0 0.75rem; }
.dli-notes strong { color: #fff; }

/* "You're on the Lane Honor Roll": a link to Lane's people in "Who has signed". Dark apricot text (6.3:1 on
   white) with a thick apricot underline. */
.toggle-on-text .toggle-on-link {
	display: inline; width: auto; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none;
	font: inherit; font-weight: 700; line-height: inherit; letter-spacing: 0; text-transform: none; text-align: left; white-space: normal; cursor: pointer;
	color: var(--honor-dark); text-decoration: underline; text-decoration-color: var(--honor); text-decoration-thickness: 3px; text-underline-offset: 0.2em;
}
.toggle-on-text .toggle-on-link:hover { color: #1c1e26; text-decoration-color: var(--honor-accent); }

/* "Show my name on the Lane Honor Roll" inside "Who has signed": the same box and switch as on the
   thank-you step. */
.honor-roll .share-box.honor-showname { margin: 0 0 1rem; padding: 1rem 1.15rem; border: solid 2px #d9dce6; border-radius: 5px; }

/* ---------- /share/: where the emails' Text it, WhatsApp and Email it buttons go ----------
   The emails' cards on the navy page: white cards, the blue "outside the school" card, apricot heading. */
.email-page .page { max-width: 40rem; }
.email-heading { margin: 0.5rem 0 1rem; font-family: var(--font-display); font-size: clamp(1.9rem, 7vw, 2.75rem); font-weight: 900; line-height: 1.02; letter-spacing: 0.02em; text-transform: uppercase; color: var(--honor, #fbb26a); }
.email-note { margin: 0 0 1.25rem; color: #fff; font-size: 1rem; line-height: 1.5; }
.email-card { margin: 0 0 1.25rem; padding: 1.25rem; border-radius: 8px; background: #fff; color: #1c1e26; }
.email-card.share-box.leaderboard { border: 0; padding: 1.15rem 1.25rem; }
.email-card-blue { background: #4c5c96; color: #fff; }
.email-card p { margin: 0 0 0.9rem; line-height: 1.5; }
.email-label { margin: 0 0 0.75rem !important; font-family: var(--font-display); font-size: 0.75rem !important; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: inherit !important; }
.email-ask { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.email-buttons { display: grid; gap: 0.75rem; }
@media (min-width: 40rem) { .email-buttons { grid-template-columns: repeat(3, 1fr); } }
.email-page .email-card .button.primary { background: #2e3141; border-color: #2e3141; color: #fff; font-weight: 900; font-size: 0.9rem; }
.email-page .email-card .button.primary:hover { background: #3d4157; }
.email-icon-buttons { display: flex; gap: 0.6rem; }
.email-icon-buttons .icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 1; max-width: 4.5rem; min-height: 3rem; border: solid 2px #fff; border-radius: 6px; color: #fff; }
.email-icon-buttons .icon-button:hover { background: rgba(255, 255, 255, 0.12); }
.email-icon-buttons .icon { width: 1.5rem; height: 1.5rem; }
.email-page .icon-fill { fill: currentColor; stroke: none; }
.email-back { margin: 0.5rem 0 0; }
.email-back a { color: #fff; }
/* /share/: the message as it will be sent, and Open / Copy. */
.share-page .email-card { margin-top: 0.5rem; }
.sh-status { font-size: 1rem; }
.sh-message { white-space: pre-wrap; overflow-wrap: anywhere; padding: 0.9rem 1rem; border-radius: 6px; background: #f4f1ec; font-size: 0.95rem; }
.sh-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1rem; }
.share-page .email-card .button:not(.primary) { color: #2e3141; border-color: #c9ccd8; }
.share-page .email-back a { color: #2e3141; }
.page .email-heading { margin: 0.5rem 0 1rem; padding: 0; border: 0; font-size: clamp(1.9rem, 7vw, 2.75rem); color: #fbb26a; }
.page .email-label { padding: 0; border: 0; }
.email-card .email-note { color: #1c1e26; font-weight: 600; }
.email-card-blue p { font-size: 1rem; }

/* The letter page opened from a confirmation email: "Email confirmed: … · Not me?" under the masthead. */
.email-banner:not([hidden]) { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 2rem; background: #fff4e6; color: #1c1e26; }
@media (max-width: 899px) { .email-banner:not([hidden]) { padding: 0.75rem 1rem; } }
.email-banner p { margin: 0; line-height: 1.45; overflow-wrap: anywhere; }
.email-banner-check { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: #fbb26a; }
.email-banner-check svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: #1c1e26; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
body .email-banner button.email-banner-notme {
	display: inline; width: auto; min-height: 0; height: auto; margin: 0; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: left;
	font-family: var(--font-body); font-size: inherit; font-weight: 600; line-height: inherit; letter-spacing: 0; text-transform: none; text-decoration: underline;
}

/* "Who we are", under the letter and its Sign button: about the organizers, set apart from the letter. */
.who-we-are { max-width: 38rem; margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: solid 1px rgba(255, 255, 255, 0.25); font-size: 0.95rem; line-height: 1.6; color: var(--text-strong); }
.who-we-are p { margin: 0; }
.who-we-are strong { color: #fff; }
@media (max-width: 899px) { .pane-letter .who-we-are { border-top-color: var(--line); } .pane-letter .who-we-are strong { color: var(--bg); } }

/* ---------- Planning call page (/planning-call-for-12-2-legislative-days/, unlisted) ----------
   The letter page's layout and panels (letter-layout, pane-letter, pane-sign): "About the call" on the left
   (blue on wide screens, white on phones), the form on white on the right. Chosen dates turn green, like a
   Doodle "yes": #1d6b44 on #e7f4ec is 6.0:1. District tags: PPS #8a2433 on #fbe9eb 8.0:1, Salem-Keizer
   #5e1a3a on #f1e6ee 11:1. */
.planning-page .pane-sign .pane-panel { --yes: #1d6b44; --yes-bg: #e7f4ec; --ink: #1c1e26; }
/* "Planning call for Legislative Committee Days": the left side's heading, a little larger than the form's title. */
.page .planning-heading, .planning-heading { margin: 0 0 1.25rem; font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.02em; text-transform: none; color: #fff; text-wrap: balance; }
@media (min-width: 900px) { .planning-heading { font-size: 1.5rem; } }
@media (max-width: 899px) { .planning-heading { color: #1c1e26; } }
.planning-about h3 { margin: 2rem 0 0.75rem; font-size: 0.95rem; color: #fff; }
.planning-about ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.planning-about li { margin: 0 0 0.5rem; padding-left: 0.25rem; }
@media (max-width: 899px) {
	.planning-about h3 { color: #1c1e26; }
	/* On white, the link keeps a visible underline. */
	.pane-letter .planning-about a { border-bottom: dotted 1px currentColor; }
}
/* The form's title shows on phones too (the petition's title is for wide screens only). */
.planning-page .sign-title { display: block; font-size: 1.1rem; margin: 0; color: var(--ink); }
.planning-page .sign-title[hidden] { display: none; }
.poll-form fieldset { margin: 0 0 1.6rem; padding: 0; border: 0; min-width: 0; }
.poll-form fieldset legend { margin-bottom: 0.5rem; }

/* The two dates: a checkbox beside the date and time, the other district events that day under it.
   A click anywhere on a date ticks it. */
.call-dates { display: grid; gap: 0.75rem; }
.call-date {
	position: relative; display: grid; grid-template-columns: 1.75rem 1fr; column-gap: 0.75rem; align-items: start;
	padding: 0.75rem 0.85rem 0.85rem; border: solid 2px var(--line); border-radius: 6px; background: #fff; cursor: pointer;
	transition: border-color var(--motion), background-color var(--motion);
}
.call-date:hover { border-color: #a9aec0; }
.call-date.is-checked { border-color: var(--yes); background: var(--yes-bg); }
.call-date > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.call-date-label { display: contents !important; cursor: pointer; }
.call-date-box {
	grid-row: 1 / span 2; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; margin-top: 0.05rem;
	border: solid 2px var(--field-border); border-radius: 4px; background: #fff;
}
.call-date-box svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.call-date.is-checked .call-date-box { background: var(--yes); border-color: var(--yes); }
.call-date > input:focus-visible + .call-date-label .call-date-box { box-shadow: 0 0 0 3px var(--focus-ring); border-color: var(--bg); }
.poll-form .call-date-name {
	grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.5rem; min-height: 1.75rem;
	font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--ink);
}
.call-date-time { font-weight: 600; color: var(--yes); }
.call-date-events { grid-column: 2; margin-top: 0.4rem; font-size: 0.875rem; line-height: 1.4; color: #5a6074; }
/* "District events": a small label, like "School affiliation" on the school block. */
.call-date-events-label { margin: 0; font-family: var(--font-display); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #4a4f5c; }
:lang(zh-Hans) .call-date-events-label, :lang(zh-Hant) .call-date-events-label { letter-spacing: 0.02em; }
.call-date-none { margin: 0.15rem 0 0; }
.call-date-events ul { display: grid; gap: 0.2rem; margin: 0.2rem 0 0; padding: 0; list-style: none; }
.ev { color: var(--ink); overflow-wrap: break-word; hyphens: auto; }
.ev-tag { display: inline-block; padding: 0 0.3rem; border-radius: 3px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.ev-pps .ev-tag { background: #fbe9eb; color: #8a2433; }
.ev-salem-keizer .ev-tag { background: #f1e6ee; color: #5e1a3a; }
.ev-time { color: #5a6074; white-space: nowrap; }

/* School affiliation: once picked, the petition's school block (label, pencil, the names); the pencil brings
   back the search with chips, "Add another school" and Done. */
.poll-form .share-school { margin: 0; }
.poll-form #poll-school-field .school-change-head .label { margin-bottom: 0.5rem; }
/* The invited school on the form (before sending): the names inside the letter's step 1 box. */
.pre-school-names { flex: 1; min-width: 0; margin: 0; padding: 0.6rem 0; list-style: none; }
.pre-school-names .school-card-name { font-weight: 400; font-size: 1.05rem; line-height: 1.5; color: #1c1e26; white-space: normal; }
.pre-school .school-none { margin: 0.5rem 0 0; }
/* Missing answers: the fields outlined in red, and one sentence above the button (a link to the first one). */
.call-date.is-invalid { border-color: var(--error-strong); box-shadow: inset 4px 0 0 var(--error-strong); }
.poll-error { margin: 0 0 1rem; font-weight: 600; font-size: 0.95rem; line-height: 1.5; }
.poll-error a { color: var(--error-strong); text-decoration: underline; text-underline-offset: 3px; border: 0; }
.poll-add-comment { padding: 0; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 1rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pane-sign .poll-add-comment { color: var(--bg); }

/* Thank you, and the link to the home page's Salem card. */
.poll-done > p { margin: 0 0 1rem; }
/* "Spread the word about December 2": the letter's share cluster, with a sentence under its title. */
.poll-share { margin-top: 1.5rem; }
.pane-sign .thanks .poll-share .share-cluster-title { margin-bottom: 0.5rem; }
.poll-invite-text { margin: 0 0 1rem; }
.salem-note { margin: 0 0 1rem; }
.poll-change { margin: 1.25rem 0 0; }
/* Wide screens: the form is right beside "About the call", so no button to reach it. */
@media (min-width: 900px) { .planning-page .letter-cta { display: none; } }
