/* ==========================================================================
   Sovereign Terminal — main.css
   Blue editorial finance-news theme.
   Space Grotesk (headlines) · IBM Plex Sans (body) · IBM Plex Mono (data)
   ========================================================================== */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Paper */
  --paper: #ffffff;
  --paper-2: #f3f6fc;
  --paper-3: #e7edf8;
  --tint: #eef3fb;

  /* Ink */
  --ink: #0a1b33;
  --ink-2: #42556f;
  --ink-3: #74859e;

  /* Rules */
  --line: #d9e1ee;
  --line-2: #e9eef7;

  /* Navy (dark sections) */
  --navy-900: #061530;
  --navy-800: #0a2148;
  --navy-700: #123064;
  --on-dark: #e9effb;
  --on-dark-2: rgba(233, 239, 251, 0.6);
  --on-dark-3: rgba(233, 239, 251, 0.38);
  --dark-line: rgba(233, 239, 251, 0.14);

  /* Blue */
  --blue: #1a5ad9;
  --blue-dark: #13439f;
  --blue-light: #4d89ff;
  --cyan: #46cfe8;

  /* Market semantics */
  --up: #12a76a;
  --down: #e0453c;
  --dollar-up: #1a5ad9;
  --dollar-down: #dd8a1c;

  /* Type */
  --f-head: "Space Grotesk", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Layout */
  --wrap: 1240px;
  --gut: 24px;
  --r: 3px;
  --masthead-h: 78px;
}

/* ── 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: 90px;
}

body {
  font-family: var(--f-body);
  font-size: 0.9375rem;
  line-height: 1.65;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--blue);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
}
.skip-link:focus {
  left: 0;
}

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

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

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

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

[class*="__media"]:hover img {
  transform: scale(1.04);
}

[class*="__media"][class*="--empty"] {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--paper-3), var(--tint));
}

.media__fallback {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0.5rem;
  text-align: center;
}

/* ── 4. Buttons, pills, section heads ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover {
  background: var(--blue-dark);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn--sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.6875rem;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  transition: color 0.15s;
}

.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--blue);
  flex: none;
}

.pill:hover {
  color: var(--blue-dark);
}

/* Blue on navy is unreadable — lift pills on the dark desks to cyan. */
.desk--dark .pill {
  color: var(--cyan);
}
.desk--dark .pill::before {
  background: var(--cyan);
}
.desk--dark .pill:hover {
  color: #fff;
}

/* Desk header */
.deskhead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 2.25rem;
}

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

.deskhead__mark {
  width: 10px;
  height: 10px;
  background: var(--blue);
  flex: none;
}

.deskhead__title {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.deskhead__kicker {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
}

.deskhead__more {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.15s;
}
.deskhead__more:hover {
  color: var(--blue);
}

/* Dark variants */
.desk--dark .deskhead {
  border-bottom-color: var(--dark-line);
}
.desk--dark .deskhead__title {
  color: var(--on-dark);
}
.desk--dark .deskhead__kicker {
  color: var(--on-dark-2);
  border-left-color: var(--dark-line);
}
.desk--dark .deskhead__more {
  color: var(--on-dark-2);
}
.desk--dark .deskhead__more:hover {
  color: var(--cyan);
}
.desk--dark .deskhead__mark {
  background: var(--cyan);
}

/* ── 5. Top bar ────────────────────────────────────────────────────────── */
.topbar {
  background: var(--navy-900);
  color: var(--on-dark-2);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 34px;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}

.topbar__date {
  text-transform: uppercase;
  color: var(--on-dark);
}

.topbar__tag {
  text-transform: uppercase;
  color: var(--on-dark-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__cta {
  text-transform: uppercase;
  color: var(--cyan);
  white-space: nowrap;
  transition: color 0.15s;
}
.topbar__cta:hover {
  color: #fff;
}

/* ── 6. Masthead ───────────────────────────────────────────────────────── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}

.masthead.is-stuck {
  box-shadow: 0 10px 30px -22px rgba(6, 21, 48, 0.55);
}

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

.masthead__brand img,
.drawer__head img {
  max-height: 50px;
  width: auto;
}

.site-logo {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.masthead__nav {
  justify-self: center;
}

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

.nav-list a {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.15s;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  transition: right 0.25s;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current-menu-parent > a {
  color: var(--ink);
}

.nav-list a:hover::after,
.nav-list .current-menu-item > a::after {
  right: 0;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0 7px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--ink);
  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);
}

/* ── 7. Ticker ─────────────────────────────────────────────────────────── */
.ticker {
  display: flex;
  align-items: stretch;
  background: var(--navy-800);
  color: var(--on-dark);
  border-bottom: 1px solid var(--navy-700);
  overflow: hidden;
}

.ticker__flag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
  padding: 0 1.1rem;
  background: var(--blue);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ticker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  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: 60px;
  background: linear-gradient(90deg, transparent, var(--navy-800));
  pointer-events: none;
}

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

.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.55rem;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}

.tick__sym {
  color: var(--on-dark-3);
  text-transform: uppercase;
}

.tick__val {
  color: var(--on-dark);
  font-weight: 500;
}

.tick__chg.is-up { color: #46e0a0; }
.tick__chg.is-down { color: #ff7b72; }
.tick__chg.is-flat { color: var(--on-dark-3); }

.tick--idle {
  color: var(--on-dark-3);
}

/* ── 8. Mobile drawer ──────────────────────────────────────────────────── */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 340px);
  background: var(--navy-900);
  color: var(--on-dark);
  z-index: 200;
  transform: translateX(105%);
  transition: transform 0.3s cubic-bezier(0.3, 0.8, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  gap: 1.5rem;
}

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

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

.drawer__head .site-logo {
  color: var(--on-dark);
}

.drawer__close {
  font-size: 1.85rem;
  line-height: 1;
  color: var(--on-dark-2);
}

/* Not flex:1 — the subscribe button should sit directly under the last menu
   item, not be pushed to the bottom of the viewport. */
.nav-list--drawer {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.nav-list--drawer li {
  border-bottom: 1px solid var(--dark-line);
}

.nav-list--drawer a {
  display: block;
  padding: 1rem 0;
  color: var(--on-dark);
  font-size: 0.8125rem;
}

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

.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(6, 21, 48, 0.55);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s;
}
.drawer-scrim.is-visible {
  opacity: 1;
}

/* ── 9. Lead ───────────────────────────────────────────────────────────── */
.lead {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.lead__grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.lead__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.lead__date,
.card__date,
[class*="__date"] {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
}

.lead__title {
  font-size: clamp(1.6rem, 3.1vw, 2.4rem);
  line-height: 1.12;
  margin-bottom: 1.1rem;
}

.lead__title a {
  background-image: linear-gradient(var(--blue), var(--blue));
  background-size: 0 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s;
}
.lead__title a:hover {
  background-size: 100% 2px;
}

.lead__dek {
  color: var(--ink-2);
  font-size: 1rem;
  max-width: 54ch;
  margin-bottom: 1.75rem;
}

.lead__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.lead__read {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lead__art {
  position: relative;
}

.lead__art-block {
  position: absolute;
  left: -20px;
  bottom: -20px;
  width: 46%;
  height: 58%;
  background: linear-gradient(150deg, var(--blue), var(--navy-800));
  z-index: 0;
}

.lead__media {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 11;
}

.lead__rail {
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 2rem;
  align-items: start;
}

.lead__rail-label {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 0.2rem;
}

.lead__rail-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.leadlink {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding-left: 1.75rem;
  border-left: 1px solid var(--line-2);
}

.lead__rail-items .leadlink:first-child {
  padding-left: 0;
  border-left: none;
}

.leadlink__num {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  color: var(--blue);
  padding-top: 0.15rem;
}

.leadlink__title {
  font-size: 0.9375rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.leadlink__title a:hover {
  color: var(--blue);
}

/* ── 10. Newsroom counters ─────────────────────────────────────────────── */
.counters {
  background: var(--navy-900);
  color: var(--on-dark);
  position: relative;
}

.counters::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(70, 207, 232, 0.07) 1px, transparent 1px);
  background-size: 48px 100%;
  pointer-events: none;
}

.counters__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.counter {
  padding: clamp(1.5rem, 3vw, 2.25rem) 1.25rem;
  text-align: center;
  border-left: 1px solid var(--dark-line);
}

.counter:first-child {
  border-left: none;
}

.counter__num {
  display: block;
  font-family: var(--f-head);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.counter__num--accent {
  color: var(--cyan);
}

.counter__label {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

/* ── 11. Desk shells ───────────────────────────────────────────────────── */
.desk {
  padding: clamp(2.75rem, 5.5vw, 4.5rem) 0;
}

.desk--dark {
  background: var(--navy-900);
  color: var(--on-dark);
}

.desk--tint {
  background: var(--tint);
}

/* ── 12. Business — split ──────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.split__media {
  aspect-ratio: 16 / 9;
  margin-bottom: 1.25rem;
}

.split__body > .pill {
  margin-bottom: 0.75rem;
}

.split__title {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.22;
  margin-bottom: 0.75rem;
}
.split__title a:hover {
  color: var(--blue);
}

.split__excerpt {
  color: var(--ink-2);
  margin-bottom: 0.9rem;
  max-width: 62ch;
}

.split__list {
  display: flex;
  flex-direction: column;
}

.rowcard {
  display: grid;
  grid-template-columns: 1fr 128px;
  gap: 1.1rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.split__list .rowcard:first-child {
  padding-top: 0;
}
.split__list .rowcard:last-child {
  border-bottom: none;
}

.rowcard__title {
  font-size: 0.9375rem;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}
.rowcard__title a:hover {
  color: var(--blue);
}

.rowcard__media {
  aspect-ratio: 4 / 3;
}

/* ── 13. Stock — three uneven columns ──────────────────────────────────── */
.columns {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr 0.85fr;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: start;
}

.tallcard__media {
  aspect-ratio: 5 / 4;
  margin-bottom: 1.1rem;
}

.tallcard__body > .pill {
  margin-bottom: 0.6rem;
}

.tallcard__title {
  font-size: 1.15rem;
  line-height: 1.25;
  margin-bottom: 0.65rem;
  color: var(--on-dark);
}
.tallcard__title a:hover {
  color: var(--cyan);
}

.tallcard__excerpt {
  color: var(--on-dark-2);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.desk--dark [class*="__date"] {
  color: var(--on-dark-3);
}

.columns__mid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.widecard {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--dark-line);
}

.columns__mid .widecard:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widecard__media {
  aspect-ratio: 5 / 4;
  background: var(--navy-800);
}

.widecard__title {
  font-size: 0.9375rem;
  line-height: 1.32;
  margin-bottom: 0.5rem;
  color: var(--on-dark);
}
.widecard__title a:hover {
  color: var(--cyan);
}

.widecard__excerpt {
  font-size: 0.8125rem;
  color: var(--on-dark-2);
  margin-bottom: 0.5rem;
}

.columns__briefs {
  background: var(--navy-800);
  padding: 1.5rem;
  border-top: 3px solid var(--cyan);
}

.columns__briefs-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.brief {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--dark-line);
}

.columns__briefs .brief:first-of-type {
  border-top: none;
  padding-top: 0;
}

.brief__num {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  color: var(--on-dark-3);
}

.brief__title {
  font-size: 0.875rem;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  color: var(--on-dark);
}
.brief__title a:hover {
  color: var(--cyan);
}

/* ── 14. Investing — portrait cards with overlapping panel ─────────────── */
.stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}

.portrait {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portrait__media {
  aspect-ratio: 1 / 1;
}

.portrait__panel {
  position: relative;
  z-index: 1;
  margin: -58px 12px 0;
  background: var(--paper);
  border-top: 3px solid var(--blue);
  padding: 1.1rem 1.15rem 1.25rem;
  box-shadow: 0 18px 34px -26px rgba(6, 21, 48, 0.5);
  flex: 1;
}

.portrait__index {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.portrait__title {
  font-size: 0.9375rem;
  line-height: 1.32;
  margin-bottom: 0.55rem;
}
.portrait__title a:hover {
  color: var(--blue);
}

.portrait__excerpt {
  font-size: 0.8125rem;
  color: var(--ink-2);
  margin-bottom: 0.65rem;
}

/* ── 15. Politics — ledger ─────────────────────────────────────────────── */
.ledger {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.ledger__list {
  counter-reset: ledger;
  border-top: 1px solid var(--line);
}

.ledger__item {
  counter-increment: ledger;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  padding: 1.4rem 0 1.4rem 3.5rem;
  border-bottom: 1px solid var(--line);
}

.ledger__item::before {
  content: counter(ledger, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.45rem;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--blue);
}

.ledger__item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.4s;
}

.ledger__item:hover::after {
  width: 100%;
}

.ledger__title {
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0.45rem;
}
.ledger__title a:hover {
  color: var(--blue);
}

.ledger__excerpt {
  font-size: 0.8125rem;
  color: var(--ink-2);
  max-width: 58ch;
}

.ledger__pics {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.piccard {
  background: var(--paper);
  border: 1px solid var(--line);
}

.piccard__media {
  aspect-ratio: 16 / 10;
}

.piccard__body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.piccard__body > .pill {
  margin-bottom: 0.6rem;
}

.piccard__title {
  font-size: 0.9375rem;
  line-height: 1.32;
  margin-bottom: 0.5rem;
}
.piccard__title a:hover {
  color: var(--blue);
}

/* ── 16. Sport — band ──────────────────────────────────────────────────── */
.band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.overcard {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--navy-800);
}

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

.overcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 21, 48, 0) 18%, rgba(6, 21, 48, 0.5) 46%, rgba(6, 21, 48, 0.88) 76%, rgba(6, 21, 48, 0.97) 100%);
  pointer-events: none;
}

.overcard__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 1.25rem;
  border-left: 3px solid var(--cyan);
  margin-left: 1.25rem;
  padding-left: 0.9rem;
  margin-bottom: 1.25rem;
}

.overcard__date {
  color: var(--cyan) !important;
  margin-bottom: 0.4rem;
}

.overcard__title {
  font-size: 0.9375rem;
  line-height: 1.32;
  color: #fff;
}
.overcard__title a:hover {
  color: var(--cyan);
}

/* ── 17. Newsletter ────────────────────────────────────────────────────── */
.newsletter-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--paper);
}

.newsletter-section__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 4rem);
  background: linear-gradient(140deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--on-dark);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  position: relative;
  overflow: hidden;
}

.newsletter-section__inner::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 260px;
  height: 260px;
  border: 1px solid var(--dark-line);
  border-radius: 50%;
  pointer-events: none;
}

.newsletter-section__text {
  position: relative;
}

.newsletter-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.newsletter-section__eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--cyan);
}

.newsletter-section__title {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.newsletter-section__sub {
  color: var(--on-dark-2);
  font-size: 0.9375rem;
  max-width: 50ch;
  margin-bottom: 1.5rem;
}

.newsletter-section__list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.newsletter-section__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.875rem;
  color: var(--on-dark-2);
  padding-top: 0.7rem;
  border-top: 1px solid var(--dark-line);
}

.newsletter-section__list-mark {
  font-family: var(--f-mono);
  color: var(--cyan);
}

.newsletter-section__panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-line);
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
  align-self: start;
  position: relative;
}

.newsletter-section__panel-head {
  margin-bottom: 1.25rem;
}

.newsletter-section__panel-heading {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.newsletter-section__panel-sub {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--on-dark-3);
}

/* CF7 — markup is owned by the plugin, so we only restyle it */
.newsletter-section .wpcf7 {
  width: 100%;
}

.newsletter-section .hidden-fields-container,
.newsletter-section .screen-reader-response {
  display: none;
}

.newsletter-section .wpcf7-form p {
  margin: 0;
}

.newsletter-section .form-fields p {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  position: relative;
}

.newsletter-section .form-fields p br {
  display: none;
}

.newsletter-section .form-fields .wpcf7-form-control-wrap {
  display: block;
  position: relative;
  width: 100%;
}

.newsletter-section .wpcf7-email {
  width: 100%;
  font-family: var(--f-body);
  font-size: 0.875rem;
  background: #fff;
  border: 1.5px solid transparent;
  color: var(--ink);
  border-radius: var(--r);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.newsletter-section .wpcf7-email::placeholder {
  color: var(--ink-3);
}

.newsletter-section .wpcf7-email:focus {
  outline: none;
  border-color: var(--cyan);
}

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

.newsletter-section .wpcf7-submit {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  padding: 0.9rem 1.5rem;
  width: 100%;
  transition: background 0.18s;
  position: relative;
}

.newsletter-section .wpcf7-submit:hover {
  background: var(--blue-light);
}

.newsletter-section .wpcf7-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.newsletter-section .wpcf7-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  pointer-events: none;
}

.newsletter-section .wpcf7-not-valid-tip {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  color: #ff9b94;
  display: block;
  margin-top: 6px;
  text-align: left;
  position: static;
}

.newsletter-section .form-privacy {
  margin-top: 1rem;
}

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

.newsletter-section .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--on-dark-3);
  text-align: left;
}

.newsletter-section .wpcf7-list-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 0.25em;
  accent-color: var(--blue-light);
  cursor: pointer;
}

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

.newsletter-section .wpcf7-acceptance.wpcf7-not-valid .wpcf7-list-item-label {
  color: #ff9b94;
}

.newsletter-section .wpcf7-response-output {
  display: none;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r);
  border: none !important;
  margin: 1rem 0 0 !important;
  width: 100%;
  text-align: center;
}

.newsletter-section .wpcf7-form.sent .wpcf7-response-output {
  display: block;
  background: rgba(18, 167, 106, 0.16);
  color: #6fe3b0;
}

.newsletter-section .wpcf7-form.invalid .wpcf7-response-output,
.newsletter-section .wpcf7-form.unaccepted .wpcf7-response-output,
.newsletter-section .wpcf7-form.spam .wpcf7-response-output,
.newsletter-section .wpcf7-form.failed .wpcf7-response-output {
  display: block;
  background: rgba(224, 69, 60, 0.16);
  color: #ff9b94;
}

/* ── 18. Market board ──────────────────────────────────────────────────── */
.board-section {
  padding: 0 0 clamp(3rem, 6vw, 5rem);
  background: var(--paper);
}

.board {
  --brow-grid: 52px minmax(96px, 1fr) minmax(150px, 2.6fr) 74px auto;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}

.board__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1.75rem;
}

.board__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.board__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up);
  animation: st-pulse 2.2s ease-in-out infinite;
}

.board__title {
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  margin-bottom: 0.7rem;
}

.board__sub {
  color: var(--ink-2);
  font-size: 0.875rem;
  max-width: 62ch;
}

.board__stamp {
  text-align: right;
  font-family: var(--f-mono);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.board__stamp-label {
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.board__stamp-value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}

.board__stamp-note {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.board__callouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.callout {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  padding: 1rem 1.15rem;
}

.callout--worst {
  border-left-color: var(--dollar-down);
}

.callout__label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
}

.callout__value {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-family: var(--f-mono);
}

.callout__value strong {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.callout__value em {
  font-style: normal;
  font-size: 0.875rem;
}

.callout__value em.is-up { color: var(--dollar-up); }
.callout__value em.is-down { color: var(--dollar-down); }
.callout__value em.is-flat { color: var(--ink-3); }

.callout__name {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--ink-2);
}

.board__scalerow {
  display: grid;
  grid-template-columns: var(--brow-grid);
  margin-bottom: 0.5rem;
}

/* 1fr / auto / 1fr keeps "Unchanged" exactly over the centre axis
   regardless of how wide the two flanking labels are. */
.board__scale {
  grid-column: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  font-family: var(--f-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.board__scale > :first-child {
  text-align: left;
}

.board__scale > :last-child {
  text-align: right;
}

.board__scale-zero {
  color: var(--ink-2);
  text-align: center;
  padding-inline: 0.75rem;
}

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

.brow {
  display: grid;
  grid-template-columns: var(--brow-grid);
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-2);
}

.brow__code {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brow__name {
  font-size: 0.8125rem;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brow__track {
  position: relative;
  height: 20px;
}

.brow__axis {
  position: absolute;
  left: 50%;
  top: -0.6rem;
  bottom: -0.6rem;
  width: 1px;
  background: #c2cde1;
}

.brow__bar {
  position: absolute;
  top: 4px;
  bottom: 4px;
  min-width: 2px;
  transition: width 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.brow__bar.is-up { background: var(--dollar-up); }
.brow__bar.is-down { background: var(--dollar-down); }
.brow__bar.is-flat { background: var(--ink-3); }

.brow__chg {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  text-align: right;
}

.brow__chg.is-up { color: var(--dollar-up); }
.brow__chg.is-down { color: var(--dollar-down); }
.brow__chg.is-flat { color: var(--ink-3); }

.brow__rate {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--ink-2);
  text-align: right;
  white-space: nowrap;
}

.brow__rate-pre {
  color: var(--ink-3);
}

.brow__rate-code {
  color: var(--ink-3);
}

.board__empty {
  padding: 1.5rem 0;
  color: var(--ink-3);
  font-size: 0.875rem;
}

.board__foot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.board__crypto {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.board__crypto-label {
  font-family: var(--f-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  max-width: 90px;
  line-height: 1.5;
}

.coin {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: var(--f-mono);
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

.coin__code {
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

.coin__price {
  font-size: 1rem;
  font-weight: 500;
}

.coin__chg {
  font-size: 0.6875rem;
}

.coin__chg.is-up { color: var(--up); }
.coin__chg.is-down { color: var(--down); }
.coin__chg.is-flat { color: var(--ink-3); }

.coin__win {
  color: var(--ink-3);
}

.board__note {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}

.board__note p {
  font-size: 0.75rem;
  color: var(--ink-3);
  max-width: 48ch;
  line-height: 1.6;
}

/* ── 19. Archive & card grids ──────────────────────────────────────────── */
.archive-main,
.page-main,
.error-main {
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.archive-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 2.5rem;
}

.archive-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.85rem;
}

.archive-head__title {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.1;
}

.archive-head__desc {
  margin-top: 0.85rem;
  color: var(--ink-2);
  max-width: 62ch;
}

.archive-head__count {
  text-align: right;
  font-family: var(--f-mono);
  flex: none;
}

.archive-head__count-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--blue);
}

.archive-head__count-label {
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

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

.post-card {
  display: flex;
  flex-direction: column;
}

.post-card__media {
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem;
}

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__body > .pill {
  align-self: flex-start;
  margin-bottom: 0.6rem;
}

.post-card__title {
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0.55rem;
}
.post-card__title a:hover {
  color: var(--blue);
}

.post-card__excerpt {
  font-size: 0.8125rem;
  color: var(--ink-2);
  margin-bottom: 0.75rem;
}

.post-card__foot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line-2);
  margin-top: auto;
}

.post-card__read {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-left: auto;
}

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

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

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--ink-2);
  transition: all 0.15s;
}

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

.pagination .page-numbers.current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.pagination .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.no-results {
  padding: clamp(3rem, 8vw, 6rem) 0;
  text-align: center;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  color: var(--ink-2);
}

/* ── 20. 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(--blue), var(--cyan));
}

.single-main {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.25rem;
}

.crumbs a:hover {
  color: var(--blue);
}

.article-head {
  max-width: 860px;
  margin-bottom: 2.25rem;
}

.article-head__title {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.14;
  margin-bottom: 1.1rem;
}

.article-head__meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.article-head__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line);
}

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

.article-hero {
  position: relative;
  margin-bottom: 2rem;
}

.article-hero__block {
  position: absolute;
  left: -18px;
  top: -18px;
  width: 120px;
  height: 120px;
  background: var(--blue);
  z-index: 0;
}

.article-hero__img {
  position: relative;
  z-index: 1;
  width: 100%;
}

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

/* Article body */
.article-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #1b2c45;
}

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

.article-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  padding-top: 0.5rem;
  border-top: 2px solid var(--ink);
}

.article-content h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
}

.article-content h4 {
  font-size: 1rem;
  margin-top: 1.75rem;
}

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

.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: -1rem;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: var(--blue);
}

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

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

.article-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 0.25rem 0 0.25rem 1.5rem;
  font-family: var(--f-head);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ink);
}

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

.article-content figcaption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--ink-3);
}

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

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

.article-content th {
  background: var(--paper-2);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-content code {
  font-family: var(--f-mono);
  font-size: 0.875em;
  background: var(--paper-3);
  padding: 0.15em 0.4em;
}

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

.article-tags__label {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.article-tags a {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--ink-2);
}

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

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

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

.article-nav__label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.4rem;
}

.article-nav__link {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
}
.article-nav__link:hover {
  color: var(--blue);
}

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

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

.aside-panel {
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  padding: 1.25rem;
}

.aside-panel__heading {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.aside-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line-2);
}

.aside-panel .aside-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.aside-item__num {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  color: var(--blue);
  padding-top: 0.2rem;
}

.aside-item__title {
  font-size: 0.875rem;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}
.aside-item__title a:hover {
  color: var(--blue);
}

.aside-item__time {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── 21. Page & 404 ────────────────────────────────────────────────────── */
.page-head {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--ink);
}

.page-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.85rem;
}

.page-head__title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.15;
}

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

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

.error-page__code {
  font-family: var(--f-mono);
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 600;
  line-height: 1;
  color: var(--paper-3);
  letter-spacing: 0.04em;
}

.error-page__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

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

.error-recent {
  margin-top: 3.5rem;
  text-align: left;
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
}

.error-recent__heading {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.error-recent__list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-2);
}

.error-recent__num {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  color: var(--blue);
}

.error-recent__list a {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 0.9375rem;
}
.error-recent__list a:hover {
  color: var(--blue);
}

.error-recent__list time {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ── 22. Footer ────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-900);
  color: var(--on-dark);
}

.footer-main {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  border-top: 3px solid var(--blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
}

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

.footer-logo-link img,
.footer-brand img {
  max-height: 50px;
  width: auto;
}

.footer-logo-text {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--on-dark);
}

.footer-brand__desc {
  font-size: 0.875rem;
  color: var(--on-dark-2);
  max-width: 44ch;
  margin-bottom: 1.1rem;
}

.footer-brand__disclaimer {
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--on-dark-3);
  max-width: 46ch;
  padding-top: 0.9rem;
  border-top: 1px solid var(--dark-line);
}

.footer-col__title {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.1rem;
}

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

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

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

.footer-cta__copy {
  font-size: 0.8125rem;
  color: var(--on-dark-2);
  margin-bottom: 1.1rem;
}

.footer-bottom {
  border-top: 1px solid var(--dark-line);
  padding: 1.25rem 0;
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy,
.footer-mark {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

.footer-copy a {
  color: var(--on-dark-2);
}
.footer-copy a:hover {
  color: var(--cyan);
}

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

/* ── 23. Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .columns {
    grid-template-columns: 1fr 1fr;
  }
  .columns__briefs {
    grid-column: 1 / -1;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .footer-col--cta {
    grid-column: 1 / -1;
    border-top: 1px solid var(--dark-line);
    padding-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
    align-items: center;
  }
  .footer-col--cta .footer-col__title {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
  .footer-cta__copy {
    margin-bottom: 0;
  }
  .footer-col--cta .btn--block {
    width: auto;
    padding-inline: 2rem;
  }
}

@media (max-width: 1000px) {
  .masthead__nav {
    display: none;
  }
  /* With the nav gone the actions would fall into the 1fr track and sit
     right next to the logo — give the logo that track instead. */
  .masthead__inner {
    grid-template-columns: auto 1fr;
  }
  .masthead__actions {
    justify-self: end;
  }
  /* Subscribe already lives in the drawer */
  .masthead__actions .btn {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .lead__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .lead__art {
    order: -1;
  }
  .lead__title {
    font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .ledger {
    grid-template-columns: 1fr;
  }
  .ledger__pics {
    flex-direction: row;
  }
  .ledger__pics .piccard {
    flex: 1;
  }
  .stack {
    grid-template-columns: repeat(2, 1fr);
  }
  .board__foot {
    grid-template-columns: 1fr;
  }
  .board__note {
    justify-content: space-between;
  }
  .post-grid--3 {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }
}

@media (max-width: 900px) {
  .single-layout {
    grid-template-columns: 1fr;
  }
  .single-aside {
    position: static;
  }
  .newsletter-section__inner {
    grid-template-columns: 1fr;
  }
  .lead__rail {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .lead__rail-items {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .leadlink {
    padding: 1rem 0 1rem 0;
    border-left: none;
    border-top: 1px solid var(--line-2);
  }
  .lead__rail-items .leadlink:first-child {
    border-top: none;
    padding-top: 0;
  }
  .band {
    grid-template-columns: repeat(2, 1fr);
  }
  .board__head {
    grid-template-columns: 1fr;
  }
  .board__stamp {
    text-align: left;
    flex-direction: row;
    align-items: baseline;
    gap: 0.75rem;
  }
}

@media (max-width: 780px) {
  .board {
    --brow-grid: 46px minmax(0, 1fr) 68px;
  }
  .brow__name {
    display: none;
  }
  .brow__track {
    grid-column: 2;
  }
  .brow__rate {
    grid-column: 1 / -1;
    text-align: left;
    padding-bottom: 0.25rem;
  }
  .board__scale {
    grid-column: 2;
  }
  .board__callouts {
    grid-template-columns: 1fr;
  }
  .counters__inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .counter:nth-child(odd) {
    border-left: none;
  }
  .counter:nth-child(n + 3) {
    border-top: 1px solid var(--dark-line);
  }
  .article-nav {
    grid-template-columns: 1fr;
  }
  .article-nav__side--next {
    text-align: left;
    padding-top: 1rem;
    border-top: 1px solid var(--line-2);
  }
}

@media (max-width: 640px) {
  :root {
    --gut: 18px;
  }
  .topbar__tag {
    display: none;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .widecard {
    grid-template-columns: 110px 1fr;
  }
  .stack {
    grid-template-columns: 1fr;
  }
  .portrait__panel {
    margin: -44px 12px 0;
  }
  .ledger__pics {
    flex-direction: column;
  }
  .band {
    grid-template-columns: 1fr;
  }
  .deskhead {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
  .archive-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .archive-head__count {
    text-align: left;
  }
  .board__note {
    flex-direction: column;
    align-items: flex-start;
  }
  .board__crypto-label {
    max-width: none;
    width: 100%;
  }
  .coin:first-of-type {
    padding-left: 0;
    border-left: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-col--cta {
    grid-template-columns: 1fr;
  }
  .footer-col--cta .btn--block {
    width: 100%;
  }
}

@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;
  }
}

