:root {
  --bg: #12110e;
  --bg2: #1c1a16;
  --card: #242118;
  --ink: #f4efe2;
  --muted: #b7b09a;
  --gold: #d4a017;
  --gold-dim: #8a6a10;
  --indoor: #7eb8ff;
  --outdoor: #4ADE80; /* was #e0c078 gold-tan; grass/emerald so indoor blue and outdoor read as clearly different */
  --line: rgba(212, 160, 23, 0.22);
  --banner: #3a2a08;
  --banner-ink: #f3e2b0;
  --header-h: 0px;
  --badge-size: 1.05rem;
  --badge-pr: #e8d5a3;
  --badge-sb-blue: #8fbfb8; /* previous shield color; set --badge-sb to this to switch back */
  --badge-sb-maroon-dark: #8C2B3A; /* Andrew's suggested maroon; too dark at 16px on --bg */
  --badge-sb: #C4515E; /* brighter maroon so the shield still reads at 16px */
  --badge-valhalla: #d4a017;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.4;
}
a { color: var(--gold); }
.notice {
  background: var(--banner);
  color: var(--banner-ink);
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  padding: 0.45rem 1rem;
}
.notice.gap { background: #3a2410; }
header.site {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, #0e0d0b 0%, rgba(18, 17, 14, 0.97) 100%);
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 1rem 0.5rem;
}
.site-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.logo span { color: var(--gold); }
nav.primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}
nav.primary a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
}
nav.primary a[aria-current="page"],
nav.primary a.current {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.subnav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  align-items: center;
}
.subnav .lbl {
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pill {
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  background: var(--card);
}
.pill[aria-current="page"] {
  background: var(--gold);
  color: #16140e;
  border-color: var(--gold);
}
.controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.55rem;
  flex-wrap: wrap;
}
.tabs {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 650 0.85rem/1 system-ui, sans-serif;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
}
.tabs button[aria-selected="true"] {
  background: var(--gold);
  color: #16140e;
}
label.jump {
  margin-left: auto;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
}
select {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  font: 500 0.85rem/1.2 system-ui, sans-serif;
  max-width: 52vw;
}
main { max-width: 1100px; margin: 0 auto; padding: 1rem 1rem 5rem; }
.pane[hidden] { display: none; }
.lede, .intro {
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.2rem 0 1rem;
}
.swatch {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--gold);
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 0.2rem;
}
.chips { display: flex; flex-direction: column; gap: 0.45rem; margin: 0 0 1.1rem; }
.chip-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.2rem;
}
.chip-label {
  flex: 0 0 auto;
  font-family: system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.35rem 0.1rem;
}
a.chip {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink);
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  background: var(--card);
}
h1.page { margin: 0 0 0.15rem; font-size: 1.25rem; }
h1.page span { color: var(--gold); }
.updated { font-family: system-ui, sans-serif; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.8rem; }
h2.group-title {
  margin: 1.4rem 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
section.event {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 0.8rem 0.5rem;
  margin: 0 0 0.75rem;
  scroll-margin-top: calc(var(--header-h) + 8px);
}
section.event h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
section.event h3 .count {
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}
.state { font-family: system-ui, sans-serif; font-size: 0.72rem; color: var(--muted); margin: 0 0 0.4rem; }
ol.list { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  gap: 0.4rem 0.6rem;
  align-items: start;
  padding: 0.42rem 0;
  border-top: 1px solid rgba(244, 239, 226, 0.07);
}
.row.beyond { display: none; }
.event.show-all .row.beyond { display: grid; }
.row.recent .mark-text { color: var(--gold); }
.gold { color: var(--gold); font-weight: 700; }
.rk { font-family: system-ui, sans-serif; font-weight: 700; color: var(--gold); font-size: 0.85rem; padding-top: 0.1rem; }
.name { font-weight: 650; }
.prog, .note {
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.1rem;
}
.markblock { text-align: right; }
.mark {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28rem;
  flex-wrap: nowrap;
}
.mark-text { min-width: 0; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--badge-size);
  height: var(--badge-size);
  flex: 0 0 var(--badge-size);
  line-height: 0;
}
.badge-icon { width: 100%; height: 100%; display: block; }
/* Color is scoped to the icon, never the whole row. */
.badge.badge-pr, .badge-icon.badge-pr { color: var(--badge-pr); }
.badge.badge-sb, .badge-icon.badge-sb { color: var(--badge-sb); }
.badge.badge-valhalla, .badge-icon.badge-valhalla { color: var(--badge-valhalla); }
.legend {
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.75rem 0.55rem;
  margin: 0 0 1rem;
}
.legend-items {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}
.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.3;
}
.legend-item .badge-icon,
.legend-item .swatch {
  flex: 0 0 0.95rem;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.08rem;
}
.legend-label { font-weight: 500; color: var(--ink); }
.legend-note {
  margin: 0.45rem 0 0;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.4;
}
@media (min-width: 720px) {
  .legend-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
  }
}

.meet, .year { font-family: system-ui, sans-serif; font-size: 0.7rem; color: var(--muted); }
.tag {
  display: inline-block;
  font-family: system-ui, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
  margin-left: 0.15rem;
  font-weight: 700;
}
.tag.indoor { background: rgba(126, 184, 255, 0.15); color: var(--indoor); }
.tag.outdoor { background: rgba(74, 222, 128, 0.15); color: var(--outdoor); }
button.more {
  display: block;
  width: 100%;
  margin: 0.35rem 0 0;
  padding: 0.4rem;
  background: transparent;
  color: var(--gold);
  border: 1px dashed var(--line);
  border-radius: 8px;
  font: 600 0.78rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.parents { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.parents h2 { font-size: 1rem; color: var(--gold); }
.parents-grid { display: grid; gap: 1rem; }
@media (min-width: 720px) {
  .parents-grid { grid-template-columns: 1fr 1fr; }
}
.card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin: 0 0 0.75rem;
}
.card h3 { margin: 0.1rem 0 0.35rem; }
.kicker {
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.35rem;
}
.idline { font-family: ui-monospace, Menlo, monospace; font-size: 0.72rem; color: var(--muted); }
.card ul { margin: 0.35rem 0 0; padding-left: 1.1rem; font-family: system-ui, sans-serif; font-size: 0.85rem; color: var(--muted); }
footer.site {
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  border-top: 1px solid var(--line);
}
footer.site a { color: var(--gold); }
