:root {
  --hunter: #1F4D33;
  --lodge: #1F3D2B;
  --cream: #F7F5EF;
  --header-fill: #EAEDE4;
  --gold: #B98A2E;
  --ink: #21302A;
  --muted: #5E6B63;
  --line: #DAD8CE;
  --card: #FFFFFF;
  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

/* ---- Site header (the lodge wall) ---- */
.site-header {
  background: var(--lodge);
  padding: 0.9rem 1rem;
}

.site-header a {
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

/* ---- Layout ---- */
main {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

a {
  color: var(--hunter);
}

/* ---- Headings: default sans; serif is reserved for names (Nameplate rule) ---- */
h1, h2, h3, h4, h5 {
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.name {
  font-family: var(--serif);
  color: var(--hunter);
  font-weight: 600;
}

.page-title {
  font-size: 1.9rem;
  margin-bottom: 0.25rem;
}

/* Section eyebrow: sans, uppercase, quiet — for "Running", "Class schedule" etc. */
.section-title {
  font-family: var(--sans);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

/* ---- Page hero (per-show header) ---- */
.hero {
  margin-bottom: 1.75rem;
}

.hero .meta {
  color: var(--muted);
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
}

/* ---- Tab nav between show pages ---- */
.tabs {
  display: flex;
  gap: 0.4rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.tabs a {
  text-decoration: none;
  color: var(--hunter);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}

/* ---- Sections & cards ---- */
.show-section {
  margin-block: 2rem;
}

.show-section .rings {
  margin-top: 0.75rem;
}

.ring-name {
  font-family: var(--sans);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.25rem 0 0.5rem;
}

.day-heading {
  font-family: var(--sans);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.25rem;
}

.show-card {
  margin-block: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.show-card .name {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.show-card .name a {
  text-decoration: none;
}

.show-card p {
  margin-block: 0.3rem;
  color: var(--muted);
}

.card-meta {
  font-variant-numeric: tabular-nums;
}

.card-time {
  color: var(--ink) !important;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---- Live board ---- */
.progress {
  color: var(--ink) !important;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.board-slot {
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.slot-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.board-slot.up .slot-label {
  color: var(--hunter);
}

.slot-entry {
  margin: 0;
  font-weight: 600;
  color: var(--ink) !important;
  font-variant-numeric: tabular-nums;
}

.board-note {
  color: var(--muted);
  font-style: italic;
}

/* ---- Results table ---- */
.table-scroll {
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.results-table th,
.results-table td {
  padding: 0.6rem 0.65rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.results-table th {
  background: var(--header-fill);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.results-table td:first-child {
  font-weight: 700;
  width: 3.5rem;
  white-space: nowrap;
}

/* Placings Gold: brass appears only where something was won (first place) */
.results-table .first-place td {
  background: color-mix(in srgb, var(--gold) 9%, transparent);
}

.results-table .first-place td:first-child {
  box-shadow: inset 0.28rem 0 0 var(--gold);
  color: var(--gold);
}

/* ---- Empty states ---- */
.empty-state {
  color: var(--muted);
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  font-size: 0.95rem;
}

/* ---- Promo / sponsor slots: never render as broken empty boxes ---- */
#promo:empty,
#sponsors:empty {
  display: none;
}

/* ---- Show sponsors ---- */
#sponsors {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

#sponsors h2 {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.sponsor-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sponsor-strip li {
  display: flex;
  flex: 0 1 10rem;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 3.5rem;
}

.sponsor-strip img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

.sponsor-strip span {
  display: inline-block;
  max-width: 100%;
  padding: 0.3rem 0.65rem;
  color: var(--muted);
  background: var(--header-fill);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
  text-align: center;
}

/* Registration-open chip: brass border on gold token, no new machinery */
.chip {
  display: inline-block;
  margin: 0.5rem 0 0;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.chip-gold {
  border: 1px solid var(--gold);
  color: var(--gold);
}

/* ===== Marketing home (front door) =====
   Scoped to home-only ids/classes; shared public-page selectors untouched. */

/* Hero: #hero overrides the shared .hero base for the front door only. */
.home-hero {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.home-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hunter);
}

.home-hero h1 {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin-bottom: 0.75rem;
}

.home-hero .lede {
  margin: 0;
  max-width: 56ch;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--ink);
}

/* Two audience panels: stacked on phones, side-by-side once there's room. */
.audience-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 620px) {
  .audience-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.home-panel {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.home-panel h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.home-panel > p {
  margin: 0 0 1.5rem;
  flex: 1 1 auto;
  color: var(--ink);
}

/* CTA buttons: filled hunter primary + outlined secondary.
   Full-width on phones; auto-width and inline once panels have room. */
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
}

.cta {
  display: block;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--hunter);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.cta-primary {
  background: var(--hunter);
  color: var(--cream);
}

.cta-primary:hover {
  background: var(--lodge);
}

.cta-secondary {
  background: var(--card);
  color: var(--hunter);
}

.cta-secondary:hover {
  background: var(--header-fill);
}

/* On wider panels, keep buttons to their content width and left-aligned
   rather than stretching the full card. */
@media (min-width: 620px) {
  .cta {
    align-self: flex-start;
    min-width: 12rem;
  }
}

/* Live strip: reuses the shared .show-card; only the status label is new. */
.strip-status {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

.strip-status.is-running {
  color: var(--hunter) !important;
}

.strip-more {
  margin-top: 1.1rem;
  font-weight: 600;
}

.strip-more a {
  text-decoration: none;
}

/* ---- Contact form ----
   Scoped to the contact panel; reuses the shared card/token language.
   Capped width so the form doesn't sprawl on the full-width public page. */
.contact-form {
  max-width: 34rem;
}

.contact-form p {
  margin: 0 0 1.1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
}

.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--hunter);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hunter) 18%, transparent);
}

.contact-form .cta {
  margin-top: 0.25rem;
}

/* Full-width tap target on phones; sized to content once there's room. */
@media (min-width: 620px) {
  .contact-form .cta {
    display: inline-block;
    width: auto;
  }
}

/* ---- Hero lede (thank-you / error confirmation pages) ---- */
.lede {
  margin-top: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

#promo .flyer {
  max-width: 100%;
  border-radius: 8px;
  display: block;
  margin: 0 auto 1rem;
}

#promo p {
  white-space: pre-line;
}
