/* ============================================================
   PRIME THEME — Main Stylesheet
   Premium Financial Editorial Theme
   Charcoal + Coral Red Design System
   ============================================================ */

/* ── 1. CSS CUSTOM PROPERTIES ─────────────────────────────── */

:root {
  /* Color palette */
  --color-surface: #fafaf8;
  --color-page-bg: #f2f2f0;
  --color-warm-cream: #fff0ec;
  --color-charcoal: #1a1a1a;
  --color-coral: #e5432a;
  --color-on-surface: #111111;
  --color-on-surface-variant: #5c5c5c;
  --color-outline: #8a8a8a;
  --color-outline-variant: #d0cdc8;
  --color-border-muted: #e0ddd8;
  --color-bullish-green: #22c55e;
  --color-bearish-red: #ef4444;

  /* Typography */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "Roboto Mono", "Courier New", monospace;

  /* Spacing */
  --spacing-gutter: 24px;
  --spacing-section: 100px;
  --container-max: 1280px;
  --container-px: 16px;

  /* Easing */
  --ease-crisp: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 2. RESET & BASE ──────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--color-surface);
  color: var(--color-on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ── 3. LAYOUT ────────────────────────────────────────────── */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

@media (min-width: 640px) {
  .container {
    padding-inline: 32px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 40px;
  }
}

/* ── 4. TYPOGRAPHY UTILITIES ──────────────────────────────── */

.label-caps {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-coral);
  display: inline-block;
}

.body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}

.body-sm {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

/* ── 5. BUTTONS ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 0;
  cursor: pointer;
  transition:
    background 0.25s var(--ease-hover),
    color 0.25s var(--ease-hover),
    border-color 0.25s var(--ease-hover),
    transform 0.18s var(--ease-hover);
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-charcoal);
  color: white;
  border-color: var(--color-charcoal);
}

.btn-primary:hover {
  background-color: var(--color-coral);
  border-color: var(--color-coral);
  color: white;
}

.btn-outline {
  background-color: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
  border-radius: 0;
  padding: 8px 20px;
  font-size: 11px;
}

.btn-outline:hover {
  background-color: var(--color-coral);
  color: white;
  border-color: var(--color-coral);
}

.btn-coral {
  display: inline-block;
  background-color: var(--color-coral);
  color: white;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
  text-decoration: none;
}

.btn-coral:hover {
  transform: scale(0.98);
  opacity: 0.9;
}

/* ── 6. SITE HEADER ───────────────────────────────────────── */

.fiscal-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--color-charcoal);
  color: white;
  padding: 14px 0;
  box-shadow: none;
  border-bottom: 1px solid transparent;
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.fiscal-header.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(229, 67, 42, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

@media (min-width: 640px) {
  .header-inner {
    padding-inline: 32px;
  }
}

@media (min-width: 1024px) {
  .header-inner {
    padding-inline: 40px;
  }
}

.header-logo a,
.header-logo .custom-logo-link {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
  display: block;
}

.header-logo .custom-logo {
  height: 44px;
  width: auto;
  display: block;
}

.header-nav {
  display: none;
}

@media (min-width: 1024px) {
  .header-nav {
    display: block;
  }
}

.header-nav-list,
.header-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav-list > li > a,
.header-nav a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-bottom-color 0.2s ease;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.header-nav-list > li > a:hover,
.header-nav a:hover {
  color: var(--color-coral);
  border-bottom-color: var(--color-coral);
}

.header-logo-light {
  display: none;
}

.header-logo-dark {
  display: block;
}

.header-nav-list .sub-menu,
.header-nav .sub-menu {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-subscribe-btn {
  display: none;
}

@media (min-width: 640px) {
  .header-subscribe-btn {
    display: inline-flex;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-charcoal);
  z-index: 101;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-nav-list,
.mobile-menu ul {
  text-align: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-list li,
.mobile-menu ul li {
  margin-bottom: 20px;
}

.mobile-nav-list a,
.mobile-menu ul a {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-nav-list a:hover,
.mobile-menu ul a:hover {
  color: var(--color-coral);
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: white;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
  transition: color 0.2s ease;
}

.mobile-menu-close:hover {
  color: var(--color-coral);
}

.mobile-menu-cta {
  margin-top: 16px;
}

/* ── 7. REVEAL ANIMATION ──────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s var(--ease-crisp),
    transform 0.65s var(--ease-crisp);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── 8. HERO SECTION — editorial magazine split ───────────────── */

/* Two-column grid: solid charcoal left, image right */
.hero-section {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: calc(100vh - 120px);
  overflow: hidden;
}

/* Left: charcoal editorial panel */
.hero-content-col {
  background: var(--color-charcoal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Faint watermark text — decorative */
.hero-edition {
  position: absolute;
  bottom: 24px;
  right: -16px;
  font-family: var(--font-mono);
  font-size: clamp(100px, 16vw, 200px);
  font-weight: 400;
  color: white;
  opacity: 0.03;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.06em;
  z-index: 0;
}

/* Content pushed toward bottom-left */
.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(48px, 6vw, 96px) clamp(32px, 4.5vw, 72px) clamp(40px, 5vw, 64px);
  position: relative;
  z-index: 1;
}

/* Coral accent bar — bottom edge of left column */
.hero-coral-bar {
  height: 5px;
  background: var(--color-coral);
  flex-shrink: 0;
}

/* Right: image column */
.hero-media-col {
  position: relative;
  overflow: hidden;
  background: var(--color-charcoal);
  background-size: cover;
  background-position: center;
}

.hero-media-col .hero-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Left-edge fade from charcoal panel into image */
.hero-media-col .hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(17, 17, 17, 0.5) 0%, transparent 40%);
}

/* Label: coral rule + text inline */
.hero-label {
  color: var(--color-coral);
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-label::before {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: var(--color-coral);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 60px);
  line-height: 1.07;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: white;
  margin-bottom: 0;
}

.hero-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-title-link:hover {
  color: rgba(255, 255, 255, 0.82);
}

/* Ruled meta row sits below title */
.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  margin-top: 24px;
  margin-bottom: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Badge: solid coral fill, no border */
.hero-badge {
  padding: 3px 10px;
  background: var(--color-coral);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: white;
  font-family: var(--font-mono);
}

/* CTA: white button flips to coral on hover */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-charcoal);
  background: white;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  align-self: flex-start;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.18s ease;
}

.hero-cta:hover {
  background: var(--color-coral);
  color: white;
  transform: translateX(4px);
}

/* Tablet: compress padding, reduce column ratio */
@media (min-width: 768px) and (max-width: 1079px) {
  .hero-section {
    grid-template-columns: 54% 46%;
    min-height: 62vh;
  }

  .hero-inner {
    padding: 40px 32px 40px;
  }

  .hero-title {
    font-size: clamp(26px, 3.6vw, 44px);
  }

  .hero-meta-row {
    margin-top: 18px;
    margin-bottom: 24px;
    padding-top: 14px;
  }
}

/* Mobile: image on top, text stacked below */
@media (max-width: 767px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media-col {
    height: 52vw;
    min-height: 220px;
    max-height: 340px;
    order: -1;
  }

  .hero-content-col {
    order: 0;
  }

  .hero-inner {
    justify-content: flex-start;
    padding: 32px 20px 36px;
  }

  .hero-title {
    font-size: clamp(24px, 6.5vw, 34px);
  }

  .hero-meta-row {
    margin-top: 16px;
    margin-bottom: 28px;
    padding-top: 14px;
  }

  .hero-cta {
    padding: 12px 20px;
    font-size: 10px;
  }

  .hero-edition {
    font-size: 80px;
    right: -6px;
    bottom: 8px;
  }
}

/* ── 9. ARTICLES SECTION — dark editorial board ────────────── */

.articles-section {
  background: var(--color-charcoal);
  padding-top: var(--spacing-section);
  padding-bottom: var(--spacing-section);
}

@media (max-width: 767px) {
  .articles-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

.articles-section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.articles-section-heading {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.articles-section-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* Board: feature full-width on top, two side cards below */
.articles-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 767px) {
  .articles-board {
    grid-template-columns: 1fr;
  }
}

/* Featured card — spans full width, horizontal row */
.board-feature {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  background: var(--color-charcoal);
  text-decoration: none;
  color: white;
  min-height: 320px;
  overflow: hidden;
  transition: background 0.25s ease;
  border: none;
  box-shadow: none;
}

.board-feature:hover {
  background: #1e1e1e;
  transform: none;
  box-shadow: none;
}

.board-feature-media {
  position: relative;
  width: 42%;
  flex-shrink: 0;
  overflow: hidden;
  background: #111;
  height: auto;
  order: 1;
}

.board-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s var(--ease-crisp);
}

.board-feature:hover .board-feature-media img {
  transform: scale(1.05);
}

.board-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(17, 17, 17, 0.4) 0%, transparent 70%);
}

.board-feature-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 4vw, 56px);
  background: var(--color-charcoal);
  border-left: 4px solid var(--color-coral);
  position: static;
  z-index: auto;
}

.board-feature-cat {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-coral);
  display: block;
  margin-bottom: 14px;
}

.board-feature-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: white;
  margin-bottom: 16px;
  flex: 0;
}

.board-feature-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.board-feature:hover .board-feature-title a {
  color: rgba(255, 255, 255, 0.75);
}

.board-feature-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.board-feature-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.board-feature-foot time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
}

.board-feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-coral);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.board-feature-cta:hover {
  gap: 12px;
}

/* Side cards — compact, dark panels */
.board-side {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: white;
  min-height: 240px;
  overflow: hidden;
  border: none;
  transition: background 0.22s ease;
  box-shadow: none;
}

.board-side:hover {
  transform: none;
  box-shadow: none;
}

.board-side--dark {
  background: #111;
  border-top: 3px solid var(--color-coral);
}

.board-side--dark:hover {
  background: #161616;
}

.board-side--light {
  background: #0e0e0e;
  border-top: 3px solid rgba(229, 67, 42, 0.35);
}

.board-side--light:hover {
  background: #141414;
}

.board-side-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--color-coral);
  opacity: 0.5;
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  padding: 28px 28px 0;
}

.board-side-cat {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  color: var(--color-coral);
  padding: 0 28px;
  margin-bottom: 12px;
}

.board-side-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  color: white;
  flex: 1;
  padding: 0 28px;
  margin: 0;
  transition: color 0.2s ease;
}

.board-side:hover .board-side-title {
  color: rgba(255, 255, 255, 0.7);
}

.board-side-time {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.3);
  margin-top: auto;
  padding: 18px 28px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

@media (max-width: 767px) {
  .board-feature {
    flex-direction: column;
  }

  .board-feature-media {
    width: 100%;
    height: 200px;
    order: 0;
  }

  .board-feature-body {
    justify-content: flex-start;
    border-left: none;
    border-top: 4px solid var(--color-coral);
    padding: 24px 20px;
  }
}

/* ── POSTS STACK — 2-column compact card grid ────────────── */

.posts-stack-section {
  background: var(--color-page-bg);
  padding-block: var(--spacing-section);
}

@media (max-width: 767px) {
  .posts-stack-section {
    padding-block: 56px;
  }
}

.posts-stack-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.posts-stack-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-charcoal);
  white-space: nowrap;
}

.posts-stack-line {
  flex: 1;
  height: 1px;
  background: var(--color-border-muted);
}

/* 2-column card grid instead of a single-column list */
.posts-stack-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--color-border-muted);
}

@media (max-width: 640px) {
  .posts-stack-list {
    grid-template-columns: 1fr;
  }
}

.post-stack-row {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--color-surface);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background 0.2s ease;
  min-height: 180px;
  border-bottom: none;
}

.post-stack-row:first-child {
  border-top: none;
}

.post-stack-row:hover {
  background: var(--color-warm-cream);
}

/* Coral left edge reveal */
.post-stack-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-coral);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.26s var(--ease-hover);
}

.post-stack-row:hover::before {
  transform: scaleY(1);
}

/* Large faint ordinal watermark */
.post-stack-num {
  font-family: var(--font-mono);
  font-size: 60px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-coral);
  opacity: 0.1;
  margin-bottom: 20px;
  transition: opacity 0.22s ease;
  text-align: left;
}

.post-stack-row:hover .post-stack-num {
  opacity: 0.45;
}

.post-stack-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.post-stack-cat {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-coral);
}

.post-stack-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-charcoal);
  transition: color 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.post-stack-row:hover .post-stack-title {
  color: var(--color-coral);
}

/* Meta: date + arrow pinned to bottom */
.post-stack-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  padding-left: 0;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-muted);
}

.post-stack-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-on-surface-variant);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.post-stack-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-border-muted);
  border-radius: 50%;
  color: var(--color-charcoal);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
  flex-shrink: 0;
}

.post-stack-row:hover .post-stack-arrow {
  background: var(--color-coral);
  border-color: var(--color-coral);
  color: white;
  transform: translateX(3px);
}

@media (max-width: 767px) {
  .post-stack-row {
    padding: 24px 20px;
    min-height: 140px;
  }

  .post-stack-num {
    font-size: 44px;
    margin-bottom: 14px;
  }
}
/* ── 10. ARTICLE CARDS ────────────────────────────────────── */

.article-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border-bottom: 2px solid transparent;
  padding-bottom: 24px;
  transition:
    border-color 0.25s ease,
    transform 0.3s ease;
}

.article-card:active {
  transform: scale(1.01);
}

.article-card:hover {
  border-bottom-color: var(--color-coral);
}

.card-featured .card-image,
.card-compact .card-image {
  overflow: hidden;
  margin-bottom: 20px;
}

.card-featured .card-image img,
.card-compact .card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.55s ease;
  display: block;
}

.card-featured .card-image img:hover,
.card-compact .card-image img:hover {
  transform: scale(1.04);
}

.card-image-placeholder {
  background: var(--color-page-bg);
  height: 220px;
  margin-bottom: 20px;
}

.card-featured .card-label,
.card-compact .card-label {
  margin-bottom: 10px;
}

.card-featured .card-title,
.card-compact .card-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.card-featured .card-title a,
.card-compact .card-title a {
  color: inherit;
  text-decoration: none;
}

.card-featured:hover .card-title a,
.card-compact:hover .card-title a {
  color: var(--color-coral);
}

.card-featured .card-excerpt,
.card-compact .card-excerpt {
  font-size: 15px;
  color: var(--color-on-surface-variant);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-compact .card-number {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(26, 26, 26, 0.22);
  margin-bottom: 8px;
  display: block;
  letter-spacing: 0.06em;
}

.brevity-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.5s ease-in-out,
    opacity 0.3s ease-in-out;
}

.article-card.expanded .brevity-content {
  max-height: 500px;
  opacity: 1;
  margin-top: 16px;
}

.brevity-panel {
  border-top: 1px solid var(--color-border-muted);
  padding-top: 20px;
}

.brevity-panel h4 {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-charcoal);
  margin-bottom: 12px;
}

.brevity-panel ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--color-on-surface-variant);
  font-size: 14px;
  line-height: 1.6;
}

.brevity-panel ul li {
  margin-bottom: 8px;
}

.brevity-panel-soft {
  border: none;
  padding: 16px;
  background: var(--color-warm-cream);
  font-size: 13px;
  font-style: italic;
  color: var(--color-on-surface-variant);
}

/* ── 11. BELOW-FOLD WIDGETS ───────────────────────────────── */

.sidebar-section-title {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-charcoal);
  border-bottom: 2px solid var(--color-coral);
  padding-bottom: 10px;
  margin-bottom: 28px;
  display: block;
}

.sidebar-dispatch {
  background: var(--color-surface);
  border: 1px solid var(--color-border-muted);
  border-top: 3px solid var(--color-coral);
  overflow: hidden;
}

.sidebar-dispatch .sidebar-section-title {
  padding: 20px 20px 0;
  margin-bottom: 0;
  border-bottom: none;
}

.dispatch-items {
  display: flex;
  flex-direction: column;
}

.dispatch-item + .dispatch-item {
  border-top: 1px solid var(--color-border-muted);
}

.dispatch-item-link {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.dispatch-item-link:hover {
  background: var(--color-warm-cream);
}

.dispatch-item-link:hover .dispatch-headline {
  color: var(--color-coral);
}

.dispatch-item-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--color-page-bg);
}

.dispatch-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.dispatch-item-link:hover .dispatch-item-thumb img {
  transform: scale(1.06);
}

.dispatch-item-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-page-bg);
}

.dispatch-item-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.dispatch-time {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--color-on-surface-variant);
  display: block;
  letter-spacing: 0.05em;
}

.dispatch-headline {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-charcoal);
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dispatch-empty {
  font-size: 14px;
  color: var(--color-on-surface-variant);
  padding: 16px 20px;
}

.newsletter-widget {
  background: var(--color-charcoal);
  padding: 40px;
  color: white;
  border-top: 3px solid var(--color-coral);
}

@media (max-width: 767px) {
  .newsletter-widget {
    padding: 28px 20px;
  }

  .sidebar-dispatch .sidebar-section-title {
    padding: 16px 16px 0;
  }

  .dispatch-item-link {
    padding: 14px 16px;
    gap: 12px;
  }

  .dispatch-item-thumb {
    width: 60px;
    height: 60px;
  }
}

.newsletter-widget-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  line-height: 1.2;
}

.newsletter-widget-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 28px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.newsletter-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.newsletter-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(229, 67, 42, 0.25);
  padding: 14px 16px;
  font-size: 14px;
  font-family: var(--font-body);
  color: white;
  outline: none;
  border-radius: 0;
  transition: border-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.newsletter-input:focus {
  border-color: var(--color-coral);
}

.newsletter-input.is-error {
  border-color: var(--color-bearish-red);
}

.newsletter-input-standalone {
  background: var(--color-page-bg);
  border: 1px solid var(--color-border-muted);
  color: var(--color-charcoal);
}

.newsletter-input-standalone::placeholder {
  color: var(--color-on-surface-variant);
}

.newsletter-input-standalone:focus {
  border-color: var(--color-coral);
}

.newsletter-btn {
  width: 100%;
  background: var(--color-coral);
  color: white;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.newsletter-btn:hover {
  transform: scale(0.98);
  opacity: 0.9;
}

.newsletter-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.newsletter-btn-outline {
  background: var(--color-coral);
  color: white;
  border: none;
}

.newsletter-btn-outline:hover {
  background: #c93820;
  opacity: 1;
}

.newsletter-field-error {
  font-size: 12px;
  color: var(--color-bearish-red);
}

.newsletter-status {
  display: none;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.4;
}

.newsletter-status.is-success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.25);
  display: block;
}

.newsletter-status.is-error {
  background: rgba(239, 68, 68, 0.08);
  color: var(--color-bearish-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: block;
}

/* ── 12. CHART SECTION — dark cinematic panel ─────────────── */

.chart-section {
  background: var(--color-charcoal);
  border-top: none;
  border-bottom: none;
  padding-block: 0;
  overflow: hidden;
}

@media (max-width: 767px) {
  .chart-section {
    padding-block: 0;
  }

  .chart-section-inner {
    gap: 0;
  }
}

.chart-section-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  min-height: 540px;
}

@media (min-width: 1024px) {
  .chart-section-inner {
    flex-direction: row;
    align-items: stretch;
    min-height: 560px;
  }
}

/* Text panel — left, charcoal */
.chart-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 96px) clamp(32px, 5vw, 80px);
  background: var(--color-charcoal);
}

/* Image panel — right, diagonally clipped */
.chart-visual {
  position: relative;
  overflow: hidden;
  background: #111;
  width: 100%;
  flex-shrink: 0;
  min-height: 300px;
  box-shadow: none;
  border: none;
  border-radius: 0;
}

@media (min-width: 1024px) {
  .chart-visual {
    width: 48%;
    order: 1;
    min-height: auto;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
  }

  .chart-info {
    order: 0;
  }
}

.chart-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 300px;
  opacity: 0.8;
  transition:
    opacity 0.4s ease,
    transform 0.6s ease;
}

.chart-section:hover .chart-visual img {
  opacity: 1;
  transform: scale(1.03);
}

.chart-spotlight-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 300px at var(--x, 50%) var(--y, 50%), rgba(229, 67, 42, 0.15) 0%, transparent 100%);
  pointer-events: none;
  z-index: 10;
}

.chart-info-label {
  margin-bottom: 16px;
}

.chart-info-label .label-caps {
  color: var(--color-coral);
}

.chart-info-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 48px);
  line-height: 1.08;
  font-weight: 700;
  color: white;
  margin-bottom: 32px;
}

.chart-info-title a {
  color: inherit;
  text-decoration: none;
}

.chart-quote {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--color-coral);
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: none;
}

.chart-quote p {
  font-family: var(--font-body);
  font-size: 16px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
}

.chart-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  background: var(--color-coral);
  border: none;
  padding: 14px 28px;
  border-radius: 0;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.18s ease;
  text-decoration: none;
  align-self: flex-start;
}

.chart-download-btn:hover {
  background: #c93820;
  transform: translateX(4px);
}

.chart-download-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .chart-section-inner {
    min-height: auto;
  }

  .chart-visual {
    height: 280px;
    min-height: 280px;
    clip-path: none;
    order: -1;
  }

  .chart-info {
    padding: 40px 20px 48px;
  }
}

/* ── 13. MARKET TICKER — light dashboard bar ─────────────── */

.ticker-section {
  background: var(--color-surface);
  border-top: 3px solid var(--color-coral);
  border-bottom: 1px solid var(--color-border-muted);
  margin-top: 72px;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  align-items: stretch;
  height: 48px;
}

/* Coral "MARKETS" badge on far left */
.ticker-label-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 20px;
  background: var(--color-coral);
  flex-shrink: 0;
}

/* Pulsing live dot */
.ticker-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  flex-shrink: 0;
  animation: ticker-pulse 2s ease-in-out infinite;
}

@keyframes ticker-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.75);
  }
}

.ticker-label-text {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
  white-space: nowrap;
}

.ticker-scroll-wrapper {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  gap: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }

  .ticker-group[aria-hidden="true"] {
    display: none;
  }

  .ticker-group {
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: flex-start;
    white-space: normal;
    padding: 8px 16px;
  }
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  height: 48px;
  border-right: 1px solid var(--color-border-muted);
}

.ticker-symbol {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
}

.ticker-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-charcoal);
}

.ticker-change {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  gap: 2px;
}

.ticker-change.positive {
  color: var(--color-bullish-green);
}

.ticker-change.negative {
  color: var(--color-bearish-red);
}

@keyframes ticker-flash-anim {
  0% {
    opacity: 1;
  }
  20% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}

.ticker-flash {
  animation: ticker-flash-anim 0.45s ease;
}

@media (max-width: 767px) {
  .ticker-inner {
    height: 40px;
  }

  .ticker-item {
    padding: 0 16px;
    height: 40px;
  }

  .ticker-label-cell {
    padding: 0 12px;
  }
}

/* ── 13b. NEWSLETTER STANDALONE — full coral bold panel ────── */

.newsletter-standalone {
  background: var(--color-coral);
  padding: clamp(72px, 10vw, 120px) 0;
  position: relative;
  overflow: hidden;
}

/* Large decorative watermark */
.newsletter-standalone::before {
  content: "SUBSCRIBE";
  position: absolute;
  bottom: -20px;
  right: -16px;
  font-family: var(--font-body);
  font-size: clamp(64px, 12vw, 144px);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: white;
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}

.newsletter-standalone-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.newsletter-standalone-label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
}

.newsletter-standalone-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 64px);
  font-weight: 700;
  color: white;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.newsletter-standalone-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 48px;
}

.newsletter-standalone-form {
  max-width: 520px;
  margin-inline: auto;
}

.newsletter-standalone-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .newsletter-standalone-fields {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .newsletter-standalone-fields .newsletter-form-field {
    flex: 1;
    min-width: 180px;
  }

  .newsletter-standalone-fields .newsletter-btn {
    width: auto;
    flex-shrink: 0;
    padding-inline: 24px;
  }
}

/* Override inputs for coral background */
.newsletter-standalone .newsletter-input-standalone {
  background: white;
  border: none;
  color: var(--color-charcoal);
}

.newsletter-standalone .newsletter-input-standalone::placeholder {
  color: var(--color-on-surface-variant);
}

.newsletter-standalone .newsletter-input-standalone:focus {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 0;
}

/* Override submit button */
.newsletter-standalone .newsletter-btn {
  background: var(--color-charcoal);
  color: white;
}

.newsletter-standalone .newsletter-btn:hover {
  background: #111;
  opacity: 1;
  transform: none;
}

/* ── 14. SINGLE POST ──────────────────────────────────────── */

.fiscal-single {
  padding-top: 72px;
}

/* Full-cover masthead — image fills the band, text overlaid at bottom */
.single-post-masthead {
  position: relative;
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  background: var(--color-charcoal);
  overflow: hidden;
  color: white;
}

@media (max-width: 767px) {
  .single-post-masthead {
    min-height: 55vh;
  }
}

/* Coral bottom accent strip */
.single-post-masthead::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-coral);
  z-index: 3;
}

/* Full-bleed background image */
.single-post-masthead-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.single-post-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.65;
}

/* Content container — floated to bottom via flex */
.single-post-masthead-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
  padding-bottom: clamp(40px, 5vw, 72px);
  width: 100%;
  min-height: 68vh;
  gap: 0;
}

/* Gradient overlay inside the stacking context so it sits between image (z:0) and text (z:2) */
.single-post-masthead-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.95) 0%, rgba(17, 17, 17, 0.55) 42%, rgba(17, 17, 17, 0.12) 100%);
  z-index: 1;
  pointer-events: none;
}

@media (min-width: 640px) {
  .single-post-masthead-inner {
    padding-inline: 32px;
  }
}

@media (min-width: 1024px) {
  .single-post-masthead-inner {
    padding-inline: 40px;
    flex-direction: column;
    align-items: flex-start;
  }
}

.single-post-masthead-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  max-width: 860px;
  padding: 0;
}

@media (min-width: 1024px) {
  .single-post-masthead-text {
    order: 0;
  }
}

.single-post-category {
  display: block;
  margin-bottom: 16px;
}

.single-post-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: white;
  margin-bottom: 24px;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

.single-post-reading-time.hero-badge {
  background: var(--color-coral);
  color: white;
  border: none;
}

.single-post-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-block: 64px;
}

@media (min-width: 1024px) {
  .single-post-content {
    grid-template-columns: 1fr 340px;
    gap: 64px;
  }
}

.fiscal-prose {
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-on-surface);
}

.fiscal-prose h2,
.fiscal-prose h3,
.fiscal-prose h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-charcoal);
  margin-top: 2em;
  margin-bottom: 0.6em;
  line-height: 1.2;
}

.fiscal-prose h2 {
  font-size: clamp(22px, 2.5vw, 30px);
}
.fiscal-prose h3 {
  font-size: clamp(18px, 2vw, 24px);
}
.fiscal-prose h4 {
  font-size: 18px;
}

.fiscal-prose p {
  margin-bottom: 1.4em;
}

.fiscal-prose a {
  color: var(--color-coral);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.fiscal-prose a:hover {
  opacity: 0.75;
}

.fiscal-prose ul,
.fiscal-prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.4em;
}

.fiscal-prose ul {
  list-style: disc;
}

.fiscal-prose ol {
  list-style: decimal;
}

.fiscal-prose li {
  margin-bottom: 0.5em;
}

.fiscal-prose blockquote {
  border-left: 4px solid var(--color-coral);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--color-warm-cream);
  color: var(--color-charcoal);
  font-size: 1.1em;
  font-style: italic;
}

.fiscal-prose img {
  border-radius: 0;
  margin-block: 2em;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.fiscal-prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--color-page-bg);
  border: 1px solid var(--color-border-muted);
  padding: 2px 6px;
  border-radius: 2px;
}

.fiscal-prose pre {
  background: var(--color-charcoal);
  color: rgba(255, 255, 255, 0.85);
  padding: 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  margin-block: 2em;
  border-radius: 0;
}

.single-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--color-border-muted);
  margin-top: 56px;
  border-top: 3px solid var(--color-charcoal);
}

/* When only one nav link exists, let it span full width */
.single-post-nav > .post-nav-link:only-child {
  grid-column: 1 / -1;
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 28px;
  text-decoration: none;
  color: inherit;
  background: var(--color-surface);
  transition: background 0.2s ease;
  min-width: 0;
}

.post-nav-link:hover {
  background: var(--color-warm-cream);
}

.post-nav-next {
  align-items: flex-end;
  text-align: right;
}

.post-nav-dir {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-coral);
  display: block;
}

.post-nav-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-charcoal);
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-nav-link:hover .post-nav-title {
  color: var(--color-coral);
}

@media (max-width: 640px) {
  .single-post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav-next {
    align-items: flex-start;
    text-align: left;
  }

  .post-nav-link {
    padding: 20px;
  }
}

/* ── 15. PAGE HERO BAND ───────────────────────────────────── */

.page-hero-band {
  background: var(--color-charcoal);
  color: white;
  padding-top: calc(72px + 56px);
  padding-bottom: 48px;
  border-bottom: 3px solid var(--color-coral);
}

.page-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-hero-label {
  color: var(--color-coral);
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: white;
}

/* ── 16. BLOG INDEX ───────────────────────────────────────── */

.fiscal-blog-index {
  padding-block: 64px;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

@media (min-width: 640px) {
  .blog-posts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .blog-posts-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.blog-post-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border-muted);
  overflow: hidden;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.blog-post-card:hover {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.09);
  transform: translateY(-3px);
}

.post-thumbnail {
  overflow: hidden;
  height: 200px;
  flex-shrink: 0;
}

.post-thumbnail a {
  display: block;
  height: 100%;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.blog-post-card:hover .post-thumbnail img {
  transform: scale(1.04);
}

.post-category {
  display: block;
  padding: 18px 20px 0;
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.25;
  padding: 10px 20px 0;
}

.post-title a {
  color: var(--color-charcoal);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-title a:hover {
  color: var(--color-coral);
}

.post-excerpt {
  font-size: 14px;
  color: var(--color-on-surface-variant);
  line-height: 1.6;
  padding: 10px 20px 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-on-surface-variant);
  letter-spacing: 0.04em;
  padding: 14px 20px 20px;
  border-top: 1px solid var(--color-border-muted);
  margin-top: auto;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border-muted);
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-charcoal);
  border: 1px solid var(--color-border-muted);
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--color-coral);
  border-color: var(--color-coral);
  color: white;
}

/* ── 17. GENERIC PAGE & 404 ───────────────────────────────── */

.fiscal-page {
  padding-top: 72px;
}

.fiscal-page-content {
  padding-block: 64px;
}

.generic-page-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-charcoal);
  margin-bottom: 32px;
}

.fiscal-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 64px 24px;
}

.fiscal-404-code {
  font-family: var(--font-mono);
  font-size: clamp(80px, 14vw, 160px);
  font-weight: 400;
  color: var(--color-coral);
  opacity: 0.18;
  line-height: 1;
  margin-bottom: 16px;
}

.fiscal-404-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 14px;
}

.fiscal-404-desc {
  font-size: 16px;
  color: var(--color-on-surface-variant);
  max-width: 420px;
  margin-bottom: 36px;
}

/* ── 18. FOOTER ───────────────────────────────────────────── */

.fiscal-footer {
  background: var(--color-charcoal);
  color: rgba(255, 255, 255, 0.7);
  border-top: 3px solid var(--color-coral);
  padding-top: 72px;
  padding-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
  }
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand-col .custom-logo-link,
.footer-site-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.footer-brand-col .custom-logo {
  height: 40px;
  width: auto;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.42);
  max-width: 300px;
}

.footer-col-heading {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-coral);
  margin-bottom: 22px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-list li a:hover {
  color: var(--color-coral);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-left {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.04em;
}

/* ── 19. SINGLE POST SIDEBAR ─────────────────────────────── */

.single-post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 96px;
  align-self: start;
}

/* ── 20. GENERIC PAGE CONTENT ────────────────────────────── */

.page-content-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-on-surface);
}

.page-content-body h2,
.page-content-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-charcoal);
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

.page-content-body p {
  margin-bottom: 1.4em;
}

.page-content-body a {
  color: var(--color-coral);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content-body a:hover {
  opacity: 0.75;
}
