.classic-racing-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  color: #101322;
}

.sport-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
  justify-content: space-between;
  padding: 1.1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #07113e 0%, #162869 58%, #f3f6ff 58%, #ffffff 100%);
  border: 1px solid #d9deef;
  box-shadow: 0 18px 40px rgba(0, 10, 61, 0.14);
}

.sport-hero-copy {
  flex: 1 1 540px;
  min-width: 260px;
  padding: 0.3rem;
}

.eyebrow {
  margin: 0 0 0.35rem 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #f0c14a;
}

.sport-hero .section-heading {
  color: #ffffff;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 0.7rem 0;
}

.hero-summary {
  max-width: 566px;
  margin: 0;
  color: #eef2ff;
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-stat-panel {
  flex: 0 1 330px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-self: stretch;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(217, 222, 239, 0.9);
  border-radius: 14px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero-stat-number {
  font-size: 2rem;
  line-height: 1;
  color: #000a3d;
  font-weight: 800;
}

.hero-stat-label {
  color: #39415e;
  font-size: 0.94rem;
  line-height: 1.35;
}

.article-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  margin: 0.25rem 0 0.5rem 0;
  color: #000a3d;
}

.subheading {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 750;
  color: #000a3d;
  margin: 0.4rem 0 0.15rem 0;
  line-height: 1.22;
}

.styled-paragraph {
  margin: 0.15rem 0 0.45rem 0;
  color: #202538;
  font-size: 1rem;
  line-height: 1.64;
}

.article-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.article-card {
  flex: 1 1 420px;
  padding: 0.95rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e0e4ef;
  box-shadow: 0 10px 26px rgba(0, 10, 61, 0.07);
}

.card-heading {
  font-size: 1.13rem;
  color: #000a3d;
  margin: 0 0 0.4rem 0;
  line-height: 1.25;
}

.event-tools-section {
  border-top: 1px solid #dfe4f0;
  padding-top: 0.4rem;
}

.event-tools-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.event-actions {
  flex: 0 1 360px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.event-search-label {
  font-weight: 700;
  color: #000a3d;
}

.event-filter-input {
  width: 100%;
  border: 1px solid #cbd3e4;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  background: #ffffff;
  color: #101322;
}

.event-filter-input:focus {
  outline: 3px solid rgba(0, 10, 61, 0.16);
  border-color: #000a3d;
}

.detail-buttons {
  display: none;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.event-button {
  border: 1px solid #000a3d;
  background: #000a3d;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
}

.event-button:hover,
.event-button:focus {
  background: #142169;
  outline: none;
}

.responsive-table-shell {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #dfe4f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(0, 10, 61, 0.06);
}

.events-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.events-table th,
.events-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.72rem;
  border-bottom: 1px solid #edf0f7;
  font-size: 0.94rem;
  line-height: 1.42;
}

.events-table th {
  position: sticky;
  top: 0;
  background: #000a3d;
  color: #ffffff;
  z-index: 1;
  font-weight: 750;
}

.events-table tbody tr:nth-child(even) {
  background: #f8faff;
}

.events-table tbody tr:hover {
  background: #eef3ff;
}

.compact-table-shell .events-table {
  min-width: 740px;
}

.event-card-stack {
  display: none;
}

.event-card {
  border: 1px solid #dfe4f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 10, 61, 0.07);
  overflow: hidden;
}

.event-card summary {
  cursor: pointer;
  padding: 0.85rem 0.95rem;
  background: linear-gradient(135deg, #f7f9ff, #ffffff);
  color: #000a3d;
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.event-card summary::-webkit-details-marker {
  display: none;
}

.event-card summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000a3d;
  color: #ffffff;
  font-weight: 800;
}

.event-card[open] summary::after {
  content: "-";
}

.event-summary-date {
  display: inline-flex;
  margin-right: 0.45rem;
  color: #6a4b00;
  background: #fff2c2;
  border: 1px solid #f2d878;
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  font-size: 0.78rem;
  white-space: nowrap;
}

.event-definition-list {
  display: grid;
  grid-template-columns: minmax(100px, 36%) 1fr;
  margin: 0;
  border-top: 1px solid #edf0f7;
}

.event-definition-list dt,
.event-definition-list dd {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #edf0f7;
  line-height: 1.42;
}

.event-definition-list dt {
  font-weight: 800;
  color: #000a3d;
  background: #f8faff;
}

.event-definition-list dd {
  margin: 0;
  color: #202538;
  overflow-wrap: anywhere;
}

.event-definition-list a {
  color: #000a3d;
  font-weight: 800;
}

.no-results-message {
  padding: 0.85rem 1rem;
  border: 1px solid #e0e4ef;
  border-radius: 12px;
  background: #fff8df;
  color: #382c00;
  font-weight: 700;
}

.source-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.source-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #d7dceb;
  background: #ffffff;
  color: #000a3d;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}

.source-grid a:hover,
.source-grid a:focus {
  background: #000a3d;
  color: #ffffff;
  outline: none;
}

.logo-container {
  gap: 0.45rem;
}

.logo {
  width: 38px;
  height: auto;
}

.topnav-container ul {
  gap: 0.9rem;
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 960px) {
  .classic-racing-page {
    padding: 0.75rem;
  }

  .sport-hero {
    background: linear-gradient(160deg, #07113e 0%, #162869 62%, #ffffff 62%, #ffffff 100%);
  }

  .hero-stat-panel {
    flex: 1 1 100%;
  }

  .hero-stat {
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
  }
}

@media (max-width: 760px) {
  .mobile-detail-buttons {
    display: flex;
  }

  .event-tools-header {
    align-items: stretch;
  }

  .event-actions {
    flex: 1 1 100%;
  }

  .js-enhanced .responsive-table-shell[data-table-shell] {
    display: none;
  }

  .js-enhanced .event-card-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .event-definition-list {
    grid-template-columns: minmax(92px, 40%) 1fr;
  }

  .event-definition-list dt,
  .event-definition-list dd {
    padding: 0.62rem 0.7rem;
    font-size: 0.94rem;
  }

  .sport-hero .section-heading {
    font-size: clamp(2rem, 12vw, 3.4rem);
  }

  .hero-summary {
    font-size: 1rem;
  }

  .article-card {
    flex-basis: 100%;
  }
}

@media (max-width: 460px) {
  .classic-racing-page {
    padding: 0.55rem;
  }

  .sport-hero {
    padding: 0.8rem;
    border-radius: 14px;
  }

  .event-card summary {
    align-items: flex-start;
    flex-direction: row;
  }

  .event-summary-date {
    display: inline-flex;
    margin-bottom: 0.25rem;
  }

  .event-definition-list {
    grid-template-columns: 1fr;
  }

  .event-definition-list dt {
    border-bottom: none;
    padding-bottom: 0.25rem;
  }

  .event-definition-list dd {
    padding-top: 0.25rem;
  }

  .detail-buttons {
    flex-direction: column;
  }

  .event-button {
    width: 100%;
  }

  .hero-stat {
    align-items: flex-start;
  }
}

.event-table-link {
  color: #000a3d;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 10, 61, 0.28);
}

.event-table-link:hover,
.event-table-link:focus {
  color: #142169;
  border-bottom-color: #142169;
  outline: none;
}

.mobile-detail-buttons {
  display: none;
}
