/*
Theme Name: Skrill kasinot
Theme URI: https://skrillkasinot.io/
Author: Rantatie Digital Oy
Description: Kevyt teema Skrill-maksutapaa kasitteleville vertailusivustoille.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: skrillkasinot
*/

:root {
  /* plum + one orange accent */
  --plum-900: #1d0f26;
  --plum-800: #2b1738;
  --plum-700: #3d2150;
  --plum-600: #573070;

  --magenta-500: #c2185b;
  --magenta-600: #9c1449;
  --magenta-400: #e0407c;
  --magenta-ink: #ffffff;

  --link: #3d2150;
  --link-hover: #9c1449;

  --bg: #f4f7fc;
  --bg-alt: #ffffff;
  --bg-tint: #eef2f9;
  --card: #ffffff;
  --line: #dde4ef;
  --line-strong: #c2cddf;

  --tx: #17223a;
  --tx-soft: #465470;
  --tx-faint: #6d7a93;
  --on-dark: #eef2f9;
  --on-dark-soft: #9fb0cc;

  --pos: #1f8a52;
  --pos-bg: #e9f6ee;
  --neg: #c0392f;
  --neg-bg: #fcecea;
  --warn: #8a6209;
  --warn-bg: #fff7e4;
  --star: #f0a500;

  --w-text: 800px;
  --w-wide: 1120px;
  --w-jump: 1340px;
  --r: 8px;
  --r-lg: 14px;
  --shadow-1: 0 1px 2px rgba(13, 28, 52, .06);
  --shadow-2: 0 6px 22px rgba(13, 28, 52, .10);
  --header-h: 66px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; height: auto; }

/* ---------------------------------------------------------------- layout */

.wrap { width: 100%; max-width: var(--w-text); margin-inline: auto; padding-inline: 20px; }
.wrap-wide { width: 100%; max-width: var(--w-wide); margin-inline: auto; padding-inline: 20px; }
main section { scroll-margin-top: calc(var(--header-h) + 14px); }

.entry-content > * { max-width: var(--w-text); margin-inline: auto; }
.entry-content > .alignwide { max-width: var(--w-wide); }
.entry-content > .alignfull { max-width: none; }

/* ---------------------------------------------------------------- type */

h1, h2, h3, h4 {
  font-weight: 800; line-height: 1.22; letter-spacing: -.015em;
  color: var(--plum-900); margin: 0 0 .55em; text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin-top: 0; letter-spacing: -.026em; }
h2 { font-size: clamp(1.45rem, 3.2vw, 1.85rem); margin-top: 2.1em; }
h3 { font-size: clamp(1.12rem, 2.2vw, 1.24rem); margin-top: 1.75em; margin-bottom: .4em; }
h4 { font-size: 1.04rem; margin-top: 1.4em; margin-bottom: .3em; }
h2 + h3, h3 + h4 { margin-top: .9em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }

strong { font-weight: 700; color: var(--plum-800); }

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .4em; }

.lead { font-size: 1.1rem; }
.small { font-size: .9rem; color: var(--tx-faint); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* ---------------------------------------------------------------- header */

.topnav {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: var(--plum-900);
}
.admin-bar .topnav { top: 32px; }
@media (max-width: 782px) { .admin-bar .topnav { top: 46px; } }

/* Same shell width as the article below, so the logo lines up with the content. */
.topnav .bar {
  max-width: var(--w-jump); margin-inline: auto; padding-inline: 20px;
  height: var(--header-h); display: flex; align-items: center; gap: 18px;
}
/* flex: none — otherwise the nav squeezes the wordmark and distorts it. */
.topnav .brand { display: flex; align-items: center; margin-right: auto; text-decoration: none; flex: none; }
.topnav .brand img { height: 26px; width: auto; max-width: none; display: block; }

.topnav-links ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.topnav-links li { margin: 0; }
.topnav-links a {
  color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.topnav-links a:hover { color: var(--magenta-400); }
@media (max-width: 1200px) { .topnav-links { display: none; } }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: inherit; font-weight: 800; font-size: .97rem; line-height: 1;
  padding: 14px 24px; border-radius: var(--r); border: 0;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .12s ease, transform .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-cta { background: var(--magenta-500); color: var(--magenta-ink); box-shadow: var(--shadow-1); }
.btn-cta:hover { background: var(--magenta-600); color: #fff; }

.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.entry-content .btn-ghost { color: var(--plum-800); border-color: var(--line-strong); }
.entry-content .btn-ghost:hover { border-color: var(--plum-800); background: var(--bg-tint); }

.btn-sm { padding: 10px 16px; font-size: .87rem; }
.btn-block { display: flex; width: 100%; }
.topnav-cta { padding: 10px 18px; font-size: .84rem; text-transform: uppercase; letter-spacing: .03em; }

/* ---------------------------------------------------------------- dark head band */

.headband {
  background: var(--plum-800); color: #fff;
  padding: 4px 0 38px;
  background-image: radial-gradient(1100px 380px at 82% -12%, rgba(229, 99, 11, .16), transparent 62%);
}
.headband h1 { color: #fff; margin-bottom: .45em; }
.headband > .wrap > p,
.headband .lead { color: rgba(255, 255, 255, .88); }
.headband a { color: #fff; }
/* The global `strong` colour is plum, which is the headband's own background —
   bold inside the dark head band would otherwise be invisible. */
.headband strong,
.headband b { color: inherit; }
.headband a:hover { color: var(--magenta-400); }

/* On the front page the band sits above the contents-rail shell, so it has to
   take the shell's geometry — otherwise the H1, byline and intro are centred on
   the viewport while the article text below starts somewhere else entirely.
   These two rules mirror .article-shell and .entry-content > * exactly. */
.home .headband > .wrap { max-width: var(--w-jump); padding-inline: 20px; }
.home .headband > .wrap > * { max-width: var(--w-text); margin-inline: auto; }

.crumbs { font-size: .83rem; color: rgba(255, 255, 255, .6); padding: 22px 0 14px; }
.crumbs a { color: rgba(255, 255, 255, .6); font-weight: 500; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span.sep { margin: 0 7px; opacity: .55; }

/* byline card */
.byline {
  display: flex; flex-wrap: wrap; gap: 10px 30px; align-items: center;
  background: var(--plum-900); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-lg); padding: 14px 22px; margin: 0 0 24px;
}
.bl-item { display: flex; align-items: center; gap: 10px; }
.bl-item img {
  width: 38px; height: 38px; border-radius: 50%; display: block; flex: none;
  background: var(--plum-700);
}
/* label and value sit side by side, so the whole card reads as one line */
.bl-txt { display: flex; flex-direction: row; align-items: baseline; gap: 6px; line-height: 1.35; }
.bl-txt b { color: #fff; font-size: .82rem; font-weight: 700; }
.bl-txt a { color: rgba(255, 255, 255, .82); font-size: .82rem; font-weight: 500; text-decoration: underline; }
.bl-txt a:hover { color: var(--magenta-400); }
.bl-txt time { color: rgba(255, 255, 255, .82); font-size: .82rem; }
.bl-date { margin-left: auto; }
@media (max-width: 720px) {
  .byline { gap: 14px 22px; padding: 14px 16px; }
  .bl-date { margin-left: 0; }
}

/* nutshell bullets inside the band */
.nutshell { margin: 22px 0 0; }
.nutshell-head { font-weight: 800; color: #fff; margin: 0 0 .5em; }
.nutshell ul { list-style: none; padding: 0; margin: 0; }
.nutshell li {
  position: relative; padding-left: 20px; margin-bottom: .45em;
  color: rgba(255, 255, 255, .88); font-size: .97rem;
}
.nutshell li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--magenta-500);
}
.nutshell strong { color: #fff; }

.lead-buttons { display: flex; flex-wrap: wrap; gap: 11px; margin: 26px 0 0; }

/* ---------------------------------------------------------------- toplist */

.cmp-list { display: flex; flex-direction: column; gap: 16px; margin: 30px 0 12px; }

.cmp-row {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 24px 22px 30px; display: grid; gap: 20px;
  grid-template-columns: minmax(130px, .95fr) minmax(150px, 1.05fr) minmax(170px, 1.15fr) minmax(158px, .85fr);
  align-items: center; position: relative; box-shadow: var(--shadow-1);
}
.cmp-row:hover { box-shadow: var(--shadow-2); }
.cmp-row.is-top { border-color: var(--magenta-500); }

/* the rank badge hangs off the top-left corner, as in the reference */
.cmp-rank {
  position: absolute; top: -12px; left: -12px; width: 34px; height: 34px;
  border-radius: 50%; background: var(--plum-800); color: #fff;
  display: grid; place-items: center; font-size: .95rem; font-weight: 800;
  box-shadow: var(--shadow-1); z-index: 2;
}
.cmp-row.is-top .cmp-rank { background: var(--magenta-500); }

.cmp-ribbon {
  position: absolute; top: -11px; right: 22px; background: var(--magenta-500); color: #fff;
  font-size: .67rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}

.cmp-brand { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.cmp-mark {
  height: 62px; border-radius: 10px; background: var(--plum-900);
  display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 6px;
}
.cmp-mark img { max-height: 48px; width: auto; }
.cmp-mark.is-empty {
  background: var(--bg-tint); border: 1px dashed var(--line-strong);
  color: var(--tx-faint); font-size: .74rem; font-weight: 600; text-align: center; padding: 8px;
}
.cmp-title { font-weight: 800; color: var(--plum-900); font-size: 1.14rem; line-height: 1.2; }
.cmp-score { font-size: .82rem; color: var(--tx-faint); display: flex; flex-direction: column; gap: 1px; }
.cmp-score b { color: var(--plum-900); font-size: .86rem; }
.cmp-stars { color: var(--star); letter-spacing: 2px; font-size: .95rem; }

.cmp-specs { margin: 0; font-size: .85rem; }
.cmp-specs div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.cmp-specs div:last-child { border-bottom: 0; }
.cmp-specs dt { color: var(--tx-faint); }
.cmp-specs dd { margin: 0; font-weight: 700; color: var(--plum-800); text-align: right; }

.cmp-wins { list-style: none; margin: 0; padding: 0; font-size: .87rem; }
.cmp-wins li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: .45em; line-height: 1.4; }
.cmp-wins li::before {
  content: "✓"; flex: none; color: var(--pos); font-weight: 800;
  font-size: .9rem; margin-top: 1px;
}

.cmp-go { display: flex; flex-direction: column; gap: 8px; }
.cmp-go .cmp-fine { font-size: .68rem; color: var(--tx-faint); text-align: center; line-height: 1.35; }

@media (max-width: 1000px) {
  .cmp-row { grid-template-columns: minmax(120px, 1fr) minmax(140px, 1fr); row-gap: 18px; }
  .cmp-wins { grid-column: 1 / -1; }
  .cmp-go { grid-column: 1 / -1; }
  .cmp-ribbon { right: 16px; }
}
@media (max-width: 620px) {
  .cmp-row { grid-template-columns: 1fr; padding: 24px 18px 20px; }
  .cmp-rank { left: 14px; }
}

.cmp-placeholder {
  border: 2px dashed var(--magenta-500); background: #fff6ee;
  border-radius: var(--r-lg); padding: 26px 22px; text-align: center; margin: 26px 0;
}
.cmp-placeholder .flag {
  display: inline-block; background: var(--magenta-500); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px; margin-bottom: 10px;
}
.cmp-placeholder p { margin: 0; color: var(--plum-800); font-weight: 600; font-size: .93rem; }
.cmp-placeholder code { background: rgba(13, 28, 52, .08); padding: 1px 5px; border-radius: 3px; font-size: .88em; }

/* ---------------------------------------------------------------- trio */

.trio { margin: 26px auto 0; }
.trio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .trio-grid { grid-template-columns: 1fr; } }
.trio-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 18px; text-align: center; display: flex; flex-direction: column; gap: 11px;
  box-shadow: var(--shadow-1);
}
.trio-card.is-top { border-color: var(--magenta-500); border-width: 2px; }
.trio-label {
  align-self: center; background: var(--bg-tint); color: var(--plum-800); font-size: .68rem;
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.trio-card.is-top .trio-label { background: var(--magenta-500); color: #fff; }
.trio-mark { height: 54px; border-radius: 10px; background: var(--plum-900); display: flex; align-items: center; justify-content: center; padding: 6px; }
.trio-mark img { max-height: 42px; width: auto; }
.trio-mark.is-empty { background: var(--bg-tint); border: 1px dashed var(--line-strong); color: var(--tx-faint); font-size: .78rem; font-weight: 600; }
.trio-offer { font-weight: 800; color: var(--plum-900); font-size: 1.02rem; line-height: 1.35; }
.trio-meta { font-size: .8rem; color: var(--tx-faint); margin-top: -5px; }

/* ---------------------------------------------------------------- content blocks */

.ctaband {
  background: var(--plum-800); color: #fff; border-radius: var(--r-lg);
  padding: 24px 26px; margin: 2.2em auto;
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.ctaband h3 { margin: 0 0 .25em; font-size: 1.14rem; color: #fff; }
.ctaband p { color: rgba(255, 255, 255, .82); margin: 0; font-size: .94rem; max-width: 50ch; }
.ctaband .btn { flex: none; }

.jump, .jump-inline {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 24px; margin: 28px auto; box-shadow: var(--shadow-1);
}
.jump h2 { margin: 0 0 .6em; font-size: 1.02rem; }
.jump ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 28px; font-size: .9rem; }
.jump li { margin-bottom: .3em; break-inside: avoid; }
.jump a { color: var(--tx-soft); font-weight: 500; text-decoration: none; }
.jump a:hover { color: var(--link-hover); text-decoration: underline; }
@media (max-width: 640px) { .jump ol { columns: 1; } }

.note {
  background: var(--bg-alt); border: 1px solid var(--line); border-left: 4px solid var(--plum-700);
  border-radius: var(--r); padding: 17px 22px; margin: 1.7em auto; box-shadow: var(--shadow-1);
}
.note.warn { background: var(--warn-bg); border-color: #f0e0bb; border-left-color: #d9a520; }
.note.warn strong { color: var(--warn); }
.note p:last-child { margin-bottom: 0; }
.note h3, .note h4 { margin-top: 0; }

.keypoints {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 24px; margin: 1.8em auto; box-shadow: var(--shadow-1);
}
.keypoints ul { list-style: none; padding: 0; margin: 0; }
.keypoints li { display: flex; gap: 11px; align-items: flex-start; margin-bottom: .5em; }
.keypoints li::before {
  content: "✓"; flex: none; color: #fff; background: var(--pos);
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: .72rem; font-weight: 700; margin-top: 3px;
}

figure { margin: 1.9em auto; }
figure img, figure svg { border-radius: var(--r-lg); display: block; width: 100%; }
figcaption { font-size: .84rem; color: var(--tx-faint); margin-top: .6em; text-align: center; }

.table-wrap {
  overflow-x: auto; margin: 1.7em auto; -webkit-overflow-scrolling: touch;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
table { width: 100%; border-collapse: collapse; font-size: .91rem; }
caption { caption-side: bottom; padding: 10px 14px; text-align: left; }
th, td { padding: 11px 15px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--plum-800); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .01em; }
tbody th { font-weight: 700; color: var(--plum-800); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--bg-tint); }

.updown { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.8em auto; }
@media (max-width: 680px) { .updown { grid-template-columns: 1fr; } }
.updown > div { border-radius: var(--r-lg); padding: 18px 22px; border: 1px solid var(--line); }
.updown .pro { background: var(--pos-bg); border-color: #c3e4d1; }
.updown .con { background: var(--neg-bg); border-color: #f2cbc7; }
.updown h3 { margin-top: 0; font-size: 1.04rem; }
.updown .pro h3 { color: var(--pos); }
.updown .con h3 { color: var(--neg); }
.updown ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.updown li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: .45em; }
.updown .pro li::before { content: "+"; color: var(--pos); font-weight: 800; flex: none; }
.updown .con li::before { content: "−"; color: var(--neg); font-weight: 800; flex: none; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 1.8em auto; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 0 50px; margin-bottom: 1.5em; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px;
  border-radius: 50%; background: var(--magenta-500); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1rem;
}
.steps h3 { margin-top: 0; margin-bottom: .3em; }

.profile {
  display: flex; gap: 17px; align-items: flex-start; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; margin: 1.4em auto;
  box-shadow: var(--shadow-1);
}
.profile img { width: 68px; height: 68px; border-radius: 50%; flex: none; background: var(--plum-800); }
.profile h3 { margin: 0 0 .15em; font-size: 1.08rem; }
.profile .role { color: var(--magenta-600); font-weight: 700; font-size: .85rem; margin-bottom: .55em; }
.profile p { margin: 0 0 .5em; font-size: .93rem; color: var(--tx-soft); }
@media (max-width: 560px) { .profile { flex-direction: column; } }

.methodbox {
  background: var(--plum-800); color: rgba(255, 255, 255, .86); border-radius: var(--r-lg);
  padding: 22px 26px; margin: 1.8em auto;
}
.methodbox h3 { margin-top: 0; color: #fff; }
.methodbox a { color: #fff; }
.methodbox strong { color: #fff; }

.faq { margin: 1.6em auto; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 22px; box-shadow: var(--shadow-1); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 16px 40px 16px 0; font-weight: 700; color: var(--plum-900);
  position: relative; list-style: none; font-size: 1rem; line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--magenta-500); border-bottom: 2px solid var(--magenta-500);
  transform: translateY(-70%) rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 18px; color: var(--tx-soft); font-size: .95rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- sticky mobile CTA */

.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--plum-900); border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 12px;
}
.stickybar .txt { color: #fff; font-size: .8rem; line-height: 1.3; min-width: 0; }
.stickybar .txt b { display: block; font-size: .9rem; }
.stickybar .txt span { color: var(--on-dark-soft); }
.stickybar .btn { flex: none; margin-left: auto; }
@media (max-width: 1000px) { .stickybar { display: flex; } body { padding-bottom: 66px; } }

/* ---------------------------------------------------------------- inner pages */

.legal h2 { font-size: 1.32rem; margin-top: 2em; padding-top: .7em; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal h3 { font-size: 1.06rem; }

.entry-content { padding-top: 34px; padding-bottom: 8px; }

/* ---------------------------------------------------------------- contents rail */

.article-shell { width: 100%; max-width: var(--w-jump); margin-inline: auto; padding-inline: 20px; }
.jump-rail { display: none; }

@media (min-width: 1200px) {
  .article-shell {
    display: grid; grid-template-columns: minmax(0, 1fr) 256px; gap: 48px; align-items: start;
  }
  .article-shell > .entry-content { min-width: 0; }
  .article-shell > .entry-content > * { margin-inline: 0; }
  .jump-rail { position: sticky; top: calc(var(--header-h) + 34px); display: block; }
  .jump-inline { display: none; }

  /* Above 1200px the article column is left-aligned in the grid, so the band
     content has to be too. */
  .home .headband > .wrap > * { margin-inline: 0; }
}

.jump-rail nav {
  border-left: 2px solid var(--line-strong); padding: 2px 0 2px 16px;
  max-height: calc(100vh - var(--header-h) - 64px); overflow-y: auto; overscroll-behavior: contain;
}
.jump-rail h2 { margin: 0 0 .7em; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--tx-faint); }
.jump-rail ol { list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.jump-rail li { margin-bottom: .1em; }
.jump-rail a { display: block; padding: 4px 0; color: var(--tx-faint); font-weight: 500; text-decoration: none; }
.jump-rail a:hover { color: var(--link-hover); }
.jump-rail a.is-active { color: var(--plum-900); font-weight: 800; }

/* ---------------------------------------------------------------- sources + changelog */

.sources { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 24px; margin: 2em auto; box-shadow: var(--shadow-1); }
.sources h2, .sources h3 { margin-top: 0; }
.sources ol, .sources ul { margin: 0; padding-left: 1.2em; font-size: .91rem; }
.sources li { margin-bottom: .4em; }
.sources .src-note { font-size: .83rem; color: var(--tx-faint); margin: .9em 0 0; }

.changelog { list-style: none; margin: 1.1em 0 0; padding: 0; font-size: .89rem; }
.changelog li { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.changelog li:last-child { border-bottom: 0; }
.changelog time { flex: none; width: 78px; color: var(--tx-faint); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- footer */

.foot { background: var(--plum-900); color: var(--on-dark-soft); font-size: .88rem; padding: 40px 0 24px; margin-top: 56px; }
.foot a { color: var(--on-dark-soft); font-weight: 500; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px 24px; }
.foot h3 { color: #fff; font-size: .92rem; margin: 0 0 .8em; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .42em; }
.foot-brand img { height: 24px; margin-bottom: 14px; }
.foot .addr { font-style: normal; line-height: 1.7; }

.trustmarks {
  display: flex; flex-wrap: wrap; gap: 9px; align-items: stretch;
  margin-top: 32px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .13);
}
.trustmark {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px; padding: 10px 14px; color: var(--on-dark);
  font-size: .78rem; font-weight: 600; line-height: 1.25; text-decoration: none;
}
a.trustmark:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .09); color: #fff; text-decoration: none; }
.trustmark svg, .trustmark img { flex: none; display: block; }
.trustmark b { display: block; color: #fff; font-weight: 700; }
.trustmark span { display: block; color: var(--on-dark-soft); font-size: .7rem; font-weight: 500; }
.trust-18 {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--magenta-400);
  color: var(--magenta-400); font-weight: 800; font-size: .74rem;
  display: inline-grid; place-items: center; flex: none;
}
@media (max-width: 560px) { .trustmark { flex: 1 1 100%; } }

.foot-base {
  border-top: 1px solid rgba(255, 255, 255, .13); margin-top: 26px; padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  font-size: .82rem;
}
.foot-resp { display: flex; align-items: center; gap: 11px; }

/* ---------------------------------------------------------------- utils */

.visually-hidden, .screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.center { text-align: center; }
.mt0 { margin-top: 0; }
.alignwide { max-width: var(--w-wide); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ---------------------------------------------------------------- telegram link */
/* Colour-agnostic on purpose: this same rule ships on footers with different
   backgrounds, so it borrows the surrounding text colour rather than naming one. */
.foot-tg {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid currentColor; color: inherit;
  font-size: .88rem; font-weight: 700; line-height: 1;
  text-decoration: none; opacity: .82;
  transition: opacity .15s ease, background-color .15s ease;
}
.foot-tg svg { flex: none; }
.foot-tg:hover { opacity: 1; background: rgba(127, 127, 127, .18); }
.foot-tg:focus-visible { opacity: 1; outline: 2px solid currentColor; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .foot-tg { transition: none; } }


/* ---------------------------------------------------------------- toplist card */
/* Leans on the theme's own custom properties so the card picks up this site's
   palette; every var has a fallback because the themes do not all define the
   same set. The CTA reuses .btn-cta, so it is on-brand automatically. */
.toplist, .ranklist, .cmp-list, .caslist { display: flex; flex-direction: column; gap: 14px; margin: 26px 0 8px; }

.tl-card {
  --tl-accent: var(--magenta-500);
  --tl-surface: var(--card-alt, #f6f7f8);
  --tl-ink: var(--ink-900, var(--tx, #1b1f22));
  display: grid; grid-template-columns: 54px 158px minmax(0, 1fr) 192px;
  gap: 20px; align-items: center; position: relative;
  background: var(--card, #fff); border: 1px solid var(--line, #e3e6e8);
  border-radius: var(--r-lg, 14px); padding: 20px 22px; box-shadow: var(--shadow-1, 0 1px 3px rgba(0,0,0,.07));
}
.tl-card:hover { box-shadow: var(--shadow-2, 0 6px 18px rgba(0,0,0,.10)); }
.tl-card.is-top { border: 2px solid var(--tl-accent); padding-top: 26px; }
.tl-ribbon {
  position: absolute; top: -12px; left: 22px; background: var(--tl-accent); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px;
}
.tl-rank {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tl-surface); color: var(--tx-faint, #6f797e); font-weight: 800; font-size: 1.1rem;
}
.tl-card.is-top .tl-rank { background: var(--tl-accent); color: #fff; }

.tl-brand { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.tl-logo { height: 46px; display: grid; place-items: center; background: var(--tl-surface); border-radius: var(--r, 10px); overflow: hidden; }
.tl-logo img { max-height: 40px; max-width: 100%; width: auto; }
.tl-logo.is-empty { border: 1px dashed var(--line-strong, #c9cfd3); color: var(--tx-faint, #6f797e); font-size: .78rem; font-weight: 800; text-align: center; padding: 0 8px; }
.tl-name { font-weight: 800; color: var(--tl-ink); font-size: 1.02rem; }
.tl-score { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--tx-faint, #6f797e); }
.tl-score b { color: var(--tl-ink); font-size: .98rem; }
.tl-stars { color: var(--tl-accent); letter-spacing: .5px; }

/* The offer is the reason anyone clicks, so it carries the largest type. */
.tl-mid { min-width: 0; }
.tl-offers { display: flex; gap: 10px; flex-wrap: wrap; }
.tl-offer { flex: 1 1 150px; min-width: 0; background: var(--tl-surface); border: 1px solid var(--line, #e3e6e8); border-radius: var(--r, 10px); padding: 8px 14px; text-align: center; }
.tl-offer.is-alt { flex: 0 1 108px; }
.tl-olab { display: block; font-size: .61rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--tx-faint, #6f797e); }
.tl-oval { display: block; font-size: 1.24rem; font-weight: 800; color: var(--tl-ink); line-height: 1.15; margin-top: 2px; }

.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tl-chip { background: var(--tl-surface); border: 1px solid var(--line, #e3e6e8); border-radius: 6px; padding: 4px 9px; font-size: .76rem; color: var(--tx-soft, #4d565b); }
.tl-chip b { color: var(--tl-ink); font-weight: 700; }

.tl-lic { margin-top: 9px; font-size: .76rem; font-weight: 700; color: var(--pos, #1aa251); }
.tl-lic::before { content: "\2713\00a0"; }
.tl-lic.is-warn { color: var(--warn, #b4690e); }
.tl-lic.is-warn::before { content: "\26A0\00a0"; }

.tl-more { margin-top: 9px; }
.tl-more > summary { cursor: pointer; list-style: none; font-size: .78rem; font-weight: 700; color: var(--link, var(--tl-accent)); display: inline-flex; align-items: center; gap: 5px; }
.tl-more > summary::-webkit-details-marker { display: none; }
.tl-more > summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; }
.tl-more[open] > summary::after { transform: rotate(-135deg); margin-top: 2px; }
.tl-more-in { padding-top: 10px; }
.tl-perks { list-style: none; margin: 0 0 8px; padding: 0; font-size: .84rem; }
.tl-perks li { position: relative; padding-left: 23px; margin-bottom: .3em; line-height: 1.45; }
.tl-perks li::before { content: "\2713"; position: absolute; left: 0; top: 2px; color: var(--pos, #1aa251); font-weight: 800; background: var(--pos-bg, #e8f6ee); width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font-size: .68rem; }
.tl-terms { font-size: .72rem; color: var(--tx-faint, #6f797e); margin: 8px 0 0; line-height: 1.45; }

.tl-go { display: flex; flex-direction: column; align-items: stretch; text-align: center; }
.tl-btn { font-size: 1rem; padding: 14px 12px; }
.tl-micro { font-size: .69rem; color: var(--tx-faint, #6f797e); margin-top: 7px; line-height: 1.4; }
.tl-why { font-size: .76rem; font-weight: 700; color: var(--link, var(--tl-accent)); margin-top: 7px; }

@media (max-width: 1040px) {
  .tl-card { grid-template-columns: 46px 140px minmax(0, 1fr); row-gap: 16px; }
  .tl-go { grid-column: 1 / -1; }
  .tl-btn { padding: 15px 12px; }
}
@media (max-width: 680px) {
  .tl-card { grid-template-columns: 42px 1fr; row-gap: 14px; padding: 18px 16px; }
  .tl-rank { width: 34px; height: 34px; font-size: .95rem; }
  .tl-brand { flex-direction: row; align-items: center; gap: 12px; }
  .tl-logo { width: 74px; flex: none; height: 40px; }
  .tl-mid, .tl-go { grid-column: 1 / -1; }
  .tl-oval { font-size: 1.12rem; }
}

/* The card also has to survive inside a narrow reading column, not just a wide
   one, so it reflows on its own width rather than the viewport. The viewport
   queries above stay as the fallback for browsers without container queries. */
.toplist, .ranklist, .cmp-list, .caslist { container-type: inline-size; }
@container (max-width: 820px) {
  .tl-card { grid-template-columns: 46px 140px minmax(0, 1fr); row-gap: 16px; }
  .tl-go { grid-column: 1 / -1; }
  .tl-btn { padding: 15px 12px; }
}
@container (max-width: 680px) {
  .tl-card { grid-template-columns: 42px 1fr; row-gap: 14px; padding: 18px 16px; }
  .tl-rank { width: 34px; height: 34px; font-size: .95rem; }
  .tl-brand { flex-direction: row; align-items: center; gap: 12px; }
  .tl-logo { width: 74px; flex: none; height: 40px; }
  .tl-mid, .tl-go { grid-column: 1 / -1; }
  .tl-oval { font-size: 1.12rem; }
}

/* touch-targets: the logo and the small CTAs render 32-34px tall, which is under
   the comfortable thumb size. Only the hit area grows; the artwork is unchanged. */
@media (max-width: 860px) {
  .topnav .brand,
    .btn-cta,
    .stickybar .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Section header image, sits directly under the H2 it belongs to. */
.section-banner { display: block; width: 100%; height: auto; margin: 4px 0 24px; border-radius: var(--r, 10px); }

.foot-badges {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.foot-badge {
	width: 44px;
	height: 44px;
	object-fit: contain;
	opacity: .85;
	flex: none;
}
.foot-badges a {
	font-size: .82rem;
	color: rgba(255, 255, 255, .62);
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, .22);
}
.foot-badges a:hover,
.foot-badges a:focus-visible { color: #fff; }

/* --- homepage content blocks --- */

/* Keyword-bearing lead artwork, directly under the intro. */
.lead-figure {
	display: block;
	width: 100%;
	height: auto;
	max-width: 900px;
	margin: 0 0 34px;
	border-radius: 14px;
}

/* Section header artwork. Sits above its h2 and carries the same heading text,
   so it is decorative-adjacent: the alt describes it as a section image. */
.sec-banner {
	display: block;
	width: 100%;
	height: auto;
	max-width: 720px;
	margin: 0 0 18px;
	border-radius: 10px;
}

/* Tables scroll inside their own box instead of widening the article. */
.table-wrap {
	overflow-x: auto;
	min-width: 0;
	margin: 0 0 26px;
	-webkit-overflow-scrolling: touch;
}

.fee-table {
	width: 100%;
	min-width: 480px;
	border-collapse: collapse;
	font-size: .95rem;
}

.fee-table caption {
	caption-side: bottom;
	padding-top: 10px;
	font-size: .82rem;
	color: var(--ink-500, #5d5366);
	text-align: left;
}

.fee-table th,
.fee-table td {
	padding: 11px 14px;
	text-align: left;
	border-bottom: 1px solid var(--line, #e7e2ea);
	vertical-align: top;
}

.fee-table thead th {
	background: var(--plum-900, #1d0f26);
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
}

/* The global `strong` colour is dark ink, which disappears on dark panels. */
.fee-table thead th strong { color: inherit; }

.fee-table tbody tr:nth-child(even) { background: var(--tint, #faf7fb); }
.fee-table tbody td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }

.src-list {
	margin: 0 0 20px;
	padding-left: 20px;
}

.src-list li { margin-bottom: 8px; }

@media (max-width: 600px) {
	.fee-table { font-size: .88rem; }
	.fee-table th,
	.fee-table td { padding: 9px 11px; }
	.lead-figure { margin-bottom: 24px; }
}
