/* ============================================================
   INL Archive — design system
   Modern NASCAR look: dark asphalt, racing yellow & red accents
   ============================================================ */
:root {
  --bg: #101216;
  --bg-2: #171a20;
  --bg-3: #1f232b;
  --line: #2b303a;
  --text: #e8eaee;
  --text-dim: #9aa2af;
  --accent: #ffd200;        /* racing yellow */
  --accent-2: #e4002b;      /* NASCAR red */
  --accent-3: #1e88e5;      /* info blue */
  --gold: #ffd200;
  --silver: #b9c2cf;
  --bronze: #cd8a4b;
  --radius: 10px;
  --font-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  background: linear-gradient(180deg, #14161b 0%, #101216 100%);
  border-bottom: 3px solid var(--accent-2);
  position: sticky; top: 0; z-index: 50;
}
.site-header .bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand img { height: 44px; width: auto; }
.brand .t1 {
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; display: block;
}
.brand .t2 { font-size: .72rem; color: var(--text-dim); display: block; }

.nav { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; }
.nav a {
  padding: 8px 9px; color: var(--text);
  font-family: var(--font-head); text-transform: uppercase;
  font-size: .82rem; letter-spacing: .03em; border-radius: 6px;
  white-space: nowrap;
}
.nav a:hover { background: var(--bg-3); color: var(--accent); }
.nav a.active { background: var(--accent-2); color: #fff; }

.lang { display: flex; gap: 4px; margin-left: 10px; }
.lang a {
  padding: 5px 9px; font-size: .78rem; font-weight: 700; border-radius: 5px;
  border: 1px solid var(--line); color: var(--text-dim);
}
.lang a.active { border-color: var(--accent); color: var(--accent); }

@media (max-width: 1240px) {
  .brand .t2 { display: none; }
  .brand .t1 { font-size: 1.05rem; }
}

/* mobile nav */
#nav-toggle { display: none; }
.nav-btn { display: none; margin-left: auto; cursor: pointer; padding: 8px;
  border: 1px solid var(--line); border-radius: 6px; color: var(--text); }
@media (max-width: 1020px) {
  .nav-btn { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; }
  #nav-toggle:checked ~ .nav { display: flex; }
  .site-header .bar { flex-wrap: wrap; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 56px;
  background:
    linear-gradient(100deg, rgba(16,18,22,.96) 40%, rgba(16,18,22,.75)),
    repeating-linear-gradient(45deg, #16181d 0 24px, #131519 24px 48px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::after {  /* checkered strip */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  background:
    repeating-conic-gradient(#fff 0% 25%, #0a0a0a 0% 50%) 0 0 / 24px 24px;
  opacity: .85;
}
.hero .tag {
  display: inline-block; background: var(--accent-2); color: #fff;
  font-family: var(--font-head); text-transform: uppercase; font-size: .8rem;
  letter-spacing: .12em; padding: 4px 12px; border-radius: 4px; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: #fff; }
.hero h1 span { color: var(--accent); }
.hero p { max-width: 640px; color: var(--text-dim); font-size: 1.05rem; }
.hero .logo-big { float: right; height: 130px; margin-left: 24px; filter: drop-shadow(0 4px 18px rgba(0,0,0,.6)); }

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin: 26px 0 0; }
.stat {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px;
}
.stat .n {
  font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--accent);
  line-height: 1.1;
}
.stat .l { color: var(--text-dim); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- sections & cards ---------- */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head h2::before { content: "//"; color: var(--accent-2); margin-right: 8px; }
.section-head .more { margin-left: auto; font-size: .85rem; }

.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; transition: border-color .15s, transform .15s;
  display: block; color: var(--text);
}
a.card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.card .card-logo { height: 52px; margin-bottom: 10px; object-fit: contain; }
.card h3 { color: #fff; margin-bottom: 4px; }
.card .meta { color: var(--text-dim); font-size: .82rem; }
.card .desc { color: var(--text-dim); font-size: .88rem; margin-top: 8px; }

/* series card list of seasons */
.season-list { list-style: none; margin: 10px 0 0; padding: 0; }
.season-list li { border-top: 1px dashed var(--line); }
.season-list a { display: flex; justify-content: space-between; padding: 7px 2px; color: var(--text); font-size: .92rem; }
.season-list a:hover { color: var(--accent); }
.season-list .yr { color: var(--text-dim); font-size: .8rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data {
  width: 100%; border-collapse: collapse; font-size: .88rem;
  background: var(--bg-2); min-width: 560px;
}
table.data th {
  background: var(--bg-3); color: var(--text-dim); text-align: left;
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  font-size: .74rem; letter-spacing: .07em; padding: 9px 10px;
  position: sticky; top: 0;
}
table.data td { padding: 7px 10px; border-top: 1px solid var(--line); }
table.data tr:hover td { background: #20242d; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .pts { font-weight: 700; color: var(--accent); }

/* podium colors + car number chip */
tr.p1 td:first-child { box-shadow: inset 4px 0 var(--gold); }
tr.p2 td:first-child { box-shadow: inset 4px 0 var(--silver); }
tr.p3 td:first-child { box-shadow: inset 4px 0 var(--bronze); }
.chip {
  display: inline-block; min-width: 30px; text-align: center;
  background: #fff; color: #111; font-weight: 800; font-size: .8rem;
  border-radius: 4px; padding: 1px 5px; font-family: var(--font-head);
}
.badge {
  display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid var(--accent); color: var(--accent); border-radius: 4px;
  padding: 1px 6px; margin-left: 6px; vertical-align: 1px;
}
.badge.red { border-color: var(--accent-2); color: var(--accent-2); }
.status-dnf { color: var(--accent-2); }
.status-fin { color: #6fbf73; }

/* ---------- breadcrumbs, page head ---------- */
.crumbs { font-size: .8rem; color: var(--text-dim); margin: 18px 0 6px; }
.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--accent); }
.page-head { display: flex; align-items: center; gap: 18px; margin: 8px 0 22px; flex-wrap: wrap; }
.page-head img.logo { height: 72px; }
.page-head .sub { color: var(--text-dim); }

/* ---------- tabs (pure CSS) ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin: 18px 0; flex-wrap: wrap; }
.tabs a {
  padding: 8px 16px; font-family: var(--font-head); text-transform: uppercase;
  font-size: .85rem; letter-spacing: .05em; color: var(--text-dim);
  border-radius: 6px 6px 0 0;
}
.tabs a.active { background: var(--bg-3); color: var(--accent); box-shadow: inset 0 -2px var(--accent); }

/* ---------- news ---------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: flex; gap: 14px; padding: 11px 4px; align-items: baseline; color: var(--text); }
.news-list a:hover { color: var(--accent); }
.news-list .d { color: var(--text-dim); font-size: .78rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.article { max-width: 780px; }
.article .content { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.article .content img { border-radius: 6px; }
.article .orig { margin-top: 18px; }
.article details summary { cursor: pointer; color: var(--text-dim); }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 48px; border-top: 1px solid var(--line);
  background: var(--bg-2); padding: 26px 0; color: var(--text-dim); font-size: .85rem;
}
.site-footer .cols { display: flex; gap: 30px; flex-wrap: wrap; justify-content: space-between; }

/* ---------- misc ---------- */
.note {
  background: var(--bg-2); border-left: 4px solid var(--accent-3);
  padding: 10px 14px; border-radius: 0 6px 6px 0; color: var(--text-dim); font-size: .88rem;
  margin: 14px 0;
}
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; font-size: .9rem; }
.kv dt { color: var(--text-dim); }
.kv dd { margin: 0; }
.track-img { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; padding: 6px; }
.center { text-align: center; }
.mt0 { margin-top: 0; }
