/* =====================================================================
   Ask Axel design system
   Midnight navy, signal brass, one route.
   ===================================================================== */
:root {
  --bg: #0A1532;
  --bg-2: #0D1A3D;
  --panel: #111F47;
  --panel-2: #162957;
  --line: #22376A;
  --line-soft: rgba(143, 179, 232, 0.14);
  --text: #EEF1F6;
  --body: #D3D9E5;
  --muted: #9FAAC4;
  --brass: #D4B26E;
  --brass-hi: #E9CD8E;
  --brass-glow: rgba(212, 178, 110, 0.35);
  --sky: #8FB3E8;
  /* Older names kept so inline styles in the guides still resolve */
  --navy-900: var(--bg);
  --navy-800: var(--panel);
  --navy-700: var(--panel-2);
  --display: "Sora", "IBM Plex Sans", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--display);
  --wrap: 1160px;
  --measure: 40rem;
  --r-sm: 10px;
  --r: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--brass); color: var(--bg); }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--brass); color: var(--bg); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600;
}
.skip:focus { left: 8px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

/* ---------- Type ---------- */
h1, h2, h3, .display { font-family: var(--display); color: var(--text); }
h1 {
  font-weight: 600; font-size: clamp(2.3rem, 4.6vw, 3.5rem); line-height: 1.06;
  letter-spacing: -0.035em; margin: 0 0 18px; text-wrap: balance;
}
h2 { font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
h3 { font-weight: 600; letter-spacing: -0.015em; }
.standfirst { color: var(--muted); font-size: 1.18rem; line-height: 1.55; max-width: 34em; margin: 0; }
.fine { font-size: 0.86rem; color: var(--muted); }
.fine a { color: var(--text); text-underline-offset: 3px; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 21, 50, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo {
  font-family: var(--display); font-size: 1.32rem; font-weight: 700; letter-spacing: -0.04em;
  text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; flex: none;
}
.logo::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none; margin-right: 10px;
  background: radial-gradient(circle at 50% 50%, var(--brass-hi) 0 3px, transparent 3.5px),
              conic-gradient(from 210deg, transparent 0 25%, var(--brass) 25% 100%);
  -webkit-mask: radial-gradient(circle, #000 0 4px, transparent 4.5px 7.5px, #000 8px);
          mask: radial-gradient(circle, #000 0 4px, transparent 4.5px 7.5px, #000 8px);
}
.logo span { color: var(--brass); }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  display: block; padding: 7px 14px; border-radius: 999px;
  text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav ul a:hover { color: var(--text); background: rgba(143, 179, 232, 0.08); }
.nav ul a[aria-current="page"] { color: var(--text); background: rgba(143, 179, 232, 0.1); }
.nav-cta {
  font-size: 0.92rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  color: var(--bg); background: var(--brass); padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(233, 205, 142, 0.4) inset;
  transition: background 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { background: var(--brass-hi); box-shadow: 0 0 24px var(--brass-glow); }

.search-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; color: var(--muted); text-decoration: none;
  border: 1px solid var(--line-soft); transition: color 0.2s, border-color 0.2s;
}
.search-link:hover { color: var(--text); border-color: var(--line); }
.search-link svg { display: block; width: 18px; height: 18px; }

.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.95rem; font-weight: 500; color: var(--text);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary .bars { display: inline-block; width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.menu summary .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
.menu[open] summary { border-color: var(--brass); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 50; width: min(320px, calc(100vw - 32px));
  background: #111F47; border: 1px solid var(--line); border-radius: var(--r); padding: 10px;
  box-shadow: 0 24px 60px rgba(3, 8, 24, 0.6);
}
.nav .menu-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav .menu-panel ul a { display: block; padding: 12px 14px; border-radius: var(--r-sm); color: var(--text); font-size: 1rem; background: none; }
.nav .menu-panel ul a:hover, .nav .menu-panel ul a:focus-visible { background: var(--panel-2); }
.nav .menu-panel ul a[aria-current="page"] { color: var(--brass); }
.menu-panel .menu-cta {
  display: block; margin-top: 8px; padding: 13px 14px; border-radius: 999px; text-align: center; text-decoration: none;
  background: var(--brass); color: var(--bg); font-weight: 600;
}


/* Menu button: three lines that turn into a cross, and a panel that drops down */
.menu summary { display: inline-flex; white-space: nowrap; }
.menu summary::marker { content: ""; }
.menu summary .bars { transition: border-color 0.2s; }
.menu summary .bars::after { transition: transform 0.2s var(--ease); }
.menu[open] summary .bars { border-top-color: transparent; border-bottom-color: transparent; }
.menu[open] summary .bars::before, .menu[open] summary .bars::after {
  content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor;
}
.menu[open] summary .bars::before { transform: rotate(45deg); }
.menu[open] summary .bars::after { transform: rotate(-45deg); }
.menu-panel { transform-origin: top right; animation: drop 0.2s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
.nav-right { flex-wrap: nowrap; }

/* ---------- Buttons and forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border: 0; cursor: pointer; border-radius: 999px;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass));
  color: var(--bg); font: 600 1rem var(--sans); text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 30px -10px var(--brass-glow);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 14px 40px -8px rgba(212, 178, 110, 0.55); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-quiet {
  display: inline-flex; align-items: center; padding: 14px 22px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 500;
  border: 1px solid var(--line); transition: border-color 0.2s, background 0.2s;
}
.btn-quiet:hover { border-color: var(--sky); background: rgba(143, 179, 232, 0.06); }
.text-link { color: var(--brass); font-weight: 500; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--brass-hi); }

input[type=email], input[type=text], input[type=number], input[type=search], textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: rgba(10, 21, 50, 0.6); color: var(--text);
  font: 400 1rem var(--sans); transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 4px rgba(212, 178, 110, 0.15); }
input::placeholder, textarea::placeholder { color: #7683A3; }
label { display: block; font-size: 0.95rem; color: var(--muted); margin-bottom: 8px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.linklike:hover { color: var(--text); }

/* ---------- Surfaces ---------- */
.glass, .panel {
  background: linear-gradient(180deg, rgba(22, 41, 87, 0.75), rgba(17, 31, 71, 0.55));
  border: 1px solid var(--line-soft); border-radius: var(--r);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.panel { padding: 32px; margin: 40px 0; }
.panel h2 { margin: 0 0 6px; font-size: 1.45rem; }
.panel p { color: var(--muted); }
.inline-form { display: flex; gap: 10px; margin: 18px 0 12px; }
.inline-form input { flex: 1; min-width: 0; }

/* Blueprint grid used behind page headers and the hero */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 179, 232, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 179, 232, 0.07) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 90% at 70% 0%, #000 20%, transparent 75%);
}
.grid-bg::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 620px; height: 620px; right: -160px; top: -300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 178, 110, 0.16), transparent 65%);
}

/* ---------- Page header ---------- */
.page-head { position: relative; overflow: hidden; isolation: isolate; padding: 64px 0 44px; border-bottom: 1px solid var(--line-soft); }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 179, 232, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 179, 232, 0.07) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 120% at 85% 0%, #000 15%, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 120% at 85% 0%, #000 15%, transparent 70%);
}
.page-head::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 560px; height: 560px; right: -120px; top: -320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 178, 110, 0.14), transparent 65%);
}
.page-head .wrap { position: relative; }
.page-head .numeral {
  position: absolute; right: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-weight: 700; font-size: clamp(9rem, 18vw, 14rem); line-height: 1; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(212, 178, 110, 0.45);
  pointer-events: none; user-select: none;
}
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; font-size: 0.86rem; color: var(--muted); }
.meta > span {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line-soft); background: rgba(17, 31, 71, 0.5);
}
.meta a { color: var(--text); text-underline-offset: 3px; }
.page-head + .wrap, .page-head + div { position: relative; }

/* ---------- Article text ---------- */
.prose { padding-top: 56px; padding-bottom: 88px; }
.prose > * { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.75rem); line-height: 1.2; margin: 56px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; color: var(--text); margin: 28px 0 6px; }
.prose p, .prose li { color: var(--body); }
.prose ul { padding-left: 1.2em; }
.prose ul li::marker { color: var(--brass); }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--brass); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--brass-hi); }
.prose strong { color: var(--text); font-weight: 600; }
.prose .updated { font-size: 0.9rem; color: var(--muted); }

.in-short {
  position: relative; overflow: hidden; border-radius: var(--r); padding: 26px 28px 22px; margin: 0 0 44px;
  background: linear-gradient(135deg, rgba(212, 178, 110, 0.12), rgba(17, 31, 71, 0.6) 55%);
  border: 1px solid rgba(212, 178, 110, 0.3);
}
.prose .in-short h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0; color: var(--brass-hi); margin: 0 0 10px; }
.in-short ul { margin: 0; padding-left: 0; list-style: none; }
.prose .in-short li { position: relative; padding-left: 26px; color: var(--text); }
.in-short li::before {
  content: ""; position: absolute; left: 2px; top: 0.6em; width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--brass); box-shadow: 0 0 10px var(--brass-glow);
}
.in-short li:last-child { margin-bottom: 0; }
.sources { font-size: 0.95rem; }

/* ---------- Guide layout ---------- */
.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 72px; padding-top: 56px; padding-bottom: 32px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: 0.92rem; }
.toc h2 { font-family: var(--sans); font-size: 0.86rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin: 0 0 12px; }
.toc .toc-list { list-style: none; margin: 0 0 36px; padding: 0; border-left: 1px solid var(--line); }
.toc .toc-list li { margin: 0; }
.toc .toc-list a {
  display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent;
  text-decoration: none; color: var(--muted); line-height: 1.4; transition: color 0.2s, border-color 0.2s;
}
.toc .toc-list a:hover { color: var(--text); }
.toc .toc-list a.active { color: var(--text); border-left-color: var(--brass); }
.route-block { border-top: 1px solid var(--line-soft); padding-top: 22px; }
.toc .route-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.toc .route-mini li { position: relative; margin: 0; }
.toc .route-mini li + li::before {
  content: ""; position: absolute; left: 13px; top: -10px; height: 20px; width: 2px; background: var(--line);
}
.toc .route-mini li.done + li::before, .toc .route-mini li.done + li.now::before { background: var(--sky); }
.toc .route-mini a { display: flex; gap: 12px; align-items: center; padding: 8px 0; text-decoration: none; color: var(--muted); line-height: 1.3; }
.toc .route-mini a:hover { color: var(--text); }
.toc .route-mini b {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-family: var(--display); font-size: 0.82rem; font-weight: 600; color: var(--muted);
  border: 1.5px solid var(--line); background: var(--bg); position: relative; z-index: 1;
}
.toc .route-mini .done b { border-color: var(--sky); color: var(--sky); }
.toc .route-mini .now a { color: var(--text); font-weight: 500; }
.toc .route-mini .now b { border-color: var(--brass); color: var(--bg); background: var(--brass); box-shadow: 0 0 16px var(--brass-glow); }
.toc-details summary { list-style: none; cursor: default; }
.toc-details summary::-webkit-details-marker { display: none; }
.toc-details summary::marker { content: ""; }
.guide-layout .prose { padding: 0; }
.guide-layout .prose h2 { scroll-margin-top: 96px; }
.after-guide { padding-bottom: 96px; }
.after-guide > * { margin-left: calc(250px + 72px); max-width: var(--measure); }
.article .panel { max-width: var(--measure); }

/* Reading progress (guides) */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--sky), var(--brass-hi)); box-shadow: 0 0 12px var(--brass-glow); }

/* Next step */
.next-step {
  position: relative; display: block; text-decoration: none; margin: 16px 0 14px; overflow: hidden;
  border-radius: var(--r); padding: 26px 30px; border: 1px solid rgba(212, 178, 110, 0.45);
  background: linear-gradient(120deg, rgba(212, 178, 110, 0.14), rgba(17, 31, 71, 0.4) 60%);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.next-step:hover { border-color: var(--brass); box-shadow: 0 18px 50px -20px var(--brass-glow); }
.next-step .label { display: block; font-size: 0.88rem; color: var(--brass-hi); margin-bottom: 6px; font-weight: 500; }
.next-step strong { display: block; font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; font-size: 1.5rem; line-height: 1.25; margin-bottom: 6px; }
.next-step .desc { color: var(--muted); }
.prev { margin: 0 0 8px; font-size: 0.95rem; }
.prev a { color: var(--muted); text-underline-offset: 3px; }
.prev a:hover { color: var(--text); }

.related { margin-top: 52px; }
.related h2 { font-size: 1.35rem; margin: 0 0 14px; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.related a {
  display: block; padding: 18px 22px; border-radius: var(--r); text-decoration: none;
  border: 1px solid var(--line-soft); background: rgba(17, 31, 71, 0.45); transition: border-color 0.2s, background 0.2s;
}
.related a:hover { border-color: var(--line); background: rgba(22, 41, 87, 0.6); }
.related strong { display: block; font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
.related span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Visuals in guides ---------- */
.viz, .payslip {
  margin: 30px 0 34px; padding: 26px; border-radius: var(--r);
  background: linear-gradient(180deg, rgba(22, 41, 87, 0.7), rgba(17, 31, 71, 0.45));
  border: 1px solid var(--line-soft);
}
.viz-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 3px; }
.viz-bar span { display: block; border-radius: 999px; }
.viz-key { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.prose .viz-key li { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; margin: 0; color: var(--text); }
.viz-key i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.viz-key strong { font-family: var(--display); font-size: 1.1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.viz-total { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 500; color: var(--text) !important; }
.viz figcaption, .payslip figcaption { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }
.payslip table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.payslip caption { text-align: left; font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-bottom: 12px; color: var(--text); }
.payslip th, .payslip td { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; color: var(--text); }
.payslip td { text-align: right; font-variant-numeric: tabular-nums; }
.payslip th span { display: block; font-size: 0.82rem; color: var(--muted); }
.payslip .minus td { color: var(--body); }
.payslip .net th, .payslip .net td { border-bottom: 0; border-top: 2px solid var(--brass); font-weight: 600; font-size: 1.1rem; padding-top: 14px; color: var(--brass-hi); }

/* ---------- Hub, lists and cards ---------- */
.section { padding-top: 56px; padding-bottom: 96px; }
.hub-cta { color: var(--muted); margin: 0 0 48px; max-width: var(--measure); }
.hub-cta a { color: var(--brass); text-underline-offset: 3px; }
.step-group { position: relative; padding: 0 0 0 64px; margin-bottom: 56px; }
.step-group::before {
  content: ""; position: absolute; left: 19px; top: 44px; bottom: -56px; width: 2px;
  background: linear-gradient(180deg, var(--line), rgba(34, 55, 106, 0.2));
}
.step-group:last-of-type::before { display: none; }
.step-group h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin: 0; display: flex; align-items: center; min-height: 40px; }
.step-group h2 span {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-size: 1rem; font-weight: 600; color: var(--bg); background: var(--brass); box-shadow: 0 0 22px var(--brass-glow);
}
.step-group > p { color: var(--muted); margin: 0 0 16px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cards li { margin: 0; }
.card {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; height: 100%;
  border-radius: var(--r); padding: 24px 24px 20px;
  background: linear-gradient(180deg, rgba(22, 41, 87, 0.6), rgba(17, 31, 71, 0.35));
  border: 1px solid var(--line-soft); transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.card:hover { border-color: rgba(212, 178, 110, 0.55); transform: translateY(-2px); box-shadow: 0 20px 50px -28px var(--brass-glow); }
.card h3 { font-size: 1.2rem; line-height: 1.3; margin: 0; }
.card p { color: var(--muted); margin: 0; flex: 1; }
.card .tag { margin-top: 10px; }
.tag {
  display: inline-flex; align-self: flex-start; font-size: 0.8rem; color: var(--sky); white-space: nowrap;
  padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(143, 179, 232, 0.25);
}
.tag.ready { color: var(--brass-hi); border-color: rgba(212, 178, 110, 0.4); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.list li { margin: 0; }
.list a {
  display: grid; grid-template-columns: 1fr 2fr auto; gap: 32px; align-items: center; text-decoration: none;
  padding: 26px 28px; border-radius: var(--r); border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(22, 41, 87, 0.6), rgba(17, 31, 71, 0.35)); transition: border-color 0.25s;
}
.list a:hover { border-color: rgba(212, 178, 110, 0.55); }
.list h3 { font-size: 1.25rem; margin: 0; }
.list p { color: var(--muted); margin: 0; }
.form-narrow { max-width: 32em; margin-bottom: 20px; }

/* ---------- Glossary ---------- */
.glossary-index {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; padding: 0; list-style: none;
  position: sticky; top: 68px; z-index: 5; padding: 12px 0; background: rgba(10, 21, 50, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.prose .glossary-index { max-width: none; padding: 12px 0; margin-left: 0; }
.prose ul.cards, .prose ul.toc-list, .prose ul.route-mini, .prose ul.search-results { padding-left: 0; }
.glossary-index li { margin: 0; }
.glossary-index a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  text-decoration: none; color: var(--muted); font-family: var(--display); font-weight: 600; font-size: 0.92rem;
  border: 1px solid var(--line); transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.glossary-index a:hover { color: var(--bg); background: var(--brass); border-color: var(--brass); }
.terms { margin: 0; padding: 0; }
.prose .terms { max-width: 48rem; }
.terms > div { padding: 22px 0; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 150px; }
.terms > div:first-child { border-top: 1px solid var(--line-soft); }
.terms dt, .terms dd { margin: 0; padding: 0; text-indent: 0; }
.terms dt {
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.015em;
  color: var(--text); margin-bottom: 6px; scroll-margin-top: 150px;
}
.terms dd { color: var(--body); }
.terms dd a { color: var(--brass); font-size: 0.92rem; font-weight: 500; text-underline-offset: 3px; white-space: nowrap; }
.terms > div:target { background: linear-gradient(90deg, rgba(212, 178, 110, 0.1), transparent 70%); }

/* ---------- Search ---------- */
.search-box { display: flex; gap: 10px; max-width: var(--measure); margin-bottom: 32px; }
.search-box input { flex: 1; min-width: 0; font-size: 1.1rem; padding: 16px 20px; border-radius: 999px; }
.search-results { list-style: none; margin: 0; padding: 0; max-width: var(--measure); display: grid; gap: 10px; }
.search-results li { margin: 0; }
.search-results a {
  display: block; padding: 18px 22px; text-decoration: none; border-radius: var(--r);
  border: 1px solid var(--line-soft); background: rgba(17, 31, 71, 0.45); transition: border-color 0.2s;
}
.search-results a:hover { border-color: rgba(212, 178, 110, 0.55); }
.search-results strong { display: block; font-family: var(--display); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
.search-results span { color: var(--muted); }
.search-status { color: var(--muted); }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 340px 1fr; gap: 48px; padding-top: 56px; padding-bottom: 40px; align-items: start; }
.fields { display: grid; gap: 20px; padding: 28px; border-radius: var(--r); border: 1px solid var(--line-soft); background: rgba(17, 31, 71, 0.5); }
.field-row { position: relative; }
.field-row label { margin-bottom: 8px; }
.field-row .unit { position: absolute; left: 16px; bottom: 1px; height: calc(1.65rem + 28px); display: flex; align-items: center; color: var(--muted); pointer-events: none; }
.field-row input { line-height: 1.65; }
.field-row .unit.after { left: auto; right: 16px; }
.field-row input.has-before { padding-left: 32px; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.result { padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line-soft); background: rgba(17, 31, 71, 0.5); }
.result.main { border-color: rgba(212, 178, 110, 0.5); background: linear-gradient(135deg, rgba(212, 178, 110, 0.14), rgba(17, 31, 71, 0.5) 60%); }
.result strong { display: block; font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.result.main strong { color: var(--brass-hi); }
.result span { color: var(--muted); font-size: 0.9rem; }
.chart { padding: 20px 20px 16px; border-radius: var(--r); border: 1px solid var(--line-soft); background: rgba(10, 21, 50, 0.5); }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--muted); font: 12px var(--sans); }
.legend { display: flex; gap: 24px; font-size: 0.9rem; color: var(--muted); margin-top: 12px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 3px; vertical-align: middle; margin-right: 8px; }
.fee-note { color: var(--muted); margin: 20px 0 0; }
.fee-note strong { color: var(--text); font-weight: 600; }

/* ---------- Starting-point check ---------- */
.start { padding-top: 48px; padding-bottom: 96px; max-width: calc(42rem + 48px); margin-left: 0; }
@media (min-width: 1208px) { .start { margin-left: calc((100% - var(--wrap)) / 2); } }
.check { display: grid; gap: 14px; }
.question { border: 1px solid var(--line-soft); border-radius: var(--r); padding: 22px 24px 24px; margin: 0; background: rgba(17, 31, 71, 0.45); }
.question legend { float: left; width: 100%; padding: 0; margin: 0 0 14px; font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; font-size: 1.12rem; line-height: 1.4; display: flex; gap: 14px; align-items: baseline; }
.question legend span {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: 0.82rem; color: var(--brass); border: 1.5px solid rgba(212, 178, 110, 0.6); transform: translateY(-2px);
}
.choices { clear: both; display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 8px; margin: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px;
  color: var(--text); font-size: 0.95rem; transition: border-color 0.2s, background 0.2s;
}
.choice:hover { border-color: var(--sky); }
.choice:has(input:checked) { border-color: var(--brass); background: rgba(212, 178, 110, 0.12); }
.choice:has(input:focus-visible) { outline: 2px solid var(--brass-hi); outline-offset: 2px; }
.choice input { accent-color: var(--brass); margin: 0; }
.check .btn { justify-self: start; margin-top: 10px; }
.result-card {
  margin-top: 32px; border-radius: var(--r); padding: 30px; border: 1px solid rgba(212, 178, 110, 0.5);
  background: linear-gradient(135deg, rgba(212, 178, 110, 0.16), rgba(17, 31, 71, 0.6) 60%);
  animation: rise 0.5s var(--ease);
}
.result-card:focus { outline: none; }
.result-card .label { color: var(--brass-hi); font-size: 0.9rem; margin: 0 0 4px; }
.result-card h2 { font-size: 1.8rem; margin: 0 0 8px; }
.result-card p { color: var(--body); }
.result-card .btn { margin: 8px 0 16px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line-soft); background: var(--bg-2); padding: 64px 0 72px; color: var(--muted); font-size: 0.92rem; }
.foot { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot-brand { font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; font-size: 1.35rem; color: var(--text); margin: 0 0 14px; }
.foot-brand span { color: var(--brass); }
.disclaimer { max-width: 40em; }
.disclaimer strong { color: var(--text); font-weight: 600; }
.disclaimer a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cookie banner ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 560px; margin-left: auto;
  background: rgba(17, 31, 71, 0.97); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px;
  box-shadow: 0 24px 60px rgba(3, 8, 24, 0.6); color: var(--text); font-size: 0.95rem;
}
.consent p { margin: 0 0 14px; color: var(--body); }
.consent a { color: var(--brass); }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent button {
  flex: 1 1 140px; padding: 12px 16px; border-radius: 999px; font: 600 0.95rem var(--sans); cursor: pointer;
  border: 1px solid var(--brass); background: transparent; color: var(--text);
}
.consent button.accept { background: var(--brass); color: var(--bg); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .guide-layout { grid-template-columns: 1fr; gap: 0; padding-top: 32px; }
  .toc { position: static; border: 1px solid var(--line-soft); border-radius: var(--r); padding: 16px 20px; margin-bottom: 36px; background: rgba(17, 31, 71, 0.45); }
  .toc .toc-list { margin-bottom: 0; }
  .toc .route-block { display: none; }
  .toc-details summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
  .toc-details summary::after { content: "Show"; font-size: 0.86rem; color: var(--brass); }
  .toc-details[open] summary::after { content: "Hide"; }
  .toc-details summary h2 { margin: 0; }
  .toc-details[open] .toc-list { margin-top: 12px; }
  .after-guide > * { margin-left: 0; }
  .cards { grid-template-columns: 1fr; }
  .page-head .numeral { display: none; }
  .calc { grid-template-columns: 1fr; gap: 28px; }
}
@media (min-width: 961px) { .toc-details summary { pointer-events: none; } }
@media (max-width: 860px) {
  .nav-right > ul, .nav-right > .nav-cta { display: none !important; }
  .menu { display: block; }
  .nav-right { gap: 8px; }
  .foot { grid-template-columns: 1fr; gap: 36px; }
  .list a { grid-template-columns: 1fr; gap: 6px; }
  .inline-form { flex-direction: column; }
  .results { grid-template-columns: 1fr; gap: 10px; }
  .page-head { padding: 44px 0 32px; }
  .next-step strong { font-size: 1.3rem; }
  .step-group { padding-left: 54px; }
  .panel { padding: 24px; }
}
@media (max-width: 520px) {
  .search-box { flex-direction: column; }
  .search-box .btn { width: 100%; }
  .foot ul { grid-template-columns: 1fr; }
  .glossary-index a { width: 34px; height: 34px; font-size: 0.86rem; }
}
@media (max-width: 420px) { .hide-xs { display: none; } }

/* Belt and braces: never show browser list numbers in the sidebar lists */
.toc .toc-list, .toc .toc-list li, .route-mini, .route-mini li { list-style: none; }
.toc .toc-list li::marker, .route-mini li::marker { content: ""; }
