/* ==========================================================================
   Sovereign Terminal — main.css
   Midnight navy ground, violet → blue gradients, glass cards with lit edges.
   Unbounded (display titles) · Poppins (headlines, body, figures)
   ========================================================================== */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
  /*
   * Colour tokens. Every colour in this file reads from here, so a scheme
   * only has to redefine this list (see "Colour schemes" below).
   * The *-rgb twins feed rgba() tints: rgba(var(--violet-rgb), 0.2).
   * Names are historical — in other schemes "violet" is simply the primary
   * accent, "blue" the secondary and "cyan" the highlight.
   */

  /* Ground & surfaces */
  --bg: #060822;
  --bg-rgb: 6, 8, 34;
  --bg-2: #0a0d2c;
  --bg-2-rgb: 10, 13, 46;
  --surface: #0f1338;
  --surface-2: #151a47;
  --surface-3: #1d2358;
  --glass-rgb: 56, 48, 152;
  --panel-rgb: 23, 28, 80;
  --panel-2-rgb: 13, 17, 52;
  --deep-rgb: 18, 23, 68;
  --mid-rgb: 54, 55, 190;
  --shadow-rgb: 2, 3, 18;
  --line-rgb: 146, 154, 255;
  --edge-rgb: 129, 104, 255;
  --line: rgba(var(--line-rgb), 0.13);
  --line-strong: rgba(var(--line-rgb), 0.28);
  --edge: rgba(var(--edge-rgb), 0.5);

  /* Text */
  --text: #f4f5ff;
  --text-2: #b8bce4;
  --text-3: #8187b6;
  --text-prose: #d9dcf5;
  --ink: #2a1d8f; /* text on white buttons */

  /* Accents */
  --violet: #7b3cf6;
  --violet-rgb: 123, 60, 246;
  --violet-hi: #a47bff;
  --violet-hi-rgb: 164, 123, 255;
  --violet-tint: #d2c3ff;
  --blue: #2f7bff;
  --blue-rgb: 47, 123, 255;
  --cyan: #45c9ff;
  --cyan-rgb: 69, 201, 255;
  --cyan-tint: #7fc2ff;
  --pink: #e152d6;
  --glow-rgb: 110, 70, 255;

  /* Market semantics */
  --up: #3fe0a2;
  --up-rgb: 63, 224, 162;
  --down: #ff6b93;
  --down-rgb: 255, 107, 147;

  /* Gradient stops */
  --grad-mid: #4f47ee;
  --grad-end: #2f8dff;
  --grad-text-1: #c4a3ff;
  --grad-text-2: #6fb8ff;
  --band-1: #3a1a8f;
  --band-1-rgb: 58, 26, 143;
  --band-2: #2b2fa8;
  --band-3: #1d4fc4;

  /* Gradients */
  --grad: linear-gradient(90deg, var(--violet) 0%, var(--blue) 100%);
  --grad-d: linear-gradient(135deg, var(--violet) 0%, var(--grad-mid) 48%, var(--grad-end) 100%);
  --grad-glass: linear-gradient(165deg, rgba(var(--glass-rgb), 0.62) 0%, rgba(var(--deep-rgb), 0.72) 100%);
  --grad-panel: linear-gradient(180deg, rgba(var(--panel-rgb), 0.85) 0%, rgba(var(--panel-2-rgb), 0.9) 100%);
  --grad-text: linear-gradient(90deg, var(--grad-text-1) 0%, var(--grad-text-2) 100%);
  --grad-band: linear-gradient(90deg, var(--band-1) 0%, var(--band-2) 45%, var(--band-3) 100%);

  /* Type */
  --f-display: "Unbounded", "Poppins", system-ui, sans-serif;
  --f-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --wrap: 1280px;
  --gut: 28px;
  --gap: 20px;
  --r-xl: 32px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --masthead-h: 80px;
  --shadow: 0 30px 60px -32px rgba(var(--shadow-rgb), 0.95);
  --glow: 0 0 0 1px rgba(var(--edge-rgb), 0.55), 0 18px 50px -18px rgba(var(--glow-rgb), 0.65);
}

/* ── 1b. Colour schemes ────────────────────────────────────────────────── */
/* Picked in Customizer → Colour scheme; printed as <html data-scheme="…">.
   "midnight" (the :root values above) prints no attribute. */

/* Emerald Ledger — deep forest ground, emerald → petrol gradients, gold highlights */
:root[data-scheme="emerald"] {
  --bg: #04140f;
  --bg-rgb: 4, 20, 15;
  --bg-2: #071c16;
  --bg-2-rgb: 7, 28, 22;
  --surface: #0b241c;
  --surface-2: #0f2e24;
  --surface-3: #163b2f;
  --glass-rgb: 18, 84, 66;
  --panel-rgb: 14, 46, 37;
  --panel-2-rgb: 8, 31, 25;
  --deep-rgb: 10, 36, 29;
  --mid-rgb: 14, 116, 120;
  --shadow-rgb: 1, 8, 6;
  --line-rgb: 120, 230, 190;
  --edge-rgb: 52, 211, 153;

  --text: #f1fbf7;
  --text-2: #a9cfc2;
  --text-3: #6f9a8c;
  --text-prose: #d3ebe2;
  --ink: #064e3b;

  --violet: #059669;
  --violet-rgb: 5, 150, 105;
  --violet-hi: #34d399;
  --violet-hi-rgb: 52, 211, 153;
  --violet-tint: #a7f3d0;
  --blue: #0e7490;
  --blue-rgb: 14, 116, 144;
  --cyan: #f2c14e;
  --cyan-rgb: 242, 193, 78;
  --cyan-tint: #fde68a;
  --pink: #f59e0b;
  --glow-rgb: 16, 185, 129;

  --up: #6ee7a8;
  --up-rgb: 110, 231, 168;
  --down: #ff7a8a;
  --down-rgb: 255, 122, 138;

  --grad-mid: #0d8a7c;
  --grad-end: #0e7490;
  --grad-text-1: #a7f3d0;
  --grad-text-2: #fde68a;
  --band-1: #064e3b;
  --band-1-rgb: 6, 78, 59;
  --band-2: #065f55;
  --band-3: #0e5f73;
}

/* Sunset Copper — plum ground, orange → magenta gradients, amber highlights */
:root[data-scheme="sunset"] {
  --bg: #160a10;
  --bg-rgb: 22, 10, 16;
  --bg-2: #1d0e15;
  --bg-2-rgb: 29, 14, 21;
  --surface: #261219;
  --surface-2: #311820;
  --surface-3: #3d1f29;
  --glass-rgb: 112, 38, 52;
  --panel-rgb: 50, 21, 31;
  --panel-2-rgb: 31, 13, 20;
  --deep-rgb: 44, 18, 28;
  --mid-rgb: 168, 52, 72;
  --shadow-rgb: 10, 3, 6;
  --line-rgb: 255, 176, 160;
  --edge-rgb: 255, 128, 96;

  --text: #fff6f2;
  --text-2: #e2bfb8;
  --text-3: #a8807a;
  --text-prose: #f2dcd6;
  --ink: #7c2d12;

  --violet: #ea580c;
  --violet-rgb: 234, 88, 12;
  --violet-hi: #fb923c;
  --violet-hi-rgb: 251, 146, 60;
  --violet-tint: #fed7aa;
  --blue: #db2777;
  --blue-rgb: 219, 39, 119;
  --cyan: #fbbf24;
  --cyan-rgb: 251, 191, 36;
  --cyan-tint: #fde68a;
  --pink: #f472b6;
  --glow-rgb: 240, 90, 60;

  --up: #4ade80;
  --up-rgb: 74, 222, 128;
  --down: #ff5d73;
  --down-rgb: 255, 93, 115;

  --grad-mid: #e8433f;
  --grad-end: #db2777;
  --grad-text-1: #fed7aa;
  --grad-text-2: #f9a8d4;
  --band-1: #7c2d12;
  --band-1-rgb: 124, 45, 18;
  --band-2: #9a2a3a;
  --band-3: #9d174d;
}

/* Graphite Gold — neutral charcoal ground, gold → bronze gradients */
:root[data-scheme="graphite"] {
  --bg: #0b0b0d;
  --bg-rgb: 11, 11, 13;
  --bg-2: #111114;
  --bg-2-rgb: 17, 17, 20;
  --surface: #17171b;
  --surface-2: #1e1e23;
  --surface-3: #27272e;
  --glass-rgb: 62, 54, 38;
  --panel-rgb: 32, 32, 37;
  --panel-2-rgb: 20, 20, 24;
  --deep-rgb: 24, 24, 28;
  --mid-rgb: 120, 88, 30;
  --shadow-rgb: 0, 0, 0;
  --line-rgb: 230, 220, 200;
  --edge-rgb: 212, 175, 90;

  --text: #f7f5f0;
  --text-2: #c4bfb4;
  --text-3: #8a857a;
  --text-prose: #e4e0d7;
  --ink: #422006;

  --violet: #a16207;
  --violet-rgb: 161, 98, 7;
  --violet-hi: #e0b84e;
  --violet-hi-rgb: 224, 184, 78;
  --violet-tint: #f3dfa2;
  --blue: #9a3412;
  --blue-rgb: 154, 52, 18;
  --cyan: #f0c75e;
  --cyan-rgb: 240, 199, 94;
  --cyan-tint: #f5e1a4;
  --pink: #d97706;
  --glow-rgb: 200, 150, 50;

  --up: #4ade80;
  --up-rgb: 74, 222, 128;
  --down: #f87171;
  --down-rgb: 248, 113, 113;

  --grad-mid: #a24c0c;
  --grad-end: #9a3412;
  --grad-text-1: #f5e1a4;
  --grad-text-2: #e0b84e;
  --band-1: #3d2e0a;
  --band-1-rgb: 61, 46, 10;
  --band-2: #4f3a0e;
  --band-3: #6b4a10;
}

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

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

body {
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 760px at -10% -8%, rgba(var(--violet-rgb), 0.34), transparent 62%),
    radial-gradient(900px 700px at 108% 4%, rgba(var(--blue-rgb), 0.22), transparent 62%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Footer stays at the bottom of the window on short pages */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.site-main {
  flex: 1 0 auto;
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

/* The admin bar pushes <html> down; don't let it add a scrollbar */
body.admin-bar {
  min-height: calc(100vh - 32px);
  min-height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar {
    min-height: calc(100vh - 46px);
    min-height: calc(100dvh - 46px);
  }
}

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

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

ul,
ol {
  list-style: none;
}

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

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

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--f-sans);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

::selection {
  background: var(--violet);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--violet);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 0 0 12px 0;
}
.skip-link:focus {
  left: 0;
}

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

/* ── 3. Layout primitives ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.container--narrow {
  max-width: 860px;
}

.sec {
  padding-top: clamp(4rem, 8vw, 7rem);
}

/* Soft colour glows behind selected sections */
.has-glow {
  position: relative;
}

.has-glow::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 2%;
  left: -320px;
  width: 820px;
  height: 820px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--violet-rgb), 0.26), transparent 64%);
  pointer-events: none;
}

.has-glow--right::before {
  left: auto;
  right: -320px;
  background: radial-gradient(circle, rgba(var(--blue-rgb), 0.22), transparent 64%);
}

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

[class*="__media"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
}

article:hover [class*="__media"] img,
li:hover > [class*="__media"] img {
  transform: scale(1.045);
}

[class*="__media"][class*="--empty"] {
  display: grid;
  place-items: center;
  background: var(--grad-d);
}

.media__fallback {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  padding: 0.75rem;
  text-align: center;
}

/* Hover underline shared by every headline link */
h1 a,
h2 a,
h3 a,
h4 a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1.5px;
  background-position: 0 96%;
  background-repeat: no-repeat;
  transition: background-size 0.35s, color 0.2s;
}
h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover {
  background-size: 100% 1.5px;
}

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

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

.btn--grad,
.btn--accent {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(var(--glow-rgb), 0.8);
}
.btn--grad:hover,
.btn--accent:hover {
  box-shadow: 0 14px 36px -10px rgba(var(--glow-rgb), 0.95);
  filter: brightness(1.08);
}

.btn--line,
.btn--ink {
  background: rgba(var(--violet-rgb), 0.08);
  border-color: var(--violet-hi);
  color: var(--text);
}
.btn--line:hover,
.btn--ink:hover {
  background: rgba(var(--violet-rgb), 0.24);
}

.btn--sm {
  padding: 0.72rem 1.15rem;
  font-size: 0.8125rem;
  border-radius: 9px;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--violet-tint);
  background: rgba(var(--violet-rgb), 0.18);
  border: 1px solid rgba(var(--violet-hi-rgb), 0.35);
  border-radius: 999px;
  padding: 0.4rem 0.72rem 0.38rem;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pill:hover {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

.pill--glass,
.pill--light {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pill--glass:hover,
.pill--light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--bg);
}

.pill--grad,
.pill--ink {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
}

.pill--bare {
  padding: 0;
  background: none;
  border: none;
  color: var(--cyan);
  font-size: 0.65rem;
  letter-spacing: 0.09em;
}
.pill--bare:hover {
  background: none;
  color: #fff;
}

.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
}

.meta__date,
.row__date,
.article-head__date {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* Section header */
.shead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 3rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.shead__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.shead__eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.shead__title {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3.4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.shead__side {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  max-width: 560px;
}

.shead__kicker {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-2);
}

.shead__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}

.shead__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.66rem 1.05rem;
  border-radius: 9px;
  border: 1.5px solid var(--line-strong);
  transition: background 0.15s, border-color 0.15s;
}
.shead__more:hover {
  border-color: var(--violet-hi);
  background: rgba(var(--violet-rgb), 0.18);
}

/* Centred variant — the showcase sections */
.shead--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.shead--center .shead__titles {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.shead--center .shead__eyebrow::after {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.shead--center .shead__title {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
}

.shead--center .shead__side {
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  max-width: 620px;
}

.shead--center .shead__actions:empty {
  display: none;
}

/* ── 5. Masthead ───────────────────────────────────────────────────────── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(var(--bg-rgb), 0.55);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.masthead.is-stuck {
  background: rgba(var(--bg-rgb), 0.86);
  border-bottom-color: var(--line);
}

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

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

.masthead__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--masthead-h);
}


.masthead__logo .custom-logo-link,
.footer-logo-link .custom-logo-link,
.drawer__logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

/* --logo-h comes from Customizer → Footer → Logo height (default 45px) */
.masthead__logo img,
.footer-logo-link img {
  height: var(--logo-h, 45px);
  max-height: none;
  width: auto;
  max-width: 100%;
}

.drawer__logo img {
  height: 40px;
  max-height: none;
  width: auto;
  max-width: 100%;
}

.site-logo,
.footer-logo-text {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--text);
}

.masthead__nav {
  justify-self: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-list a {
  position: relative;
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 0.55rem 0.95rem;
  transition: color 0.15s;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.15rem;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: translateX(-50%);
  transition: width 0.25s;
}

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

.nav-list a:hover::after {
  width: 18px;
}

.nav-list .current-menu-item > a,
.nav-list .current-menu-parent > a,
.nav-list .current-category-ancestor > a {
  color: var(--text);
  font-weight: 600;
}

.nav-list .current-menu-item > a::after,
.nav-list .current-menu-parent > a::after,
.nav-list .current-category-ancestor > a::after {
  width: 26px;
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 40px;
  padding: 0 1.1rem 0 0.95rem;
  border-radius: 10px;
  border: 1.5px solid var(--edge);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.search-btn:hover,
.search-btn[aria-expanded="true"] {
  border-color: var(--violet-hi);
  color: var(--text);
  background: rgba(var(--violet-rgb), 0.14);
}

.masthead__sub {
  height: 40px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  border-radius: 10px;
  background: var(--grad);
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Search panel */
.search-panel {
  padding: 0.25rem 0 1.25rem;
}

.search-panel__form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  padding: 0.4rem 0.4rem 0.4rem 1.3rem;
}

.search-panel__input {
  flex: 1;
  min-width: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text);
  background: transparent;
  border: none;
  padding: 0.45rem 0;
  -webkit-appearance: none;
  appearance: none;
}
.search-panel__input:focus {
  outline: none;
}
.search-panel__form:focus-within {
  border-color: var(--violet-hi);
  box-shadow: 0 0 0 4px rgba(var(--violet-rgb), 0.2);
}
.search-panel__input::placeholder {
  color: var(--text-3);
}

/* ── 6. Rate band ──────────────────────────────────────────────────────── */
.ticker {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--grad-band);
  border-block: 1px solid rgba(var(--violet-hi-rgb), 0.35);
  color: var(--text);
  overflow: hidden;
}

.home .ticker {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.ticker__flag {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: none;
  padding: 0 1.4rem 0 max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut)));
  background: linear-gradient(90deg, var(--band-1) 70%, rgba(var(--band-1-rgb), 0));
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.ticker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 12px var(--up);
  animation: st-pulse 2.2s ease-in-out infinite;
}

@keyframes st-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.ticker__viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-width: 0;
}

.ticker__viewport::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 90px;
  background: linear-gradient(90deg, transparent, var(--band-3));
  pointer-events: none;
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  height: 58px;
  white-space: nowrap;
  width: max-content;
  padding-left: 1.5rem;
}

.ticker__track.is-animating {
  animation: st-marquee 60s linear infinite;
}

.ticker:hover .ticker__track.is-animating {
  animation-play-state: paused;
}

@keyframes st-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tick {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-variant-numeric: tabular-nums;
}

.tick__sym {
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.tick__val {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.tick__chg {
  font-size: 0.78rem;
  font-weight: 600;
}

.tick__chg.is-up { color: var(--up); }
.tick__chg.is-down { color: var(--down); }
.tick__chg.is-flat { color: rgba(255, 255, 255, 0.5); }

.tick--idle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ── 7. Mobile drawer ──────────────────────────────────────────────────── */
.drawer {
  position: fixed;
  top: 10px;
  right: 10px;
  bottom: 10px;
  width: min(86vw, 380px);
  background: var(--grad-panel), var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--text);
  z-index: 200;
  border-radius: var(--r-lg);
  transform: translateX(110%);
  transition: transform 0.3s cubic-bezier(0.3, 0.8, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  gap: 1.25rem;
  overflow-y: auto;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}


.drawer__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-3);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text);
}

.nav-list--drawer {
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}

.nav-list--drawer a {
  padding: 0.95rem 1.1rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
}

.nav-list--drawer a::after {
  display: none;
}

.nav-list--drawer a:hover,
.nav-list--drawer .current-menu-item > a {
  background: var(--grad);
  border-color: transparent;
}

.drawer__foot {
  margin-top: auto;
}

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

.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(var(--shadow-rgb), 0.6);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s;
}
.drawer-scrim.is-visible {
  opacity: 1;
}

/* ── 8. Hero ───────────────────────────────────────────────────────────── */
.hero {
  padding-top: clamp(2.25rem, 5vw, 4rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero__date {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  padding: 0.45rem 0.95rem 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(var(--violet-rgb), 0.14);
  border: 1px solid rgba(var(--violet-hi-rgb), 0.3);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 10px var(--up);
  animation: st-pulse 2.2s ease-in-out infinite;
}

.hero__title {
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 3.9vw, 3.3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.hero__dek {
  max-width: 48ch;
  margin-top: 1.35rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 0.85rem;
  margin-top: 2rem;
}

.hero__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: rgba(var(--violet-hi-rgb), 0.6);
  text-underline-offset: 4px;
}
.hero__link svg {
  color: var(--cyan);
}
.hero__link:hover {
  color: var(--text);
}

.hero__stats {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin-top: 2.25rem;
  padding: 1rem 0.5rem;
  border-radius: var(--r-md);
  background: var(--grad-glass);
  border: 1px solid var(--edge);
  box-shadow: 0 16px 40px -22px rgba(var(--glow-rgb), 0.8);
}

.hero__stat {
  display: flex;
  flex-direction: column-reverse;
  padding: 0 1.6rem;
  text-align: center;
}

.hero__stat + .hero__stat {
  border-left: 1px solid var(--line-strong);
}

.hero__stat dd {
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.hero__stat dt {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-2);
  white-space: nowrap;
}

.hero__crowd {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

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

.hero__faces img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--violet-hi);
  box-shadow: 0 0 0 3px var(--bg);
}

.hero__faces img + img {
  margin-left: -14px;
}

.hero__crowd-text {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-2);
}

.hero__crowd-text strong {
  display: block;
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* Lead card */
.hero__card {
  position: relative;
  border-radius: var(--r-lg);
  padding: 10px;
  background: var(--grad-glass);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow), 0 0 80px -20px rgba(var(--glow-rgb), 0.55);
}

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

.hero__panel {
  padding: 1.15rem 0.85rem 0.6rem;
}

.hero__facts {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, rgba(var(--violet-rgb), 0.45), rgba(var(--blue-rgb), 0.3));
  border: 1px solid rgba(var(--violet-hi-rgb), 0.3);
}

.hero__facts-end {
  text-align: right;
}

.hero__label {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero__fact {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.hero__headline {
  margin-top: 1rem;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
}

.hero__panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
}

/* Four more stories beneath the hero */
.wire {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(2.25rem, 4.5vw, 3.25rem);
}

.wire__item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem;
  border-radius: var(--r-md);
  background: var(--grad-panel);
  border: 1px solid var(--line-strong);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.wire__item:hover {
  border-color: var(--edge);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.wire__media {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
}

.wire__body {
  min-width: 0;
}

.wire__title {
  margin: 0.3rem 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wire__body .meta__date {
  font-size: 0.7rem;
}

/* ── 9. Shared story card ──────────────────────────────────────────────── */
.post-card {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: var(--r-lg);
  background: var(--grad-panel);
  border: 1px solid var(--line-strong);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.post-card:hover {
  border-color: var(--edge);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}

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

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 0.75rem 0.85rem;
}

.post-card__body > .meta__date {
  margin-bottom: 0.45rem;
}

.post-card__title {
  font-size: 1.05rem;
  line-height: 1.32;
}

.post-card__body .meta + .post-card__title {
  margin-top: 0.75rem;
}

.post-card__excerpt {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-2);
}

.post-card__read {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
}

/* ── 10. The Markets — stage + lane ────────────────────────────────────── */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-areas: "left main right";
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}

.stage--1 {
  grid-template-columns: minmax(0, 680px);
  grid-template-areas: "main";
  justify-content: center;
}

.stage--2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  grid-template-areas: "left main";
}

.stage__card--main { grid-area: main; }
.stage__card--left { grid-area: left; }
.stage__card--right { grid-area: right; }

.stage__card {
  display: flex;
  flex-direction: column;
  padding: 9px;
  border-radius: var(--r-lg);
  background: var(--grad-panel);
  border: 1px solid var(--line-strong);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.stage__card--side:hover {
  border-color: var(--edge);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}

.stage__card--main {
  position: relative;
  padding: 11px;
  background: linear-gradient(165deg, rgba(var(--violet-rgb), 0.55) 0%, rgba(var(--blue-rgb), 0.35) 55%, rgba(var(--deep-rgb), 0.85) 100%);
  border-color: var(--edge);
  box-shadow: 0 0 0 1px rgba(var(--violet-hi-rgb), 0.35), 0 40px 90px -30px rgba(var(--glow-rgb), 0.75);
}

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

.stage__body {
  padding: 1rem 0.7rem 0.75rem;
}

.stage__card--main .stage__body {
  padding: 1.25rem 0.95rem 0.85rem;
}

.stage__title {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.32;
}

.stage__card--main .stage__title {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.25;
}

.stage__dek {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-2);
}

.stage__card--main .meta__date {
  color: rgba(255, 255, 255, 0.7);
}

.stage__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.stage__read {
  font-size: 0.8rem;
  color: var(--text-2);
}

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

.lane__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.lane__title {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 600;
}

.lane__mark {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(var(--violet-rgb), 0.9);
}

.lane__more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  white-space: nowrap;
}
.lane__more:hover {
  color: #fff;
}

.lane__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

/* ── 11. Money rules ───────────────────────────────────────────────────── */
/* Two staggered rows of four on a nine-column grid */
.rules__grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 14px;
}

.rule {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem 1rem 1rem;
  border-radius: var(--r-md);
  background: var(--grad-panel);
  border: 1px solid var(--line-strong);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.rule:hover {
  border-color: var(--edge);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.rule:nth-child(1) { grid-column: 1 / span 2; }
.rule:nth-child(2) { grid-column: 3 / span 2; }
.rule:nth-child(3) { grid-column: 5 / span 2; }
.rule:nth-child(4) { grid-column: 7 / span 2; }
.rule:nth-child(5) { grid-column: 2 / span 2; }
.rule:nth-child(6) { grid-column: 4 / span 2; }
.rule:nth-child(7) { grid-column: 6 / span 2; }
.rule:nth-child(8) { grid-column: 8 / span 2; }

.rule__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--grad-d);
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(var(--violet-hi-rgb), 0.25), 0 8px 20px -6px rgba(var(--glow-rgb), 0.8);
}

.rule:nth-child(even) .rule__num {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  box-shadow: 0 0 0 3px rgba(var(--cyan-rgb), 0.22), 0 8px 20px -6px rgba(var(--blue-rgb), 0.8);
}

.rule__body {
  min-width: 0;
}

.rule__title {
  font-size: 0.95rem;
  line-height: 1.25;
}

.rule__text {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-2);
}

.rules__note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ── 12. Business — split + minis ──────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: 10px;
  border-radius: var(--r-xl);
  background: var(--grad-glass);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
}

.split__media {
  aspect-ratio: 5 / 3;
  border-radius: calc(var(--r-xl) - 8px);
}

.split__body {
  padding: 1rem clamp(0.5rem, 2.5vw, 2rem) 1rem 0;
}

.split__title {
  margin-top: 0.9rem;
  font-family: var(--f-sans);
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  font-weight: 600;
  line-height: 1.22;
}

.split__dek {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-2);
}

.split__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line-strong);
}

.split__read {
  font-size: 0.8rem;
  color: var(--text-2);
}

.minis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: var(--gap);
}

.mini {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 1.1rem;
  padding: 0.7rem;
  border-radius: var(--r-md);
  background: var(--grad-panel);
  border: 1px solid var(--line-strong);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.mini:hover {
  border-color: var(--edge);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.mini__media {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
}

.mini__title {
  margin-top: 0.35rem;
  font-size: 1rem;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 13. Growth planner ────────────────────────────────────────────────── */
.plan {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border-radius: var(--r-xl);
  background: var(--grad-panel);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
}

.plan::before,
.plan::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.plan::before {
  top: -260px;
  right: -200px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(var(--blue-rgb), 0.35), transparent 65%);
}

.plan::after {
  bottom: -300px;
  left: -220px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(var(--violet-rgb), 0.35), transparent 65%);
}

.plan__intro {
  max-width: 640px;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.plan__title {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.12;
}

.plan__sub {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-2);
}

.plan__body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: stretch;
}

.plan__controls {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--r-lg);
  background: rgba(var(--bg-rgb), 0.55);
  border: 1px solid var(--line-strong);
}

.plan__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.plan__label {
  font-size: 0.85rem;
  color: var(--text-2);
}

.plan__val {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.plan__range {
  --fill: 50%;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.plan__range:focus {
  outline: none;
}

.plan__range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--violet), var(--blue)) 0 0 / var(--fill) 100% no-repeat, rgba(var(--line-rgb), 0.18);
}

.plan__range::-moz-range-track {
  height: 6px;
  border-radius: 6px;
  background: rgba(var(--line-rgb), 0.18);
}

.plan__range::-moz-range-progress {
  height: 6px;
  border-radius: 6px;
  background: var(--grad);
}

.plan__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--violet);
  box-shadow: 0 0 0 4px rgba(var(--violet-rgb), 0.25), 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.15s;
}

.plan__range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--violet);
  box-shadow: 0 0 0 4px rgba(var(--violet-rgb), 0.25);
}

.plan__range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 6px rgba(var(--cyan-rgb), 0.5);
}

.plan__range:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 6px rgba(var(--cyan-rgb), 0.5);
}

.plan__presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: auto;
}

.plan__preset {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.6rem 0.4rem;
  border-radius: 10px;
  border: 1.5px solid var(--line-strong);
  font-size: 0.72rem;
  color: var(--text-2);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.plan__preset b {
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.plan__preset:hover {
  border-color: var(--violet-hi);
}

.plan__preset.is-active {
  background: var(--grad);
  border-color: transparent;
  color: rgba(255, 255, 255, 0.85);
}

.plan__result {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--r-lg);
  background: var(--grad-glass);
  border: 1px solid var(--edge);
}

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

.plan__total {
  margin-top: 0.2rem;
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.plan__part {
  padding: 0.75rem 0.9rem;
  border-radius: var(--r-sm);
  background: rgba(var(--bg-rgb), 0.45);
  border: 1px solid var(--line);
}

.plan__key {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-2);
}

.plan__key::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.plan__part--dep .plan__key::before { background: var(--violet); }
.plan__part--gain .plan__key::before { background: var(--cyan); }

.plan__part strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.plan__chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 170px;
  margin-top: 1.5rem;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--line-strong);
}

/* One bar per year: violet = deposits (bottom), blue = growth (top) */
.plan__bar {
  flex: 1;
  min-width: 0;
  height: var(--h);
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(0deg, var(--violet) 0 var(--d), var(--cyan) var(--d) 100%);
  opacity: 0.92;
  transition: height 0.3s ease;
}

.plan__bar:hover {
  opacity: 1;
  filter: brightness(1.15);
}

.plan__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  font-size: 0.7rem;
  color: var(--text-3);
}

.plan__double {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: 0.82rem;
  color: var(--text-2);
}

.plan__double svg {
  flex: none;
  color: var(--cyan);
}

.plan__note {
  margin-top: 1.4rem;
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ── 14. Politics — cover + ranked list ────────────────────────────────── */
.pol {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: stretch;
}

.pol--solo {
  grid-template-columns: minmax(0, 760px);
}

.cover {
  position: relative;
  min-height: 460px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--edge);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.cover__cap {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: var(--r-lg);
  background: rgba(var(--bg-2-rgb), 0.62);
  border: 1px solid rgba(var(--violet-hi-rgb), 0.3);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.cover__cap .meta__date {
  color: rgba(255, 255, 255, 0.72);
}

.cover__title {
  margin-top: 0.75rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.25;
}

.cover__dek {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranked {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranked__item {
  flex: 1;
  display: grid;
  grid-template-columns: auto 132px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1rem 0.7rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--grad-panel);
  border: 1px solid var(--line-strong);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.ranked__item:hover {
  border-color: var(--edge);
  box-shadow: var(--glow);
  transform: translateX(3px);
}

.ranked__n {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 2.2ch;
}

.ranked__media {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
}

.ranked__title {
  margin-top: 0.3rem;
  font-size: 0.98rem;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 15. Crypto rail ───────────────────────────────────────────────────── */
.sport {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(var(--blue-rgb), 0.28), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, rgba(var(--violet-rgb), 0.3), transparent 70%),
    var(--bg-2);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
}

.rail-nav {
  display: flex;
  gap: 0.45rem;
}

.rail-nav__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--line-strong);
  font-size: 1rem;
  transition: background 0.15s, border-color 0.15s;
}
.rail-nav__btn:hover {
  background: var(--grad);
  border-color: transparent;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 20px) / 3);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  padding: 6px 2px;
}

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

.railcard {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: var(--r-lg);
  background: var(--grad-glass);
  border: 1px solid var(--line-strong);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.railcard:hover {
  border-color: var(--edge);
  box-shadow: var(--glow);
}

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

.railcard__body {
  padding: 1rem 0.7rem 0.8rem;
}

.railcard__title {
  margin-top: 0.7rem;
  font-size: 1.05rem;
  line-height: 1.32;
}

/* ── 16. Explore the desks ─────────────────────────────────────────────── */
.desks__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.desk {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: var(--r-lg);
  background: var(--grad-glass);
  border: 1px solid var(--edge);
  transition: box-shadow 0.25s, transform 0.25s;
}

.desk:hover {
  box-shadow: var(--glow);
  transform: translateY(-4px);
}

.desk__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.desk__thumb,
.desk__cover {
  display: block;
  overflow: hidden;
  background: var(--surface-3);
}

.desk__thumb {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
}

.desk__cover {
  aspect-ratio: 16 / 7;
  border-radius: 12px;
}

.desk__thumb img,
.desk__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.desk:hover .desk__cover img {
  transform: scale(1.05);
}

.desk__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.5rem 0.35rem;
}

.desk__text {
  min-width: 0;
}

.desk__name {
  display: block;
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.desk__eyebrow {
  display: block;
  font-size: 0.75rem;
  color: var(--text-3);
}

.desk__count {
  flex: none;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(var(--blue-rgb), 0.18);
  border: 1px solid rgba(var(--cyan-rgb), 0.4);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cyan);
  white-space: nowrap;
}

.desk--cta {
  justify-content: center;
  align-items: flex-start;
  gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background:
    radial-gradient(300px 200px at 100% 0%, rgba(var(--cyan-rgb), 0.35), transparent 70%),
    var(--grad-d);
  border-color: rgba(255, 255, 255, 0.25);
}

.desk__cta-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.desk__cta-title {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.2;
}

.desk__cta-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
}

.desk--cta .btn {
  margin-top: 0.5rem;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

/* ── 17. Newsletter ────────────────────────────────────────────────────── */
.signup {
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

/* The shaped panel: generous curves top-left and bottom-right */
.signup__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.75rem, 5vw, 4rem);
  border-radius: clamp(48px, 9vw, 120px) var(--r-lg) clamp(48px, 9vw, 120px) var(--r-lg);
  background:
    linear-gradient(135deg, rgba(var(--violet-rgb), 0.55) 0%, rgba(var(--mid-rgb), 0.45) 45%, rgba(var(--deep-rgb), 0.9) 100%),
    var(--bg-2);
  border: 1px solid var(--edge);
  box-shadow: 0 50px 100px -40px rgba(var(--glow-rgb), 0.6);
}

.signup__panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -160px;
  bottom: -200px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--cyan-rgb), 0.3), transparent 65%);
  pointer-events: none;
}

.signup__title {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

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

.perks {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.perk {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.perk__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(var(--glow-rgb), 0.9);
}

.perk__text {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-2);
}

.perk__text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.signup__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.signup__fact {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(var(--bg-rgb), 0.4);
  border: 1px solid var(--line-strong);
  font-size: 0.78rem;
  color: var(--text-2);
}

.signup__fact b {
  color: var(--text);
  font-weight: 600;
}

/* Form card */
/* min-width: 0 on both grid children so long form controls can't widen the panel */
.signup__pitch,
.signup__card {
  min-width: 0;
}

.signup__card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border-radius: var(--r-xl);
  background: rgba(var(--bg-rgb), 0.72);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.signup__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.signup__card-title {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.15;
}

.signup__step {
  flex: none;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(var(--blue-rgb), 0.18);
  border: 1px solid rgba(var(--cyan-rgb), 0.4);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cyan);
}

.signup__hint {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-2);
}

.signup__form {
  margin-top: 1.5rem;
}

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

.signup__legal a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--violet-hi);
  text-underline-offset: 3px;
}

.signup__legal a:hover {
  color: #fff;
}

/* CF7 — markup is owned by the plugin, so we only restyle it.
   Expected wrappers in the form template:
     .form-options  edition checkboxes/radios → selectable tiles
     .form-topics   optional topic checkboxes → chips
     .form-fields   email, then submit
     .form-privacy  acceptance checkbox */
.signup .hidden-fields-container,
.signup .screen-reader-response {
  display: none;
}

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

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

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

.signup .form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.signup .form-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--grad);
}

/* Edition tiles */
.signup .form-options {
  margin-bottom: 1.4rem;
}

.signup .form-options .wpcf7-checkbox,
.signup .form-options .wpcf7-radio {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.signup .form-options .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  height: 100%;
  padding: 0.95rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

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

.signup .form-options .wpcf7-list-item label:has(input:checked) {
  background: linear-gradient(135deg, rgba(var(--violet-rgb), 0.4), rgba(var(--blue-rgb), 0.25));
  border-color: var(--violet-hi);
  color: var(--text);
  box-shadow: 0 10px 30px -16px rgba(var(--glow-rgb), 0.9);
}

.signup .form-options input[type="checkbox"],
.signup .form-options input[type="radio"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: transparent center / 12px 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 {
  background-color: var(--violet);
  border-color: var(--violet);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' 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");
}

/* Topic chips */
.signup .form-topics {
  margin-bottom: 1.4rem;
}

.signup .form-topics .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.signup .form-topics .wpcf7-list-item label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.signup .form-topics .wpcf7-list-item label::before {
  content: "+";
  font-weight: 600;
  color: var(--cyan);
}

.signup .form-topics .wpcf7-list-item label:hover {
  border-color: var(--violet-hi);
  color: var(--text);
}

.signup .form-topics input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.signup .form-topics .wpcf7-list-item label:has(input:checked) {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

.signup .form-topics .wpcf7-list-item label:has(input:checked)::before {
  content: "✓";
  color: #fff;
}

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

/* Email + submit on one line. The control wrap is flattened so a
   validation tip drops into the same box as a full-width strip. */
.signup .form-fields p {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.4rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--line-strong);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.signup .form-fields p:focus-within {
  border-color: var(--violet-hi);
  box-shadow: 0 0 0 4px rgba(var(--violet-rgb), 0.2);
}

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

/* Huge grow factor keeps the button compact beside the field, yet lets it
   stretch to full width once it wraps underneath. */
.signup .wpcf7-email {
  flex: 999 1 220px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  font-family: var(--f-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238187b6' stroke-width='2' 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") 0.85rem center / 18px no-repeat;
  border: none;
  padding: 0 0.75rem 0 2.6rem;
  -webkit-appearance: none;
  appearance: none;
}

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

.signup .wpcf7-email:focus {
  outline: none;
}

.signup .wpcf7-submit {
  flex: 1 0 auto;
  order: 2;
  font-family: var(--f-sans);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  padding: 0.95rem 1.4rem;
  box-shadow: 0 10px 26px -12px rgba(var(--glow-rgb), 0.9);
  transition: filter 0.18s, transform 0.18s;
}

.signup .wpcf7-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

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

/* Spinner rides above the box, right-aligned, so it never shifts the row */
.signup .wpcf7-spinner {
  position: absolute;
  right: 0.25rem;
  bottom: calc(100% + 0.5rem);
  margin: 0;
  background-color: var(--violet);
  pointer-events: none;
}

/* ── Field tips: a tinted strip with a "!" badge ── */
.signup .wpcf7-not-valid-tip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.6rem;
  padding: 0.5rem 0.75rem 0.5rem 0.55rem;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(var(--down-rgb), 0.16), rgba(var(--down-rgb), 0.04));
  border: 1px solid rgba(var(--down-rgb), 0.32);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  color: #ffc2d2;
  width: fit-content;
  max-width: 100%;
  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: 6px;
  background: var(--down);
  font-size: 0.7rem;
  font-weight: 700;
  color: #1a0710;
}

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

/* Inside the email box the tip becomes the box's bottom strip */
.signup .form-fields .wpcf7-not-valid-tip {
  order: 3;
  flex: 1 0 100%;
  width: auto;
  margin: 0;
  border-radius: 9px;
}

.signup .form-fields p:has(.wpcf7-not-valid) {
  border-color: rgba(var(--down-rgb), 0.55);
  box-shadow: 0 0 0 4px rgba(var(--down-rgb), 0.12);
}

/* Unticked tiles and chips flagged by a tip get a dashed alarm edge */
.signup .wpcf7-checkbox.wpcf7-not-valid .wpcf7-list-item label {
  border-style: dashed;
  border-color: rgba(var(--down-rgb), 0.55);
}

/* Acceptance */
.signup .form-privacy {
  margin-top: 1.1rem;
}

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

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

.signup .wpcf7-list-item-label a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--violet-hi);
  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;
  border-radius: 3px;
}

/* The acceptance tip lines up under the label text, past the checkbox */
.signup .form-privacy .wpcf7-not-valid-tip {
  margin-left: 1.6rem;
}

/* ── Form-level response: a banner with an icon tile and a status title ── */
.signup .wpcf7-response-output {
  --tone: var(--violet-hi);
  --tone-rgb: var(--violet-hi-rgb);
  --icon: "i";
  position: relative;
  display: none;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  column-gap: 0.85rem;
  width: 100%;
  margin: 1.4rem 0 0 !important;
  padding: 0.85rem 1rem 0.85rem 0.85rem !important;
  border: 1px solid rgba(var(--tone-rgb), 0.38) !important;
  border-radius: var(--r-md);
  background:
    radial-gradient(160px 80px at 0% 50%, rgba(var(--tone-rgb), 0.22), transparent 70%),
    rgba(var(--bg-rgb), 0.6);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  overflow: hidden;
  animation: st-tip-in 0.3s ease-out;
}

.signup .wpcf7-response-output::before {
  content: var(--icon);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(var(--tone-rgb), 0.18);
  border: 1px solid rgba(var(--tone-rgb), 0.5);
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tone);
}

/* Thin progress-style bar along the top edge */
.signup .wpcf7-response-output::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tone), transparent);
}

.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: #ffc35a;
  --tone-rgb: 255, 195, 90;
  --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. Archive, search & card grids ──────────────────────────────────── */
.archive-main,
.page-main,
.error-main {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6.5rem);
}

.archive-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.archive-head__title {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff 30%, var(--violet-tint) 70%, var(--cyan-tint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.archive-head__title--query {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
}

.archive-head__side {
  max-width: 468px;
}

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

.archive-head__count {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(var(--blue-rgb), 0.18);
  border: 1px solid rgba(var(--cyan-rgb), 0.4);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Split feature card that opens every listing page */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: 10px;
  border-radius: var(--r-xl);
  background: var(--grad-glass);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
  margin-bottom: var(--gap);
}

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

.feature__body {
  padding: 1rem clamp(0.5rem, 2.5vw, 2rem) 1rem 0;
}

.feature__title {
  margin-top: 1rem;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.22;
}

.feature__dek {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-2);
}

.feature__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line-strong);
}

.feature__read {
  font-size: 0.8rem;
  color: var(--text-2);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

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

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

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 1rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}

.pagination .page-numbers:hover {
  border-color: var(--violet-hi);
}

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

.pagination .page-numbers.dots {
  background: none;
  border-color: transparent;
}

.no-results {
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
  text-align: center;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  border-radius: var(--r-xl);
  background: var(--grad-panel);
  border: 1px solid var(--line-strong);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.4;
}

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

.reading-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--violet), var(--blue), var(--cyan));
  box-shadow: 0 0 12px rgba(var(--violet-rgb), 0.9);
}

.single-main {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6.5rem);
}

.article-head {
  max-width: 940px;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.article-head__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  margin-bottom: 1.35rem;
}

.article-head__read {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
}

.article-head__read::before {
  content: "·";
  margin-right: 0.9rem;
}

.article-head__title {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.article-head__dek {
  max-width: 62ch;
  margin: 1.25rem auto 0;
  font-size: 1.1rem;
  color: var(--text-2);
}

.article-hero {
  position: relative;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding: 10px;
  border-radius: var(--r-xl);
  background: var(--grad-glass);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow), 0 0 100px -30px rgba(var(--glow-rgb), 0.5);
}

.article-hero__img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  border-radius: calc(var(--r-xl) - 8px);
}

.article-hero__caption {
  margin-top: 0.7rem;
  padding: 0 0.75rem 0.25rem;
  font-size: 0.8125rem;
  color: var(--text-3);
}

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

.single-col {
  max-width: 740px;
  width: 100%;
  justify-self: center;
}

/* Article body */
.article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-prose);
}

.article-content > * + * {
  margin-top: 1.3rem;
}

/* Drop cap on stories only — static pages (privacy, terms…) start plain */
.single-article .article-content > p:first-child::first-letter {
  float: left;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 3.6em;
  line-height: 0.9;
  padding: 0.06em 0.14em 0 0;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--text);
}

.article-content h2 {
  font-size: 1.6rem;
  line-height: 1.22;
  margin-top: 2.6rem;
}

.article-content h3 {
  font-size: 1.3rem;
  margin-top: 2.1rem;
}

.article-content h4 {
  font-size: 1.08rem;
  margin-top: 1.8rem;
}

.article-content strong {
  color: var(--text);
}

.article-content a {
  color: var(--violet-tint);
  text-decoration: underline;
  text-decoration-color: rgba(var(--violet-hi-rgb), 0.6);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.article-content a:hover {
  color: #fff;
  text-decoration-color: var(--cyan);
}

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
}

.article-content ul li {
  list-style: none;
  position: relative;
  padding-left: 0.25rem;
  margin-bottom: 0.5rem;
}

.article-content ul li::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--grad);
}

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

.article-content ol li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.article-content ol li::marker {
  font-weight: 700;
  color: var(--violet-hi);
}

.article-content blockquote {
  margin-block: 2.2rem;
  padding: 1.6rem 1.8rem;
  border-radius: var(--r-lg);
  background: var(--grad-glass);
  border: 1px solid var(--edge);
  border-left: 4px solid var(--violet);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
}

.article-content img,
.article-content figure {
  margin-block: 2rem;
}

.article-content img {
  border-radius: var(--r-md);
}

.article-content figcaption {
  margin-top: 0.55rem;
  font-size: 0.8125rem;
  color: var(--text-3);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

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

.article-content th {
  border-bottom-color: var(--line-strong);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

.article-content code {
  font-size: 0.875em;
  background: var(--surface-2);
  padding: 0.15em 0.4em;
  border-radius: 6px;
}

.article-content hr {
  border: none;
  height: 1px;
  background: var(--line-strong);
}

.article-tags {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-md);
  background: var(--grad-panel);
  border: 1px solid var(--line-strong);
}

.article-tags__label {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-right: 0.35rem;
  color: var(--text-3);
}

.article-tags a {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.article-tags a:hover {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

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

.article-nav__side {
  padding: 1.2rem 1.35rem;
  border-radius: var(--r-md);
  background: var(--grad-panel);
  border: 1px solid var(--line-strong);
}

.article-nav__side:empty {
  background: none;
  border-color: transparent;
}

.article-nav__side--next {
  text-align: right;
  background: var(--grad-glass);
  border-color: var(--edge);
}

.article-nav__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}

.article-nav__link {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
}
.article-nav__link:hover {
  color: var(--violet-tint);
}

.related {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

/* Sidebar */
.single-aside {
  position: sticky;
  top: calc(var(--masthead-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.aside-panel {
  padding: 1.35rem 1.35rem 0.6rem;
  border-radius: var(--r-lg);
  background: var(--grad-panel);
  border: 1px solid var(--line-strong);
}

.aside-panel__heading {
  font-family: var(--f-display);
  font-size: 1.1rem;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

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

.row + .row {
  border-top: 1px solid var(--line);
}

.row__media {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
}

.row__date {
  margin-bottom: 0.3rem;
}

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

.row--aside {
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.85rem 0;
}

.row--aside .row__title {
  font-size: 0.85rem;
  line-height: 1.38;
}

.aside-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1.6rem;
  border-radius: var(--r-lg);
  background:
    radial-gradient(260px 180px at 100% 0%, rgba(var(--cyan-rgb), 0.35), transparent 70%),
    var(--grad-d);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.aside-cta__eyebrow {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
}

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

.aside-cta__text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
}

.aside-cta__btn {
  margin-top: 1.2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #fff;
  color: var(--ink);
  border-radius: 9px;
  padding: 0.7rem 1.15rem;
  transition: transform 0.15s;
}

.aside-cta:hover .aside-cta__btn {
  transform: translateY(-1px);
}

/* ── 20. Page & 404 ────────────────────────────────────────────────────── */
.page-head {
  text-align: center;
  margin-bottom: 2.25rem;
}

.page-head__eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(var(--violet-rgb), 0.16);
  border: 1px solid rgba(var(--violet-hi-rgb), 0.35);
  color: var(--violet-tint);
  font-size: 0.75rem;
  font-weight: 600;
}

.page-head__title {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

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

.page-hero__img {
  border-radius: var(--r-xl);
}

.static-page .article-content {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--r-xl);
  background: var(--grad-panel);
  border: 1px solid var(--line-strong);
}

.error-page {
  text-align: center;
  padding-block: clamp(1rem, 4vw, 3rem);
}

.error-page__code {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(6rem, 22vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--violet-hi) 0%, var(--blue) 60%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 40px rgba(var(--glow-rgb), 0.6));
}

.error-page__title {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  margin: 1.25rem 0 1rem;
}

.error-page__desc {
  color: var(--text-2);
  max-width: 54ch;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.error-recent {
  margin-top: 3.5rem;
  text-align: left;
  padding: 1.5rem 1.5rem 0.6rem;
  border-radius: var(--r-lg);
  background: var(--grad-panel);
  border: 1px solid var(--line-strong);
}

.error-recent__heading {
  font-family: var(--f-display);
  font-size: 1.2rem;
}

/* ── 21. Footer ────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(700px 400px at 0% 100%, rgba(var(--violet-rgb), 0.22), transparent 70%),
    radial-gradient(700px 400px at 100% 0%, rgba(var(--blue-rgb), 0.14), transparent 70%),
    var(--bg-2);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet) 30%, var(--blue) 70%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.footer-logo-link,
.footer-logo-text {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.footer-brand__desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 40ch;
  margin-bottom: 1.4rem;
}

.footer-col__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}

.footer-col__list li + li {
  margin-top: 0.75rem;
}

.footer-col__list a {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 0.15s;
}

.footer-col__list a:hover {
  color: #fff;
}

.footer-disclaimer {
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--text-3);
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  margin-bottom: 1.25rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-3);
}

.footer-copy a {
  color: var(--text-2);
}

.footer-copy a:hover,
.footer-top-link:hover {
  color: #fff;
}

.footer-top-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
}

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

/* ── 22. Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .wire {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rules__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rule:nth-child(n) {
    grid-column: auto;
  }
  .lane__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rail {
    grid-auto-columns: calc((100% - 20px) / 2.2);
  }
  .shead__side {
    max-width: 440px;
  }
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1020px) {
  .masthead__nav {
    display: none;
  }
  .masthead__inner {
    grid-template-columns: auto 1fr;
  }
  .masthead__actions {
    justify-self: end;
  }
  .nav-toggle {
    display: flex;
  }
  .stage,
  .stage--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "main main"
      "left right";
    align-items: stretch;
  }
  .stage__card--main {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
  }
  .plan__body {
    grid-template-columns: 1fr;
  }
  .pol {
    grid-template-columns: 1fr;
  }
  .desks__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .signup__panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --gut: 20px;
    --r-xl: 26px;
    --r-lg: 20px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__title {
    font-size: clamp(2.1rem, 7vw, 3.2rem);
  }
  .shead {
    flex-direction: column;
    align-items: flex-start;
  }
  .shead--center {
    align-items: center;
  }
  .shead__side {
    max-width: none;
    width: 100%;
    justify-content: space-between;
  }
  .shead--center .shead__side {
    justify-content: center;
  }
  .split,
  .feature {
    grid-template-columns: 1fr;
  }
  .split__body,
  .feature__body {
    padding: 0.6rem 0.9rem 1rem;
  }
  .minis {
    grid-template-columns: 1fr;
  }
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .single-layout {
    grid-template-columns: 1fr;
  }
  .single-aside {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 640px) {
  :root {
    --gut: 16px;
    --gap: 14px;
    --r-xl: 22px;
    --r-lg: 18px;
    --r-md: 14px;
    --masthead-h: 66px;
  }
  .masthead__inner {
    gap: 0.75rem;
  }
  .masthead__sub {
    display: none;
  }
  .search-btn {
    width: 42px;
    padding: 0;
    justify-content: center;
  }
  .search-btn__text {
    display: none;
  }
  .ticker__track {
    height: 48px;
    gap: 2rem;
  }
  .ticker__flag {
    padding-right: 1rem;
    font-size: 0.62rem;
  }
  .hero__actions .btn {
    flex: 1 1 auto;
  }
  .hero__link {
    margin-left: 0;
  }
  .hero__stats {
    display: grid;
    width: 100%;
    padding-inline: 0;
  }
  .hero__stat {
    padding: 0 0.5rem;
  }
  .hero__stat dd {
    font-size: 1.25rem;
  }
  .hero__stat dt {
    font-size: 0.7rem;
    white-space: normal;
  }
  .hero__card {
    padding: 8px;
  }
  .hero__panel {
    padding: 1rem 0.5rem 0.4rem;
  }
  .wire {
    grid-template-columns: 1fr;
  }
  .stage,
  .stage--2 {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "left"
      "right";
  }
  .stage__card--main {
    display: flex;
  }
  .stage__card--side {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 0.4rem;
  }
  .stage__card--side .stage__body {
    padding: 0.2rem 0.4rem;
  }
  .stage__card--side .stage__title {
    margin-top: 0.4rem;
    font-size: 0.95rem;
  }
  .stage__card--side .pill {
    display: none;
  }
  .stage__foot {
    flex-wrap: wrap;
  }
  .lane__grid,
  .post-grid {
    grid-template-columns: 1fr;
  }
  .rules__grid {
    grid-template-columns: 1fr;
  }
  .mini,
  .ranked__item {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 0.85rem;
  }
  .ranked__item {
    padding: 0.6rem;
  }
  .ranked__n {
    display: none;
  }
  .mini__title,
  .ranked__title {
    font-size: 0.92rem;
  }
  .cover {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--grad-panel);
  }
  .cover__media {
    position: relative;
    aspect-ratio: 4 / 3;
  }
  .cover__cap {
    position: static;
    margin: 0;
    border: none;
    border-radius: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .plan__split {
    grid-template-columns: 1fr 1fr;
  }
  .plan__presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan__chart {
    height: 130px;
    gap: 2px;
  }
  .rail {
    grid-auto-columns: 86%;
    gap: 14px;
  }
  .desks__grid {
    grid-template-columns: 1fr;
  }
  .signup__panel {
    padding: 1.5rem 1rem 1rem;
    border-radius: 48px var(--r-lg) 48px var(--r-lg);
  }
  .signup__pitch {
    padding: 0.5rem 0.5rem 0;
  }
  .signup__card {
    padding: 1.25rem;
  }
  .signup .form-options .wpcf7-checkbox,
  .signup .form-options .wpcf7-radio {
    grid-template-columns: 1fr;
  }
  .signup .wpcf7-email {
    flex-basis: 100%;
  }
  .signup .wpcf7-submit {
    flex: 1 0 100%;
  }
  .single-aside {
    grid-template-columns: 1fr;
  }
  .row {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 0.9rem;
  }
  .article-nav {
    grid-template-columns: 1fr;
  }
  .article-nav__side--next {
    text-align: left;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ticker__track.is-animating {
    animation: none;
  }
  .ticker__viewport {
    overflow-x: auto;
  }
}
