
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/SchibstedGrotesk-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/SchibstedGrotesk-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/SchibstedGrotesk-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/SchibstedGrotesk-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/SchibstedGrotesk-ExtraBold.ttf") format("truetype"); font-weight: 800 900; font-display: swap; }
/* Shared with the marketing page (public/index.html): fonts, tokens, type, badges, iPhone, nav, final CTA, footer, dock. */
:root {
  --cobalt: #3448E5;
  --cobalt-text: #2F43D6;
  --ink: #20244B;
  --ink-2: #2B3064;
  --lime: #DFFF83;
  --cream: #FFF9EF;
  --paper: #F6F5F1;
  --lavender: #E8E3FF;
  --coral: #FF947C;
  --muted: #5C6088;
  --muted-on-ink: #B4B6D6;
  --line: rgba(32, 36, 75, .12);
  --line-on-ink: rgba(255, 255, 255, .14);
  --white: #FFFFFF;
  --badge: #000000;
  --display: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --radius: 22px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -0.035em; }
h1 { font-size: clamp(46px, 8.4vw, 104px); line-height: .92; font-weight: 800; }
h2 { font-size: clamp(36px, 5.6vw, 68px); line-height: .98; font-weight: 800; }
h3 { font-size: clamp(20px, 2.1vw, 24px); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--muted); max-width: 34ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt-text);
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--lime); box-shadow: inset 0 0 0 1.5px var(--ink); }
.mark { background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%); padding-inline: .06em; }
.mark > span { position: relative; }
.on-ink .mark { color: var(--ink); background: var(--lime); border-radius: .12em; padding-inline: .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.on-ink h2 { line-height: 1.02; }

.on-ink { background: var(--ink); color: var(--white); }
.on-ink .lede { color: var(--muted-on-ink); }
.on-ink .eyebrow { color: var(--lime); }
/* ---------- Store badges (official artwork, shown at the same visible height) ---------- */
.badges { --bh: 54px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badges.sm { --bh: 42px; gap: 10px; }
.store { display: inline-flex; border-radius: calc(var(--bh) * .2); transition: transform .2s ease, box-shadow .2s ease; }
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(32, 36, 75, .55); }
.store img { height: var(--bh); width: auto; display: block; }
.store .gp { height: calc(var(--bh) * 1.488); margin: calc(var(--bh) * -.244); max-width: none; }
.store.google { overflow: hidden; }
.small-print { font-size: 14px; color: var(--muted); }
.on-ink .small-print { color: var(--muted-on-ink); }

/* ---------- Real iPhone (17 Pro, titanium) ---------- */
.iphone {
  --w: 300px; width: var(--w); max-width: 100%; position: relative; flex: none;
  padding: calc(var(--w) * .013); border-radius: calc(var(--w) * .165);
  background:
    linear-gradient(90deg, rgba(255,255,255,.55), rgba(255,255,255,0) 6%, rgba(255,255,255,0) 94%, rgba(255,255,255,.4)),
    linear-gradient(160deg, #9EA3AB 0%, #E3E5E9 14%, #7E838C 34%, #C6C9CF 58%, #6E737C 80%, #B7BBC2 100%);
  box-shadow:
    0 calc(var(--w) * .12) calc(var(--w) * .22) calc(var(--w) * -.06) rgba(32, 36, 75, .45),
    0 calc(var(--w) * .03) calc(var(--w) * .06) rgba(32, 36, 75, .18),
    inset 0 0 0 1px rgba(255,255,255,.35);
}
.iphone .bezel { background: #050507; border-radius: calc(var(--w) * .152); padding: calc(var(--w) * .029); box-shadow: inset 0 0 0 1.5px #23252B; }
.iphone .screen { position: relative; border-radius: calc(var(--w) * .124); overflow: hidden; aspect-ratio: 1320 / 2868; background: var(--paper); }
.iphone .screen img { width: 100%; height: 100%; object-fit: cover; }
.iphone .island { position: absolute; left: 35.8%; top: 1.15%; width: 28.4%; height: 3.85%; border-radius: 999px; background: #000; }
.iphone .screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 32%);
}
.iphone .btn { position: absolute; width: calc(var(--w) * .014); background: linear-gradient(90deg, #6C717A, #C9CCD2, #7B8089); border-radius: 2px; }
.iphone .btn.action { left: calc(var(--w) * -.009); top: 17%; height: 4.2%; }
.iphone .btn.vol-up { left: calc(var(--w) * -.009); top: 24.5%; height: 7.5%; }
.iphone .btn.vol-down { left: calc(var(--w) * -.009); top: 33.5%; height: 7.5%; }
.iphone .btn.power { right: calc(var(--w) * -.009); top: 27%; height: 11.5%; }
.iphone .btn.camera { right: calc(var(--w) * -.006); top: 47%; height: 7%; background: linear-gradient(90deg, #8B9098, #3E4148); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--cream) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand .m { width: 34px; height: 34px; }
.brand .w { height: 26px; width: auto; }
.nav nav { display: flex; gap: 26px; margin-left: auto; font-weight: 600; font-size: 15px; }
.nav nav a { text-decoration: none; opacity: .78; }
.nav nav a:hover { opacity: 1; }
.nav .cta { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 700; font-size: 15px; text-decoration: none; }
.nav .cta:hover { background: var(--cobalt); }
@media (max-width: 860px) { .nav nav { display: none; } .nav .cta { margin-left: auto; } }

/* ---------- Final CTA ---------- */
.final { padding-block: clamp(72px, 10vw, 136px); position: relative; overflow: hidden; }
.final .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.final .copy { display: grid; gap: 26px; min-width: 0; }
.final h2 { font-size: clamp(44px, 7.4vw, 96px); }
.final .visual { display: flex; justify-content: center; gap: 0; }
.final .iphone { --w: clamp(200px, 19vw, 240px); }
.final .iphone:first-child { transform: rotate(-7deg) translateX(18%); z-index: 1; }
.final .iphone:last-child { transform: rotate(6deg) translate(-18%, 8%); }
@media (max-width: 860px) { .final .wrap { grid-template-columns: 1fr; } .final .iphone { --w: min(190px, 44vw); } }

/* ---------- Footer ---------- */
footer { padding-block: 48px; border-top: 1px solid var(--line-on-ink); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; }
footer nav a { text-decoration: none; color: var(--muted-on-ink); }
footer nav a:hover { color: var(--white); }
footer .legal { width: 100%; font-size: 13px; color: var(--muted-on-ink); }

/* ---------- Sticky mobile download bar ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(32, 36, 75, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: none; justify-content: center; gap: 10px; transform: translateY(110%); transition: transform .3s ease; }
.dock.show { transform: none; }
@media (max-width: 700px) { .dock { display: flex; } body { padding-bottom: 72px; } }

/* ---------- Blog ---------- */
/* Each topic has its own accent, used on chips, cards and the stat card. */
.t-water { --topic: #3448E5; --topic-soft: #E3E7FF; --topic-ink: #FFFFFF; }
.t-food { --topic: #FF947C; --topic-soft: #FFE6DF; --topic-ink: #20244B; }
.t-checklists { --topic: #DFFF83; --topic-soft: #F1FFD2; --topic-ink: #20244B; }
.t-guides { --topic: #20244B; --topic-soft: #E8E3FF; --topic-ink: #DFFF83; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav nav a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--cobalt); }
.mark > span { position: relative; }
a.eyebrow { text-decoration: none; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--cobalt-text); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Hero for the blog home and topic pages */
.blog-hero { padding-block: clamp(28px, 5vw, 56px) clamp(32px, 5vw, 56px); }
.blog-hero .wrap { display: grid; gap: 20px; }
.blog-hero h1 { font-size: clamp(44px, 7vw, 88px); max-width: 14ch; }
.blog-hero .lede { max-width: 52ch; }
.search { position: relative; max-width: 620px; margin-top: 6px; }
.search input { width: 100%; height: 60px; padding: 0 130px 0 54px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320244B' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 18px center / 22px no-repeat; font: 500 17px var(--body); color: var(--ink); box-shadow: 0 12px 30px -20px rgba(32,36,75,.45); }
.search input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(52,72,229,.15); }
.search-count { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--topic-soft, var(--paper)); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(32,36,75,.08); }
.chip small { font-weight: 600; opacity: .6; font-variant-numeric: tabular-nums; }
a.chip:hover, .chip[aria-current] { background: var(--topic); color: var(--topic-ink); }
.topic-hero h1 { display: flex; align-items: center; gap: 16px; }
.topic-hero h1::before { content: ""; width: .42em; height: .42em; border-radius: .12em; background: var(--topic); flex: none; }

/* Cards */
.section-title { font-size: clamp(26px, 3vw, 36px); line-height: 1.05; }
.featured, .quick, .topic-block, .all-posts, .topic-list { padding-block: clamp(20px, 3vw, 36px); }
.topic-list { padding-bottom: clamp(56px, 8vw, 96px); }
.topic-block:last-of-type { padding-bottom: clamp(56px, 8vw, 96px); }
.featured .section-title, .quick .section-title, .all-posts .section-title { margin-bottom: 20px; }
.topic-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 20px; }
.topic-head p { color: var(--muted); margin-top: 6px; }
.see-all { font-weight: 700; color: var(--cobalt-text); text-decoration: none; }
.see-all:hover { text-decoration: underline; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 22px; border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s ease, box-shadow .2s ease; overflow: hidden; min-width: 0; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--topic); }
.card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), 0 22px 40px -26px rgba(32,36,75,.55); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card .chip { padding: 5px 11px; font-size: 12px; }
.mins { font-size: 13px; color: var(--muted); }
.card-stat { font-size: 40px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.card-stat small { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.card-title { font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
.card-desc { font-size: 15px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-go { font-weight: 700; font-size: 14px; color: var(--cobalt-text); }
.cards-2 .card { padding: 28px; }
.cards-2 .card-stat { font-size: 56px; }
.cards-2 .card-title { font-size: 24px; }
.no-results { color: var(--muted); padding-block: 12px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards, .cards-2 { grid-template-columns: 1fr; } }

/* Post header */
.post-head { padding-block: clamp(24px, 4vw, 48px) clamp(28px, 4vw, 48px); }
.post-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 56px); align-items: end; }
.post-head .copy { display: grid; gap: 18px; min-width: 0; }
.post-head h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: .98; max-width: 18ch; }
.post-head .lede { max-width: 56ch; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 8px; }
.meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.stat-card { width: clamp(220px, 24vw, 280px); aspect-ratio: 1; border-radius: 32px; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; background: var(--topic); color: var(--topic-ink); box-shadow: 0 30px 60px -32px rgba(32,36,75,.6); transform: rotate(2deg); position: relative; overflow: hidden; }
.stat-card::before { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.18); }
.stat-value { font-size: clamp(48px, 6vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: .9; }
.stat-label { font-size: 15px; font-weight: 600; opacity: .85; }
@media (max-width: 760px) { .post-head-grid { grid-template-columns: 1fr; } .stat-card { width: 100%; aspect-ratio: auto; min-height: 150px; transform: none; } }

/* Post body */
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: clamp(40px, 6vw, 72px); }
.post-main { display: grid; gap: 32px; min-width: 0; }
.answer { padding: 24px 26px; border-radius: var(--radius); background: var(--lavender); display: grid; gap: 10px; }
.answer p { font-size: clamp(19px, 1.9vw, 22px); line-height: 1.45; }
.answer strong { background: linear-gradient(transparent 60%, var(--lime) 60%, var(--lime) 92%, transparent 92%); }
.prose { font-size: 18px; line-height: 1.7; max-width: 68ch; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; margin-top: 44px; scroll-margin-top: 90px; }
.prose h3 { margin-top: 28px; }
.prose a { color: var(--cobalt-text); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--cobalt); font-weight: 700; }
.note { padding: 18px 20px; border-radius: 16px; background: var(--paper); box-shadow: inset 4px 0 0 var(--cobalt); font-size: 16px; color: var(--muted); }
.table { overflow-x: auto; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); background: var(--white); }
.table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table td:not(:first-child) { white-space: nowrap; }
.table th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper); padding: 12px 16px; }
.table td { padding: 12px 16px; border-top: 1px solid var(--line); }
.table tr:last-child td { background: rgba(223,255,131,.25); }
.checklist { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; line-height: 1.5; color: var(--muted); margin: 0 !important; }
.checklist li strong { color: var(--ink); }
.checklist .box { width: 22px; height: 22px; margin-top: 2px; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--ink); }
.checklist li.added { background: #FBFFEC; box-shadow: inset 0 0 0 1.5px #B9D75A; }
.tag { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #B23A1F; margin-left: 4px; }
.added-key { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #F1FFD2; box-shadow: inset 0 0 0 1px #B9D75A; font-weight: 600; color: var(--ink); }

/* Calculator */
.calc { padding: clamp(20px, 3vw, 28px); border-radius: var(--radius); background: var(--ink); color: var(--white); display: grid; gap: 18px; }
.calc h2 { font-size: clamp(24px, 2.6vw, 30px); }
.calc-head { display: grid; gap: 8px; }
.calc .eyebrow { color: var(--lime); }
.calc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.calc label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted-on-ink); }
.calc input, .calc select { height: 48px; padding: 0 12px; border-radius: 12px; border: 0; background: var(--ink-2); color: var(--white); font: 700 18px var(--body); box-shadow: inset 0 0 0 1px var(--line-on-ink); width: 100%; }
.calc input:focus, .calc select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--lime); }
.calc-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.calc-out span { padding: 16px; border-radius: 16px; background: var(--ink-2); font-size: 14px; color: var(--muted-on-ink); display: grid; gap: 4px; }
.calc-out b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--lime); font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .calc-out { grid-template-columns: 1fr; } }

/* In-article app call to action */
.app-cta { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(22px, 3vw, 32px); border-radius: 28px; background: var(--cobalt); color: var(--white); overflow: hidden; }
.app-cta::before { content: ""; position: absolute; right: -50px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: var(--lime); }
.app-cta-copy { position: relative; display: grid; gap: 12px; min-width: 0; }
.app-cta .eyebrow { color: var(--lime); }
.app-cta .eyebrow::before { box-shadow: none; }
.app-cta-title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.app-cta-copy p:not(.app-cta-title) { opacity: .85; }
.app-cta-phone { position: relative; margin-block: -10px -90px; }
.app-cta .iphone { --w: 170px; transform: rotate(6deg); }
@media (max-width: 620px) { .app-cta { grid-template-columns: 1fr; } .app-cta-phone { display: none; } }

/* Sidebar */
.post-side { position: sticky; top: 92px; display: grid; gap: 18px; }
.toc { padding: 20px; border-radius: var(--radius); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--muted); }
.toc a:hover { background: var(--paper); color: var(--ink); }
.toc a.active { background: var(--lavender); color: var(--ink); }
.side-cta { padding: 20px; border-radius: var(--radius); background: var(--ink); color: var(--white); display: grid; gap: 10px; }
.side-cta-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.side-cta p { font-size: 15px; color: var(--muted-on-ink); }
.side-cta .badges { --bh: 38px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr; } .post-side { position: static; } .toc { order: -1; } .side-cta { display: none; } }

/* FAQs and related */
.faqs h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 8px; }
.faqs details { border-bottom: 1px solid var(--line); }
.faqs summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; font-size: 18px; font-weight: 700; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); font-size: 20px; transition: transform .2s ease, background .2s ease; }
.faqs details[open] summary::after { transform: rotate(45deg); background: var(--lime); }
.faqs details p { padding-bottom: 18px; color: var(--muted); max-width: 64ch; }
.related { padding-block: clamp(48px, 7vw, 88px); background: var(--paper); }
.related h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 24px; }
[hidden] { display: none !important; }

/* ---------- Calculators (assets/tools.js) ---------- */
.calc .t-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.t-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted-on-ink); min-width: 0; }
.calc select { height: 48px; padding: 0 12px; border-radius: 12px; border: 0; background: var(--ink-2); color: var(--white); font: 700 16px var(--body); box-shadow: inset 0 0 0 1px var(--line-on-ink); width: 100%; }
.t-step { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; height: 48px; border-radius: 12px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-on-ink); overflow: hidden; }
.t-step button { border: 0; background: transparent; color: var(--lime); font: 700 22px var(--body); cursor: pointer; }
.t-step button:hover { background: rgba(255,255,255,.06); }
.t-step input { height: 48px; border: 0; background: transparent; color: var(--white); text-align: center; font: 700 18px var(--body); width: 100%; -moz-appearance: textfield; box-shadow: none; padding: 0; }
.t-step input::-webkit-outer-spin-button, .t-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.t-step input:focus, .calc select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--lime); }
.t-rows { grid-column: 1 / -1; display: grid; gap: 10px; }
.t-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.t-add, .t-copy { justify-self: start; border: 0; background: transparent; color: var(--lime); font: 700 15px var(--body); cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.t-out { display: grid; gap: 14px; }
.t-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.t-big { padding: 16px; border-radius: 16px; background: var(--ink-2); font-size: 14px; color: var(--muted-on-ink); display: grid; gap: 4px; }
.t-big b { font-size: clamp(28px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.03em; color: var(--lime); line-height: 1.05; }
.t-note { font-size: 15px; color: var(--muted-on-ink); }
.t-label { font-weight: 700; margin-bottom: 8px; }
.t-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 18px; }
.t-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-on-ink); font-size: 15px; }
.t-list b { color: var(--lime); font-variant-numeric: tabular-nums; }
.t-share { margin-top: -4px; }
@media (max-width: 620px) { .calc .t-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .t-row { grid-template-columns: 1fr; } }

/* ---------- Page extras ---------- */
.intro { font-size: 19px; line-height: 1.6; max-width: 68ch; }
.compact { padding-left: 1.2em; }
.compact li + li { margin-top: 6px; }
.get-btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 24px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 800; text-decoration: none; width: fit-content; position: relative; }
.get-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.sources { display: grid; gap: 10px; padding: 22px; border-radius: var(--radius); background: var(--paper); font-size: 15px; color: var(--muted); }
.sources h2 { font-size: 22px; color: var(--ink); }
.sources ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.sources a { color: var(--cobalt-text); }
.sources .small { font-size: 13px; }
.get-hero h1 { max-width: 16ch; }
.get-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 12px; }
.qr { width: 180px; padding: 12px; border-radius: 20px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.qr svg { width: 100%; height: auto; display: block; }
.table th[scope="row"] { font-weight: 600; text-align: left; color: var(--ink); background: transparent; text-transform: none; letter-spacing: 0; font-size: 16px; padding: 12px 16px; border-top: 1px solid var(--line); }
.table tr.total { background: rgba(223,255,131,.25); }
.table tr:last-child td { background: transparent; }
.t-field:has(select[name="preset"]), .t-field:has(select[name="product"]), .t-field:has(select[name="share"]) { grid-column: span 2; }
@media (max-width: 620px) { .t-field:has(select[name="preset"]), .t-field:has(select[name="product"]), .t-field:has(select[name="share"]) { grid-column: 1 / -1; } }

/* ---------- Localisation, citations and estimates ---------- */
.est { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: #FFF1C2; color: #6B4E00; font-size: 12px; font-weight: 700; letter-spacing: .02em; vertical-align: middle; white-space: nowrap; }
sup.cite { font-size: .62em; line-height: 0; margin-left: 2px; }
sup.cite a { color: var(--cobalt-text); text-decoration: none; font-weight: 700; padding: 0 2px; }
sup.cite a:hover { text-decoration: underline; }
.sources ol { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; }
.sources li:target { background: #FFF1C2; border-radius: 6px; }
.locale-switch { position: relative; font-weight: 700; font-size: 15px; }
.locale-switch summary { list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }
.locale-switch summary::-webkit-details-marker { display: none; }
.locale-switch summary::after { content: " ▾"; font-size: 12px; }
.locale-switch ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; list-style: none; margin: 0; padding: 8px; min-width: 200px; border-radius: 16px; background: var(--white); box-shadow: 0 20px 40px -18px rgba(32,36,75,.45), inset 0 0 0 1px var(--line); }
.locale-switch a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.locale-switch a:hover, .locale-switch a[aria-current] { background: var(--lavender); }
.home-family { margin-top: 40px; }
.home-family .cards { margin-top: 16px; }
.locale-cards { margin-top: 24px; }
.locale-cards .card { grid-template-rows: auto 1fr auto; }
.small { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .locale-switch { margin-left: auto; } .nav .cta { margin-left: 8px; } }
