/* ============================================================================
   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 (amber-tinten) + kop-format + sectie-glas: /css/format.css. */

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

/* ── Header (basis in format.css; hier alleen de records-eigen afwijkingen) ── */
.records-headbar { align-items: flex-start; margin: 0 0 14px; }
.records-title { color: #e7ecf3; }

.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-basis in format.css; hier alleen padding) ── */
.rec-section { padding: 18px 20px; }
.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; }
}
