/* Financial Rat — one stylesheet for the whole site.
   Colours live in the variables below; change them here and the whole site follows. */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --ink: #0f1b2d;
  --ink-2: #3c4a60;
  --muted: #66738a;
  --line: #dde3ee;
  --brand: #0e9f6e;        /* money green: line one of the motto */
  --brand-ink: #087a54;
  --brand-soft: #e3f6ee;
  --accent: #e8890c;       /* gold: line two of the motto */
  --accent-soft: #fdf1df;
  --blue: #2f6fe4;
  --blue-soft: #e6eefc;
  --red: #d64545;
  --red-soft: #fbe7e7;
  --chart-1: #0e9f6e; --chart-2: #2f6fe4; --chart-3: #e8890c; --chart-4: #8b5cf6; --chart-5: #d64545; --chart-6: #14b8a6; --chart-7: #64748b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220; --surface: #121b2e; --surface-2: #1a2540; --ink: #e8edf6; --ink-2: #c3cbda; --muted: #94a0b6;
    --line: #26324d; --brand: #2fc58f; --brand-ink: #4fd6a3; --brand-soft: #123528; --accent: #f5a524; --accent-soft: #3a2a10;
    --blue: #6b9bff; --blue-soft: #18284a; --red: #f07171; --red-soft: #3d1c1c;
    --chart-1: #2fc58f; --chart-2: #6b9bff; --chart-3: #f5a524; --chart-4: #a78bfa; --chart-5: #f07171; --chart-6: #2dd4bf; --chart-7: #94a3b8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --surface: #121b2e; --surface-2: #1a2540; --ink: #e8edf6; --ink-2: #c3cbda; --muted: #94a0b6;
  --line: #26324d; --brand: #2fc58f; --brand-ink: #4fd6a3; --brand-soft: #123528; --accent: #f5a524; --accent-soft: #3a2a10;
  --blue: #6b9bff; --blue-soft: #18284a; --red: #f07171; --red-soft: #3d1c1c;
  --chart-1: #2fc58f; --chart-2: #6b9bff; --chart-3: #f5a524; --chart-4: #a78bfa; --chart-5: #f07171; --chart-6: #2dd4bf; --chart-7: #94a3b8;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.6; overflow-x: hidden; }
img, svg, canvas { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { line-height: 1.2; margin: 1.6em 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-top: .3em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.hidden { display: none !important; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.logo svg { width: 42px; height: 42px; flex: none; }
.logo .rat { color: var(--brand); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; padding: 10px 14px; border-radius: 999px; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px; font-size: 1.05rem; }
}

/* ---------- Motto: two lines, colours swap when you touch it ---------- */
.motto { display: inline-flex; flex-direction: column; cursor: pointer; user-select: none; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.motto span { transition: color .45s ease, transform .45s ease; }
.motto .m1 { color: var(--brand); }
.motto .m2 { color: var(--accent); }
.motto:hover .m1, .motto.swapped .m1 { color: var(--accent); transform: translateX(6px); }
.motto:hover .m2, .motto.swapped .m2 { color: var(--brand); transform: translateX(-6px); }
.motto.swapped:hover .m1 { color: var(--brand); transform: none; }
.motto.swapped:hover .m2 { color: var(--accent); transform: none; }
.hero .motto { font-size: clamp(1.6rem, 5vw, 2.6rem); }

/* ---------- Buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; padding: 14px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s; min-height: 52px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-accent { background: var(--accent); color: #231400; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-sm { padding: 8px 14px; min-height: 40px; font-size: .9rem; }
label { font-weight: 600; display: block; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; display: block; margin-top: 4px; }
input[type="text"], input[type="number"], input[type="search"], select {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); min-height: 52px;
}
input:focus, select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px var(--brand-soft); }
.input-unit { position: relative; }
.input-unit input { padding-right: 52px; }
.input-unit .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.input-unit.prefix input { padding-left: 34px; padding-right: 14px; }
.input-unit.prefix .unit { left: 14px; right: auto; }
input[type="range"] { width: 100%; accent-color: var(--brand); height: 32px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--brand); }

/* ---------- Cards & sections ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
section.block { padding: 56px 0; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }

/* ---------- Home ---------- */
.hero { padding: 64px 0 40px; background:
  radial-gradient(900px 400px at 85% -10%, var(--brand-soft), transparent 60%),
  radial-gradient(700px 360px at -10% 110%, var(--accent-soft), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: .2em 0 .3em; }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: min(100%, 360px); height: auto; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; } .hero-art svg { width: 200px; } }
.problem { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.problem .card { text-align: center; }
.problem .big { font-size: 2.2rem; }
.section-card { position: relative; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); border-top: 6px solid var(--c, var(--brand)); transition: transform .2s ease, box-shadow .2s ease; }
.section-card:hover { transform: translateY(-4px); color: var(--ink); box-shadow: 0 16px 40px rgba(15, 27, 45, .12); }
.section-card .icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 1.8rem; background: color-mix(in srgb, var(--c, var(--brand)) 15%, transparent); }
.section-card h3 { margin: 6px 0 0; font-size: 1.35rem; }
.section-card ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.section-card .go { margin-top: auto; font-weight: 800; color: var(--c, var(--brand)); }
.section-card.soon { opacity: .75; border-top-style: dashed; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; padding: 40px 0 24px; border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h4 { margin: 0 0 8px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand-ink); text-decoration: underline; }
.site-footer .motto { font-size: 1.15rem; margin-top: 8px; }
.disclaimer { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Ads ---------- */
.ad-slot { margin: 32px auto; min-height: 90px; display: grid; place-items: center; }
.ad-slot.placeholder { border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.ad-slot:empty { display: none; }

/* ---------- Learning pages ---------- */
.lesson-layout { display: grid; grid-template-columns: 250px 1fr; gap: 40px; padding-top: 32px; }
.lesson-nav { position: sticky; top: 88px; align-self: start; }
.lesson-nav ol { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.lesson-nav li { counter-increment: step; }
.lesson-nav a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.lesson-nav a::before { content: counter(step); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: .8rem; }
.lesson-nav a:hover { background: var(--surface-2); }
.lesson-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); }
.lesson-nav a[aria-current="page"]::before { background: var(--brand); color: #fff; }
.lesson-nav .group { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; margin: 16px 10px 4px; }
.lesson { min-width: 0; max-width: 860px; }
.lesson .intro { font-size: 1.12rem; color: var(--ink-2); }
@media (max-width: 960px) { .lesson-layout { grid-template-columns: 1fr; } .lesson-nav { position: static; } .lesson-nav ol { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 6px; } .lesson-nav .group { display: none; } .lesson-nav a { white-space: nowrap; } }

/* Annotated statement: each explanation sits on the same line as its number, joined by an arrow. */
.statement { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 0; margin: 24px 0; box-shadow: var(--shadow); overflow: hidden; }
.statement .st-title { padding: 10px 20px 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 800; }
.statement .st-title small { font-weight: 500; color: var(--muted); }
.arow { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.15fr); align-items: center; padding: 6px 20px; }
.arow + .arow { border-top: 1px dashed var(--line); }
.arow .line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; }
.arow .line .v { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.arow.total .line { background: var(--surface-2); font-weight: 800; }
.arow.key .line { background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; }
.arow.minus .line .v { color: var(--red); }
.arow.sub .line { padding-left: 32px; font-size: .95rem; color: var(--ink-2); }
.arow .arrow { height: 2px; background: var(--accent); position: relative; margin: 0 6px; }
.arow .arrow::after { content: ""; position: absolute; right: -2px; top: -6px; border: 7px solid transparent; border-left: 10px solid var(--accent); border-right: 0; }
.arow .note { background: var(--accent-soft); border-radius: 10px; padding: 8px 12px; font-size: .9rem; color: var(--ink); }
.arow .note b { color: var(--accent); filter: brightness(.8); }
.arow.plain .arrow, .arow.plain .note { visibility: hidden; }
@media (max-width: 720px) {
  .arow { grid-template-columns: 1fr; gap: 0; padding: 6px 12px; }
  .arow .arrow { width: 2px; height: 16px; margin: 0 0 0 28px; }
  .arow .arrow::after { right: auto; left: -6px; top: auto; bottom: -4px; border: 7px solid transparent; border-top: 10px solid var(--accent); border-bottom: 0; }
  .arow.plain .arrow, .arow.plain .note { display: none; }
}

.callout { border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; border-left: 6px solid var(--c, var(--blue)); background: color-mix(in srgb, var(--c, var(--blue)) 10%, var(--surface)); }
.callout > :last-child { margin-bottom: 0; }
.callout .t { font-weight: 800; display: block; margin-bottom: 4px; }
.callout.tip { --c: var(--brand); }
.callout.warn { --c: var(--accent); }
.callout.grandpa { --c: #8b5cf6; }
.formula { font-family: var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 14px 0; font-size: .95rem; overflow-x: auto; }
.formula .eq { color: var(--brand-ink); font-weight: 800; }
.ratio-card { border-left: 6px solid var(--c, var(--brand)); }
.ratio-card h3 { margin-top: 0; }
.ratio-card .result { font-size: 1.6rem; font-weight: 800; color: var(--c, var(--brand)); }
.lesson-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; flex-wrap: wrap; }
.quiz { background: var(--blue-soft); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; }
.quiz details { margin-top: 8px; }
.quiz summary { cursor: pointer; font-weight: 700; color: var(--blue); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; }
thead th { background: var(--surface-2); font-weight: 800; position: sticky; top: 0; }
thead th:first-child { background: var(--surface-2); z-index: 2; }
tbody tr:hover td { background: var(--surface-2); }
tr.total td { font-weight: 800; }
td.neg { color: var(--red); }
table.compare td, table.compare th { white-space: normal; text-align: left; }

/* ---------- Calculators ---------- */
.calc-card { text-decoration: none; color: var(--ink); display: flex; gap: 16px; align-items: flex-start; transition: transform .2s, border-color .2s; }
.calc-card:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--ink); }
.calc-card .icon { font-size: 2rem; width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); }
.calc-card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.calc-card p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.calc-layout { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 24px; }
@media (max-width: 900px) { .calc-layout { grid-template-columns: 1fr; } }
.calc-form { display: grid; gap: 18px; }
.answer { background: linear-gradient(135deg, var(--brand), var(--brand-ink)); color: #fff; border-radius: var(--radius); padding: 24px; }
.answer .label { opacity: .9; font-weight: 600; }
.answer .value { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; margin: 4px 0; }
.answer .say { font-size: 1.02rem; opacity: .95; margin: 8px 0 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.stat .k { font-size: .8rem; color: var(--muted); font-weight: 700; }
.stat .v { font-size: 1.25rem; font-weight: 800; }
.chart-box { position: relative; height: 320px; margin: 12px 0; }
.chart-box.tall { height: 400px; }
.chart-box.short { height: 260px; }
.refs { font-size: .85rem; color: var(--muted); }
.refs li { margin: 4px 0; }

/* ---------- Analyze ---------- */
.search-hero { padding: 48px 0 24px; text-align: center; }
.search-box { position: relative; max-width: 640px; margin: 20px auto 0; }
.search-box form { display: flex; gap: 10px; }
.search-box input { font-size: 1.2rem; min-height: 60px; border-radius: 999px; padding: 0 24px; }
.search-box .btn { min-height: 60px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); list-style: none; margin: 0; padding: 6px; z-index: 20; text-align: left; max-height: 360px; overflow-y: auto; }
.suggest li { padding: 10px 14px; border-radius: 10px; cursor: pointer; display: flex; gap: 12px; align-items: baseline; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--brand-soft); }
.suggest .sym { font-weight: 800; min-width: 70px; }
.suggest .ex { margin-left: auto; color: var(--muted); font-size: .8rem; }
.quick-picks { margin-top: 16px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.quick-picks button { font: inherit; font-size: .9rem; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.quick-picks button:hover { border-color: var(--brand); color: var(--brand-ink); }
.company-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.company-head .name { display: flex; gap: 14px; align-items: center; }
.company-head .name img { width: 56px; height: 56px; border-radius: 12px; background: #fff; object-fit: contain; border: 1px solid var(--line); }
.company-head h1 { margin: 0; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.price-box { text-align: right; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.price-box .price { font-size: 2rem; font-weight: 900; line-height: 1; }
.price-box .chg { font-weight: 800; }
.up { color: var(--brand-ink); } .down { color: var(--red); }
@media (max-width: 700px) { .company-head { grid-template-columns: 1fr; } .price-box { text-align: left; justify-content: flex-start; } }
.dl { position: relative; }
.dl-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; min-width: 240px; z-index: 30; }
.dl-menu button { display: flex; width: 100%; gap: 10px; align-items: center; text-align: left; font: inherit; font-weight: 700; padding: 12px 14px; border: 0; background: none; color: var(--ink); border-radius: 10px; cursor: pointer; }
.dl-menu button:hover { background: var(--brand-soft); }
.dl-menu small { display: block; font-weight: 400; color: var(--muted); }
@media (max-width: 700px) { .dl-menu { right: auto; left: 0; } }
.tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 24px 0 0; position: sticky; top: 68px; background: var(--bg); z-index: 10; padding-top: 6px; }
.tabs a { white-space: nowrap; padding: 10px 14px; text-decoration: none; color: var(--ink-2); font-weight: 700; border-bottom: 3px solid transparent; }
.tabs a:hover, .tabs a.active { color: var(--brand-ink); border-color: var(--brand); }
.az-section { scroll-margin-top: 140px; padding-top: 24px; }
.az-section > h2 { margin-top: 24px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.kpi .k { font-size: .8rem; color: var(--muted); font-weight: 700; display: flex; justify-content: space-between; gap: 6px; }
.kpi .v { font-size: 1.45rem; font-weight: 900; letter-spacing: -.01em; }
.kpi .s { font-size: .8rem; color: var(--ink-2); }
.explain { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 10px 0; }
.explain .ar { color: var(--accent); font-weight: 900; font-size: 1.2rem; line-height: 1.4; }
.ratio-table td:last-child { white-space: normal; min-width: 260px; text-align: left; color: var(--ink-2); font-size: .85rem; }
.ratio-table .grp td { background: var(--surface-2); font-weight: 800; color: var(--ink); text-align: left; }
.donut-wrap { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 24px; align-items: center; }
@media (max-width: 700px) { .donut-wrap { grid-template-columns: 1fr; } }
.legend-list { list-style: none; margin: 0; padding: 0; }
.legend-list li { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.legend-list .sw { width: 14px; height: 14px; border-radius: 4px; }
.range-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.range-btns button { font: inherit; font-size: .85rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.range-btns button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dcf-grid { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 24px; }
@media (max-width: 900px) { .dcf-grid { grid-template-columns: 1fr; } }
.slider-row { display: grid; gap: 4px; }
.slider-row .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.slider-row output { font-weight: 900; color: var(--brand-ink); font-size: 1.1rem; }
.sens td.mid { outline: 3px solid var(--accent); outline-offset: -3px; font-weight: 900; }
.notice { padding: 14px 18px; border-radius: 12px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); margin: 16px 0; }
.error { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.spinner { width: 44px; height: 44px; border: 5px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.seg-btns { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.seg-btns button { font: inherit; font-size: .85rem; font-weight: 700; border: 0; background: none; padding: 6px 14px; border-radius: 999px; color: var(--ink-2); cursor: pointer; }
.seg-btns button.active { background: var(--brand); color: #fff; }

/* ---------- Prose pages ---------- */
.prose { padding: 32px 0; }
.prose h2 { font-size: 1.4rem; }
.prose li { margin: 6px 0; }

@media print {
  .site-header, .site-footer, .ad-slot, .tabs, .lesson-nav { display: none !important; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Grid and flex children may shrink below their content (wide tables and scrollers scroll inside instead of widening the page). */
.grid > *, .lesson-layout > *, .calc-layout > *, .dcf-grid > *, .donut-wrap > *, .company-head > *, .hero-grid > * { min-width: 0; }
@media (max-width: 960px) { .lesson-layout { grid-template-columns: minmax(0, 1fr); } }
.dcf-grid .calc-form { gap: 22px; align-content: start; }
.dcf-grid .calc-form .btn { justify-self: start; }
.slider-row input[type="range"] { height: 28px; margin: 0; }
.donut-wrap { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* ---------- Analyze: suggestions, business story, product pictures ---------- */
.quick-picks { display: block; max-width: 980px; margin: 18px auto 0; text-align: left; }
#sugg > summary { cursor: pointer; font-weight: 800; color: var(--ink-2); text-align: center; list-style: none; padding: 6px; }
#sugg > summary::-webkit-details-marker { display: none; }
#sugg > summary::after { content: " ▾"; }
#sugg[open] > summary::after { content: " ▴"; }
.sugg-groups { display: grid; gap: 14px; margin-top: 10px; }
.sugg-title { font-size: .8rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.sugg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sugg-chips button { font: inherit; font-size: .88rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, transform .15s; }
.sugg-chips button:hover { border-color: var(--brand); transform: translateY(-1px); }
.sugg-chips button b { color: var(--brand-ink); }
.sugg-chips button span { color: var(--ink-2); }
.story { border-left: 6px solid var(--brand); }
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.edge { margin: 0; padding-left: 1.1em; }
.edge li { margin: 6px 0; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.product { margin: 0; background: var(--surface-2); border-radius: 14px; overflow: hidden; text-align: center; }
.product img, .product .ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.product .ph { display: grid; place-items: center; font-size: 2rem; background: var(--surface); }
.product figcaption { padding: 8px 10px; font-weight: 700; font-size: .88rem; }
#c-price { position: relative; }
.story { margin-bottom: 16px; }

/* ---------- Learn: tinted menu on the left, white reading page on the right ---------- */
.lesson-layout { align-items: start; }
.lesson-nav { background: color-mix(in srgb, var(--brand) 9%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line)); border-radius: var(--radius); padding: 14px 10px; }
.lesson-nav a:hover { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); }
.lesson-nav a[aria-current="page"] { background: var(--surface); box-shadow: var(--shadow); }
.lesson-nav a::before { background: var(--surface); }
.lesson-nav .group { color: var(--brand-ink); }
.lesson { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(18px, 4vw, 44px); }
.lesson .statement, .lesson .card { box-shadow: none; }
.lesson .statement { background: var(--bg); }
@media (max-width: 960px) { .lesson-nav { padding: 8px; } }

/* Formula "anatomy": the formula on one line, each part joined by an arrow to its meaning. */
.anatomy { margin: 24px 0; padding: 20px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); overflow-x: auto; }
.agrid { display: grid; grid-template-rows: auto 22px auto 22px auto; column-gap: 8px; justify-content: center; align-items: center; min-width: max-content; margin: 0 auto; }
.agrid .sym { font: 800 1.2rem var(--mono); padding: 8px 12px; border-radius: 10px; background: var(--c, var(--brand)); color: #fff; white-space: nowrap; text-align: center; justify-self: center; }
.agrid .op, .agrid .eqlabel { font: 800 1.3rem var(--mono); color: var(--muted); text-align: center; }
.agrid .eqlabel { color: var(--ink); padding-right: 4px; }
.agrid .note { align-self: stretch; font-size: .8rem; line-height: 1.35; text-align: center; padding: 8px; border-radius: 10px; background: color-mix(in srgb, var(--c, var(--brand)) 12%, var(--surface)); color: var(--ink); max-width: 180px; justify-self: center; }
.agrid .note b { display: block; color: var(--c, var(--brand)); filter: brightness(.85); }
.agrid .link { justify-self: center; width: 2px; height: 100%; background: var(--c, var(--brand)); position: relative; }
.agrid .link::after { content: ""; position: absolute; left: -5px; border: 6px solid transparent; }
.agrid [style*="grid-row:2"].link::after { bottom: -4px; border-top: 8px solid var(--c, var(--brand)); border-bottom: 0; }
.agrid [style*="grid-row:4"].link::after { top: -4px; border-bottom: 8px solid var(--c, var(--brand)); border-top: 0; }
.anatomy .result { text-align: center; margin-top: 14px; font-weight: 700; }
.anatomy .hint-scroll { display: none; font-size: .75rem; color: var(--muted); text-align: center; margin-bottom: 6px; }
@media (max-width: 760px) { .anatomy .hint-scroll { display: block; } }
.timeline { list-style: none; padding: 0; margin: 20px 0; border-left: 3px solid var(--accent); }
.timeline li { position: relative; padding: 0 0 18px 22px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.timeline .when { font-weight: 900; color: var(--accent); filter: brightness(.85); display: block; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; margin: 24px 0; text-align: center; }
.flow .box { background: var(--bg); border: 2px solid var(--line); border-radius: 14px; padding: 14px; font-weight: 700; }
.flow .arr { font-size: .8rem; color: var(--muted); font-weight: 700; }
.flow .arr span { display: block; font-size: 1.6rem; color: var(--accent); line-height: 1; }
@media (max-width: 700px) { .flow { grid-template-columns: 1fr; } .flow .arr span { transform: rotate(90deg); } }
.industry { border-top: 6px solid var(--c, var(--brand)); margin: 28px 0; }
.industry h2 { margin-top: 4px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin: 12px 0; }
.kv > div { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.kv .k { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* Intrinsic value: highlighted in the DCF section and next to the price */
.answer.iv { background: linear-gradient(135deg, #0b7a55, #0e9f6e 60%, #13b981); box-shadow: 0 0 0 4px var(--accent), 0 14px 40px color-mix(in srgb, var(--brand) 35%, transparent); }
.answer.iv .label { font-size: 1.05rem; font-weight: 800; }
.answer.iv .value { font-size: clamp(2.6rem, 8vw, 3.6rem); }
.iv-compare { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.iv-compare span { background: rgba(255,255,255,.16); border-radius: 999px; padding: 6px 14px; }
.iv-badge { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; padding: 8px 14px; border-radius: 14px; background: var(--accent-soft); border: 2px solid var(--accent); color: var(--ink); font-size: .78rem; font-weight: 700; line-height: 1.2; }
.iv-badge b { font-size: 1.25rem; color: var(--ink); }
.iv-badge:hover { color: var(--ink); transform: translateY(-1px); }

/* ---------- Reviews ---------- */
.reviews-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 24px; }
@media (max-width: 900px) { .reviews-layout { grid-template-columns: 1fr; } }
textarea { width: 100%; font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); resize: vertical; }
textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px var(--brand-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.stars-input { display: flex; gap: 4px; }
.stars-input button { font-size: 2.2rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--line); padding: 2px; transition: transform .1s, color .1s; }
.stars-input button:hover { transform: scale(1.15); }
.stars-input button.on { color: var(--accent); }
.stars { color: var(--accent); letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: var(--line); }
.review { margin-bottom: 12px; padding: 18px 20px; box-shadow: none; }
.review-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-weight: 900; }
.review-summary { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.review-summary .avg { text-align: center; }
.review-summary .big { font-size: 3rem; font-weight: 900; line-height: 1; }
.bar-row { display: grid; grid-template-columns: 40px 1fr 30px; gap: 8px; align-items: center; font-size: .85rem; }
.rbar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.rbar i { display: block; height: 100%; background: var(--accent); }

/* ---------- Business section ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-bottom: 20px; }
.fact { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.fact .fi { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: color-mix(in srgb, var(--c) 15%, transparent); }
.fact .fk { font-size: .75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fact .fv { font-weight: 800; overflow-wrap: anywhere; line-height: 1.3; }
.biz-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .biz-grid { grid-template-columns: 1fr; } }
.biz-about { border-top: 6px solid var(--blue); }
#segments { border-top: 6px solid var(--accent); }
.lead-quote { font-size: 1.12rem; line-height: 1.6; border-left: 4px solid var(--brand); padding: 4px 0 4px 16px; margin: 0 0 12px; }
.more summary { cursor: pointer; font-weight: 800; color: var(--blue); }
.more p { margin-top: 10px; color: var(--ink-2); }
.legend-list .seg-row { display: block; padding: 8px 0; }
.seg-top { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.seg-top .sw { display: inline-block; vertical-align: middle; }
.seg-bar { height: 8px; border-radius: 999px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.seg-bar i { display: block; height: 100%; border-radius: 999px; }
.flowbar { display: flex; height: 38px; border-radius: 12px; overflow: hidden; gap: 2px; }
.flowbar i { display: block; min-width: 3px; }
.flow-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0; font-size: .92rem; }
.flow-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.rt td:first-child { white-space: normal; min-width: 210px; max-width: 280px; }
.rt .rname { display: block; font-weight: 700; }
.rt .rexp { display: block; font-size: .76rem; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.rt .na { color: var(--muted); cursor: help; }
.ratio-table td:last-child { white-space: nowrap; min-width: 0; text-align: right; color: inherit; font-size: inherit; }
.ratio-table tr.grp td { text-align: left; white-space: nowrap; font-size: .9rem; }

/* Analysis page: tighter spacing between sections, symmetric grids */
.az-section { padding-top: 4px; }
.az-section > h2, .az-section > .toolbar h2 { margin-top: 14px !important; margin-bottom: 10px; }
.az-section > .toolbar { margin-top: 14px; }
#result .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { #result .grid-2 { grid-template-columns: minmax(0, 1fr); } }
#result .stats { margin: 12px 0; }

/* ---------- Analysis: side-by-side layouts that fill the width ---------- */
.split { display: grid; gap: 20px; align-items: stretch; margin-top: 12px; }
.split > * { min-width: 0; }
.price-split { grid-template-columns: minmax(0, 1fr) 230px; align-items: center; margin-top: 0; }
.ov-split, .val-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.st-split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.ov-split .kpis, .val-split .kpis { align-content: stretch; }
.ov-split .kpi, .val-split .kpi { display: flex; flex-direction: column; justify-content: center; }
.glance-card .explain { margin: 8px 0; }
.stats.stack { display: grid; grid-template-columns: 1fr !important; margin: 0; gap: 10px; }
.col-stack { display: grid; gap: 20px; align-content: start; }
.biz-grid { align-items: stretch; }
.dcf-grid { align-items: start; }
#dcf-sens table { font-size: .82rem; }
#dcf-sens th, #dcf-sens td { padding: 7px 8px; }
@media (max-width: 1000px) {
  .price-split { grid-template-columns: 1fr; }
  .stats.stack { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important; }
}
@media (max-width: 860px) { .ov-split, .val-split, .st-split { grid-template-columns: 1fr; } }
.rt.compact td:first-child { white-space: nowrap; min-width: 0; max-width: none; }
.rt.compact .info { color: var(--muted); font-size: .8rem; cursor: help; }
.rt.compact td, .rt.compact th { padding: 8px 12px; }
@media (min-width: 1150px) { #result .grid-2.four-up { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.four-up .card { padding: 16px; }
.four-up h3 { font-size: 1rem; }
.col-stack > * { min-width: 0; }
.dcf-grid { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
@media (max-width: 900px) { .dcf-grid { grid-template-columns: minmax(0, 1fr); } }
#dcf-sens .table-wrap { overflow-x: auto; }
#dcf-sens th:first-child { white-space: normal; }
#wi-out { display: flex; flex-direction: column; align-self: stretch; }
#wi-out .wi-chart { flex: 1; display: flex; flex-direction: column; }
#wi-out .wi-chart .chart-box { flex: 1; min-height: 320px; height: auto; }
#whatif .calc-layout { align-items: stretch; }
.rt.compact { font-size: .86rem; }
.rt.compact td, .rt.compact th { padding: 7px 9px; }
.rt .grp-label { display: inline-block; position: sticky; left: 12px; }
.ratio-table tr.grp td { position: static; }
.ratio-table .rt.compact td:first-child { white-space: normal; min-width: 170px; max-width: 200px; line-height: 1.25; }
.ratio-table .rt.compact td, .ratio-table .rt.compact th { padding: 7px 7px; }

/* ---------- Portfolio tracker ---------- */
.pf-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
#pf-kpis { margin-top: 18px; }
.pf-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); margin-top: 20px; }
.pf-split2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); margin-top: 20px; }
@media (max-width: 900px) { .pf-split, .pf-split2 { grid-template-columns: 1fr; } }
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.linkbtn { background: none; border: 0; padding: 4px 0 0; font: inherit; font-size: .82rem; color: var(--blue); cursor: pointer; text-decoration: underline; }
.date-input { width: 100%; font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); min-height: 52px; }
.pf-del { background: none; border: 0; cursor: pointer; font-size: 1rem; padding: 2px 6px; border-radius: 8px; }
.pf-del:hover { background: var(--red-soft); }
.kpi .v.up { color: var(--brand-ink); } .kpi .v.down { color: var(--red); }
#pf-table td:first-child { white-space: normal; min-width: 150px; max-width: 220px; }
#pf-table .pf-name { display: block; font-size: .78rem; color: var(--muted); line-height: 1.25; }
#pf-table td, #pf-table th { padding: 8px 8px; }
.wacc-box { margin-top: 6px; background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.wacc-box summary { cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--blue); }
.wacc-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.wacc-inputs label { font-size: .72rem; font-weight: 700; color: var(--muted); margin: 0; }
.wacc-inputs input { min-height: 38px; padding: 6px 8px; font-size: .95rem; margin-top: 4px; }
#wacc-calc { line-height: 1.6; }

/* ---------- Downloads allowance, paywall and Premium ---------- */
.dl-quota { margin-top: 6px; text-align: right; color: var(--muted); }
.dl-quota a { font-weight: 700; }
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.offer { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px 18px; box-shadow: var(--shadow); }
.offer ul { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 6px; flex: 1; align-content: start; }
.offer .btn { width: 100%; }
.offer-name { font-weight: 800; font-size: 1.05rem; }
.offer-price { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.offer-price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.offer-sub { color: var(--muted); font-size: .9rem; }
.offer.best { border: 2px solid var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 45%); }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.paywall { max-width: 920px; width: calc(100% - 32px); border: 0; border-radius: 20px; padding: 26px; background: var(--bg); color: var(--ink); box-shadow: var(--shadow); }
.paywall::backdrop { background: rgba(15, 27, 45, .55); }
.pw-close { position: absolute; top: 12px; right: 12px; border: 0; background: var(--surface-2); color: var(--ink); width: 36px; height: 36px; border-radius: 50%; font-size: 1rem; cursor: pointer; }
.pw-code { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.pw-code input { flex: 1; }
.pm-status { margin-top: 14px; }
.pm-notice { margin-bottom: 18px; }
.pm-notice.ok { border: 2px solid var(--brand); background: var(--brand-soft); }
.pm-code { font-size: 1.2rem; font-weight: 800; padding: 2px 8px; border-radius: 8px; background: var(--surface); }
.pm-list { display: grid; gap: 8px; padding-left: 20px; }
@media (max-width: 760px) {
  .offers { grid-template-columns: 1fr; gap: 22px; }
  .paywall { padding: 20px 14px; }
  .dl-quota { text-align: left; }
}
.implied { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--blue-soft); border-left: 4px solid var(--blue); line-height: 1.55; }
/* Statement and ratio tables: read on screen, full history in the downloads. */
.no-copy, .no-copy * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.more-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; padding: 12px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.more-dl .btn { margin-left: auto; }
@media print { .no-copy { display: none; } }
