/* ==========================================================================
   NonStickyBonukset.co — "Split-balance clarity" design system
   Original Nordic editorial system. Cash = emerald, Bonus = amber,
   Brand structure = deep teal, on warm paper. No black/red/gold casino look.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Core palette */
  --ink:            #182230;   /* primary text / headings */
  --ink-soft:       #384456;
  --muted:          #5d6a7a;   /* secondary text */
  --paper:          #f4f6f1;   /* warm sage-tinted canvas */
  --surface:        #ffffff;
  --surface-2:      #fbfcf9;
  --line:           #e2e7dd;   /* hairline borders */
  --line-strong:    #cdd5c8;

  /* Brand structure (deep teal — nav, links, framing) */
  --brand:          #0e5c63;
  --brand-700:      #0a464c;
  --brand-050:      #e8f1f1;

  /* CASH — the player's own money (positive, safe, CTA) */
  --cash:           #1f9d68;
  --cash-700:       #127a4e;
  --cash-050:       #e7f6ee;

  /* BONUS — conditional money (caution, attention) */
  --bonus:          #c9841a;
  --bonus-700:      #9c6410;
  --bonus-050:      #fbf1de;

  /* Verify / trust (cool slate-blue) */
  --verify:         #3a6ea5;
  --verify-050:     #eaf1f8;

  /* Alert / restriction (clay red — used sparingly, never for hype) */
  --alert:          #bf4d3c;
  --alert-050:      #fbecea;

  /* Typography */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "Space Mono", ui-monospace, "Cascadia Code", monospace;

  /* Fluid type scale */
  --fs-xs:   0.78rem;
  --fs-sm:   0.875rem;
  --fs-base: 1.0rem;
  --fs-md:   1.075rem;
  --fs-lg:   clamp(1.15rem, 1.0rem + 0.6vw, 1.35rem);
  --fs-xl:   clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  --fs-2xl:  clamp(1.8rem, 1.3rem + 2.2vw, 2.7rem);
  --fs-3xl:  clamp(2.2rem, 1.5rem + 3.4vw, 3.4rem);

  /* Spacing scale (4pt base) */
  --s-1: 0.25rem;  --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;    --s-8: 3rem;    --s-10: 4rem; --s-12: 6rem;

  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(24,34,48,.06), 0 1px 1px rgba(24,34,48,.04);
  --shadow:    0 6px 20px -6px rgba(24,34,48,.14), 0 2px 6px rgba(24,34,48,.06);
  --shadow-lg: 0 18px 48px -12px rgba(14,92,99,.22);
  --maxw: 1120px;
  --maxw-narrow: 760px;
}

/* ---------- Reset / base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } *{ animation-duration:.001ms!important; transition-duration:.001ms!important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-700); }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.15; color: var(--ink); font-weight: 700; margin: 0 0 var(--s-4); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); margin-top: var(--s-2); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--s-4); }
ul,ol { margin: 0 0 var(--s-4); padding-left: 1.25rem; }
li { margin-bottom: var(--s-2); }
strong { font-weight: 700; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }

.skip { position:absolute; left:-999px; top:0; background:var(--ink); color:#fff; padding:.6rem 1rem; z-index:1000; border-radius:0 0 8px 0; }
.skip:focus { left:0; }
:focus-visible { outline: 3px solid var(--verify); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-5); }
.narrow { max-width: var(--maxw-narrow); margin-inline: auto; }
.section { padding-block: var(--s-10); }
.section--tight { padding-block: var(--s-8); }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.grid { display: grid; gap: var(--s-5); }
.eyebrow { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: var(--s-3); }
.lede { font-size: var(--fs-lg); color: var(--ink-soft); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Top strip (disclosure + 18+) ---------- */
.topstrip { background: var(--ink); color: #dfe6ee; font-size: var(--fs-xs); }
.topstrip .wrap { display: flex; gap: var(--s-4); align-items: center; justify-content: center; padding-block: .45rem; flex-wrap: wrap; text-align: center; }
.topstrip strong { color: #fff; }
.topstrip .dot { opacity: .5; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s-5); padding-block: var(--s-3); }
.brandmark { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brandmark .emblem { width: 34px; height: 34px; }
.brandmark b { color: var(--brand); }
.nav { margin-left: auto; display: flex; gap: var(--s-1); align-items: center; }
.nav a { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); text-decoration: none; padding: .5rem .7rem; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand-700); background: var(--brand-050); }
.nav-toggle { display: none; margin-left: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); padding: var(--s-8) var(--s-5) var(--s-5); transform: translateX(100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); margin: 0; overflow-y: auto; }
  .nav[data-open="true"] { transform: translateX(0); }
  .nav a { padding: .85rem .6rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: var(--fs-md); }
  body.nav-open { overflow: hidden; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(24,34,48,.4); z-index: 40; opacity: 0; visibility: hidden; transition: opacity .25s; }
  .nav-scrim[data-open="true"] { opacity: 1; visibility: visible; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-body); font-weight: 700; font-size: var(--fs-sm); line-height: 1; text-decoration: none; padding: .85rem 1.3rem; border-radius: 11px; border: 1.5px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .15s; }
.btn:active { transform: translateY(1px); }
.btn--cta { background: var(--cash); color: #fff; box-shadow: 0 2px 0 var(--cash-700); }
.btn--cta:hover { background: var(--cash-700); color:#fff; }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-700); color:#fff; }
.btn--ghost { background: transparent; color: var(--brand-700); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--brand); background: var(--brand-050); }
.btn--sm { padding: .55rem .9rem; font-size: var(--fs-xs); border-radius: 9px; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { background: var(--line); color: var(--muted); box-shadow: none; cursor: not-allowed; pointer-events: none; border-color: var(--line-strong); }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--fs-xs); font-weight: 700; padding: .28rem .6rem; border-radius: 999px; letter-spacing: .01em; }
.badge--cash   { background: var(--cash-050);  color: var(--cash-700); }
.badge--bonus  { background: var(--bonus-050); color: var(--bonus-700); }
.badge--verify { background: var(--verify-050);color: var(--verify); }
.badge--brand  { background: var(--brand-050); color: var(--brand-700); }
.badge--alert  { background: var(--alert-050); color: var(--alert); }
.badge--ghost  { background: transparent; color: var(--muted); border: 1px solid var(--line-strong); }
.badge .ico { width: 13px; height: 13px; }

/* ---------- Verification label ---------- */
.verifybar { display:flex; flex-wrap:wrap; gap: var(--s-2) var(--s-4); align-items:center; font-size: var(--fs-xs); color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: .6rem .9rem; }
.verifybar .dotv { width:8px; height:8px; border-radius:50%; background: var(--cash); display:inline-block; margin-right:.4rem; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.trustbar .wrap { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); align-items: center; justify-content: center; padding-block: var(--s-3); }
.trustbar .ts { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-soft); }
.trustbar .ts svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--brand); }
.trustbar .ts.alt svg { color: var(--cash-700); }

/* ---------- Footer trust (payments + badges) ---------- */
.foot-trust { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--s-6); padding-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); align-items: center; justify-content: space-between; }
.foot-trust .fpay { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.foot-trust .fpay img { height: 26px; width: auto; background: #fff; border-radius: 6px; padding: 3px 6px; }
.foot-trust .fbadges { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.foot-trust .fbadge { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--fs-xs); font-weight: 700; color: #cdd7e1; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: .3rem .7rem; }
.foot-trust .fbadge svg { width: 13px; height: 13px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1100px 460px at 82% -10%, var(--brand-050), transparent 60%),
  linear-gradient(180deg, #ffffff 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s-8); align-items: stretch; padding-block: var(--s-10); }
.hero-copy { align-self: center; }
.hero h1 { margin-bottom: var(--s-4); }
.hero .lede { margin-bottom: var(--s-5); max-width: 46ch; }
.hero-cta { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-5); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-xs); color: var(--muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: .35rem; }
.hero-media { position: relative; align-self: stretch; min-height: 430px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
@media (max-width: 860px){ .hero .wrap { grid-template-columns: 1fr; gap: var(--s-6); align-items: stretch; } .hero-media { order: -1; min-height: 0; aspect-ratio: 16 / 10; } }

/* ---------- Split-balance visual (signature component) ---------- */
.splitbal { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.balcard { border-radius: var(--radius); padding: var(--s-5); border: 1.5px solid; position: relative; }
.balcard--cash  { background: var(--cash-050);  border-color: #bfe6cf; }
.balcard--bonus { background: var(--bonus-050); border-color: #f0d9a6; }
.balcard .k { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.balcard--cash .k  { color: var(--cash-700); }
.balcard--bonus .k { color: var(--bonus-700); }
.balcard .v { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; margin: .2rem 0; }
.balcard .d { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0; }
@media (max-width:520px){ .splitbal { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: var(--s-5); }
.card h3 { margin-bottom: var(--s-2); }
.cards-3 { grid-template-columns: repeat(3,1fr); }
.cards-2 { grid-template-columns: repeat(2,1fr); }
.cards-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px){ .cards-3,.cards-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .cards-2,.cards-3,.cards-4 { grid-template-columns: 1fr; } }

/* ---------- Quick answer cards ---------- */
.qa-card { border-left: 4px solid var(--brand); padding-left: var(--s-4); }
.qa-card .q { font-family: var(--font-display); font-weight: 700; color: var(--ink); margin-bottom: var(--s-2); }

/* ---------- Callouts ---------- */
.callout { border-radius: var(--radius); padding: var(--s-4) var(--s-5); border: 1px solid; display: flex; gap: var(--s-4); align-items: flex-start; margin: var(--s-5) 0; }
.callout .ci { flex: 0 0 auto; width: 26px; height: 26px; margin-top: 2px; }
.callout p:last-child { margin-bottom: 0; }
.callout--info   { background: var(--verify-050); border-color: #cfe0f0; }
.callout--cash   { background: var(--cash-050);  border-color: #bfe6cf; }
.callout--bonus  { background: var(--bonus-050); border-color: #f0d9a6; }
.callout--alert  { background: var(--alert-050); border-color: #f0cbc4; }
.callout--rg     { background: #f2f0fb; border-color: #d9d3f0; }
.callout .h { font-family: var(--font-display); font-weight: 700; display:block; margin-bottom: .2rem; }

/* ---------- Casino toplist (desktop table + mobile cards) ---------- */
.toplist { display: grid; gap: var(--s-4); }
.ccard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.ccard:hover { box-shadow: var(--shadow); }
.ccard.is-top { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.ccard-grid { display: grid; grid-template-columns: 54px 1.4fr 1.5fr auto; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-5); }
.ccard .rank { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--brand); background: var(--brand-050); width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.ccard .logo { display:flex; align-items:center; gap:.7rem; min-width:0; }
.ccard .logo img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background:#fff; border:1px solid var(--line); padding:4px; }
.ccard .cname { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); color: var(--ink); margin:0; }
.ccard .cmeta { font-size: var(--fs-xs); color: var(--muted); }
.ccard .offer { min-width:0; }
.ccard .offer .bonus { font-weight: 700; color: var(--ink); }
.ccard .facts { display:flex; flex-wrap:wrap; gap: .3rem .8rem; font-size: var(--fs-xs); color: var(--ink-soft); margin-top:.35rem; }
.ccard .facts b { color: var(--ink); }
.ccard .act { display:flex; flex-direction:column; gap:.4rem; align-items:stretch; min-width: 150px; }
.ccard .terms-note { font-size: var(--fs-xs); color: var(--muted); text-align:center; }
.ccard-foot { border-top: 1px dashed var(--line); padding: .5rem var(--s-5); display:flex; flex-wrap:wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 820px){
  .ccard-grid { grid-template-columns: 44px 1fr; grid-template-areas: "rank logo" "offer offer" "act act"; row-gap: var(--s-3); }
  .ccard .rank { grid-area: rank; } .ccard .logo { grid-area: logo; } .ccard .offer { grid-area: offer; } .ccard .act { grid-area: act; min-width: 0; }
  .ccard .act .btn { width: 100%; }
}

/* ---------- Filters ---------- */
.filters { display:flex; flex-wrap:wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.chip { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 999px; padding: .45rem .9rem; cursor: pointer; transition: all .12s; }
.chip:hover { border-color: var(--brand); color: var(--brand-700); }
.chip[aria-pressed="true"] { background: var(--brand); color:#fff; border-color: var(--brand); }
.filter-note { font-size: var(--fs-xs); color: var(--muted); margin-top: -.4rem; margin-bottom: var(--s-4); }
.is-hidden { display: none !important; }

/* ---------- Comparison table ---------- */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
table.cmp { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 620px; }
table.cmp th, table.cmp td { padding: .7rem .85rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp thead th { background: var(--surface-2); font-family: var(--font-display); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); position: sticky; top: 0; }
table.cmp tbody tr:hover { background: var(--surface-2); }
table.cmp td .yes { color: var(--cash-700); font-weight:700; }
table.cmp td .no  { color: var(--alert); font-weight:700; }
table.cmp caption { text-align:left; font-size: var(--fs-xs); color: var(--muted); padding: .5rem .85rem; }

/* ---------- Steps / process flow ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s-4); counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); position: relative; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color:#fff; background: var(--brand); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: var(--s-3); }
@media (max-width: 780px){ .steps { grid-template-columns: 1fr; } }

/* ---------- TOC ---------- */
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); }
.toc ol { columns: 2; column-gap: var(--s-6); margin: 0; padding-left: 1.1rem; }
.toc a { color: var(--ink-soft); text-decoration: none; font-size: var(--fs-sm); }
.toc a:hover { color: var(--brand); text-decoration: underline; }
@media (max-width: 600px){ .toc ol { columns: 1; } }

/* ---------- FAQ accordion ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: var(--s-4) var(--s-5); font-family: var(--font-display); font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { color: var(--brand-700); }
.faq .faq-a { padding: 0 var(--s-5) var(--s-5); color: var(--ink-soft); }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Author / reviewer cards ---------- */
.authorbox { display: flex; gap: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4) var(--s-5); }
.authorbox img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 2px solid var(--brand-050); }
.authorbox .role { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }
.authorbox .nm { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); }
.byline { display:flex; align-items:center; gap:.6rem; font-size: var(--fs-sm); color: var(--muted); }
.byline img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.byline a { color: var(--ink-soft); font-weight: 600; text-decoration: none; }
.byline a:hover { color: var(--brand); }

/* ---------- Source block ---------- */
.sources { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4) var(--s-5); font-size: var(--fs-sm); }
.sources h4 { margin-bottom: var(--s-2); }
.sources ul { padding-left: 1.1rem; margin-bottom: 0; }
.sources li { color: var(--muted); }

/* ---------- Related cards ---------- */
.related a { display:block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4) var(--s-5); text-decoration: none; color: var(--ink); transition: border-color .12s, box-shadow .12s; height:100%; }
.related a:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.related .rk { font-family: var(--font-display); font-weight: 700; margin-bottom: .2rem; }
.related .rd { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Payments strip ---------- */
.paystrip { display:flex; flex-wrap:wrap; gap: var(--s-3); align-items:center; }
.paystrip img { height: 30px; width: auto; background:#fff; border:1px solid var(--line); border-radius:7px; padding:4px 7px; }

/* ---------- Calculator ---------- */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; }
.calc-inputs { padding: var(--s-6); border-right: 1px solid var(--line); }
.calc-out { padding: var(--s-6); background: var(--surface-2); }
.field { margin-bottom: var(--s-4); }
.field label { display:flex; justify-content:space-between; font-weight:600; font-size: var(--fs-sm); margin-bottom: .35rem; }
.field label .val { font-family: var(--font-mono); color: var(--brand-700); }
.field input[type="number"], .field select { width:100%; padding:.7rem .8rem; border:1.5px solid var(--line-strong); border-radius:10px; font-size: var(--fs-base); font-family: var(--font-body); background:#fff; color:var(--ink); }
.field input[type="range"] { width:100%; accent-color: var(--brand); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); margin-top:.25rem; }
.result-row { display:flex; justify-content:space-between; align-items:baseline; padding:.6rem 0; border-bottom:1px dashed var(--line); }
.result-row:last-child { border-bottom:0; }
.result-row .rl { font-size: var(--fs-sm); color: var(--ink-soft); }
.result-row .rv { font-family: var(--font-display); font-weight:700; font-size: var(--fs-lg); }
.result-row .rv.cash { color: var(--cash-700); }
.result-row .rv.bonus { color: var(--bonus-700); }
@media (max-width: 720px){ .calc-grid { grid-template-columns: 1fr; } .calc-inputs { border-right:0; border-bottom:1px solid var(--line); } }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: var(--fs-xs); color: var(--muted); padding-block: var(--s-4) 0; }
.crumbs a { color: var(--muted); text-decoration:none; }
.crumbs a:hover { color: var(--brand); }
.crumbs span[aria-current] { color: var(--ink-soft); }

/* ---------- Prose (article body) ---------- */
.prose h2 { margin-top: var(--s-8); scroll-margin-top: 90px; }
.prose h3 { margin-top: var(--s-6); scroll-margin-top: 90px; }
.prose > p, .prose > ul, .prose > ol { max-width: 70ch; }
.prose img { border-radius: var(--radius); margin: var(--s-5) 0; box-shadow: var(--shadow-sm); }
.figure { margin: var(--s-6) 0; }
.figure figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: .5rem; text-align:center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c3cdd8; margin-top: var(--s-12); }
.site-footer .wrap { padding-block: var(--s-8) var(--s-6); }
.foot-grid { display:grid; grid-template-columns: 1.3fr repeat(4,1fr); gap: var(--s-6); }
.site-footer h4 { color:#fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing:.05em; margin-bottom: var(--s-3); }
.site-footer a { color:#c3cdd8; text-decoration:none; font-size: var(--fs-sm); }
.site-footer a:hover { color:#fff; text-decoration: underline; }
.site-footer ul { list-style:none; padding:0; margin:0; }
.site-footer li { margin-bottom: var(--s-2); }
.foot-brand p { font-size: var(--fs-sm); color:#9fabb8; max-width: 34ch; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--s-6); padding-top: var(--s-5); font-size: var(--fs-xs); color:#93a0ad; display:grid; gap: var(--s-3); }
.foot-legal p { margin: 0; }
@media (max-width: 900px){ .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.stack > * + * { margin-top: var(--s-4); }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.updated { font-size: var(--fs-xs); color: var(--muted); display:inline-flex; align-items:center; gap:.4rem; }
.pill-legend { display:flex; flex-wrap:wrap; gap: var(--s-3); font-size: var(--fs-xs); color: var(--muted); }
.pill-legend span { display:inline-flex; align-items:center; gap:.35rem; }
.pill-legend i { width:11px; height:11px; border-radius:3px; display:inline-block; }
.i-cash{ background: var(--cash);} .i-bonus{ background: var(--bonus);} .i-brand{ background: var(--brand);}

/* ---------- Editorial two-column fold (heading rail + body) ---------- */
.editorial { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: var(--s-6) var(--s-8); align-items: start; }
.editorial .ed-head .eyebrow { margin-bottom: var(--s-3); }
.editorial .ed-head h2 { margin: 0; }
.editorial .ed-body > :first-child { margin-top: 0; }
.editorial .ed-body > * { max-width: 68ch; }
@media (min-width: 981px) { .editorial .ed-head { position: sticky; top: 96px; } }
@media (max-width: 980px) { .editorial { grid-template-columns: 1fr; gap: var(--s-4); } .editorial .ed-head { position: static; } }

/* ---------- Mobile: collapse inline two-column grids (override inline styles) ---------- */
/* Casino-profile main+sidebar has a fixed 320px column that cannot fit small screens */
@media (max-width: 900px) {
  .grid[style*="1fr 320px"] { grid-template-columns: 1fr !important; }
  .grid[style*="1fr 320px"] aside[style*="sticky"] { position: static !important; top: auto !important; }
}
/* Even/weighted two-column content sections stack on phones */
@media (max-width: 768px) {
  .grid[style*="1fr 1fr"],
  .grid[style*="1.2fr"],
  .grid[style*=".85fr"],
  .grid[style*="auto 1fr"] { grid-template-columns: 1fr !important; gap: var(--s-5) !important; }
}

/* ---------- Skeleton / error (progressive states) ---------- */
.skeleton { background: linear-gradient(90deg, var(--line) 25%, var(--surface-2) 37%, var(--line) 63%); background-size: 400% 100%; animation: sk 1.2s ease-in-out infinite; border-radius: 8px; }
@keyframes sk { 0%{background-position:100% 0} 100%{background-position:-100% 0} }
.errstate { border:1px solid var(--alert); background: var(--alert-050); color: var(--alert); border-radius: var(--radius); padding: var(--s-4); font-size: var(--fs-sm); }
