/* SK Finvestment — styles
   Palette: navy / cobalt with coral. Type: Sora (headings) + DM Sans (text). */

:root {
  --navy: #0f1f4d;
  --navy-2: #172b66;
  --navy-3: #22397f;
  --blue: #2457e6;
  --blue-deep: #1b44c0;
  --blue-soft: #e8eefc;
  --coral: #ff6b5e;
  --coral-deep: #c73d31;
  --coral-soft: #ffe9e6;
  --bg: #f4f6fb;
  --white: #ffffff;
  --text: #17223f;
  --muted: #5a6682;
  --line: #dde3f0;
  --line-soft: #ebeff7;
  --good: #11805a;
  --bad: #c73d31;

  --head: "Sora", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --read: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.22; margin: 0 0 .6em; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--coral); color: var(--navy); padding: .6rem 1rem; z-index: 999; font-weight: 700; }
.skip:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(255,255,255,.08); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--white); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--head); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; display: block; }
.brand-name b { font-weight: 400; color: #a9bbef; }
.brand-tag { display: block; font-size: .7rem; color: #9aabd8; margin-top: 3px; }
.main-nav ul { list-style: none; display: flex; gap: .1rem; margin: 0; padding: 0; align-items: center; }
.main-nav a { display: block; padding: .55rem .8rem; font-size: .92rem; font-weight: 500; color: #cdd7f4; text-decoration: none; border-radius: 8px; }
.main-nav a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.main-nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -3px 0 var(--coral); border-radius: 0; }
.main-nav li.cta a { background: var(--coral); color: var(--navy); font-weight: 700; margin-left: .6rem; padding: .55rem 1.1rem; border-radius: 999px; box-shadow: none; }
.main-nav li.cta a:hover { background: #ff8479; }
.nav-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--white); position: relative; margin: 0 auto; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after { position: absolute; top: 6px; left: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; font-family: var(--body); }
.btn-coral { background: var(--coral); color: var(--navy); }
.btn-coral:hover { background: #ff8479; color: var(--navy); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-deep); color: var(--white); }
.btn-line { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-line:hover { background: var(--white); color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Dotted-grid hero ---------- */
.grid-bg {
  background-color: var(--navy);
  background-image: radial-gradient(rgba(255,255,255,.11) 1.2px, transparent 1.4px);
  background-size: 28px 28px;
  color: #d5def7;
  position: relative;
}
.hero { padding: 4.5rem 0 5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 4.6vw, 3.55rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: .5em; }
.hero p.lead { font-size: 1.15rem; color: #d5def7; max-width: 33em; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.7rem; }
.hero-note { margin-top: 1.6rem; font-size: .88rem; color: #a9bbef; }
.hero-note a { color: var(--white); }

.widget { background: var(--white); color: var(--text); border-radius: 18px; padding: 1.5rem 1.5rem 1.3rem; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.widget h2 { font-size: 1.15rem; margin: 0 0 .15rem; }
.widget .sub { font-size: .85rem; color: var(--muted); margin-bottom: 1.1rem; }
.field { margin-bottom: 1rem; }
.field-top { display: flex; justify-content: space-between; align-items: center; gap: .8rem; font-size: .88rem; margin-bottom: .3rem; }
.field-top label { font-weight: 600; color: var(--navy); }
.field-top output { font-weight: 700; font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; background: var(--line); border-radius: 3px; outline-offset: 6px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--blue); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--blue); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--blue); cursor: pointer; }
.runway-out { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; background: var(--blue-soft); border-radius: 12px; padding: .9rem 1.1rem; margin: 1rem 0 .8rem; }
.runway-out .big { font-family: var(--head); font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.runway-out .note { font-size: .86rem; color: var(--navy-3); text-align: right; max-width: 12em; }
.runway-out.warn { background: var(--coral-soft); }
.runway-out.warn .big { color: var(--coral-deep); }
.widget-chart svg { width: 100%; height: auto; }
.widget-foot { font-size: .76rem; color: var(--muted); margin: .7rem 0 0; }

/* ---------- Sections ---------- */
.section { padding: 4.2rem 0; }
.section-tight { padding: 2.8rem 0; }
.section-white { background: var(--white); }
.section-blue { background: var(--blue-soft); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0; font-size: clamp(1.55rem, 2.6vw, 2.05rem); position: relative; padding-bottom: .55rem; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 4px; border-radius: 2px; background: var(--coral); }
.section-head a { font-weight: 700; font-size: .92rem; white-space: nowrap; }
.section-intro { max-width: 40em; font-size: 1.06rem; color: #2e3b5e; margin-bottom: 2rem; }

/* ---------- Thumbs / tones ---------- */
.thumb { position: relative; overflow: hidden; display: block; background: var(--blue-soft); color: var(--navy); }
.thumb svg { position: absolute; width: 46%; height: auto; right: 8%; bottom: 10%; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.t-fund  { background: #e0e9ff; color: #1a3fa8; }
.t-cash  { background: #daf2ee; color: #0b6a5b; }
.t-gst   { background: #ebe4fb; color: #4b2fa0; }
.t-tax   { background: #fde4e0; color: #a42b22; }
.t-acct  { background: #fdefd2; color: #86560a; }
.t-start { background: #f7e1f1; color: #88286d; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: .12rem .65rem; border-radius: 999px; margin-right: .5rem; }
.meta { font-size: .84rem; color: var(--muted); }
.meta b { color: var(--text); font-weight: 700; }

/* ---------- Hub tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem 1.4rem 1.4rem; text-decoration: none; color: inherit; display: flex; flex-direction: column; border-top: 5px solid var(--blue); }
.tile.c2 { border-top-color: var(--coral); }
.tile.c3 { border-top-color: #7a56d8; }
.tile.c4 { border-top-color: #12a58a; }
.tile .ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem; }
.tile .ico svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-size: 1.15rem; margin-bottom: .35em; }
.tile p { font-size: .94rem; color: #3a4768; flex: 1; }
.tile span.go { font-weight: 700; font-size: .9rem; color: var(--blue-deep); }
.tile:hover { border-color: var(--navy-3); }
.tile:hover h3 { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }

/* ---------- Article cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.card { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; }
.card .thumb { aspect-ratio: 16 / 8; }
.card .body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.12rem; margin: .55rem 0 .4em; }
.card:hover h3 { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
.card p { font-size: .92rem; color: #3a4768; margin-bottom: .8rem; flex: 1; }
.cards.lead-first > li:first-child { grid-column: span 2; }
.cards.lead-first > li:first-child .card { flex-direction: row; }
.cards.lead-first > li:first-child .thumb { aspect-ratio: auto; flex: 0 0 42%; min-height: 240px; }
.cards.lead-first > li:first-child .thumb svg { width: 40%; }
.cards.lead-first > li:first-child h3 { font-size: 1.5rem; }
.cards.lead-first > li:first-child p { font-size: 1rem; }

/* ---------- Tool tiles ---------- */
.toolgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tool { display: flex; align-items: center; gap: .9rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; text-decoration: none; color: inherit; }
.tool .ti { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-deep); display: grid; place-items: center; }
.tool .ti svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool strong { display: block; font-family: var(--head); font-size: .95rem; color: var(--navy); line-height: 1.25; }
.tool span { font-size: .82rem; color: var(--muted); line-height: 1.3; display: block; margin-top: 2px; }
.tool:hover { border-color: var(--blue); }

/* ---------- Calendar snippets ---------- */
.dates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.datebox { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.3rem; }
.datebox h3 { font-size: 1rem; margin-bottom: .8rem; color: var(--muted); font-family: var(--body); font-weight: 700; letter-spacing: 0; }
.drow { display: flex; gap: .9rem; align-items: center; padding: .5rem 0; border-top: 1px solid var(--line-soft); font-size: .92rem; line-height: 1.35; }
.drow:first-of-type { border-top: 0; }
.dbadge { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: var(--white); font-family: var(--head); font-weight: 700; display: grid; place-items: center; font-size: 1.1rem; }
.dbadge small { display: block; font-size: .58rem; font-weight: 500; opacity: .8; margin-top: -4px; text-align: center; }
.dbadge.c { background: var(--coral); color: var(--navy); }

/* ---------- Principles ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.points { list-style: none; margin: 0; padding: 0; }
.points li { padding: 1.1rem 0 1.1rem 3.2rem; position: relative; border-top: 1px solid var(--line); }
.points li:first-child { border-top: 0; padding-top: 0; }
.points li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--blue); }
.points li:first-child::before { top: .15rem; }
.points li::after { content: ""; position: absolute; left: .62rem; top: 1.62rem; width: .8rem; height: .4rem; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg); }
.points li:first-child::after { top: .52rem; }
.points strong { display: block; font-family: var(--head); color: var(--navy); font-size: 1.05rem; }
.points span { color: #3a4768; font-size: .95rem; }
.srcs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.srcs span { background: var(--white); border: 1px solid var(--line); color: var(--navy); font-weight: 700; font-size: .84rem; padding: .25rem .8rem; border-radius: 999px; }

/* ---------- Newsletter band ---------- */
.band { background: var(--blue); color: #e4ebff; padding: 3.4rem 0; }
.band-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.band h2 { color: var(--white); font-size: 1.9rem; margin-bottom: .3em; }
.band p { margin: 0; }
.subscribe { display: flex; gap: .6rem; flex-wrap: wrap; }
.subscribe input[type=email] { flex: 1 1 220px; padding: .85rem 1.2rem; border-radius: 999px; border: 2px solid transparent; background: var(--white); color: var(--text); }
.form-msg { font-size: .9rem; margin-top: .7rem; min-height: 1.3em; color: #fff; font-weight: 500; }

/* ---------- Page heads ---------- */
.page-head { padding: 3.2rem 0 3rem; }
.page-head h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: .35em; }
.page-head p.lead { font-size: 1.12rem; max-width: 38em; color: #d5def7; margin: 0; }
.crumbs { font-size: .84rem; margin-bottom: 1.2rem; color: #a9bbef; }
.crumbs a { color: #a9bbef; }
.crumbs a:hover { color: var(--white); }
.crumbs span[aria-hidden] { margin: 0 .45rem; }

/* ---------- Blog index ---------- */
.toolbar { display: flex; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .38rem 1rem; font-size: .9rem; font-weight: 500; color: var(--text); text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--navy); }
button.chip[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.search { flex: 0 1 300px; }
.search input { width: 100%; padding: .65rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.search input:focus { border-color: var(--blue); }
.empty { padding: 2rem 0; color: var(--muted); display: none; }

/* ---------- Article ---------- */
.article-head { padding: 2.8rem 0 3rem; }
.article-head h1 { color: var(--white); font-size: clamp(1.9rem, 3.8vw, 2.7rem); font-weight: 800; letter-spacing: -0.025em; max-width: 20em; margin-bottom: .45em; }
.article-head .deck { font-size: 1.2rem; line-height: 1.5; color: #d5def7; max-width: 36em; margin-bottom: 1.3rem; }
.byline { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .88rem; color: #a9bbef; }
.byline b { color: var(--white); font-weight: 700; }
.article-head .tag { background: var(--white); }

.art-layout { display: grid; grid-template-columns: 230px minmax(0, var(--read)); gap: 3.5rem; justify-content: center; align-items: start; }
.rail { position: sticky; top: 92px; font-size: .9rem; }
.rail h2 { font-family: var(--body); font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin: 0 0 .7rem; }
.rail ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.rail li a { display: block; padding: .38rem 0 .38rem .9rem; margin-left: -2px; border-left: 2px solid transparent; color: #3a4768; text-decoration: none; line-height: 1.35; }
.rail li a:hover { color: var(--navy); }
.rail li a.on { border-left-color: var(--coral); color: var(--navy); font-weight: 700; }
.rail .rail-box { margin-top: 1.6rem; padding: 1rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.rail .rail-box p { font-size: .86rem; margin-bottom: .7rem; color: #3a4768; }
.rail .rail-box .btn { display: block; text-align: center; padding: .6rem 1rem; font-size: .88rem; }

.inshort { background: var(--white); border: 2px solid var(--navy); border-radius: 16px; padding: 1.2rem 1.4rem; margin-bottom: 2.2rem; }
.inshort h2 { font-size: 1rem; margin-bottom: .5rem; }
.inshort ul { margin: 0; padding-left: 1.1rem; }
.inshort li { margin-bottom: .35rem; }

.prose { font-size: 1.08rem; line-height: 1.78; color: #1b2748; }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 .6em; scroll-margin-top: 92px; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 .4em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--navy); }
.prose .data-table { font-size: .93rem; margin: 1.6rem 0 2rem; }
.data-table th, .data-table td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--navy); color: var(--white); font-size: .85rem; font-weight: 700; border-bottom: 0; }
.data-table thead th:first-child { border-top-left-radius: 10px; }
.data-table thead th:last-child { border-top-right-radius: 10px; }
.data-table tbody tr:nth-child(even) { background: #f7f9fe; }
.data-table td.n, .data-table th.n { text-align: right; font-variant-numeric: tabular-nums; }
.data-table caption { caption-side: bottom; text-align: left; font-size: .82rem; color: var(--muted); padding-top: .6rem; }
.callout { background: var(--blue-soft); border-left: 5px solid var(--blue); padding: 1.1rem 1.3rem; margin: 1.8rem 0; border-radius: 0 12px 12px 0; font-size: 1rem; line-height: 1.6; }
.callout b { display: block; font-family: var(--head); color: var(--navy); margin-bottom: .2rem; }
.callout p:last-child { margin-bottom: 0; }
.worked { background: var(--white); border: 2px dashed var(--navy-3); padding: 1.1rem 1.3rem; margin: 1.8rem 0; border-radius: 14px; font-size: .98rem; line-height: 1.6; }
.worked b.h { display: block; font-family: var(--head); color: var(--navy); margin-bottom: .35rem; }
.worked p:last-child { margin-bottom: 0; }
.warnbox { background: var(--coral-soft); border-left: 5px solid var(--coral); padding: 1.1rem 1.3rem; border-radius: 0 12px 12px 0; }
.warnbox b { font-family: var(--head); color: var(--navy); }
.endnote { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2.5rem; }
.related { margin-top: 4rem; }

/* ---------- Hubs / text ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.4rem 3.4rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; width: 2.3rem; height: 2.3rem; border-radius: 12px; background: var(--navy); color: var(--white); font-family: var(--head); font-weight: 700; display: grid; place-items: center; }
.steps strong { display: block; font-family: var(--head); font-size: 1.05rem; color: var(--navy); }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.rules li { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; }
.rules strong { display: block; font-family: var(--head); color: var(--navy); font-size: 1.02rem; }
.rules span { color: #3a4768; font-size: .94rem; }
.tablebox { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.tablebox .data-table thead th:first-child { border-top-left-radius: 0; }
.tablebox .data-table thead th:last-child { border-top-right-radius: 0; }
.fine { font-size: .85rem; color: var(--muted); margin-top: .8rem; }
.text-page { max-width: 780px; }
.text-page h2 { font-size: 1.5rem; margin-top: 2em; }
.text-page h3 { font-size: 1.15rem; margin-top: 1.5em; }

/* ---------- Calculators ---------- */
.calc-tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .6rem; margin-bottom: 1.4rem; scrollbar-width: thin; }
.calc-tabs button { flex: none; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--text); }
.calc-tabs button:hover { border-color: var(--navy); }
.calc-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.calc-panel { display: none; }
.calc-panel.on { display: block; }
.calc-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.6rem; }
.calc-inputs { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1.7rem; }
.calc-inputs h2 { font-size: 1.4rem; }
.calc-inputs .field { margin-bottom: 1.25rem; }
.num-in { width: 10em; padding: .38rem .7rem; border: 1px solid var(--line); border-radius: 8px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; background: var(--bg); }
.num-in:focus { border-color: var(--blue); background: var(--white); }
select.num-in { text-align: left; width: auto; }
.calc-out { background: var(--navy); color: #d5def7; border-radius: 18px; padding: 1.7rem; align-self: start; position: sticky; top: 92px; }
.calc-out .headline { font-size: .86rem; color: #a9bbef; }
.calc-out .figure { font-family: var(--head); font-size: 2.5rem; font-weight: 800; color: var(--white); line-height: 1.15; font-variant-numeric: tabular-nums; margin-bottom: .2rem; }
.calc-out .verdict { display: inline-block; background: rgba(255,255,255,.12); color: var(--white); border-radius: 999px; padding: .2rem .8rem; font-size: .84rem; font-weight: 700; margin-top: .3rem; }
.calc-out dl { margin: 1.2rem 0 0; }
.calc-out dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid rgba(255,255,255,.14); font-size: .95rem; }
.calc-out dt { color: #a9bbef; }
.calc-out dd { margin: 0; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; text-align: right; }
.calc-note { font-size: .8rem; color: #a9bbef; margin: 1rem 0 0; }
.calc-note a { color: var(--white); }
.calc-chart svg { width: 100%; height: auto; margin-top: 1rem; }

/* ---------- Calendar page ---------- */
.cal-group { margin-bottom: 2.6rem; }
.cal-group h2 { font-size: 1.4rem; }
.cal-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cal-item { display: flex; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.cal-item .dbadge { width: 58px; height: 58px; font-size: 1.15rem; }
.cal-item strong { font-family: var(--head); color: var(--navy); display: block; font-size: 1rem; line-height: 1.3; }
.cal-item span { font-size: .9rem; color: #3a4768; }

/* ---------- Checklists ---------- */
.check-block { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem 1.6rem; margin-bottom: 1.5rem; }
.check-block h2 { font-size: 1.3rem; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.check-block h2 small { font-family: var(--body); font-size: .85rem; color: var(--muted); font-weight: 600; }
.check-block ul { list-style: none; padding: 0; margin: 0; }
.check-block li { border-top: 1px solid var(--line-soft); }
.check-block label { display: flex; gap: .8rem; padding: .7rem 0; cursor: pointer; align-items: flex-start; }
.check-block input[type=checkbox] { flex: none; width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--blue); }
.check-block input:checked + span { color: var(--muted); text-decoration: line-through; }

/* ---------- Glossary ---------- */
.az { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 2rem; }
.az a { min-width: 2.2rem; text-align: center; padding: .28rem .55rem; border: 1px solid var(--line); background: var(--white); border-radius: 8px; text-decoration: none; font-weight: 700; font-size: .9rem; }
.az a:hover { border-color: var(--navy); }
.gloss h2 { font-size: 1.8rem; margin: 2.2rem 0 .6rem; scroll-margin-top: 92px; }
.gloss dl { margin: 0; }
.gloss dt { font-family: var(--head); font-weight: 700; font-size: 1.05rem; color: var(--navy); margin-top: 1.1rem; }
.gloss dd { margin: .15rem 0 0; max-width: 46em; color: #2a3658; }

/* ---------- Contact / FAQ ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
.form-box { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .3rem; color: var(--navy); }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: .72rem .95rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { background: var(--white); border-color: var(--blue); }
.form-row textarea { min-height: 150px; resize: vertical; }
.form-box .form-msg { color: var(--good); }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: .8rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); font-family: var(--head); font-size: 1rem; }
.faq details[open] summary { margin-bottom: .6rem; }
.faq details p { margin: 0; color: #3a4768; }

/* ---------- Footer ---------- */
.site-footer { background: #0a1536; color: #aab9e3; padding: 3.5rem 0 1.6rem; font-size: .93rem; border-top: 4px solid var(--coral); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.4rem; }
.site-footer .brand { margin-bottom: 1rem; }
.site-footer h4 { font-family: var(--body); color: var(--white); font-size: .95rem; margin-bottom: .8em; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #aab9e3; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-about { max-width: 24em; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.6rem; padding-top: 1.3rem; font-size: .8rem; color: #8e9fcf; }
.disclaimer p { max-width: 72em; }
.legal-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: #8e9fcf; margin-top: 1rem; }
.legal-row a { margin-left: 1rem; }

.nf { padding: 5rem 0; }
.nf .big { font-family: var(--head); font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; color: var(--coral); line-height: 1; margin-bottom: .1em; }
.nf h1 { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tiles, .toolgrid, .dates { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .art-layout { grid-template-columns: minmax(0, var(--read)); }
  .rail { position: static; }
  .rail ol { display: none; }
  .rail .rail-box { display: none; }
  .rail h2 { display: none; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.12); padding: .6rem 1.5rem 1.2rem; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--coral); background: rgba(255,255,255,.07); }
  .main-nav li.cta a { margin: .5rem 0 0; text-align: center; }
  .site-header .wrap { position: relative; }
}
@media (max-width: 980px) {
  .hero-grid, .split, .band-grid, .two-col, .contact-grid, .calc-grid { grid-template-columns: 1fr; }
  .calc-out { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards.lead-first > li:first-child { grid-column: span 2; }
}
@media (max-width: 680px) {
  .hero { padding: 2.8rem 0 3.2rem; }
  .tiles, .toolgrid, .dates, .cards, .cal-list { grid-template-columns: 1fr; }
  .cards.lead-first > li:first-child { grid-column: auto; }
  .cards.lead-first > li:first-child .card { flex-direction: column; }
  .cards.lead-first > li:first-child .thumb { aspect-ratio: 16 / 8; min-height: 0; flex: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .calc-inputs, .calc-out { padding: 1.2rem; }
  .calc-out .figure { font-size: 2rem; }
  .prose .data-table { display: block; overflow-x: auto; }
  .runway-out { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .runway-out .note { text-align: left; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header, .rail, .band, .site-footer, .related, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .grid-bg { background: #fff; color: #000; }
  .article-head h1, .page-head h1 { color: #000; }
  .art-layout { display: block; }
}
