/*
Theme Name: Viljo kasinot
Theme URI: https://viljo-kasinot.io/
Author: Rantatie Digital Oy
Description: Tummansininen otsikkopalkki, vaalea sisältötausta ja oranssit toimintopainikkeet. Sisältää Kasino-sisältötyypin, vertailu-shortcoden, tekijäkortin ja luottamusmerkit.
Version: 1.0.5
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: viljo-kasinot
*/

:root {
  /* navy + one orange accent */
  --navy-900: #0d1c34;
  --navy-800: #122647;
  --navy-700: #1b3762;
  --navy-600: #2b4b7d;

  --amber-500: #e5630b;
  --amber-600: #c85207;
  --amber-400: #f77d29;
  --amber-ink: #ffffff;

  --link: #1b3762;
  --link-hover: #c85207;

  --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(--navy-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(--navy-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(--navy-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(--amber-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(--amber-500); color: var(--amber-ink); box-shadow: var(--shadow-1); }
.btn-cta:hover { background: var(--amber-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(--navy-800); border-color: var(--line-strong); }
.entry-content .btn-ghost:hover { border-color: var(--navy-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(--navy-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 navy, 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(--amber-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(--navy-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(--navy-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(--amber-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(--amber-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(--amber-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(--navy-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(--amber-500); }

.cmp-ribbon {
  position: absolute; top: -11px; right: 22px; background: var(--amber-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(--navy-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(--navy-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(--navy-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(--navy-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(--amber-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(--amber-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(--navy-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(--amber-500); border-width: 2px; }
.trio-label {
  align-self: center; background: var(--bg-tint); color: var(--navy-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(--amber-500); color: #fff; }
.trio-mark { height: 54px; border-radius: 10px; background: var(--navy-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(--navy-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(--navy-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(--navy-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(--navy-800); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .01em; }
tbody th { font-weight: 700; color: var(--navy-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(--amber-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(--navy-800); }
.profile h3 { margin: 0 0 .15em; font-size: 1.08rem; }
.profile .role { color: var(--amber-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(--navy-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(--navy-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(--amber-500); border-bottom: 2px solid var(--amber-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(--navy-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(--navy-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(--navy-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(--amber-400);
  color: var(--amber-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; } }
