/* ────────────────────────────────────────────────────────────────────────
   Sovereign Terminal — main.css
   Design: Formal finance editorial. White canvas, blue brand, red accents,
   dark contrast sections. Sora (headlines) + Plus Jakarta Sans (body).
   ──────────────────────────────────────────────────────────────────────── */

/* ── 1. Design Tokens ──────────────────────────────────────────────────── */
:root {
  /* Light surfaces */
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --surface: #ffffff;
  --surface-alt: #f4f7fc;
  --surface-raised: #ffffff;
  --border: #e4eaf3;
  --border-strong: #cddaee;

  /* Dark surfaces (header, footer, topic showcase) */
  --ink-950: #070d1b;
  --ink-900: #0b1426;
  --ink-800: #101c34;
  --ink-700: #16264424;
  --on-dark: #eef3fc;
  --on-dark-muted: #96a8c7;
  --on-dark-border: rgba(255, 255, 255, 0.1);
  --on-dark-surface: rgba(255, 255, 255, 0.06);
  --on-dark-surface-hi: rgba(255, 255, 255, 0.1);

  /* Text on light */
  --text: #0f1a2e;
  --text-muted: #5b6b85;
  --text-faint: #8b97ac;

  /* Brand blue */
  --blue-50: #eef4ff;
  --blue-100: #dfeaff;
  --blue-200: #b9d3ff;
  --blue-300: #8db8fd;
  --blue-500: #3272ec;
  --blue-600: #295fc9;
  --blue-700: #1f4aa0;
  --on-blue: #ffffff;

  /* Red accent — small details only */
  --red-500: #e0424b;
  --red-100: #fdeaec;

  /* Positive / negative (finance convention) */
  --green-500: #12a565;
  --green-100: #e1f7ec;
  --down-500: var(--red-500);
  --down-100: var(--red-100);

  /* Fonts */
  --font-head: "Sora", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(15, 26, 46, 0.06);
  --shadow-md: 0 14px 34px rgba(15, 26, 46, 0.09);
  --shadow-lg: 0 26px 64px rgba(15, 26, 46, 0.14);
  --shadow-dark: 0 24px 60px rgba(2, 6, 16, 0.45);

  /* Layout */
  --container-max: 1400px;
  --header-gap: 1.25rem;
  --header-h: 72px;
  --content-offset: 148px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

/* ── 3. Layout Utilities ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

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

.site-main {
  background: var(--bg);
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: var(--space-3);
}

.section-kicker--dark {
  color: var(--blue-300);
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  color: var(--text);
}

.section-title--dark {
  color: var(--on-dark);
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.section-explore-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue-600);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: gap 0.2s, color 0.15s;
}

.section-explore-link:hover {
  gap: var(--space-3);
  color: var(--blue-700);
}

.no-posts,
.no-results {
  color: var(--text-muted);
  font-size: 0.9375rem;
  padding-block: var(--space-10);
}

/* ── 4. Buttons & Chips ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-full);
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--blue-500);
  color: var(--on-blue);
  box-shadow: 0 10px 26px rgba(50, 114, 236, 0.28);
}

.btn--primary:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  color: var(--on-blue);
}

.btn--ghost {
  background: var(--surface-alt);
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}

.btn--ghost:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}

.chip {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: var(--radius-full);
  transition: background-color 0.15s;
}

.chip:hover {
  background: var(--blue-100);
  color: var(--blue-700);
}

/* ── 5. Header (floating) ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: var(--header-gap);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - var(--space-8));
  max-width: var(--container-max);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  border: 1px solid var(--on-dark-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-dark);
  transition: box-shadow 0.3s, top 0.3s, border-radius 0.3s;
}

.site-header--scrolled {
  box-shadow: 0 18px 44px rgba(2, 6, 16, 0.55);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: var(--space-6);
  gap: var(--space-6);
}

/* Logo */
.site-logo,
.custom-logo-link {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--on-dark);
  flex-shrink: 0;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.site-logo::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red-500);
  margin-right: 0.55rem;
  box-shadow: 0 0 0 4px rgba(224, 66, 75, 0.18);
}

.site-logo:hover,
.custom-logo-link:hover {
  color: var(--on-dark);
}

.custom-logo {
  max-height: 34px;
  width: auto;
}

/* Desktop nav */
.nav-menu--overlay {
  display: none !important;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-list a {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--on-dark-muted);
  transition: color 0.2s, background-color 0.2s;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  display: block;
}

.nav-list a:hover {
  color: var(--on-dark);
  background: var(--on-dark-surface);
}

.nav-list li.current-menu-item > a {
  color: var(--on-dark);
  background: var(--on-dark-surface-hi);
  font-weight: 700;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.nav-icon-btn {
  background: var(--blue-500);
  border: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-blue);
  border-radius: var(--radius-full);
  transition: background-color 0.15s, transform 0.15s;
}

.nav-icon-btn:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--on-dark);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.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);
}

/* Mobile nav overlay */
@media (max-width: 1023px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu--desktop {
    display: none !important;
  }

  .nav-menu--overlay {
    display: flex !important;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--ink-900);
    padding: calc(var(--header-h) + var(--header-gap) * 2) var(--space-6) var(--space-8);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 150;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow-y: auto;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    width: 100%;
  }

  .nav-list a {
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
  }
}

/* ── 6. Home: Headline Ticker ──────────────────────────────────────────── */
.headline-ticker-section {
  padding-top: var(--content-offset);
  padding-bottom: var(--space-6);
  background: var(--bg);
}

.headline-ticker {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.4rem 0.6rem 0.6rem;
}

.headline-ticker__label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-blue);
  background: var(--blue-500);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
}

.headline-ticker__label .material-symbols-outlined {
  font-size: 1rem;
}

.headline-ticker__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.headline-ticker__track {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: max-content;
  animation: headline-scroll 26s linear infinite;
}

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

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

.headline-ticker__item {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.15s;
}

.headline-ticker__item:hover {
  color: var(--blue-600);
}

.headline-ticker__sep {
  flex-shrink: 0;
  color: var(--text-faint);
}

/* ── 7. Home: Hero Stories ────────────────────────────────────────────── */
.hero-section {
  padding-block: var(--space-6) var(--space-20);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-8);
  align-items: stretch;
}

.hero-feature {
  display: flex;
  flex-direction: column;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.25s, transform 0.25s;
}

.hero-feature:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.hero-feature__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-alt);
}

.hero-feature__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-feature__img--placeholder {
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
}

.hero-feature__media:hover .hero-feature__img {
  transform: scale(1.04);
}

.hero-feature__cat {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-5);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-blue);
  background: var(--blue-500);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.hero-feature__body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

.hero-feature__title {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.25;
}

.hero-feature__title a:hover {
  color: var(--blue-600);
}

.hero-feature__excerpt {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-feature__meta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
}

.hero-side-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hero-side-post {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  flex: 1;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.hero-side-post:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.hero-side-post__thumb {
  flex-shrink: 0;
  display: block;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-alt);
  border: 3px solid var(--blue-50);
}

.hero-side-post__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-side-post__img--placeholder {
  display: block;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
}

.hero-side-post__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hero-side-post__cat {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.hero-side-post__title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.hero-side-post__title a:hover {
  color: var(--blue-600);
}

.hero-side-post__meta {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-faint);
}

/* ── 8. Home: Topic Showcase (dark) ───────────────────────────────────── */
.topics-section {
  background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
  padding-block: var(--space-24);
}

.topics-section__head {
  max-width: 640px;
  margin-bottom: var(--space-12);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.topic-panel {
  background: var(--on-dark-surface);
  border: 1px solid var(--on-dark-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: background 0.2s, transform 0.2s;
}

.topic-panel:hover {
  background: var(--on-dark-surface-hi);
  transform: translateY(-2px);
}

.topic-panel__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.topic-panel__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--blue-500);
  color: var(--on-blue);
}

.topic-panel__icon .material-symbols-outlined {
  font-size: 1.4rem;
}

.topic-panel__heading {
  flex: 1;
  min-width: 0;
}

.topic-panel__title {
  font-size: 1.15rem;
  color: var(--on-dark);
  margin-bottom: 0.2rem;
}

.topic-panel__count {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.topic-panel__link {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-300);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s, color 0.15s;
}

.topic-panel__link:hover {
  gap: 0.5rem;
  color: var(--on-dark);
}

.topic-panel__posts {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border-top: 1px solid var(--on-dark-border);
  padding-top: var(--space-4);
}

.topic-post {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.topic-post:hover {
  background: var(--on-dark-surface-hi);
}

.topic-post__thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
  background: var(--on-dark-surface-hi);
}

.topic-post__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.topic-post__img--placeholder {
  background: linear-gradient(135deg, var(--blue-700), var(--ink-800));
}

.topic-post__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.topic-post__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--on-dark);
  overflow: hidden;
  text-overflow: ellipsis;
}

.topic-post__meta {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--on-dark-muted);
}

.topic-panel__empty {
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  padding-block: var(--space-2);
}

/* ── 9. Home: Market Intelligence ─────────────────────────────────────── */
.market-pulse-section {
  padding-block: var(--space-24);
  background: var(--surface-alt);
}

.market-pulse-head {
  max-width: 640px;
  margin-bottom: var(--space-12);
}

.market-pulse-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-6);
  align-items: start;
}

.pulse-assets {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.pulse-assets__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.pulse-assets__title {
  font-size: 1.15rem;
  color: var(--text);
}

.pulse-badge {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--blue-50);
  color: var(--blue-700);
  white-space: nowrap;
}

.pulse-assets__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pulse-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-2);
  border-bottom: 1px solid var(--border);
}

.pulse-row:last-child {
  border-bottom: none;
}

.pulse-row__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-600);
}

.pulse-row__icon .material-symbols-outlined {
  font-size: 1.15rem;
}

.pulse-row__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pulse-row__name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

.pulse-row__sym {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.pulse-row__prices {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pulse-row__val {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

.intel-row__pct {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
}

.intel-row__pct--up {
  color: var(--green-500);
}

.intel-row__pct--down {
  color: var(--down-500);
}

.pulse-assets__note {
  margin-top: var(--space-5);
  font-size: 0.75rem;
  color: var(--text-faint);
}

.pulse-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.pulse-signal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(160deg, var(--ink-900), var(--ink-800));
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  color: var(--on-dark);
  box-shadow: var(--shadow-md);
}

.pulse-signal-card__icon {
  display: flex;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-500);
  color: var(--on-blue);
  margin-bottom: var(--space-4);
}

.pulse-signal-card__icon .material-symbols-outlined {
  font-size: 1.25rem;
}

.pulse-signal-card__title {
  font-size: 1.15rem;
  margin-bottom: var(--space-3);
}

.pulse-signal-card__desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--on-dark-muted);
}

.pulse-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.pulse-stat {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pulse-stat__label {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.pulse-stat__val {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

/* ── 10. Home: Newsletter / Subscribe ─────────────────────────────────── */
.subscribe-section {
  padding-block: var(--space-24);
  background: var(--bg);
}

.subscribe-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-12);
  align-items: center;
  background: linear-gradient(135deg, var(--ink-900), var(--ink-950));
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.subscribe-card::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(50, 114, 236, 0.35), transparent 70%);
  pointer-events: none;
}

.subscribe-card__text {
  position: relative;
  z-index: 1;
}

.subscribe-card__title {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  color: var(--on-dark);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.subscribe-card__sub {
  font-size: 1rem;
  color: var(--on-dark-muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: var(--space-8);
}

.subscribe-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: var(--space-6);
}

.subscribe-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.subscribe-stat__val {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--on-dark);
}

.subscribe-stat__label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--on-dark-muted);
}

.subscribe-card__form {
  position: relative;
  z-index: 1;
  background: var(--on-dark-surface);
  border: 1px solid var(--on-dark-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

/* CF7 form inside subscribe card */
.newsletter-form-shell .wpcf7-form p {
  margin: 0;
}

.newsletter-form-shell .hidden-fields-container {
  display: none;
}

.newsletter-form-shell .form-fields p {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
}

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

.newsletter-form-shell .wpcf7-form-control-wrap {
  display: block;
}

.newsletter-form-shell .wpcf7-email {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid transparent;
  color: var(--text);
  border-radius: var(--radius-full);
  padding: 0.9rem 1.5rem;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-privacy {
  margin-top: 15px;
}

.newsletter-form-shell .wpcf7-email::placeholder {
  color: var(--text-faint);
}

.newsletter-form-shell .wpcf7-email:focus {
  outline: none;
  border-color: var(--blue-500);
}

.newsletter-form-shell .wpcf7-email.wpcf7-not-valid {
  border-color: var(--red-500);
}

.newsletter-form-shell .wpcf7-submit {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--blue-500);
  color: var(--on-blue);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  padding: 0.9rem 1.5rem;
  width: 100%;
  transition: background-color 0.15s;
  position: relative;
}

.newsletter-form-shell .wpcf7-submit:hover {
  background: var(--blue-600);
}

.newsletter-form-shell .wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.newsletter-form-shell .wpcf7-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.newsletter-form-shell .wpcf7-not-valid-tip {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffb4b8;
  display: block;
  margin-top: 0.4rem;
}

.newsletter-form-shell .form-privacy .wpcf7-list-item-label {
  color: var(--on-dark-muted);
}

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

.newsletter-form-shell .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.newsletter-form-shell .wpcf7-list-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.2em;
  accent-color: var(--blue-500);
  cursor: pointer;
}

.newsletter-form-shell .wpcf7-list-item-label a {
  color: var(--blue-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.newsletter-form-shell .wpcf7-response-output {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: none !important;
  margin: 0 !important;
  width: 100%;
  text-align: left;
}

.newsletter-form-shell .wpcf7-response-output[aria-hidden="true"] {
  display: none;
}

.newsletter-form-shell .wpcf7-form.sent .wpcf7-response-output {
  background: var(--green-100);
  color: #065f46;
}

.newsletter-form-shell .wpcf7-form.invalid .wpcf7-response-output,
.newsletter-form-shell .wpcf7-form.unaccepted .wpcf7-response-output,
.newsletter-form-shell .wpcf7-form.spam .wpcf7-response-output,
.newsletter-form-shell .wpcf7-form.failed .wpcf7-response-output {
  background: var(--red-100);
  color: #991b1b;
}

/* ── 11. Home: Why Read Us ────────────────────────────────────────────── */
.why-us-section {
  padding-block: var(--space-24);
  background: var(--surface-alt);
}

.why-us-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-16);
  align-items: start;
}

.why-us-intro__desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.tip-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tip-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}

.tip-list .material-symbols-outlined {
  flex-shrink: 0;
  color: var(--blue-500);
  font-size: 1.2rem;
  margin-top: 0.05rem;
}

.why-us-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card__icon {
  display: flex;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--blue-50);
  color: var(--blue-600);
  margin-bottom: var(--space-4);
}

.feature-card__icon .material-symbols-outlined {
  font-size: 1.3rem;
}

.feature-card__title {
  font-size: 1.0625rem;
  margin-bottom: var(--space-2);
}

.feature-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── 12. Home: More From the Desk ─────────────────────────────────────── */
.more-stories-section {
  padding-block: var(--space-20) var(--space-24);
  background: var(--bg);
}

/* ── 13. Shared: Post Grid / Post Tile ────────────────────────────────── */
.post-grid {
  display: grid;
  gap: var(--space-6);
}

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

.post-tile {
  display: flex;
  flex-direction: column;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.post-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-tile__thumb-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-alt);
}

.post-tile__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-tile__thumb-link:hover .post-tile__thumb {
  transform: scale(1.05);
}

.post-tile__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.post-tile__chips {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.post-tile__title {
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--text);
}

.post-tile__title a:hover {
  color: var(--blue-600);
}

.post-tile__excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.post-tile__meta {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: auto;
}

/* ── 14. Archive Page ──────────────────────────────────────────────────── */
.archive-main {
  padding-top: var(--content-offset);
  padding-bottom: var(--space-20);
  background: var(--bg);
  min-height: 100vh;
}

.archive-header {
  padding-bottom: var(--space-10);
  max-width: 720px;
}

.archive-header__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--text);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.archive-header__desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
}

/* ── 15. Pagination ────────────────────────────────────────────────────── */
.pagination {
  margin-top: var(--space-12);
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.pagination .page-numbers {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text);
  background: var(--surface-alt);
  transition: background-color 0.15s, color 0.15s;
  text-decoration: none;
}

.pagination .page-numbers:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}

.pagination .page-numbers.current {
  background: var(--blue-500);
  color: var(--on-blue);
  pointer-events: none;
}

.pagination .prev,
.pagination .next {
  width: auto;
  padding: 0 var(--space-5);
  font-weight: 700;
}

/* ── 16. Single Post ──────────────────────────────────────────────────── */
.single-main {
  padding-top: var(--content-offset);
  background: var(--bg);
  min-height: 100vh;
}

.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-16);
  align-items: start;
  padding-bottom: var(--space-16);
}

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

.single-article {
  max-width: 100%;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--blue-500);
  z-index: 300;
  transition: width 0.05s linear;
}

.article-header {
  margin-bottom: var(--space-8);
}

.article-header__chips {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.article-header__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--text);
  line-height: 1.18;
  margin-bottom: var(--space-5);
}

.article-header__meta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.article-hero {
  margin-bottom: var(--space-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-hero__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-hero__caption {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-faint);
  padding: var(--space-3) 0;
}

.article-content {
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--text);
}

.article-content p {
  margin-bottom: var(--space-6);
}
.article-content h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  font-size: 1.6rem;
}
.article-content h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  font-size: 1.3rem;
}
.article-content h4 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  font-size: 1.1rem;
}

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

.article-content a:hover {
  color: var(--blue-700);
}

.article-content blockquote {
  border-left: 3px solid var(--red-500);
  padding-left: var(--space-6);
  margin-block: var(--space-8);
  font-size: 1.2rem;
  color: var(--text-muted);
  font-style: italic;
}

.article-content ul,
.article-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-6);
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}
.article-content li {
  margin-bottom: var(--space-2);
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

.article-nav__label {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  display: block;
  margin-bottom: var(--space-2);
}

.article-nav__link {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  transition: color 0.15s;
}

.article-nav__link:hover {
  color: var(--blue-600);
}

.article-nav__next {
  text-align: right;
}

.related-posts {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

.related-posts__heading {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: var(--space-8);
}

.single-sidebar {
  position: sticky;
  top: calc(var(--content-offset) - var(--space-6));
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.sidebar-panel {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.sidebar-panel__heading {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-strong);
}

.side-article {
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.side-article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.side-article__title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
  color: var(--text);
}

.side-article__title a:hover {
  color: var(--blue-600);
}

.side-article__time {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── 17. Static Page Template ──────────────────────────────────────────── */
.page-main {
  padding-top: var(--content-offset);
  background: var(--bg);
  min-height: 82vh;
}

.static-page {
  padding-bottom: var(--space-24);
}

.page-header {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}

.page-header__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--text);
  line-height: 1.1;
  margin: 0 0 var(--space-3);
}

.page-hero {
  margin: 0 0 var(--space-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7;
}

.page-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-content {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
}

.page-content > * + * {
  margin-top: 1.5em;
}

.page-content h2,
.page-content h3,
.page-content h4 {
  color: var(--text);
  line-height: 1.25;
  margin-top: 2.5em;
  margin-bottom: 0.5em;
}

.page-content h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}
.page-content h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}
.page-content h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-content a {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover {
  color: var(--blue-700);
}

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

.page-content ul {
  list-style: disc;
}

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

.page-content li + li {
  margin-top: 0.4em;
}

.page-content blockquote {
  border-left: 3px solid var(--blue-500);
  margin-left: 0;
  padding: var(--space-4) var(--space-6);
  background: var(--surface-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}

.page-content pre {
  background: var(--ink-900);
  color: var(--on-dark);
  padding: var(--space-5);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
}

.page-content code {
  font-size: 0.875em;
  background: var(--surface-alt);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.page-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.page-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
}

.page-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: var(--space-10);
}

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

.page-content th,
.page-content td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
}

.page-content th {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── 18. 404 Page ──────────────────────────────────────────────────────── */
.error-main {
  padding-top: var(--content-offset);
  background: var(--bg);
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.error-page {
  text-align: center;
  padding-block: var(--space-20);
  max-width: 600px;
  margin-inline: auto;
}

.error-page__code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 800;
  color: var(--border-strong);
  line-height: 1;
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
  pointer-events: none;
  user-select: none;
}

.error-page__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--text);
  margin-bottom: var(--space-5);
  line-height: 1.2;
}

.error-page__desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 460px;
  margin-inline: auto;
  line-height: 1.7;
  margin-bottom: var(--space-10);
}

.error-page__actions {
  margin-bottom: var(--space-16);
  display: flex;
  justify-content: center;
}

.error-recent {
  text-align: left;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-top: var(--space-6);
}

.error-recent__heading {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: var(--space-5);
}

.error-recent__list {
  display: flex;
  flex-direction: column;
}

.error-recent__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.error-recent__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.error-recent__list a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.error-recent__list a:hover {
  color: var(--blue-600);
}

.error-recent__list time {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-shrink: 0;
}

/* ── 19. Footer (dark, floating — mirrors header) ─────────────────────── */
.site-footer {
  width: calc(100% - var(--space-8));
  max-width: var(--container-max);
  margin-inline: auto;
  margin-block: var(--space-10) var(--space-8);
  background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
  border: 1px solid var(--on-dark-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-dark);
  padding-block: var(--space-12) var(--space-10);
}

.footer-inner {
  max-width: 920px;
  margin-inline: auto;
  padding-inline: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}

.footer-brand-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--on-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  line-height: 1;
}

.footer-brand-logo::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red-500);
  margin-right: 0.55rem;
}

.footer-brand-logo:hover {
  color: var(--on-dark);
}

.footer-inner .custom-logo {
  max-height: 44px;
  width: auto;
}

.footer-nav .footer-col__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-8);
}

.footer-nav .footer-col__list a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav .footer-col__list a:hover {
  color: var(--on-dark);
}

.footer-divider {
  width: 100%;
  max-width: 480px;
  height: 1px;
  background: var(--on-dark-border);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--on-dark-muted);
}

/* ── 20. Utility ───────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
  font-style: normal;
  line-height: 1;
}

/* ── 21. Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .market-pulse-grid {
    grid-template-columns: 1fr;
  }
  .why-us-grid {
    grid-template-columns: 1fr;
  }
  .subscribe-card {
    grid-template-columns: 1fr;
  }
  .subscribe-card::before {
    display: none;
  }
}

@media (max-width: 900px) {
  .single-layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .single-sidebar {
    position: static;
  }
  .topics-grid {
    grid-template-columns: 1fr;
  }
  .post-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --content-offset: 118px;
    --header-h: 62px;
    --header-gap: 0.75rem;
  }

  .container {
    padding-inline: var(--space-5);
  }

  .nav-inner {
    padding-inline: var(--space-4);
  }

  .why-us-features {
    grid-template-columns: 1fr;
  }
  .subscribe-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .post-grid--3 {
    grid-template-columns: 1fr;
  }
  .archive-header__title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
  .article-nav {
    grid-template-columns: 1fr;
  }
  .article-nav__next {
    text-align: left;
  }
  .hero-feature__body {
    padding: var(--space-6);
  }
  .pulse-stats {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer {
    border-radius: var(--radius-lg);
    margin-block: var(--space-6) var(--space-5);
    padding-block: var(--space-10) var(--space-8);
  }
  .subscribe-card {
    padding: var(--space-5);
    gap: var(--space-8);
  }
  .subscribe-card__form {
    padding: var(--space-5);
  }
}
