:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #63615d;
  --paper: #fbfaf7;
  --line: #ded9cf;
  --accent: #b3262f;
  --accent-dark: #841923;
  --field: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
}

.skip-link:focus {
  left: 1rem;
  z-index: 10;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.94);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-auth-form,
.nav-auth-button,
.nav-auth-form button {
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.nav-auth-button,
.nav-auth-form button,
.text-button {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.nav-auth-button:hover,
.nav-auth-button:focus-visible,
.nav-auth-form button:hover,
.nav-auth-form button:focus-visible,
.text-button:hover,
.text-button:focus-visible {
  color: var(--accent-dark);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.round-status-rail {
  border-bottom: 1px solid var(--line);
  background: #f3f0e9;
}

.round-status-rail-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7ch auto;
  align-items: center;
  gap: 0.65rem;
  width: min(1120px, calc(100% - 2rem));
  min-height: 2.4rem;
  margin: 0 auto;
}

.round-status-label,
.round-status-value {
  margin: 0;
  white-space: nowrap;
}

.round-status-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.week-status-label-compact {
  display: none;
}

@media (max-width: 540px) {
  .week-status-label-full {
    display: none;
  }

  .week-status-label-compact {
    display: inline;
  }
}

.round-status-value {
  width: 7ch;
  font-size: 0.9rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.round-status-help {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
}

.round-status-help:hover,
.round-status-help:focus-visible {
  color: var(--accent-dark);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.round-status-rail-due .round-status-value {
  color: #8a5700;
}

.round-help-dialog .bid-dialog-header {
  margin-bottom: 1.1rem;
}

.round-help-dialog .bid-dialog-shell > p {
  max-width: 35rem;
  margin: 0;
  color: var(--muted);
}

.round-help-dialog-action {
  margin-top: 1.5rem;
}

.round-help-dialog .dialog-close {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--line);
  padding: 0;
  background: var(--field);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.round-help-dialog .dialog-close:hover,
.round-help-dialog .dialog-close:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero {
  min-height: 58vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(23, 23, 23, 0.88), rgba(23, 23, 23, 0.44)),
    repeating-linear-gradient(0deg, #1c1c1b 0, #1c1c1b 31px, #25231f 32px);
  color: white;
}

.hero-copy {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffb84d;
}

h1,
h2,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.5rem, 6rem, 6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
}

.hero p:last-child {
  max-width: 560px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Landing page: editorial copy, with the live board as the visual hook. */
.landing-hero {
  overflow: hidden;
  border-bottom: 1px solid #302f2b;
  background:
    radial-gradient(circle at 78% 18%, rgba(179, 38, 47, 0.2), transparent 32%),
    linear-gradient(115deg, #151515 0%, #201f1d 52%, #111111 100%);
  color: #fff;
}

.landing-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  width: min(1200px, calc(100% - 2rem));
  min-height: min(720px, 78vh);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6.5rem) 0;
}

.landing-hero-copy {
  max-width: 590px;
  padding: 1rem 0;
}

.landing-hero-copy .eyebrow {
  max-width: 23rem;
  margin-bottom: 1.25rem;
  color: #ffb84d;
  letter-spacing: 0.04em;
}

.landing-hero-copy h1 {
  max-width: 620px;
  font-size: clamp(3.2rem, 6.4vw, 6.8rem);
  letter-spacing: -0.045em;
  line-height: 0.88;
  text-transform: none;
}

.landing-hero-copy h1 em {
  color: #ffb84d;
  font-style: normal;
}

.landing-hero-intro {
  max-width: 34rem;
  margin: 1.75rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1rem, 1.45vw, 1.3rem);
  line-height: 1.45;
}

.landing-hero-copy .hero-actions {
  margin-top: 2rem;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
  color: #fff;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.landing-how-link {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 0.2em;
}

.landing-how-link:hover,
.landing-how-link:focus-visible {
  color: #ffb84d;
  text-decoration: underline;
}

.landing-featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 470px;
  max-width: 550px;
  margin-left: auto;
  border: 1px solid var(--board-accent, #ffb84d);
  border-top: 9px solid var(--board-accent, #ffb84d);
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #f7f3eb;
  color: var(--ink);
  box-shadow: 18px 22px 0 rgba(0, 0, 0, 0.2);
}

.landing-card-topline,
.landing-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.landing-card-kicker,
.landing-card-status,
.landing-card-message-label {
  margin: 0;
  color: var(--board-accent, var(--muted));
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-card-status {
  border: 1px solid var(--board-accent, #c9c2b7);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  color: var(--board-accent, var(--accent-dark));
  white-space: nowrap;
}

.landing-card-heading {
  align-items: end;
  margin-top: 2.75rem;
}

.landing-card-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.landing-card-board-link {
  color: inherit;
  text-decoration: none;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}

.landing-card-board-link:hover,
.landing-card-board-link:focus-visible {
  color: var(--board-accent, var(--accent-dark));
  text-decoration: underline;
}

.landing-card-heading p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.landing-card-price {
  flex: 0 0 auto;
  margin: 0 !important;
  text-align: right;
}

.landing-card-price span {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-card-price strong {
  display: block;
  color: var(--board-accent, var(--accent-dark));
  font-size: 1.65rem;
  line-height: 1;
}

.landing-card-message-wrap {
  margin: 2rem 0;
  border-left: 8px solid var(--board-accent, #ffb84d);
  border-radius: 8px;
  padding: 1rem 1.1rem 1.2rem;
  background: #171717;
  color: #fff;
}

.landing-card-message-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.78);
}

.landing-card-message-label::before {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--board-accent, #ffb84d);
  content: "";
}

.landing-card-message {
  margin: 0.7rem 0 0;
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.95;
  text-transform: uppercase;
}

.landing-card-message-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.landing-card-message-link:hover .landing-card-message,
.landing-card-message-link:focus-visible .landing-card-message {
  color: var(--board-accent, #fff);
}

.landing-card-message-link:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--board-accent, #ffb84d);
  outline-offset: 4px;
}

.landing-card-cta {
  width: 100%;
  min-height: 3.35rem;
  border-radius: 6px;
  font-size: 1.05rem;
}

.landing-featured-card .landing-card-cta.button-primary {
  background: var(--board-accent, var(--accent));
}

.landing-featured-card .landing-card-cta.button-primary:hover,
.landing-featured-card .landing-card-cta.button-primary:focus-visible {
  border-color: var(--board-accent, var(--accent));
  background: #171717;
  box-shadow: inset 0 -4px 0 var(--board-accent, var(--accent));
}

.landing-card-hint {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  text-align: center;
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h1,
.section-heading h2 {
  margin-bottom: 0;
}

.section-heading-stack {
  align-items: start;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.board-card {
  border: 1px solid var(--line);
  border-top: 6px solid var(--accent);
  border-radius: 8px;
  padding: 1rem;
  background: var(--field);
}

.board-card-link {
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.board-card-link:hover,
.board-card-link:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 10px 0 rgba(179, 38, 47, 0.12);
  outline: none;
  transform: translateY(-3px);
}

.board-card-large {
  max-width: 620px;
}

.board-directory-grid {
  align-items: start;
}

.board-directory-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 0;
}

.board-directory-card:hover,
.board-directory-card:focus-visible {
  border-color: var(--board-accent);
  box-shadow: 0 10px 0 rgba(22, 22, 22, 0.12);
}

.board-directory-card:active {
  box-shadow: 0 4px 0 rgba(22, 22, 22, 0.12);
  transform: translateY(1px);
}

.board-card-school {
  padding: 0.8rem 1rem 0.75rem;
  background: var(--board-accent);
}

.board-directory-card .school-name {
  margin: 0;
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.board-card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.board-directory-card .board-message {
  min-height: 0;
}

.board-directory-card .bid-line {
  margin: auto 0 0;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.school-name {
  margin: 0 0 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.board-message {
  min-height: 4.25rem;
  margin: 0;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
}

.bid-line,
.muted {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
}

.button-secondary {
  border-color: var(--line);
  background: var(--field);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--accent);
}

.text-link {
  color: var(--accent-dark);
  font-weight: 800;
}

.board-stage {
  border-bottom: 1px solid var(--line);
  background: #1c1c1b;
  color: #fff;
}

.school-board-page {
  --school-accent: var(--accent);
}

.school-board-page .board-stage {
  border-top: 12px solid var(--school-accent);
}

.board-stage-inner {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
}

.back-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.board-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  padding-bottom: 1.25rem;
}

.board-heading .eyebrow,
.takeover-bar .eyebrow,
.bid-dialog .eyebrow {
  color: #ffb84d;
}

.school-board-page .board-heading .eyebrow,
.school-board-page .takeover-bar .eyebrow,
.school-board-page .bid-dialog .eyebrow {
  border-left: 4px solid var(--school-accent);
  padding-left: 0.5rem;
  color: #fff;
}

.school-board-page .bid-dialog .eyebrow {
  color: var(--ink);
}

.board-heading .text-link {
  color: #fff;
}

.board-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 4px;
  padding: 0.45rem 0.75rem;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
}

.share-button:hover,
.share-button:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.share-button-icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.share-status {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
}

.live-board {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-top: 7px solid #ffb84d;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #fbfaf7;
  color: var(--ink);
}

.school-board-page .live-board {
  border-color: var(--school-accent);
  border-top-width: 10px;
}

.live-board-topline,
.live-board-footer,
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.live-board-topline {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.board-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #21613b;
}

.board-status span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
}

.board-status-paused {
  color: var(--accent-dark);
}

.takeover-confirmation {
  margin-bottom: 1rem;
  border-left: 5px solid #78c091;
  padding: 0.8rem 1rem;
  background: #e8f5ec;
  color: #18512f;
  font-weight: 800;
}

.takeover-confirmation-pending {
  border-left-color: #b7791f;
  background: #fff5dc;
  color: #6d4300;
}

.current-message-panel {
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 1rem 0 2.25rem;
  border: 1px solid var(--school-accent);
  border-left-width: 12px;
  padding: 1rem 1.25rem 1.25rem;
  background: #1c1c1b;
  color: #fff;
}

.current-message-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.current-message-label span {
  width: 0.6rem;
  height: 0.6rem;
  background: var(--school-accent);
}

.live-board-message {
  min-height: 6rem;
  display: flex;
  align-items: center;
  margin: 1rem 0 0;
  color: #fff;
  font-size: clamp(2.5rem, 4rem, 4rem);
}

.live-board-footer {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.live-board-footer p {
  margin: 0;
}

.live-board-footer span {
  color: var(--muted);
}

.pending-challenge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1rem;
  border: 1px solid #e0b764;
  border-left: 5px solid #b7791f;
  padding: 1rem 1.1rem;
  background: #fff8e7;
}

.pending-challenge .eyebrow {
  margin-bottom: 0.3rem;
  color: #7a4b00;
}

.pending-challenge p {
  margin: 0;
}

.pending-challenge .price-lockup strong {
  color: #7a4b00;
}

.price-lockup {
  text-align: right;
}

.price-lockup strong {
  display: block;
  color: var(--accent-dark);
  font-size: 1.5rem;
}

.school-board-page .price-lockup strong,
.school-board-page .takeover-row-amount {
  color: var(--school-accent);
}

.takeover-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.takeover-bar h2 {
  margin-bottom: 0.5rem;
  color: #fff;
}

.takeover-bar p:last-child {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.takeover-button {
  flex: 0 0 auto;
  gap: 0.65rem;
  cursor: pointer;
}

.takeover-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--school-accent);
  color: #fff;
}

.takeover-cta .eyebrow {
  margin-bottom: 0.35rem;
  color: #fff;
}

.takeover-cta-copy {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.school-board-page .takeover-cta .takeover-button {
  min-width: 17rem;
  min-height: 4.5rem;
  border-color: #fff;
  background: #fff;
  color: var(--ink);
  font-size: 1.15rem;
  box-shadow: 5px 5px 0 rgba(23, 23, 23, 0.36);
}

.school-board-page .takeover-cta .takeover-button:hover,
.school-board-page .takeover-cta .takeover-button:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: 5px 5px 0 rgba(255, 255, 255, 0.34);
}

.school-board-page .takeover-cta .takeover-button span {
  border-left-color: rgba(23, 23, 23, 0.35);
}

.school-board-page .takeover-cta .takeover-button:hover span,
.school-board-page .takeover-cta .takeover-button:focus-visible span {
  border-left-color: rgba(255, 255, 255, 0.5);
}

.school-board-page .takeover-button,
.school-board-page .bid-submit {
  border-color: var(--school-accent);
  background: var(--school-accent);
}

.school-board-page .takeover-button:hover,
.school-board-page .takeover-button:focus-visible,
.school-board-page .bid-submit:hover,
.school-board-page .bid-submit:focus-visible {
  background: #171717;
  border-color: var(--school-accent);
  box-shadow: inset 0 -4px 0 var(--school-accent);
}

.school-board-page .bid-submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.takeover-button span {
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  padding-left: 0.65rem;
}

.bid-dialog {
  width: min(680px, calc(100% - 1.5rem));
  max-height: min(860px, calc(100% - 1.5rem));
  overflow: auto;
  border: 0;
  padding: 0;
  background: transparent;
}

.bid-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
}

.bid-dialog-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--paper);
  color: var(--ink);
}

.bid-dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.bid-dialog-header h2 {
  margin-bottom: 0;
  font-size: 1.75rem;
}

.icon-button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--field);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--accent);
}

.bid-form {
  display: grid;
  gap: 1.5rem;
}

.bid-form[hidden] {
  display: none !important;
}

.form-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-fieldset legend,
.form-field label {
  font-weight: 800;
}

.form-fieldset legend {
  margin-bottom: 0.7rem;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--field);
}

.segmented-control label {
  position: relative;
  display: grid;
  min-height: 3rem;
  place-items: center;
  border-right: 1px solid var(--line);
  cursor: pointer;
  font-weight: 800;
  text-align: center;
}

.segmented-control label:last-child {
  border-right: 0;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
}

.segmented-control input:checked + span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: var(--ink);
  color: #fff;
}

.segmented-control input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.form-field {
  display: grid;
  gap: 0.7rem;
}

.field-label-row span,
.field-hint,
.preview-notice {
  color: var(--muted);
  font-size: 0.88rem;
}

.currency-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--ink);
  background: var(--field);
}

.currency-input span {
  padding-left: 1rem;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 800;
}

.currency-input input,
.form-field textarea {
  width: 100%;
  border: 0;
  background: var(--field);
  color: var(--ink);
  font: inherit;
}

.form-field > input,
.form-field > select {
  min-height: 3rem;
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  padding: 0.75rem 0.8rem;
}

.school-picker {
  position: relative;
}

.school-picker-native {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.school-picker-trigger {
  display: flex;
  min-height: 3.25rem;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.75rem 0.85rem;
  background: var(--field);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.school-picker-trigger:focus-visible,
.school-picker-trigger[aria-expanded="true"] {
  outline: 3px solid rgba(23, 23, 23, 0.18);
  outline-offset: -3px;
}

.school-picker-chevron {
  width: 0.65rem;
  height: 0.65rem;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.15rem);
  transition: transform 150ms ease;
}

.school-picker-trigger[aria-expanded="true"] .school-picker-chevron {
  transform: rotate(225deg) translate(-0.1rem, -0.1rem);
}

.school-picker-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  z-index: 5;
  width: 100%;
  max-height: 15rem;
  overflow-y: auto;
  border: 1px solid var(--ink);
  background: var(--field);
  box-shadow: 0.35rem 0.35rem 0 var(--ink);
}

.school-picker-menu[hidden] {
  display: none;
}

.school-picker-option {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0.85rem;
  background: var(--field);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.school-picker-option:last-child {
  border-bottom: 0;
}

.school-picker-option:hover,
.school-picker-option:focus-visible,
.school-picker-option[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
}

.currency-input input {
  padding: 0.9rem 1rem 0.9rem 0.35rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.form-field textarea {
  min-height: 7rem;
  border: 1px solid var(--ink);
  padding: 0.8rem 0.9rem;
  resize: vertical;
}

.currency-input input:focus,
.form-field textarea:focus,
.form-field > input:focus,
.form-field > select:focus {
  outline: 3px solid rgba(23, 23, 23, 0.18);
  outline-offset: -3px;
}

.quick-bids {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-bids button {
  min-width: 3.75rem;
  min-height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--field);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.quick-bids button:hover,
.quick-bids button:focus-visible {
  border-color: var(--accent);
}

.field-hint,
.preview-notice {
  margin: 0;
}

.stripe-checkout-panel {
  margin-top: 1rem;
}

.stripe-checkout-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stripe-checkout-header h3 {
  margin: 0;
}

[data-stripe-checkout-mount] {
  min-height: 24rem;
}

.stripe-checkout-status {
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.55rem;
  border-top: 6px solid var(--school-accent);
  padding: clamp(2rem, 6vw, 3.5rem);
  background: #fbfaf7;
  text-align: left;
}

.stripe-checkout-status-marker {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  margin-bottom: 0.85rem;
  border: 3px solid var(--school-accent);
  border-top-color: transparent;
  border-radius: 50%;
  color: var(--school-accent);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  animation: stripe-status-spin 900ms linear infinite;
}

.stripe-checkout-status .eyebrow {
  margin: 0;
  color: var(--school-accent);
}

.stripe-checkout-status h4 {
  max-width: 28rem;
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.05;
}

.stripe-checkout-status p:not(.eyebrow) {
  max-width: 32rem;
  margin: 0.35rem 0 0;
  color: #66625d;
  font-size: 1.05rem;
}

.stripe-checkout-status.is-error {
  border-top-color: var(--accent);
}

.stripe-checkout-status.is-error .stripe-checkout-status-marker {
  border: 0;
  background: var(--accent);
  color: #fff;
  animation: none;
}

@keyframes stripe-status-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stripe-checkout-status-marker {
    animation: none;
  }
}

.stripe-checkout-status.is-error .eyebrow {
  color: var(--accent);
}

.stripe-checkout-status.is-error {
  border: 1px solid #d9d4ca;
  border-top: 6px solid var(--accent);
}

.takeover-success {
  animation: takeover-success-enter 240ms ease-out;
}

.takeover-success-header,
.takeover-success-heading {
  display: flex;
  align-items: start;
  gap: 1rem;
}

.takeover-success-header {
  justify-content: space-between;
}

.takeover-success-check {
  display: grid;
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 4px solid #2f8f50;
  border-radius: 50%;
  background: #e5f4e9;
  color: #216c3b;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.takeover-success-header h3 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
}

.takeover-success-copy {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.takeover-success-message {
  margin: 1.35rem 0;
  border: 1px solid var(--school-accent);
  border-left-width: 10px;
  padding: 1.15rem 1.25rem 1.25rem;
  background: #1c1c1b;
  color: #fff;
}

.takeover-success-message-text {
  margin: 1.25rem 0 1.5rem;
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.takeover-success-message-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 750;
}

.takeover-success-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7rem, auto);
  gap: 0.75rem;
}

.takeover-success-actions form {
  display: contents;
}

.takeover-success-actions .button {
  width: 100%;
}

.takeover-success-trust {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@keyframes takeover-success-enter {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bid-submit {
  width: 100%;
  cursor: pointer;
  font: inherit;
}

.bid-preview {
  margin-top: 1.25rem;
}

.bid-dialog-shell:has(.bid-confirmation-step) > .bid-dialog-header,
.bid-dialog-shell:has(.bid-confirmation-step) > .bid-form,
.bid-dialog-shell:has(.stripe-checkout-panel) > .bid-dialog-header,
.bid-dialog-shell:has(.stripe-checkout-panel) > .bid-form {
  display: none;
}

.bid-preview:has(.bid-confirmation-step),
.bid-preview:has(.stripe-checkout-panel) {
  margin: 0;
  animation: bid-confirmation-enter 220ms ease-out;
}

.bid-confirmation,
.stripe-checkout-panel {
  padding: 0;
}

.bid-preview:has(.stripe-checkout-panel) .stripe-checkout-panel {
  margin-top: 0;
}

.bid-confirmation-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.bid-confirmation-header h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 1.8rem);
}

.bid-confirmation-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.text-button {
  border: 0;
  padding: 0.65rem 0.25rem;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.text-button:hover,
.text-button:focus-visible {
  text-decoration: underline;
}

.bid-confirmation-summary {
  border: 1px solid var(--line);
  border-top: 5px solid var(--school-accent, var(--accent));
  background: var(--field);
}

.bid-confirmation-summary-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0.85rem 1rem 0.75rem;
}

.bid-confirmation-summary-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.bid-confirmation-summary-list dt,
.bid-confirmation-message > span {
  color: var(--muted);
}

.bid-confirmation-summary-list dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.bid-confirmation-summary-list .bid-confirmation-price {
  color: var(--ink);
  font-size: 1.2rem;
}

.bid-confirmation-message {
  margin: 0 1rem;
  padding: 0.85rem 0 1rem;
  border-top: 1px solid var(--line);
}

.bid-confirmation-message p {
  margin: 0.25rem 0 0;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 850;
  line-height: 1.2;
}

.bid-confirmation-blurb {
  margin: 0.85rem 0;
  color: var(--muted);
  line-height: 1.5;
}

.high-value-confirmation {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--accent);
  background: #fff4dc;
  color: var(--ink);
  line-height: 1.45;
}

.bid-confirmation form + .bid-confirmation-trust,
.bid-confirmation-trust {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@keyframes bid-confirmation-enter {
  from {
    opacity: 0;
    transform: translateX(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.auth-dialog .bid-dialog-shell {
  min-width: min(100%, 28rem);
  padding: clamp(1.25rem, 4vw, 1.75rem);
}

.auth-dialog .bid-dialog-header {
  margin-bottom: 1.25rem;
}

.auth-dialog .bid-form {
  gap: 1.1rem;
}

.auth-step:not([hidden]) {
  animation: auth-step-enter 180ms ease-out;
}

@keyframes auth-step-enter {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-step:not([hidden]) {
    animation: none;
  }
}

.auth-intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
}

.auth-status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: var(--muted);
}

.auth-status.is-error {
  color: var(--accent-dark);
  font-weight: 800;
}

.auth-preview-note {
  margin: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.text-button {
  justify-self: start;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
}

.preview-result {
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  padding: 1rem;
  background: var(--field);
}

.preview-result-success {
  border-left-color: #21613b;
}

.preview-result h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.preview-result p:last-child {
  margin-bottom: 0;
}

.preview-summary {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0;
}

.preview-summary div {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 0.75rem;
}

.preview-summary dt {
  color: var(--muted);
  font-weight: 800;
}

.preview-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.form-errors {
  margin: 0;
  padding-left: 1.25rem;
}

.preview-page {
  max-width: 680px;
}

.activity-section {
  padding-top: 2.25rem;
}

.school-activity-section {
  border-top: 8px solid var(--school-accent);
}

.takeover-history {
  display: grid;
  gap: 0.8rem;
}

.takeover-week {
  border: 1px solid var(--line);
  border-top: 5px solid var(--school-accent);
  background: var(--field);
}

.takeover-week[open] {
  box-shadow: 0 8px 0 rgba(22, 22, 22, 0.05);
}

.takeover-week-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  cursor: pointer;
  list-style: none;
}

.takeover-week-summary::-webkit-details-marker {
  display: none;
}

.takeover-week-summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.takeover-week-summary-copy {
  display: grid;
  gap: 0.15rem;
}

.takeover-week-summary-copy .eyebrow {
  margin: 0;
  color: var(--school-accent);
}

.takeover-week-dates {
  font-weight: 900;
}

.takeover-week-count {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.takeover-week-chevron {
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.15rem);
  transition: transform 160ms ease;
}

.takeover-week[open] .takeover-week-chevron {
  transform: rotate(225deg) translate(-0.1rem, -0.1rem);
}

.takeover-week-entries {
  border-top: 1px solid var(--line);
  padding: 0 1rem;
}

.takeover-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.takeover-row p {
  margin: 0;
}

.takeover-week-entries .takeover-row:first-child {
  border-top: 0;
}

.takeover-week-entries .takeover-row:last-child {
  border-bottom: 0;
}

.takeover-row-message {
  font-weight: 800;
}

.takeover-row-amount {
  color: var(--accent-dark);
  font-weight: 900;
}

.message-report-button {
  margin-top: 0.5rem;
  color: var(--ink-muted, #5c6470);
  font-size: 0.8rem;
}

.report-categories {
  display: grid;
  gap: 0.7rem;
  margin: 1.25rem 0;
  border: 0;
  padding: 0;
}

.report-categories label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: inherit;
  cursor: pointer;
}

.message-report-result {
  margin-top: 1rem;
  color: #166534;
}

.message-report-result.is-error {
  color: #b42318;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0;
}

.site-footer p {
  margin: 0;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 0.75rem;
}

.site-footer-links a {
  color: inherit;
  text-underline-offset: 0.18em;
}

.site-footer-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer-button:hover,
.site-footer-button:focus-visible {
  color: var(--accent-dark);
}

.analytics-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  width: min(34rem, calc(100% - 2rem));
  border: 1px solid var(--ink);
  border-top: 6px solid var(--accent);
  background: var(--paper);
  box-shadow: 0.35rem 0.35rem 0 var(--ink);
}

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.1rem 1.2rem 1.2rem;
}

.analytics-consent-label {
  margin: 0 0 0.25rem;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.analytics-consent h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.analytics-consent p:last-child {
  max-width: 27rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.analytics-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}

.analytics-consent-actions .button {
  min-height: 2.4rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.84rem;
}

@media (max-width: 640px) {
  .analytics-consent {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
  }

  .analytics-consent-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 0.9rem;
  }

  .analytics-consent-actions .button {
    flex: 1;
  }
}

/* Account surface: an editorial ledger with the same ink, paper, and school-board energy. */
.account-page {
  background: #f2eee6;
}

.account-hero {
  border-bottom: 1px solid #393733;
  border-top: 10px solid #ffb84d;
  background:
    radial-gradient(circle at 84% 12%, rgba(179, 38, 47, 0.24), transparent 30%),
    linear-gradient(118deg, #151515 0%, #25231f 62%, #111 100%);
  color: #fff;
}

.account-hero-inner,
.account-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.account-hero-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  min-height: 300px;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.account-hero .eyebrow {
  color: #ffb84d;
}

.account-hero h1 {
  max-width: 680px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  letter-spacing: -0.05em;
  line-height: 0.88;
  text-transform: none;
}

.account-email {
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.account-hero-note {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  max-width: 260px;
  padding: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.account-hero-note p {
  margin: 0;
}

.account-hero-note strong {
  color: #fff;
}

.account-hero-note-mark {
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 auto;
  margin-top: 0.4rem;
  background: #ffb84d;
  box-shadow: 0.35rem 0.35rem 0 #b3262f;
}

.account-shell {
  padding: clamp(2.5rem, 6vw, 5rem) 0 5rem;
}

.account-overview-heading,
.account-history-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.account-overview-heading h2,
.account-history-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.account-member-since,
.account-history-heading .text-link {
  margin: 0 0 0.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2rem 0;
}

.account-stat {
  min-height: 140px;
  border: 1px solid #cfc8bc;
  border-top: 6px solid #262522;
  padding: 1rem;
  background: #fbfaf7;
}

.account-stat-accent {
  border-top-color: var(--accent);
}

.account-stat span,
.account-stat small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.account-stat strong {
  display: block;
  margin: 1rem 0 0.2rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.account-stat small {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: none;
}

.account-history-heading {
  margin-bottom: 1rem;
}

.account-history {
  display: grid;
  gap: 1rem;
}

.account-bid-card {
  border: 1px solid #cfc8bc;
  border-left: 7px solid #7f7b73;
  background: #fbfaf7;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.08);
}

.account-bid-card-active {
  border-left-color: #21613b;
}

.account-bid-card-pending {
  border-left-color: #b7791f;
}

.account-bid-card-released,
.account-bid-card-failed {
  border-left-color: #8d8980;
}

.account-bid-card-refunded,
.account-bid-card-disputed {
  border-left-color: var(--accent);
}

.account-bid-header,
.account-bid-body,
.account-bid-outcome {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
}

.account-bid-header {
  align-items: start;
  border-bottom: 1px solid #ded9cf;
  padding: 1.1rem 1.25rem 1rem;
}

.account-bid-date,
.account-bid-message span,
.account-bid-details dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.account-bid-header h3 {
  margin: 0.25rem 0 0;
  font-size: 1.35rem;
}

.account-bid-header h3 a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

.account-bid-header h3 a:hover,
.account-bid-header h3 a:focus-visible {
  color: var(--accent-dark);
}

.account-bid-status {
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  color: #21613b;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.account-bid-card-pending .account-bid-status { color: #8a5a00; }
.account-bid-card-released .account-bid-status,
.account-bid-card-failed .account-bid-status { color: #63615d; }
.account-bid-card-refunded .account-bid-status,
.account-bid-card-disputed .account-bid-status { color: var(--accent-dark); }

.account-bid-body {
  align-items: start;
  padding: 1.15rem 1.25rem;
}

.account-bid-message {
  min-width: 0;
  flex: 1 1 auto;
}

.account-bid-message p {
  margin: 0.4rem 0 0;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.account-bid-details {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1rem;
  margin: 0;
}

.account-bid-details div {
  min-width: 6.5rem;
}

.account-bid-details dd {
  margin: 0.3rem 0 0;
  font-weight: 800;
}

.account-bid-outcome {
  align-items: center;
  border-top: 1px solid #ded9cf;
  padding: 1rem 1.25rem;
  background: #f2eee6;
}

.account-bid-outcome strong {
  font-size: 0.92rem;
}

.account-bid-outcome p {
  max-width: 700px;
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-charge {
  flex: 0 0 auto;
  text-align: right;
}

.account-charge span,
.account-charge small {
  display: block;
  font-weight: 900;
}

.account-charge small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.account-bid-support-button {
  min-height: 2.35rem;
  margin-top: 0.65rem;
  border-color: #b6afa3;
  padding: 0.45rem 0.7rem;
  background: #fbfaf7;
  color: var(--accent-dark);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.account-bid-support-button:hover,
.account-bid-support-button:focus-visible {
  border-color: var(--accent);
  background: #fff;
  color: var(--accent-dark);
}

.account-bid-current {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  background: #e8f5ec;
  color: #18512f;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-bid-current span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
}

.account-bid-support,
.account-history-note {
  margin: 0;
  padding: 0.75rem 1.25rem 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.account-bid-support a,
.account-history-note a {
  color: var(--accent-dark);
  font-weight: 800;
}

.account-empty-state {
  border: 1px dashed #b6afa3;
  padding: 3rem 1.5rem;
  background: rgba(251, 250, 247, 0.6);
  text-align: center;
}

.account-empty-state h3 {
  margin: 0;
  font-size: 1.8rem;
}

.account-empty-state p:not(.eyebrow) {
  margin: 0.5rem 0 1.25rem;
  color: var(--muted);
}

.age-acknowledgement {
  display: grid;
  gap: 0.55rem;
  border: 1px solid #d6c19a;
  border-left: 5px solid #b7791f;
  padding: 0.9rem 1rem;
  background: #fff8e7;
}

.custom-check-field {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.35;
}

.custom-check-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.custom-check-box {
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid #6b4b13;
  background: #fffdf7;
}

.custom-check-box::after {
  width: 0.42rem;
  height: 0.72rem;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  content: "";
  opacity: 0;
  transform: rotate(45deg) translate(-0.08rem, -0.08rem);
}

.custom-check-field input:checked + .custom-check-box {
  border-color: #171717;
  background: #171717;
}

.custom-check-field input:checked + .custom-check-box::after {
  opacity: 1;
}

.custom-check-field input:focus-visible + .custom-check-box {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .account-hero-inner,
  .account-bid-body,
  .account-bid-outcome {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-hero-inner {
    min-height: 0;
  }

  .account-hero-note {
    padding-top: 0;
  }

  .account-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-bid-details {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-charge {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .account-overview-heading,
  .account-history-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-stats {
    gap: 0.5rem;
  }

  .account-stat {
    min-height: 118px;
    padding: 0.75rem;
  }

  .account-stat strong {
    margin-top: 0.7rem;
  }

  .account-bid-header {
    flex-direction: column;
  }

  .account-bid-details {
    gap: 0.6rem;
  }

  .account-bid-details div {
    min-width: 0;
  }
}

.legal-page {
  min-height: calc(100vh - 10rem);
  background: #f7f3eb;
  color: #17191d;
  padding: clamp(2.75rem, 6vw, 5.5rem) 0 clamp(4rem, 8vw, 7rem);
}

.legal-shell {
  width: min(820px, calc(100% - 2rem));
  margin: 0 auto;
}

.legal-header {
  max-width: 700px;
  margin-bottom: 2.5rem;
}

.legal-header .eyebrow {
  margin-bottom: 0.75rem;
  color: #b3262f;
}

.legal-header h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.legal-meta {
  margin: 1.25rem 0 0;
  color: #63615d;
  font-size: 0.9rem;
}

.legal-content {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid #ded8ce;
  background: #fffdf9;
  box-shadow: 0 1rem 2.5rem rgba(34, 29, 22, 0.06);
}

.legal-content h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.25rem;
  line-height: 1.2;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: #4f504f;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-content ul {
  margin: 0.75rem 0 0;
  padding-left: 1.3rem;
}

.legal-content li + li {
  margin-top: 0.45rem;
}

.legal-content a {
  color: #8f1e28;
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.legal-lede {
  margin-top: 0;
  color: #303236 !important;
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
}

.contact-email {
  display: inline-block;
  font-size: 1.25rem;
}

.contact-note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #ded8ce;
  font-size: 0.95rem !important;
}

.error-page-body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(23, 23, 23, 0.94), rgba(23, 23, 23, 0.82)),
    repeating-linear-gradient(0deg, #1c1c1b 0, #1c1c1b 31px, #25231f 32px);
  color: #fff;
}

.error-page {
  width: min(720px, calc(100% - 2rem));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 4rem 0;
}

.error-brand {
  align-self: flex-start;
  margin-bottom: 5rem;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.error-code {
  margin: 0 0 0.5rem;
  color: #ffb84d;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  line-height: 0.85;
}

.error-page .eyebrow {
  color: #ffb84d;
}

.error-page h1 {
  max-width: 680px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.98;
}

.error-message {
  max-width: 560px;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.15rem;
}

.error-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.error-page .button-primary {
  background: #c22a35;
}

.error-page .text-link {
  color: #fff;
}

.error-reference {
  margin: 3rem 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.standings-hero {
  border-bottom: 1px solid var(--line);
  background: #1c1c1b;
  color: #fff;
}

.standings-hero-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 3rem;
}

.standings-hero .eyebrow {
  color: #ffb84d;
}

.standings-hero .section-heading {
  align-items: end;
  margin-bottom: 0;
}

.standings-hero h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 6vw, 5.75rem);
}

.standings-hero p:not(.eyebrow) {
  max-width: 640px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
}

.standings-periods {
  display: flex;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.period-link {
  padding: 0.7rem 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  text-decoration: none;
}

.period-link + .period-link {
  border-left: 1px solid rgba(255, 255, 255, 0.32);
}

.period-link:hover,
.period-link:focus-visible,
.period-link.is-active {
  background: #fff;
  color: var(--ink);
}

.standings-section {
  padding-top: 2rem;
}

.standings-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 6px solid var(--accent);
  border-bottom: 1px solid var(--line);
  background: var(--field);
}

.summary-stat {
  display: grid;
  gap: 0.25rem;
  min-height: 7rem;
  align-content: center;
  padding: 1rem 1.25rem;
}

.summary-stat + .summary-stat {
  border-left: 1px solid var(--line);
}

.summary-stat span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-stat strong {
  font-size: 1.65rem;
}

.standings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.standings-panel {
  min-width: 0;
  border-top: 6px solid var(--ink);
  background: var(--field);
}

.standings-panel-wide {
  grid-column: span 2;
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1rem;
}

.panel-heading .eyebrow {
  margin-bottom: 0.35rem;
}

.panel-heading h2 {
  margin: 0;
  font-size: 1.45rem;
}

.panel-note {
  max-width: 18rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.standings-table {
  border-top: 1px solid var(--line);
}

.standings-table-head,
.standings-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) 7rem 7rem;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1.25rem;
}

.standings-table-head {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.standings-row {
  min-height: 4.1rem;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

a.standings-row:hover,
a.standings-row:focus-visible {
  background: #f2eee7;
  outline: none;
}

.standing-rank {
  color: var(--accent-dark);
  font-size: 1.2rem;
  font-weight: 900;
}

.standing-name {
  min-width: 0;
}

.standing-name strong,
.standing-name small {
  display: block;
  overflow-wrap: anywhere;
}

.standing-name small {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.standings-row > strong:last-child {
  color: var(--accent-dark);
  text-align: right;
}

.standings-table-compact .standings-table-head,
.standings-table-compact .standings-row {
  grid-template-columns: 3rem minmax(0, 1fr) 4.5rem 5.5rem;
  gap: 0.65rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.standings-empty {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 1.1rem 1.25rem 1.35rem;
  color: var(--muted);
}

.biggest-moves-panel {
  margin-top: 1.25rem;
}

.move-list {
  border-top: 1px solid var(--line);
}

.move-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8rem 6rem;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 1rem 1.25rem;
}

.move-row time {
  color: var(--muted);
  font-size: 0.88rem;
}

.move-row > strong {
  color: var(--accent-dark);
  text-align: right;
}

.standings-footnote {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.rivalry-hero {
  border-bottom: 1px solid var(--line);
  background: #1c1c1b;
  color: #fff;
}

.rivalry-hero-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.25rem 0 3rem;
}

.rivalry-hero .eyebrow {
  color: #ffb84d;
}

.rivalry-hero .section-heading {
  align-items: end;
  margin-bottom: 0;
}

.rivalry-hero h1 {
  max-width: 900px;
  font-size: clamp(3.2rem, 8vw, 7rem);
}

.rivalry-hero p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
}

.button-light {
  border-color: rgba(255, 255, 255, 0.4);
  background: #fff;
  color: var(--ink);
}

.button-light:hover,
.button-light:focus-visible {
  background: #ffb84d;
  border-color: #ffb84d;
}

.rivalry-directory {
  padding-top: 2.75rem;
}

.rivalry-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.25rem;
}

.rivalry-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 7px solid var(--ink);
  background: var(--field);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.rivalry-card:hover,
.rivalry-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 10px 0 rgba(179, 38, 47, 0.12);
  outline: none;
  transform: translateY(-3px);
}

.rivalry-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 1.15rem;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rivalry-card-schools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 1.35rem 1.15rem 1rem;
}

.rivalry-card-schools span {
  min-width: 0;
  border-left: 0.45rem solid var(--side-accent);
  padding-left: 0.65rem;
  overflow-wrap: normal;
  word-break: normal;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.rivalry-card-schools span:last-child {
  text-align: right;
  border-left: 0;
  border-right: 0.45rem solid var(--side-accent);
  padding-left: 0;
  padding-right: 0.65rem;
}

.rivalry-card-schools strong {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.rivalry-card-lead {
  min-height: 3rem;
  margin: 0;
  padding: 0 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.rivalry-card-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
  padding: 1rem 1.15rem;
}

.rivalry-card-stats span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.rivalry-card-stats span + span {
  border-left: 1px solid var(--line);
  padding-left: 0.75rem;
}

.rivalry-card-stats strong {
  display: block;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
}

.rivalry-card-link {
  margin: auto 1.15rem 1.15rem;
  color: var(--accent-dark);
  font-weight: 900;
}

.rivalry-detail-hero .back-link {
  display: inline-block;
  margin-bottom: 2.5rem;
}

.rivalry-detail-hero h1 {
  max-width: none;
  text-transform: uppercase;
}

.rivalry-vs {
  color: #ffb84d;
}

.rivalry-periods {
  display: inline-flex;
  margin-top: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.rivalry-detail-section {
  padding-top: 2.25rem;
}

.rivalry-scoreboard {
  border-top: 8px solid var(--accent);
  background: var(--field);
}

.rivalry-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1rem;
}

.rivalry-section-heading .eyebrow {
  margin-bottom: 0.35rem;
}

.rivalry-section-heading h2 {
  margin: 0;
  font-size: 1.55rem;
}

.rivalry-section-heading > p {
  margin: 0;
  text-align: right;
}

.rivalry-sides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.rivalry-side {
  min-width: 0;
  padding: 1.5rem;
  background: var(--field);
  border-top: 7px solid var(--side-accent);
}

.rivalry-side.is-leading {
  background: #fffdf8;
}

.rivalry-side-heading,
.rivalry-board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rivalry-side-label {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rivalry-side h3,
.rivalry-board-heading h3 {
  margin: 0;
  font-size: 1.65rem;
}

.rivalry-side-mark {
  display: block;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  background: var(--side-accent);
}

.rivalry-side-score {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin: 1.5rem 0 1.1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.1rem;
}

.rivalry-side-score strong {
  font-size: clamp(3.25rem, 6vw, 5rem);
  line-height: 0.9;
}

.rivalry-side-score span {
  color: var(--muted);
  font-weight: 800;
}

.rivalry-side-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.rivalry-side-stats div {
  min-width: 0;
}

.rivalry-side-stats dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rivalry-side-stats dd {
  margin: 0.25rem 0 0;
  font-size: 1.1rem;
  font-weight: 900;
}

.rivalry-side-action {
  width: 100%;
  margin-top: 1.5rem;
  background: var(--side-accent);
}

.rivalry-side-action:hover,
.rivalry-side-action:focus-visible {
  filter: brightness(0.88);
}

.rivalry-board-section {
  margin-top: 2rem;
}

.rivalry-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.rivalry-board-row {
  min-width: 0;
  border-top: 7px solid var(--side-accent);
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--field);
}

.rivalry-board-message {
  min-height: 3.5rem;
  margin: 1.25rem 0 0.5rem;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.rivalry-board-row .muted {
  min-height: 3rem;
  margin: 0 0 1rem;
}

.rivalry-activity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.75fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.rivalry-activity-panel,
.rivalry-highlight {
  min-width: 0;
  background: var(--field);
}

.rivalry-activity-panel {
  border-top: 6px solid var(--ink);
}

.rivalry-highlight {
  border-top: 6px solid var(--accent);
  padding: 1.5rem;
}

.rivalry-highlight h2 {
  margin: 0.5rem 0 1rem;
  color: var(--accent-dark);
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.rivalry-highlight p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.rivalry-move-list {
  border-top: 1px solid var(--line);
}

.rivalry-move-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6rem;
  gap: 0.2rem 1rem;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 1rem 1.5rem;
}

.rivalry-move-row:first-child {
  border-top: 0;
}

.rivalry-move-row div {
  min-width: 0;
}

.rivalry-move-row div strong,
.rivalry-move-row div span {
  display: block;
  overflow-wrap: anywhere;
}

.rivalry-move-row div span,
.rivalry-move-row time {
  color: var(--muted);
  font-size: 0.85rem;
}

.rivalry-move-row > strong {
  color: var(--accent-dark);
  text-align: right;
}

.rivalry-move-row time {
  grid-column: 1;
}

.rivalry-empty {
  margin: 0;
  padding: 1.25rem 1.5rem;
}

.rivalry-footnote {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .standings-hero-inner {
    padding: 3rem 0 2.25rem;
  }

  .standings-hero .section-heading {
    align-items: start;
  }

  .standings-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-stat:nth-child(odd) {
    border-left: 0;
  }

  .summary-stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .standings-grid {
    grid-template-columns: 1fr;
  }

  .standings-panel-wide {
    grid-column: auto;
  }

  .panel-heading {
    align-items: start;
    flex-direction: column;
  }

  .panel-note {
    text-align: left;
  }

  .standings-table-head {
    display: none;
  }

  .standings-row {
    grid-template-columns: 2.25rem minmax(0, 1fr) auto;
    grid-template-areas:
      "rank name total"
      "rank name count";
    gap: 0.65rem;
    min-height: 4.75rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .standings-row .standing-rank {
    grid-area: rank;
    align-self: center;
  }

  .standings-row .standing-name {
    grid-area: name;
    align-self: center;
  }

  .standings-row > span:nth-child(3) {
    grid-area: count;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: right;
  }

  .standings-row > strong:last-child {
    grid-area: total;
    align-self: end;
    font-size: 1.05rem;
  }

  .move-row {
    grid-template-columns: minmax(0, 1fr) 5rem;
    gap: 0.5rem;
  }

  .move-row time {
    grid-column: 1;
  }

  .move-row > strong {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 640px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem 0.7rem;
  }

  .nav-links {
    width: 100%;
    flex-wrap: nowrap;
    gap: 0.7rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  h1 {
    font-size: 2.6rem;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .takeover-bar,
  .live-board-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .board-heading {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .school-board-page .board-stage {
    border-top-width: 6px;
  }

  .school-board-page .board-stage-inner {
    width: min(100% - 1.25rem, 960px);
    padding: 1rem 0 1.25rem;
  }

  .school-board-page .board-heading {
    gap: 0.7rem;
    margin: 1rem 0 0.75rem;
    padding-bottom: 0.85rem;
  }

  .school-board-page .board-heading h1 {
    font-size: clamp(2.35rem, 13vw, 3.35rem);
    line-height: 0.9;
  }

  .board-heading-actions {
    justify-content: flex-start;
  }

  .price-lockup {
    text-align: left;
  }

  .school-board-page .live-board {
    border-top-width: 7px;
    padding: 0.75rem;
  }

  .school-board-page .live-board-topline {
    gap: 0.5rem;
    font-size: 0.72rem;
  }

  .school-board-page .current-message-panel {
    min-height: 8.5rem;
    margin: 0.75rem 0 1rem;
    border-left-width: 7px;
    padding: 0.75rem 0.8rem 0.85rem;
  }

  .school-board-page .current-message-label {
    font-size: 0.68rem;
  }

  .school-board-page .live-board-message {
    min-height: 4rem;
    margin-top: 0.65rem;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .school-board-page .live-board-footer {
    gap: 0.65rem;
    padding-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.25;
  }

  .school-board-page .pending-challenge {
    gap: 0.75rem;
    margin-top: 0.65rem;
    padding: 0.7rem 0.75rem;
  }

  .school-board-page .takeover-cta {
    gap: 0.65rem;
    margin-top: 0.85rem;
    padding: 0.75rem;
  }

  .school-board-page .takeover-cta-copy {
    font-size: 0.95rem;
  }

  .school-board-page .takeover-cta .takeover-button {
    min-height: 3.35rem;
    font-size: 1rem;
  }

  .takeover-button {
    width: 100%;
  }

  .takeover-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .school-board-page .takeover-cta .takeover-button {
    width: 100%;
    min-width: 0;
  }

  .error-page {
    justify-content: flex-start;
    padding-top: 2rem;
  }

  .error-brand {
    margin-bottom: 7rem;
  }

  .error-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .error-actions .button,
  .error-actions .text-link {
    width: 100%;
    text-align: center;
  }

  .current-message-panel {
    min-height: 10rem;
  }

  .takeover-success-actions {
    grid-template-columns: 1fr;
  }

  .takeover-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .takeover-week-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 0.75rem;
    padding: 0.8rem 0.75rem;
  }

  .takeover-week-count {
    grid-column: 1;
    font-size: 0.72rem;
  }

  .takeover-week-chevron {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .takeover-week-entries {
    padding: 0 0.75rem;
  }

  .standings-hero-inner {
    padding: 3rem 0 2.25rem;
  }

  .standings-hero .section-heading {
    align-items: start;
  }

  .standings-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-stat:nth-child(odd) {
    border-left: 0;
  }

  .summary-stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .standings-grid {
    grid-template-columns: 1fr;
  }

  .standings-panel-wide {
    grid-column: auto;
  }

  .panel-heading {
    align-items: start;
    flex-direction: column;
  }

  .panel-note {
    text-align: left;
  }

  .standings-table-head,
  .standings-row,
  .standings-table-compact .standings-table-head,
  .standings-table-compact .standings-row {
    grid-template-columns: 2.25rem minmax(0, 1fr) auto;
    gap: 0.65rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .standings-table-head {
    display: none;
  }

  .standings-row {
    grid-template-areas:
      "rank name total"
      "rank name count";
    min-height: 4.75rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .standings-row .standing-rank {
    grid-area: rank;
    align-self: center;
  }

  .standings-row .standing-name {
    grid-area: name;
    align-self: center;
  }

  .standings-row > span:nth-child(3) {
    grid-area: count;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: right;
  }

  .standings-row > strong:last-child {
    grid-area: total;
    align-self: end;
    font-size: 1.05rem;
  }

  .move-row {
    grid-template-columns: minmax(0, 1fr) 5rem;
    gap: 0.5rem;
  }

  .move-row time {
    grid-column: 1;
  }

  .move-row > strong {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* How it works: an editorial game manual for the rules fans actually need. */
.how-it-works-page {
  --how-black: #171717;
  --how-paper: #f5f1e9;
  --how-paper-dark: #e7e1d7;
  --how-red: #b3262f;
  --how-yellow: #ffb84d;
  --how-blue: #b9d8d6;
  background: var(--how-paper);
  color: var(--how-black);
}

.how-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.how-hero {
  overflow: hidden;
  border-bottom: 1px solid #302f2b;
  background:
    radial-gradient(circle at 74% 10%, rgba(179, 38, 47, 0.35), transparent 27%),
    linear-gradient(120deg, #141414 0%, #25231f 64%, #171717 100%);
  color: #fff;
}

.how-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  min-height: 680px;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.how-hero-copy {
  max-width: 560px;
}

.how-hero-copy .eyebrow,
.how-section-intro .eyebrow,
.how-cta-section .eyebrow {
  margin-bottom: 1rem;
  color: var(--how-red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.how-hero-copy .eyebrow {
  color: var(--how-yellow);
}

.how-hero h1,
.how-section h2,
.how-cta-section h2,
.how-step h3,
.how-faq-section summary {
  font-family: Georgia, "Times New Roman", serif;
}

.how-hero h1 {
  max-width: 600px;
  font-size: clamp(3.5rem, 7vw, 7rem);
  letter-spacing: -0.065em;
  line-height: 0.88;
  text-transform: none;
}

.how-hero-intro {
  max-width: 31rem;
  margin: 1.75rem 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.45;
}

.how-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.how-button-light {
  gap: 0.7rem;
  border-color: #fff;
  background: #fff;
  color: var(--how-black);
}

.how-button-light:hover,
.how-button-light:focus-visible {
  border-color: var(--how-yellow);
  background: var(--how-yellow);
}

.how-text-link,
.how-inline-link {
  font-weight: 800;
  text-underline-offset: 0.22em;
}

.how-text-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.how-text-link:hover,
.how-text-link:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.how-hero-board {
  position: relative;
  min-height: 410px;
  border: 1px solid var(--how-yellow);
  border-top: 12px solid var(--how-yellow);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--how-paper);
  color: var(--how-black);
  box-shadow: 18px 20px 0 rgba(0, 0, 0, 0.26);
  transform: rotate(1.2deg);
}

.how-ticket-stamp {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  display: grid;
  width: 4.9rem;
  height: 4.9rem;
  place-content: center;
  border: 2px solid var(--how-red);
  border-radius: 50%;
  color: var(--how-red);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  transform: rotate(10deg);
}

.how-hero-board-topline,
.how-hero-board-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #67635c;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.how-hero-board-topline {
  padding-right: 6rem;
}

.how-hero-board-message {
  margin: clamp(5rem, 12vw, 8rem) 0 clamp(3rem, 7vw, 5rem);
  color: var(--how-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 9vw, 8.5rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.78;
}

.how-hero-board-rule {
  height: 1px;
  margin-bottom: 1rem;
  background: #c9c1b5;
}

.how-live-dot {
  color: #21613b;
  font-size: 1rem;
  line-height: 0.5;
}

.how-section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.how-section-intro {
  max-width: 30rem;
}

.how-section h2,
.how-cta-section h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.8vw, 5rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.how-section-intro > p:last-child,
.how-copy-stack p,
.how-settlement-copy > p {
  color: #5e5a53;
  font-size: 1.08rem;
  line-height: 1.55;
}

.how-loop-section {
  background: var(--how-paper);
}

.how-loop-section .how-section-intro {
  display: grid;
  grid-template-columns: minmax(10rem, 0.6fr) minmax(0, 1.4fr);
  align-items: end;
  gap: 2rem;
  max-width: 52rem;
}

.how-loop-section .how-section-intro .eyebrow {
  grid-column: 1;
  align-self: start;
}

.how-loop-section .how-section-intro h2,
.how-loop-section .how-section-intro > p:last-child {
  grid-column: 2;
}

.how-loop-section .how-section-intro > p:last-child {
  margin: 1.25rem 0 0;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4rem;
  border-top: 1px solid #bab2a7;
}

.how-step {
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr);
  gap: 1rem;
  min-height: 265px;
  border-right: 1px solid #bab2a7;
  padding: 1.25rem 1.5rem 1.5rem 0;
}

.how-step + .how-step {
  padding-left: 1.5rem;
}

.how-step:last-child {
  border-right: 0;
  padding-right: 0;
}

.how-step-number {
  color: var(--how-red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.how-step h3 {
  margin: -0.2rem 0 0;
  font-size: clamp(1.65rem, 2.5vw, 2.5rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.how-step p {
  margin: 1rem 0 0;
  color: #5e5a53;
  font-size: 0.98rem;
}

.how-inline-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--how-red);
  font-size: 0.86rem;
  text-decoration: none;
}

.how-inline-link:hover,
.how-inline-link:focus-visible {
  text-decoration: underline;
}

.how-dark-section {
  background: var(--how-black);
  color: #fff;
}

.how-split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: start;
}

.how-dark-section .how-section-intro .eyebrow,
.how-dark-section .how-copy-stack p,
.how-dark-section .how-section-intro > p:last-child {
  color: var(--how-yellow);
}

.how-dark-section .how-copy-stack p {
  color: rgba(255, 255, 255, 0.73);
}

.how-copy-stack {
  max-width: 34rem;
  padding-top: 0.4rem;
}

.how-copy-stack p {
  margin: 0;
}

.how-copy-stack p + p {
  margin-top: 1.35rem;
}

.how-challenge-section {
  background: var(--how-blue);
}

.how-challenge-grid,
.how-safety-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 9vw, 9rem);
}

.how-challenge-card {
  min-height: 330px;
  border: 1px solid var(--how-black);
  border-top: 10px solid var(--how-red);
  padding: 1.35rem;
  background: var(--how-paper);
  box-shadow: 13px 15px 0 rgba(23, 23, 23, 0.22);
  transform: rotate(-2deg);
}

.how-challenge-card-label {
  color: #6d6860;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.how-challenge-card-message {
  margin: 5rem 0 4rem;
  color: var(--how-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.82;
}

.how-challenge-card-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #bdb6aa;
  padding-top: 0.85rem;
  color: #6d6860;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.how-challenge-card-footer strong {
  color: #21613b;
}

.how-challenge-section .how-section-intro > p:last-child {
  margin-top: 1.5rem;
}

.how-settlement-section {
  background: var(--how-paper-dark);
}

.how-split-reverse .how-settlement-copy {
  grid-column: 1;
  grid-row: 1;
}

.how-split-reverse .how-section-intro {
  grid-column: 2;
}

.how-settlement-copy {
  max-width: 36rem;
}

.how-settlement-list {
  margin-top: 2rem;
  border-top: 1px solid #b7afa3;
}

.how-settlement-list div {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.25rem 0.8rem;
  padding: 1rem 0;
  border-bottom: 1px solid #b7afa3;
}

.how-settlement-list span {
  grid-row: span 2;
  color: var(--how-red);
  font-size: 0.74rem;
  font-weight: 900;
}

.how-settlement-list strong {
  font-size: 1.05rem;
}

.how-settlement-list small {
  color: #69645c;
  font-size: 0.86rem;
}

.how-safety-section {
  background: #fffdf8;
}

.how-safety-mark {
  display: grid;
  min-height: 250px;
  place-content: center;
  border: 1px solid var(--how-black);
  background: var(--how-red);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.82;
  text-align: center;
  transform: rotate(2deg);
}

.how-safety-section .how-section-intro > p:last-child {
  margin-top: 1.5rem;
}

.how-meaning-section {
  background: var(--how-paper);
}

.how-cta-section {
  background: var(--how-yellow);
}

.how-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.how-cta-section .eyebrow {
  color: var(--how-red);
}

.how-cta-section h2 {
  max-width: 42rem;
}

.how-cta-section .button {
  flex: 0 0 auto;
  min-height: 3.4rem;
  border-color: var(--how-black);
  background: var(--how-black);
  color: #fff;
}

.how-cta-section .button:hover,
.how-cta-section .button:focus-visible {
  background: var(--how-red);
}

.how-faq-section {
  background: var(--how-paper);
}

.how-section-heading-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #b7afa3;
  padding-bottom: 2rem;
}

.how-faq-section h2 {
  max-width: 38rem;
}

.how-faq-list {
  max-width: 900px;
  margin-left: auto;
}

.how-faq-list details {
  border-bottom: 1px solid #b7afa3;
}

.how-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  cursor: pointer;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 700;
  list-style: none;
}

.how-faq-list summary::-webkit-details-marker {
  display: none;
}

.how-faq-list summary::after {
  color: var(--how-red);
  content: "+";
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
}

.how-faq-list details[open] summary::after {
  content: "−";
}

.how-faq-list summary:focus-visible {
  outline: 3px solid var(--how-red);
  outline-offset: 4px;
}

.how-faq-list details p {
  max-width: 700px;
  margin: -0.35rem 3rem 1.5rem 0;
  color: #5e5a53;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .how-hero-grid,
  .how-split-section,
  .how-challenge-grid,
  .how-safety-grid {
    grid-template-columns: 1fr;
  }

  .how-hero-grid {
    min-height: 0;
    gap: 3.5rem;
  }

  .how-hero-copy,
  .how-hero-board {
    width: min(100%, 640px);
    margin: 0 auto;
  }

  .how-split-reverse .how-settlement-copy,
  .how-split-reverse .how-section-intro {
    grid-column: auto;
    grid-row: auto;
  }

  .how-steps {
    grid-template-columns: 1fr;
  }

  .how-step,
  .how-step + .how-step,
  .how-step:last-child {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #bab2a7;
    padding: 1.5rem 0;
  }

  .how-step:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .how-shell {
    width: min(100% - 1.25rem, 640px);
  }

  .how-hero-grid {
    gap: 2.5rem;
    padding: 3.25rem 0 4rem;
  }

  .how-hero h1 {
    font-size: clamp(3.15rem, 15vw, 5rem);
  }

  .how-hero-intro {
    margin-top: 1.25rem;
  }

  .how-hero-board {
    min-height: 315px;
    border-top-width: 8px;
    padding: 1rem;
    box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.26);
  }

  .how-hero-board-topline {
    padding-right: 4.5rem;
    font-size: 0.62rem;
  }

  .how-ticket-stamp {
    top: 0.8rem;
    right: 0.8rem;
    width: 3.7rem;
    height: 3.7rem;
    font-size: 0.58rem;
  }

  .how-hero-board-message {
    margin: 5rem 0 3.25rem;
    font-size: clamp(3.5rem, 18vw, 6rem);
  }

  .how-hero-board-bottom {
    font-size: 0.62rem;
  }

  .how-loop-section .how-section-intro {
    display: block;
  }

  .how-loop-section .how-section-intro > p:last-child {
    margin-top: 1rem;
  }

  .how-steps {
    margin-top: 2.5rem;
  }

  .how-section {
    padding: 4rem 0;
  }

  .how-section h2,
  .how-cta-section h2 {
    font-size: clamp(2.45rem, 13vw, 4.2rem);
  }

  .how-challenge-card {
    min-height: 285px;
  }

  .how-challenge-card-message {
    margin: 4.5rem 0 3.25rem;
  }

  .how-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .how-cta-inner .button {
    width: 100%;
  }

  .how-faq-list summary {
    padding: 1.1rem 0;
    font-size: 1.23rem;
  }

  .how-faq-list details p {
    margin-right: 0;
  }
}

/* Keep how-it-works cards in the same family as the landing-page board card. */
.how-live-card,
.how-example-card,
.how-checkout-card,
.how-guardrail-card {
  --how-card-accent: var(--how-accent);
  border-color: var(--how-card-accent);
  border-top: 9px solid var(--how-card-accent);
  border-radius: 14px;
  background: #f7f3eb;
  box-shadow: 18px 22px 0 rgba(0, 0, 0, 0.2);
}

.how-live-card {
  --how-card-accent: var(--how-yellow);
}

.how-live-card.landing-featured-card {
  min-height: 470px;
  max-width: 550px;
  margin-left: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.how-example-card,
.how-safety-card {
  --how-card-accent: var(--how-accent);
}

.how-checkout-card,
.how-meaning-card {
  --how-card-accent: var(--how-yellow);
}

.how-card-label {
  color: var(--how-card-accent);
}

.how-live-card-message,
.how-example-message {
  border-left: 8px solid var(--how-card-accent);
  padding: 1rem 1.1rem 1.2rem;
  background: #171717;
  color: #fff;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.how-live-card-message {
  margin: 4.5rem 0 2rem;
}

.how-example-message {
  margin: 3rem 0 2rem;
}

.how-card-meta,
.how-example-row {
  border-color: #c9c2b7;
}

.how-checkout-card,
.how-guardrail-card {
  border-color: var(--how-card-accent);
}

.how-guardrail-card {
  box-shadow: 10px 13px 0 rgba(0, 0, 0, 0.16);
}

@media (max-width: 640px) {
  .how-live-card,
  .how-example-card,
  .how-checkout-card,
  .how-guardrail-card {
    box-shadow: 10px 13px 0 rgba(0, 0, 0, 0.16);
  }

  .how-live-card.landing-featured-card {
    min-height: 0;
    max-width: none;
    margin-left: 0;
    padding: 0.9rem;
  }

  .how-live-card-message {
    margin: 4rem 0 1.5rem;
  }

  .how-example-message {
    margin: 3rem 0 1.5rem;
  }
}

@media (max-width: 900px) {
  .landing-hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: 0;
    padding-top: 3.25rem;
    padding-bottom: 4rem;
  }

  .landing-featured-card {
    width: min(100%, 640px);
    min-height: 0;
    margin: 0 auto;
  }

  .landing-hero-copy {
    width: min(100%, 640px);
    margin: 0 auto;
  }

  .rivalry-hero .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .rivalry-sides,
  .rivalry-board-grid,
  .rivalry-activity-grid {
    grid-template-columns: 1fr;
  }

  .rivalry-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .rivalry-section-heading > p {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .landing-hero-inner {
    width: min(100% - 1.25rem, 640px);
    gap: 0.9rem;
    padding-top: 1.1rem;
    padding-bottom: 1.5rem;
  }

  .landing-hero-copy {
    padding: 0;
  }

  .landing-hero-copy .eyebrow {
    margin-bottom: 0.65rem;
    font-size: 0.7rem;
  }

  .landing-hero-copy h1 {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
    line-height: 0.92;
  }

  .landing-hero-intro {
    margin-top: 0.85rem;
    font-size: 0.98rem;
    line-height: 1.32;
  }

  /* The board CTA is the primary mobile action; keep it in the first viewport. */
  .landing-hero-copy .hero-actions {
    display: none;
  }

  .landing-featured-card {
    min-height: 0;
    border-top-width: 7px;
    border-radius: 11px;
    padding: 0.9rem;
    box-shadow: 10px 13px 0 rgba(0, 0, 0, 0.2);
  }

  .landing-card-heading {
    align-items: end;
    gap: 0.6rem;
    margin-top: 1rem;
  }

  .landing-card-heading > div {
    min-width: 0;
  }

  .landing-card-heading h2 {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }

  .landing-card-heading p {
    margin-top: 0.2rem;
    font-size: 0.88rem;
  }

  .landing-card-price {
    text-align: right;
  }

  .landing-card-price span {
    font-size: 0.62rem;
  }

  .landing-card-price strong {
    font-size: 1.45rem;
  }

  .landing-card-message-wrap {
    margin: 1rem 0;
    border-left-width: 6px;
    padding: 0.75rem 0.85rem 0.8rem;
  }

  .landing-card-message-label {
    font-size: 0.65rem;
  }

  .landing-card-message {
    margin-top: 0.45rem;
    font-size: clamp(1.75rem, 10vw, 2.8rem);
  }

  .landing-card-cta {
    min-height: 2.9rem;
    font-size: 0.98rem;
  }

  .landing-card-hint {
    margin-top: 0.55rem;
    font-size: 0.75rem;
  }

  .rivalry-hero-inner {
    padding: 2.5rem 0 2.25rem;
  }

  .rivalry-detail-hero .back-link {
    margin-bottom: 1.75rem;
  }

  .rivalry-detail-hero h1 {
    font-size: 2.8rem;
  }

  .rivalry-side,
  .rivalry-board-row,
  .rivalry-highlight {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .rivalry-side-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rivalry-side-stats div:last-child {
    grid-column: span 2;
  }

  .rivalry-card-schools {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .rivalry-card-schools span,
  .rivalry-card-schools span:last-child {
    border-right: 0;
    padding-right: 0;
    text-align: left;
  }

  .rivalry-card-schools strong {
    justify-self: start;
  }

  .rivalry-move-row {
    grid-template-columns: minmax(0, 1fr) 5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Condensed how-it-works layout: compact split sections and example cards. */
.how-it-works-page {
  --how-black: #151a22;
  --how-muted: #5c6675;
  --how-paper: #f2f4f6;
  --how-card: #ffffff;
  --how-line: #dce1e7;
  --how-accent: #b3262f;
  --how-accent-dark: #841923;
  --how-yellow: #ffb84d;
  --how-hero: #16191f;
  --how-loop-paper: #f7f3eb;
  --how-loop-line: #d6cec2;
  background: var(--how-paper);
  color: var(--how-black);
}

.how-it-works-page .how-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.how-compact-hero {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 86% -30%, rgba(255, 184, 77, 0.18), transparent 44%),
    linear-gradient(120deg, #11151c 0%, var(--how-hero) 62%, #28191b 100%);
  color: #fff;
}

.how-compact-hero-grid {
  padding: clamp(3.5rem, 6vw, 5.25rem) 0 clamp(3rem, 5vw, 4.5rem);
}

.how-compact-hero-copy {
  max-width: 46rem;
}

.how-compact-hero-copy .eyebrow,
.how-it-works-page .eyebrow {
  margin-bottom: 0.85rem;
  color: var(--how-accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.how-compact-hero-copy .eyebrow {
  color: var(--how-yellow);
}

.how-compact-hero h1,
.how-it-works-page h2,
.how-it-works-page h3,
.how-faq-section summary {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.how-compact-hero h1 {
  max-width: 46rem;
  margin: 0;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  letter-spacing: -0.075em;
  line-height: 0.91;
  text-transform: none;
  color: #fff;
}

.how-compact-hero-copy > p:not(.eyebrow) {
  max-width: 35rem;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.45;
}

.how-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.how-button-light {
  gap: 0.6rem;
  border-color: var(--how-accent);
  background: var(--how-accent);
  color: #fff;
}

.how-button-light:hover,
.how-button-light:focus-visible {
  border-color: var(--how-accent-dark);
  background: var(--how-accent-dark);
}

.how-text-link,
.how-inline-link {
  font-weight: 800;
  text-underline-offset: 0.2em;
}

.how-text-link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.how-text-link:hover,
.how-text-link:focus-visible {
  color: var(--how-yellow);
  text-decoration: underline;
}

.how-live-card,
.how-example-card,
.how-checkout-card,
.how-guardrail-card {
  border: 1px solid var(--how-line);
  border-radius: 18px;
  background: var(--how-card);
  box-shadow: 0 18px 42px rgba(36, 47, 61, 0.1);
}

.how-live-card {
  min-height: 330px;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.how-card-label {
  color: var(--how-muted);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.how-live-card-message,
.how-example-message {
  color: var(--how-accent);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.8;
}

.how-live-card-message {
  margin: 5rem 0 4rem;
}

.how-card-meta,
.how-example-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--how-line);
  padding: 0.8rem 0;
  color: var(--how-muted);
  font-size: 0.87rem;
}

.how-card-meta strong,
.how-example-row strong {
  color: var(--how-black);
  text-align: right;
}

.how-compact-section,
.how-compact-cta {
  padding: clamp(4rem, 7vw, 6rem) 0;
}

.how-loop-section,
.how-board-section,
.how-faq-section {
  background: var(--how-paper);
}

.how-loop-section {
  background: var(--how-loop-paper);
}

.how-compact-heading,
.how-compact-split,
.how-guardrails-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 8rem);
}

.how-compact-heading {
  max-width: 970px;
}

.how-it-works-page h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 4.2rem);
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.how-compact-heading > p,
.how-compact-copy > p:not(.eyebrow),
.how-guardrail-card > p:not(.eyebrow),
.how-coming-back > p:not(.eyebrow) {
  margin: 0;
  color: var(--how-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.how-compact-heading > p {
  padding-top: 1.95rem;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3.25rem;
  border-top: 1px solid var(--how-loop-line);
}

.how-step {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  gap: 0.8rem;
  min-height: 200px;
  border-right: 1px solid var(--how-loop-line);
  padding: 1.1rem 1.35rem 0 0;
}

.how-step + .how-step {
  padding-left: 1.35rem;
}

.how-step:last-child {
  border-right: 0;
  padding-right: 0;
}

.how-step-number {
  color: var(--how-accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.how-step h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.how-step p {
  margin: 0.85rem 0 0;
  color: var(--how-muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.how-inline-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--how-accent-dark);
  font-size: 0.84rem;
  text-decoration: none;
}

.how-inline-link:hover,
.how-inline-link:focus-visible {
  text-decoration: underline;
}

.how-board-section {
  border-top: 1px solid var(--how-line);
}

.how-reset-section {
  border-top: 1px solid var(--how-line);
  background: var(--how-paper-dark);
}

.how-reset-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.how-compact-copy {
  max-width: 35rem;
}

.how-compact-copy > p:not(.eyebrow) + p:not(.eyebrow) {
  margin-top: 1rem;
}

.how-example-card {
  padding: 1.6rem;
}

.how-example-message {
  margin: 4rem 0 3rem;
  font-size: clamp(3rem, 6vw, 5.5rem);
}

.how-status-live {
  color: #1c7442 !important;
}

.how-settlement-section {
  background: #e7edf2;
}

.how-settlement-split {
  align-items: center;
}

.how-checkout-card {
  padding: 1.6rem;
}

.how-checkout-step {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.8rem;
  border-top: 1px solid var(--how-line);
  margin-top: 1.1rem;
  padding-top: 1.1rem;
}

.how-checkout-step > span {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border-radius: 50%;
  background: #e7edff;
  color: #285fe3;
  font-size: 0.78rem;
  font-weight: 900;
}

.how-checkout-step strong,
.how-checkout-step small {
  display: block;
}

.how-checkout-step strong {
  font-size: 1rem;
}

.how-checkout-step small {
  margin-top: 0.2rem;
  color: var(--how-muted);
  font-size: 0.86rem;
}

.how-coming-back {
  margin-top: 1.6rem;
  border-left: 4px solid var(--how-accent);
  padding-left: 1rem;
}

.how-coming-back .eyebrow {
  margin-bottom: 0.3rem;
}

.how-coming-back > strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

.how-coming-back > p:last-child {
  font-size: 0.95rem;
}

.how-guardrails-section {
  background: #fff;
}

.how-guardrails-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.how-guardrail-card {
  min-height: 255px;
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: 0 12px 28px rgba(36, 47, 61, 0.07);
}

.how-guardrail-card h2 {
  max-width: 28rem;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
}

.how-guardrail-card > p:last-child {
  margin: 1.1rem 0 0;
}

.how-safety-card {
  border-top: 6px solid var(--how-accent);
}

.how-meaning-card {
  border-top: 6px solid var(--how-yellow);
}

.how-compact-cta {
  background: var(--how-yellow);
}

.how-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.how-compact-cta .eyebrow {
  color: var(--how-accent-dark);
}

.how-compact-cta h2 {
  max-width: 42rem;
}

.how-compact-cta .button {
  flex: 0 0 auto;
  min-height: 3.2rem;
  border-color: var(--how-black);
  background: var(--how-black);
  color: #fff;
}

.how-compact-cta .button:hover,
.how-compact-cta .button:focus-visible {
  background: var(--how-accent-dark);
}

.how-faq-section {
  border-top: 1px solid var(--how-line);
}

.how-faq-section .how-compact-heading {
  display: block;
}

.how-faq-section .how-compact-heading > div {
  max-width: 42rem;
}

.how-faq-list {
  max-width: 900px;
  margin: 3rem 0 0 auto;
}

.how-faq-list details {
  border-bottom: 1px solid #c5ccd4;
}

.how-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 700;
  list-style: none;
}

.how-faq-list summary::-webkit-details-marker {
  display: none;
}

.how-faq-list summary::after {
  color: var(--how-accent);
  content: "+";
  font-size: 1.7rem;
  font-weight: 400;
}

.how-faq-list details[open] summary::after {
  content: "−";
}

.how-faq-list summary:focus-visible {
  outline: 3px solid var(--how-accent);
  outline-offset: 4px;
}

.how-faq-list details p {
  max-width: 720px;
  margin: -0.15rem 3rem 1.25rem 0;
  color: var(--how-muted);
  font-size: 0.97rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .how-compact-hero-grid,
  .how-compact-heading,
  .how-compact-split,
  .how-reset-grid {
    grid-template-columns: 1fr;
  }

  .how-compact-hero-grid {
    padding: clamp(2.75rem, 7vw, 4rem) 0;
  }

  .how-compact-hero-copy,
  .how-live-card,
  .how-compact-copy,
  .how-checkout-card {
    width: min(100%, 640px);
    margin: 0 auto;
  }

  .how-compact-heading > p {
    padding-top: 0;
  }

  .how-guardrails-grid {
    grid-template-columns: 1fr;
  }

  .how-guardrail-card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .how-it-works-page .how-shell {
    width: min(100% - 1.25rem, 640px);
  }

  .how-compact-hero-grid {
    padding: 1.1rem 0 1.75rem;
  }

  .how-compact-hero-copy .eyebrow {
    margin-bottom: 0.15rem;
    font-size: 0.68rem;
  }

  .how-compact-hero h1 {
    font-size: clamp(2rem, 9vw, 2.65rem);
    line-height: 0.94;
  }

  .how-compact-hero-copy > p:not(.eyebrow) {
    margin-top: 0.55rem;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .how-live-card-message {
    margin: 4.5rem 0 3.3rem;
    font-size: clamp(3.4rem, 18vw, 5.4rem);
  }

  .how-compact-section,
  .how-compact-cta {
    padding: 3.5rem 0;
  }

  .how-steps {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
  }

  .how-step,
  .how-step + .how-step,
  .how-step:last-child {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--how-loop-line);
    padding: 1.25rem 0;
  }

  .how-step:last-child {
    border-bottom: 0;
  }

  .how-example-card,
  .how-checkout-card,
  .how-guardrail-card {
    padding: 1.2rem;
  }

  .how-example-message {
    margin: 3.5rem 0 2.5rem;
  }

  .how-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .how-compact-cta .button {
    width: 100%;
  }

  .how-faq-list {
    margin-top: 2.25rem;
  }

  .how-faq-list details p {
    margin-right: 0;
  }
}

/* Match the existing landing-page featured card treatment. */
.how-live-card,
.how-example-card,
.how-checkout-card,
.how-guardrail-card {
  --how-card-accent: var(--how-accent);
  border-color: var(--how-card-accent);
  border-top: 9px solid var(--how-card-accent);
  border-radius: 14px;
  background: #f7f3eb;
  box-shadow: 18px 22px 0 rgba(0, 0, 0, 0.2);
}

.how-live-card {
  --how-card-accent: var(--how-yellow);
}

.how-example-card,
.how-safety-card {
  --how-card-accent: var(--how-accent);
}

.how-checkout-card,
.how-meaning-card {
  --how-card-accent: var(--how-yellow);
}

.how-card-label {
  color: var(--how-card-accent);
}

.how-live-card-message,
.how-example-message {
  border-left: 8px solid var(--how-card-accent);
  padding: 1rem 1.1rem 1.2rem;
  background: #171717;
  color: #fff;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.how-live-card-message {
  margin: 4.5rem 0 2rem;
}

.how-example-message {
  margin: 3rem 0 2rem;
}

.how-card-meta,
.how-example-row {
  border-color: #c9c2b7;
}

.how-checkout-card,
.how-guardrail-card {
  border-color: var(--how-card-accent);
}

.how-guardrail-card {
  box-shadow: 10px 13px 0 rgba(0, 0, 0, 0.16);
}

@media (max-width: 640px) {
  .how-live-card,
  .how-example-card,
  .how-checkout-card,
  .how-guardrail-card {
    box-shadow: 10px 13px 0 rgba(0, 0, 0, 0.16);
  }

  .how-live-card-message {
    margin: 4rem 0 1.5rem;
  }

  .how-example-message {
    margin: 3rem 0 1.5rem;
  }
}
