:root {
  --bg: #0e1116;
  --panel: #161b22;
  --panel-2: #1c232c;
  --line: #262d36;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #d4a418;       /* zezenia gold-ish */
  --accent-2: #b9881a;
  --green: #3fb950;
  --red:   #f85149;
  --blue:  #58a6ff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font: 14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* header */
header.site { background: linear-gradient(180deg,#11161d,#0e1116); border-bottom:1px solid var(--line); }
header.site .wrap { display:flex; align-items:center; gap:8px; min-height:64px; padding-top:10px; padding-bottom:10px; flex-wrap:wrap; }
.brand { display:inline-flex; align-items:center; gap:10px; font-weight:800; font-size:18px; color:var(--text); flex:0 0 auto; line-height:1; }
.brand:hover { text-decoration:none; }
.brand-logo { height:120px; width:120px; display:block; border-radius:14px;
  background:#0a0d12; padding:4px;
  box-shadow:0 2px 8px rgba(0,0,0,.75), inset 0 0 0 1px rgba(212,164,24,.4); }
@media (max-width: 760px) { .brand-logo { height:88px; width:88px; border-radius:12px; padding:3px; } }
/* logo image already contains the wordmark — keep text accessible but hidden */
.brand-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ironborn tag (solo / hardcore mode) */
.ib-tag {
  display:inline-block; margin-left:6px; padding:1px 6px; border-radius:4px;
  font-size:10px; font-weight:700; letter-spacing:0.4px;
  color:#d4d4d4; background:#262d36; border:1px solid #3a4250;
  vertical-align:middle; text-decoration:none;
}
.ib-tag:hover { color:#fff; border-color:#5a6472; }

/* primary nav: takes remaining row space, stays single line on desktop */
.header-right { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; align-items:center; gap:8px; }
.primary-nav { display:flex; gap:2px; flex-wrap:nowrap; min-width:0; justify-content:center; }
.primary-nav a { padding:10px 14px; border-radius:6px; color:var(--muted); white-space:nowrap; font-size:15px; display:inline-flex; align-items:center; gap:8px; }
.primary-nav a:hover { background:var(--panel); color:var(--text); text-decoration:none; }
.primary-nav a.active { background:rgba(212,164,24,.14); color:var(--accent); border:1px solid rgba(212,164,24,.45); padding:9px 13px; box-shadow:0 0 0 1px rgba(212,164,24,.15) inset; }
.primary-nav .nav-icon { display:inline-flex; opacity:.8; }
.primary-nav a:hover .nav-icon,
.primary-nav a.active .nav-icon { opacity:1; color:var(--accent); }

.header-tools { display:flex; align-items:center; gap:10px; flex-wrap:wrap; flex:0 0 auto; justify-content:center; }
.ext-links { display:flex; gap:6px; align-items:center; }
.header-search { display:flex; align-items:stretch; gap:0;
  background:var(--panel-2); border:1px solid var(--line); border-radius:6px; overflow:hidden; }
.header-search input { border:0; background:transparent; color:var(--text);
  padding:6px 10px; font-size:12px; min-width:180px; outline:none; }
.header-search input::placeholder { color:var(--muted); }
.header-search input:focus { background:rgba(212,164,24,.05); }
.header-search button { border:0; background:transparent; color:var(--muted);
  padding:0 10px; cursor:pointer; display:flex; align-items:center; }
.header-search button:hover { color:var(--accent); }
.header-search:focus-within { border-color:var(--accent); }
.ext-link { display:inline-flex; align-items:center; gap:4px;
  padding:6px 12px; border-radius:6px; font-size:12px; font-weight:600;
  border:1px solid var(--line); color:var(--text); background:var(--panel-2); white-space:nowrap; }
.ext-link:hover { text-decoration:none; border-color:var(--accent); color:var(--accent); }
.ext-link.play { color:var(--accent); border-color:rgba(212,164,24,.35); background:rgba(212,164,24,.08); }
.ext-link.play:hover { background:rgba(212,164,24,.18); color:var(--accent); }
.ext-link.wiki { color:var(--blue); border-color:rgba(88,166,255,.35); background:rgba(88,166,255,.06); }
.ext-link.wiki:hover { background:rgba(88,166,255,.16); color:var(--blue); }
.lang-switch { display:flex; gap:2px; align-items:center; }
.lang-switch .lang { display:inline-flex; align-items:center; justify-content:center;
  width:30px; height:30px; border-radius:6px; font-size:18px; line-height:1;
  border:1px solid transparent; opacity:.55; filter:saturate(.6); }
.lang-switch .lang:hover { opacity:1; background:var(--panel-2); filter:saturate(1); text-decoration:none; }
.lang-switch .lang.on { opacity:1; filter:saturate(1); border-color:var(--accent); background:rgba(212,164,24,.08); }
header.site .status { color:var(--muted); font-size:12px; white-space:nowrap; }
header.site .status .status-sep { margin:0 4px; opacity:.5; }
header.site .status .status-next { color:var(--text); }

/* hamburger toggle: hidden by default; shown on mobile */
.nav-toggle { display:none; margin-left:auto; background:var(--panel-2); border:1px solid var(--line);
  border-radius:6px; padding:8px 10px; cursor:pointer; }
.nav-toggle span { display:block; width:18px; height:2px; background:var(--text); margin:3px 0; border-radius:1px; }
.dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; vertical-align:middle; }
.dot.ok { background: var(--green); box-shadow:0 0 8px var(--green); }
.dot.warn { background: var(--red); }

main.wrap { padding: 24px 16px 48px; }

h1 { font-size:22px; margin:0 0 16px; }
h2 { font-size:16px; margin:24px 0 12px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; }

/* panels */
.panel { background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:16px; margin-bottom:18px; }

/* filters */
form.filters { display:flex; flex-wrap:wrap; gap:10px; align-items:end; }
form.filters label { display:flex; flex-direction:column; gap:4px; font-size:12px; color:var(--muted); }
form.filters input, form.filters select {
  background:var(--panel-2); color:var(--text); border:1px solid var(--line);
  padding:7px 10px; border-radius:6px; font:inherit; min-width:130px; }
form.filters button {
  background:var(--accent); color:#0e1116; border:0; padding:8px 14px;
  border-radius:6px; cursor:pointer; font-weight:600; }
form.filters button:hover { background:var(--accent-2); }
form.filters .reset { background:transparent; color:var(--muted); padding:8px 10px; }

/* tables */
table.data { width:100%; border-collapse:collapse; }
table.data th, table.data td { padding:8px 10px; border-bottom:1px solid var(--line); text-align:left; }
table.data th { color:var(--muted); font-size:12px; text-transform:uppercase; font-weight:600; letter-spacing:.05em; }
table.data th .th-sort,
table.data th a.th-sort {
  color: inherit; text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
table.data th a.th-sort:hover { color: var(--text); }
table.data th a.th-sort.on   { color: var(--text); }
.th-sort__arrow { font-size: 10px; opacity: .85; }
table.data th a.th-sort.on .th-sort__arrow { color: var(--accent); opacity: 1; }
table.data tbody tr:hover { background:var(--panel-2); }
table.data .num { text-align:right; font-variant-numeric: tabular-nums; }
table.data .name a { color:var(--text); font-weight:600; }
table.data .name a:hover { color:var(--accent); }
.guild-tag {
  display:inline-block; margin-left:6px; padding:1px 6px; border-radius:4px;
  font-size:10px; font-weight:500; letter-spacing:0.2px;
  color:#d4a418; background:#1f1a0c; border:1px solid #3a2f10; text-decoration:none;
  vertical-align:middle;
}
.guild-tag:hover { color:#ffd24a; border-color:#5a4818; }
.badge { display:inline-block; padding:2px 6px; border-radius:4px; font-size:11px;
  background:var(--panel-2); border:1px solid var(--line); color:var(--muted); }
.badge.world  { color:var(--blue); border-color:#1f3a5c; }
.badge.transfer { color:#e0a83e; border-color:#4a3a17; background:#2a210f; margin-left:4px; }
.badge.online { color:#4ade80; border-color:#1d3a26; background:#0f2417; margin-left:4px; font-weight:600; }
.badge.pk     { color:#ff7a7a; border-color:#3a1a1a; background:#241010; margin-left:4px; }
.badge.player { color:#58a6ff; border-color:#1a3a5c; margin-left:4px; }
.badge.monster{ color:#f85149; border-color:#3a1515; margin-left:4px; }
.badge.boss   { color:#fbbf24; border-color:#4a3800; margin-left:4px; }
.creature-link{ font-style:italic; }
.guild-title-chip { color:#bda35e; font-size:10px; margin-left:2px; }
.badge.warrior{ color:#ff9b6a; border-color:#3a221a; }
.badge.ranger { color:#5fd28a; border-color:#1d3a26; }
.badge.mage   { color:#a78bfa; border-color:#2a2348; }
.gain.pos { color:var(--green); }
.gain.neg { color:var(--red); }
.gain.zero { color:var(--muted); }
.rank-up { color:var(--green); }
.rank-down { color:var(--red); }
.rank-same { color:var(--muted); }
.rank-new { color:var(--accent); font-size:10px; font-weight:600; text-transform:uppercase; }

/* pagination */
.pager { display:flex; gap:6px; align-items:center; margin-top:16px; }
.pager a, .pager span {
  padding:6px 10px; border-radius:6px; background:var(--panel-2); border:1px solid var(--line);
  color:var(--muted); }
.pager a:hover { color:var(--text); text-decoration:none; }
.pager .current { color:var(--text); background:var(--accent); border-color:var(--accent); }

/* hero stat cards */
.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; margin-bottom:18px; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:14px; }
.card .k { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.05em; }
.card .v { font-size:22px; font-weight:700; margin-top:4px; }
.card .sub { color:var(--muted); font-size:12px; margin-top:2px; }

/* player profile */
.profile-head { display:flex; gap:16px; align-items:center; margin-bottom:8px; flex-wrap:wrap; }
.profile-head h1 { margin:0; }
.profile-head .meta { color:var(--muted); }

/* CRITICAL: Chart.js with responsive+maintainAspectRatio:false needs a
   positioned, fixed-height parent or it will grow on every resize tick.
   That's what caused the page to extend forever. */
.chart-wrap { position:relative; width:100%; height:340px; }
.chart-wrap--short { height:200px; }
.chart-wrap > canvas { position:absolute; inset:0; width:100% !important; height:100% !important; }

.empty-chart { color:var(--muted); text-align:center; padding:32px 12px;
  background:var(--panel-2); border:1px dashed var(--line); border-radius:8px; }

/* inline notices (data freshness etc.) */
.notice { padding:10px 14px; border-radius:8px; margin:0 0 14px;
  background:rgba(212,164,24,.08); border:1px solid rgba(212,164,24,.35);
  color:var(--text); font-size:13px; }
.notice strong { color:var(--accent); }
.notice--ok { background:rgba(63,185,80,.08); border-color:rgba(63,185,80,.35); }

/* range chips (1h / 24h / 7d ...) */
.range-chips { display:flex; flex-wrap:wrap; gap:6px; }
.range-chips .chip {
  display:inline-block; padding:6px 12px; border-radius:999px;
  background:var(--panel-2); border:1px solid var(--line); color:var(--muted);
  font-size:12px; font-weight:600; letter-spacing:.02em;
}
.range-chips .chip:hover { color:var(--text); text-decoration:none; border-color:#3a4250; }
.range-chips .chip.active { background:var(--accent); border-color:var(--accent); color:#0e1116; }

footer.site { border-top:1px solid var(--line); margin-top:24px; padding:16px 0; color:var(--muted); font-size:12px; }
footer.site .wrap { display:flex; }

/* responsive */
@media (max-width: 1180px) {
  .primary-nav a { padding:8px 10px; font-size:14px; }
  .primary-nav .nav-label { font-size:14px; }
  .primary-nav a.active { padding:7px 9px; }
}
@media (max-width: 1040px) {
  header.site .wrap { gap:10px; }
  .primary-nav { order:4; width:100%; flex-wrap:wrap; gap:2px; }
  .header-tools { margin-left:0; justify-content:center; }
}
@media (max-width: 760px) {
  header.site .wrap { min-height:56px; gap:8px; }
  header.site .status { display:none; }
  .nav-toggle { display:inline-flex; flex-direction:column; order:2; margin-left:auto; }
  .header-tools { order:5; width:100%; justify-content:center; }
  .primary-nav { display:none; order:4; }
  .primary-nav.open { display:flex; flex-direction:column; flex-wrap:nowrap; gap:2px; width:100%; }
  .primary-nav.open a { width:100%; padding:10px 12px; font-size:14px; }
  .ext-link span[aria-hidden] { display:none; }
  .ext-link { padding:6px 10px; }
  /* horizontal scroll for wide tables instead of hiding columns */
  .panel { padding:0; }
  .panel > table.data { display:block; overflow-x:auto; white-space:nowrap; }
  table.data th, table.data td { padding:8px 8px; }
  h1 { font-size:20px; }
  .player-hero { padding:14px 14px; }
  .player-hero h1 { font-size:22px; }
  .player-hero .meta { margin-left:0; width:100%; }
  main.wrap { padding:16px 12px 40px; }
}
@media (max-width: 420px) {
  .lang-switch .lang { width:26px; height:26px; font-size:15px; }
  .ext-link { font-size:11px; }
}

/* ---------- Player profile redesign ---------- */
.kpi-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; margin:14px 0 22px; }
.kpi {
  background:var(--panel); border:1px solid var(--line); border-radius:12px;
  padding:14px 16px; position:relative; overflow:hidden;
}
.kpi .label { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.08em; font-weight:600; }
.kpi .value { font-size:24px; font-weight:700; margin-top:6px; line-height:1.1; }
.kpi .sub   { color:var(--muted); font-size:12px; margin-top:6px; }
.kpi .sub b { color:var(--text); font-weight:600; }
.kpi.kpi--kills .value { color:#3fb950; }
.kpi.kpi--deaths .value { color:#f85149; }
.kpi.kpi--xph .value { color:#d4a418; }
.kpi.kpi--rank .value { color:#58a6ff; }
.kpi .arrow-up   { color:var(--green); }
.kpi .arrow-down { color:var(--red); }
.kpi .split { display:flex; gap:10px; margin-top:8px; font-size:12px; }
.kpi .split > span { display:inline-flex; align-items:center; gap:4px; }
.kpi .dot { width:8px; height:8px; border-radius:50%; display:inline-block; }
.kpi .dot.g { background:#3fb950; } .kpi .dot.r { background:#f85149; }
.kpi .dot.y { background:#d4a418; } .kpi .dot.b { background:#58a6ff; }

.chart-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:14px;
}
@media (max-width: 820px) { .chart-grid { grid-template-columns:1fr; } }
.chart-card {
  background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:14px 16px;
}
.chart-card h3 { margin:0 0 4px; font-size:14px; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.chart-card .head-meta { color:var(--muted); font-size:12px; margin-bottom:8px; }
.chart-card .chart-wrap { height:260px; }

.chart-pair { display:grid; grid-template-columns:1fr; gap:16px; margin-top:8px; }
.chart-pair__item { min-width:0; }
@media (min-width: 1024px) { .chart-pair { grid-template-columns:1fr 1fr; } }

.player-hero {
  display:flex; flex-wrap:wrap; align-items:center; gap:10px;
  background:linear-gradient(180deg, rgba(212,164,24,.06), transparent 70%);
  border:1px solid var(--line); border-radius:14px; padding:18px 20px; margin-bottom:14px;
}
.player-hero h1 { margin:0 8px 0 0; font-size:30px; }
.player-hero .meta { color:var(--muted); margin-left:auto; font-size:13px; }

/* ---------- Data freshness pills ---------- */
main.wrap > h1 { margin-bottom: 10px; }
main.wrap > h1 + .freshness-row { margin-top: 0; }
.freshness-row {
  display:flex; flex-wrap:wrap; gap:6px 8px; margin:8px 0 10px;
  font-size:12px; color:var(--muted); line-height:1.2;
}
/* Page intro paragraph that immediately follows the freshness chips —
   neutralize the legacy inline `margin-top:-Xpx` so it never overlaps. */
.freshness-row + p {
  margin-top: 4px !important;
  margin-bottom: 14px;
  max-width: 78ch;
  line-height: 1.5;
}
.freshness {
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 10px; border-radius:999px;
  background:rgba(255,255,255,.02); border:1px solid var(--line);
  color:var(--muted); font-size:12px; line-height:1;
  white-space:nowrap;
}
.freshness b { color:var(--text); font-weight:600; }
.freshness .dot { width:8px; height:8px; border-radius:50%; box-shadow:none; margin:0; }
.freshness--fresh .dot { background:#3fb950; box-shadow:0 0 6px #3fb950; }
.freshness--warm  .dot { background:#d4a418; }
.freshness--stale .dot { background:#f85149; }
.freshness--unknown .dot { background:#6e7681; }
.freshness--fresh { border-color:rgba(63,185,80,.35); }
.freshness--warm  { border-color:rgba(212,164,24,.35); }
.freshness--stale { border-color:rgba(248,81,73,.35); }

/* ---------- Top XP losers podium ---------- */
.loss-podium { margin: 18px 0 22px; }
.loss-podium__title { margin: 0 0 4px; }
.loss-podium__sub   { color: var(--muted); margin: 0 0 14px; font-size: 13px; max-width: 78ch; }
.podium {
  list-style:none; padding:0; margin:0;
  display:grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items:end; gap:12px;
}
.podium__step {
  position:relative;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border:1px solid var(--line); border-radius:12px;
  padding:14px 14px 16px; text-align:center;
  display:flex; flex-direction:column; gap:6px; align-items:center;
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset;
}
.podium__rank {
  font-weight:700; color: var(--muted); font-size:13px; letter-spacing:.04em;
  display:inline-flex; align-items:center; gap:6px;
}
.podium__medal { font-size:22px; line-height:1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.podium__player { font-weight:600; }
.podium__player a { font-size:15px; }
.podium__loss { color: #f85149; font-weight:700; font-size:18px; }
.podium__loss span { color: var(--muted); font-weight:600; font-size:12px; margin-left:2px; }
.podium__when { color: var(--muted); font-size:12px; display:block; width:100%; white-space:nowrap; }
.podium__sub { color: var(--muted); font-size:11px; display:block; width:100%; white-space:nowrap; opacity:.85; }

.podium__step--gold   { border-color:rgba(255,196,0,.55);  padding-top:22px; transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(255,196,0,.25), 0 6px 24px -8px rgba(255,196,0,.25); }
.podium__step--silver { border-color:rgba(192,200,210,.45); }
.podium__step--bronze { border-color:rgba(205,127,50,.45); }
.podium__step--gold   .podium__rank { color:#ffc400; }
.podium__step--silver .podium__rank { color:#c0c8d2; }
.podium__step--bronze .podium__rank { color:#cd7f32; }

@media (max-width: 640px) {
  .podium { grid-template-columns: 1fr; }
  .podium__step--gold { transform:none; }
}

/* Per-world mini podiums (gainers.php, level-changes.php) */
.podium-details { margin: 14px 0 18px;
  border:1px solid var(--line); border-radius:10px;
  background:linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%); }
.podium-details[open] { padding-bottom:10px; }
.podium-details__summary { list-style:none; cursor:pointer;
  padding:10px 14px; display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  font-size:13px; }
.podium-details__summary::-webkit-details-marker { display:none; }
.podium-details__summary::before { content:'▸'; color:var(--muted); font-size:12px; transition:transform .15s; }
.podium-details[open] > .podium-details__summary::before { transform:rotate(90deg); }
.podium-details__label { font-weight:600; color:var(--text); }
.podium-details__hint { color:var(--muted); font-size:12px; }
.podium-details > .loss-podium { padding: 0 14px; margin:0; }
.podium-details > .loss-podium .loss-podium__sub { margin:0 0 12px; }
.worlds-podiums__grid {
  display:grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px; align-items:start;
}
.world-podium__title { margin:0 0 8px; font-size:13px; font-weight:600; color:var(--muted); }
.world-podium__title .badge { font-size:12px; }
.world-podium__empty { margin:6px 0 0; color:var(--muted); font-size:13px; font-style:italic; }
.podium--mini { gap:8px; align-items:end; }
.podium--mini .podium__step { padding:8px 8px 10px; border-radius:9px; gap:3px; transform-origin: bottom center; }
.podium--mini .podium__rank { font-size:11px; }
.podium--mini .podium__medal { font-size:16px; }
.podium--mini .podium__player a { font-size:13px; }
.podium--mini .podium__gain,
.podium--mini .podium__loss { font-weight:700; font-size:14px; }
.podium--mini .podium__gain { color:#3fb950; }
.podium--mini .podium__gain span,
.podium--mini .podium__loss span { color:var(--muted); font-weight:600; font-size:11px; margin-left:2px; }
.podium--mini .podium__when { font-size:11px; }

/* Size hierarchy: gold > silver > bronze (matches importance). */
.podium--mini .podium__step--gold {
  padding:14px 10px 16px; transform: translateY(-6px) scale(1.06);
  box-shadow: 0 0 0 1px rgba(255,196,0,.30), 0 8px 22px -10px rgba(255,196,0,.30);
}
.podium--mini .podium__step--gold .podium__medal { font-size:20px; }
.podium--mini .podium__step--gold .podium__player a { font-size:14px; }
.podium--mini .podium__step--gold .podium__gain,
.podium--mini .podium__step--gold .podium__loss { font-size:16px; }

.podium--mini .podium__step--silver { padding:10px 8px 12px; transform: scale(1.0); }
.podium--mini .podium__step--silver .podium__medal { font-size:16px; }

.podium--mini .podium__step--bronze { padding:6px 6px 8px; transform: translateY(6px) scale(0.92); opacity:.92; }
.podium--mini .podium__step--bronze .podium__medal { font-size:14px; }
.podium--mini .podium__step--bronze .podium__player a { font-size:12px; }
.podium--mini .podium__step--bronze .podium__gain,
.podium--mini .podium__step--bronze .podium__loss { font-size:13px; }

@media (max-width: 860px) {
  .worlds-podiums__grid { grid-template-columns: 1fr; }
  .podium--mini .podium__step--gold,
  .podium--mini .podium__step--bronze { transform:none; }
}

/* Subtle "open on official site" link in player/guild hero corner */
.player-hero, .profile-head { position:relative; }
.official-link { position:absolute; top:8px; right:10px;
  font-size:11px; color:var(--muted); padding:2px 8px;
  border:1px solid var(--line); border-radius:999px; background:transparent;
  white-space:nowrap; opacity:.7; }
.official-link:hover { color:var(--accent); border-color:var(--accent); opacity:1; text-decoration:none; }
@media (max-width: 640px) {
  .official-link { position:static; display:inline-block; margin-top:6px; }
}

/* /search.php results page */
.search-results { display:grid; gap:20px; }
.search-section h2 { font-size:16px; margin:0 0 8px; }
.search-section .muted { color:var(--muted); font-weight:400; font-size:13px; }
.search-section .empty { color:var(--muted); }

/* ── Section cards (.gs) — shared layout system ──────────────── */
.gs { background:var(--panel); border:1px solid var(--line); border-radius:12px; overflow:hidden; margin-bottom:14px; }
.gs__head { padding:9px 16px; border-bottom:1px solid var(--line); background:var(--panel-2); display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.gs__title { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); }
.gs__sub { font-size:11px; color:var(--muted); }
.gs__sub--r { margin-left:auto; }
.gs__body { padding:14px 16px; }
.gs__body--flush { padding:0; }
.gs-lbl { padding:7px 14px; font-size:10px; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); font-weight:600; border-bottom:1px solid var(--line); background:var(--panel-2); }
.gs-cols2 { display:grid; grid-template-columns:1fr 1fr; }
.gs-cols2 > * + * { border-left:1px solid var(--line); }
.gs-charts2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.gs-exp-row { display:grid; grid-template-columns:3fr 2fr; gap:12px; align-items:start; }
@media (max-width:860px) {
  .gs-cols2 { grid-template-columns:1fr; }
  .gs-cols2 > * + * { border-left:0; border-top:1px solid var(--line); }
  .gs-charts2, .gs-exp-row { grid-template-columns:1fr; }
}
.gs__head .range-chips .chip { padding:3px 9px; font-size:11px; }
/* .on alias for .active on range chips */
.range-chips .chip.on { background:var(--accent); border-color:var(--accent); color:#0e1116; }
