/* Hilltop Events — design sketch. System fonts only (no external requests). */

:root {
  --bg: #fbf6ee;
  --surface: #ffffff;
  --ink: #1f1a17;
  --muted: #5b4f47;
  --line: #e3d9c8;
  --brand: #7a1022;
  --brand-dark: #4d0a16;
  --gold: #ffd36b;
  --cream: #fff8e7;
  --ok: #1d6b3a;
  --warn-bg: #fff3c4;
  --danger: #a0001c;
  --focus: #0b57d0;
  --radius: 12px;
  --marquee-font: "Rockwell", "Roboto Slab", "Arial Black", "Segoe UI Black", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.1875rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-dark); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.site-header :focus-visible, .marquee-frame :focus-visible, .sketch-banner :focus-visible { outline-color: var(--gold); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.3rem; }
[tabindex="-1"]:focus { outline: none; }
[tabindex="-1"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 2rem); }
.muted { color: var(--muted); font-weight: 400; }

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}
.skip-link:focus { top: 0.5rem; color: #fff; }

/* ---------- Banner & header ---------- */

.sketch-banner {
  background: #2b2522;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  padding: 0.5rem 1rem;
}
.sketch-banner p { margin: 0; }

.site-header { background: var(--brand-dark); color: var(--cream); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 0.9rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: inherit; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px; flex: none;
  background: radial-gradient(circle, var(--gold) 0 30%, transparent 32%), var(--brand);
  box-shadow: inset 0 0 0 3px var(--gold);
}
.brand-text { display: grid; }
.brand-name { font-family: var(--marquee-font); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.02em; }
.brand-sub { font-size: 0.95rem; opacity: 0.92; }
.nav-list { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 0.9rem;
  color: var(--cream); text-decoration: none; border-radius: 8px; font-weight: 600;
}
.nav-list a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.nav-list a[aria-current="page"] { background: var(--cream); color: var(--brand-dark); }

.asof { margin: 1rem 0 0; font-size: 1rem; color: var(--muted); }
.asof--historical { background: var(--warn-bg); padding: 0.5rem 0.75rem; border-radius: 8px; color: var(--ink); }

.role-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  margin: 0.75rem 0 0; padding: 0.75rem 1rem; border-radius: var(--radius);
  background: #1f3352; color: #fff; font-size: 1rem;
}
.role-bar[hidden] { display: none; }
.role-bar .btn { background: #fff; color: #1f3352; border-color: #fff; }

/* ---------- Marquee ---------- */

.marquee-section { padding-block: 1.25rem 0.5rem; }
.marquee-heading {
  font-family: var(--marquee-font); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brand); font-size: clamp(1.5rem, 3.5vw, 2.1rem); text-align: center;
}

.marquee-frame {
  position: relative;
  padding: 30px;
  border-radius: 20px;
  background: linear-gradient(180deg, #96182d, #5d0c1b);
  box-shadow: 0 10px 30px rgba(77, 10, 22, 0.35), inset 0 0 0 3px #3a0710;
}
.bulbs { position: absolute; inset: 0; pointer-events: none; }
.bulb {
  position: absolute; top: 0; left: 0;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b98a3a, #6e4300 60%, #3d2400);
}
/* Lit layer. With reduced motion every bulb stays lit (static border). */
.bulb::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffbe6, var(--gold) 45%, #e0a000);
  box-shadow: 0 0 10px 4px rgba(255, 211, 107, 0.9);
  @media (prefers-reduced-motion: no-preference) {
    animation: chase 4s linear infinite;
    animation-delay: var(--chase-delay, 0s);
  }
}
.marquee.is-paused .bulb::after { animation-play-state: paused; }
/*
 * Two bright groups, half a loop apart, travel clockwise around the frame once
 * every 4 s over mostly dark bulbs. Each bulb lights twice per loop (0.5 per
 * second), far below the 3-flashes-per-second limit. The fade gives each
 * group a short trailing tail.
 */
@keyframes chase {
  0% { opacity: 0; }
  1.5%, 7% { opacity: 1; }
  16%, 50% { opacity: 0; }
  51.5%, 57% { opacity: 1; }
  66%, 100% { opacity: 0; }
}

.marquee-board {
  position: relative;
  border-radius: 10px;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  background:
    repeating-linear-gradient(180deg, transparent 0 46px, rgba(122, 16, 34, 0.07) 46px 48px),
    var(--cream);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.25);
}
.slides { display: grid; }
.slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 340px) 1fr;
  gap: 1.5rem;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  @media (prefers-reduced-motion: no-preference) {
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }
}
/* The incoming slide waits for the outgoing one to finish fading, so text never overlaps. */
.slide.is-active {
  opacity: 1;
  visibility: visible;
  @media (prefers-reduced-motion: no-preference) {
    transition: opacity 0.3s ease 0.3s, visibility 0s linear 0.3s;
  }
}
.slide--wide-art { grid-template-columns: minmax(0, 480px) 1fr; }
/* The announcement itself is the panel: sized from its own aspect ratio, never cropped. */
.slide-art {
  --art-h: 340px;
  block-size: var(--art-h);
  display: grid;
  place-items: center;
}
.slide-art img {
  display: block;
  inline-size: auto;
  block-size: auto;
  max-inline-size: 100%;
  max-block-size: var(--art-h);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.slide-art .poster { inline-size: 100%; block-size: 100%; }

.poster {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.25rem;
  text-align: center;
  color: var(--cream);
  background: radial-gradient(circle at 50% 35%, #4a1420, #1b0c10 70%);
  border: 3px double var(--gold);
  border-radius: 8px;
  container-type: inline-size;
}
.poster-kicker { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.85rem; color: var(--gold); }
.poster-title {
  font-family: var(--marquee-font);
  text-transform: uppercase;
  font-size: clamp(1.4rem, 0.8rem + 7cqi, 2.4rem);
  line-height: 1.05;
  text-wrap: balance;
}

/* Star billing, like a performer's name under the title on a theatre marquee. */
.billing { margin: 0.1rem 0 0.4rem; display: flex; flex-direction: column; align-items: flex-start; }
.billing-lead { text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.billing-name {
  font-family: var(--marquee-font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--brand);
  text-wrap: balance;
}
.billing--slide .billing-name {
  font-size: clamp(1.4rem, 0.9rem + 2.2vw, 2.2rem);
  padding-block: 0.15em;
  border-block: 2px solid var(--gold);
}
.billing--page .billing-name { font-size: clamp(1.4rem, 1rem + 1.8vw, 2.1rem); }
.billing--card { margin: 0; }
.billing--card .billing-name { font-size: 1.2rem; }
.slide-kicker { margin: 0; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; }
.slide-title {
  margin: 0.2em 0;
  font-family: var(--marquee-font);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.08;
  color: #1a0d10;
}
.slide-when { margin: 0.25rem 0; font-size: 1.2rem; font-weight: 700; }
.slide-where { margin: 0.15rem 0; }
.slide .btn { margin-top: 0.75rem; }
.dot { color: var(--brand); padding-inline: 0.25rem; }

@media (max-width: 680px) {
  .marquee-frame { padding: 24px; }
  .slide { grid-template-columns: 1fr; gap: 0.75rem; align-content: start; }
  .slide, .slide--wide-art { grid-template-columns: 1fr; }
  .slide-art { --art-h: 240px; }
}

.marquee-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1rem; justify-content: center; }
.ctl {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 48px; min-width: 48px; padding: 0 1.1rem;
  font: inherit; font-size: 1.05rem; font-weight: 700;
  color: var(--brand); background: var(--surface);
  border: 2px solid var(--brand); border-radius: 999px; cursor: pointer; text-decoration: none;
}
.ctl:hover { background: #fdeef0; }
.ctl-primary { background: var(--brand); color: #fff; min-width: 7rem; justify-content: center; }
.ctl-primary:hover { background: var(--brand-dark); color: #fff; }
.ctl:disabled { opacity: 0.5; cursor: not-allowed; }
.mq-count { margin: 0 0.5rem; font-weight: 700; min-width: 3.5rem; text-align: center; }
.mq-note { text-align: center; color: var(--muted); font-size: 1rem; margin: 0.5rem 0 0; min-height: 3em; }

/* ---------- Sections, filters, cards ---------- */

.section { margin-block: 2rem 2.5rem; }
.section-head { margin-bottom: 1rem; }
.section-sub { color: var(--muted); margin: 0 0 1rem; max-width: 68ch; }
.section-sub .badge { vertical-align: 0.1em; }

.filters { margin-block: 1.5rem 0.5rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters[hidden] { display: none; }
.filters-label { font-size: 1.1rem; margin: 0 0 0.6rem; }
.filter-buttons, .toggle-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.toggle-row { margin-block: 0.5rem; }
.filter-btn {
  min-height: 48px; padding: 0 1.1rem;
  font: inherit; font-weight: 700; font-size: 1.05rem;
  background: var(--surface); color: var(--ink);
  border: 2px solid #8a7d72; border-radius: 999px; cursor: pointer;
}
.filter-btn:hover { border-color: var(--brand); }
.filter-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-btn[aria-pressed="true"]::before { content: "✓ "; }
.filter-count { font-weight: 400; }

.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.event-row { margin: 0; }
.event-row-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.7rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-inline-size: 0;
}
.event-row--canceled .event-row-inner { border-color: var(--danger); background: #fdecee; }
.event-row .stub {
  flex: 0 0 4.4rem;
  padding: 0.35rem 0.2rem;
  border-radius: 8px;
  gap: 0;
}
.event-row .stub-mon { font-size: 0.8rem; }
.event-row .stub-day { font-size: 1.35rem; }
.event-row .stub-wd { font-size: 0.8rem; }
.event-row-body { flex: 1 1 14rem; min-inline-size: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.event-row-title { margin: 0; font-size: 1.15rem; line-height: 1.25; overflow-wrap: anywhere; }
.event-row-when, .event-row-meta, .event-row-reason { margin: 0; font-size: 1rem; }
.event-row-when { font-weight: 600; }
.event-row-meta, .event-row-reason { color: var(--muted); }
.event-row-reason { color: var(--danger); font-weight: 600; }
.billing--row { margin: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; }
.billing--row .billing-name { font-size: 1rem; }
.event-row-action { margin: 0; margin-inline-start: auto; }
.event-row-action .btn { min-height: 44px; padding-inline: 0.95rem; }
@media (max-width: 640px) {
  .event-row-inner { flex-wrap: wrap; }
  .event-row-action { inline-size: 100%; margin-inline-start: 0; }
  .event-row-action .btn { inline-size: 100%; }
}
.card > article {
  height: 100%;
  display: grid;
  grid-template-columns: 84px 1fr;
  grid-template-rows: 1fr auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(31, 26, 23, 0.06);
}
.card--sim > article { grid-template-columns: 1fr; }
.card--past > article { background: #f6f2ec; }
.stub {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 0.1rem; padding: 1rem 0.25rem; background: var(--brand); color: var(--cream);
  font-weight: 700; text-align: center;
}
.card--past .stub { background: #5b4f47; }
.stub-mon { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; }
.stub-day { font-family: var(--marquee-font); font-size: 1.8rem; line-height: 1.1; }
.stub-wd { font-size: 0.9rem; font-weight: 600; }
.card-body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.card-title { margin: 0; font-size: 1.35rem; }
.card-art {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  block-size: 260px;
  padding: 8px;
  background: #1b0c10;
}
.card-art img { display: block; inline-size: auto; block-size: auto; max-inline-size: 100%; max-block-size: 244px; object-fit: contain; }

.meta { margin: 0; display: grid; gap: 0.35rem; }
.meta > div { display: grid; grid-template-columns: 6rem 1fr; gap: 0.5rem; }
.meta dt { font-weight: 700; color: var(--muted); }
.meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.occ-list { margin: 0; padding-left: 1.1rem; }

.badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; }
.badge {
  display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 700; border: 1px solid currentColor; background: var(--surface);
}
.badge-cat { color: #3b2a80; }
.cat-social { color: #8a1238; }
.cat-sports { color: #1d5c2e; }
.cat-outings { color: #0d4f73; }
.cat-educational { color: #5a3d00; }
.badge-src { color: #3e3a36; background: #f1ebe2; }
.badge-new { color: #fff; background: var(--brand); border-color: var(--brand); }
.badge-past { color: #fff; background: #5b4f47; border-color: #5b4f47; }
.badge-sim { color: #fff; background: #1f3352; border-color: #1f3352; }
.badge-draft { color: #5a3d00; background: var(--warn-bg); }
.badge-sample { color: #5b4f47; font-weight: 600; }
.badge-demo { color: var(--ok); }
.badge-warn { color: var(--danger); background: #fdecee; }

.card-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; }
.form-actions { margin-top: 0.75rem; }
.wrap-actions .btn { flex: 1 1 260px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  min-height: 48px; padding: 0.5rem 1.15rem;
  font: inherit; font-size: 1.05rem; font-weight: 700; line-height: 1.2; text-align: center;
  border-radius: 10px; border: 2px solid transparent; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: #fdeef0; color: var(--brand-dark); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: var(--danger); }
.btn-board { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-board:hover { color: #fff; background: var(--brand-dark); }
.btn-small { min-height: 40px; padding: 0.25rem 0.8rem; font-size: 0.95rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-pay {
  background: #efefef; color: #4a4a4a; border: 2px dashed #7a7a7a; cursor: not-allowed;
}
.pay-row { display: grid; gap: 0.35rem; padding-top: 0.5rem; border-top: 1px dashed var(--line); }
.pay-note { margin: 0; font-size: 0.95rem; color: var(--muted); }
.rsvp-badge { margin: 0; color: var(--ok); font-weight: 700; }
.deadline-note { margin: 0; font-weight: 700; color: #5a3d00; background: var(--warn-bg); padding: 0.35rem 0.6rem; border-radius: 6px; }

.empty { padding: 1.25rem; background: var(--surface); border: 2px dashed var(--line); border-radius: var(--radius); }
.empty p { margin: 0 0 0.75rem; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.archive-link { margin-top: 1.25rem; font-weight: 700; }
.crumb { margin: 1.25rem 0 0.5rem; font-weight: 600; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; }

.about { margin-block: 2rem; padding: 1.25rem 1.5rem; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.about[hidden] { display: none; }
.about li { margin-bottom: 0.4rem; }

.site-footer { margin-top: 3rem; padding-block: 1.5rem 2rem; background: #2b2522; color: #f3ece3; font-size: 1rem; }
.site-footer a { color: var(--gold); }
.footer-nav-label { margin: 0 0 0.25rem; font-weight: 700; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Event page ---------- */

.evp-head { margin-bottom: 1rem; }
.evp-when { font-size: 1.3rem; font-weight: 700; margin: 0; }
.evp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 2rem; align-items: start; }
.evp-aside { position: sticky; top: 1rem; display: grid; gap: 0.75rem; }
@media (max-width: 860px) {
  .evp-grid { grid-template-columns: 1fr; }
  .evp-aside { position: static; }
}
.evp-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.35rem; margin-bottom: 1.25rem; }
.evp-section h2 { font-size: 1.45rem; }
.evp-art img { display: block; inline-size: 100%; block-size: auto; max-block-size: 80vh; object-fit: contain; border-radius: var(--radius); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.evp-art--poster .poster { min-block-size: 320px; }
.notfound { padding-block: 2rem; }

.facts { margin: 0; display: grid; gap: 0.75rem; }
.facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 0.75rem; }
.facts dt { font-weight: 700; color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .facts > div, .meta > div { grid-template-columns: 1fr; gap: 0.1rem; } }
.notes { margin: 0.75rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.src-list { margin: 0; padding-left: 1.1rem; }
.src-list li { margin-bottom: 0.4rem; }

/* ---------- Forms ---------- */

.rsvp-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.rsvp-fieldset:disabled { opacity: 0.7; }
.field { margin: 0 0 1.1rem; border: 0; padding: 0; min-width: 0; }
fieldset.field legend { font-weight: 700; margin-bottom: 0.35rem; padding: 0; }
.field > label, .field-label { display: block; font-weight: 700; margin-bottom: 0.25rem; }
.hint { margin: 0 0 0.35rem; color: var(--muted); font-size: 1rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="time"], select, textarea {
  width: 100%; max-width: 34rem; min-height: 48px; padding: 0.55rem 0.75rem;
  font: inherit; font-size: 1.1rem; color: var(--ink); background: #fff;
  border: 2px solid #8a7d72; border-radius: 8px;
}
textarea { min-height: 6rem; resize: vertical; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
input[type="radio"], input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--brand); flex: none; margin: 0.15rem 0 0; }
.choice { display: flex; align-items: flex-start; gap: 0.6rem; min-height: 44px; padding-block: 0.3rem; font-weight: 400; }
.field-error { margin: 0.35rem 0 0; color: var(--danger); font-weight: 700; min-height: 0; }
.field-error:empty { display: none; }
.stepper { display: inline-flex; align-items: stretch; gap: 0.35rem; }
.stepper input { width: 5.5rem; text-align: center; }
.step { min-width: 48px; min-height: 48px; font-size: 1.5rem; font-weight: 700; background: var(--surface); color: var(--brand); border: 2px solid var(--brand); border-radius: 8px; cursor: pointer; }
.party-total { font-weight: 700; font-size: 1.15rem; }
.demo-flag { background: var(--warn-bg); border-left: 6px solid #b07a00; padding: 0.6rem 0.9rem; margin: 0 0 1rem; font-weight: 600; border-radius: 4px; }
.signup-closed { background: #f1ebe2; border-left: 6px solid var(--muted); padding: 0.75rem 1rem; margin: 0 0 1rem; border-radius: 4px; }
.signup-closed--deadline { border-left-color: #b07a00; background: var(--warn-bg); font-weight: 600; }
.rsvp-confirm { border: 2px solid var(--ok); background: #eef8f0; border-radius: var(--radius); padding: 1rem 1.25rem; }
.rsvp-confirm h2, .rsvp-confirm h3 { color: var(--ok); }
.rsvp-status { min-height: 1.5em; font-weight: 700; color: var(--ok); margin: 0.5rem 0 0; }
.att-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.att-list li { padding: 0.5rem 0.75rem; background: #faf7f2; border-radius: 8px; }
.att-mine { border: 2px solid var(--ok); }
.invite-note { background: #e9f1fb; border-left: 6px solid #1f3352; padding: 0.6rem 0.9rem; border-radius: 4px; }
.inbox-sim { margin-top: 1.5rem; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.inbox-preview { background: #faf7f2; padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.inbox-subject { font-weight: 700; margin: 0 0 0.5rem; }
.inbox-text { white-space: pre-wrap; font: inherit; font-size: 1rem; margin: 0; }

/* ---------- Dialog ---------- */

dialog {
  width: min(760px, 94vw);
  max-height: 90vh;
  padding: 0;
  border: none;
  border-radius: 16px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop { background: rgba(20, 10, 12, 0.6); overflow: hidden; overscroll-behavior: contain; }
.dlg-head { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; align-items: start; padding: 1rem 1.25rem; background: var(--brand-dark); color: var(--cream); }
.dlg-head h2 { grid-column: 1; margin: 0; font-size: 1.5rem; }
.dlg-kicker { grid-column: 1; margin: 0; font-size: 0.95rem; opacity: 0.9; }
.dlg-close { grid-column: 2; grid-row: 1 / span 2; min-height: 48px; padding: 0 1rem; font: inherit; font-weight: 700; color: var(--brand-dark); background: var(--cream); border: none; border-radius: 10px; cursor: pointer; }
.dlg-close:focus-visible { outline-color: var(--gold); }
.dlg-body { padding: 1.25rem; }
.dlg-section { margin-top: 1.25rem; }
.art-large img { display: block; inline-size: 100%; block-size: auto; max-block-size: 78vh; object-fit: contain; }

/* ---------- Staff demo areas ---------- */

.signin { padding-block: 1.5rem; }
.signin-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.signin-btn {
  width: 100%; min-height: 72px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0.1rem 0.75rem; align-items: center;
  padding: 0.85rem 1rem; text-align: left; font: inherit; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 2px solid #8a7d72; border-radius: var(--radius);
}
.signin-btn:hover { border-color: var(--brand); }
.signin-name { font-weight: 700; font-size: 1.15rem; grid-column: 2; }
.signin-scope { grid-column: 2; color: var(--muted); font-size: 0.95rem; }
.club-swatch { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 10px; background: var(--c-bg, var(--brand)); box-shadow: inset 0 0 0 4px var(--c-accent, var(--gold)); }

.club-head { margin-top: 1rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--c-bg); color: var(--c-ink); }
.club-head h1 { font-family: var(--c-font-head); }
.club-head p { margin: 0; }
.staff-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.35rem; margin-block: 1.25rem; }
.draft-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.6rem; }
.draft-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.75rem 1rem; background: #faf7f2; border-radius: 8px; }
.review-note { margin: 0.35rem 0 0; }
.status-chip { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; background: #ece6dc; color: var(--ink); border: 1px solid #8a7d72; }
.status-submitted { background: #e9f1fb; color: #1f3352; border-color: #1f3352; }
.status-approved { background: #eef8f0; color: var(--ok); border-color: var(--ok); }
.status-changes_requested { background: #fdecee; color: var(--danger); border-color: var(--danger); }
.plan-planned { background: #eef8f0; color: var(--ok); border-color: var(--ok); }
.plan-suppressed, .plan-cancelled { background: #fdecee; color: var(--danger); border-color: var(--danger); }

.ed-step { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.sim-banner { background: #e9f1fb; border-left: 6px solid #1f3352; padding: 0.6rem 0.9rem; border-radius: 4px; }
.gen-steps { background: #faf7f2; border-radius: 8px; padding: 0.75rem 1rem; margin-top: 0.75rem; }
.gen-steps ul { margin: 0; padding-left: 1.1rem; }
.gen-steps .skipped { color: var(--danger); }
.fields-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 1.25rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.drop-zone { border: 3px dashed #8a7d72; border-radius: var(--radius); padding: 1.25rem; text-align: center; background: #faf7f2; }
.drop-zone.is-over { border-color: var(--brand); background: #fdeef0; }
.drop-zone p { margin: 0 0 0.5rem; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-zone:has(.file-input:focus-visible) .file-label { outline: 3px solid var(--focus); outline-offset: 3px; }
.art-choices { border: 0; padding: 0; margin: 0 0 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.art-choices legend { font-weight: 700; margin-bottom: 0.35rem; padding: 0; }
.art-choice { align-items: center; min-height: 48px; padding: 0 1rem; border: 2px solid var(--line); border-radius: 10px; }
.art-choice:has(input:checked) { border-color: var(--brand); background: #fdeef0; }
.art-panel { display: grid; gap: 0.5rem; }
.art-current { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; margin-top: 0.5rem; }
.art-current > div:last-child { flex: 1 1 260px; min-width: 0; }
.art-thumb { inline-size: 240px; block-size: auto; max-block-size: 200px; object-fit: contain; background: #1b0c10; border-radius: 8px; }
.art-thumb--sim { background: none; max-block-size: none; }
.preview-box { margin-top: 1.25rem; padding: 1rem; border: 3px dashed #1f3352; border-radius: var(--radius); background: #f5f8fc; }
.preview-note { font-weight: 700; color: #1f3352; margin: 0 0 0.75rem; }
.signup-preview { margin-top: 1.25rem; padding: 1rem; border: 3px dashed #b07a00; border-radius: var(--radius); background: #fffbea; }
.editor-actions { position: sticky; bottom: 0; background: var(--surface); padding-block: 0.75rem; border-top: 1px solid var(--line); }

.review-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.review-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.35rem; }
.review-item h2 { font-size: 1.4rem; }
.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; margin-bottom: 1rem; }
@media (max-width: 760px) { .review-grid { grid-template-columns: 1fr; } }
details summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.type-card { background: #faf7f2; border-radius: 8px; padding: 1rem; }
.type-card p { margin: 0; }
.tpl-frame { display: block; width: 100%; height: 760px; border: 2px solid var(--line); border-radius: 8px; background: #fff; margin-top: 0.5rem; }
.tpl-mobile { width: 375px; max-width: 100%; }
.table-wrap { overflow-x: auto; margin-block: 0.75rem; }
.plan-table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.plan-table caption { text-align: left; font-weight: 700; padding-bottom: 0.5rem; }
.plan-table th, .plan-table td { text-align: left; vertical-align: top; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
.plan-table th { background: #f1ebe2; }
.plan-table code { font-size: 0.85rem; overflow-wrap: anywhere; }
.wh-log { padding-left: 1.4rem; }
.wh-log li { margin-bottom: 0.4rem; }

@media (pointer: coarse) {
  .btn, .ctl, .filter-btn { min-height: 52px; }
}

@media (forced-colors: active) {
  .bulb { forced-color-adjust: none; }
  .filter-btn[aria-pressed="true"] { outline: 3px solid CanvasText; }
}

/* ---------- Tickets and event status ---------- */

.ticket-stats { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 0.75rem; }
.ticket-stat { flex: 1 1 8rem; padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: #fbf7f1; }
.ticket-stat dt { font-weight: 700; color: var(--muted); }
.ticket-stat dd { margin: 0; font-family: var(--marquee-font); font-size: 2rem; line-height: 1.1; color: var(--brand); }
.ticket-unknown { font-weight: 700; }
.ticket-mine, .rsvp-kept { font-weight: 700; color: var(--ok); }

.badge-canceled { color: #fff; background: #a3001b; border-color: #a3001b; }
.kicker-canceled { color: #a3001b; }
.status-banner { margin: 0.25rem 0; padding: 0.6rem 0.85rem; border-radius: 8px; background: #fde8eb; border: 2px solid #a3001b; color: #4a000c; }
.status-banner p { margin: 0; }
.status-banner .status-demo { font-size: 0.9rem; margin-top: 0.25rem; }

.slide, .card-art, .evp-art { position: relative; }
.slide.is-canceled { overflow: clip; }
/* A sign laid across the slide. It is real text, so screen readers announce it first. */
.cancel-sign {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.cancel-sign-band {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  inline-size: 115%;
  padding: 0.35em 1em;
  rotate: -9deg;
  text-align: center;
  color: #fff;
  background: rgba(163, 0, 27, 0.94);
  border-block: 4px solid #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.cancel-sign-word {
  font-family: var(--marquee-font);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: clamp(2rem, 1rem + 4vw, 4rem);
  line-height: 1;
}
.cancel-sign-reason { font-size: clamp(1rem, 0.85rem + 0.6vw, 1.3rem); font-weight: 700; max-inline-size: 40ch; overflow-wrap: anywhere; }
.card-art .cancel-sign-word, .evp-art .cancel-sign-word { font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem); }
.card-art .cancel-sign-reason { font-size: 1rem; }
