/* =========================================================
   В ОБОРОТЕ — editorial stylesheet
   Fonts: Golos Text, local files via assets/fonts.css (OFL, see assets/fonts/golos-OFL.txt)
   ========================================================= */


:root {
  --paper: #f5f3ee;
  --paper-2: #ebe7dd;
  --paper-3: #e2ddcf;
  --ink: #20221f;
  --ink-2: #474a44;
  --ink-3: #62655e;
  --red: #ed4b2b;
  --red-ink: #c4381b;
  --blue: #315ae9;
  --blue-ink: #2448c9;
  --lav: #c9c2f2;
  --lav-2: #e4e0fa;
  --rule: var(--ink);
  --rule-soft: #cfcabd;

  --font: "Golos Text", "Manrope", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --gap: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.025em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.on-dark :focus-visible, .special :focus-visible { outline-color: var(--paper); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--pad); top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Shared atoms ---------- */
.label {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red-ink); text-decoration: none; line-height: 1.2;
}
.label::before { content: ""; width: .55em; height: .55em; background: var(--red); flex: none; }
a.label:hover { text-decoration: underline; }
.label--plain::before { display: none; }
.label--blue { color: var(--blue-ink); }
.label--blue::before { background: var(--blue); }

.meta {
  display: flex; flex-wrap: wrap; gap: .25em .9em;
  font-size: .8rem; font-weight: 500; color: var(--ink-3); letter-spacing: .01em;
}
.meta > * + *::before { content: "·"; margin-right: .9em; color: var(--ink-3); }

.story-link { text-decoration: none; }
.story-title { display: block; font-weight: 800; }
.story-link:hover .story-title, .story-link:focus-visible .story-title { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--red); }

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 44px; padding: .6em 1.15em;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: 0;
  font-weight: 700; font-size: .92rem; text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: var(--red); border-color: var(--red); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.more-link {
  font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid var(--red); padding-bottom: 2px;
}
.more-link:hover { color: var(--red-ink); }

/* ---------- Media slots (CSS art until artwork is supplied) ---------- */
.media {
  position: relative; overflow: hidden; margin: 0;
  aspect-ratio: 3 / 2; background-color: var(--paper-2);
}
.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 4 / 5; }
.media > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .4s var(--ease);
}
.media > img.is-loaded { opacity: 1; }
.media__art { position: absolute; inset: 0; }
.media figcaption, .media__caption {
  font-size: .78rem; color: var(--ink-3); margin-top: .6rem;
}

/* Art variants — decorative geometry, intentionally flat */
.art--hero {
  background:
    radial-gradient(circle at 68% 46%, var(--red) 0 23%, transparent 23.2%),
    radial-gradient(circle at 68% 46%, transparent 0 30%, var(--ink) 30.2% 30.9%, transparent 31.1%),
    linear-gradient(90deg, transparent 0 18%, var(--blue) 18% 30%, transparent 30%) 0 100% / 100% 42% no-repeat,
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(32,34,31,.16) 22px 23px),
    var(--paper-2);
}
.art--hero::after {
  content: ""; position: absolute; left: 8%; top: 12%; width: 22%; aspect-ratio: 1;
  border: 3px solid var(--ink); border-radius: 50%; border-right-color: transparent;
  transform: rotate(-30deg);
}
.art--apps {
  background:
    linear-gradient(var(--ink), var(--ink)) 38% 50% / 26% 78% no-repeat,
    linear-gradient(var(--paper), var(--paper)) 38% 50% / 22% 70% no-repeat,
    radial-gradient(circle at 72% 30%, var(--red) 0 11%, transparent 11.2%),
    linear-gradient(var(--blue), var(--blue)) 80% 78% / 22% 10% no-repeat,
    var(--lav);
}
.art--apps::after {
  content: ""; position: absolute; left: 30.5%; top: 26%; width: 15%; height: 48%;
  background:
    linear-gradient(var(--red), var(--red)) 0 0 / 70% 9% no-repeat,
    repeating-linear-gradient(180deg, var(--ink) 0 4px, transparent 4px 18px) 0 30% / 100% 70% no-repeat;
  opacity: .9;
}
.art--budget {
  background:
    linear-gradient(var(--ink), var(--ink)) 20% 100% / 12% 62% no-repeat,
    linear-gradient(var(--blue), var(--blue)) 38% 100% / 12% 40% no-repeat,
    linear-gradient(var(--ink), var(--ink)) 56% 100% / 12% 78% no-repeat,
    radial-gradient(circle at 80% 26%, var(--red) 0 12%, transparent 12.2%),
    linear-gradient(var(--ink), var(--ink)) 0 calc(100% - 0px) / 100% 3px no-repeat,
    var(--paper-3);
}
.art--security {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 17%, var(--red) 17.2% 24%, transparent 24.2%),
    radial-gradient(circle at 50% 50%, var(--lav) 0 7%, transparent 7.2%),
    repeating-linear-gradient(90deg, rgba(201,194,242,.22) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(201,194,242,.22) 0 1px, transparent 1px 28px),
    var(--ink);
}
.art--digital {
  background:
    radial-gradient(circle at 26% 62%, var(--red) 0 15%, transparent 15.2%),
    radial-gradient(circle, var(--lav) 0 2px, transparent 2.5px) 0 0 / 22px 22px,
    var(--blue);
}
.art--digital::after {
  content: ""; position: absolute; right: 12%; top: 16%; width: 34%; aspect-ratio: 1;
  border: 3px solid var(--paper); border-radius: 50%; border-left-color: transparent;
  transform: rotate(20deg);
}

/* ---------- Header ---------- */
.site-header { border-bottom: 3px solid var(--rule); background: var(--paper); }
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: .65rem; font-size: .8rem; font-weight: 500;
  border-bottom: 1px solid var(--rule);
}
.topbar__date { font-weight: 700; }
.topbar__strap { color: var(--ink-2); }
.topbar__links { display: flex; gap: 1.2rem; }
.topbar__links a { text-decoration: none; font-weight: 600; white-space: nowrap; }
.topbar__links a:hover { color: var(--red-ink); text-decoration: underline; }

.masthead { container-type: inline-size; padding-block: clamp(10px, 1.6vw, 22px) clamp(4px, 1vw, 14px); }
.masthead__brand { display: flex; align-items: flex-start; gap: .04em; text-decoration: none; width: max-content; max-width: 100%; }
.masthead__word {
  display: block;
  font-weight: 900; text-transform: uppercase;
  font-size: 16.1cqi; line-height: .82; letter-spacing: -.035em;
  margin-left: -.04em; white-space: nowrap;
}
.brand-mark__dot { fill: var(--ink); }
.site-footer .brand-mark__dot, .special .brand-mark__dot { fill: var(--paper); }
.brand-mark { width: .5em; height: .5em; flex: none; color: var(--red); }
.masthead__brand .brand-mark { font-size: 16.1cqi; margin-top: .02em; transition: transform .6s var(--ease); }
.masthead__brand:hover .brand-mark { transform: rotate(-120deg); }
.masthead__tagline {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(10px, 1.4vw, 18px); padding-top: .7rem; border-top: 1px solid var(--rule);
  font-size: clamp(.86rem, 1.2vw, 1rem); font-weight: 600;
}
.masthead__tagline span:last-child { color: var(--ink-2); font-weight: 500; }

/* Compact masthead on inner pages */
.site-header--compact .masthead { padding-block: 14px; display: flex; align-items: center; justify-content: space-between; }
.site-header--compact .masthead__word { font-size: clamp(2rem, 6.4cqi, 4.4rem); line-height: .9; }
.site-header--compact .masthead__brand .brand-mark { font-size: clamp(2rem, 6.4cqi, 4.4rem); }
.site-header--compact .masthead__aside { font-size: .85rem; font-weight: 600; color: var(--ink-2); text-align: right; max-width: 22ch; }

.navbar { border-top: 3px solid var(--rule); position: sticky; top: 0; z-index: 30; background: var(--paper); }
.navbar__inner { display: flex; align-items: stretch; justify-content: space-between; min-height: 52px; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; }
.site-nav a {
  display: flex; align-items: center; height: 100%; min-height: 52px; padding: 0 .95rem;
  font-weight: 700; font-size: .92rem; text-decoration: none; position: relative;
}
.site-nav li:first-child a { padding-left: 0; }
.site-nav a::after {
  content: ""; position: absolute; left: .95rem; right: .95rem; bottom: -3px; height: 5px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.site-nav li:first-child a::after { left: 0; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .site-nav__aux a { font-weight: 500; color: var(--ink-2); }

.icon-btn {
  display: inline-flex; align-items: center; gap: .55em; min-height: 44px; padding: 0 0 0 1rem;
  background: none; border: 0; cursor: pointer; font-weight: 700; font-size: .92rem;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { color: var(--red-ink); }
.nav-toggle { display: none; padding-left: 0; }
.nav-toggle__bars { position: relative; width: 22px; height: 14px; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2.5px; background: currentColor; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 5.75px; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5.75px) rotate(-45deg); }

@media (max-width: 1199px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 3px solid var(--rule); border-top: 1px solid var(--rule);
    max-height: calc(100vh - 60px); overflow-y: auto;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem var(--pad) 1.25rem; }
  .site-nav li { border-bottom: 1px solid var(--rule-soft); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a, .site-nav li:first-child a { padding: 0; min-height: 54px; font-size: 1.15rem; }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--red-ink); }
}
@media (max-width: 767px) {
  .topbar__strap { display: none; }
  .topbar__links a + a { display: none; }
  .masthead__tagline span:last-child { display: none; }
  .site-header--compact .masthead__aside { display: none; }
}

/* ---------- Sections ---------- */
main { display: block; padding-bottom: clamp(48px, 7vw, 104px); }
.page-home main { padding-bottom: 0; }
.section { padding-block: clamp(40px, 6vw, 88px); }
.section + .section { padding-top: 0; }
.section-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: .5rem 1.25rem;
  border-top: 3px solid var(--rule); padding-top: .9rem; margin-bottom: clamp(22px, 3vw, 40px);
}
.section-head__num {
  font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--red-ink);
  align-self: start; padding-top: .55rem;
}
.section-head__title { font-size: clamp(1.9rem, 4.4vw, 3.6rem); letter-spacing: -.045em; line-height: .95; }
.section-head__dek { grid-column: 2 / 3; max-width: 58ch; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 640px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head__num { padding-top: 0; }
  .section-head .more-link { justify-self: start; }
  .section-head__dek { grid-column: auto; }
}

/* ---------- Home: lead ---------- */
.lead { padding-block: clamp(24px, 3.4vw, 48px) 0; }
.lead__grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 3vw, 48px); }
.lead-story { display: grid; gap: 1.1rem; align-content: start; }
.lead-story__title { font-size: clamp(2.1rem, 5.2vw, 4.9rem); letter-spacing: -.05em; line-height: .96; }
.lead-story__dek { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.45; max-width: 46ch; color: var(--ink-2); font-weight: 500; }
.lead-story__body { display: grid; gap: 1rem; }

.latest { border-top: 3px solid var(--rule); }
.latest__head { display: flex; justify-content: space-between; align-items: baseline; padding: .8rem 0 .4rem; }
.latest__title { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.latest__list { list-style: none; counter-reset: latest; }
.latest__item { counter-increment: latest; border-top: 1px solid var(--rule); }
.latest__item:first-child { border-top: 0; }
.latest__item a { display: grid; grid-template-columns: 2.4rem 1fr; gap: .3rem .6rem; padding: 1rem 0; text-decoration: none; }
.latest__item a::before {
  content: counter(latest, decimal-leading-zero); grid-row: span 3;
  font-weight: 900; font-size: 1.2rem; color: var(--red-ink); line-height: 1.1;
}
.latest__item .story-title { font-size: 1.08rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
@media (min-width: 1024px) {
  .lead__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  /* Desktop: headline and dek first, image slot after the text (same markup as mobile) */
  .lead-story > a:first-child { order: 1; margin-top: .6rem; }
  .lead-story__dek { max-width: 58ch; }
  .latest { border-top: 0; border-left: 1px solid var(--rule); padding-left: clamp(20px, 2.4vw, 36px); }
  .latest__head { padding-top: 0; border-bottom: 3px solid var(--rule); padding-bottom: .7rem; }
}

/* ---------- Home: everyday money (asymmetric) ---------- */
.everyday__grid { display: grid; gap: clamp(28px, 3vw, 48px); }
.feature-split { display: grid; gap: 1.1rem; align-content: start; }
.feature-split .media { aspect-ratio: 5 / 4; }
.feature-split .story-title { font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -.04em; }
.feature-split p.excerpt { font-size: 1.05rem; color: var(--ink-2); max-width: 52ch; }
.text-stack { display: grid; align-content: start; }
.text-story { display: grid; gap: .55rem; padding: 1.2rem 0; border-top: 1px solid var(--rule); }
.text-story:first-child { border-top: 3px solid var(--rule); }
.text-story .story-title { font-size: clamp(1.25rem, 1.8vw, 1.6rem); letter-spacing: -.025em; line-height: 1.12; }
.text-story .excerpt { color: var(--ink-2); font-size: .98rem; }
.quote-panel {
  background: var(--red); color: var(--ink); padding: clamp(20px, 2.4vw, 32px);
  display: grid; gap: 1rem; align-content: space-between; min-height: 240px;
}
.quote-panel__text { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.quote-panel__note { font-size: .9rem; font-weight: 600; }
.quote-panel a { font-weight: 800; }
.row-story { display: grid; gap: 1.2rem; border-top: 3px solid var(--rule); padding-top: 1.4rem; }
.row-story .story-title { font-size: clamp(1.5rem, 2.6vw, 2.3rem); letter-spacing: -.035em; }
.row-story__text { display: grid; gap: .8rem; align-content: start; }
.special__visual { margin-top: 2rem !important; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; color: var(--ink); }
.link-btn:hover { color: var(--red-ink); }
.row-story .excerpt { color: var(--ink-2); font-size: 1.02rem; max-width: 56ch; }
@media (min-width: 768px) {
  .everyday__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .everyday__main { grid-column: 1 / 8; }
  .everyday__side { grid-column: 8 / 13; display: grid; gap: 2rem; align-content: start; }
  .everyday__row { grid-column: 1 / -1; }
  .row-story { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 2.5rem; }
  .row-story > a { order: 2; }
}
@media (min-width: 1024px) {
  .everyday__side { grid-column: 9 / 13; }
  .everyday__row .row-story { grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); }
  .row-story__text { grid-column: 1 / 2; }
  .row-story > a { grid-column: 2 / 4; }
}

/* ---------- Home: special (cobalt) ---------- */
.special { background: var(--blue); color: var(--paper); padding-block: clamp(48px, 7vw, 104px); position: relative; overflow: hidden; }
.special a { color: var(--paper); }
.special__kicker {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 3px solid var(--paper); border-bottom: 1px solid var(--paper);
  padding: .7rem 0; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.special__kicker span:last-child { color: var(--lav-2); }
.special__grid { display: grid; gap: clamp(28px, 4vw, 64px); margin-top: clamp(28px, 4vw, 56px); }
.special__title {
  font-size: clamp(2.4rem, 7vw, 6.4rem); letter-spacing: -.055em; line-height: .9; font-weight: 900;
}
.special__title em { font-style: normal; color: var(--lav); }
.special__dek { font-size: clamp(1.05rem, 1.4vw, 1.25rem); margin-top: 1.4rem; max-width: 44ch; font-weight: 500; color: #eef0ff; }
.special__list { list-style: none; counter-reset: sp; border-top: 3px solid var(--paper); }
.special__list li { counter-increment: sp; border-bottom: 1px solid rgba(245,243,238,.55); }
.special__list a { display: grid; grid-template-columns: 3.2rem 1fr; gap: .35rem 1rem; padding: 1.25rem 0; text-decoration: none; }
.special__list a::before {
  content: counter(sp, decimal-leading-zero); grid-row: span 2;
  font-size: 2rem; font-weight: 900; line-height: 1; color: var(--lav); letter-spacing: -.04em;
}
.special__list .story-title { font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
.special__list .excerpt { color: #e6e9ff; font-size: .95rem; }
.special__list a:hover .story-title { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.special .media { background-color: #2a4fd6; }
.special .media figcaption { color: #e6e9ff; }
@media (min-width: 1024px) {
  .special__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .special__visual { grid-column: 1 / 2; }
}

/* ---------- Home: explainer (banks & apps) ---------- */
.explainer__grid { display: grid; gap: clamp(28px, 3vw, 48px); }
.explainer__intro { display: grid; gap: 1.2rem; align-content: start; }
.explainer__intro .big { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.explainer__intro p { color: var(--ink-2); }
.steps { list-style: none; display: grid; gap: 0; counter-reset: step; }
.step { counter-increment: step; display: grid; grid-template-columns: clamp(3.4rem, 6vw, 5.5rem) 1fr; gap: .4rem 1.2rem; padding: 1.4rem 0; border-top: 1px solid var(--rule); }
.step:first-child { border-top: 3px solid var(--rule); }
.step::before {
  content: counter(step); grid-row: span 3;
  font-size: clamp(2.8rem, 5vw, 4.6rem); font-weight: 900; line-height: .8; letter-spacing: -.06em; color: var(--ink);
}
.step:nth-child(2n)::before { color: var(--blue); }
.step h3 { font-size: clamp(1.2rem, 1.8vw, 1.55rem); letter-spacing: -.025em; line-height: 1.15; }
.step p { color: var(--ink-2); max-width: 60ch; }
.step a { font-weight: 700; font-size: .92rem; }
@media (min-width: 1024px) {
  .explainer__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .explainer__intro { position: sticky; top: 80px; }
}

/* ---------- Calculator band ---------- */
.calc-band { background: var(--paper-2); border-top: 3px solid var(--rule); border-bottom: 3px solid var(--rule); padding-block: clamp(40px, 5.5vw, 80px); }
.calc__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); }
.calc__intro { display: grid; gap: 1rem; align-content: start; }
.calc__title { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.045em; line-height: .95; }
.calc__intro p { color: var(--ink-2); max-width: 46ch; }
.calc__note { font-size: .85rem; border-left: 3px solid var(--red); padding-left: .8rem; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 3px solid var(--rule); width: 100%; min-width: 0; }
.calc__fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; width: 100%; min-width: 0; }
.calc__fields > *, .calc > *, .field__control { min-width: 0; max-width: 100%; }
.field { min-width: 0; display: grid; gap: .35rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.field label { font-weight: 700; font-size: .92rem; }
.field__hint { font-size: .8rem; color: var(--ink-3); }
.field__control { display: flex; align-items: center; border-bottom: 2px solid var(--ink); }
.field__control:focus-within { border-bottom-color: var(--blue); }
.field input {
  flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; padding: .25rem 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield;
}
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input:focus { outline: none; }
.field__unit { flex: none; white-space: nowrap; font-weight: 700; color: var(--ink-2); padding-left: .4rem; }
.field.is-invalid .field__control { border-bottom-color: var(--red-ink); }
.calc__result { width: 100%; min-width: 0; background: var(--ink); color: var(--paper); padding: clamp(18px, 2.4vw, 28px); display: grid; gap: .8rem; margin-top: 1.2rem; }
.calc__result-label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lav); }
.calc__result-value { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 900; letter-spacing: -.045em; line-height: .95; font-variant-numeric: tabular-nums; }
.calc__result-text { font-size: .95rem; color: #e3e1da; }
.calc__bar { height: 10px; background: #3b3e38; position: relative; }
.calc__bar span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--red); transition: width .5s var(--ease); }
@media (min-width: 768px) {
  .calc__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
}
@media (min-width: 1024px) {
  .calc__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* ---------- Glossary ---------- */
.glossary__grid { display: grid; gap: clamp(28px, 3vw, 48px); }
.glossary__list { border-top: 3px solid var(--rule); }
.term { border-bottom: 1px solid var(--rule); }
.term summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem;
  padding: 1.05rem 0; font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 800; letter-spacing: -.025em;
}
.term summary::-webkit-details-marker { display: none; }
.term summary::after {
  content: ""; width: 26px; height: 26px; flex: none;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2.5px 14px no-repeat;
  border: 2px solid currentColor; border-radius: 50%;
  transition: transform .25s var(--ease), background-color .2s;
}
.term[open] summary::after { transform: rotate(45deg); background-color: var(--red); }
.term summary:hover { color: var(--red-ink); }
.term__body { padding: 0 0 1.3rem; display: grid; gap: .7rem; max-width: 64ch; }
.term__body p { color: var(--ink-2); }
.term__body a { font-weight: 700; }
.glossary__aside { display: grid; gap: 1rem; align-content: start; }
.glossary__aside .aside-box { border: 2px solid var(--ink); padding: 1.2rem; background: var(--lav-2); display: grid; gap: .6rem; }
.glossary__aside h3 { font-size: 1.15rem; }
.glossary__aside ul { list-style: none; }
.glossary__aside li { border-top: 1px solid var(--ink); }
.glossary__aside li a { display: block; padding: .7rem 0; font-weight: 700; text-decoration: none; line-height: 1.25; }
.glossary__aside li a:hover { text-decoration: underline; }
@media (min-width: 1024px) {
  .glossary__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
}

/* ---------- Security strip ---------- */
.trio { display: grid; gap: 0; border-top: 3px solid var(--rule); }
.trio__item { display: grid; gap: .8rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); align-content: start; }
.trio__item .story-title { font-size: clamp(1.2rem, 1.6vw, 1.45rem); letter-spacing: -.02em; line-height: 1.15; }
.trio__item .excerpt { color: var(--ink-2); font-size: .96rem; }
@media (min-width: 768px) {
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
  .trio__item { border-bottom: 0; padding: 1.4rem clamp(16px, 2vw, 28px); border-left: 1px solid var(--rule); }
  .trio__item:first-child { border-left: 0; padding-left: 0; }
  .trio__item:last-child { padding-right: 0; }
}

.memo { background: var(--ink); color: var(--paper); padding: clamp(18px, 2vw, 28px) !important; display: grid; gap: 1rem; align-content: start; }
.memo__title { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lav); }
.memo ol { list-style: none; counter-reset: memo; display: grid; gap: 0; }
.memo li { counter-increment: memo; display: grid; grid-template-columns: 2.2rem 1fr; padding: .8rem 0; border-top: 1px solid #5a5d56; font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.memo li::before { content: counter(memo); font-weight: 900; font-size: 1.4rem; line-height: 1; color: var(--red); }
.memo p { font-size: .88rem; color: #d9d6cd; }
.memo a { color: var(--paper); font-weight: 700; }
.trio__stack { display: grid; gap: 0; align-content: start; }
.trio__stack .trio__item { padding: 0 0 1.4rem; border: 0; }
.trio__stack .trio__item + .trio__item { border-top: 1px solid var(--rule); padding-top: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(40px, 5vw, 72px) 28px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--red); text-decoration: underline; }
.footer__brand { container-type: inline-size; border-bottom: 1px solid #5a5d56; padding-bottom: 1.4rem; }
.footer__word { display: flex; align-items: flex-start; font-weight: 900; text-transform: uppercase; font-size: 16.1cqi; line-height: .82; letter-spacing: -.035em; white-space: nowrap; }
.footer__word .brand-mark { font-size: 16.1cqi; margin-left: .04em; }
.footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; padding-top: 2rem; }
.footer__about { grid-column: 1 / -1; }
.footer__about p { color: #d9d6cd; max-width: 44ch; }
.footer__about p + p { margin-top: .8rem; }
.footer__col h2 { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lav); margin-bottom: .8rem; }
.footer__col ul { list-style: none; display: grid; gap: .45rem; }
.footer__col a { font-weight: 600; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid #5a5d56; font-size: .82rem; color: #c9c6bd; }
.footer__bottom p { max-width: 80ch; }
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer__about { grid-column: auto; }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 5fr 2fr 2fr 3fr; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .82rem; font-weight: 600; padding-block: 1.1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--ink-3); }
.breadcrumbs a { color: var(--ink-2); }
.breadcrumbs a:hover { color: var(--red-ink); }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ---------- Article ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }

.article-head { display: grid; gap: 1.2rem; padding-block: clamp(12px, 2vw, 28px) clamp(24px, 3vw, 40px); border-bottom: 3px solid var(--rule); }
.article-head__title { font-size: clamp(2.2rem, 6vw, 5.4rem); letter-spacing: -.05em; line-height: .95; max-width: 18ch; }
.article-head__dek { font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.45; color: var(--ink-2); max-width: 50ch; font-weight: 500; }
.article-head__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.byline { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .9rem; }
.byline b { font-weight: 800; }
.byline span { color: var(--ink-2); }
.share { display: inline-flex; align-items: center; gap: .8rem; }
.share__status:empty { display: none; }
.share__status { font-size: .85rem; font-weight: 700; color: var(--blue-ink); min-height: 1.2em; }

.article-figure { margin: clamp(24px, 3vw, 40px) 0 0; }
.article-figure .media { aspect-ratio: 3 / 2; }
@media (min-width: 768px) { .article-figure .media { aspect-ratio: 21 / 9; } }
.article-figure figcaption { font-size: .8rem; color: var(--ink-3); margin-top: .6rem; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: clamp(28px, 4vw, 56px); }
.article-layout > *, .page-layout > *, .lead__grid > *, .special__grid > *, .explainer__grid > *, .glossary__grid > *, .calc__grid > *, .everyday__grid > *, .cat-feature > *, .row > a > * { min-width: 0; }
.calc__grid > *, .article-layout > *, .page-layout > * { width: 100%; }
.toc { border-top: 3px solid var(--rule); padding-top: .8rem; font-size: .92rem; }
.toc__title { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .5rem; }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--rule-soft); }
.toc a { display: grid; grid-template-columns: 1.8rem 1fr; padding: .55rem 0; text-decoration: none; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.toc a::before { content: counter(toc, decimal-leading-zero); font-weight: 800; color: var(--ink-3); font-size: .8rem; padding-top: .1rem; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); }
.toc a.is-active::before { color: var(--red-ink); }
.article-aside-note { margin-top: 1.4rem; font-size: .82rem; color: var(--ink-2); border-left: 3px solid var(--blue); padding-left: .8rem; }

.prose { min-width: 0; font-size: clamp(1.06rem, 1.2vw, 1.16rem); line-height: 1.68; max-width: 680px; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.035em; line-height: 1.08;
  margin-top: 2.2em; padding-top: .7em; border-top: 3px solid var(--rule); scroll-margin-top: 80px;
}
.prose h3 { font-size: 1.2rem; letter-spacing: -.015em; margin-top: 1.6em; }
.prose .lede { font-size: 1.22em; line-height: 1.5; font-weight: 500; }
.prose .lede::first-letter { float: left; font-size: 3.6em; line-height: .82; font-weight: 900; margin: .06em .1em 0 0; color: var(--red); }
.prose ul:not(.checklist), .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--red-ink); font-weight: 800; }
.prose a { color: var(--blue-ink); font-weight: 600; }
.prose strong { font-weight: 750; }

.callout { background: var(--lav-2); border-left: 6px solid var(--blue); padding: 1.2rem 1.4rem; font-size: .98em; }
.callout__title { font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: .4rem; }
.callout--warn { background: #fbe3dc; border-left-color: var(--red); }
.callout--warn .callout__title { color: var(--red-ink); }
.pullquote { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; border-top: 3px solid var(--red); border-bottom: 1px solid var(--rule); padding: 1rem 0; margin: 2em 0 !important; }

.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border-top: 3px solid var(--rule); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 0; }
.compare { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.4; min-width: 560px; }
.compare caption { text-align: left; font-weight: 700; font-size: .85rem; padding: .7rem 0; color: var(--ink-2); caption-side: bottom; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: .75rem .9rem .75rem 0; border-bottom: 1px solid var(--rule); }
.compare thead th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); border-bottom: 2px solid var(--rule); }
.compare tbody th { font-weight: 800; }
.compare .tag { display: inline-block; font-size: .72rem; font-weight: 800; padding: .15rem .45rem; letter-spacing: .04em; text-transform: uppercase; }
.tag--must { background: var(--ink); color: var(--paper); }
.tag--nice { background: var(--lav); color: var(--ink); }
.tag--opt { border: 1.5px solid var(--ink); }

.checklist-box { border: 2px solid var(--ink); padding: clamp(16px, 2vw, 24px); background: var(--paper); }
.checklist-box__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.checklist-box__head h3 { margin: 0; font-size: 1.2rem; }
.checklist-box__count { font-size: .85rem; font-weight: 700; color: var(--blue-ink); }
.checklist { list-style: none; padding: 0; }
.checklist li { border-top: 1px solid var(--rule-soft); margin: 0 !important; }
.checklist label { display: grid; grid-template-columns: 24px 1fr; gap: .8rem; padding: .7rem 0; cursor: pointer; font-size: .98rem; line-height: 1.45; }
.checklist input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: .1rem 0 0; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; display: grid; place-content: center; }
.checklist input::after { content: ""; width: 11px; height: 6px; border-left: 3px solid var(--paper); border-bottom: 3px solid var(--paper); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.checklist input:checked { background: var(--red); border-color: var(--red); }
.checklist input:checked::after { opacity: 1; border-color: var(--ink); }
.checklist input:checked + span { text-decoration: line-through; text-decoration-color: var(--red); color: var(--ink-2); }

.article-foot { border-top: 3px solid var(--rule); margin-top: 2.5em !important; padding-top: 1rem; font-size: .9rem; color: var(--ink-2); }

.related { padding-block: clamp(32px, 5vw, 72px) 0; }
.related__grid { display: grid; gap: 0; border-top: 3px solid var(--rule); }
.related__item { padding: 1.3rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: .6rem; align-content: start; }
.related__item .story-title { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.15; }
.related__item .excerpt { color: var(--ink-2); font-size: .95rem; }
@media (min-width: 768px) {
  .related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related__item { padding: 1.3rem clamp(16px, 2vw, 28px); border-left: 1px solid var(--rule); }
  .related__item:first-child { border-left: 0; padding-left: 0; }
}

@media (min-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 2fr); gap: clamp(24px, 3vw, 56px); }
  .article-layout__toc { position: relative; }
  .toc { position: sticky; top: 80px; }
}
@media (max-width: 1023px) {
  .article-layout__end { display: none; }
}

/* ---------- Category ---------- */
.cat-head { padding-block: clamp(8px, 1.6vw, 20px) clamp(24px, 3vw, 40px); border-bottom: 3px solid var(--rule); display: grid; gap: 1rem; }
.cat-head__title { font-size: clamp(2.6rem, 8vw, 7.4rem); letter-spacing: -.06em; line-height: .88; font-weight: 900; }
.cat-head__intro { font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 52ch; color: var(--ink-2); font-weight: 500; }
@media (min-width: 1024px) {
  .cat-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .cat-head .label { grid-column: 1 / -1; }
}
.filters { display: flex; flex-wrap: wrap; gap: .5rem; padding-block: 1.2rem; border-bottom: 1px solid var(--rule); }
.filters__label { width: 100%; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .2rem; }
.pill {
  min-height: 40px; padding: .4rem 1rem; border: 2px solid var(--ink); background: transparent; cursor: pointer;
  font-weight: 700; font-size: .88rem; border-radius: 999px; transition: background .15s, color .15s;
}
.pill:hover { background: var(--paper-3); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pill__count { font-weight: 600; opacity: .75; margin-left: .25rem; font-variant-numeric: tabular-nums; }
.cat-status { font-size: .88rem; color: var(--ink-2); padding-top: 1rem; font-weight: 600; }

.cat-feature { display: grid; gap: 1.4rem; padding-block: clamp(24px, 3vw, 40px); border-bottom: 3px solid var(--rule); }
.cat-feature .story-title { font-size: clamp(1.9rem, 4vw, 3.4rem); letter-spacing: -.045em; line-height: .98; }
.cat-feature .excerpt { font-size: 1.1rem; color: var(--ink-2); max-width: 50ch; }
.cat-feature__text { display: grid; gap: 1rem; align-content: start; }
@media (min-width: 900px) {
  .cat-feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
}
.rows { list-style: none; }
.row { border-bottom: 1px solid var(--rule); }
.row > a { display: grid; grid-template-columns: 1fr; gap: .9rem; padding: 1.3rem 0; text-decoration: none; }
.row .media { aspect-ratio: 3 / 2; }
.row__text { display: grid; gap: .5rem; align-content: start; }
.row .story-title { font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -.03em; line-height: 1.1; }
.row .excerpt { color: var(--ink-2); max-width: 64ch; }
.row.is-new { animation: rowIn .45s var(--ease) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (min-width: 640px) {
  .row > a { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 1.6rem; align-items: start; }
  .row .media { order: 2; }
}
@media (min-width: 1024px) {
  .row > a { grid-template-columns: 10.5rem minmax(0, 7fr) minmax(0, 3fr); }
  .row__cat { padding-top: .25rem; }
}
@media (max-width: 1023px) { .row__cat { display: none; } }
.load-more { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding-block: 1.6rem; }
.load-more__status { font-size: .85rem; color: var(--ink-2); }
.empty { padding: 2rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: .6rem; }
.empty h2 { font-size: 1.5rem; }

/* ---------- Search dialog ---------- */
.search-dialog {
  width: min(860px, calc(100% - 24px)); max-height: min(86vh, 860px); margin: 6vh auto auto;
  padding: 0; border: 3px solid var(--ink); background: var(--paper); color: var(--ink);
}
.search-dialog::backdrop { background: rgba(32, 34, 31, .72); }
.search-dialog__inner { display: grid; grid-template-rows: auto auto 1fr; max-height: inherit; }
.search-dialog__head { display: flex; justify-content: space-between; align-items: center; padding: 1rem clamp(16px, 3vw, 28px); border-bottom: 1px solid var(--ink); }
.search-dialog__head h2 { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.close-btn { width: 44px; height: 44px; border: 2px solid var(--ink); background: none; cursor: pointer; display: grid; place-items: center; }
.close-btn:hover { background: var(--ink); color: var(--paper); }
.search-form { padding: 1rem clamp(16px, 3vw, 28px) .6rem; }
.search-form__control { display: flex; align-items: center; gap: .6rem; border-bottom: 3px solid var(--ink); }
.search-form__control:focus-within { border-bottom-color: var(--blue); }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .5rem 0; font-size: clamp(1.4rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; }
.search-form input:focus { outline: none; }
.search-form input::placeholder { color: #8b8d86; }
.search-form input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-status { font-size: .85rem; color: var(--ink-2); padding: .6rem clamp(16px, 3vw, 28px) 0; font-weight: 600; }
.search-results { list-style: none; overflow-y: auto; padding: .4rem clamp(16px, 3vw, 28px) 1.2rem; }
.search-results li { border-bottom: 1px solid var(--rule); }
.search-results a { display: grid; gap: .3rem; padding: .9rem 0; text-decoration: none; }
.search-results .story-title { font-size: 1.15rem; font-weight: 750; letter-spacing: -.015em; line-height: 1.2; }
.search-results .excerpt { font-size: .9rem; color: var(--ink-2); }
.search-results mark { background: var(--lav); color: inherit; padding: 0 .1em; }
.search-suggest { display: flex; flex-wrap: wrap; gap: .4rem; padding: .8rem 0 0; }
.search-suggest .pill { min-height: 36px; font-size: .82rem; }

/* ---------- Generic page (about, 404) ---------- */
.page-head { padding-block: clamp(8px, 1.6vw, 20px) clamp(24px, 3vw, 40px); border-bottom: 3px solid var(--rule); display: grid; gap: 1rem; }
.page-head__title { font-size: clamp(2.6rem, 8vw, 7rem); letter-spacing: -.06em; line-height: .88; font-weight: 900; max-width: 14ch; }
.page-head__dek { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 50ch; color: var(--ink-2); font-weight: 500; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: clamp(28px, 4vw, 56px); }
@media (min-width: 1024px) {
  .page-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 2fr); gap: clamp(24px, 3vw, 56px); }
}
.principles { list-style: none; counter-reset: pr; padding: 0 !important; }
.principles li { counter-increment: pr; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--rule); margin: 0 !important; }
.principles li::before { content: counter(pr, decimal-leading-zero); font-weight: 900; color: var(--red-ink); font-size: 1.2rem; }

.notfound { padding-block: clamp(32px, 6vw, 96px); display: grid; gap: 1.6rem; }
.notfound__code { font-size: clamp(7rem, 30vw, 24rem); font-weight: 900; letter-spacing: -.08em; line-height: .78; display: flex; align-items: center; }
.notfound__code .brand-mark { font-size: 1em; width: .78em; height: .78em; margin-inline: -.02em; }
.notfound__title { font-size: clamp(1.8rem, 4vw, 3.2rem); letter-spacing: -.045em; max-width: 20ch; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .navbar, .topbar, .share, .article-layout__toc, .site-footer, .progress, .related { display: none !important; }
  body { background: #fff; }
}
.prose--page > h2:first-child { margin-top: 0; }

/* =========================================================
   Home refresh — real editorial covers, savings band,
   in-article figures and sources.
   Mirrored verbatim in theme assets/wordpress.css until the
   child theme's style.css is re-synced from design/.
   ========================================================= */

/* Covers: the CSS art underneath stays as the no-thumbnail fallback */
.story-link .media > img { transition: opacity .4s var(--ease), transform .7s var(--ease); }
.story-link:hover .media > img.is-loaded { transform: scale(1.025); }

/* Lead: balanced split on wide screens */
@media (min-width: 1024px) and (max-width: 1199px) {
  .lead-story > a:first-child .media { aspect-ratio: 16 / 9; }
}
@media (min-width: 1200px) {
  .lead-story {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto auto auto 1fr;
    column-gap: clamp(24px, 2.4vw, 40px);
  }
  .lead-story > * { grid-column: 1; }
  .lead-story > a:first-child { order: 0; grid-column: 2; grid-row: 1 / -1; margin-top: 0; align-self: stretch; position: relative; min-height: 400px; }
  .lead-story > a:first-child .media { position: absolute; inset: 0; aspect-ratio: auto; }
  .lead-story__title { font-size: clamp(2.3rem, 3.1vw, 3.2rem); }
  .lead-story__body { align-self: start; padding-top: 1rem; border-top: 1px solid var(--rule); }
}

/* Special: lead cover instead of the CSS artwork */
.special__main { display: grid; align-content: start; }
.special__feature { display: grid; gap: 1rem; margin-top: clamp(24px, 3vw, 40px); }
.special__feature .special__visual { display: block; margin-top: 0 !important; }
.special__feature-text { display: grid; gap: .55rem; border-top: 3px solid var(--paper); padding-top: .9rem; }
.special__feature-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lav-2); }
.special__feature .story-title { font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -.03em; line-height: 1.1; }

/* Banks: linked step titles */
.step h3 a { text-decoration: none; }
.step h3 a:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }

/* Savings band */
.savings { background: var(--lav-2); border-top: 3px solid var(--rule); padding-block: clamp(48px, 7vw, 104px); }
.savings__head { display: grid; gap: 1rem 2rem; margin-bottom: clamp(28px, 4vw, 56px); }
.savings__kicker {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .6rem 1rem;
  border-top: 3px solid var(--rule); padding-top: .9rem;
}
.savings__kicker > span {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red-ink);
}
.savings__kicker > span::before { content: ""; width: .55em; height: .55em; background: var(--red); }
.savings__title { font-size: clamp(2.3rem, 6vw, 5.4rem); font-weight: 900; letter-spacing: -.05em; line-height: .95; max-width: 14ch; }
.savings__title em { font-style: normal; color: var(--red-ink); }
.savings__dek { font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 500; color: var(--ink-2); max-width: 44ch; }
.savings__grid { display: grid; gap: clamp(28px, 3vw, 48px); }
.savings__grid > * { min-width: 0; }
.savings__lead, .savings__pick { display: grid; gap: .9rem; align-content: start; }
.savings .media { background-color: var(--paper-3); }
.savings__lead .media { aspect-ratio: 4 / 3; }
.savings__lead .story-title { font-size: clamp(1.7rem, 3vw, 2.7rem); letter-spacing: -.04em; line-height: 1.02; }
.savings__lead .excerpt { font-size: 1.05rem; color: var(--ink-2); max-width: 52ch; }
.savings__pick .media { aspect-ratio: 3 / 2; }
.savings__pick .story-title { font-size: clamp(1.25rem, 1.8vw, 1.6rem); letter-spacing: -.025em; line-height: 1.12; }
.savings__rail { display: grid; gap: 1.5rem; align-content: start; }
.savings__list { list-style: none; counter-reset: savings; border-top: 3px solid var(--rule); }
.savings__list li { counter-increment: savings; border-bottom: 1px solid var(--rule); }
.savings__list a { display: grid; grid-template-columns: 2.6rem 1fr; gap: .35rem .8rem; padding: 1.1rem 0; }
.savings__list a::before {
  content: counter(savings, decimal-leading-zero); grid-row: span 2;
  font-size: 1.3rem; font-weight: 900; line-height: 1.05; color: var(--red-ink);
}
.savings__list .story-title { font-size: 1.12rem; font-weight: 750; letter-spacing: -.01em; line-height: 1.22; }
.savings__cta {
  display: grid; gap: .7rem; padding: clamp(18px, 2vw, 26px);
  background: var(--ink); color: var(--paper); text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.savings__cta > span:first-child { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.savings__cta-action { font-size: .92rem; font-weight: 700; color: var(--red); }
.savings__cta:hover { background: var(--red); color: var(--ink); }
.savings__cta:hover .savings__cta-action { color: var(--ink); }
.savings__cta .arrow { display: inline-block; transition: transform .2s var(--ease); }
.savings__cta:hover .arrow { transform: translateX(3px); }
@media (min-width: 768px) {
  .savings__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .savings__lead { grid-column: 1 / -1; }
  .savings__lead .media { aspect-ratio: 16 / 9; }
}
@media (min-width: 1024px) {
  .savings__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .savings__kicker { grid-column: 1 / -1; }
  .savings__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); }
  .savings__lead { grid-column: auto; }
  .savings__lead .media { aspect-ratio: 4 / 3; }
  .savings__pick .media { aspect-ratio: 4 / 5; }
}

/* In-article figures */
.prose figure:not(.media) { margin: 2.2em 0 0; }
.prose figure:not(.media) + * { margin-top: 2em; }
.prose figure:not(.media) img { display: block; width: 100%; height: auto; background-color: var(--paper-2); }
.prose figcaption {
  margin-top: .65rem; padding-top: .55rem; border-top: 1px solid var(--rule);
  font-size: .82rem; line-height: 1.45; color: var(--ink-3);
}
.prose figcaption::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .55em; background: var(--red); vertical-align: .05em; }

/* Plain tables from the editor */
.prose table:not(.compare) { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.45; }
.prose .table-wrap > table:not(.compare) { min-width: 520px; }
.prose table:not(.compare) th, .prose table:not(.compare) td { text-align: left; vertical-align: top; padding: .7rem .9rem .7rem 0; border-bottom: 1px solid var(--rule); }
.prose table:not(.compare) thead th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 2px solid var(--rule); }

/* Sources */
.prose .article-sources { margin-top: 3em; border-top: 3px solid var(--rule); padding-top: 1rem; font-size: .92rem; line-height: 1.5; }
.prose .article-sources h2 {
  margin: 0; padding: 0; border: 0;
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.prose .article-sources ul { list-style: none; padding-left: 0; margin-top: .6rem; counter-reset: sources; }
.prose .article-sources li { counter-increment: sources; display: grid; grid-template-columns: 2rem 1fr; margin: 0; padding: .6rem 0; border-bottom: 1px solid var(--rule-soft); }
.prose .article-sources li::before { content: counter(sources, decimal-leading-zero); padding-top: .12rem; font-size: .8rem; font-weight: 800; color: var(--ink-3); }
.prose .article-sources p { margin-top: .8rem; font-size: .84rem; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  .story-link:hover .media > img.is-loaded, .savings__cta:hover .arrow { transform: none; }
}
