/*
 * Static pages in the Harbour design: /news-and-insights/, each article, and
 * (with calculators.css or cashflow.css on top) /calculators/*.
 *
 * Loaded after the site's built stylesheet, which supplies the nav, closing
 * call band and footer (pw-*), .btn, .pw-kicker / .eyebrow, .lede, .display-*
 * and the :root tokens (--bg, --fg, --ac …). Tailwind utility classes are not
 * available here. The --b-* names below are this file's own aliases; each
 * carries a hex fallback so the page still reads if the site CSS fails to load.
 *
 * Animations only start hidden under html.js (set by an inline script), so the
 * page reads fine without JavaScript, and all motion is switched off for
 * prefers-reduced-motion.
 */

:root {
  --b-bg: var(--bg, #F7F9FB);
  --b-sunk: var(--tint, #E6EEF7);
  --b-surface: var(--cd, #fff);
  --b-surface-2: #F1F5FA;
  --b-fg-1: var(--fg, #0D1220);
  --b-fg-2: #2E3748;
  --b-fg-3: var(--mu, #515B6E);
  --b-border: var(--ln, #DCE3EC);
  --b-border-strong: #C6D4E6;
  --b-brand: var(--ac, #1E4FD6);
  --b-brand-soft: #C9D8F8;
  --b-brand-tint: rgba(30, 79, 214, .07);
  --b-accent: var(--wm-ink, #6E5730);
  --b-accent-soft: var(--wm2, #D9B77A);
  --b-accent-tint: var(--wm-tint, rgba(184, 150, 92, .14));
  --b-sage-300: #4E79E6;
  --b-sage-200: #9DB7F2;
  --b-brass-400: #B8965C;
  --b-serif: var(--fh, "Schibsted Grotesk", system-ui, sans-serif);
  --b-sans: var(--fb, "Schibsted Grotesk", system-ui, sans-serif);
  --b-inverse: var(--foot, #0D1220);
  --b-on-dark: #fff;
  --b-on-dark-2: #A6B0C4;
  --b-ease: cubic-bezier(.2, .7, .2, 1);
  --b-radius: var(--r, 22px);
  --b-radius-sm: var(--rb, 12px);
  --b-shadow: none; /* Harbour cards are flat: a hairline border, no drop shadow */
  --b-shadow-hover: 0 2px 4px rgba(13, 18, 32, .05), 0 18px 40px -18px rgba(13, 18, 32, .28);
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

.blog-body {
  margin: 0;
  background: var(--b-bg);
  color: var(--b-fg-1);
  font-family: var(--b-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.blog-wrap { width: min(var(--w, 1240px), 100% - 40px); margin-inline: auto; }
.blog-narrow { width: min(800px, 100% - 40px); margin-inline: auto; }

.icon { flex: none; display: block; }

/* Controls that only work with JavaScript stay out of the way without it */
html:not(.js) [data-js-only] { display: none !important; }

/* Reading progress */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--b-brand); transform: scaleX(0); transform-origin: left; }

/* Shared bits */
.art { display: block; width: 100%; height: auto; }

.byline { display: flex; align-items: center; gap: 12px; }
.avatar {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--b-brand); color: #fff; font-size: .85rem; font-weight: 700;
}
.avatar-lg { width: 60px; height: 60px; font-size: 1.15rem; }
.byline-text { display: flex; flex-direction: column; font-size: .92rem; line-height: 1.35; color: var(--b-fg-3); }
.byline-text strong { color: var(--b-fg-1); font-weight: 700; }

.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-head h2, .gridhead h2 { margin: 0; font-family: var(--b-serif); font-weight: 700; letter-spacing: -.045em; text-wrap: balance; }
.sec-head h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.05; }
.sec-head .pw-kicker { margin-bottom: 16px; }

/* ── Index ─────────────────────────────────────────────────────────── */

/* hero: headline left, search and what-this-is right, topics underneath */
.ihero { padding: clamp(40px, 5vw, 72px) 0 0; }
.ihero .pw-kicker { margin-bottom: 24px; }
.ihero h1 { margin: 0; max-width: 14ch; font-family: var(--b-serif); font-size: clamp(2.6rem, 5.8vw, 5rem); font-weight: 800; line-height: .96; letter-spacing: -.055em; text-wrap: balance; }
.irow { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.ihero .lede { font-size: 1.08rem; max-width: 40ch; }
.search { position: relative; display: block; margin-top: 22px; }
.search input { width: 100%; height: 56px; padding: 0 18px 0 50px; border: 1px solid var(--b-border); border-radius: var(--b-radius-sm); background: var(--b-surface); font: inherit; font-size: 1rem; color: var(--b-fg-1); }
.search input::placeholder { color: #6B7588; }
.search input:focus-visible { outline: 0; border-color: var(--b-brand); box-shadow: 0 0 0 3px rgba(30, 79, 214, .16); }
.search .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--b-fg-3); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(32px, 4vw, 52px); padding-top: 22px; border-top: 1px solid var(--b-border); }
.topics button { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--b-border); background: var(--b-surface); color: var(--b-fg-1); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.topics button small { font-weight: 500; font-size: .8rem; color: var(--b-fg-3); }
.topics button:hover { border-color: var(--b-brand); }
.topics button[aria-pressed="true"] { background: var(--b-fg-1); border-color: var(--b-fg-1); color: #fff; }
.topics button[aria-pressed="true"] small { color: #A6B0C4; }

/* featured: the latest article, photo left, figure pill as on the home page's deal cards */
.feat { display: grid; grid-template-columns: 1.1fr .9fr; margin-top: 36px; background: var(--b-surface); border: 1px solid var(--b-border); border-radius: var(--b-radius); overflow: hidden; color: inherit; text-decoration: none; }
.feat[hidden] { display: none; }
.feat .ph { position: relative; min-height: 400px; background: var(--b-border); overflow: hidden; }
.feat .ph img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .6s ease; }
.feat:hover .ph img { transform: scale(1.03); }
.feat .ph span { position: absolute; left: 16px; top: 16px; background: var(--b-surface); font-size: .82rem; font-weight: 600; padding: 7px 13px; border-radius: 999px; }
.feat .bd { padding: clamp(26px, 3.6vw, 48px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.feat h2 { margin: 0; font-family: var(--b-serif); font-size: clamp(1.7rem, 2.9vw, 2.5rem); font-weight: 700; line-height: 1.06; letter-spacing: -.045em; text-wrap: balance; }
.feat p { margin: 0; color: var(--b-fg-3); }
.eq { display: inline-flex; align-items: baseline; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--b-accent-tint); color: var(--b-accent); font-size: .88rem; font-weight: 600; }
.eq b { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.by { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; font-size: .92rem; width: 100%; }
.by i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--b-brand); color: #fff; font-style: normal; font-weight: 700; font-size: .85rem; flex: none; }
.by b { display: block; line-height: 1.2; }
.by small { color: var(--b-fg-3); font-size: .84rem; }
.by .go { margin-left: auto; font-weight: 700; color: var(--b-brand); }

/* the grid: each card leads with the one figure worth remembering from the article */
.gridhead { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: clamp(48px, 6vw, 76px) 0 24px; }
.gridhead h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; }
.gridhead output { color: var(--b-fg-3); font-size: .92rem; font-weight: 600; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.posts > li[hidden] { display: none; }
/* Article card: landscape image on top, white body below with meta, title, description and a brass "Read article" link. */
.pc { height: 100%; display: flex; flex-direction: column; overflow: hidden; background: var(--b-surface); border: 1px solid var(--b-border); border-radius: var(--b-radius-sm); color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .25s var(--b-ease), transform .25s var(--b-ease); }
.pc:hover { border-color: var(--b-border-strong, var(--b-border)); box-shadow: var(--b-shadow-hover); transform: translateY(-4px); }
.pc:focus-visible { outline: 3px solid var(--b-brand); outline-offset: 3px; }
.pc .ph { aspect-ratio: 8 / 5; overflow: hidden; background: var(--b-sunk); flex: none; }
.pc .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--b-ease); }
.pc:hover .ph img { transform: scale(1.04); }
.pc .fig { padding: 22px 24px 20px; display: flex; flex-direction: column; justify-content: flex-end; }
.pc .fig b { font-size: clamp(2.4rem, 3.6vw, 3.2rem); font-weight: 800; letter-spacing: -.06em; line-height: .92; color: var(--b-brand); }
.pc .fig span { font-size: .86rem; color: #465168; margin-top: 8px; max-width: 30ch; }
.pc .fig-art { display: grid; place-items: center; }
.pc .bd { padding: 30px 32px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pc .mt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; margin: 0; font-size: .92rem; color: var(--b-fg-3); }
.pc .mt > * + *::before { content: "·"; margin: 0 10px; }
.pc .tg { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--b-accent); }
.pc h3 { margin: 0; font-size: 1.42rem; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.pc .ds { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--b-fg-3); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pc .go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--b-accent); }
.pc .go svg { transition: transform .2s var(--b-ease); }
.pc:hover .go svg { transform: translateX(3px); }
.none { margin: 0; padding: 48px 24px; text-align: center; border: 1px dashed var(--b-border-strong); border-radius: var(--b-radius); color: var(--b-fg-3); }
.none[hidden] { display: none; }
.none button { background: none; border: 0; padding: 0; color: var(--b-brand); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }

/* dates: the one dark band on the page. A dated line, with today placed on it. */
.dates { background: var(--b-inverse); color: #fff; padding: clamp(64px, 8vw, 104px) 0; margin-top: clamp(64px, 8vw, 104px); }
.dates .pw-kicker { color: #C9D3E6; }
.dates .pw-kicker::before { background: var(--on-photo, #B9CCFF); }
.dates .sec-head { margin-bottom: 64px; }
.dates h2 { max-width: 16ch; }
.dates :focus-visible { outline-color: #fff; }
.count { margin: 0; text-align: right; }
.count[hidden] { display: none; }
.count b { display: block; font-size: clamp(3rem, 6vw, 4.8rem); font-weight: 800; letter-spacing: -.06em; line-height: .9; color: var(--b-accent-soft); }
.count span { font-size: .92rem; color: var(--b-on-dark-2); }
.tl { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); /* --n: how many key dates survived (build-blog.mjs) */ list-style: none; margin: 0; padding: 0; border-top: 2px solid rgba(255, 255, 255, .16); }
.tl li { position: relative; padding: 30px 28px 0 0; }
.tl li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 4px; background: #5B6B8C; }
.tl li.next::before { background: var(--b-accent-soft); box-shadow: 0 0 0 6px rgba(217, 183, 122, .2); }
.tl li.next::after { content: "Today"; position: absolute; top: -33px; left: -96px; font-size: .78rem; font-weight: 700; color: var(--b-accent-soft); border-right: 2px solid var(--b-accent-soft); padding-right: 8px; line-height: 1.6; }
.tl li.next:first-child::after { left: 0; top: -44px; border-right: 0; padding: 0; }
.tl time { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.tl small { display: block; font-size: .84rem; color: var(--b-on-dark-2); margin-top: 2px; min-height: 1.4em; }
.tl h3 { margin: 16px 0 0; font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.tl p { color: var(--b-on-dark-2); font-size: .94rem; margin: 6px 0 0; }
.tl a { display: inline-block; margin-top: 14px; font-size: .92rem; font-weight: 700; color: #fff; text-decoration: none; border-bottom: 2px solid var(--b-brand); padding-bottom: 2px; }
.tl a:hover { border-color: var(--b-accent-soft); }

/* tools: send readers from the reading to the working */
.tools-band { padding: clamp(64px, 8vw, 112px) 0; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin-top: 8px; }
.tools a { display: block; border-top: 1px solid var(--b-border); padding: 26px 0 8px; color: inherit; text-decoration: none; }
.tools a h3 { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.3; transition: color .18s; }
.tools a p { color: var(--b-fg-3); margin: 6px 0 0; font-size: .96rem; }
.tools a span { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--b-brand); }
.tools a:hover h3 { color: var(--b-brand); }

@media (max-width: 1000px) {
  .irow { grid-template-columns: 1fr; align-items: start; }
  .feat { grid-template-columns: 1fr; }
  .feat .ph { min-height: 260px; }
  .posts { grid-template-columns: 1fr 1fr; }
  .tl { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid rgba(255, 255, 255, .16); }
  .tl li { padding: 0 0 38px 30px; }
  .tl li:last-child { padding-bottom: 0; }
  .tl li::before { top: 6px; left: -8px; }
  .tl li.next::after, .tl li.next:first-child::after { position: static; display: inline-block; border: 0; padding: 0; margin-bottom: 4px; }
  .dates .sec-head { margin-bottom: 44px; }
  .count { text-align: left; }
  .tools { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .blog-body { font-size: 16px; }
  .posts { grid-template-columns: 1fr; }
  .pc .bd { padding: 24px 22px; }
  .pc h3 { font-size: 1.28rem; }
  .topics { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
  .topics::-webkit-scrollbar { display: none; }
  .topics button { flex: none; }
  .by .go { display: none; }
}

/* ── Post ──────────────────────────────────────────────────────────── */
.post-head { padding: clamp(32px, 4vw, 56px) 0 8px; }
.back { display: inline-block; font-size: .92rem; font-weight: 600; color: var(--b-fg-3); text-decoration: none; margin-bottom: 22px; }
.back:hover { color: var(--b-brand); }
.post-head h1 { margin: 0 0 20px; font-family: var(--b-serif); font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; text-wrap: balance; }
.post-head .lede { margin: 0 0 26px; }
.post-cover { max-width: 1120px; margin: 36px auto 0; padding: 0 20px; }
.post-cover .art { border-radius: var(--b-radius); border: 1px solid var(--b-border); }

.post-layout { max-width: 1120px; margin: 0 auto; padding: 32px 20px 0; }
.post-main { max-width: 760px; margin: 0 auto; min-width: 0; }

/* Table of contents */
.toc { max-width: 760px; margin: 0 auto 8px; }
.toc-box { border: 1px solid var(--b-border); border-radius: var(--b-radius-sm); background: var(--b-surface); }
.toc-box summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none;
  padding: 14px 18px; font-size: .9rem; font-weight: 700; color: var(--b-fg-1);
}
.toc-box summary::-webkit-details-marker { display: none; }
.toc-box ol { list-style: none; margin: 0; padding: 0 10px 12px; counter-reset: toc; }
.toc-box li { counter-increment: toc; }
.toc-box a {
  display: flex; gap: 10px; padding: 7px 8px; border-radius: 6px; font-size: .9rem; line-height: 1.4;
  color: var(--b-fg-3); text-decoration: none; transition: background .15s, color .15s;
}
.toc-box a::before { content: counter(toc, decimal-leading-zero); font-variant-numeric: tabular-nums; font-size: .75rem; font-weight: 600; color: var(--b-fg-3); padding-top: 2px; }
.toc-box a:hover { color: var(--b-fg-1); }
.toc-box a.active { color: var(--b-fg-1); font-weight: 700; }
.toc-box a.active::before { color: var(--b-brand); }

@media (min-width: 1080px) {
  .post-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 64px; justify-content: center; padding-top: 48px; }
  .post-main { margin: 0; }
  .toc { margin: 0; }
  .toc-box { position: sticky; top: 104px; border: 0; background: transparent; }
  .toc-box summary { padding: 0 8px 12px; cursor: default; pointer-events: none; }
  .toc-box summary .icon { display: none; }
  .toc-box ol { padding: 0; border-left: 1px solid var(--b-border); }
  .toc-box a { border-radius: 0; margin-left: -1px; border-left: 2px solid transparent; padding-left: 12px; }
  .toc-box a.active { border-left-color: var(--b-brand); }
}

/* Prose */
.prose { padding: 8px 0 24px; font-size: 1.06rem; line-height: 1.7; color: var(--b-fg-2); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; text-wrap: pretty; }
.prose p + p { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--b-serif); font-weight: 700; color: var(--b-fg-1);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.1; letter-spacing: -.04em;
  margin: 2.2em 0 .6em; text-wrap: balance;
  padding-top: 1em; border-top: 1px solid var(--b-border);
}
.prose > h2:first-child { margin-top: .4em; }
.prose h3 { font-weight: 700; color: var(--b-fg-1); font-size: 1.25rem; line-height: 1.25; letter-spacing: -.02em; margin: 1.8em 0 .4em; }
.prose strong { color: var(--b-fg-1); font-weight: 700; }
.prose a:not(.btn), .faq-a a {
  color: var(--b-fg-1); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--b-brand);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
  transition: color .16s;
}
.prose a:not(.btn):hover, .faq-a a:hover { color: var(--b-brand); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: .45em 0; padding-left: .2em; }
.prose li::marker { color: var(--b-brand); font-weight: 700; }
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--b-accent-soft);
  font-size: 1.3rem; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; color: var(--b-fg-1);
}
.prose blockquote p { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--b-border); margin: 2.4em 0; }

/* Tables scroll inside their own box on phones instead of widening the page */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.6em 0; border: 1px solid var(--b-border); border-radius: var(--b-radius-sm); background: var(--b-surface); }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--b-border); vertical-align: top; }
.prose th { font-size: .84rem; color: var(--b-fg-1); font-weight: 700; background: var(--b-sunk); }
.prose tr:last-child td { border-bottom: 0; }

/* ── Rich blocks ───────────────────────────────────────────────────── */

/* Callouts */
.callout {
  display: flex; gap: 14px; margin: 1.8em 0; padding: 20px 22px; border-radius: var(--b-radius-sm);
  border: 1px solid var(--b-border); background: var(--b-surface); font-size: 1rem; line-height: 1.6;
}
.callout-icon { width: 40px; height: 40px; border-radius: var(--rs, 10px); display: grid; place-items: center; flex: none; }
.callout-title { margin: 2px 0 4px !important; font-size: .92rem; font-weight: 700; }
.callout-body { min-width: 0; }
.callout-body > * + * { margin-top: .6em; }
.callout-body p { margin: 0; }
.callout-body ul { margin: .4em 0 0; }
.callout-key { background: var(--b-sunk); border-color: var(--b-border-strong); }
.callout-key .callout-icon { background: var(--b-brand); color: #fff; }
.callout-key .callout-title { color: var(--b-brand); }
.callout-warn { background: var(--b-accent-tint); border-color: rgba(184, 150, 92, .4); }
.callout-warn .callout-icon { background: var(--b-accent-soft); color: var(--b-fg-1); }
.callout-warn .callout-title { color: var(--b-accent); }
.callout-view { background: var(--b-inverse); border-color: var(--b-inverse); color: #C9D3E6; }
.callout-view .callout-icon { background: rgba(217, 183, 122, .16); color: var(--b-accent-soft); }
.callout-view .callout-title { color: var(--b-accent-soft); }
.callout-view strong { color: #fff; }
.prose .callout-view a:not(.btn) { color: #fff; text-decoration-color: var(--b-accent-soft); }
.prose .callout-view a:not(.btn):hover { color: var(--b-accent-soft); }
.callout-tip .callout-icon { background: var(--b-sunk); color: var(--b-brand); }
.callout-tip .callout-title { color: var(--b-fg-1); }

/* Stats */
.stats { display: grid; gap: 12px; margin: 1.8em 0; grid-template-columns: 1fr; }
@media (min-width: 560px) { .stats-2, .stats-4 { grid-template-columns: repeat(2, 1fr); } .stats-3 { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: 20px 20px 18px; border-radius: 14px; background: var(--b-sunk); }
.stat-value { margin: 0 !important; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); font-weight: 800; line-height: .95; color: var(--b-brand); letter-spacing: -.06em; }
.stat-label { margin: 10px 0 0 !important; font-size: .92rem; line-height: 1.4; color: var(--b-fg-1); font-weight: 600; }
.stat-note { margin: 6px 0 0 !important; font-size: .84rem; line-height: 1.45; color: #465168; }

/* Timeline */
.prose .timeline, .timeline { list-style: none; margin: 1.8em 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 10px; bottom: 10px; width: 2px; background: var(--b-border-strong); border-radius: 2px; }
.timeline .tl-item { position: relative; padding: 0 0 22px 46px; margin: 0; }
.timeline .tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: var(--rt, 8px); display: grid; place-items: center; background: var(--b-fg-1); color: #fff; box-shadow: 0 0 0 4px var(--b-bg); }
.tl-is-next .tl-dot { background: var(--b-accent-soft); color: var(--b-fg-1); }
.tl-is-now .tl-dot { background: var(--b-brand); color: #fff; }
.tl-date { margin: 2px 0 2px !important; font-size: .86rem; font-weight: 700; color: var(--b-accent); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tl-now, .tl-next { font-size: .72rem; padding: 2px 9px; border-radius: 999px; }
.tl-now { background: var(--b-brand); color: #fff; }
.tl-next { background: var(--b-accent-soft); color: var(--b-fg-1); }
.tl-title { margin: 0 !important; font-size: 1.12rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--b-fg-1); }
.tl-text { margin: 4px 0 0 !important; font-size: .94rem; line-height: 1.55; color: var(--b-fg-3); }

/* Bar charts */
.chart { margin: 1.9em 0; padding: 24px 22px 20px; border-radius: var(--b-radius); background: var(--b-surface); border: 1px solid var(--b-border); }
.chart-title { font-size: 1.15rem; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; color: var(--b-fg-1); margin: 0 0 14px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: -4px 0 16px; font-size: .84rem; color: var(--b-fg-3); }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.bars { display: flex; flex-direction: column; gap: 16px; }
.bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 7px; font-size: .92rem; line-height: 1.35; }
.bar-label { color: var(--b-fg-2); }
.bar-value { font-weight: 700; color: var(--b-fg-1); white-space: nowrap; }
.bar-track { height: 30px; border-radius: 8px; background: var(--b-sunk); overflow: hidden; }
.bar-fill { display: flex; height: 100%; transform-origin: left; }
.bar-seg { height: 100%; display: flex; align-items: center; min-width: 0; overflow: hidden; }
.bar-seg + .bar-seg { box-shadow: inset 2px 0 0 var(--b-surface); }
.bar-in { padding: 0 10px; font-size: .78rem; font-weight: 600; white-space: nowrap; color: inherit; }
.bar-note { margin: 6px 0 0 !important; font-size: .84rem; color: var(--b-fg-3); line-height: 1.45; }
.chart-caption { margin: 16px 0 0 !important; padding-top: 12px; border-top: 1px solid var(--b-border); font-size: .84rem; line-height: 1.5; color: var(--b-fg-3); }
.tone-brand { background: var(--b-brand); color: #fff; }
.tone-accent { background: var(--b-brass-400); color: var(--b-fg-1); }
.tone-soft { background: var(--b-accent-soft); color: var(--b-fg-1); }
.tone-sage { background: var(--b-sage-300); color: #fff; }
.tone-muted { background: var(--b-sage-200); color: var(--b-fg-1); }
.tone-ink { background: var(--b-fg-1); color: #fff; }

/* Cards */
.cards { display: grid; gap: 12px; margin: 1.8em 0; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cards-2 { grid-template-columns: repeat(2, 1fr); } .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 20px; border-radius: 16px; background: var(--b-surface); border: 1px solid var(--b-border); position: relative; }
.card-icon { width: 40px; height: 40px; border-radius: var(--rs, 10px); display: grid; place-items: center; background: var(--b-sunk); color: var(--b-brand); margin-bottom: 14px; }
.card-badge { position: absolute; top: 18px; right: 18px; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--b-sunk); color: var(--b-fg-3); }
.card-title { margin: 0 !important; font-weight: 700; color: var(--b-fg-1); font-size: 1rem; line-height: 1.35; }
.card-text { margin: 6px 0 0 !important; font-size: .92rem; line-height: 1.55; color: var(--b-fg-3); }
.tone-card-yes .card-badge { background: var(--b-brand); color: #fff; }
.tone-card-yes .card-icon { background: var(--b-brand); color: #fff; }
.tone-card-no .card-badge { background: var(--b-accent-soft); color: var(--b-fg-1); }
.tone-card-no .card-icon { background: var(--b-accent-tint); color: var(--b-accent); }
.tone-card-part .card-badge { background: var(--b-brand-soft); color: #173FAE; }
.tone-card-dark { background: var(--b-inverse); border-color: var(--b-inverse); }
.tone-card-dark .card-title { color: #fff; }
.tone-card-dark .card-text { color: var(--b-on-dark-2); }
.tone-card-dark .card-icon { background: rgba(217, 183, 122, .16); color: var(--b-accent-soft); }

/* Illustrated figures */
.art-figure { margin: 2em 0; }
.art-figure .art { border-radius: var(--b-radius); border: 1px solid var(--b-border); }
.art-figure figcaption { margin-top: 10px; font-size: .86rem; line-height: 1.5; color: var(--b-fg-3); text-align: center; }

/* Mid-article CTA: the one blue block in an article */
.inline-cta {
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start; margin: 2.2em 0; padding: 24px 26px;
  border-radius: var(--b-radius); background: var(--b-brand); color: #fff;
}
.inline-cta p { margin: 0 !important; }
.inline-cta-title { font-size: 1.3rem; font-weight: 700; letter-spacing: -.03em; color: #fff; line-height: 1.2; }
.inline-cta-text { font-size: .94rem; color: #DCE5FB; line-height: 1.5; margin-top: 6px !important; }
.inline-cta .btn, .prose .inline-cta a.btn { flex: none; background: #fff; color: var(--b-fg-1); text-decoration: none; }
.inline-cta .btn:hover { filter: none; background: var(--b-sunk); }
.inline-cta :focus-visible { outline-color: #fff; }
@media (min-width: 640px) { .inline-cta { flex-direction: row; align-items: center; justify-content: space-between; } }

/* FAQs: ruled list, plus sign turns to a cross when open */
.faqs { margin: 56px 0 0; }
.faqs > h2 { font-family: var(--b-serif); font-weight: 700; color: var(--b-fg-1); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.1; letter-spacing: -.04em; margin: 0 0 20px; }
.faq { border-top: 1px solid var(--b-border); }
.faq:last-of-type { border-bottom: 1px solid var(--b-border); }
.faq summary {
  display: flex; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none;
  padding: 20px 0; font-weight: 700; font-size: 1.05rem; line-height: 1.4; color: var(--b-fg-1);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--b-brand); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq-icon { display: none; }
.faq-a { padding: 0 40px 22px 0; font-size: 1rem; line-height: 1.65; color: var(--b-fg-3); }
.faq-a p { margin: 0; }
.faq-a p + p { margin-top: .8em; }

/* Author */
.author-box { display: flex; gap: 18px; align-items: flex-start; margin: 56px 0 0; padding: 24px; border-radius: var(--b-radius); background: var(--b-surface); border: 1px solid var(--b-border); }
.author-box p { margin: 0; }
.author-name { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; color: var(--b-fg-1); }
.author-role { font-size: .86rem; color: var(--b-accent); font-weight: 600; margin-top: 2px !important; }
.author-bio { font-size: .96rem; line-height: 1.6; color: var(--b-fg-3); margin-top: 8px !important; }

.post-sources { margin: 40px 0 0; padding: 24px 0 0; border-top: 1px solid var(--b-border); }
.post-sources h2 { font-size: .95rem; font-weight: 700; color: var(--b-fg-1); margin: 0 0 12px; font-family: var(--b-sans); }
.post-sources ol { margin: 0; padding-left: 1.4em; list-style: decimal; font-size: .88rem; line-height: 1.55; color: var(--b-fg-3); }
.post-sources li { margin: 6px 0; }
.post-sources a { color: var(--b-fg-2); text-decoration: underline; text-underline-offset: 3px; }
.post-sources a:hover { color: var(--b-brand); }

.post-disclaimer { margin: 28px 0 0; padding: 18px 20px; border: 1px solid var(--b-border); border-radius: var(--b-radius-sm); font-size: .86rem; line-height: 1.6; color: var(--b-fg-3); }

.related { padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.related .gridhead { margin-top: 0; padding-top: 40px; border-top: 1px solid var(--b-border); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Phones: fit 3-column tables on screen rather than hiding a column behind a scroll */
@media (max-width: 520px) {
  .prose table { min-width: 0; font-size: .86rem; }
  .prose th, .prose td { padding: 9px 10px; }
  .prose th { font-size: .78rem; }
  .callout { padding: 16px; gap: 12px; }
  .callout-icon { width: 34px; height: 34px; }
  .author-box { flex-direction: column; gap: 12px; }
  .faq-a { padding-right: 0; }
}

/* ── Motion ────────────────────────────────────────────────────────── */
html.js [data-animate] { opacity: 0; translate: 0 18px; transition: opacity 700ms var(--b-ease), translate 700ms var(--b-ease); transition-delay: var(--d, 0ms); }
html.js [data-animate].in-view { opacity: 1; translate: 0 0; }

html.js [data-animate] :is(.stat, .tl-item, .card, .bar-row) { opacity: 0; translate: 0 12px; transition: opacity 600ms var(--b-ease), translate 600ms var(--b-ease); transition-delay: calc(var(--d, 0ms) + 150ms); }
html.js [data-animate].in-view :is(.stat, .tl-item, .card, .bar-row) { opacity: 1; translate: 0 0; }

html.js [data-animate] .bar-fill { transform: scaleX(0); transition: transform 1100ms var(--b-ease); transition-delay: calc(var(--d, 0ms) + 350ms); }
html.js [data-animate].in-view .bar-fill { transform: scaleX(1); }

html.js [data-animate] .timeline::before, html.js .timeline[data-animate]::before { transform: scaleY(0); transform-origin: top; transition: transform 1400ms var(--b-ease) 200ms; }
html.js .timeline[data-animate].in-view::before { transform: scaleY(1); }

/* Illustrations */
html.js [data-animate] .a-rise { opacity: 0; transform: translateY(26px); transform-box: fill-box; transition: opacity 700ms var(--b-ease), transform 800ms var(--b-ease); transition-delay: calc(var(--d, 0ms) + 200ms); }
html.js [data-animate].in-view .a-rise { opacity: 1; transform: none; }
html.js [data-animate] .a-sun { opacity: 0; transform: translateY(40px) scale(0.85); transform-box: fill-box; transform-origin: center; transition: opacity 1200ms var(--b-ease), transform 1400ms var(--b-ease); }
html.js [data-animate].in-view .a-sun { opacity: 0.85; transform: none; }
html.js [data-animate] .a-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1600ms var(--b-ease) 500ms; }
html.js [data-animate].in-view .a-draw { stroke-dashoffset: 0; }
.in-view .a-float { animation: a-float 5s ease-in-out 1.6s infinite; transform-box: view-box; }
@keyframes a-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-10px, -8px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Only switch the motion off here. Opacity is restored just for the elements the reveal hides
     (next rule): resetting it on everything would un-hide visually hidden radio inputs and chart tooltips. */
  html.js [data-animate], html.js [data-animate] * , html.js [data-animate]::before {
    transition: none !important; animation: none !important;
  }
  html.js [data-animate], html.js [data-animate] :is(.stat, .tl-item, .card, .bar-row, .a-rise) { opacity: 1 !important; translate: none !important; }
  html.js [data-animate] :is(.a-rise, .a-sun, .bar-fill) { transform: none !important; }
  html.js [data-animate] .a-sun { opacity: 0.85 !important; }
  html.js [data-animate] .a-draw { stroke-dashoffset: 0 !important; }
  html.js .timeline[data-animate]::before { transform: none !important; }
  .pc:hover { transform: none; }
  .pc .ph img, .pc .go svg { transition: none; }
  .pc:hover .ph img, .pc:hover .go svg { transform: none; }
}

@media print {
  .read-progress, .toc, .related, .inline-cta, .search, .topics { display: none !important; }
}
