/*
Theme Name: First Real Salary
Theme URI: https://firstrealsalary.com
Author: First Real Salary
Description: Fast, AdSense-ready editorial theme for the First Real Salary personal finance publication. Includes article layout with disclaimer, table of contents, in-content ad slots, related guides, financial calculators and a settings page for Google AdSense.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: first-real-salary
*/
/* Layout: editorial finance publication. Header + nav, main column (~68ch) with a sticky sidebar on desktop, single column on phones.
   Signature: typographic "figure covers" (each guide fronted by its key number) and a 2026 key-figures strip. */
:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --ink: #15211d;
  --muted: #56645f;
  --line: #d9e1dd;
  --pine: #1d5a48;
  --pine-soft: #e3efe9;
  --brass: #9a6514;
  --brass-soft: #f6ead3;
  --ad-bg: #eef1f0;
  --ad-line: #b9c4bf;
  --shadow: 0 1px 2px rgba(21, 33, 29, .06), 0 8px 24px rgba(21, 33, 29, .06);
  --font-display: Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --measure: 68ch;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1613; --surface: #16201c; --ink: #e5ece9; --muted: #9fb0a9; --line: #2a3833;
    --pine: #6cc4a5; --pine-soft: #1c3029; --brass: #e2b25e; --brass-soft: #2e2617;
    --ad-bg: #1a2420; --ad-line: #3c4b45; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1613; --surface: #16201c; --ink: #e5ece9; --muted: #9fb0a9; --line: #2a3833;
  --pine: #6cc4a5; --pine-soft: #1c3029; --brass: #e2b25e; --brass-soft: #2e2617;
  --ad-bg: #1a2420; --ad-line: #3c4b45; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
a:has(> .cover), a .cover, .post-row a { text-decoration: none; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--pine); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 3px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.brand-name span { color: var(--pine); }
.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav li { position: relative; }
.nav a, .nav button.navlink { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600; border-radius: 6px; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav a:hover, .nav button.navlink:hover, .nav a[aria-current="page"] { background: var(--pine-soft); color: var(--pine); }
.nav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; list-style: none; margin: 0; }
.nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }
.nav .sub a { font-weight: 500; }
.header-tools { display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
@media (max-width: 920px) {
  .menu-btn { display: inline-grid; }
  .nav { position: fixed; inset: 64px 0 0 0; background: var(--surface); padding: 12px 20px 40px; overflow-y: auto; display: none; margin: 0; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav .sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .nav a, .nav button.navlink { font-size: 1.05rem; }
  .header-row { gap: 10px; }
  .header-tools { margin-left: auto; }
}

/* ---------- Figures strip ---------- */
.figures { background: var(--ink); color: var(--bg); font-family: var(--font-mono); font-size: .78rem; }
.figures .wrap { display: flex; gap: 22px; align-items: center; overflow-x: auto; padding-block: 8px; white-space: nowrap; scrollbar-width: none; }
.figures .wrap::-webkit-scrollbar { display: none; }
.figures b { color: var(--brass); font-weight: 600; }
.figures .tag { text-transform: uppercase; letter-spacing: .08em; opacity: .75; }

/* ---------- Page grid ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-block: 36px 64px; }
.layout.full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
main { min-width: 0; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 600; margin: 8px 0 14px; }
.prose h2 { font-size: 1.7rem; font-weight: 600; margin: 2.2em 0 .5em; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin: 1.6em 0 .4em; scroll-margin-top: 90px; }
.prose { max-width: var(--measure); }
.prose p, .prose li { font-size: 1.04rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose strong { font-weight: 650; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--brass); color: var(--muted); }
.eyebrow { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.chip { display: inline-block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pine); background: var(--pine-soft); padding: 4px 9px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.muted { color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-width: 100%; }
.prose .table-wrap { max-width: none; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; line-height: 1.45; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td { font-variant-numeric: tabular-nums; }
td strong { color: var(--ink); }

/* ---------- Figure covers ---------- */
.cover { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--pine-soft); color: var(--pine); display: flex; align-items: flex-end; padding: 22px 24px; isolation: isolate; }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: repeating-linear-gradient(to bottom, transparent 0 27px, color-mix(in srgb, var(--pine) 14%, transparent) 27px 28px); }
.cover::after { content: ""; position: absolute; top: 0; bottom: 0; left: 56px; width: 1px; background: color-mix(in srgb, var(--brass) 55%, transparent); z-index: -1; }
.cover .fig { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: .95; letter-spacing: -.03em; color: var(--ink); }
.cover .cap { position: absolute; top: 18px; right: 22px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pine); font-weight: 600; }
.cover.t-brass { background: var(--brass-soft); }
.cover.t-brass .cap { color: var(--brass); }
.cover.small { aspect-ratio: 4 / 3; padding: 14px 16px; }
.cover.small .fig { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.cover.small::after { left: 34px; }
.cover.small .cap { top: 10px; right: 12px; font-size: .62rem; }

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; padding-block: 8px 34px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin-top: 6px; }
.hero p.lede { font-size: 1.12rem; color: var(--muted); max-width: 46ch; margin: 0 0 22px; }
.hero .cover { box-shadow: var(--shadow); text-decoration: none; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 8px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--pine); color: var(--surface); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 18px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.55rem; margin: 0; }
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 40px; list-style: none; padding: 0; }
@media (max-width: 760px) { .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .paths { grid-template-columns: 1fr; } }
.paths a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); height: 100%; }
.paths a:hover { border-color: var(--pine); }
.paths .step { font-family: var(--font-mono); font-size: .7rem; color: var(--brass); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.paths .t { font-weight: 700; line-height: 1.3; }

.post-list { display: grid; gap: 0; }
.post-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; padding-block: 22px; border-top: 1px solid var(--line); }
.post-row:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 560px) { .post-row { grid-template-columns: 1fr; gap: 12px; } }
.post-row h3 { font-size: 1.32rem; margin: 6px 0 6px; }
.post-row h3 a { color: var(--ink); text-decoration: none; }
.post-row h3 a:hover { color: var(--pine); }
.post-row .ex { margin: 0 0 8px; color: var(--muted); font-size: .97rem; }
.verify { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.verify .ok { color: var(--pine); font-weight: 600; }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 44px 0 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }
.trust h3 { font-family: var(--font-body); font-size: .98rem; margin: 0 0 4px; font-weight: 700; }
.trust p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- Article ---------- */
.crumbs { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.byline { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; color: var(--muted); margin-bottom: 22px; align-items: center; }
.byline strong { color: var(--ink); font-weight: 600; }
.verified { display: inline-flex; gap: 6px; align-items: center; color: var(--pine); font-weight: 600; }
.verified svg { width: 15px; height: 15px; }
.art-disclaimer { margin: 22px 0; padding: 14px 18px; background: var(--brass-soft); border-radius: var(--radius); font-size: .9rem; line-height: 1.55; max-width: var(--measure); }
.art-disclaimer strong { color: var(--brass); }
.toc { margin: 22px 0 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-width: var(--measure); }
.toc summary { cursor: pointer; padding: 12px 16px; font-weight: 700; font-size: .95rem; list-style: none; display: flex; justify-content: space-between; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-family: var(--font-mono); color: var(--pine); }
.toc[open] summary::after { content: "–"; }
.toc ol { margin: 0; padding: 0 18px 14px 36px; font-size: .94rem; }
.toc li { margin: 4px 0; }
.author-box { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; margin: 44px 0 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-width: var(--measure); }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--pine); color: var(--surface); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.author-box h3 { margin: 0 0 2px; font-family: var(--font-body); font-size: 1rem; }
.author-box p { margin: 6px 0 0; font-size: .93rem; color: var(--muted); }
.sources { margin: 28px 0 0; max-width: var(--measure); font-size: .9rem; }
.sources h2 { font-size: 1.15rem !important; margin: 0 0 6px !important; font-family: var(--font-body) !important; }
.sources ul { padding-left: 1.2em; margin: 0; color: var(--muted); }
.related { margin-top: 48px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }
.related-grid a { text-decoration: none; color: var(--ink); display: grid; gap: 10px; }
.related-grid h3 { font-size: 1.08rem; margin: 0; }
.related-grid a:hover h3 { color: var(--pine); }
.next-step { background: var(--pine-soft); border-radius: var(--radius); padding: 16px 18px; max-width: var(--measure); }
.next-step p { margin: 0; }

/* ---------- Ads (reserved slots) ---------- */
.ad { margin: 30px 0; min-height: 280px; display: grid; place-items: center; background: var(--ad-bg); border: 1px dashed var(--ad-line); border-radius: 6px; position: relative; color: var(--muted); max-width: var(--measure); }
.ad::before { content: "Advertisement"; position: absolute; top: -20px; left: 0; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ad span { font-family: var(--font-mono); font-size: .74rem; text-align: center; padding: 0 12px; }
.ad.side { min-height: 600px; max-width: 300px; margin: 28px 0 0; }
.ad.multiplex { min-height: 320px; }
.ad.anchor { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; min-height: 0; height: calc(60px + env(safe-area-inset-bottom, 0px)); max-width: none; border-radius: 0; border-width: 1px 0 0; z-index: 15; padding-bottom: env(safe-area-inset-bottom, 0px); }
.ad.anchor::before { top: 4px; left: 10px; }
html.ads-off .ad { display: none; }
@media (min-width: 921px) { .ad.anchor { display: none; } }
@media (max-width: 920px) { body.has-anchor { padding-bottom: 62px; } }
.ad-toggle { position: fixed; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: flex; gap: 8px; align-items: center; background: var(--ink); color: var(--bg); border: 0; border-radius: 999px; padding: 8px 14px 8px 10px; font: 600 .78rem var(--font-body); cursor: pointer; box-shadow: var(--shadow); }
.ad-toggle .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brass); }
html.ads-off .ad-toggle .dot { background: var(--muted); }
@media (min-width: 921px) { .ad-toggle { bottom: 18px; } }

/* ---------- Sidebar ---------- */
.sidebar { min-width: 0; }
.sidebar .sticky { position: sticky; top: 90px; }
.widget { margin-bottom: 28px; }
.widget h2 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { border-top: 1px solid var(--line); }
.widget li:first-child { border-top: 0; }
.widget li a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; color: var(--ink); text-decoration: none; font-size: .94rem; line-height: 1.35; }
.widget li a:hover { color: var(--pine); }
.widget .count { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.about-w { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: .93rem; }
.about-w p { margin: 0 0 10px; }
.key-figs { display: grid; gap: 0; font-size: .9rem; }
.key-figs div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.key-figs div:first-child { border-top: 0; }
.key-figs b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--pine); }
.search-box { display: flex; gap: 6px; }
.search-box input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: .95rem; }

/* ---------- Search overlay ---------- */
.search-ov { position: fixed; inset: 0; z-index: 40; background: color-mix(in srgb, var(--ink) 45%, transparent); display: grid; align-items: start; justify-items: center; padding: 80px 16px 16px; }
.search-panel { width: min(640px, 100%); background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 14px; }
.search-panel input { width: 100%; padding: 14px 14px; font: inherit; font-size: 1.05rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.search-list { list-style: none; margin: 10px 0 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.search-list a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.search-list a:hover, .search-list a:focus { background: var(--pine-soft); }
.search-list small { display: block; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 44px 28px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h2 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--pine); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cookie consent ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 45; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 18px; font-size: .92rem; }
.consent h2 { font-family: var(--font-body); font-size: 1.02rem; margin: 0 0 6px; }
.consent p { margin: 0 0 12px; color: var(--muted); }
.consent .btn { padding: 10px 14px; font-size: .9rem; }
.consent .opts { display: grid; gap: 10px; margin: 0 0 14px; }
.consent label { display: flex; gap: 10px; align-items: flex-start; }
.consent label span { display: grid; }
.consent label small { color: var(--muted); }
.consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--pine); }

/* ---------- Tools ---------- */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0 0 34px; }
.calc h2 { margin: 0 0 4px; font-size: 1.5rem; }
.calc > p { margin: 0 0 18px; color: var(--muted); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 26px; }
@media (max-width: 720px) { .calc-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 4px; margin-bottom: 12px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--bg); color: var(--ink); font-variant-numeric: tabular-nums; width: 100%; }
.result-big { font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: 10px; margin-top: 14px; }
.bar { display: grid; gap: 4px; font-size: .9rem; }
.bar .track { height: 12px; background: var(--bg); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.bar .fill { height: 100%; background: var(--pine); }
.bar.b2 .fill { background: var(--brass); }
.bar.b3 .fill { background: color-mix(in srgb, var(--pine) 45%, var(--brass)); }
.bar .row { display: flex; justify-content: space-between; gap: 8px; font-variant-numeric: tabular-nums; }
.debt-table input { width: 100%; min-width: 70px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); font: inherit; font-size: .9rem; }
.debt-table td, .debt-table th { padding: 8px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.compare > div { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.compare .lbl { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.compare .v { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.note { font-size: .82rem; color: var(--muted); margin-top: 12px; }
canvas.growth { width: 100%; height: 220px; display: block; margin-top: 12px; }
.form-msg { margin-top: 12px; padding: 12px 14px; border-radius: 8px; background: var(--pine-soft); font-size: .92rem; }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-row code { font-family: var(--font-mono); background: var(--surface); border: 1px solid var(--line); padding: 6px 10px; border-radius: 6px; user-select: all; }
.paths.topics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1180px) { .paths.topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .paths.topics { grid-template-columns: 1fr; } }
.read-also { margin: 30px 0; padding: 14px 18px; border-left: 3px solid var(--pine); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; display: grid; gap: 4px; max-width: var(--measure); }
.read-also a { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; text-decoration: none; line-height: 1.3; }
.read-also a:hover { text-decoration: underline; }
.up-next { display: grid; gap: 6px; margin: 40px 0 0; padding: 20px 22px; border: 1px solid var(--pine); border-radius: var(--radius); background: var(--pine-soft); text-decoration: none; color: var(--ink); max-width: var(--measure); }
.up-next .un-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; line-height: 1.2; }
.up-next .un-cta { color: var(--pine); font-weight: 700; font-size: .95rem; }
.up-next:hover .un-title { color: var(--pine); }

/* ---------- WordPress additions ---------- */
.ad.live { border: 0; background: transparent; display: block; min-height: 280px; }
.ad.live.side { min-height: 600px; }
.ad.live.multiplex { min-height: 320px; }
.ad.live ins { display: block; width: 100%; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.pagination .page-numbers { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); background: var(--surface); }
.pagination .current { background: var(--pine); color: var(--surface); border-color: var(--pine); }
.header-search { display: none; padding-block: 10px; border-top: 1px solid var(--line); background: var(--surface); }
.header-search.open { display: block; }
.header-search form { display: flex; gap: 8px; max-width: 640px; }
.header-search input[type="search"] { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; }
.wp-block-image img, .prose img { border-radius: var(--radius); }
.prose figure { margin: 1.4em 0; }
.prose .wp-block-table, .prose figure.wp-block-table { overflow-x: auto; }
.prose table:not(.table-wrap table) { border: 1px solid var(--line); }
.comments-area { max-width: var(--measure); margin-top: 44px; }
.comments-area textarea, .comments-area input[type="text"], .comments-area input[type="email"], .comments-area input[type="url"] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { border-top: 1px solid var(--line); padding: 14px 0; }
.alignleft { float: left; margin: 0 1em 1em 0; } .alignright { float: right; margin: 0 0 1em 1em; } .aligncenter { display: block; margin: 0 auto; }
