/*
Theme Name: BankSouq
Description: Daylight Ledger design for BankSouq. Requires the BankSouq Core plugin.
Version: 3.2.0
Requires at least: 6.4
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: banksouq
*/

/* ------------------------------------------------------------------
   Tokens (Daylight Ledger v3.0)
   ------------------------------------------------------------------ */
/* Fonts are served from the site itself: faster (no extra connections) and no visitor data sent to a font host.
   Geist and Instrument Serif, SIL Open Font License 1.1, see assets/fonts. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/geist-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/geist-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/geist-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/geist-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/geist-mono-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/instrument-serif-latin-400-normal.woff2) format('woff2'); }

:root {
  --page: #F8FAFC;
  --surface: #FFFFFF;
  --sky: #EEF4FF;
  --sky-line: #DCE6F8;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --ink: #0F2942;
  --body: #1E293B;
  --soft: #475569;
  --muted: #64748B;
  --brand: #1D63DC;
  --brand-hover: #174EAF;
  --go: #047857;
  --go-hover: #065F46;
  --cond-ink: #92400E;
  --cond-bg: #FEF3C7;
  --cond-panel: #FFFBEB;
  --cond-line: #FDE68A;
  --gain: #15803D;
  --gain-bg: #ECFDF3;
  --loss: #B91C1C;
  --loss-bg: #FEF2F2;
  --light-blue: #7DA8F5;
  --chip-gold: #E8C468;
  --footer: #0F2942;
  --footer-text: #B6C3D6;
  --radius: 16px;
  --radius-s: 10px;
  --shadow: 0 24px 40px -28px rgba(15, 41, 66, .45);
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--page); color: var(--body); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); font-weight: 500; line-height: 1.15; text-wrap: balance; }
h1, .h1 { font: 400 clamp(40px, 6.4vw, 78px)/1.0 var(--serif); letter-spacing: -.01em; }
h2, .h2 { font: 400 clamp(30px, 4vw, 48px)/1.05 var(--serif); letter-spacing: -.01em; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }
.lede { font-size: 18px; line-height: 1.6; color: var(--soft); max-width: 62ch; }
.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; display: block; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.bs-muted, .muted { color: var(--muted); }
.bs-gain { color: var(--gain); }
.bs-loss { color: var(--loss); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--surface); padding: 10px 14px; clip: auto; width: auto; height: auto; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap--narrow { max-width: 820px; }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tight { padding-block: 40px; }
.section--sky { background: var(--sky); border-block: 1px solid var(--sky-line); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section__head p { margin: 0; color: var(--soft); max-width: 60ch; }

/* Buttons */
.bs-btn, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; font: 500 15px/1 var(--sans); border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.bs-btn:hover, .btn:hover { text-decoration: none; }
.bs-btn--go, .btn-go { background: var(--go); color: #fff; }
.bs-btn--go:hover, .btn-go:hover { background: var(--go-hover); color: #fff; }
.bs-btn--ghost, .btn-line { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.bs-btn--ghost:hover, .btn-line:hover { border-color: var(--ink); color: var(--ink); }
.bs-btn--ghost.is-on { background: var(--sky); border-color: var(--brand); color: var(--brand); }
.bs-btn--brand { background: var(--brand); color: #fff; }
.bs-btn--brand:hover { background: var(--brand-hover); color: #fff; }
.bs-link { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; font-size: 13px; }

/* ------------------------------------------------------------------
   Header and footer
   ------------------------------------------------------------------ */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(248, 250, 252, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: var(--page); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 23px/1 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.logo:hover { color: var(--ink); text-decoration: none; }
.logo__mark { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; flex: none; }
.logo__souq { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--soft); font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav .current-menu-item > a, .nav a[aria-current] { color: var(--ink); border-bottom-color: var(--brand); text-decoration: none; }
.nav__soon { font: 500 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cond-ink); background: var(--cond-bg); border-radius: 6px; padding: 3px 5px; margin-left: 4px; vertical-align: 2px; }
.nav .bs-btn { padding: 0 16px; border-bottom: 1px solid var(--line-strong); color: var(--ink); }
.nav .bs-btn:hover { border-color: var(--ink); }
.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; min-height: 42px; padding: 0 14px; font: 500 15px var(--sans); color: var(--ink); cursor: pointer; }
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); flex-direction: column; align-items: stretch; gap: 6px; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}
.site-footer { background: var(--footer); color: var(--footer-text); padding-block: 56px 40px; margin-top: 64px; }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.site-footer h2 { font: 600 13px/1.4 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.site-footer__legal { border-top: 1px solid rgba(182, 195, 214, .25); margin-top: 40px; padding-top: 22px; font-size: 13px; line-height: 1.7; max-width: 90ch; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }

/* Floating helpers */
.totop, .toresults { position: fixed; z-index: 25; right: max(18px, env(safe-area-inset-right, 0px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: 0 12px 24px -12px rgba(15, 41, 66, .5); border-radius: 999px; min-height: 44px; padding: 0 16px; font: 500 14px var(--sans); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.totop { bottom: max(18px, env(safe-area-inset-bottom, 0px)); }
.toresults { bottom: calc(max(18px, env(safe-area-inset-bottom, 0px)) + 56px); }
.totop[hidden], .toresults[hidden] { display: none; }
.bs-tray:not([hidden]) ~ .totop, body.has-tray .totop { bottom: calc(max(18px, env(safe-area-inset-bottom, 0px)) + 84px); }
body.has-tray .toresults { bottom: calc(max(18px, env(safe-area-inset-bottom, 0px)) + 140px); }

/* Breadcrumbs */
.crumbs { font-size: 14px; color: var(--muted); margin: 22px 0 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--soft); }

/* ------------------------------------------------------------------
   Home
   ------------------------------------------------------------------ */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(40px, 6vw, 72px); background: linear-gradient(180deg, var(--sky) 0%, var(--page) 100%); border-bottom: 1px solid var(--sky-line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero__claim { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.hero h1 { margin-bottom: 18px; }
.composer { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px 26px; box-shadow: 0 30px 60px -40px rgba(15, 41, 66, .45); }
.composer__sentence { font-size: 21px; line-height: 2.2; color: var(--body); margin: 0 0 14px; }
.composer__field { display: inline-flex; align-items: baseline; gap: 4px; border-bottom: 2px solid var(--brand); margin: 0 4px; }
.composer__field span { color: var(--brand); font-weight: 500; }
.composer input[type=text], .composer select { font: 500 21px var(--sans); color: var(--brand); background: transparent; border: 0; padding: 0 2px 2px; max-width: 100%; }
.composer input[type=text] { width: 7ch; }
.composer select { border-bottom: 2px solid var(--brand); margin: 0 4px; cursor: pointer; }
.composer__result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.composer__count { font: 400 44px/1 var(--serif); color: var(--ink); }
.composer__count small { display: block; font: 400 14px var(--sans); color: var(--soft); margin-top: 4px; }
.composer__top { font-size: 14px; color: var(--soft); margin-top: 10px; }
.hero__art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.hero__art .bs-face { box-shadow: 0 30px 50px -28px rgba(15, 41, 66, .7); }
.hero__art .bs-face:nth-child(2) { margin-top: 48px; }
.hero__tag { grid-column: 1 / -1; justify-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 14px; display: grid; gap: 2px; }
.hero__tag strong { display: block; font: 400 30px/1.1 var(--serif); color: var(--gain); }
@media (max-width: 1020px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } .hero__art { display: none; } }
@media (max-width: 640px) { .composer { padding: 18px; } .composer__sentence, .composer input[type=text], .composer select { font-size: 18px; } }

.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.door { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 10px; color: var(--body); transition: transform .2s, box-shadow .2s, border-color .2s; }
.door:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow); color: var(--body); text-decoration: none; }
.door h3 { font: 400 30px/1.1 var(--serif); margin: 6px 0 0; }
.door p { color: var(--soft); margin: 0; }
.door__go { margin-top: auto; color: var(--brand); font-weight: 500; }
.door__count { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.door--soon { background: var(--page); border-style: dashed; }
.door--soon .door__count { color: var(--cond-ink); }
.ico { width: 48px; height: 48px; border-radius: 12px; background: var(--sky); color: var(--brand); display: grid; place-items: center; }
@media (max-width: 900px) { .doors { grid-template-columns: minmax(0, 1fr); } }

.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line); }
.promises li { list-style: none; padding: 22px 20px; border-right: 1px solid var(--line); font-size: 15px; color: var(--soft); }
.promises li:last-child { border-right: 0; }
.promises strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.promises .num { font: 500 12px var(--mono); color: var(--brand); display: block; margin-bottom: 8px; }
.promises { margin: 0; padding: 0; }
@media (max-width: 900px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } .promises li:nth-child(2) { border-right: 0; } .promises li:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .promises { grid-template-columns: minmax(0, 1fr); } .promises li { border-right: 0; border-bottom: 1px solid var(--line); } }

.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ben { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--body); min-height: 150px; transition: border-color .15s; }
.ben:hover { border-color: var(--brand); color: var(--body); text-decoration: none; }
.ben strong { font-size: 17px; color: var(--ink); line-height: 1.3; }
.ben span { font-size: 14px; color: var(--soft); margin-top: auto; }
@media (max-width: 1020px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .benefits { grid-template-columns: minmax(0, 1fr); } .ben { min-height: 0; } }

.traps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.trap { background: var(--cond-panel); border: 1px solid var(--cond-line); border-radius: 16px; padding: 22px; }
.trap h3 { color: var(--cond-ink); font-size: 18px; }
.trap p { margin: 0; color: var(--body); }
@media (max-width: 900px) { .traps { grid-template-columns: minmax(0, 1fr); } }

.rules { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.rule { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.rule strong { display: block; font: 400 46px/1 var(--serif); color: var(--ink); margin-bottom: 10px; }
.rule span { font-size: 14px; color: var(--soft); }
@media (max-width: 1020px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.panel h3 { font: 400 28px/1.15 var(--serif); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------
   Card faces
   ------------------------------------------------------------------ */
.bs-face { position: relative; aspect-ratio: 1.586; width: 100%; max-width: 100%; border-radius: 12px; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--from, #1D63DC), var(--to, #174EAF)); box-shadow: 0 12px 22px -14px rgba(15, 41, 66, .6); font-family: var(--sans); container-type: inline-size; }
.bs-face--ink-dark { color: #1A1A1A; }
.bs-face::before, .bs-face::after { content: ""; position: absolute; pointer-events: none; }
.bs-face--arc::after { right: -35%; top: -55%; width: 90%; height: 160%; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.bs-face--band::after { left: 0; top: 0; bottom: 0; width: 3.5%; background: var(--accent, rgba(255, 255, 255, .2)); }
.bs-face--band::before { right: -30%; top: -60%; width: 80%; height: 150%; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.bs-face--long .bs-face__bank { font-size: max(9px, 5.4cqi); }
.bs-face--lines::after { inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 14px); }
.bs-face--brushed::after { inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 3px); }
.bs-face--brushed::before { inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .18), transparent 45%); }
.bs-face > * { position: absolute; z-index: 1; }
.bs-face__bank { left: 7%; top: 9%; font-weight: 700; font-size: max(10px, 7cqi); letter-spacing: -.01em; max-width: 64%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.bs-face__tap { right: 7%; top: 9%; width: max(12px, 8cqi); height: max(12px, 8cqi); opacity: .85; }
.bs-face__chip { left: 7%; top: 35%; width: 14%; aspect-ratio: 1.3; border-radius: 4px; background: linear-gradient(135deg, var(--chip-gold), #C9A548); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.bs-face__label { left: 26%; top: 37%; max-width: 67%; font-size: max(8px, 5cqi); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; opacity: .95; }
.bs-face__num { left: 7%; top: 60%; font: 500 max(8px, 5.2cqi) var(--mono); letter-spacing: .12em; opacity: .8; white-space: nowrap; }
.bs-face__isl { right: 7%; top: 24%; font: 600 max(7px, 3.8cqi) var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.bs-face__tier { left: 7%; bottom: 8%; max-width: 48%; font: 500 max(7px, 4.2cqi) var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-face__net { right: 7%; bottom: 7%; max-width: 36%; font-weight: 800; font-size: max(8px, 5.6cqi); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-face__img { display: block; width: 100%; aspect-ratio: 1.586; object-fit: cover; border-radius: 12px; }

/* ------------------------------------------------------------------
   Explorer
   ------------------------------------------------------------------ */
.explorer { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.bs-filters { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.bs-filters fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.bs-filters legend { font: 600 13px/1.4 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.bs-check { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 15px; cursor: pointer; line-height: 1.35; }
.bs-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.bs-check small { display: block; color: var(--muted); font-size: 13px; }
.bs-filters select { width: 100%; min-height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 10px; font: 15px var(--sans); background: var(--surface); color: var(--body); }
.bs-filters details { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.bs-filters details summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; padding: 6px 0; }
.bs-filters details summary::-webkit-details-marker { display: none; }
.bs-filters details summary::after { content: "+"; float: right; color: var(--brand); }
.bs-filters details[open] summary::after { content: "\2212"; }
.bs-filters__actions { display: flex; gap: 8px; }
.filters-toggle { display: none; }
.bs-results__summary { font-size: 15px; color: var(--soft); margin-bottom: 16px; }
.bs-results__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.bs-results__bar select { min-height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 10px; font: 15px var(--sans); background: var(--surface); }
.is-loading .bs-card-list { opacity: .5; transition: opacity .15s; }
@media (max-width: 1020px) {
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .filters-toggle { display: inline-flex; }
  .bs-filters { position: static; max-height: none; display: none; }
  .filters-open .bs-filters { display: block; }
}

.bs-card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bs-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 210px; gap: 22px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.bs-row--partial { background: #FCFDFE; border-style: dashed; }
.bs-row__meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--soft); margin: 0 0 4px; }
.bs-rank { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 8px; background: var(--sky); color: var(--brand); font: 600 13px var(--mono); }
.bs-row__name { font-size: 20px; margin: 0 0 4px; }
.bs-row__name a { color: var(--ink); }
.bs-row__headline { color: var(--brand); font-weight: 500; margin: 0 0 10px; }
.bs-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px 16px; margin: 0 0 10px; }
.bs-facts div { min-width: 0; }
.bs-facts dt { font-size: 12px; color: var(--muted); }
.bs-facts dd { margin: 0; font-weight: 600; color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
.bs-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; }
.bs-chip { font-size: 13px; border-radius: 999px; padding: 3px 10px; background: var(--sky); color: var(--brand); }
.bs-chip--match::before { content: "\2713  "; }
.bs-row__missing { font-size: 14px; color: var(--cond-ink); background: var(--cond-bg); border-radius: 8px; padding: 6px 10px; margin: 0 0 8px; }
.bs-row__warn { font-size: 13px; color: var(--cond-ink); margin: 0 0 6px; }
.bs-row__cond { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bs-row__cond li, .cond { display: inline-flex; font-size: 13px; color: var(--cond-ink); background: var(--cond-bg); border-radius: 8px; padding: 5px 9px; line-height: 1.35; }
.bs-row__value { display: flex; flex-direction: column; gap: 4px; text-align: right; align-items: flex-end; }
.bs-row__vlabel { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bs-row__value strong { font: 400 32px/1.05 var(--serif); }
.bs-row__value small { font-size: 13px; color: var(--soft); }
.bs-row__actions { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 12px; }
.bs-row__actions .bs-btn { width: 100%; min-height: 42px; }
.bs-row__verified { color: var(--muted); font-size: 12px; margin-top: 6px; }
.bs-empty { padding: 28px; text-align: center; color: var(--soft); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
@media (max-width: 900px) {
  .bs-row { grid-template-columns: 110px minmax(0, 1fr); }
  .bs-row__value { grid-column: 1 / -1; text-align: left; align-items: stretch; border-top: 1px solid var(--line); padding-top: 14px; }
  .bs-row__actions { flex-direction: row; }
}
@media (max-width: 520px) {
  .bs-row { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .bs-row__art { max-width: 180px; }
}

/* Compare tray */
.bs-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 28; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -16px 32px -24px rgba(15, 41, 66, .5); padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.bs-tray__inner { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.bs-tray ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; min-width: 0; }
.bs-tray li { display: inline-flex; align-items: center; gap: 6px; background: var(--sky); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 14px; max-width: 240px; }
.bs-tray li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-tray li button { border: 0; background: none; font-size: 18px; line-height: 1; cursor: pointer; color: var(--soft); width: 28px; height: 28px; }
.bs-tray__actions { display: flex; gap: 8px; }
.bs-tray__msg { margin: 0; font-size: 13px; color: var(--cond-ink); }

/* ------------------------------------------------------------------
   Card page
   ------------------------------------------------------------------ */
.card-hero { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: center; padding-bottom: 32px; }
.card-hero h1 { font-size: clamp(34px, 4.6vw, 56px); margin-bottom: 10px; }
.card-hero__bank { font-size: 16px; color: var(--soft); margin-bottom: 8px; }
.card-hero__headline { font-size: 19px; color: var(--brand); font-weight: 500; margin-bottom: 16px; }
.card-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.verified { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gain); background: var(--gain-bg); border-radius: 999px; padding: 4px 10px; }
.verified--stale { color: var(--cond-ink); background: var(--cond-bg); }
@media (max-width: 820px) { .card-hero { grid-template-columns: minmax(0, 1fr); } .card-hero__art { max-width: 260px; } }

.keynums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.keynums div { padding: 18px; border-right: 1px solid var(--line); min-width: 0; }
.keynums div:last-child { border-right: 0; }
.keynums dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.keynums dd { margin: 0; font: 400 28px/1.1 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.keynums dd small { display: block; font: 400 13px/1.4 var(--sans); color: var(--soft); margin-top: 4px; }
.keynums .is-value dd { color: var(--gain); }
@media (max-width: 900px) { .keynums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .keynums div { border-bottom: 1px solid var(--line); } .keynums div:nth-child(2n) { border-right: 0; } .keynums div:first-child { grid-column: 1 / -1; border-right: 0; } }

.card-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; margin-top: 32px; }
.card-layout__side { position: sticky; top: 92px; display: grid; gap: 16px; }
@media (max-width: 1020px) { .card-layout { grid-template-columns: minmax(0, 1fr); } .card-layout__side { position: static; } }
.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.block > h2 { font: 400 30px/1.1 var(--serif); margin-bottom: 14px; }
.block--cond { background: var(--cond-panel); border-color: var(--cond-line); }
.block--cond h2 { color: var(--cond-ink); }
.block--cond ul { margin: 0; padding-left: 20px; }
.block--cond li { margin: 6px 0; }
.toc { position: sticky; top: 72px; z-index: 5; background: rgba(248, 250, 252, .96); border-bottom: 1px solid var(--line); margin-bottom: 8px; overflow-x: auto; }
.toc ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 12px 0; white-space: nowrap; font-size: 14px; }
.toc a { color: var(--soft); }
.facts-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.facts-table th, .facts-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts-table th { width: 46%; font-weight: 400; color: var(--soft); padding-right: 16px; }
.facts-table td { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.facts-table .is-missing { color: var(--muted); font-weight: 400; }
.facts-group + .facts-group { margin-top: 24px; }
.facts-group h3 { font-size: 16px; margin-bottom: 4px; }
.earn-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.earn-table th, .earn-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.earn-table thead th { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.table-wrap, .bs-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.valuebox h2 { font: 400 26px/1.15 var(--serif); }
.valuebox__total { font: 400 44px/1 var(--serif); color: var(--gain); margin: 8px 0 4px; }
.valuebox__total.is-neg { color: var(--loss); }
.valuebox dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; margin: 12px 0; }
.valuebox dt { color: var(--soft); }
.valuebox dd { margin: 0; text-align: right; font-weight: 600; }
.valuebox__notes { font-size: 13px; color: var(--cond-ink); margin: 0; padding-left: 18px; }
.sources { font-size: 14px; padding-left: 18px; }
.sources li { margin: 4px 0; overflow-wrap: anywhere; }
.history { width: 100%; border-collapse: collapse; font-size: 14px; }
.history th, .history td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.history del { color: var(--loss); }
.history ins { color: var(--gain); text-decoration: none; }
.linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.linklist a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); }
.linklist a:hover { border-color: var(--brand); text-decoration: none; }
.linklist small { color: var(--muted); white-space: nowrap; }

/* FAQs */
.faqs details { border-top: 1px solid var(--line); }
.faqs details:last-child { border-bottom: 1px solid var(--line); }
.faqs summary { cursor: pointer; list-style: none; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 18px; font-weight: 500; color: var(--ink); padding: 8px 0; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; font-weight: 300; font-size: 26px; color: var(--brand); flex: none; }
.faqs details[open] summary::after { content: "\2212"; }
.faqs .faqs__a { color: var(--soft); line-height: 1.7; padding-bottom: 20px; max-width: 72ch; }

/* ------------------------------------------------------------------
   Calculators
   ------------------------------------------------------------------ */
.bs-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin: 24px 0 32px; }
.bs-calc[data-calc="card_value"] { grid-template-columns: 320px minmax(0, 1fr); }
.bs-calc__inputs { display: grid; gap: 16px; align-content: start; }
.bs-calc[data-calc="card_value"] .bs-calc__inputs { grid-template-columns: minmax(0, 1fr); }
.bs-calc__outputs { display: grid; gap: 10px; align-content: start; background: var(--page); border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-width: 0; }
.bs-calc__note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .bs-calc, .bs-calc[data-calc="card_value"] { grid-template-columns: minmax(0, 1fr); padding: 18px; } }
.bs-input label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.bs-input__box { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); overflow: hidden; min-height: 48px; }
.bs-input__box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 99, 220, .15); }
.bs-input__box input { flex: 1; min-width: 0; border: 0; padding: 0 12px; font: 500 18px var(--sans); color: var(--ink); background: transparent; height: 46px; font-variant-numeric: tabular-nums; }
.bs-input__box input:focus { outline: none; }
.bs-input__affix { padding: 0 12px; color: var(--muted); font-size: 14px; background: var(--page); align-self: stretch; display: flex; align-items: center; }
.bs-input select { width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 12px; font: 500 16px var(--sans); background: var(--surface); color: var(--ink); }
.bs-input__range { width: 100%; margin: 10px 0 0; accent-color: var(--brand); }
.bs-input__help { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.bs-out { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bs-out:last-of-type { border-bottom: 0; }
.bs-out__label { color: var(--soft); font-size: 14px; }
.bs-out__value { font-weight: 600; color: var(--ink); text-align: right; font-size: 18px; min-width: 0; overflow-wrap: anywhere; }
.bs-out__value small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.bs-out--gain .bs-out__value { color: var(--gain); }
.bs-out--loss .bs-out__value { color: var(--loss); }
.bs-out--warn .bs-out__value { color: var(--cond-ink); }
.bs-checks { list-style: none; margin: 0; padding: 0; text-align: left; font-size: 14px; font-weight: 400; }
.bs-checks li { margin: 3px 0; }
.bs-checks .is-ok span { color: var(--gain); font-weight: 700; }
.bs-checks .is-bad { color: var(--loss); }
.bs-gauge__track { position: relative; height: 14px; border-radius: 999px; background: var(--line); margin-top: 12px; }
.bs-gauge__fill { height: 100%; border-radius: 999px; }
.bs-gauge__fill--gain { background: var(--gain); }
.bs-gauge__fill--warn { background: #D97706; }
.bs-gauge__fill--loss { background: var(--loss); }
.bs-gauge__cap { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.bs-gauge__labels { position: relative; height: 22px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.bs-gauge__labels span { position: absolute; top: 0; white-space: nowrap; }
.bs-gauge__labels span:first-child { left: 0; }
.bs-gauge__labels span + span { transform: translateX(-50%); }
.bs-chart { margin-top: 8px; min-width: 0; }
.bs-chart svg { display: block; overflow: visible; }
.bs-chart__grid { stroke: var(--line); stroke-width: 1; }
.bs-chart__tick { fill: var(--muted); font: 11px var(--sans); }
.bs-chart__line { stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.bs-chart__line--brand, .bs-chart__line--0 { stroke: var(--brand); background: var(--brand); }
.bs-chart__line--loss, .bs-chart__line--1 { stroke: var(--loss); background: var(--loss); }
.bs-chart__line--gain { stroke: var(--gain); background: var(--gain); }
.bs-chart__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 0; padding: 0; font-size: 13px; color: var(--soft); }
.bs-chart__key { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.bs-mini { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.bs-mini th, .bs-mini td { padding: 7px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.bs-mini td { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 10px; }
.bs-mini .is-total th, .bs-mini .is-total td { font-weight: 700; color: var(--ink); border-bottom: 0; }
.bs-tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 24px 0; }
.bs-tool { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; color: var(--body); }
.bs-tool:hover { border-color: var(--brand); color: var(--body); text-decoration: none; }
.bs-tool strong { font: 400 24px/1.15 var(--serif); color: var(--ink); }
.bs-tool span { font-size: 14px; color: var(--soft); }

/* Compare */
.bs-compare__spend { max-width: 320px; margin-bottom: 16px; }
.bs-compare__table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; min-width: 640px; }
.bs-compare__table th, .bs-compare__table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.bs-compare__table thead th { background: var(--surface); }
.bs-compare__table thead th span { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.bs-compare__table tbody th { color: var(--soft); font-weight: 400; width: 26%; }
.bs-compare__table td.is-best { background: var(--gain-bg); color: var(--gain); font-weight: 600; }
.bs-best-tag { display: inline-block; font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--gain); color: #fff; border-radius: 4px; padding: 2px 5px; margin-left: 6px; vertical-align: 2px; }

/* Content pages */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; font-size: clamp(26px, 3vw, 34px); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.prose .bs-calc, .prose .bs-compare, .prose .bs-tool-grid { max-width: none; }
.page-head { padding-block: 8px 24px; }
.page-head .lede { margin-top: 8px; }
.soon-badge { display: inline-flex; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cond-ink); background: var(--cond-bg); border-radius: 8px; padding: 6px 10px; margin-bottom: 16px; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; color: var(--soft); margin: 12px 0 0; }
.guide-intro { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 20px 0; }
.guide-intro p:last-child { margin: 0; }
.savings { display: inline-flex; align-items: baseline; gap: 8px; background: var(--gain-bg); color: var(--gain); border-radius: 12px; padding: 10px 14px; font-weight: 600; margin-top: 12px; }
.savings strong { font: 400 28px/1 var(--serif); }
.hub-group { margin-bottom: 36px; }
.hub-group ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 20px; }
.hub-group li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.bank-tile { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; color: var(--ink); }
.bank-tile:hover { border-color: var(--brand); text-decoration: none; color: var(--ink); }
.bank-tile span { font-size: 14px; color: var(--soft); }
.bs-sitemap section { margin-bottom: 28px; }
.bs-inline-list { padding-left: 22px; }
.bs-card-box { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); margin: 16px 0; }
.bs-card-box dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0; font-size: 14px; }
.bs-card-box dd { margin: 0; font-weight: 600; }
.disclaimer-line { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 24px; }
.notice-404 { text-align: center; padding-block: 80px; }
.calc-page { max-width: none; }
.calc-page > :not(.bs-calc) { max-width: 72ch; }

/* Grid children never grow past their column (range inputs have a wide intrinsic size). */
.card-layout__side, .bs-calc__inputs, .bs-calc__outputs, .card-layout__main { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.bs-input, .bs-input__box, .bs-input input, .bs-input__range, .bs-input select { min-width: 0; max-width: 100%; }
.bs-calc > * { min-width: 0; }

/* Bank notice and cookie consent */
.notice-panel { background: var(--sky); border: 1px solid var(--sky-line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 20px; color: var(--ink); }
.notice-panel strong { display: block; margin-bottom: 4px; }
.bs-consent { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; max-width: 640px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.bs-consent[hidden] { display: none; }
.bs-consent p { margin: 0; font-size: 14px; color: var(--body); flex: 1 1 280px; }
.bs-consent__actions { display: flex; gap: 8px; }
.site-footer .bs-link { color: var(--footer-text); font-size: 14px; }
.site-footer .bs-link:hover { color: #fff; }

/* Share panel: under results, calculators, card value box and comparisons */
.bs-share { margin: 16px 0 20px; padding: 14px 16px; border: 1px solid var(--sky-line); background: var(--sky); border-radius: var(--radius-s); }
.bs-share[hidden] { display: none; }
.bs-share__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.bs-share__lead { margin: 0; font-weight: 600; color: var(--ink); font-size: 15px; }
.bs-share__btns { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.bs-share__btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: 500 14px/1.2 var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; }
.bs-share__btn:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.bs-share__btn--main { background: var(--brand); border-color: var(--brand); color: #fff; }
.bs-share__btn--main:hover, .bs-share__btn--main[aria-expanded="true"] { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.bs-share__form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sky-line); max-width: 620px; }
.bs-share__form > label:first-child { display: block; font-weight: 500; color: var(--ink); font-size: 14px; margin-bottom: 6px; }
.bs-share__row { display: flex; gap: 8px; min-width: 0; }
.bs-share__row input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 12px; font: 500 16px var(--sans); color: var(--ink); background: var(--surface); }
.bs-share__row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 99, 220, .15); }
.bs-share__row .bs-btn { flex: none; min-height: 46px; }
.bs-share__consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--body); cursor: pointer; }
.bs-share__consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.bs-share__fine { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.bs-share__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bs-share__status { margin: 8px 0 0; font-size: 14px; color: var(--gain); }
.bs-share__status:empty { display: none; }
.bs-share__status.is-bad { color: var(--loss); }
.card-layout__side .bs-share { margin: 16px 0 0; padding: 12px; }
.card-layout__side .bs-share__bar { gap: 8px; }
@media (max-width: 520px) {
  .bs-share { padding: 12px; }
  .bs-share__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .bs-share__btn { justify-content: center; white-space: normal; text-align: center; }
  .bs-share__btn--main { grid-column: 1 / -1; }
  .bs-share__row { flex-direction: column; }
}
@media print { .bs-share { display: none; } }
