/* ============================================================================
   records.css — all-time records & statistieken (/records).
   Standaard-format: OKLCH-gloed, glas-secties, EXACT dezelfde header-uitlijning
   als de andere pagina's (icoon op 220 · titel 1.6rem · 20px boven).
   Accent: amber (trofee). Alle styling via classes (CSP: geen inline-style).
   ========================================================================== */

body[data-page="records"] { --rec: #f59e0b; }

/* ── Gloed-achtergrond náást de rail (amber-tint) ── */
body[data-page="records"]::before {
  content: ""; position: fixed; top: 0; right: 0; bottom: 0; left: var(--rail-w);
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, oklch(34% 0.060 75) 0%, transparent 55%),
    radial-gradient(80% 60% at 85% 100%, oklch(27% 0.070 260) 0%, transparent 60%),
    linear-gradient(180deg, oklch(15% 0.020 240) 0%, oklch(10% 0.022 250) 100%);
}
@media (max-width: 640px) { body[data-page="records"]::before { left: 0; } }

.records-embed { padding: 20px 24px 36px; min-width: 0; }

/* ── Header (gelijk format; info-paneel rechts zoals Davis) ── */
.records-headbar {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 10px 16px; margin: 0 0 14px; padding: 0 0 8px;
}
.records-title { margin: 0; font-size: 1.6rem; font-weight: 600; line-height: 1.2; color: #e7ecf3; display: inline-flex; align-items: center; gap: 9px; }
.head-ico { flex: none; width: 1.5rem; text-align: center; font-size: 1.3rem; line-height: 1; }

.records-info { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ri-line { font-size: 0.82rem; color: #9fb0c3; }
.ri-sub  { font-size: 0.74rem; color: #7c8aa3; }

.records-intro { margin: 0 0 20px; color: #c2cde0; line-height: 1.7; font-size: 0.98rem; max-width: 76ch; }
.records-intro b { color: #f7c86a; }

/* ── Secties (glas) ── */
.rec-section {
  background: oklch(20% 0.020 240 / 0.55); border: 1px solid oklch(70% 0.020 240 / 0.16);
  border-radius: 16px; padding: 18px 20px; margin-bottom: 18px; min-width: 0;
  backdrop-filter: blur(14px) saturate(135%); -webkit-backdrop-filter: blur(14px) saturate(135%);
}
.rs-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rs-ico { font-size: 1.35rem; line-height: 1; flex: none; }
.rs-head h3 { margin: 0; font-size: 1.2rem; font-weight: 600; color: #e7ecf3; }
.rs-since { margin-left: auto; font-size: 0.74rem; color: #7c8aa3; white-space: nowrap; }

/* ── Record-tegels ── */
.rec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rec-tile {
  background: oklch(24% 0.02 245 / 0.5); border: 1px solid oklch(70% 0.02 240 / 0.14);
  border-radius: 12px; padding: 14px 15px 12px; min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
}
/* Uitgelicht record (eerste tegel per sectie): amber randje + zachte gloed */
.rec-tile.is-top { border-color: oklch(75% 0.12 75 / 0.45); box-shadow: 0 0 18px oklch(75% 0.12 75 / 0.10) inset; }

.rt-val { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.rt-val b { font-size: 1.55rem; font-weight: 700; color: #f7c86a; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.rec-tile.is-top .rt-val b { color: #fbbf24; }
.rt-unit { font-size: 0.8rem; color: #8da0b8; }
.rt-label { font-size: 0.8rem; color: #aeb9c9; line-height: 1.45; }
.rt-date { font-size: 0.72rem; color: #7c8aa3; min-height: 1em; }

/* ── Responsive (verplichte breakpoints) ── */
@media (max-width: 980px) {
  .rec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .records-embed { padding-left: 16px; padding-right: 16px; }
  .rec-section { padding: 15px 16px; }
  .records-info { align-items: flex-start; }
}
@media (max-width: 420px) {
  .records-title { font-size: 1.35rem; }
  .rec-grid { grid-template-columns: 1fr; }
  .rt-val b { font-size: 1.4rem; }
}
