:root {
  --cc-blue: #0c3d67;
  --cc-orange: #f7931e;
  --cc-light: #f5f7fb;
  --cc-dark: #1f2937;
  --cc-border: #e5e7eb;
  --cc-muted: #6b7280;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--cc-dark);
  background: #fff;
}

.navbar-brand {
  letter-spacing: 0.02em;
}

.card {
  border-radius: 1rem;
}

.supps-hero {
  background: linear-gradient(135deg, var(--cc-blue), #164d80);
  color: #fff;
  border-radius: 1.25rem;
}

.supps-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* ===============================
   EVENT SPECIAL NOTICES (ESN)
   =============================== */

.esn-card {
  background: #f4f8fc;
  border: 1px solid #d6e2ee;
  border-left: 4px solid #0c3d67;
  border-radius: 10px;
  transition: all 0.15s ease;
}

.esn-card .card-body {
  padding: 1rem 1.1rem;
}

.esn-card .text-uppercase {
  color: #0c3d67;
  letter-spacing: 0.04em;
}

.esn-card:hover {
  background: #eef5fb;
}

.section-card {
  border: 0;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #fff;
}

.section-card .card-body {
  padding: 1.25rem 1.5rem;
}

.snapshot-card {
  border-top: 4px solid var(--cc-blue);
}

.snapshot-label {
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--cc-muted);
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.meta-text {
  color: var(--cc-muted);
  font-size: 0.9rem;
}

#snapshot,
#schedule,
#map,
#paddock,
#rules,
#timing,
#contact {
  scroll-margin-top: 104px;
}

.supps-quicknav {
  top: 0.75rem;
  z-index: 1020;
}

.quicknav-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(12, 61, 103, 0.08);
}

.quicknav-scroll {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.quicknav-scroll::-webkit-scrollbar {
  height: 6px;
}

/* ===============================
   SCHEDULE DAY STYLING
   =============================== */

/* spacing between day cards */
.schedule-day-wrap + .schedule-day-wrap {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

/* day card */
.schedule-day-card .card-body {
  padding: 1rem 1rem !important;
}

/* day header pill */
.schedule-day-header {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

/* day colors */
.schedule-day-thursday {
  background: rgba(12, 61, 103, 0.06);
  color: var(--cc-blue);
}

.schedule-day-friday {
  background: rgba(12, 61, 103, 0.06);
  color: var(--cc-blue);
}

.schedule-day-saturday {
  background: rgba(247, 147, 30, 0.08);
  color: #9a6708;
}

.schedule-day-sunday {
  background: rgba(34, 197, 94, 0.08);
  color: #166534;
}

/* ===============================
   SCHEDULE GRID
   =============================== */

.schedule-row {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 0.9rem 1.25rem;
  align-items: start;
  padding: 0.9rem 0;
  border-top: 1px solid #bfc6cf;
}

.schedule-row:first-of-type {
  border-top: 1px solid #aeb7c2;
}

.schedule-time {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  color: #000;
  letter-spacing: 0.01em;
}

.schedule-time strong {
  font-weight: 700;
  color: #000;
}

.schedule-content {
  min-width: 0;
  padding-left: 0.65rem;
  border-left: 2px solid #e1e6ec;
}

.schedule-title-line {
  margin-bottom: 0.18rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--cc-dark);
}

.schedule-title-text {
  font-weight: 400;
  color: var(--cc-dark);
}

.schedule-description {
  font-size: 0.93rem;
  color: #4b5563;
  line-height: 1.45;
  margin-top: 0.1rem;
}

.schedule-location {
  font-size: 0.84rem;
  color: #667085;
  line-height: 1.35;
  margin-top: 0.3rem;
}

.schedule-badge {
  vertical-align: middle;
}

/* timing buttons */
.timing-pill-wrap .btn {
  margin-bottom: 0.2rem;
}

/* maps */
.map-grid img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.print-only {
  display: none;
}

h2.h4 {
  letter-spacing: 0.3px;
}

.accordion-item {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid var(--cc-border);
}

.accordion-button {
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background: #f8fafc;
  color: var(--cc-blue);
}

@media (max-width: 991.98px) {
  #snapshot,
  #schedule,
  #map,
  #paddock,
  #rules,
  #timing,
  #contact {
    scroll-margin-top: 95px;
  }
}

@media (max-width: 767.98px) {
  .supps-quicknav .card-body {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .schedule-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 0.75rem 0;
  }

  .schedule-time {
    font-size: 1rem;
    white-space: normal;
    color: #000;
  }

  .schedule-time strong {
    color: #000 !important;
  }

  .schedule-content {
    padding-left: 0;
    border-left: 0;
  }
}

.schedule-description {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.45;
  margin-top: 0.1rem;
}

.schedule-location {
  font-size: 0.84rem;
  color: #666;
  line-height: 1.35;
  margin-top: 0.25rem;
}

.schedule-badge {
  vertical-align: middle;
}

@media (max-width: 767.98px) {
  .schedule-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .schedule-time {
    white-space: normal;
  }
}

  .schedule-time {
    min-width: 0;
    font-size: 0.92rem;
    color: #666;
    margin-bottom: 0.15rem;
  }

  .section-card .card-body {
    padding: 1rem 1rem;
  }
}

@media print {
  @page {
    size: auto;
    margin: 0.35in;
  }

  html,
  body {
    background: #fff !important;
  }

  body {
    font-size: 9.5pt !important;
    line-height: 1.15 !important;
    color: #000 !important;
  }

  nav,
  .navbar,
  .no-print,
  .btn,
  button,
  .site-footer,
  .supps-quicknav {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  .print-view .container,
  .print-view .container-fluid,
  .print-view main,
  .container,
  .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .row {
    --bs-gutter-x: 0.3rem !important;
    --bs-gutter-y: 0.2rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  [class*="col-"] {
    padding-left: 0.15rem !important;
    padding-right: 0.15rem !important;
  }

  .supps-hero {
    background: none !important;
    color: #000 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 0.25rem 0 !important;
  }

  .supps-hero .d-flex {
    display: block !important;
  }

  .supps-badge,
  .badge {
    background: none !important;
    color: #000 !important;
    border: 1px solid #999 !important;
    font-size: 8pt !important;
    padding: 0.05rem 0.25rem !important;
  }

  h1 {
    font-size: 17pt !important;
    margin: 0 0 0.15rem 0 !important;
  }

  h2.h4 {
    font-size: 11pt !important;
    font-weight: 700 !important;
    margin: 0 0 0.15rem 0 !important;
    padding: 0 0 0.08rem 0 !important;
    border-bottom: 1px solid #bbb !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  h3,
  .h5,
  .h6 {
    font-size: 10pt !important;
    margin: 0 0 0.1rem 0 !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  p,
  ul,
  ol {
    margin-bottom: 0.2rem !important;
  }

  ul,
  ol {
    padding-left: 1rem !important;
  }

  section {
    margin-bottom: 0.3rem !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
  }

  .card,
  .section-card,
  .accordion-item {
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    margin-bottom: 0.2rem !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
  }

  .card-body,
  .accordion-body {
    padding: 0.3rem 0.4rem !important;
  }

  .accordion-button {
    padding: 0.3rem 0.4rem !important;
    font-size: 9.5pt !important;
    color: #000 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .accordion-button::after {
    display: none !important;
  }

  .accordion-collapse {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
  }

  .schedule-row {
    padding: 0.12rem 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #eee !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .schedule-time {
    min-width: 90px !important;
    font-size: 8.75pt !important;
    font-weight: 700 !important;
    color: #000 !important;
    white-space: nowrap !important;
  }

  .snapshot-important-info {
  border-radius: 0.85rem;
  font-size: 0.95rem;
}

  .meta-text,
  .text-muted,
  .small,
  .snapshot-label {
    font-size: 8pt !important;
    color: #444 !important;
  }

  .schedule-alert {
    border: 1px solid #ccc !important;
    background: #fff8e6 !important;
    color: #000 !important;
    padding: 0.25rem 0.35rem !important;
    margin-top: 0.15rem !important;
  }

  .schedule-day-pills {
    display: none !important;
  }

  .print-summary-row,
  .print-detail-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
  }

  .print-summary-row > [class*="col-"] {
    display: block !important;
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
  }

  .print-detail-grid > [class*="col-"] {
    display: block !important;
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
  }

  .print-summary-row .card,
  .print-detail-grid .card {
    height: 100% !important;
    margin-bottom: 0.2rem !important;
  }

  .print-summary-row .card-body,
  .print-detail-grid .card-body {
    padding: 0.28rem 0.38rem !important;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
  }

  .print-image-section {
    page-break-inside: auto !important;
    break-inside: auto !important;
  }

  .map-grid {
    row-gap: 0.25rem !important;
  }

  .map-grid .col-12,
  .map-grid .col-md-6 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .map-grid .card,
  .map-grid .section-card,
  .map-grid .card-body {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .map-grid .card-body {
    padding: 0.15rem !important;
  }

  .map-grid img {
    max-height: 9.2in !important;
    width: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }

  .page-break {
    page-break-before: auto !important;
    break-before: auto !important;
  }

  hr {
    margin: 0.2rem 0 !important;
  }

  a,
  a:visited {
    color: #000 !important;
    text-decoration: underline !important;
  }
}

.sponsor-feature-card {
  border-radius: 1rem;
}

.sponsor-ad-wrap {
  min-height: 260px;
}

.sponsor-ad-image,
.sponsor-logo-image {
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.sponsor-copy {
  font-size: 1rem;
  line-height: 1.6;
}

.supps-image-trigger {
  cursor: zoom-in;
}

.supps-map-thumb {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.supps-image-trigger:hover .supps-map-thumb {
  transform: scale(1.01);
}

#suppsImageModal .modal-body {
  padding: 1rem 1rem 1.5rem;
}

#suppsImageModal .modal-content {
  border-radius: 1rem;
}