.site-header {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.nav-links {
  flex: 1 1 280px;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-end;
  overflow-x: auto;
}

.nav-links a {
  flex: 0 0 auto;
  white-space: nowrap;
}

body {
  overflow-x: hidden;
}

.event-guide {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 56px 40px 96px;
}

.event-guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 42px 0 28px;
}

.event-guide-hero > * {
  min-width: 0;
}

.event-guide-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 84px);
  line-height: 0.94;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.event-guide-hero p {
  max-width: min(820px, 100%);
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-guide-stat {
  width: min(220px, 100%);
  justify-self: end;
  border: 1px solid rgba(241, 201, 90, 0.34);
  border-radius: 8px;
  padding: 22px;
  background: rgba(18, 29, 34, 0.82);
}

.event-guide-stat strong {
  display: block;
  color: var(--gold);
  font-size: 44px;
  line-height: 1;
}

.event-guide-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.state-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(18, 29, 34, 0.72);
}

.state-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.state-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(12, 21, 25, 0.72);
}

.state-card strong {
  display: block;
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
}

.state-card span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.event-toolbar {
  position: sticky;
  top: 72px;
  z-index: 12;
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  margin-top: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 17, 20, 0.88);
  backdrop-filter: blur(14px);
}

.filter-button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  background: rgba(23, 38, 44, 0.92);
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  border-color: var(--gold);
  color: #141a12;
  background: var(--gold);
}

.event-table-wrap {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 29, 34, 0.88);
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.event-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  table-layout: fixed;
}

.event-table th,
.event-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
}

.event-table th {
  color: #eaf5ee;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  background: #122027;
}

.event-table tr:last-child td {
  border-bottom: 0;
}

.event-table tbody tr:hover {
  background: rgba(241, 201, 90, 0.055);
}

.event-table th:nth-child(1),
.event-table td:nth-child(1) {
  width: 180px;
}

.event-table th:nth-child(2),
.event-table td:nth-child(2) {
  width: 230px;
}

.event-table th:nth-child(3),
.event-table td:nth-child(3) {
  width: 250px;
}

.event-table th:nth-child(4),
.event-table td:nth-child(4) {
  width: 220px;
}

.event-pill,
.state-pill {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 9px;
  color: #e9f4ee;
  font-size: 11px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.055);
}

.event-pill {
  color: #141a12;
  border-color: var(--gold);
  background: var(--gold);
}

.event-name {
  color: var(--text);
  font-weight: 850;
}

.event-rule,
.event-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    width: min(100%, 390px);
    min-height: auto;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 18px;
  }

  .brand {
    width: 100%;
  }

  .nav-links {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 10px 12px;
    white-space: nowrap;
  }

  .event-guide {
    width: min(100%, 390px);
    max-width: 390px;
    margin: 0;
    padding: 32px 18px 72px;
  }

  .event-guide-hero h1 {
    font-size: 38px;
    line-height: 1;
  }

  .event-guide-hero p {
    font-size: 16px;
  }

  .event-guide-stat {
    width: 100%;
    justify-self: stretch;
  }

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

  .event-toolbar {
    top: 0;
  }
}
