/* svenskaslots.se — static site styles */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --text: #0e1726;
  --muted: #56657a;
  --border: #dfe5ee;
  --accent: #0b5cad;
  --accent-ink: #ffffff;
  --accent-soft: #e3effb;
  --yellow: #f6c700;
  --yellow-ink: #2a2100;
  --ok: #1b7f4b;
  --warn: #9a5b00;
  --shadow: 0 1px 2px rgba(14, 23, 38, .06), 0 4px 16px rgba(14, 23, 38, .06);
  --radius: 14px;
  --maxw: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a111e;
    --surface: #111a2b;
    --surface-2: #17223a;
    --text: #e6ecf5;
    --muted: #97a6bb;
    --border: #233150;
    --accent: #6fb1ff;
    --accent-ink: #06121f;
    --accent-soft: #15284a;
    --yellow: #ffd23f;
    --yellow-ink: #221a00;
    --ok: #4cc488;
    --warn: #f0b04a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a111e;
  --surface: #111a2b;
  --surface-2: #17223a;
  --text: #e6ecf5;
  --muted: #97a6bb;
  --border: #233150;
  --accent: #6fb1ff;
  --accent-ink: #06121f;
  --accent-soft: #15284a;
  --yellow: #ffd23f;
  --yellow-ink: #221a00;
  --ok: #4cc488;
  --warn: #f0b04a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  color-scheme: dark;
}
/* Chart colours: dataviz reference palette, validated (CVD, contrast) against each theme's surface */
:root { --viz-1: #2a78d6; --viz-2: #eb6834; --viz-3: #1baf7a; --viz-4: #eda100; --viz-grid: #e6e9ef; --viz-axis: #c3c9d4; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --viz-1: #3987e5; --viz-2: #d95926; --viz-3: #199e70; --viz-4: #c98500; --viz-grid: #1c2740; --viz-axis: #2e3d5c; }
}
:root[data-theme="dark"] { --viz-1: #3987e5; --viz-2: #d95926; --viz-3: #199e70; --viz-4: #c98500; --viz-grid: #1c2740; --viz-axis: #2e3d5c; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin: 1.6em 0 .6em; }
h3 { font-size: 1.05rem; margin: 1.2em 0 .4em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--yellow-ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Responsible-gambling bar */
.rg-bar { background: #0e1726; color: #e6ecf5; font-size: .8rem; }
:root[data-theme="dark"] .rg-bar { background: #050a14; border-bottom: 1px solid var(--border); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rg-bar { background: #050a14; border-bottom: 1px solid var(--border); } }
.rg-bar .wrap { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; padding-top: 6px; padding-bottom: 6px; }
.rg-bar a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.age { display: inline-grid; place-items: center; min-width: 30px; height: 22px; border-radius: 11px; background: var(--yellow); color: var(--yellow-ink); font-weight: 800; font-size: .75rem; padding: 0 6px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--accent) 0 55%, var(--yellow) 55% 100%); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: .95rem; box-shadow: var(--shadow); }
.logo small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; }
.nav a { color: var(--text); padding: 8px 10px; border-radius: 10px; font-weight: 600; font-size: .94rem; white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 761px) { .logo small { display: none; } }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); text-decoration: none; }
.theme-toggle { flex: none; border: 1px solid var(--border); background: var(--surface); color: var(--text); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 1rem; }

@media (max-width: 760px) {
  .site-header { position: static; }
  .site-header .wrap { display: grid; grid-template-columns: 1fr auto; gap: 10px; min-height: 0; }
  .site-header .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .nav { grid-column: 1 / -1; grid-row: 3; margin: 0 -16px; padding: 0 12px 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 6px 10px; font-size: .9rem; }
  .theme-toggle { grid-column: 2; grid-row: 1; }
  .logo small { display: none; }
  .hero { padding-top: 24px; }
}

/* Search */
.search { position: relative; flex: 1 1 200px; max-width: 360px; }
.search input, .input {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px 10px 38px;
  outline: none;
}
.input { padding-left: 14px; }
.search input:focus, .input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search::before { content: ""; position: absolute; left: 13px; top: 50%; width: 13px; height: 13px; border: 2px solid var(--muted); border-radius: 50%; transform: translateY(-62%); }
.search::after { content: ""; position: absolute; left: 25px; top: 58%; width: 6px; height: 2px; background: var(--muted); transform: rotate(45deg); }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); list-style: none; margin: 0; padding: 6px; display: none; max-height: 70vh; overflow: auto; z-index: 30; }
.search-results.open { display: block; }
.search-results a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; color: var(--text); }
.search-results a:hover, .search-results a.active { background: var(--surface-2); text-decoration: none; }
.search-results .meta { color: var(--muted); font-size: .82rem; white-space: nowrap; }

/* Hero */
.hero { padding: 40px 0 28px; background:
  radial-gradient(800px 300px at 90% -10%, var(--accent-soft), transparent 70%),
  radial-gradient(500px 200px at 0% 0%, color-mix(in srgb, var(--yellow) 18%, transparent), transparent 70%); }
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 720px; }
.hero .search { max-width: 640px; margin-top: 18px; }
.hero .search input { padding: 14px 16px 14px 42px; font-size: 1.05rem; background: var(--surface); box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0 8px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-size: 1.6rem; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .88rem; }

/* Cards & grids */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--text); transition: transform .12s ease, box-shadow .12s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.card .title { font-weight: 700; line-height: 1.25; }
.card .sub { color: var(--muted); font-size: .84rem; }
.cover { aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 10px; color: #fff; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; font-size: 1.05rem; text-shadow: 0 1px 2px rgba(0,0,0,.35); position: relative; }
.cover .badge { position: absolute; top: 8px; right: 8px; }
.cover.has-img { padding: 0; overflow: hidden; }
.cover.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.has-img .badge { z-index: 1; }
.cover-lg.has-img { min-height: 0; aspect-ratio: 4 / 3; }
.cover-lg { aspect-ratio: auto; min-height: 180px; border-radius: var(--radius); font-size: clamp(1.4rem, 4vw, 2.2rem); padding: 24px; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); white-space: nowrap; }
.badge.ok { color: var(--ok); }
.badge.warn { color: var(--warn); }
.badge.muted { color: var(--muted); border-style: dashed; }
.badge.dark { background: rgba(0,0,0,.45); color: #fff; border: 0; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.panel + .panel { margin-top: 14px; }
.cols { display: grid; gap: 20px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: minmax(0, 1fr); } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 14px; }
.facts div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.facts dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 2px 0 0; font-weight: 700; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Lists */
.casino-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.casino-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 10px; padding: 9px 12px; }
.casino-list .op { display: block; color: var(--muted); font-size: .8rem; }
.casino-list .ext { font-size: .85rem; white-space: nowrap; }
.casino-list .right { display: flex; align-items: center; gap: 10px; flex: none; }
.rtp-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 0 0 14px; }
.rtp-compare > div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.rtp-compare .rtp-hi { border-left: 4px solid var(--ok); }
.rtp-compare .rtp-lo { border-left: 4px solid var(--warn); }
.rtp-compare .lbl { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.rtp-compare b { font-size: 1.4rem; letter-spacing: -.02em; }
.rtp-compare span:last-child { font-size: .88rem; }
.bar { position: relative; height: 8px; border-radius: 4px; background: var(--surface-2); min-width: 80px; }
.bar > i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--ok); }
details summary { cursor: pointer; color: var(--accent); }
.game-list { columns: 3 230px; column-gap: 24px; list-style: none; padding: 0; margin: 0; }
.game-list li { break-inside: avoid; padding: 3px 0; display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--border); }
.game-list li .n { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 18px; }
.letters a, .letters span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; color: var(--text); padding: 0 8px; }
.letters a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.letters span { opacity: .4; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 16px; }
.filters .input, .filters select { flex: 1 1 180px; max-width: 320px; }
select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--accent); }
.center { text-align: center; }
.result-count { color: var(--muted); font-size: .9rem; }

.breadcrumbs { font-size: .85rem; color: var(--muted); margin: 18px 0 4px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span[aria-hidden] { margin: 0 6px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: .4em; }

.notice { border-left: 4px solid var(--yellow); background: var(--surface); border-radius: 10px; padding: 12px 16px; margin: 16px 0; }
.notice.info { border-left-color: var(--accent); }
.prose { max-width: 760px; }
.wrap.prose { max-width: var(--maxw); }
.wrap.prose > * { max-width: 760px; }
.wrap.prose > .breadcrumbs, .wrap.prose > form.search { max-width: 420px; }
.nowrap { white-space: nowrap; }
.prose li { margin: .3em 0; }

/* Footer */
.site-footer { margin-top: 56px; background: var(--surface); border-top: 1px solid var(--border); padding: 32px 0 40px; font-size: .9rem; color: var(--muted); }
.site-footer .cols4 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h3 { color: var(--text); margin-top: 0; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.site-footer .legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
/* Cookie consent banner (created by app.js) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 620px; margin: 0 auto; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 12px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-actions .btn { flex: 1 1 140px; }

main { min-height: 50vh; }
.hidden { display: none !important; }

/* RTP matrix heat cells */
.rtp-matrix th a { color: inherit; }
.rtp-matrix th, .rtp-matrix td.num { white-space: nowrap; }
.rtp-matrix td:nth-child(2) { min-width: 170px; }
.heat.h5 { background: rgb(46 170 106 / .32); }
.heat.h4 { background: rgb(46 170 106 / .22); }
.heat.h3 { background: rgb(46 170 106 / .12); }
.heat.h1 { background: rgb(230 150 40 / .14); }
.heat.h0 { background: rgb(230 150 40 / .26); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.cta-row .btn { padding: 8px 14px; font-size: .95rem; }

/* Volatility as chilis (1–3), pixel style. --n = number of lit chilis. */
.chili { --s: 24px; --gap: calc(var(--s) * 1.25); display: inline-block; vertical-align: middle; position: relative; width: calc(var(--gap) * 3); height: var(--s);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12.5 10' shape-rendering='crispEdges'%3E%3Crect x='0' y='7' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='0' y='8' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='0' y='9' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='1' y='9' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='2' y='7' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='2' y='8' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='3' y='6' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='3' y='7' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='3' y='8' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='4' y='3' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='4' y='6' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='4' y='7' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='4' y='8' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='5' y='2' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='5' y='6' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='5' y='7' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='6' y='1' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='6' y='2' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='6' y='3' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='6' y='4' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='6' y='5' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='6' y='6' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='6' y='7' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='7' y='0' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='7' y='1' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='7' y='2' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='7' y='3' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='7' y='4' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='7' y='5' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='7' y='6' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='8' y='2' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='8' y='3' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='8' y='4' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='8' y='5' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='9' y='2' width='1' height='1' fill='%234a3f73'/%3E%3Crect x='9' y='3' width='1' height='1' fill='%234a3f73'/%3E%3C/svg%3E") 0 0 / var(--gap) var(--s) repeat-x; }
.chili::before { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--gap) * var(--n, 0));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12.5 10' shape-rendering='crispEdges'%3E%3Crect x='0' y='7' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='0' y='8' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='0' y='9' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%23ff7a5c'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='1' y='9' width='1' height='1' fill='%23a8221a'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%23ff7a5c'/%3E%3Crect x='2' y='7' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='2' y='8' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%23ff7a5c'/%3E%3Crect x='3' y='6' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='3' y='7' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='3' y='8' width='1' height='1' fill='%23a8221a'/%3E%3Crect x='4' y='3' width='1' height='1' fill='%234cc35a'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23ff7a5c'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='4' y='6' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='4' y='7' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='4' y='8' width='1' height='1' fill='%23a8221a'/%3E%3Crect x='5' y='2' width='1' height='1' fill='%234cc35a'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%23ff7a5c'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='5' y='6' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='5' y='7' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='6' y='1' width='1' height='1' fill='%232e8a3a'/%3E%3Crect x='6' y='2' width='1' height='1' fill='%234cc35a'/%3E%3Crect x='6' y='3' width='1' height='1' fill='%23ff7a5c'/%3E%3Crect x='6' y='4' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='6' y='5' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='6' y='6' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='6' y='7' width='1' height='1' fill='%23a8221a'/%3E%3Crect x='7' y='0' width='1' height='1' fill='%232e8a3a'/%3E%3Crect x='7' y='1' width='1' height='1' fill='%232e8a3a'/%3E%3Crect x='7' y='2' width='1' height='1' fill='%234cc35a'/%3E%3Crect x='7' y='3' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='7' y='4' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='7' y='5' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='7' y='6' width='1' height='1' fill='%23a8221a'/%3E%3Crect x='8' y='2' width='1' height='1' fill='%234cc35a'/%3E%3Crect x='8' y='3' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='8' y='4' width='1' height='1' fill='%23e5392b'/%3E%3Crect x='8' y='5' width='1' height='1' fill='%23a8221a'/%3E%3Crect x='9' y='2' width='1' height='1' fill='%234cc35a'/%3E%3Crect x='9' y='3' width='1' height='1' fill='%234cc35a'/%3E%3C/svg%3E") 0 0 / var(--gap) var(--s) repeat-x; }
.chili.sm { --s: 24px; }
.chili.lg { --s: 32px; }
.vol-fact { display: flex; flex-direction: column; gap: 4px; }
.vol-fact small { color: var(--muted); font-weight: 500; font-size: .85rem; }

/* "★ Favorit" stamp: the site's editorial picks (data/favorites.json). */
.stamp { display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; line-height: 1.2; white-space: nowrap;
  color: #a86a00; border: 2px solid currentColor; padding: 2px 7px; transform: rotate(-6deg); background: rgba(255, 255, 255, .9); }
.card { position: relative; }
.card .body { position: relative; }
.card .stamp { position: absolute; top: 0; right: 10px; z-index: 2; transform: translateY(-65%) rotate(-6deg); box-shadow: 2px 2px 0 rgba(0, 0, 0, .35); }
.card .foot b { white-space: nowrap; }
.stamp.mini { font-size: .62rem; padding: 0 5px; margin-left: 8px; vertical-align: 2px; transform: rotate(-4deg); }
.stamp.lg { font-size: .95rem; padding: 3px 10px; }
.fav-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }

/* Curated content (data/curated.json via `npm run cms`): editorial text, tag chips, list notes */
.editorial { margin: 0 0 12px; }
.editorial p { font-size: 1.04rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 14px; }
a.badge:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }

/* Charts (scripts/05-build.mjs: hbarChart, lineChart, sparkline; tooltip + crosshair in app.js) */
.s1 { --c: var(--viz-1); } .s2 { --c: var(--viz-2); } .s3 { --c: var(--viz-3); } .s4 { --c: var(--viz-4); }
.viz { margin: 0 0 32px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.viz figcaption { margin: 0 0 10px; }
.viz details { margin-top: 14px; }
.viz summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.viz details .table-wrap { margin-top: 10px; }
.viz-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; font-size: .9rem; color: var(--muted); }
.viz-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; background: var(--c); }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); align-items: center; gap: 14px; }
.hb-label { min-width: 0; overflow-wrap: anywhere; }
.hb-label .rk { display: inline-block; min-width: 1.8em; color: var(--muted); font-variant-numeric: tabular-nums; }
.hb-track { display: flex; align-items: center; gap: 2px; height: 14px; padding-right: 3.5rem; }
.hb-seg { flex: none; height: 100%; background: var(--c); cursor: default; }
.hb-seg.end { border-radius: 0 4px 4px 0; }
.hb-seg:hover, .hb-seg:focus-visible { filter: brightness(1.18); outline: none; }
.hb-val { flex: none; margin-left: 8px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) { .hbars li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.linechart { padding-left: 2.4rem; }
.lc-plot { position: relative; height: 220px; margin-top: 8px; outline: none; }
.lc-plot:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.lc-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lc-grid { stroke: var(--viz-grid); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.lc-line { fill: none; stroke: var(--c); stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.lc-yt { position: absolute; left: -2.4rem; width: 2rem; text-align: right; transform: translateY(-50%); font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lc-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--surface); transform: translate(-50%, -50%); }
.lc-cross { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--viz-axis); pointer-events: none; }
.lc-x { position: relative; height: 1.4rem; margin-top: 6px; }
.lc-x span { position: absolute; transform: translateX(-50%); font-size: .75rem; color: var(--muted); white-space: nowrap; }
.lc-x span:first-child { transform: none; }
.lc-x span:last-child { transform: translateX(-100%); }
.viz-tip { position: fixed; z-index: 60; pointer-events: none; max-width: 280px; padding: 8px 11px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); font-size: .86rem; line-height: 1.35; }
.viz-tip[hidden] { display: none; }
.viz-tip strong { display: block; font-size: 1rem; }
.viz-tip .row { display: flex; align-items: center; gap: 8px; }
.viz-tip .row strong { display: inline; font-size: .95rem; min-width: 2ch; }
.viz-tip .key { width: 14px; height: 2px; border-radius: 1px; background: var(--c); flex: none; }
.viz-tip .muted { color: var(--muted); }
.spark { display: block; width: 80px; height: 22px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--viz-1); stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.rank-table td { vertical-align: middle; }
.rt-slot { display: flex; align-items: center; gap: 12px; min-width: 14rem; }
.rt-slot .th, .rt-slot .ph { width: 52px; height: 39px; object-fit: cover; flex: none; border-radius: 4px; display: block; }
.rt-slot small { display: block; color: var(--muted); }
.fp-list { list-style: none; margin: 8px 0 10px; padding: 0; }
.fp-list li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: .94rem; }
.s0 { --c: var(--viz-other); }
:root { --viz-other: #858e9e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --viz-other: #66748f; } }
:root[data-theme="dark"] { --viz-other: #66748f; }
.hb-label { display: flex; gap: 2px; align-items: baseline; }
.hb-label .rk { flex: none; }
.panel .spark { width: 100%; height: 36px; }
@media (max-width: 640px) { .grid:not(.wide) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* Page title with the site search on the right (layout → withPageSearch) */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.page-head h1 { margin-right: auto; }
.page-head .search { flex: 0 1 340px; margin: 0; }
@media (max-width: 760px) { .page-head .search { flex: 1 1 100%; max-width: none; } }
