/* ==========================================================================
   PokiesPick — shared stylesheet
   Single responsive stylesheet: every component below is ONE set of markup
   that reflows via @media (max-width: 768px) — no duplicated desktop/mobile
   blocks. Breakpoint and tokens match the source design (see README).
   ========================================================================== */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
details[open] .chev { transform: rotate(180deg); }
.chev { transition: transform .2s; flex: none; }
button { font: inherit; }

/* ---- theme tokens ------------------------------------------------------- */
[data-theme="light"] {
  --bg:#ffffff; --surface:#f6f7f9; --surface2:#eceef3; --text:#0f172a; --muted:#64748b; --border:#e5e8ee;
  --accent:#16a34a; --accent-hover:#15803d; --accent-fg:#ffffff; --link:#2563eb;
  --gold:#b45309; --gold-bg:#fef3c7; --hot:#b91c1c; --hot-bg:#fee2e2; --new:#1d4ed8; --new-bg:#dbeafe;
  --excl:#6d28d9; --excl-bg:#ede9fe; --fast:#047857; --fast-bg:#d1fae5; --star:#f59e0b;
  --shadow:0 1px 2px rgba(15,23,42,.05), 0 10px 30px rgba(15,23,42,.06);
}
[data-theme="graphite"] {
  --bg:#131417; --surface:#1b1d22; --surface2:#25282f; --text:#f4f5f7; --muted:#9aa1ad; --border:#2b2f37;
  --accent:#22c55e; --accent-hover:#4ade80; --accent-fg:#06200f; --link:#7ab8ff;
  --gold:#fbbf24; --gold-bg:rgba(251,191,36,.16); --hot:#fb7185; --hot-bg:rgba(251,113,133,.16);
  --new:#60a5fa; --new-bg:rgba(96,165,250,.16); --excl:#c084fc; --excl-bg:rgba(192,132,252,.16);
  --fast:#34d399; --fast-bg:rgba(52,211,153,.16); --star:#fbbf24; --shadow:none;
}
[data-theme="navy"] {
  --bg:#0a1122; --surface:#111a30; --surface2:#1a2540; --text:#f1f5f9; --muted:#8fa0bb; --border:#223050;
  --accent:#f5b301; --accent-hover:#ffc63a; --accent-fg:#1a1200; --link:#7cc4ff;
  --gold:#f5b301; --gold-bg:rgba(245,179,1,.16); --hot:#ff6b6b; --hot-bg:rgba(255,107,107,.16);
  --new:#4cc2ff; --new-bg:rgba(76,194,255,.16); --excl:#b58cff; --excl-bg:rgba(181,140,255,.16);
  --fast:#3ddc97; --fast-bg:rgba(61,220,151,.16); --star:#f5b301; --shadow:none;
}

/* ---- layout shell -------------------------------------------------------- */
.page-container { max-width: 1280px; margin: 0 auto; }
main { padding: 0 48px; }
@media (max-width: 768px) { main { padding: 0 16px; } }

/* ---- header / nav --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20; background: var(--bg);
  display: flex; align-items: center; gap: 32px;
  padding: 0 48px; height: 68px; border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; color: var(--accent-fg); font-weight: 800; font-size: 15px; }
.brand .word { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand .word .au { color: var(--accent); }
.main-nav { display: flex; gap: 26px; font-size: 14px; font-weight: 500; }
.main-nav a { color: var(--muted); padding: 22px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active { border-bottom-color: var(--accent); }
.header-cta { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 10px; background: var(--accent); color: var(--accent-fg); font-weight: 600; font-size: 14px; }
.header-cta:hover { background: var(--accent-hover); color: var(--accent-fg); }
.hamburger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--text); cursor: pointer; }

@media (max-width: 768px) {
  .site-header { padding: 0 16px; height: 60px; gap: 12px; }
  .brand .mark { width: 28px; height: 28px; font-size: 14px; }
  .brand .word { font-size: 17px; }
  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
}

/* breadcrumb */
.breadcrumb { display: flex; gap: 8px; align-items: center; padding: 20px 0 0; font-size: 13px; color: var(--muted); }
.breadcrumb .current { color: var(--text); }
@media (max-width: 768px) { .breadcrumb { padding: 14px 0 0; font-size: 12px; } }

/* mobile menu overlay (real toggled UI, closed by default) */
.mobile-menu { display: none; }
.mobile-menu.open { position: fixed; inset: 0; z-index: 40; background: var(--bg); flex-direction: column; }
.mobile-menu.open { display: flex; }
.mobile-menu .site-header { position: static; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 8px 16px; flex: 1; overflow: auto; }
.mobile-menu nav a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--border); font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.mobile-menu .menu-cta { display: flex; align-items: center; justify-content: center; height: 50px; margin-top: 24px; border-radius: 12px; background: var(--accent); color: var(--accent-fg); font-weight: 700; font-size: 16px; }
.mobile-menu .menu-secondary { display: flex; justify-content: center; gap: 20px; margin-top: 18px; font-size: 13px; }
.mobile-menu .menu-secondary a { color: var(--muted); }
.mobile-menu .menu-rg { display: flex; align-items: center; gap: 10px; padding: 14px 16px 22px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
body.menu-open { overflow: hidden; }

/* ---- buttons / labels / chips --------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 20px; border-radius: 10px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-fg); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); font-weight: 600; }
.btn-secondary:hover { border-color: var(--text); color: var(--text); }
.chip { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-weight: 500; font-size: 13px; }
.pill { padding: 3px 9px; border-radius: 999px; background: var(--surface2); color: var(--muted); font-size: 11px; font-weight: 600; }
.label { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.social-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); }
.social-btn:hover { color: var(--text); border-color: var(--text); }

/* ---- tables ---------------------------------------------------------------- */
.table-wrap { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); background: var(--surface); }
td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--muted); }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: var(--surface); }
@media (max-width: 768px) {
  table { font-size: 13px; }
  th, td { padding: 10px 12px; }
}

/* ---- FAQ / details ---------------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 1px solid var(--border); }
.faq-grid details { border-bottom: 1px solid var(--border); }
.faq-grid summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.faq-grid p { margin: 0; padding: 0 0 16px; font-size: 14px; color: var(--muted); }
@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid summary { min-height: 44px; font-size: 14.5px; padding: 14px 0; }
  .faq-grid p { padding: 0 0 14px; font-size: 13.5px; }
}

/* ---- footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 44px 48px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 36ch; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col .col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--text); }
.footer-col a:hover { color: var(--accent); }
.trust-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; padding: 18px 28px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.age-badge { border: 2px solid var(--muted); border-radius: 8px; padding: 2px 9px; font-weight: 800; font-size: 14px; color: var(--muted); }
.trust-strip img { display: block; opacity: .8; }
.trust-strip a:hover img, .trust-strip a:hover { opacity: 1; }
.trust-strip .wordmark { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; color: var(--muted); opacity: .8; }
.rg-line { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.rg-line .age-badge-sm { border: 1.5px solid var(--muted); border-radius: 6px; padding: 1px 7px; font-weight: 700; font-size: 12px; }
.rg-line a { color: var(--text); }
.rg-line .spacer { margin-left: auto; }
.footer-disclaimer { margin: 14px 0 0; font-size: 12px; color: var(--muted); max-width: 120ch; }

@media (max-width: 768px) {
  .site-footer { padding: 28px 16px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px 12px; margin-top: 22px; }
  .footer-brand { grid-column: 1 / -1; }
  .trust-strip { gap: 16px 22px; margin-top: 22px; padding: 14px 16px; }
  .rg-line { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 20px; padding-top: 16px; }
  .rg-line .spacer { margin-left: 0; }
}

/* ---- cookie bar / back-to-top -------------------------------------------------- */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 16px 48px; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -8px 30px rgba(0,0,0,.12); }
.cookie-bar p { margin: 0; font-size: 13.5px; color: var(--muted); flex: 1; }
.cookie-bar .cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-bar[hidden] { display: none; }
@media (max-width: 768px) {
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px 14px; }
  .cookie-bar .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cookie-bar .btn { height: 38px; font-size: 13px; }
}
.back-to-top { position: fixed; right: 28px; bottom: 112px; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 6px 20px rgba(0,0,0,.18); display: grid; place-items: center; color: var(--text); opacity: 0; pointer-events: none; transition: opacity .2s; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 768px) { .back-to-top { right: 16px; bottom: 148px; width: 44px; height: 44px; } }

/* ================================ Homepage ================================= */
.hero { padding: 44px 0 28px; }
.hero .chips { display: flex; gap: 8px; margin-bottom: 16px; }
.hero h1 { font-size: 46px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; margin: 0; }
.hero p { font-size: 17px; color: var(--muted); margin: 16px 0 0; }
@media (max-width: 768px) {
  .hero { padding: 24px 0 20px; }
  .hero .chips { gap: 6px; margin-bottom: 12px; }
  .hero h1 { font-size: 28px; line-height: 1.15; }
  .hero p { font-size: 14.5px; margin-top: 10px; }
}

.toplist { padding: 0 0 40px; }
.toplist h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 16px; }
.toplist-list { display: flex; flex-direction: column; gap: 10px; }

.card {
  display: grid;
  grid-template-columns: 16px 136px 1.2fr 1.3fr 1.1fr 156px;
  grid-template-areas: "rank logo name perks bonus cta";
  gap: 18px; align-items: center; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
}
.card.is-top { border-color: var(--accent); }
.card-rank-desktop { grid-area: rank; font-size: 14px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-rank-mobile { display: none; }
.card-logo { grid-area: logo; position: relative; width: 136px; height: 80px; border-radius: 10px; background: var(--surface2); display: grid; place-items: center; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.card-name { grid-area: name; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-name .label { align-self: flex-start; }
.card-name h3 { font-size: 16px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.card-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-rating strong { font-weight: 600; color: var(--text); }
.card-perks { grid-area: perks; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.card-perks li { display: flex; align-items: center; gap: 8px; }
.card-perks svg { flex: none; }
.card-bonus { grid-area: bonus; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.card-bonus .bonus-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.card-bonus .bonus-amount { font-size: 15px; font-weight: 700; line-height: 1.35; }
.card-bonus .bonus-terms { font-size: 12px; color: var(--muted); }
.card-cta { grid-area: cta; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.card-cta .fine-print { font-size: 11px; color: var(--muted); text-align: center; }

@media (max-width: 768px) {
  .card {
    grid-template-columns: 96px 1fr;
    grid-template-areas: "logo name" "bonus bonus" "perks perks" "cta cta";
    gap: 8px 10px; padding: 10px 12px 12px; border-radius: 12px;
  }
  .card-rank-desktop { display: none; }
  .card-rank-mobile { display: grid; position: absolute; top: -6px; left: -6px; width: 20px; height: 20px; border-radius: 6px; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 700; place-items: center; }
  .card-logo { width: 96px; height: 60px; font-size: 10px; }
  .card-name h3 { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card-perks { flex-direction: row; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; }
  .card-perks li { gap: 4px; }
  .card-bonus { flex-direction: row; align-items: baseline; gap: 6px; flex-wrap: wrap; }
  .card-cta .btn { height: 44px; font-size: 15px; }
}

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding: 32px 0 56px; border-top: 1px solid var(--border); }
.article-body { max-width: 760px; font-size: 16px; line-height: 1.7; }
.article-body h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; margin: 0 0 14px; }
.article-body > p:first-of-type { margin: 0 0 18px; color: var(--muted); }
.article-body h3 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; letter-spacing: -0.015em; }
.article-body ul, .article-body ol { margin: 0 0 24px; }
.article-body ul { padding: 0 0 0 22px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.article-body ol.steps { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps .num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--border); display: grid; place-items: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.image-block { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; margin: 28px 0; }
.image-block.reverse { grid-template-columns: 1fr 240px; }
.image-block.reverse .img-ph { order: 2; }
.img-ph { aspect-ratio: 4/3; border-radius: 12px; background: var(--surface2); border: 1px solid var(--border); display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.image-block h3 { margin: 0 0 8px; }
.image-block p { margin: 0; color: var(--muted); font-size: 15px; }

.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; align-self: start; }
.meta-card { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); font-size: 13px; color: var(--muted); overflow: hidden; }
.meta-card > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.meta-card > div:first-child { border-right: 1px solid var(--border); }
.meta-card .k { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.meta-card .v { color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap; }
.side-card { padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.side-card .side-title { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.author-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.avatar-sm { width: 48px; height: 48px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--border); display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--muted); flex: none; overflow: hidden; }
.author-name { font-weight: 700; font-size: 15px; }
.author-role { font-size: 12.5px; color: var(--muted); }
.side-card > p { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.social-row { display: flex; gap: 6px; margin-top: 12px; }
.social-btn-sm { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); }
.social-btn-sm:hover { color: var(--text); border-color: var(--text); }
.toc-list { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.toc-list a { display: flex; gap: 10px; color: var(--muted); }
.toc-list a:hover { color: var(--text); }
.toc-list .n { opacity: .7; }

@media (max-width: 768px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; padding: 24px 0 8px; }
  .sidebar { position: static; }
  .article-body { font-size: 15px; line-height: 1.65; max-width: none; }
  .article-body h2 { font-size: 24px; }
  .article-body h3 { font-size: 18px; margin: 20px 0 8px; }
  .image-block, .image-block.reverse { grid-template-columns: 1fr; gap: 12px; }
  .image-block.reverse .img-ph { order: 0; }
  .img-ph { aspect-ratio: 16/9; }
  /* mobile: contents card becomes a collapsible <details>, meta card becomes an inline line — handled per-page via .meta-inline / .toc-details */
}

.meta-inline { display: none; }
.toc-details { display: none; }
@media (max-width: 768px) {
  .meta-card, .side-card.contents-card, .side-card.questions-card { display: none; }
  .meta-inline { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 12px; white-space: nowrap; }
  .meta-inline .v { color: var(--text); font-weight: 600; }
  .meta-inline .sep { width: 1px; height: 12px; background: var(--border); }
  .toc-details { display: block; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 0 14px; margin-bottom: 20px; }
  .toc-details summary { display: flex; justify-content: space-between; align-items: center; min-height: 46px; font-size: 14px; font-weight: 600; }
  .toc-details .toc-list { padding: 4px 0 14px; margin: 0; }
  .side-card.author-card { margin-top: 20px; }
}

/* ================================ EEAT pages =============================== */
.doc-hero { padding: 28px 0 16px; max-width: 820px; }
.doc-hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 12px; }
.doc-hero p { margin: 0; font-size: 15.5px; color: var(--muted); }
.doc-meta { display: flex; gap: 16px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.doc-meta strong { color: var(--text); font-weight: 600; }
@media (max-width: 768px) {
  .doc-hero { padding: 18px 0 8px; }
  .doc-hero h1 { font-size: 28px; line-height: 1.12; }
  .doc-hero p { font-size: 14.5px; }
  .doc-meta { margin-top: 12px; font-size: 12px; }
}

.help-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 24px; }
.help-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface); }
.help-card.primary { border-color: var(--accent); }
.help-card .icon { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--surface2); color: var(--muted); }
.help-card.primary .icon { background: var(--accent); color: var(--accent-fg); }
.help-card .t { display: block; font-weight: 700; font-size: 15px; }
.help-card .s { font-size: 13px; color: var(--muted); }
@media (max-width: 768px) {
  .help-cards { grid-template-columns: 1fr; gap: 8px; margin: 14px 0 6px; }
  .help-card { padding: 12px 14px; gap: 12px; }
  .help-card .icon { width: 38px; height: 38px; font-size: 11px; }
}

.doc-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 56px; padding: 8px 0 56px; }
.doc-sections { max-width: 760px; font-size: 15.5px; line-height: 1.7; }
.doc-section { padding: 24px 0; border-top: 1px solid var(--border); }
.doc-section h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.doc-section h2 .n { color: var(--muted); font-weight: 600; margin-right: 10px; }
.doc-section p { margin: 0; color: var(--muted); }
.questions-inline { display: none; }
@media (max-width: 768px) {
  .doc-layout { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .doc-sections { font-size: 14.5px; line-height: 1.65; }
  .doc-section { padding: 18px 0; }
  .doc-section h2 { font-size: 18px; margin-bottom: 8px; }
  .doc-section h2 .n { margin-right: 8px; }
  .questions-inline { display: block; margin: 16px 0 0; font-size: 13px; color: var(--muted); }
}

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-bottom: 48px; }
.stat-card { padding: 20px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.stat-card .v { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-card .l { font-size: 13px; color: var(--muted); margin-top: 2px; }
@media (max-width: 768px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 24px; }
  .stat-card { padding: 14px; }
  .stat-card .v { font-size: 24px; }
  .stat-card .l { font-size: 11.5px; }
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 0 0 48px; border-top: 1px solid var(--border); }
.two-col > div { padding-top: 36px; }
.two-col h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 12px; }
.two-col p { margin: 0 0 12px; color: var(--muted); }
.rating-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rating-list li { display: flex; gap: 12px; align-items: flex-start; }
.rating-list .num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--border); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.rating-list span { color: var(--muted); }
.rating-list strong { color: var(--text); font-weight: 600; }
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .two-col > div { padding: 22px 0; }
  .two-col h2 { font-size: 20px; margin-bottom: 8px; }
}

.team-section { padding: 40px 0 56px; border-top: 1px solid var(--border); }
.team-section h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 20px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.team-card .avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--surface2); border: 1px solid var(--border); flex: none; }
.team-card .team-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.team-card .name { font-weight: 700; font-size: 17px; }
.team-card .role { font-size: 13px; color: var(--muted); }
.team-card p { margin: 0; font-size: 14px; color: var(--muted); }
.team-card .profile-link { font-size: 13.5px; font-weight: 600; }
@media (max-width: 768px) {
  .team-section { padding: 22px 0 28px; }
  .team-section h2 { font-size: 20px; margin-bottom: 12px; }
  .team-grid { grid-template-columns: 1fr; gap: 10px; }
  .team-card { flex-direction: row; padding: 14px; gap: 12px; }
  .team-card .avatar { width: 52px; height: 52px; }
  .team-card .team-text { gap: 4px; }
  .team-card .profile-link { display: none; }
}

/* Author page */
.author-hero { display: grid; grid-template-columns: 1fr 360px; gap: 48px; padding: 32px 0 40px; border-bottom: 1px solid var(--border); }
.author-hero .who { display: flex; gap: 28px; align-items: flex-start; }
.author-hero .avatar-lg { width: 128px; height: 128px; flex: none; border-radius: 50%; overflow: hidden; border: 1px solid var(--border); background: var(--surface2); }
.author-hero .who-text { min-width: 0; }
.author-hero .kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.author-hero h1 { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 6px 0 4px; }
.author-hero .role-line { margin: 0 0 14px; font-size: 15px; color: var(--muted); font-weight: 500; }
.author-hero .bio { margin: 0; font-size: 15.5px; color: var(--muted); max-width: 60ch; }
.author-social-row { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.author-social-row a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--border); color: var(--text); font-size: 13px; font-weight: 600; }
.author-social-row a:hover { border-color: var(--text); }
.author-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.author-stat-grid .stat-card { padding: 16px 18px; }
.author-stat-grid .v { font-size: 26px; }
@media (max-width: 768px) {
  .author-hero { grid-template-columns: 1fr; gap: 0; padding: 20px 0 24px; }
  .author-hero .who { align-items: center; gap: 14px; }
  .author-hero .avatar-lg { width: 72px; height: 72px; }
  .author-hero h1 { font-size: 26px; margin: 2px 0 2px; }
  .author-hero .role-line { margin-bottom: 0; font-size: 13px; }
  .author-hero .bio { margin-top: 14px; font-size: 14.5px; max-width: none; }
  .author-stat-grid { margin-top: 18px; }
  .author-stat-grid .v { font-size: 20px; }
}

.articles-section { padding: 36px 0 56px; }
.articles-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.articles-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; margin: 0; }
.articles-head .count { font-size: 13px; color: var(--muted); }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; color: var(--text); background: var(--surface); }
.article-card:hover { border-color: var(--accent); }
.article-card .cover { aspect-ratio: 16/9; background: var(--surface2); display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.article-card .body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.article-card .cat { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.article-card .title { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.article-card .excerpt { font-size: 13px; color: var(--muted); flex: 1; }
.article-card .date { font-size: 12px; color: var(--muted); margin-top: 4px; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; font-size: 14px; font-weight: 600; }
.pagination a, .pagination .current { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); color: var(--text); }
.pagination .current { background: var(--text); color: var(--bg); border-color: var(--text); }
.pagination .next { width: auto; padding: 0 14px; }
.load-more { display: none; }

@media (max-width: 768px) {
  .articles-section { padding: 22px 0 28px; }
  .articles-head { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 14px; }
  .articles-head h2 { font-size: 20px; }
  .articles-grid { grid-template-columns: 1fr; gap: 10px; }
  .article-card { flex-direction: row; padding: 10px; gap: 12px; border-radius: 12px; }
  .article-card .cover { width: 104px; flex: none; aspect-ratio: 4/3; border-radius: 8px; }
  .article-card .body { padding: 0; gap: 4px; }
  .article-card .title { font-size: 14px; }
  .article-card .excerpt { display: none; }
  .article-card .date { margin-top: auto; font-size: 11.5px; }
  .pagination { display: none; }
  .load-more { display: flex; align-items: center; justify-content: center; height: 44px; margin-top: 14px; border-radius: 10px; border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 14px; }
}

/* Contact page */
.contact-layout { display: grid; grid-template-columns: minmax(0,1fr) 400px; gap: 64px; padding: 28px 0 64px; }
.contact-layout h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 12px; }
.contact-layout > div:first-child > p { margin: 0 0 28px; font-size: 16px; color: var(--muted); max-width: 56ch; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 680px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea { height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
.contact-form textarea { height: auto; padding: 12px 14px; resize: vertical; }
.contact-form .consent { flex-direction: row; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 400; color: var(--muted); }
.contact-form .consent input { margin-top: 3px; accent-color: var(--accent); height: auto; }
.contact-form button { grid-column: 1 / -1; justify-self: start; }
.contact-cards { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.contact-card { padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.contact-card .l { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-card .v { font-size: 15px; font-weight: 600; color: var(--text); }
.contact-card p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.company-card { font-size: 13px; color: var(--muted); }
.company-card .l { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; gap: 0; padding: 18px 0 28px; }
  .contact-layout h1 { font-size: 28px; line-height: 1.12; }
  .contact-layout > div:first-child > p { margin-bottom: 20px; font-size: 14.5px; }
  .contact-form { grid-template-columns: 1fr; gap: 12px; max-width: none; }
  .contact-form button { justify-self: stretch; }
  .contact-cards { flex-direction: column; margin-top: 24px; padding-top: 0; }
}


/* ==========================================================================
   Fixes on top of the source stylesheet (theme builds)
   1. Wide screens: the shell had no max-width, so the article column stretched
      while .article-body stayed at 760px — that left a large empty middle.
      Content is now centred on a 1280px measure without touching the markup.
   2. Mobile toplist card: rank badge, logo and the full-width rows now sit on
      one grid — the bonus is a real block instead of loose wrapped lines.
   ========================================================================== */
@media (min-width: 1377px) {
  .site-header, main, .site-footer, .cookie-bar {
    padding-inline: calc((100% - 1280px) / 2);
  }
}
@media (max-width: 768px) {
  .card {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px 12px; padding: 12px; align-items: start;
  }
  /* logo fills the whole first row so its top and bottom line up with the
     label row and the rating line next to it */
  .card-logo { width: 120px; height: auto; min-height: 96px; align-self: stretch; }
  .card-rank-mobile { top: 5px; left: 5px; width: 22px; height: 22px; border-radius: 7px; }
  .card-name { justify-content: flex-start; gap: 6px; }
  .card-name .label { font-size: 10.5px; padding: 3px 8px; }
  .card-bonus {
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface2);
  }
  .card-perks { gap: 4px 12px; }
  .card-cta { gap: 5px; }
}
