/* baji365.mobil design system
   Dark lobby look from the reference: charcoal base, deep red promo art,
   emerald actions, gold category icons. One accent per job:
   green = action, red = promotion, gold = category, blue/pink = market data. */

@font-face { font-family: "Rubik"; src: url("/assets/fonts/rubik-var.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Hind Siliguri"; src: url("/assets/fonts/hind-siliguri-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #141518;
  --bg-deep: #0e0f11;
  --panel: #1d1f23;
  --panel-2: #262930;
  --line: #31353c;
  --text: #f1f1ee;
  --muted: #a4a9b0;
  --green: #0f7f57;
  --green-hi: #14a370;
  --red: #8d111c;
  --red-hi: #d32635;
  --gold: #e3b552;
  --back: #8fc4f2;
  --lay: #f3b2c4;
  --warn: #f0b429;

  --font: "Rubik", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-bn: "Hind Siliguri", "Noto Sans Bengali", "Nirmala UI", sans-serif; /* unused since the site went English-only */

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --top: 56px; --side: 248px;
  --measure: 70ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 1rem); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: #5fd3a6; text-underline-offset: 3px; }
a:hover { color: #8fe6c4; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; font-weight: 600; letter-spacing: -.01em; margin: 0 0 var(--s3); }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 var(--s4); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-lg { width: 34px; height: 34px; color: var(--gold); }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--gold); color: #000; padding: var(--s2) var(--s4); }
.skip:focus { left: var(--s2); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s5); border-radius: var(--r-sm); font-weight: 500; text-decoration: none; border: 1px solid transparent; }
.btn-sm { min-height: 38px; padding: 0 var(--s4); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-hi); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); color: #fff; }

/* ---------- top bar */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--top); display: flex; align-items: center; gap: var(--s4); padding: 0 var(--s4) 0 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.menu-btn { width: var(--top); height: var(--top); display: grid; place-items: center; background: var(--panel-2); color: var(--text); border: 0; cursor: pointer; }
.brand { display: flex; align-items: center; gap: var(--s2); color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--red); color: #fff; font-size: .7rem; letter-spacing: -.02em; }
img.brand-mark { display: block; background: none; object-fit: contain; }
.brand-name span { color: var(--muted); font-weight: 400; }
.topnav { display: flex; gap: var(--s5); margin-left: var(--s4); }
.topnav a { display: flex; align-items: center; gap: var(--s2); color: var(--muted); text-decoration: none; font-size: .92rem; }
.topnav a .ic { color: var(--gold); width: 18px; height: 18px; }
.topnav a:hover { color: var(--text); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.bd-flag { display: inline-block; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 45% 50%, #e0262e 0 34%, #00704a 35%); box-shadow: 0 0 0 2px var(--panel-2); flex: none; }

/* ---------- shell + sidebar */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); background: linear-gradient(90deg, var(--panel) var(--side), transparent var(--side)); }
.sidebar { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; background: var(--panel); border-right: 1px solid var(--line); padding: var(--s4) 0 var(--s6); }
.sb-head { display: none; }
.sb-support { display: flex; align-items: center; gap: var(--s2); margin: 0 var(--s4) var(--s4); padding: var(--s2) var(--s3); background: var(--panel-2); border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-weight: 500; }
.sb-link, .sb-group summary { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s5); color: var(--muted); text-decoration: none; cursor: pointer; }
.sb-link .ic, .sb-group summary .ic { color: var(--gold); }
.sb-link:hover, .sb-group summary:hover { color: var(--text); background: var(--panel-2); }
.sb-group summary { list-style: none; }
.sb-group summary::-webkit-details-marker { display: none; }
.sb-group summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.sb-group[open] summary::after { transform: rotate(-135deg); }
.sb-group ul { list-style: none; margin: 0; padding: 0 0 var(--s2); }
.sb-group li a { display: block; padding: var(--s2) var(--s5) var(--s2) 3.4rem; color: var(--muted); text-decoration: none; font-size: .93rem; }
.sb-group li a:hover { color: var(--text); }
.sb-age { margin: var(--s5) var(--s5) 0; color: var(--muted); font-size: .82rem; }
.scrim { display: none; }

/* ---------- main column */
.main { min-width: 0; padding: var(--s5) clamp(1rem, 3vw, 2.5rem) var(--s7); }
.content { max-width: 1120px; margin: 0 auto; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); padding: 0; margin: 0 auto var(--s4); max-width: 1120px; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: var(--s2); color: var(--line); }
.crumbs a { color: var(--muted); }
.updated { max-width: 1120px; margin: var(--s6) auto 0; color: var(--muted); font-size: .85rem; }

.page-head { padding: var(--s5) 0 var(--s5); border-bottom: 1px solid var(--line); margin-bottom: var(--s5); }
.page-head .ic-lg { margin-bottom: var(--s3); }
.page-head h1 { max-width: 24ch; }
.lede { max-width: var(--measure); color: #d6d8da; font-size: 1.08rem; margin: 0; }
.page-head-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: var(--s5); align-items: start; }
.page-head-split > :not(.promo-banner) { grid-column: 1; }
.page-head-split h1 { max-width: none; }
.promo-banner { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 100%; height: auto; border-radius: var(--r-md); }
.promo-inline { width: 100%; max-width: 720px; aspect-ratio: 1125 / 540; margin: var(--s4) 0; border-radius: var(--r-md); }

.block { padding: var(--s6) 0 var(--s2); }
.block > p, .block > ul, .block > ol, .block .split p, .defs p { max-width: var(--measure); }
.home .block { border-top: 1px solid var(--line); margin-top: var(--s4); }

/* ---------- hero (home) */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s5); align-items: center; padding: var(--s6); border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(120% 140% at 85% 30%, #b0151f 0, #5a0b12 40%, transparent 70%), linear-gradient(100deg, #170708, #2a0a0d 60%, #3b0a10); }
.hero h1 { font-size: clamp(1.65rem, 1.1rem + 1.9vw, 2.45rem); font-weight: 700; max-width: 21ch; line-height: 1.1; }
.hero-lede { color: #f3dede; max-width: 56ch; }
.hero-flag { display: inline-flex; align-items: center; gap: var(--s2); font-size: .9rem; color: #f6caca; margin-bottom: var(--s3); }
.hero-flag .bd-flag { width: 18px; height: 18px; box-shadow: none; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.hero .btn-ghost { border-color: rgba(255,255,255,.35); }
.disclosure { margin: var(--s3) 0 var(--s5); padding: var(--s3) var(--s4); background: var(--panel); border-left: 3px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--muted); font-size: .9rem; max-width: none; }

/* ---------- placeholders */
.ph { display: grid; place-items: center; width: 100%; border-radius: var(--r-md); background: repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 12px, transparent 12px 24px), var(--panel-2); border: 1px dashed #4a4f57; color: var(--muted); }
.ph span { font-size: .72rem; letter-spacing: .02em; padding: var(--s1) var(--s2); background: var(--bg-deep); border-radius: 4px; text-align: center; }
.hero .ph { border-color: rgba(255,255,255,.25); background-color: rgba(0,0,0,.25); }
.phone-shot { max-width: 300px; margin: 0 auto; }
img[data-asset] { width: 100%; border-radius: var(--r-md); }
img.hero-img { aspect-ratio: 2 / 1; object-fit: cover; object-position: 60% 50%; }
img.phone-shot { border-radius: 0; }

/* ---------- link cards + categories */
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s3); margin: var(--s4) 0; }
.lcard { display: grid; align-content: start; grid-template-columns: auto 1fr; gap: var(--s1) var(--s3); padding: var(--s4); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--text); text-decoration: none; }
.lcard .ic { grid-row: span 2; color: var(--gold); width: 26px; height: 26px; margin-top: 2px; }
.lcard-t { font-weight: 600; }
.lcard-d { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.lcard:hover { border-color: var(--green-hi); color: var(--text); }
.lcard-img { grid-column: 1 / -1; width: calc(100% + 2 * var(--s4)); max-width: none; aspect-ratio: 1125 / 540; object-fit: cover; margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) var(--s2); border-radius: var(--r-md) var(--r-md) 0 0; }
.shortcuts { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }

.cats { display: flex; gap: var(--s2); overflow-x: auto; padding: var(--s2) 0 var(--s3); margin: var(--s4) 0; scrollbar-width: thin; }
.cat { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: var(--s2); min-width: 96px; padding: var(--s3) var(--s4); background: var(--panel-2); border-radius: var(--r-sm); color: var(--muted); text-decoration: none; font-weight: 500; font-size: .92rem; }
.cat-ic { width: 32px; height: 32px; color: var(--gold); stroke-width: 1.5; }
.cat:hover { color: var(--text); background: #2f333a; }
.cat:first-child { background: var(--green); color: #fff; }
.cat:first-child .cat-ic { color: #ffe08f; }

/* ---------- prose helpers */
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--s6); align-items: start; }
.split-rev { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.defs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s4) var(--s5); margin: var(--s4) 0; }
.defs > div { padding-top: var(--s3); border-top: 2px solid var(--line); }
.defs h3 a { color: var(--text); }
.defs p { color: #cfd2d5; margin: 0; }
.ticks { padding-left: 1.2rem; }
.ticks li { margin-bottom: var(--s2); }
.ticks li::marker { color: var(--green-hi); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: var(--s4) 0; max-width: var(--measure); }
.steps li { counter-increment: s; position: relative; padding: 0 0 var(--s4) 3rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--panel-2); color: var(--gold); font-weight: 600; font-size: .9rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1rem; top: 2.2rem; bottom: .3rem; width: 1px; background: var(--line); }
.steps strong { display: block; }
.steps span { color: #cfd2d5; }

.callout { margin: var(--s4) 0; padding: var(--s4); border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); max-width: var(--measure); }
.callout-warn { border-color: #6b5313; background: #221d10; }
.callout-t { font-weight: 600; margin-bottom: var(--s2); color: var(--warn); }
.callout-example { border-left: 3px solid var(--green-hi); }
.callout-example .callout-t { color: var(--green-hi); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); padding: 0; margin: 0 0 var(--s3); }
.chips li { padding: 2px var(--s3); border-radius: 999px; background: var(--panel-2); color: var(--gold); font-size: .82rem; font-weight: 500; }
.chips a { color: inherit; text-decoration: none; }
.chips li:has(a):hover { background: #343841; }
.promo-src { color: var(--muted); font-size: .9rem; max-width: var(--measure); }
.form-illus { margin: var(--s4) 0; display: grid; gap: var(--s3); max-width: 520px; }
.fi-card { background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4); font-size: .9rem; }
.fi-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: var(--s4); }
.fi-tabs span { flex: 1; text-align: center; padding-bottom: var(--s2); color: var(--muted); }
.fi-tabs .on { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px var(--green-hi); }
.fi-steps { display: flex; margin-bottom: var(--s3); }
.fi-steps span { flex: 1; text-align: center; font-size: .78rem; color: var(--muted); }
.fi-steps b { display: block; width: 28px; height: 28px; margin: 0 auto 4px; border-radius: 50%; background: var(--panel-2); color: var(--text); line-height: 28px; }
.fi-steps .on { color: var(--green-hi); }
.fi-steps .on b { background: var(--green); }
.fi-label { margin: var(--s3) 0 var(--s1); color: var(--muted); font-size: .82rem; }
.fi-field { padding: var(--s2) var(--s3); background: var(--panel-2); border-radius: 4px; color: #6f747b; }
.fi-link { margin: var(--s3) 0; text-align: right; color: #5fd3a6; text-decoration: underline; font-size: .82rem; }
.fi-btn { margin-top: var(--s3); padding: var(--s2); background: #0d4a35; border-radius: 4px; text-align: center; font-weight: 600; }
.form-illus figcaption { color: var(--muted); font-size: .85rem; }
.callout p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: var(--s4) 0; border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
caption { caption-side: bottom; text-align: left; padding: var(--s2) var(--s4); color: var(--muted); font-size: .82rem; }
th, td { text-align: left; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--panel-2); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }

.pending { background: #3a2e0c; color: var(--warn); padding: 0 .35em; border-radius: 4px; font-size: .92em; }
.pending-block { padding: var(--s3) var(--s4); border: 1px dashed #6b5313; border-radius: var(--r-sm); color: var(--warn); max-width: var(--measure); }

/* ---------- market card: the signature element */
.market { margin: 0; display: grid; gap: var(--s3); }
.market-card { background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3); font-size: .88rem; }
.m-top { display: flex; gap: var(--s2); align-items: center; background: #2c38b8; color: #fff; margin: calc(var(--s3) * -1) calc(var(--s3) * -1) var(--s3); padding: var(--s1) var(--s3); border-radius: var(--r-md) var(--r-md) 0 0; font-size: .74rem; }
.m-live { margin-left: auto; color: #7ff0b9; }
.m-row { display: flex; justify-content: space-between; padding: 2px 0; }
.m-score { font-weight: 600; }
.m-meta { color: var(--muted); font-size: .78rem; margin: var(--s1) 0 var(--s3); }
.m-market { font-size: .78rem; color: var(--muted); padding-top: var(--s2); border-top: 1px solid var(--line); margin-bottom: var(--s2); }
.m-odds { display: grid; grid-template-columns: 1fr 64px 64px; gap: 4px; align-items: center; }
.m-lbl { font-size: .82rem; }
.back, .lay { text-align: center; padding: 6px 0; border-radius: 4px; color: #10151c; font-weight: 600; }
.back { background: var(--back); }
.lay { background: var(--lay); }
.market figcaption p { font-size: .92rem; color: #cfd2d5; }
.market .fine { font-size: .8rem; color: var(--muted); }

/* ---------- game tiles + scroller */
.scroller { margin-top: var(--s4); }
.scroller-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s3); }
.scroller-bar h3 { margin: 0; padding-left: var(--s3); border-left: 3px solid var(--green-hi); }
.scroller-btns { display: flex; gap: var(--s2); }
.sbtn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-sm); border: 0; background: var(--panel-2); color: var(--text); cursor: pointer; }
.sbtn:hover { background: #343841; }
.scroller-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 1fr); gap: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s2); scrollbar-width: thin; }
.tile { scroll-snap-align: start; position: relative; display: block; border-radius: var(--r-md); overflow: hidden; color: #fff; text-decoration: none;
  background: linear-gradient(170deg, hsl(var(--h) 70% 38%), hsl(var(--h) 60% 14%)); }
.tile .ph { border: 0; border-radius: 0; background: transparent; }
.tile .ph span { opacity: .55; font-size: .62rem; }
.tile > img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 0; }
.tile::after { content: ""; position: absolute; inset: auto 0 0; height: 50%; background: linear-gradient(transparent, rgba(0,0,0,.8)); pointer-events: none; }
.tile-t, .tile-p { z-index: 1; }
.tile-t { position: absolute; left: var(--s2); right: var(--s2); bottom: 1.6rem; font-weight: 700; font-size: 1rem; line-height: 1.15; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.tile-p { position: absolute; left: var(--s2); bottom: var(--s2); font-size: .7rem; color: rgba(255,255,255,.75); }
.tile:hover { outline: 2px solid var(--gold); color: #fff; }

.block > .providers, .providers { max-width: none; list-style: none; padding: 0; margin: var(--s4) 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s2); }
.providers li { display: flex; align-items: center; justify-content: center; gap: var(--s2); padding: var(--s3) var(--s4); background: var(--panel-2); border-radius: var(--r-sm); font-weight: 600; color: #dfe1e3; text-align: center; }
.prov-logo { width: 32px; height: 32px; flex: none; object-fit: contain; }
.prov-logo-sm { width: 24px; height: 24px; }
.prov-cell { display: inline-flex; align-items: center; gap: var(--s2); }

/* ---------- FAQ, summary box, related */
.faq-item { border-bottom: 1px solid var(--line); max-width: 860px; }
.faq-item summary { cursor: pointer; padding: var(--s4) 2rem var(--s4) 0; font-weight: 500; position: relative; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: var(--s4); color: var(--green-hi); font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item > div { padding: 0 0 var(--s3); color: #cfd2d5; }

.block.summary { margin-top: var(--s5); padding: var(--s5); background: var(--panel); border-radius: var(--r-md); border-left: 3px solid var(--green-hi); }

.related { margin-top: var(--s7); padding: var(--s5); background: var(--panel); border-radius: var(--r-md); }
.related h2 { font-size: 1.1rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.related a { display: inline-block; padding: var(--s2) var(--s4); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); font-size: .92rem; }
.related a:hover { border-color: var(--green-hi); }

/* ---------- footer */
.footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: var(--s7) clamp(1rem, 4vw, 3rem) var(--s6); margin-left: var(--side); }
.f-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s5); }
.footer h2 { font-size: .95rem; color: var(--green-hi); margin-bottom: var(--s3); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.f-cols li { margin-bottom: var(--s2); }
.footer a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer a:hover { color: var(--text); }
.f-social { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); }
.f-social p { color: var(--muted); font-size: .88rem; max-width: 60ch; }
.f-social ul { display: flex; flex-wrap: wrap; gap: var(--s2); }
.f-social a { display: inline-block; padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: 999px; }
.f-legal { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.f-legal a { font-size: inherit; text-decoration: underline; }
.age { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--muted); border-radius: 50%; font-weight: 700; font-size: .72rem; margin-right: var(--s2); vertical-align: middle; }
.bottomnav { display: none; }

/* ---------- responsive */
@media (max-width: 1099px) {
  .shell { grid-template-columns: minmax(0, 1fr); background: none; }
  .footer { margin-left: 0; }
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; height: 100%; width: min(86vw, 320px); z-index: 60; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: none; }
  .sb-head { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--s4) var(--s4) var(--s5); font-weight: 600; }
  .sb-close { width: 40px; height: 40px; display: grid; place-items: center; background: var(--panel-2); border: 0; color: var(--text); border-radius: var(--r-sm); }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 50; }
  .scrim[hidden] { display: none; }
  .topnav { display: none; }
  .split, .split-rev { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .page-head-split { grid-template-columns: minmax(0, 1fr); }
  .page-head-split .promo-banner { grid-column: 1; grid-row: auto; margin-top: var(--s4); }
  body { padding-bottom: 64px; }
  .topbar { gap: var(--s2); }
  .brand-name { display: none; }
  .top-actions .btn-sm { padding: 0 var(--s3); }
  .hero { grid-template-columns: minmax(0, 1fr); padding: var(--s5) var(--s4); }
  .shortcuts { grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .shortcuts .lcard { grid-template-columns: 1fr; padding: var(--s3); }
  .shortcuts .lcard .ic { grid-row: auto; }
  .shortcuts .lcard-d { font-size: .82rem; }
  .scroller-track { grid-auto-columns: 42%; }
  .bottomnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: 60px; background: var(--panel); border-top: 1px solid var(--line); }
  .bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: .7rem; }
  .bottomnav .ic { width: 20px; height: 20px; }
  .bottomnav a[aria-current="page"] { color: var(--green-hi); }
}
@media (max-width: 380px) { .top-actions .btn-ghost { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- back-to-top button (injected by site.js) */
.scroll-top { position: fixed; right: 20px; bottom: 20px; z-index: 46; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 2px solid var(--green-hi); border-radius: 50%; background: var(--panel-2); color: #fff; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s, background-color .15s, color .15s; }
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s, background-color .15s, color .15s; }
.scroll-top svg { width: 22px; height: 22px; stroke-width: 2; }
.scroll-top:hover, .scroll-top:focus-visible { background: var(--green-hi); color: var(--bg-deep); }
.scroll-top:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 50%; }
@media (max-width: 760px) {
  /* sit above the 60px fixed bottom nav, never over it */
  .scroll-top { right: 16px; bottom: calc(60px + 16px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .scroll-top, .scroll-top.is-visible { transition: none; transform: none; } }
