/* ==========================================================================
   Sovereign Terminal — Nightglow
   A deep navy canvas lit by cyan, violet and amber glows; frosted glass
   cards; notched image corners holding arrow buttons; bright pill CTAs.
   ========================================================================== */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Canvas */
  --bg: #070b24;
  --bg-2: #0b1132;
  --bg-3: #111944;
  --bg-rgb: 7, 11, 36;

  /* Glass */
  --glass: rgba(255, 255, 255, 0.05);
  --glass-2: rgba(255, 255, 255, 0.08);
  --glass-3: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);

  /* Text */
  --text: #f2f4ff;
  --text-2: #b6bddd;
  --text-3: #7f88b0;
  --text-rgb: 242, 244, 255;

  /* Accent (buttons, highlights) */
  --acc: #ffd23f;
  --acc-hover: #ffe071;
  --acc-ink: #17112b;
  --acc-rgb: 255, 210, 63;

  /* Glow stops: cyan · violet · amber · magenta */
  --g1: #1fb6ff;
  --g1-rgb: 31, 182, 255;
  --g2: #7c5cff;
  --g2-rgb: 124, 92, 255;
  --g3: #ff8a3d;
  --g3-rgb: 255, 138, 61;
  --g4: #e04fff;
  --g4-rgb: 224, 79, 255;

  /* Market semantics */
  --up: #3ee39b;
  --up-rgb: 62, 227, 155;
  --down: #ff6b7d;
  --down-rgb: 255, 107, 125;
  --warn: #ffb547;

  /* Type */
  --f-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-sans: "Manrope", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --wrap: 1240px;
  --wrap-narrow: 820px;
  --gutter: clamp(16px, 4vw, 32px);
  --sec: clamp(3rem, 6vw, 5rem);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.75);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ── 1b. Colour schemes ────────────────────────────────────────────────── */
/* Picked in Customizer → Colour scheme; printed as <html data-scheme="…">. */

/* Aurora */
:root[data-scheme="emerald"] {
  --bg: #041420;
  --bg-2: #07202e;
  --bg-3: #0b2a3b;
  --bg-rgb: 4, 20, 32;
  --acc: #5df5c4;
  --acc-hover: #8bf8d6;
  --acc-ink: #04201a;
  --acc-rgb: 93, 245, 196;
  --g1: #23d5c8;
  --g1-rgb: 35, 213, 200;
  --g2: #3b6cff;
  --g2-rgb: 59, 108, 255;
  --g3: #9b5cff;
  --g3-rgb: 155, 92, 255;
  --g4: #2ee6a6;
  --g4-rgb: 46, 230, 166;
}

/* Ember */
:root[data-scheme="sunset"] {
  --bg: #13081d;
  --bg-2: #1b0d28;
  --bg-3: #261236;
  --bg-rgb: 19, 8, 29;
  --acc: #ffb547;
  --acc-hover: #ffc873;
  --acc-ink: #241104;
  --acc-rgb: 255, 181, 71;
  --g1: #ff5f8a;
  --g1-rgb: 255, 95, 138;
  --g2: #a14dff;
  --g2-rgb: 161, 77, 255;
  --g3: #ff8a3d;
  --g3-rgb: 255, 138, 61;
  --g4: #ffcf5c;
  --g4-rgb: 255, 207, 92;
}

/* Polar */
:root[data-scheme="graphite"] {
  --bg: #090e19;
  --bg-2: #0e1524;
  --bg-3: #141d31;
  --bg-rgb: 9, 14, 25;
  --acc: #8fe3ff;
  --acc-hover: #b5edff;
  --acc-ink: #06202b;
  --acc-rgb: 143, 227, 255;
  --g1: #6ad1ff;
  --g1-rgb: 106, 209, 255;
  --g2: #5b7cff;
  --g2-rgb: 91, 124, 255;
  --g3: #b4c8ff;
  --g3-rgb: 180, 200, 255;
  --g4: #47b5ff;
  --g4-rgb: 71, 181, 255;
}

/* ── 2. Reset & base ───────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
  color-scheme: dark;
}

body {
  min-height: 100vh;
  background: var(--bg);
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--f-head);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(var(--acc-rgb), 0.85);
  color: var(--acc-ink);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--acc);
  font-weight: 700;
  color: var(--acc-ink);
}

.skip-link:focus {
  top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── 3. Layout primitives ──────────────────────────────────────────────── */

/* Everything above the footer. overflow: clip (not hidden) keeps the glows
   from widening the page without breaking position: sticky. */
.sheet {
  position: relative;
  overflow-x: clip;
}

.container {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(var(--wrap-narrow) + var(--gutter) * 2);
}

.sec {
  position: relative;
  isolation: isolate;
  padding-block: var(--sec);
}

/* Soft colour glows — radial gradients, no blur filters */
.glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--c, var(--g2-rgb)), var(--o, 0.35)), transparent);
}

.glow--hero-a {
  --c: var(--g2-rgb);
  top: -180px;
  right: -160px;
  width: 760px;
  height: 680px;
}

.glow--hero-b {
  --c: var(--g1-rgb);
  --o: 0.28;
  top: 280px;
  left: -300px;
  width: 720px;
  height: 640px;
}

.glow--spot {
  --c: var(--g3-rgb);
  --o: 0.22;
  top: 0;
  right: 10%;
  width: 620px;
  height: 520px;
}

.glow--biz {
  --c: var(--g1-rgb);
  --o: 0.22;
  top: 10%;
  left: -260px;
  width: 640px;
  height: 640px;
}

.glow--lens {
  --c: var(--g2-rgb);
  --o: 0.4;
  top: 50%;
  left: 50%;
  width: 1100px;
  height: 700px;
  transform: translate(-50%, -50%);
}

.glow--pol {
  --c: var(--g4-rgb);
  --o: 0.2;
  top: 0;
  right: -220px;
  width: 640px;
  height: 640px;
}

.glow--habits {
  --c: var(--g1-rgb);
  --o: 0.24;
  bottom: -120px;
  left: 50%;
  width: 1000px;
  height: 560px;
  transform: translateX(-50%);
}

.glow--signup-a {
  --c: var(--g1-rgb);
  --o: 0.5;
  bottom: -260px;
  left: -200px;
  width: 760px;
  height: 640px;
}

.glow--signup-b {
  --c: var(--g4-rgb);
  --o: 0.38;
  top: -240px;
  right: -180px;
  width: 700px;
  height: 600px;
}

.glow--banner-a {
  --c: var(--g2-rgb);
  --o: 0.38;
  top: -220px;
  right: -120px;
  width: 720px;
  height: 560px;
}

.glow--banner-b {
  --c: var(--g1-rgb);
  --o: 0.22;
  bottom: -260px;
  left: -260px;
  width: 640px;
  height: 520px;
}

.glow--footer {
  --c: var(--g2-rgb);
  --o: 0.3;
  top: -200px;
  left: 50%;
  width: 1200px;
  height: 480px;
  transform: translateX(-50%);
}

/* Frosted glass card — the basic building block */
.glass,
.desk,
.gcard,
.habit,
.post-card,
.aside-panel {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--glass-2), var(--glass));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* Media wrappers produced by st_thumb() */
[class*="__media"] {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-3);
}

/* The image is taken out of flow so the wrapper's aspect-ratio (or inset)
   alone sets its size — a tall upload can never stretch a card. */
[class*="__media"] img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.media__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(var(--g2-rgb), 0.55), transparent 60%),
    radial-gradient(circle at 80% 90%, rgba(var(--g1-rgb), 0.45), transparent 60%),
    var(--bg-3);
  font-family: var(--f-head);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  color: rgba(var(--text-rgb), 0.75);
}

/* Whole-card links: the headline link stretches over its positioned card */
.lead,
.side__item,
.spot__lead,
.spot__pic,
.hrow,
.desk,
.biz__lead,
.mini,
.gcard,
.prow,
.bento__big,
.bento__small,
.feature,
.post-card,
.row {
  position: relative;
}

.lead__title a::after,
.side__title a::after,
.spot__title a::after,
.spot__pic-title a::after,
.hrow__title a::after,
.desk__name a::after,
.biz__title a::after,
.mini__title a::after,
.gcard__title a::after,
.prow__title a::after,
.bento__title a::after,
.bento__small-title a::after,
.feature__title a::after,
.post-card__title a::after,
.row__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pill,
.go,
.btn {
  position: relative;
  z-index: 2;
}

/* Hover: images ease in, headlines light up */
.lead:hover img,
.side__item:hover img,
.spot__lead:hover img,
.spot__pic:hover img,
.hrow:hover img,
.biz__lead:hover img,
.mini:hover img,
.gcard:hover img,
.prow:hover img,
.bento__big:hover img,
.bento__small:hover img,
.feature:hover img,
.post-card:hover img,
.row:hover img {
  transform: scale(1.05);
}

.side__item:hover .side__title,
.spot__lead:hover .spot__title,
.hrow:hover .hrow__title,
.biz__lead:hover .biz__title,
.mini:hover .mini__title,
.gcard:hover .gcard__title,
.prow:hover .prow__title,
.bento__big:hover .bento__title,
.bento__small:hover .bento__small-title,
.feature:hover .feature__title,
.post-card:hover .post-card__title,
.row:hover .row__title {
  color: var(--acc);
}

/* Line clamps */
.lead__dek,
.side__dek,
.spot__dek,
.prow__dek,
.bento__dek,
.post-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.side__title,
.hrow__title,
.mini__title,
.gcard__title,
.bento__small-title,
.row__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  transition: color 0.2s;
}

/* ── 3b. Notched corners ───────────────────────────────────────────────
   A .notch element loses a rounded square from its bottom-right corner,
   with soft fillets where the cut meets the edges. The parent sets
   --notch (the size of the cut) and holds a .go button that sits in it. */
.notch {
  -webkit-mask-image: var(--notch-shape), linear-gradient(#000 0 0);
  -webkit-mask-position: right bottom, 0 0;
  -webkit-mask-size: var(--notch) var(--notch), 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: xor;
  mask-image: var(--notch-shape), linear-gradient(#000 0 0);
  mask-position: right bottom, 0 0;
  mask-size: var(--notch) var(--notch), 100% 100%;
  mask-repeat: no-repeat;
  mask-composite: exclude;
}

.notch--lg {
  --notch-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Cpath d='M128 4V128H4A20 20 0 0 0 24 108V54A30 30 0 0 1 54 24H108A20 20 0 0 0 128 4Z'/%3E%3C/svg%3E");
}

.notch--sm {
  --notch-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 58'%3E%3Cpath d='M58 0V58H0A12 12 0 0 0 12 46V30A18 18 0 0 1 30 12H46A12 12 0 0 0 58 0Z'/%3E%3C/svg%3E");
}

.go {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.25s;
}

.go--lg {
  width: calc(var(--notch) * 0.72);
  height: calc(var(--notch) * 0.72);
  border-radius: calc(var(--notch) * 0.19);
  background: var(--acc);
  color: var(--acc-ink);
  box-shadow:
    0 0 0 6px rgba(var(--acc-rgb), 0.16),
    0 14px 44px -6px rgba(var(--acc-rgb), 0.65);
}

.go--sm {
  width: calc(var(--notch) * 0.655);
  height: calc(var(--notch) * 0.655);
  border-radius: 12px;
  background: #fff;
  color: var(--bg);
}

.lead:hover .go,
.side__item:hover .go,
.mini:hover .go,
.feature:hover .go,
.post-card:hover .go {
  transform: rotate(45deg);
}

.side__item:hover .go--sm,
.mini:hover .go--sm,
.post-card:hover .go--sm {
  background: var(--acc);
  color: var(--acc-ink);
}

/* ── 4. Buttons, pills, meta, badges, section heads ────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--f-sans);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--sm {
  min-height: 42px;
  padding: 0 1.15rem;
  font-size: 0.88rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--acc {
  background: var(--acc);
  color: var(--acc-ink);
  box-shadow: 0 12px 32px -14px rgba(var(--acc-rgb), 0.9);
}

.btn--acc:hover {
  background: var(--acc-hover);
  box-shadow: 0 16px 36px -14px rgba(var(--acc-rgb), 1);
}

.btn--ghost {
  border-color: var(--line-2);
  background: var(--glass);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(var(--acc-rgb), 0.7);
  color: var(--acc);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(var(--bg-rgb), 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}

.pill:hover {
  border-color: var(--acc);
  color: var(--acc);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.8rem;
  font-size: 0.82rem;
  color: var(--text-3);
}

.meta--light {
  color: rgba(var(--text-rgb), 0.85);
}

.meta__date,
.meta__read {
  white-space: nowrap;
}

.eyebrow,
.shead__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.6rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--glass);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}

.eyebrow::before,
.shead__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 12px rgba(var(--acc-rgb), 0.9);
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 0 rgba(var(--up-rgb), 0.6);
  animation: st-pulse 2s infinite;
}

@keyframes st-pulse {
  70% { box-shadow: 0 0 0 8px rgba(var(--up-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--up-rgb), 0); }
}

.arrow {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--glass-3);
  color: var(--text);
  transition: background 0.2s, color 0.2s, transform 0.25s var(--ease);
}

/* Round gradient icon badge, colour rotates with position */
.badge-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--b1, var(--g1)), var(--b2, var(--g2)));
  box-shadow: 0 10px 26px -10px rgba(var(--g2-rgb), 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
}

:nth-child(4n + 2) > .badge-icon,
:nth-child(4n + 2) > * > .badge-icon {
  --b1: var(--g3);
  --b2: var(--g4);
}

:nth-child(4n + 3) > .badge-icon,
:nth-child(4n + 3) > * > .badge-icon {
  --b1: var(--g4);
  --b2: var(--g2);
}

:nth-child(4n + 4) > .badge-icon,
:nth-child(4n + 4) > * > .badge-icon {
  --b1: var(--g1);
  --b2: var(--g4);
}

/* Section head */
.shead {
  display: grid;
  gap: 1rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.shead--split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: end;
}

.shead--center {
  justify-items: center;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.shead__titles {
  display: grid;
  justify-items: start;
  gap: 1rem;
}

.shead--center .shead__titles {
  justify-items: center;
}

.shead__title {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
}

.shead__side {
  display: grid;
  gap: 1rem;
}

.shead--split .shead__side {
  justify-items: start;
}

.shead__kicker {
  max-width: 56ch;
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--text-2);
}

.shead__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.shead__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(var(--acc-rgb), 0.5);
  font-weight: 700;
  color: var(--acc);
  transition: gap 0.2s;
}

.shead__more:hover {
  gap: 0.7rem;
}

/* ── 5. Rate strip ─────────────────────────────────────────────────────── */
.ratebar {
  position: relative;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.78rem;
}

.ratebar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 38px;
}

.ratebar__flag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-2);
}

.ratebar__list {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}

.ratebar__list::-webkit-scrollbar {
  display: none;
}

.cap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--glass);
  white-space: nowrap;
}

.cap__sym {
  font-weight: 700;
  color: var(--text-2);
}

.cap__val {
  font-family: var(--f-head);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.cap__chg {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.is-up {
  color: var(--up);
}

.is-down {
  color: var(--down);
}

.is-flat {
  color: var(--text-3);
}

/* ── 6. Masthead ───────────────────────────────────────────────────────── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 0.75rem;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.admin-bar .masthead {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .masthead {
    top: 0;
  }
}

.masthead.is-stuck {
  padding-block: 0.5rem;
  background: rgba(var(--bg-rgb), 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), 0 20px 40px -30px rgba(0, 0, 0, 0.9);
}

.masthead__bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 60px;
}

.masthead__brand {
  flex: none;
}

.custom-logo,
.masthead__logo-img,
.drawer__logo-img,
.footer-logo-img {
  width: auto;
  height: var(--logo-h, 45px);
}

.drawer .custom-logo,
.drawer__logo-img {
  height: 40px;
}

.site-logo,
.footer-logo-text {
  font-family: var(--f-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.masthead__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
}

.nav-list a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-2);
  transition: background 0.2s, color 0.2s;
}

.nav-list a:hover {
  color: var(--text);
}

.nav-list .current-menu-item > a,
.nav-list .current-category-ancestor > a,
.nav-list .current-post-ancestor > a {
  background: var(--glass-3);
  color: var(--text);
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.masthead__link {
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-2);
  transition: color 0.2s;
}

.masthead__link:hover {
  color: var(--acc);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--glass);
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.nav-toggle__bar:nth-child(2) {
  width: 70%;
}

.search-panel {
  padding-bottom: 0.75rem;
}

.search-panel__form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.4rem 0.4rem 2.8rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--glass-2);
}

.search-panel__icon {
  position: absolute;
  left: 1rem;
  color: var(--text-3);
}

.search-panel__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
}

/* ── 7. Mobile drawer ──────────────────────────────────────────────────── */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  width: min(380px, 88vw);
  padding: 1.25rem 1.5rem 1.5rem;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--g2-rgb), 0.35), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(var(--g1-rgb), 0.25), transparent 55%),
    var(--bg-2);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0s 0.35s;
}

.drawer.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.35s var(--ease);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.drawer__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text);
}

.drawer__eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.nav-list--drawer {
  display: grid;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.nav-list--drawer a {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--f-head);
  font-size: 1.25rem;
  color: var(--text);
}

.nav-list--drawer .current-menu-item > a {
  background: none;
  color: var(--acc);
}

.drawer__foot {
  margin-top: auto;
  padding-top: 2rem;
}

.drawer__note {
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: var(--text-2);
}

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(2, 4, 16, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s;
}

.drawer-scrim.is-visible {
  opacity: 1;
}

/* ── 8. Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(0.5rem, 2vw, 1.5rem);
}

.hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.hero__title {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  background: linear-gradient(100deg, #fff 30%, rgba(var(--g1-rgb), 1) 75%, rgba(var(--g2-rgb), 1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__date {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
}

/* Lead story: image fills a notched card, copy on a dark fade */
.lead {
  --notch: 128px;
  min-height: 520px;
}

.lead__card {
  position: relative;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--bg-3);
}

.lead__media {
  position: absolute;
  inset: 0;
}

.lead__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb), 0) 30%, rgba(var(--bg-rgb), 0.55) 58%, rgba(var(--bg-rgb), 0.95) 100%),
    linear-gradient(90deg, rgba(var(--bg-rgb), 0.35), transparent 60%);
}

.lead__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  justify-items: start;
  gap: 0.85rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  padding-right: calc(var(--notch) + 1rem);
}

.lead__title {
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 700;
  line-height: 1.12;
  text-wrap: balance;
}

.lead__dek {
  max-width: 54ch;
  font-size: 1rem;
  color: rgba(var(--text-rgb), 0.82);
}

.lead__date {
  font-size: 0.85rem;
  color: rgba(var(--text-rgb), 0.7);
}

/* Three side stories */
.side {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-content: space-between;
}

.side__item {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.side__thumb {
  --notch: 60px;
  position: relative;
}

.side__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
}

.side__body {
  display: grid;
  justify-items: start;
  gap: 0.45rem;
}

.side__n {
  font-family: var(--f-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--acc);
}

.side__title {
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 1.12rem;
  line-height: 1.28;
}

.side__dek {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-2);
}

/* The wire: a pill that scrolls the next headlines */
.wire {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(var(--bg-rgb), 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.wire__label {
  flex: none;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: var(--acc);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acc-ink);
}

.wire__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.wire__track {
  display: flex;
  width: max-content;
  animation: st-wire 70s linear infinite;
}

.wire:hover .wire__track,
.wire:focus-within .wire__track {
  animation-play-state: paused;
}

.wire__list {
  display: flex;
  flex: none;
}

.wire__list li {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.wire__list li::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-inline: 1.25rem;
  border-radius: 50%;
  background: var(--acc);
}

.wire__list a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.2s;
}

.wire__list a:hover {
  color: var(--text);
}

@keyframes st-wire {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .wire__viewport {
    overflow-x: auto;
  }

  .wire__track {
    animation: none;
  }

  .wire__list[aria-hidden="true"] {
    display: none;
  }
}

/* ── 9. Spotlight — stock desk ─────────────────────────────────────────── */
.spot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.spot__panel {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 1.1rem;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--g2-rgb), 0.28), transparent 55%),
    linear-gradient(160deg, var(--bg-3), var(--bg-2));
  box-shadow: var(--shadow);
}

.spot__heading {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
}

.spot__lead {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  width: 100%;
  margin-top: 0.5rem;
}

.spot__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}

.spot__lead-body {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
}

.spot__lead-body .badge-icon {
  --b1: var(--g3);
  --b2: var(--g4);
  width: 42px;
  height: 42px;
}

.spot__title {
  font-size: 1.18rem;
  line-height: 1.3;
  transition: color 0.2s;
}

.spot__dek {
  font-size: 0.9rem;
  color: var(--text-2);
}

.spot__pic {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
}

.spot__pic-media {
  position: absolute;
  inset: 0;
}

.spot__pic-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(var(--bg-rgb), 0.92));
}

.spot__pic-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  justify-items: start;
  gap: 0.8rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.spot__pic-title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

.spot__pic-read,
.biz__read,
.feature__read {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}

.spot__rows {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.55fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
}

.hrow {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass);
  transition: border-color 0.2s, background 0.2s;
}

.hrow:hover {
  border-color: var(--line-2);
  background: var(--glass-2);
}

.hrow__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
}

.hrow__body {
  display: grid;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-3);
}

.hrow__title {
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--text);
}

.hrow:hover .arrow,
.spot__all:hover .arrow,
.desk:hover .arrow {
  background: var(--acc);
  color: var(--acc-ink);
  transform: rotate(45deg);
}

.spot__all {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 100% 100%, rgba(var(--acc-rgb), 0.35), transparent 60%),
    linear-gradient(140deg, rgba(var(--g2-rgb), 0.45), rgba(var(--g1-rgb), 0.25));
  border: 1px solid var(--line-2);
  font-family: var(--f-head);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
}

.spot__all .arrow {
  align-self: flex-end;
}

/* ── 10. Desks ─────────────────────────────────────────────────────────── */
.desks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* Glass card with a clipped bottom-right corner */
.desk {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.6rem;
  border-radius: var(--r-lg);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.desk:hover {
  border-color: var(--line-2);
  background: linear-gradient(160deg, var(--glass-3), var(--glass));
  transform: translateY(-4px);
}

.desk__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.4rem;
}

.desk__count {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-2);
}

.desk__name {
  font-size: 1.35rem;
}

.desk__text {
  flex: 1;
  font-size: 0.94rem;
  color: var(--text-2);
}

.desk__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--up);
}

.desk--cta {
  border-color: rgba(var(--acc-rgb), 0.35);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--acc-rgb), 0.3), transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(var(--g2-rgb), 0.4), transparent 65%),
    var(--bg-2);
}

.desk--cta .badge-icon {
  --b1: var(--acc);
  --b2: var(--g3);
  color: var(--acc-ink);
}

/* ── 11. Business ──────────────────────────────────────────────────────── */
.biz {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.biz__lead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 100% 100%, rgba(var(--g1-rgb), 0.22), transparent 60%),
    linear-gradient(160deg, var(--bg-3), var(--bg-2));
  box-shadow: var(--shadow);
}

.biz__media {
  aspect-ratio: 5 / 3;
  height: 100%;
}

.biz__body {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1rem;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}

.biz__title {
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  transition: color 0.2s;
}

.biz__dek {
  color: var(--text-2);
}

.biz__minis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.mini {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-3);
}

.mini__thumb {
  --notch: 60px;
  position: relative;
  margin-bottom: 0.4rem;
}

.mini__media {
  aspect-ratio: 5 / 3;
  border-radius: var(--r-lg);
}

.mini__title {
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--text);
}

/* ── 12. Inflation lens ────────────────────────────────────────────────── */
.lens {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 0% 100%, rgba(var(--g1-rgb), 0.2), transparent 55%),
    linear-gradient(160deg, rgba(var(--bg-rgb), 0.55), rgba(var(--bg-rgb), 0.85));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lens .shead {
  margin-bottom: 2rem;
}

.lens__controls {
  display: grid;
  gap: 0.75rem;
}

.lens__field {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
}

.lens__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}

.lens__value {
  font-family: var(--f-head);
  font-size: 1.35rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Range slider with a filled track (--fill set by main.js) */
.range {
  --fill: 50%;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--g1), var(--g2)) 0 0 / var(--fill) 100% no-repeat, var(--glass-3);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.range::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 1px var(--acc), 0 0 18px rgba(var(--acc-rgb), 0.7);
  -webkit-appearance: none;
  appearance: none;
}

.range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 1px var(--acc), 0 0 18px rgba(var(--acc-rgb), 0.7);
}

.lens__rates {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.seg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
}

.seg__btn {
  min-height: 42px;
  border-radius: 999px;
  font-family: var(--f-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-2);
  transition: background 0.2s, color 0.2s;
}

.seg__btn:hover {
  color: var(--text);
}

.seg__btn[aria-pressed="true"] {
  background: var(--acc);
  color: var(--acc-ink);
}

.lens__board {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass);
}

.lens__result {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
}

.lens__result .lens__label {
  flex: 1 0 100%;
}

.lens__big {
  font-family: var(--f-head);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--acc);
  text-shadow: 0 0 40px rgba(var(--acc-rgb), 0.45);
}

.lens__loss {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(var(--down-rgb), 0.14);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--down);
}

.lens__chart {
  display: grid;
  gap: 0.5rem;
}

.lens__bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 150px;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--line-2);
}

.lens__bars i {
  flex: 1;
  height: calc(var(--h) * 100%);
  min-width: 2px;
  border-radius: 5px 5px 1px 1px;
  background: linear-gradient(180deg, var(--g1), rgba(var(--g2-rgb), 0.35));
  transition: height 0.3s var(--ease);
}

.lens__bars i:first-child {
  background: linear-gradient(180deg, var(--acc), rgba(var(--acc-rgb), 0.35));
}

.lens__bars i:last-child {
  background: linear-gradient(180deg, var(--g4), rgba(var(--g4-rgb), 0.3));
  box-shadow: 0 0 18px rgba(var(--g4-rgb), 0.5);
}

.lens__axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-3);
}

.lens__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.lens__stats li {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: var(--r-md);
  background: var(--glass-2);
}

.lens__stats b {
  font-family: var(--f-head);
  font-size: 1.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lens__basket {
  display: grid;
  gap: 0.25rem;
}

.lens__basket li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px dashed var(--line);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.lens__item {
  color: var(--text-2);
}

.lens__now {
  color: var(--text-3);
}

.lens__arrow {
  color: var(--text-3);
}

.lens__then {
  min-width: 6ch;
  font-family: var(--f-head);
  font-weight: 600;
  text-align: right;
}

.lens__note {
  max-width: 80ch;
  margin: 1.25rem auto 0;
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-3);
}

/* ── 13. Tech ──────────────────────────────────────────────────────────── */
.tech {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.tech__copy {
  position: sticky;
  top: 120px;
}

.tech__copy .shead {
  margin-bottom: 1.75rem;
}

.tech__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.gcard {
  display: grid;
  align-content: start;
  padding: 0.6rem;
  border-radius: var(--r-lg);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.gcard:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
}

.gcard__thumb {
  position: relative;
}

.gcard__media {
  aspect-ratio: 5 / 3;
  border-radius: calc(var(--r-lg) - 6px);
}

.gcard__pill {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.gcard__body {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 0.6rem 0.6rem;
}

.gcard__title {
  font-size: 1.1rem;
  line-height: 1.3;
}

.gcard__meta {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ── 14. Policy ────────────────────────────────────────────────────────── */
.pol {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--g4-rgb), 0.18), transparent 50%),
    linear-gradient(160deg, var(--bg-3), var(--bg-2));
  box-shadow: var(--shadow);
}

.pol__head {
  display: grid;
  align-content: start;
  justify-items: start;
}

.pol__head .shead {
  margin-bottom: 1.75rem;
}

.pol__list {
  display: grid;
}

.prow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 150px;
  gap: 1.25rem;
  align-items: center;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.prow:first-child {
  padding-top: 0;
}

.prow:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.prow__n {
  align-self: start;
  font-family: var(--f-head);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(180deg, var(--g4), var(--g2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.prow__body {
  display: grid;
  gap: 0.4rem;
}

.prow__title {
  font-size: 1.15rem;
  line-height: 1.3;
  transition: color 0.2s;
}

.prow__dek {
  font-size: 0.9rem;
  color: var(--text-2);
}

.prow__meta {
  font-size: 0.8rem;
  color: var(--text-3);
}

.prow__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
}

/* ── 15. Digital assets — bento ────────────────────────────────────────── */
/* One big card on the left; four compact rows stacked beside it. */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-auto-rows: auto;
  gap: clamp(0.85rem, 1.6vw, 1.1rem) clamp(1rem, 2.5vw, 1.75rem);
}

.bento__big {
  grid-row: span 4;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 100% 100%, rgba(var(--g3-rgb), 0.22), transparent 55%),
    linear-gradient(160deg, var(--bg-3), var(--bg-2));
  box-shadow: var(--shadow);
}

.bento__media {
  aspect-ratio: 5 / 3;
}

.bento__body {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.8rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.bento__title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
  transition: color 0.2s;
}

.bento__dek {
  color: var(--text-2);
}

.bento__small {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
  padding: 0.55rem 1.1rem 0.55rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass);
  transition: border-color 0.25s, background 0.25s;
}

.bento__small:hover {
  border-color: var(--line-2);
  background: var(--glass-2);
}

.bento__small-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
}

.bento__small-body {
  display: grid;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-3);
}

.bento__small-title {
  font-size: 1.02rem;
  line-height: 1.32;
  color: var(--text);
}
/* ── 16. Money habits ──────────────────────────────────────────────────── */
.habits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  counter-reset: habit;
}

.habit {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1.6rem 1.5rem;
  border-radius: var(--r-lg);
  counter-increment: habit;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.habit:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
}

.habit::after {
  content: counter(habit, decimal-leading-zero);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--f-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-3);
}

.habit .badge-icon {
  margin-bottom: 0.4rem;
}

.habit__title {
  font-size: 1.08rem;
}

.habit__text {
  font-size: 0.9rem;
  color: var(--text-2);
}

/* ── 17. Newsletter ────────────────────────────────────────────────────── */
.signup__panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  overflow: hidden;
  padding: clamp(1.75rem, 5vw, 4rem);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--bg-3), var(--bg-2) 60%);
  box-shadow: var(--shadow);
}

.signup__pitch {
  display: grid;
  justify-items: start;
  gap: 1.1rem;
}

.signup__title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.signup__sub {
  max-width: 50ch;
  font-size: 1.04rem;
  color: var(--text-2);
}

.signup__facts {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.75rem;
}

.signup__facts li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.signup__facts .badge-icon {
  width: 40px;
  height: 40px;
}

.signup__facts b {
  display: block;
  font-family: var(--f-head);
  font-size: 0.98rem;
  font-weight: 600;
}

.signup__facts small {
  display: block;
  font-size: 0.85rem;
  color: var(--text-3);
}

.signup__card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: rgba(var(--bg-rgb), 0.55);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.signup__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.75rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
  color: var(--text-3);
}

.signup__legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CF7 — markup is owned by the plugin, so we only restyle it. Blocks stack:
     .form-options   newsletter picks → 2×2 tiles
     .form-fields    email, then submit on its own row
     .form-privacy   consent */
.signup .hidden-fields-container,
.signup .screen-reader-response {
  display: none;
}

.signup .wpcf7-form {
  display: grid;
  gap: 1.4rem;
}

.signup .wpcf7-form p {
  margin: 0;
}

.signup .wpcf7-form br {
  display: none;
}

.signup .wpcf7-list-item {
  display: block;
  margin: 0;
}

.signup .form-label,
.signup .form-fields p::before {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* Newsletter picks: tiles */
.signup .form-options .wpcf7-checkbox,
.signup .form-options .wpcf7-radio {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.signup .form-options .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  height: 100%;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.signup .form-options .wpcf7-list-item label:hover {
  border-color: var(--line-2);
}

.signup .form-options .wpcf7-list-item label:has(input:checked) {
  border-color: rgba(var(--acc-rgb), 0.7);
  background: rgba(var(--acc-rgb), 0.1);
  color: var(--text);
}

.signup .form-options input[type="checkbox"],
.signup .form-options input[type="radio"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0.05rem 0 0;
  border: 1.5px solid var(--line-2);
  border-radius: 6px;
  background: transparent center / 11px no-repeat;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.signup .form-options input[type="radio"] {
  border-radius: 50%;
}

.signup .form-options input:checked {
  border-color: var(--acc);
  background-color: var(--acc);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317112b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.signup .form-options label:has(input:focus-visible) {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

/* Email and submit button stacked, both full width, with the error tip
   in between */
.signup .form-fields p {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.signup .form-fields p::before {
  content: "Your email address";
  flex: 1 0 100%;
  margin-bottom: 0.1rem;
}

.signup .form-fields .wpcf7-form-control-wrap {
  display: contents;
}

.signup .wpcf7-email {
  flex: 1 0 100%;
  order: 1;
  min-width: 0;
  min-height: 54px;
  padding: 0 1.2rem 0 3rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--glass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a92ba' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") 1.1rem center / 18px no-repeat;
  font-family: var(--f-sans);
  font-size: 1rem;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.signup .wpcf7-email::placeholder {
  color: var(--text-3);
}

.signup .wpcf7-email:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 4px rgba(var(--acc-rgb), 0.15);
}

.signup .wpcf7-email.wpcf7-not-valid {
  border-color: var(--down);
}

.signup .wpcf7-submit {
  flex: 1 0 100%;
  order: 3;
  min-height: 52px;
  padding: 0 2rem;
  text-align: center;
  border: none;
  border-radius: 999px;
  background: var(--acc);
  box-shadow: 0 14px 32px -14px rgba(var(--acc-rgb), 0.9);
  font-family: var(--f-sans);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--acc-ink);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}

.signup .wpcf7-submit:hover {
  background: var(--acc-hover);
  transform: translateY(-2px);
}

.signup .wpcf7-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Spinner sits inside the right end of the full-width button */
.signup .wpcf7-spinner {
  position: absolute;
  right: 16px;
  bottom: 14px;
  margin: 0;
  background-color: rgba(23, 17, 43, 0.45);
  pointer-events: none;
}

.signup .wpcf7-not-valid-tip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.5rem;
  padding: 0.45rem 0.7rem 0.45rem 0.5rem;
  border: 1px solid rgba(var(--down-rgb), 0.35);
  border-radius: var(--r-sm);
  background: rgba(var(--down-rgb), 0.1);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--down);
  animation: st-tip-in 0.25s ease-out;
}

.signup .wpcf7-not-valid-tip::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--down);
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}

@keyframes st-tip-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.signup .form-fields .wpcf7-not-valid-tip {
  flex: 1 0 100%;
  order: 2;
  width: auto;
  margin: 0;
}

.signup .wpcf7-checkbox.wpcf7-not-valid .wpcf7-list-item label {
  border-style: dashed;
  border-color: var(--down);
}

/* Consent */
.signup .form-privacy .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-3);
  cursor: pointer;
}

.signup .form-privacy input[type="checkbox"] {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 0.2em;
  accent-color: var(--acc);
  cursor: pointer;
}

.signup .wpcf7-list-item-label a {
  color: var(--acc);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signup .wpcf7-acceptance.wpcf7-not-valid .wpcf7-list-item-label {
  color: var(--text);
}

.signup .wpcf7-acceptance.wpcf7-not-valid input[type="checkbox"] {
  outline: 2px solid var(--down);
  outline-offset: 2px;
}

.signup .form-privacy .wpcf7-not-valid-tip {
  margin-left: 1.6rem;
}

/* Form-level response banner */
.signup .wpcf7-response-output {
  --tone: var(--text-2);
  --tone-rgb: var(--text-rgb);
  --icon: "i";
  position: relative;
  display: none;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  column-gap: 0.8rem;
  width: 100%;
  margin: 0 !important;
  padding: 0.8rem 1rem 0.8rem 0.8rem !important;
  border: 1px solid rgba(var(--tone-rgb), 0.35) !important;
  border-radius: var(--r-md);
  background: rgba(var(--tone-rgb), 0.08);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  animation: st-tip-in 0.3s ease-out;
}

.signup .wpcf7-response-output::before {
  content: var(--icon);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tone);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bg);
}

.signup .wpcf7-form.sent .wpcf7-response-output {
  --tone: var(--up);
  --tone-rgb: var(--up-rgb);
  --icon: "✓";
  display: grid;
}

.signup .wpcf7-form.invalid .wpcf7-response-output,
.signup .wpcf7-form.unaccepted .wpcf7-response-output,
.signup .wpcf7-form.payment-required .wpcf7-response-output {
  --tone: var(--warn);
  --tone-rgb: 255, 181, 71;
  --icon: "!";
  display: grid;
}

.signup .wpcf7-form.spam .wpcf7-response-output,
.signup .wpcf7-form.failed .wpcf7-response-output,
.signup .wpcf7-form.aborted .wpcf7-response-output {
  --tone: var(--down);
  --tone-rgb: var(--down-rgb);
  --icon: "×";
  display: grid;
}

/* ── 18. Inner-page banner ─────────────────────────────────────────────── */
.banner {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.banner__inner {
  display: grid;
  justify-items: start;
  gap: 1.1rem;
}

.banner--center .banner__inner {
  justify-items: center;
  text-align: center;
}

.banner__title {
  max-width: 20ch;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.banner__dek {
  max-width: 60ch;
  font-size: 1.08rem;
  color: var(--text-2);
}

/* ── 19. Archive, search & card grids ──────────────────────────────────── */
.archive-main {
  padding-bottom: var(--sec);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.feature__thumb {
  --notch: 116px;
  position: relative;
}

.feature__media {
  aspect-ratio: 5 / 3;
  border-radius: var(--r-xl);
}

.feature__body {
  display: grid;
  justify-items: start;
  gap: 1rem;
}

.feature__flag {
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--acc);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--acc-ink);
}

.feature__title {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  transition: color 0.2s;
}

.feature__dek {
  font-size: 1.02rem;
  color: var(--text-2);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.post-card {
  display: flex;
  flex-direction: column;
  padding: 0.6rem;
  border-radius: var(--r-lg);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.post-card:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
}

.post-card__thumb {
  --notch: 60px;
  position: relative;
}

.post-card__media {
  aspect-ratio: 5 / 3;
  border-radius: calc(var(--r-lg) - 6px);
}

.post-card__body {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 1rem 0.6rem 0.6rem;
}

.post-card__title {
  font-size: 1.12rem;
  line-height: 1.3;
  transition: color 0.2s;
}

.post-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-2);
}

.pagination {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  font-weight: 700;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}

.pagination a.page-numbers:hover {
  border-color: var(--acc);
  color: var(--acc);
}

.pagination .page-numbers.current {
  border-color: var(--acc);
  background: var(--acc);
  color: var(--acc-ink);
}

.pagination .dots {
  border: 0;
  background: none;
}

.no-results {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  max-width: 520px;
  margin: 2rem auto;
  padding: 3rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--glass);
  text-align: center;
  color: var(--text-2);
}

/* Compact rows (404, single sidebar) */
.row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.row__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
}

.row__body {
  display: grid;
  gap: 0.3rem;
}

.row__date {
  font-size: 0.78rem;
  color: var(--text-3);
}

.row__title {
  font-size: 0.98rem;
  line-height: 1.32;
}

/* ── 20. Single ────────────────────────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 3px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--acc));
  box-shadow: 0 0 12px rgba(var(--acc-rgb), 0.7);
}

.single-main {
  padding-bottom: var(--sec);
}

.article-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.88rem;
  color: var(--text-2);
}

.article-head__read::before {
  content: "·";
  margin-right: 1rem;
  color: var(--text-3);
}

.article-head__title {
  max-width: 24ch;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.article-head__dek {
  max-width: 62ch;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-2);
}

.article-hero {
  position: relative;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 8% 6% -6%;
  z-index: -1;
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, rgba(var(--g1-rgb), 0.55), rgba(var(--g2-rgb), 0.55), rgba(var(--g3-rgb), 0.45));
  filter: blur(60px);
  opacity: 0.55;
}

.article-hero__img {
  width: 100%;
  max-height: 640px;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}

.article-hero__caption {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-3);
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.single-col {
  min-width: 0;
}

.single-aside {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 1.25rem;
}

.aside-panel {
  display: grid;
  gap: 1.1rem;
  padding: 1.4rem;
  border-radius: var(--r-lg);
}

.aside-panel__heading {
  font-size: 1.05rem;
}

.aside-panel .row {
  grid-template-columns: 84px minmax(0, 1fr);
}

.aside-cta {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 0.6rem;
  overflow: hidden;
  padding: 1.6rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--g4-rgb), 0.4), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(var(--g1-rgb), 0.35), transparent 60%),
    var(--bg-2);
}

.aside-cta__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 0.3rem;
  border-radius: 50%;
  background: var(--acc);
  color: var(--acc-ink);
}

.aside-cta__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}

.aside-cta__title {
  font-family: var(--f-head);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}

.aside-cta__text {
  font-size: 0.9rem;
  color: var(--text-2);
}

.aside-cta__btn {
  margin-top: 0.5rem;
}

/* Long-form prose */
.entry-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(var(--text-rgb), 0.88);
}

.entry-content > * + * {
  margin-top: 1.4em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin-top: 2em;
  color: var(--text);
}

.entry-content h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
}

.entry-content h3 {
  font-size: 1.4rem;
}

.entry-content h4 {
  font-size: 1.18rem;
}

.entry-content h2 + *,
.entry-content h3 + *,
.entry-content h4 + * {
  margin-top: 0.75em;
}

.entry-content a {
  color: var(--acc);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: var(--acc-hover);
}

.entry-content strong {
  font-weight: 700;
  color: var(--text);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
}

.entry-content ul {
  list-style: none;
}

.entry-content ul li {
  position: relative;
}

.entry-content ul li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: -1.1em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g1), var(--g2));
}

.entry-content ol {
  list-style: decimal;
}

.entry-content ol li::marker {
  font-family: var(--f-head);
  font-weight: 700;
  color: var(--acc);
}

.entry-content li + li {
  margin-top: 0.5em;
}

.entry-content blockquote {
  position: relative;
  padding: 1.5rem 1.75rem 1.5rem 2rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--acc);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  background: var(--glass);
  font-family: var(--f-head);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text);
}

.entry-content blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--f-sans);
  font-size: 0.88rem;
  font-style: normal;
  color: var(--text-3);
}

.entry-content img,
.entry-content figure img {
  border-radius: var(--r-lg);
}

.entry-content figure {
  margin-inline: 0;
}

.entry-content figcaption,
.entry-content .wp-caption-text {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-3);
}

.entry-content hr {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

.entry-content code {
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: var(--glass-2);
  font-size: 0.9em;
}

.entry-content pre {
  overflow-x: auto;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-2);
  font-size: 0.9rem;
}

.entry-content pre code {
  padding: 0;
  background: none;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.entry-content .wp-block-table {
  overflow-x: auto;
}

.entry-content th,
.entry-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.entry-content th {
  font-family: var(--f-head);
  font-weight: 600;
  color: var(--text);
  background: var(--glass);
}

.entry-content .alignleft {
  float: left;
  margin: 0.4em 1.5em 1em 0;
}

.entry-content .alignright {
  float: right;
  margin: 0.4em 0 1em 1.5em;
}

.entry-content .aligncenter {
  margin-inline: auto;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.article-tags__label {
  margin-right: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.article-tags a {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}

.article-tags a:hover {
  border-color: var(--acc);
  color: var(--acc);
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.article-nav__side {
  display: grid;
  align-content: start;
  gap: 0.4rem;
}

.article-nav__side:has(a) {
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass);
  transition: border-color 0.2s;
}

.article-nav__side:has(a):hover {
  border-color: var(--line-2);
}

.article-nav__side--next {
  text-align: right;
}

.article-nav__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--acc);
}

.article-nav__link {
  font-family: var(--f-head);
  font-weight: 600;
  line-height: 1.35;
}

.related {
  margin-top: var(--sec);
}

/* ── 21. Page & 404 ────────────────────────────────────────────────────── */
.page-main,
.error-main {
  padding-bottom: var(--sec);
}

.page-hero {
  margin-bottom: 2.5rem;
}

.page-hero__img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}

.error-page__code {
  font-family: var(--f-head);
  font-size: clamp(5rem, 16vw, 10rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: linear-gradient(120deg, var(--g1), var(--g2), var(--g4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 40px rgba(var(--g2-rgb), 0.5));
}

.error-page__actions {
  margin-top: 0.5rem;
}

.error-recent {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--glass);
}

.error-recent__heading {
  font-size: 1.2rem;
}

/* ── 22. Footer ────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), #04061a);
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.footer-cta__title {
  margin-top: 0.75rem;
  font-family: var(--f-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.7fr)) minmax(0, 1fr);
  gap: 2.5rem;
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 1.1rem;
}

.footer-brand__desc,
.footer-col__text {
  max-width: 40ch;
  font-size: 0.92rem;
  color: var(--text-2);
}

.footer-col__title {
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.footer-col__list {
  display: grid;
  gap: 0.55rem;
}

.footer-col__list a {
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.2s;
}

.footer-col__list a:hover {
  color: var(--acc);
}

.footer-disclaimer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-3);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-3);
}

.footer-top-link {
  font-weight: 700;
  color: var(--text-2);
  transition: color 0.2s;
}

.footer-top-link:hover {
  color: var(--acc);
}

.grecaptcha-badge {
	display: none !important;
}

/* ── 23. Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .masthead__nav,
  .masthead__link {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .lead {
    min-height: 500px;
  }

  .side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .side__item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .spot {
    grid-template-columns: 1fr;
  }

  .spot__rows {
    grid-template-columns: 1fr 1fr;
  }

  .spot__all {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }

  .desks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lens {
    grid-template-columns: 1fr;
  }

  .tech {
    grid-template-columns: 1fr;
  }

  .tech__copy {
    position: static;
  }

  .pol {
    grid-template-columns: 1fr;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento__big {
    grid-row: auto;
  }

  .habits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signup__panel {
    grid-template-columns: 1fr;
  }

  .single-layout {
    grid-template-columns: 1fr;
  }

  .single-aside {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .shead--split {
    grid-template-columns: 1fr;
  }

  .biz__lead,
  .feature {
    grid-template-columns: 1fr;
  }

  .biz__media {
    height: auto;
  }

  .biz__minis,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .biz__minis .mini:last-child {
    display: none;
  }
}

@media (max-width: 640px) {
  .ratebar__flag {
    display: none;
  }

  .masthead__sub {
    display: none;
  }

  .custom-logo,
  .masthead__logo-img,
  .footer-logo-img {
    height: var(--logo-h-m, 34px);
  }

  /* Lead stacks: image on top, copy underneath */
  .lead {
    --notch: 96px;
    min-height: 0;
  }

  .lead__card {
    border: 1px solid var(--line);
    background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  }

  .lead__media {
    position: relative;
    aspect-ratio: 5 / 3;
  }

  .lead__media::after {
    background: linear-gradient(180deg, transparent 60%, rgba(var(--bg-rgb), 0.6));
  }

  .lead__body {
    position: relative;
    padding: 1.25rem 1.25rem 1.5rem;
  }

  /* Only the last lines share a row with the notch */
  .lead__dek,
  .lead__date {
    margin-right: calc(var(--notch) - 1rem);
  }

  .side {
    grid-template-columns: 1fr;
  }

  .side__item {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
  }

  .side__thumb {
    --notch: 48px;
  }

  .side__media {
    border-radius: var(--r-md);
  }

  .side__title {
    font-size: 1rem;
  }

  .side__dek,
  .side__body .meta {
    display: none;
  }

  .wire {
    border-radius: var(--r-lg);
  }

  .wire__label {
    padding: 0.6rem 0.9rem;
  }

  .spot__lead {
    grid-template-columns: 1fr;
  }

  .spot__pic {
    min-height: 380px;
  }

  .spot__rows {
    grid-template-columns: 1fr;
  }

  .hrow {
    grid-template-columns: 96px minmax(0, 1fr) auto;
  }

  .desks,
  .habits,
  .biz__minis,
  .post-grid,
  .tech__grid {
    grid-template-columns: 1fr;
  }

  .biz__minis .mini:last-child {
    display: grid;
  }

  .bento__small {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 0.9rem;
    padding-right: 0.8rem;
  }

  .prow {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .prow__media {
    display: none;
  }

  .lens__stats {
    grid-template-columns: 1fr;
  }

  .lens__basket li {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .lens__now {
    display: none;
  }

  .signup .form-options .wpcf7-checkbox,
  .signup .form-options .wpcf7-radio {
    grid-template-columns: 1fr;
  }

  .signup .wpcf7-submit {
    flex: 1 0 100%;
  }

  .single-aside {
    grid-template-columns: 1fr;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav__side--next {
    text-align: left;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-cta .btn {
    width: 100%;
  }
}
