:root {
  --clh-bg: #070a0f;
  --clh-panel: #111722;
  --clh-panel-2: #171f2d;
  --clh-text: #f7f8fb;
  --clh-muted: #aeb7c6;
  --clh-border: rgba(255,255,255,.12);
  --clh-red: #ed2835;
  --clh-gold: #f2b928;
  --clh-blue: #387dff;
  --clh-cyan: #2ed2e4;
  --clh-green: #50d373;
}

.clh-app {
  width: min(96vw, 1720px);
  margin: 24px calc(50% - min(48vw, 860px));
  color: var(--clh-text);
  background:
    radial-gradient(circle at 12% 5%, rgba(237,40,53,.10), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(56,125,255,.12), transparent 30%),
    var(--clh-bg);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.clh-loading,
.clh-error,
.clh-empty {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 38px;
  color: var(--clh-muted);
  text-align: center;
}

.clh-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255,255,255,.14);
  border-top-color: var(--clh-red);
  border-radius: 50%;
  animation: clh-spin .85s linear infinite;
}

@keyframes clh-spin {
  to { transform: rotate(360deg); }
}

.clh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, .65fr);
  min-height: 650px;
  border-bottom: 1px solid var(--clh-border);
}

.clh-main-story {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(130deg, #0b111b, #131c2b);
}

.clh-main-story::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--clh-story-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.clh-main-story-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.90)),
    linear-gradient(90deg, rgba(0,0,0,.70), transparent 70%);
}

.clh-story-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  padding: clamp(28px, 5vw, 70px);
}

.clh-category-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--clh-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-decoration: none !important;
  text-transform: uppercase;
}

.clh-story-content h1 {
  margin: 18px 0 16px;
  color: #fff;
  font-size: clamp(44px, 6.2vw, 96px);
  line-height: .92;
  letter-spacing: -.06em;
}

.clh-story-content p {
  max-width: 760px;
  color: #d7dee8;
  font-size: 17px;
  line-height: 1.55;
}

.clh-story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 26px;
}

.clh-story-meta span {
  color: var(--clh-muted);
}

.clh-story-meta a {
  display: inline-flex;
  padding: 11px 17px;
  border-radius: 999px;
  color: #071018 !important;
  background: #fff;
  font-weight: 900;
  text-decoration: none !important;
}

.clh-secondary-stories {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  border-left: 1px solid var(--clh-border);
  background: var(--clh-panel);
}

.clh-secondary-story {
  display: grid;
  grid-template-columns: 34px 112px 1fr;
  gap: 13px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--clh-border);
  color: #fff !important;
  text-decoration: none !important;
  transition: background .2s ease;
}

.clh-secondary-story:hover {
  background: rgba(255,255,255,.05);
}

.clh-story-index {
  color: var(--clh-red);
  font-weight: 950;
}

.clh-secondary-story img,
.clh-story-placeholder {
  width: 112px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
}

.clh-story-placeholder {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.35);
  background: linear-gradient(135deg, #1d2838, #0d121a);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.clh-secondary-story small {
  display: block;
  color: var(--clh-red);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.clh-secondary-story strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.25;
}

.clh-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 24px;
  border-bottom: 1px solid var(--clh-border);
}

.clh-panel {
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--clh-border);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.012)),
    var(--clh-panel);
}

.clh-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.clh-panel-head a,
.clh-section-heading > a {
  color: var(--clh-muted) !important;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none !important;
}

.clh-eyebrow {
  color: var(--clh-red);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .16em;
}

.clh-next-race > p {
  margin: 28px 0 2px;
  color: var(--clh-gold);
  font-weight: 900;
  text-transform: uppercase;
}

.clh-next-race h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 58px);
  line-height: .95;
  letter-spacing: -.045em;
}

.clh-next-race > small {
  display: block;
  margin-top: 8px;
  color: var(--clh-muted);
}

.clh-countdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 28px;
}

.clh-countdown > div {
  min-height: 88px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid var(--clh-border);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}

.clh-countdown strong {
  font-size: 30px;
}

.clh-countdown span {
  color: var(--clh-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.clh-race-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.clh-race-actions a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #071018 !important;
  background: var(--clh-gold);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none !important;
}

.clh-standings-tabs {
  display: flex;
  gap: 6px;
  margin: 24px 0 14px;
  padding: 5px;
  border: 1px solid var(--clh-border);
  border-radius: 999px;
}

.clh-standings-tabs button {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 9px;
  color: var(--clh-muted);
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.clh-standings-tabs button.is-active {
  color: #fff;
  background: var(--clh-red);
}

.clh-standing-list {
  border: 1px solid var(--clh-border);
  border-radius: 16px;
  overflow: hidden;
}

.clh-standing-list > div {
  display: grid;
  grid-template-columns: 42px 60px 1fr 76px;
  gap: 8px;
  align-items: center;
  padding: 11px 13px;
  border-bottom: 1px solid var(--clh-border);
}

.clh-standing-list > div:last-child {
  border-bottom: 0;
}

.clh-standing-list span {
  color: var(--clh-gold);
  font-weight: 950;
}

.clh-standing-list small {
  color: var(--clh-muted);
}

.clh-standing-list b {
  text-align: right;
}

.clh-section {
  padding: clamp(34px, 5vw, 70px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--clh-border);
}

.clh-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.clh-section-heading h2 {
  margin: 7px 0 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 54px);
  line-height: .96;
  letter-spacing: -.045em;
}

.clh-module-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.clh-module-card {
  position: relative;
  min-height: 230px;
  display: grid;
  align-content: end;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--clh-border);
  border-radius: 19px;
  color: #fff !important;
  background: var(--clh-panel);
  text-decoration: none !important;
}

.clh-module-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -55px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--module-accent);
  filter: blur(45px);
  opacity: .28;
}

.clh-module-card > * {
  position: relative;
  z-index: 2;
}

.clh-module-card > span {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--module-accent);
  font-size: 25px;
  font-weight: 950;
}

.clh-module-card h3 {
  margin: 0;
  font-size: 26px;
}

.clh-module-card p {
  color: var(--clh-muted);
  line-height: 1.45;
}

.clh-module-card b {
  color: var(--module-accent);
}

.clh-module-card.accent-gold { --module-accent: var(--clh-gold); }
.clh-module-card.accent-red { --module-accent: var(--clh-red); }
.clh-module-card.accent-blue { --module-accent: var(--clh-blue); }
.clh-module-card.accent-cyan { --module-accent: var(--clh-cyan); }
.clh-module-card.accent-green { --module-accent: var(--clh-green); }

.clh-latam-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.clh-latam-card {
  position: relative;
  min-height: 330px;
  display: grid;
  align-content: end;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--clh-border);
  border-radius: 22px;
  color: #fff !important;
  background:
    linear-gradient(180deg, transparent, rgba(0,0,0,.68)),
    var(--clh-panel-2);
  text-decoration: none !important;
}

.clh-latam-number {
  position: absolute;
  right: -8px;
  top: 28px;
  color: rgba(255,255,255,.06);
  font-size: 150px;
  font-weight: 1000;
  line-height: .7;
}

.clh-latam-card > span {
  color: var(--clh-cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.clh-latam-card > p {
  margin: 18px 0 0;
  color: var(--clh-muted);
  font-size: 19px;
  font-weight: 800;
}

.clh-latam-card h3 {
  margin: 0;
  font-size: 40px;
  line-height: .9;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.clh-latam-card > div:not(.clh-latam-number) {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.clh-latam-card > div strong {
  font-size: 24px;
}

.clh-latam-card > div small,
.clh-latam-card > b {
  color: var(--clh-muted);
}

.clh-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.clh-latest-card {
  overflow: hidden;
  border: 1px solid var(--clh-border);
  border-radius: 20px;
  background: var(--clh-panel);
}

.clh-latest-image {
  height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(255,255,255,.3) !important;
  background: linear-gradient(135deg, #1a2534, #0b1018);
  text-decoration: none !important;
}

.clh-latest-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.clh-latest-card:hover img {
  transform: scale(1.045);
}

.clh-latest-card > div {
  padding: 18px;
}

.clh-latest-category {
  color: var(--clh-red) !important;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-decoration: none !important;
  text-transform: uppercase;
}

.clh-latest-card h3 {
  margin: 9px 0;
  font-size: 21px;
  line-height: 1.15;
}

.clh-latest-card h3 a {
  color: #fff !important;
  text-decoration: none !important;
}

.clh-latest-card p,
.clh-latest-card small {
  color: var(--clh-muted);
}

.clh-category-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--clh-border);
}

.clh-category-strip a {
  min-height: 120px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 20px;
  border-right: 1px solid var(--clh-border);
  color: #fff !important;
  text-decoration: none !important;
}

.clh-category-strip a:last-child {
  border-right: 0;
}

.clh-category-strip span {
  color: var(--clh-muted);
  font-size: 11px;
}

.clh-data-note {
  margin: 0;
  padding: 18px clamp(18px, 4vw, 56px) 26px;
  color: var(--clh-muted);
  font-size: 10px;
}

.clh-error button {
  border: 0;
  border-radius: 999px;
  padding: 11px 17px;
  color: #fff;
  background: var(--clh-red);
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .clh-hero-grid {
    grid-template-columns: 1fr;
  }

  .clh-secondary-stories {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    border-left: 0;
    border-top: 1px solid var(--clh-border);
  }

  .clh-module-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .clh-latam-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .clh-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .clh-latest-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clh-category-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .clh-category-strip a {
    border-bottom: 1px solid var(--clh-border);
  }
}

@media (max-width: 620px) {
  .clh-app {
    width: 96vw;
    margin-left: calc(50% - 48vw);
    margin-right: calc(50% - 48vw);
    border-radius: 18px;
  }

  .clh-main-story,
  .clh-hero-grid {
    min-height: 560px;
  }

  .clh-story-content {
    padding: 24px 16px;
  }

  .clh-story-content h1 {
    font-size: clamp(38px, 13vw, 60px);
  }

  .clh-secondary-stories {
    grid-template-columns: 1fr;
  }

  .clh-secondary-story {
    grid-template-columns: 30px 92px 1fr;
  }

  .clh-secondary-story img,
  .clh-story-placeholder {
    width: 92px;
    height: 74px;
  }

  .clh-dashboard-grid {
    padding: 12px;
  }

  .clh-panel-head,
  .clh-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .clh-module-grid,
  .clh-latam-grid,
  .clh-latest-grid,
  .clh-category-strip {
    grid-template-columns: 1fr;
  }

  .clh-module-card {
    min-height: 180px;
  }

  .clh-standing-list > div {
    grid-template-columns: 40px 55px 1fr 70px;
  }
}
