/* Shared styles for the public guide and calculator pages. Same "clear water" system as the landing page and the
   app: navy ink on cool paper, one orange accent, hairlines instead of shadows. Keep tokens identical to index.html. */
:root {
  --ink: #0f2233; --ink-soft: #3a4d5e; --ink-faint: #728494;
  --paper: #f2f5f7; --white: #ffffff; --mist: #d9e2e8; --mist-soft: #eaf0f3;
  --orange: #e5561a; --orange-deep: #c2440d; --orange-soft: #fdeadf;
  --sea: #0e6a86; --sea-soft: #e1eff4;
  --green: #1c6e4c; --green-soft: #e2f0e8;
  --amber: #8f651b; --amber-soft: #f6ecd6;
  --red: #9a3a2c;
  --radius: 18px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 34, 51, 0.05);
  --display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 0.4em; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -0.03em; }
h1 em { font-style: normal; color: var(--orange); }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin-top: 1.6em; }
h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
a { color: var(--sea); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid rgba(229, 86, 26, 0.45); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--orange-soft); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.small { font-size: 13.5px; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Top bar (identical to the landing page) ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(242, 245, 247, 0.96); border-bottom: 1px solid var(--mist); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--orange); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 14px; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: var(--white); }
.nav-links a.on { color: var(--ink); position: relative; }
.nav-links a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--orange); border-radius: 2px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 720px) { .nav-links { display: none; } .nav { height: 56px; } }
.nav .l-short { display: none; }
@media (max-width: 480px) {
  .nav .wordmark { font-size: 19px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn.sm { padding: 7px 11px; font-size: 13px; min-height: 34px; }
  .nav .l-long { display: none; }
  .nav .l-short { display: inline; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; font-size: 15px; font-weight: 700; font-family: inherit; color: var(--white); background: var(--orange); border: none; border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; min-height: 46px; letter-spacing: -0.01em; white-space: nowrap; transition: background-color .12s ease, border-color .12s ease; }
.btn:hover { background: var(--orange-deep); }
.btn.secondary { background: var(--white); color: var(--ink); border: 1.5px solid var(--mist); }
.btn.secondary:hover { border-color: var(--ink); }
.btn.sm { padding: 8px 14px; min-height: 38px; font-size: 14px; border-radius: 999px; }
.cta-note { font-size: 13.5px; color: var(--ink-faint); margin: 12px 0 0; max-width: 48ch; }
.cta-note strong { color: var(--ink); font-weight: 600; }

/* ---------- Shared pieces ---------- */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--orange); flex: none; }
.card { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--sea-soft); color: var(--sea); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.orange { background: var(--orange-soft); color: var(--orange-deep); }
.alert { border-left: 3px solid var(--amber); background: var(--amber-soft); padding: 10px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14px; }
.ledger { color: var(--white); border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 40%), repeating-linear-gradient(90deg, transparent 0 47px, rgba(255,255,255,0.035) 47px 48px), var(--ink); }

/* ---------- Page layout ---------- */
.crumbs { font-size: 13.5px; color: var(--ink-faint); padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span::before { content: "/"; margin-right: 6px; color: var(--mist); }
.crumbs span:first-child::before { content: none; }
.page-head { padding: 22px 0 8px; max-width: 70ch; }
.page-head .lede { font-size: 18px; color: var(--ink-soft); max-width: 60ch; margin: 0 0 8px; }
.page-head .lede strong { color: var(--ink); font-weight: 600; }
.updated { font-size: 13px; color: var(--ink-faint); margin: 0; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; padding: 22px 0 60px; }
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.prose { max-width: 70ch; min-width: 0; font-size: 16.5px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p strong, .prose li strong { color: var(--ink); font-weight: 600; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--mist); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); font-size: 13.5px; }
.prose td:last-child, .prose th:last-child { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
.prose td:first-child { white-space: nowrap; }
@media (max-width: 720px) {
  .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 14px; }
  .prose td:first-child { white-space: normal; min-width: 96px; }
  .prose td, .prose th { padding-right: 12px; }
}
.prose .example { background: var(--white); border: 1px solid var(--mist); border-left: 3px solid var(--orange); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 12px 16px; margin: 6px 0 18px; font-size: 15px; }
.prose .example p:last-child { margin-bottom: 0; }
.prose .cta-inline { margin: 22px 0; }
.aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 80px; }
.aside .card h3 { margin-bottom: 8px; }
.aside .card p { font-size: 14.5px; color: var(--ink-soft); }
.aside .card p:last-child { margin: 0; }
.aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.aside li { padding-left: 18px; position: relative; font-size: 14.5px; }
.aside li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 2px; background: var(--orange); }
.aside li a { text-decoration: none; color: var(--ink); font-weight: 600; }
.aside li a:hover { text-decoration: underline; }
.aside li small { display: block; color: var(--ink-faint); font-weight: 400; }
@media (max-width: 900px) { .aside { position: static; } }

/* ---------- Calculator form (same classes as the app) ---------- */
.calc { padding: 24px; }
.calc h2 { margin: 0 0 4px; font-size: 22px; }
.calc .intro { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.label { font-size: 14px; font-weight: 600; }
.hint { font-size: 13px; color: var(--ink-soft); }
.input { width: 100%; padding: 12px 14px; font-size: 16px; font-family: inherit; border: 1.5px solid var(--mist); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); outline: none; transition: border-color .12s ease, box-shadow .12s ease; }
.input:focus { border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-soft); }
.input-prefix { position: relative; }
.input-prefix .input { padding-left: 34px; }
.input-prefix::before { content: "€"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); font-weight: 600; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.choice { border: 1.5px solid var(--mist); background: var(--white); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-family: inherit; cursor: pointer; color: var(--ink); min-height: 38px; transition: background-color .12s ease, border-color .12s ease, color .12s ease; }
.choice:hover { border-color: var(--ink-faint); }
.choice[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.choice[hidden] { display: none; }
.result { background: var(--mist-soft); border-radius: var(--radius-sm); padding: 16px 18px; }
.result .line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; border-bottom: 1px solid var(--mist); }
.result .line:last-child { border-bottom: none; }
.result .line b { font-variant-numeric: tabular-nums; text-align: right; }
.result .line[hidden] { display: none; }
.result .total { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc .note { font-size: 13px; color: var(--ink-soft); margin: 12px 0 0; }
.calc .note[hidden] { display: none; }

/* ---------- Fact cards and FAQ (same as the app's guide) ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.fact { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--mist-soft); font-size: 14px; }
.fact:last-child { border-bottom: none; }
.fact b { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.fact span { color: var(--ink-soft); }
.card .more { display: block; margin-top: 12px; font-size: 14px; font-weight: 600; text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.faq { display: grid; gap: 10px; }
details.acc { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
details.acc summary { font-family: var(--display); font-weight: 700; font-size: 16.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; letter-spacing: -0.01em; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-size: 22px; color: var(--orange); flex: none; }
details.acc[open] summary::after { content: "–"; }
details.acc .body { margin-top: 12px; font-size: 15px; color: var(--ink-soft); }
details.acc .body p:last-child { margin-bottom: 0; }
details.acc .body strong { color: var(--ink); }

/* ---------- Hub tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.tile { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; transition: border-color .12s ease; }
.tile:hover { border-color: var(--ink); }
.tile h3 { margin: 0; }
.tile p { margin: 0; font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.tile .go { font-size: 14px; font-weight: 700; color: var(--sea); margin-top: 8px; }

/* ---------- Soft call to action ---------- */
.cta-box { padding: 32px 26px; margin: 40px 0 0; }
.cta-box h2 { color: var(--white); margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); }
.cta-box p { color: #b9c9d3; max-width: 56ch; margin: 0 0 20px; font-size: 16px; }
.cta-box .cta-note { color: #8ea3b3; margin: 12px 0 0; }
.cta-box .cta-note strong { color: var(--white); }

footer { border-top: 1px solid var(--mist); padding: 32px 0 44px; font-size: 13px; color: var(--ink-faint); }
footer p { max-width: 90ch; margin-bottom: 8px; }
footer a { color: var(--ink-soft); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
