/* ORCA — Oklahoma Racing & Coursing Association
   The countryside photo is fixed behind the whole site. The hero, page
   headers and membership band are "windows" onto it; everything else sits
   on clean white and soft-gray bands. */

:root {
  color-scheme: dark;
  --navy: #0a1230;
  --navy-ink: #0a1230;
  --heading: #ffffff;
  --blue: #3d62d8;
  --blue-dark: #2f51bd;
  --blue-pale: rgba(255, 255, 255, 0.09);
  --link: #a9bcff;
  --gold: #e3b552;
  --gold-dark: #cfa03c;
  --ink: #ffffff;
  --text: rgba(255, 255, 255, 0.84);
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.26);
  --line-hover: rgba(255, 255, 255, 0.42);
  --soft: rgba(255, 255, 255, 0.06);
  --surface: rgba(255, 255, 255, 0.07);
  --band-a: rgba(9, 16, 42, 0.8);
  --band-b: rgba(9, 16, 42, 0.64);
  --danger: #ff9a90;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 61, 0.06), 0 1px 3px rgba(15, 27, 61, 0.08);
  --shadow-md: 0 6px 24px rgba(15, 27, 61, 0.1);
  --shadow-lg: 0 18px 50px rgba(15, 27, 61, 0.18);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --wrap: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Fixed background photo, framed on the sunset and tree line. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('../images/New.png') center 30% / cover no-repeat;
}

@media (max-width: 800px) {
  body::before { background-image: url('../images/background-small.jpg'); }
}

/* Navy wash so text over the photo is always readable. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 27, 61, 0) 0%, rgba(15, 27, 61, 0.1) 40%, rgba(15, 27, 61, 0.5) 100%),
    linear-gradient(90deg, rgba(15, 27, 61, 0.74) 0%, rgba(15, 27, 61, 0.42) 42%, rgba(15, 27, 61, 0.06) 78%);
}

img { max-width: 100%; }
a { color: var(--link); }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 16, 42, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--heading);
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #000;
  object-fit: cover;
}

.brand-name, .brand-sub { display: block; }

.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.page-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-menu {
  display: flex;
  gap: 4px;
}

.page-menu a {
  display: block;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
}

.desktop-menu a {
  position: relative;
  padding: 10px 13px;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.desktop-menu a:hover { color: #fff; background: var(--blue-pale); }

.desktop-menu a.active { color: var(--gold); font-weight: 600; }

.desktop-menu a.active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  padding: 6px 16px 16px;
  border-top: 1px solid var(--line);
}

.mobile-menu.active { display: block; }

.mobile-menu a {
  padding: 13px 12px;
  border-radius: 8px;
  font-size: 16.5px;
}

.mobile-menu a.active { background: var(--blue-pale); color: var(--gold); font-weight: 600; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.2;
  text-decoration: none;
  padding: 13px 22px;
  border: 1.5px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); box-shadow: var(--shadow-md); }

.button.small { padding: 10px 16px; font-size: 14.5px; }

.button.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-ink);
}

.button.gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

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

.button.ghost:hover { background: var(--surface); border-color: #fff; color: var(--navy); }

.button.outline {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.button.outline:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--line-hover); box-shadow: none; }

.button:disabled { opacity: 0.6; cursor: default; box-shadow: none; }

/* ---------- Hero (home) ---------- */
.hero { color: #fff; }

.hero .wrap {
  padding-top: 110px;
  padding-bottom: 150px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.hero .kicker, .page-head .kicker, .cta .kicker { color: var(--gold); }

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin: 20px 0 20px;
  max-width: 720px;
}

.hero-lead {
  font-size: 19px;
  line-height: 1.6;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Page head (inner pages) ---------- */
.page-head { color: #fff; }

.page-head .wrap {
  padding-top: 64px;
  padding-bottom: 68px;
}

.crumbs {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}

.crumbs a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { margin: 0 6px; }

.page-head h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 4.8vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.4px;
}

.page-head .lead {
  margin-top: 14px;
  max-width: 680px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Bands ---------- */
main { flex: 1; display: flex; flex-direction: column; }

.band { padding: 76px 0; }
.band.white, .band.soft {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.band.white { background: var(--band-a); }
.band.soft { background: var(--band-b); }
.band.grow { flex: 1; }
.band.page { padding: 52px 0 84px; }

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(27px, 3.4vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.3px;
  color: var(--heading);
  margin: 12px 0 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-bottom: 30px;
}

.text-link {
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  white-space: nowrap;
}

.text-link:hover { text-decoration: underline; }

/* Stats card that overlaps the bottom of the hero */
.band.stats-band { padding: 0 0 8px; background: var(--band-a); -webkit-backdrop-filter: none; backdrop-filter: none; }

.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: -58px 0 0;
  padding: 0;
  list-style: none;
  background: rgba(16, 26, 62, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.stats li { padding: 26px 28px; }
.stats li + li { border-left: 1px solid var(--line); }

.stat-value {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.2;
  color: var(--heading);
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-grid .prose { margin-top: 22px; }
.prose p + p { margin-top: 16px; }
.prose strong { color: var(--ink); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.card-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--heading);
  margin-bottom: 14px;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font-weight: 500;
  color: var(--ink);
}

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

.check-list span {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--gold);
  background: var(--blue-pale);
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* Membership call-to-action (window onto the photo) */
.cta {
  color: #fff;
  background: rgba(15, 27, 61, 0.35);
}

.cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 84px;
  padding-bottom: 84px;
}

.cta h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.15;
  margin: 14px 0 10px;
}

.cta p { max-width: 540px; font-size: 18px; color: rgba(255, 255, 255, 0.9); }

/* ---------- Events ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-bottom: 30px;
}

.year-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.year-tabs:empty { display: none; }

.year-tab {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 7px 18px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.year-tab:hover { color: var(--ink); background: var(--soft); }
.year-tab.active { background: var(--gold); color: var(--navy-ink); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
}

.legend li { display: flex; align-items: center; gap: 7px; }

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.group-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 40px 0 14px;
}

.group-title:first-of-type { margin-top: 0; }

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event {
  --type: #cfd3e6;
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 6px 20px;
  padding: 12px 18px 12px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.event:hover { border-color: var(--line-hover); box-shadow: var(--shadow-md); }

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 68px;
  padding: 8px 6px;
  border-radius: 8px;
  background: var(--type);
  color: #10131f;
  text-align: center;
  line-height: 1.1;
}

.event-month {
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.event-days {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  margin-top: 3px;
  white-space: nowrap;
}

.event-body { min-width: 0; }

.event-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17.5px;
  line-height: 1.35;
  color: var(--heading);
  overflow-wrap: anywhere;
}

.event-meta {
  font-size: 14px;
  color: var(--muted);
}

.event-note {
  font-size: 14.5px;
  color: var(--text);
  margin-top: 2px;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.event-btn {
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  padding: 9px 14px;
  border: 1.5px solid var(--blue);
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.event-btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.event-btn.secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.event-btn.secondary:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--line-hover); }

.event-btn.danger { background: var(--surface); border-color: rgba(255, 154, 144, 0.45); color: var(--danger); }
.event-btn.danger:hover { background: rgba(255, 154, 144, 0.16); border-color: var(--danger); }

.badge {
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 6px 10px;
  border-radius: 6px;
}

.badge-cancelled { background: rgba(255, 154, 144, 0.16); color: var(--danger); }

.event.is-past { background: transparent; box-shadow: none; }
.event.is-past .event-date { opacity: 0.6; }
.event.is-past .event-name { color: var(--muted); }

.event.is-cancelled .event-name {
  text-decoration: line-through;
  color: var(--muted);
}

.events-message {
  font-size: 16.5px;
  color: var(--muted);
  padding: 18px 0;
}

/* ---------- Contact + Links ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 26px;
}

.contact-role {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--heading);
  margin-top: 6px;
}

.contact-extra { font-size: 14.5px; color: var(--muted); margin-top: 2px; }

.contact-email {
  display: inline-block;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  width: 100%;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-email:hover { text-decoration: underline; }

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 24px 26px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.link-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); }

.link-name {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
  color: var(--heading);
}

.link-desc { display: block; font-size: 14.5px; color: var(--muted); margin-top: 2px; }

.link-arrow {
  flex: none;
  font-size: 20px;
  color: var(--gold);
  transition: transform 0.15s ease;
}

.link-card:hover .link-arrow { transform: translateX(4px); }

/* ---------- ASFA history ---------- */
.history-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  align-items: start;
}

.history-nav {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  max-height: calc(100vh - 124px);
  overflow-y: auto;
}

.history-nav-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px 6px;
}

.pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.pill:hover { background: var(--soft); }
.pill.active { background: var(--gold); color: var(--navy-ink); font-weight: 600; }

.pill-count {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.pill.active .pill-count { color: rgba(10, 18, 48, 0.7); }

.history-select {
  display: none;
  font: inherit;
  font-size: 16.5px;
  font-weight: 500;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.history-main { padding: 28px; min-width: 0; }

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-bottom: 18px;
}

.history-head .section-title { margin: 0; font-size: 26px; }

.history-search {
  font: inherit;
  font-size: 15.5px;
  padding: 10px 14px;
  width: min(280px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.history-search:focus, .history-select:focus {
  outline: 3px solid rgba(44, 75, 176, 0.25);
  border-color: var(--blue);
}

.table-scroll { overflow-x: auto; }

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.history-table th {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  background: var(--soft);
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.history-table th:first-child { border-radius: 6px 0 0 6px; }
.history-table th:last-child { border-radius: 0 6px 6px 0; }

.history-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.history-table tbody tr:last-child td { border-bottom: 0; }
.history-table tbody tr:hover { background: rgba(255, 255, 255, 0.04); }

.history-table td:first-child {
  font-weight: 700;
  color: var(--heading);
  white-space: nowrap;
}

.history-table tr.not-held td { color: var(--muted); font-style: italic; }
.history-table tr.not-held td:first-child { font-style: normal; }

.history-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #070d24;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-top: 60px;
  padding-bottom: 44px;
}

.footer-brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  color: #fff;
}

.footer-about { margin-top: 10px; max-width: 360px; }

.footer-title {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-fine {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .desktop-menu, .site-nav .button { display: none; }
  .menu-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .history-layout { grid-template-columns: 1fr; gap: 0; }
  .history-nav { display: none; }
  .history-select { display: block; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .footer-content > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .header-content { min-height: 66px; }
  .brand-sub { display: none; }
  .hero .wrap { padding-top: 64px; padding-bottom: 110px; }
  .hero-lead { font-size: 17.5px; }
  .page-head .wrap { padding-top: 44px; padding-bottom: 48px; }
  .band { padding: 56px 0; }
  .band.page { padding: 36px 0 64px; }
  .cta .wrap { padding-top: 60px; padding-bottom: 60px; }
  .card-grid { grid-template-columns: 1fr; }
  .stats li { padding: 18px 20px; }
  .stat-value { font-size: 21px; }
  .card, .history-main { padding: 20px; }

  .event { grid-template-columns: 70px 1fr; gap: 10px 14px; padding: 12px; }
  .event-date { min-height: 62px; }
  .event-days { font-size: 20px; }
  .event-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .event-actions:empty { display: none; }

  /* History table becomes a stack of small cards. */
  .history-table thead { display: none; }
  .history-table, .history-table tbody, .history-table tr, .history-table td { display: block; }
  .history-table tr {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
  }
  .history-table td { border: 0; padding: 2px 0; }
  .history-table td:empty { display: none; }
  .history-table td::before {
    content: attr(data-label) ": ";
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
  }
  .history-table td:first-child { font-size: 18px; }
  .history-table td:first-child::before { content: ""; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
