/* record pages (/rekorde, /schnellste-cpu, /schnellste-grafikkarte, /rekorde/YYYY-MM)
   and the "No. 1 since" badges of /cpu/<slug> and /gpu/<slug> – Site.php / SiteRecords.php.
   Builds on the tokens and cards of style.css. */

.rc-hero .lead { max-width: 74ch; }
.rc-sec { padding-top: 44px; }
.rc-sec > h2 { margin-bottom: 14px; }
.rc-sec > .lead { margin-top: -4px; }

/* "Benchmark version 7 started on … · n counted devices so far" */
.rc-era { display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 0; padding: 7px 14px; border-radius: 999px; font-size: 13.5px;
  color: var(--text); background: rgba(124,255,178,.07); border: 1px solid rgba(124,255,178,.25); }
.rc-era i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(124,255,178,.6); animation: rc-pulse 2.4s ease-out infinite; }
@keyframes rc-pulse { 70% { box-shadow: 0 0 0 9px rgba(124,255,178,0); } 100% { box-shadow: 0 0 0 0 rgba(124,255,178,0); } }

/* ---------- crown cards */
.rc-crowns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 18px; align-items: start; }
.rc-crowns.one { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
@media (min-width: 1100px) { .rc-crowns.all { grid-template-columns: repeat(4, minmax(0, 1fr)); } .rc-crowns.all .rc-val b { font-size: 34px; } }
.rc-card { display: flex; flex-direction: column; gap: 6px; padding: 24px 24px 20px; overflow: hidden; border-radius: 20px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 9%, transparent), rgba(255,255,255,.02) 55%); transition: border-color .2s, transform .2s; }
.rc-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(130% 85% at 0% 0%, color-mix(in srgb, var(--c) 17%, transparent), transparent 58%); }
.rc-card:hover { border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.rc-card.open { background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); }
.rc-card.open::before { opacity: .45; }
.rc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.rc-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--c);
  background: color-mix(in srgb, var(--c) 15%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent), 0 10px 24px -14px var(--c); }
.rc-ic svg { width: 22px; height: 22px; }
.rc-ic.sm { width: 32px; height: 32px; border-radius: 10px; }
.rc-ic.sm svg { width: 18px; height: 18px; }
.rc-k { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rc-crown { margin-left: auto; color: var(--g1); font-size: 20px; line-height: 1; text-shadow: 0 0 14px rgba(255,200,90,.6); }
td .rc-crown, th .rc-crown, .rc-mb-h .rc-crown { margin-left: 4px; font-size: 15px; }
.prose .card h3.rc-model { margin: 0; font-size: 21px; line-height: 1.25; overflow-wrap: anywhere; display: block; }
.rc-model a { text-decoration: none; }
.rc-model a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rc-model.open { color: var(--muted); font-weight: 600; }
.prose .card p.rc-sys { margin: 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.rc-val { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 0; }
.rc-val b { font: 700 38px/1.05 var(--mono); font-variant-numeric: tabular-nums; background: linear-gradient(90deg, var(--g1), var(--c)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rc-val span { color: var(--muted); font-size: 14px; }
.rc-card.big .rc-val b { font-size: clamp(40px, 6vw, 56px); }
.prose .card p.rc-meta { margin: 0; font-size: 13.5px; color: var(--muted); }
.prose .card p.rc-claim { margin: 2px 0 0; font-size: 13px; color: var(--text); opacity: .85; }
.chip.rc-prov { color: var(--g2); border-color: rgba(255,179,71,.4); font-weight: 500; font-size: 11px; padding: 0 7px; cursor: help; vertical-align: 1px; }
.prose .card p.rc-tie { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; padding: 7px 11px; border-radius: 11px; font-size: 13.5px;
  background: rgba(255,179,71,.08); border: 1px solid rgba(255,179,71,.28); color: var(--text); }
.rc-tie > span:first-child { flex: none; display: grid; color: var(--g2); }
.rc-tie svg { width: 17px; height: 17px; }
.rc-spark { display: block; width: 100%; height: 44px; margin-top: 8px; }
.rc-cand { display: grid; gap: 6px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(255,179,71,.45); background: rgba(255,179,71,.05); font-size: 14px; }
.rc-cand-k { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--g2); }
.rc-cand-m { overflow-wrap: anywhere; }
.rc-cand-m .mono { margin-left: 4px; }
.rc-cand .chip { justify-self: start; max-width: 100%; white-space: normal; }
.rc-cta { font-weight: 600; color: var(--g2); text-decoration: none; }
.rc-cta:hover { text-decoration: underline; text-underline-offset: 3px; }
.rc-more { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.rc-more:hover { color: var(--text); }
.rc-fps h3 { font-size: 16px; }
.rc-fps .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 6px; }
.rc-fps .stat .v { font-size: 26px; }
.rc-fps .stat .v small { font-size: 13px; color: var(--muted); font-family: var(--sans); }
.rc-fps .stat .k { font-size: 12.5px; }
@media (max-width: 520px) { .rc-fps .stats { grid-template-columns: 1fr; } }

/* ---------- top 10 */
.rc-tops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rc-tops.one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .rc-tops { grid-template-columns: minmax(0, 1fr); } }
.rc-th { font-size: 18px; margin: 0 0 10px; }
.rc-top th[scope=row] { color: var(--text); font-weight: 600; font-size: 14.5px; white-space: normal; min-width: 150px; }
.rc-top th[scope=row] a { text-decoration: none; }
.rc-top th[scope=row] a:hover { text-decoration: underline; }
.rc-top tr.first { background: linear-gradient(90deg, rgba(255,200,90,.1), transparent 70%); }
/* row headers like the other cells (style.css draws th with the stronger header line), rows are not links */
.rc-top tbody th, .rc-mb tbody th, .rc-eras tbody th { border-bottom: 1px solid rgba(255,255,255,.04); }
.rc-top tbody tr:last-child th, .rc-mb tbody tr:last-child th, .rc-eras tbody tr:last-child th { border-bottom: 0; }
.rc-top tbody tr, .rc-mb tbody tr, .rc-eras tbody tr { cursor: default; }
/* phones: the points must stay in view – the move column goes, the cells get tighter */
@media (max-width: 560px) {
  .rc-top th:nth-child(2), .rc-top td:nth-child(2) { display: none; }
  .rc-top th, .rc-top td { padding: 10px 8px; }
  .rc-top th[scope=row] { min-width: 0; font-size: 14px; }
}
.rc-mv { font: 600 12.5px var(--mono); color: var(--muted); white-space: nowrap; }
.rc-mv.up { color: var(--good); }
.rc-mv.down { color: var(--bad); }
.rc-mv.new { font-family: var(--sans); font-size: 11px; padding: 1px 7px; border-radius: 999px; color: var(--g5); border: 1px solid rgba(122,162,255,.45); }

/* ---------- challengers */
.rc-cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.rc-cc { padding: 16px 18px; }
.rc-cc .rc-cand { margin-top: 6px; }

/* ---------- line of succession */
.rc-reigns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .rc-reigns { grid-template-columns: minmax(0, 1fr); } }
.rc-reign { padding: 20px 22px; min-width: 0; }
.prose .card h3.rc-rh { margin: 0 0 14px; font-size: 17px; }
.rc-chart { position: relative; height: 210px; margin: 0 0 30px; }
.rc-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.rc-dots { position: absolute; inset: 0 0 auto; height: 100%; pointer-events: none; }
.rc-dots i { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--c); box-shadow: 0 0 10px var(--c); pointer-events: auto; }
.rc-ticks { position: absolute; left: 0; right: 0; top: 100%; height: 22px; }
.rc-ticks span { position: absolute; top: 6px; transform: translateX(-50%); font: 500 11px var(--mono); color: var(--muted); white-space: nowrap; }
.rc-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rc-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; grid-template-areas: "dot m v" "dot p v"; column-gap: 10px; align-items: center;
  padding: 8px 10px; border-radius: 11px; background: rgba(255,255,255,.025); font-size: 14px; }
.rc-legend li.now { background: color-mix(in srgb, var(--c) 9%, transparent); }
.rc-legend i { grid-area: dot; width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.rc-lg-m { grid-area: m; font-weight: 600; overflow-wrap: anywhere; }
.rc-lg-m a { text-decoration: none; }
.rc-lg-p { grid-area: p; font-size: 12.5px; color: var(--muted); }
.rc-legend b { grid-area: v; font-size: 14px; }
.prose .card p.rc-rfoot { margin: 10px 0 0; }
.prose .card p.rc-note { margin: 0; }

/* ---------- events */
.rc-events { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 4px; }
.rc-events::before { content: ''; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--border), rgba(255,255,255,.02)); }
.rc-events li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 10px 12px 10px 0; }
.rc-ev-ic { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, var(--bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.rc-ev-ic svg { width: 19px; height: 19px; }
.rc-events li.ev-crown .rc-ev-ic, .rc-events li.ev-system .rc-ev-ic { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 35%, var(--bg)), color-mix(in srgb, var(--c) 12%, var(--bg))); color: var(--g1); }
.rc-ev-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 2px 0 3px; font-size: 12.5px; color: var(--muted); }
.rc-ev-h time { font-family: var(--mono); }
.rc-ev-k { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 11.5px; color: var(--c); }
.rc-ev-b { padding: 0 8px; border-radius: 999px; border: 1px solid var(--border); font-size: 11.5px; }
.rc-ev-t { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.rc-ev-t a { color: var(--text); text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }

/* ---------- monthly standings, eras */
.rc-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.rc-month { display: grid; gap: 4px; padding: 16px 18px; text-decoration: none; transition: border-color .2s, transform .2s; }
.rc-month:hover { border-color: rgba(255,179,71,.4); transform: translateY(-2px); }
.rc-month b { font-size: 17px; }
.rc-month .chip { justify-self: start; }
.rc-month .small { overflow-wrap: anywhere; }
.rc-eras td, .rc-eras th { white-space: normal; vertical-align: top; }
.rc-eras td small, .rc-eras td small.mono { display: block; color: var(--muted); font-size: 12px; }
.rc-eras tr.cur { background: rgba(124,255,178,.05); }
.rc-eras td { min-width: 130px; font-size: 14px; }
.rc-mboards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.rc-mb { padding: 18px 20px; }
.prose .card p.rc-mb-h { margin: 0 0 10px; font-size: 15.5px; overflow-wrap: anywhere; }
.rc-mb .table-wrap { background: transparent; }
.rc-mb td, .rc-mb th { padding: 7px 10px; font-size: 13.5px; }
.rc-mb th[scope=row] { white-space: normal; color: var(--text); font-weight: 500; }
.rc-mnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ---------- /cpu/<slug>, /gpu/<slug>: "No. 1 since …" */
.rc-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; }
.rc-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none;
  color: var(--text); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 8%, transparent); }
.rc-badge.now { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent), color-mix(in srgb, var(--c) 6%, transparent)); }
.rc-badge span { color: var(--g1); }
.rc-badge:hover { border-color: var(--c); }

@media (max-width: 560px) {
  .rc-card { padding: 20px 18px 18px; }
  .rc-val b { font-size: 32px; }
  .rc-reign { padding: 16px 14px; }
  .rc-chart { height: 170px; }
  .rc-ticks span:nth-child(even) { display: none; }
  .rc-events li { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .rc-ev-ic { width: 34px; height: 34px; }
  .rc-events::before { left: 16px; }
}
@media (prefers-reduced-motion: reduce) { .rc-era i { animation: none; } .rc-month:hover { transform: none; } }
.rc-reigns > .rc-none { grid-column: 1 / -1; margin: 0; }

/* ---------------- modern crowns: masonry instead of rows with holes, calm glass instead of dashed boxes */
@media (min-width: 1100px) {
  .rc-crowns.all { display: block; columns: 4; column-gap: 18px; }
  .rc-crowns.all > .rc-card { break-inside: avoid; margin: 0 0 18px; }
}
@media (min-width: 720px) and (max-width: 1099px) {
  .rc-crowns.all { display: block; columns: 2; column-gap: 18px; }
  .rc-crowns.all > .rc-card { break-inside: avoid; margin: 0 0 18px; }
}
.rc-card { transition: transform .25s, box-shadow .25s; }
.rc-card:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -26px color-mix(in srgb, var(--c) 85%, transparent); }
.rc-val b { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--c) 45%, transparent)); }
.rc-crown { filter: drop-shadow(0 0 10px rgba(255, 211, 107, .55)); }
.rc-cand { gap: 5px; padding: 11px 13px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .035); font-size: 13.5px; }
.rc-cand-k { justify-self: start; padding: 2px 9px; border-radius: 99px; font-size: 10.5px; letter-spacing: .1em; color: #ffd36b; background: rgba(255, 179, 71, .12); }
.rc-cand .chip { font-size: 11.5px; }
.rc-cta { font-size: 13px; }
.prose .card p.rc-tie { background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); }
