
:root {
  --ink: #1d1d1b;
  --blue: #0b4db3;
  --blue-deep: #08367c;
  --blue-bright: #2f7cf6;
  --sky: #e7f0ff;
  --paper: #f4f6f8;
  --line: #e3e5e8;
  --muted: #5e6166;
  --white: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
}

a { color: var(--blue); }
a:hover { color: var(--blue-deep); }

.cond {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.gc-logo {
  height: 52px;
  width: auto;
  display: block;
}

.brand-title {
  font-size: 1.2rem;
  line-height: 0.95;
  color: var(--ink);
}

.site-nav .navbar-brand small {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  color: var(--blue);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.site-nav .nav-link {
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.05rem;
  padding: 0.4rem 0.75rem;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--blue);
}

.navbar-toggler { border-color: var(--line); }

.hero {
  background:
    linear-gradient(160deg, rgba(8, 54, 124, 0.55), rgba(11, 77, 179, 0.25)),
    repeating-linear-gradient(-18deg, #0a2a55 0 14px, #0d356c 14px 28px);
  color: var(--white);
  padding: 3.2rem 0 3.4rem;
}

.hero-kicker {
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.8rem;
}

.stripe {
  padding: 0.55rem 1rem 0.45rem;
  margin: 0 0 0.45rem;
  max-width: 40rem;
}

.stripe-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.8;
}

.stripe-title {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.stripe-black { background: var(--ink); }
.stripe-blue { background: var(--blue); }
.stripe-sky { background: #d7e6ff; color: var(--ink); }
.stripe-sky .stripe-label { opacity: 0.7; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.85rem; }

.btn-cx {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  padding: 0.55rem 0.95rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.btn-cx:hover { background: var(--blue-deep); color: var(--white); }

.btn-cx.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.btn-cx.ghost:hover { background: var(--ink); color: var(--white); }

.page {
  padding: 2.4rem 0 3.5rem;
}

.page-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 0.4rem;
  line-height: 0.95;
}

.rule {
  width: 48px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  margin: 0.7rem 0 1.2rem;
}

.lead { max-width: 42rem; color: var(--ink); }

.section-label {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

h2.block-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
}

.stat-grid, .card-grid, .news-grid {
  display: grid;
  gap: 0.8rem;
}

.stat-grid { grid-template-columns: repeat(4, 1fr); }
.card-grid { grid-template-columns: repeat(4, 1fr); }
.news-grid { grid-template-columns: repeat(3, 1fr); }

.stat, .link-card, .news-card, .panel {
  background: var(--paper);
  border-radius: 2px;
  padding: 1rem 1.05rem 1.1rem;
}

.stat-num {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--blue);
}

.stat-label { color: var(--muted); font-size: 0.95rem; }

.link-card {
  color: var(--ink);
  text-decoration: none;
  display: block;
  min-height: 9.5rem;
}

.link-card:hover { color: var(--ink); background: var(--sky); }
.link-card h3 {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
}
.link-card p { margin: 0 0 0.8rem; color: var(--muted); }
.link-card span { color: var(--blue); font-weight: 600; }

.news-card { color: inherit; text-decoration: none; display: block; padding: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.news-card:hover { color: inherit; border-color: var(--blue); }
.news-band {
  background: var(--blue);
  color: var(--white);
  padding: 0.7rem 1rem;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.news-card .body { padding: 0.9rem 1rem 1rem; }
.news-card h3 { font-size: 1.2rem; margin: 0 0 0.35rem; }
.news-card p { margin: 0; color: var(--muted); }

.band {
  background: var(--paper);
  padding: 2.2rem 0;
}

.race-list { list-style: none; margin: 0; padding: 0; }
.race {
  display: grid;
  grid-template-columns: 2.2rem 8.2rem minmax(0, 1fr) auto;
  gap: 0.6rem 1rem;
  align-items: center;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
}
.race-no { color: var(--blue); font-variant-numeric: tabular-nums; }
.race-date { font-variant-numeric: tabular-nums; color: var(--muted); }
.race-actions { display: flex; gap: 0.4rem; justify-content: flex-end; }
.race-btn {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.42rem 0.65rem;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
}
a.race-btn { color: #fff; background: var(--blue); }
a.race-btn:hover { color: #fff; background: var(--blue-deep); }
span.race-btn { color: #8b9096; background: #eef0f2; }

.sheet-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sheet-table th, .sheet-table td {
  text-align: left;
  font-weight: 400;
  padding: 0.55rem 0.8rem 0.55rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}
.sheet-table th {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.95rem;
}
.sheet-table .num { text-align: right; padding-right: 0; }
.table-wrap { overflow-x: auto; }

.pills { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.pills .nav-link {
  background: transparent;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  padding: 0.15rem 0;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.15rem;
  font-weight: 600;
}
.pills .nav-link.active { color: var(--blue); background: transparent; box-shadow: inset 0 -2px 0 var(--blue); }

.points { width: 100%; max-width: 28rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.points th, .points td { padding: 0.35rem 0.8rem 0.35rem 0; border-bottom: 1px solid var(--line); text-align: right; font-weight: 400; }
.points th:first-child, .points td:first-child { text-align: left; }
.points th { color: var(--muted); font-family: "Barlow Condensed", sans-serif; letter-spacing: 0.05em; text-transform: uppercase; }

.site-foot {
  background: var(--ink);
  color: #d5d7db;
  padding: 2rem 0 1.4rem;
  margin-top: 0;
}
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { color: #b9d4ff; }
.foot-title {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1.5rem; }
.site-foot h3 {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: #fff;
  margin: 0 0 0.45rem;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 0.2rem 0; }
.legal { margin-top: 1.4rem; padding-top: 0.8rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.92rem; }

.note { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 900px) {
  .stat-grid, .card-grid { grid-template-columns: 1fr 1fr; }
  .news-grid, .foot-grid { grid-template-columns: 1fr 1fr; }
  .race { grid-template-columns: 1.8rem 6.6rem minmax(0, 1fr); }
  .race-actions { grid-column: 2 / -1; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .stat-grid, .card-grid, .news-grid, .foot-grid { grid-template-columns: 1fr; }
  .gc-logo { height: 40px; }
  .brand-title { font-size: 1.02rem; }
}

.cx-select {
  max-width: 28rem;
  border-radius: 2px;
  border-color: var(--line);
  margin: 0.35rem 0 1.1rem;
  font-size: 1.05rem;
}
.cx-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.15rem rgba(11, 77, 179, 0.2);
}
.muted-row td { color: var(--muted); }
td.nat { width: 2.2rem; }
td.nat .fi {
  font-size: 1.15rem;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.uci-sur { font-weight: 700; letter-spacing: 0.01em; }
