/* ============================================================
   FISCAL THEME — Main Stylesheet
   Financial Editorial Magazine Theme
   Based on FinBrief Smart Editorial Finance design
   ============================================================ */

/* ── 1. CSS CUSTOM PROPERTIES ─────────────────────────────── */

:root {
  /* Color palette */
  --color-surface: #fbf9f4;
  --color-page-bg: #f7f5f0;
  --color-soft-cream: #fff8ee;
  --color-ink-navy: #0f1c2e;
  --color-warm-amber: #f5a623;
  --color-on-surface: #1b1c19;
  --color-on-surface-variant: #44474c;
  --color-outline: #75777d;
  --color-outline-variant: #c5c6cd;
  --color-border-muted: #e5e1d8;
  --color-bullish-green: #10b981;
  --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: "JetBrains Mono", "Fira Code", "Courier New", monospace;

  /* Spacing */
  --spacing-gutter: 24px;
  --spacing-section: 100px;
  --container-max: 1280px;
  --container-px: 16px;

  /* Easing */
  --ease-luxe: cubic-bezier(0.22, 1, 0.36, 1);
  --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;
}

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.15em;
  color: var(--color-warm-amber);
  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: 9999px;
  cursor: pointer;
  transition:
    background 0.3s var(--ease-hover),
    color 0.3s var(--ease-hover),
    border-color 0.3s var(--ease-hover),
    transform 0.2s var(--ease-hover);
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-ink-navy);
  color: white;
  border-color: var(--color-ink-navy);
}

.btn-primary:hover {
  background-color: var(--color-warm-amber);
  border-color: var(--color-warm-amber);
  color: var(--color-ink-navy);
}

.btn-outline {
  background-color: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  padding: 8px 20px;
  font-size: 11px;
}

.btn-outline:hover {
  background-color: var(--color-warm-amber);
  color: var(--color-ink-navy);
  border-color: transparent;
}

.btn-amber {
  display: inline-block;
  background-color: var(--color-warm-amber);
  color: var(--color-ink-navy);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 24px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  text-decoration: none;
}

.btn-amber:hover {
  transform: scale(0.98);
}

/* ── 6. SITE HEADER ───────────────────────────────────────── */

.fiscal-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--color-ink-navy);
  color: white;
  padding: 14px 0;
  box-shadow: none;
  border-bottom: 1px solid transparent;
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* Sticky state — added by JS on scroll */
.fiscal-header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.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;
  }
}

/* Logo */
.header-logo a,
.header-logo .custom-logo-link {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: inherit;
  text-decoration: none;
  display: block;
}

.header-logo .custom-logo {
  height: 44px;
  width: auto;
  display: block;
}

/* Primary nav (desktop) */
.header-nav {
  display: none;
}

@media (min-width: 1024px) {
  .header-nav {
    display: block;
  }
}

.header-nav-list,
.header-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav-list > li > a,
.header-nav a {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
  padding: 4px 0;
}

.header-nav-list > li > a:hover,
.header-nav a:hover {
  color: var(--color-warm-amber);
}

/* Dual logo — always show dark logo, hide light logo */
.header-logo-light {
  display: none;
}

.header-logo-dark {
  display: block;
}

/* Hide WordPress sub-menus in header */
.header-nav-list .sub-menu,
.header-nav .sub-menu {
  display: none;
}

/* Header actions (CTA + mobile toggle) */
.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;
  }
}

/* Mobile hamburger toggle */
.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 overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-ink-navy);
  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-warm-amber);
}

.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-warm-amber);
}

.mobile-menu-cta {
  margin-top: 16px;
}

/* ── 7. REVEAL ANIMATION ──────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-luxe),
    transform 0.8s var(--ease-luxe);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── 8. HERO SECTION ──────────────────────────────────────── */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background-color: var(--color-ink-navy); /* fallback */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: 72px; /* push below fixed header */
}

/* When WP admin bar is visible it adds 32px to <html> — reduce margin accordingly */
body.admin-bar .hero-section {
  margin-top: 40px; /* 72px header − 32px admin bar */
}

@media screen and (max-width: 782px) {
  body.admin-bar .hero-section {
    margin-top: 26px; /* 72px header − 46px admin bar */
  }
}

/* Disable parallax + reduce height on mobile */
@media (max-width: 767px) {
  .hero-section {
    min-height: 70vh;
    background-attachment: scroll;
    margin-top: 72px;
  }

  .hero-inner {
    padding-bottom: 48px;
  }

  .hero-glass {
    padding: 24px 20px;
  }

  .hero-meta-row {
    gap: 12px;
    font-size: 13px;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 46, 0.42);
}

.hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-bottom: 96px;
}

.hero-glass {
  max-width: 52rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.08);
  padding: clamp(32px, 5vw, 48px);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-label {
  color: var(--color-warm-amber);
  margin-bottom: 24px;
  font-size: 11px;
  letter-spacing: 0.2em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: white;
  margin-bottom: 32px;
}

.hero-title-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.hero-title-link:hover {
  opacity: 0.85;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-family: var(--font-body);
}

.hero-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-author-line {
  width: 36px;
  height: 1px;
  background: var(--color-warm-amber);
  flex-shrink: 0;
}

.hero-badge {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ── 9. ARTICLES SECTION ──────────────────────────────────── */

.articles-section {
  background: var(--color-surface);
  padding-top: calc(var(--spacing-section) + 80px);
  padding-bottom: var(--spacing-section);
}

@media (max-width: 767px) {
  .articles-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .articles-main {
    gap: 40px;
  }
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-gutter);
}

@media (min-width: 768px) {
  .articles-grid {
    grid-template-columns: 7fr 5fr;
    align-items: start;
    gap: 48px;
  }
}

.articles-main {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* ── 10. ARTICLE CARDS ────────────────────────────────────── */

.article-card {
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.article-card:active {
  transform: scale(1.01);
}

/* Featured large card */
.card-featured .card-image {
  overflow: hidden;
  margin-bottom: 32px;
}

.card-featured .card-image img {
  width: 100%;
  height: clamp(260px, 40vw, 500px);
  object-fit: cover;
  filter: grayscale(1);
  transition:
    filter 0.7s ease,
    transform 0.7s ease;
  display: block;
}

.card-featured .card-image img:hover {
  filter: grayscale(0);
}

.card-featured .card-body {
  max-width: 42rem;
}

.card-featured .card-label {
  margin-bottom: 16px;
}

.card-featured .card-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--color-ink-navy);
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.card-featured .card-title a {
  color: inherit;
  text-decoration: none;
}

.card-featured:hover .card-title,
.card-featured .card-title a:hover {
  color: var(--color-warm-amber);
}

.card-featured .card-excerpt {
  color: var(--color-on-surface-variant);
  font-size: 18px;
  line-height: 1.6;
}

/* Compact card grid */
.cards-compact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 480px) {
  .cards-compact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card-compact .card-image {
  overflow: hidden;
  margin-bottom: 16px;
  height: 192px;
}

.card-compact .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.7s ease;
  display: block;
}

.card-compact .card-image img:hover {
  filter: grayscale(0);
}

.card-image-placeholder {
  background: var(--color-surface-container-high, #eae8e3);
}

.card-compact .card-number {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(15, 28, 46, 0.35);
  margin-bottom: 8px;
  display: block;
  letter-spacing: 0.05em;
}

.card-compact .card-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-ink-navy);
  margin-bottom: 10px;
}

.card-compact .card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.card-compact .card-title a:hover {
  color: var(--color-warm-amber);
}

.card-compact .card-excerpt {
  font-size: 14px;
  color: var(--color-on-surface-variant);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

/* Expandable brevity content */
.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: 24px;
}

.brevity-panel h4 {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-ink-navy);
  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-soft-cream);
  font-size: 13px;
  font-style: italic;
  color: var(--color-on-surface-variant);
}

/* ── 11. SIDEBAR ──────────────────────────────────────────── */

.articles-sidebar {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

@media (min-width: 768px) {
  .articles-sidebar {
    position: sticky;
    top: 128px;
  }
}

.sidebar-section-title {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-ink-navy);
  border-bottom: 1px solid rgba(15, 28, 46, 0.15);
  padding-bottom: 16px;
  margin-bottom: 28px;
}

/* Daily Dispatch */
.dispatch-items {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.dispatch-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.dispatch-item-link:hover .dispatch-headline {
  text-decoration: underline;
  text-decoration-color: var(--color-warm-amber);
}

.dispatch-time {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-warm-amber);
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.dispatch-headline {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-ink-navy);
}

.dispatch-empty {
  color: var(--color-on-surface-variant);
}

/* Newsletter Widget */
.newsletter-widget {
  background: var(--color-ink-navy);
  padding: 40px;
  color: white;
}

@media (max-width: 767px) {
  .newsletter-widget {
    padding: 24px 20px;
  }
}

.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: 13px;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 24px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Honeypot — hide from humans */
.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.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 14px 16px;
  font-size: 14px;
  font-family: var(--font-body);
  color: white;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.newsletter-input:focus {
  border-color: var(--color-warm-amber);
}

.newsletter-input.is-error {
  border-color: var(--color-bearish-red);
}

.newsletter-btn {
  width: 100%;
  background: var(--color-warm-amber);
  color: var(--color-ink-navy);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.newsletter-btn:hover {
  transform: scale(0.98);
}

.newsletter-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.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(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: block;
}

.newsletter-status.is-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-bearish-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: block;
}

/* ── 12. CHART SECTION ────────────────────────────────────── */

.chart-section {
  background: white;
  border-top: 1px solid var(--color-border-muted);
  border-bottom: 1px solid var(--color-border-muted);
  padding-block: var(--spacing-section);
}

@media (max-width: 767px) {
  .chart-section {
    padding-block: 56px;
  }

  .chart-section-inner {
    gap: 32px;
  }

  .chart-info-title {
    margin-bottom: 20px;
  }
}

.chart-section-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .chart-section-inner {
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-gutter);
  }
}

.chart-visual {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0b0e14;
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .chart-visual {
    width: 58%;
  }
}

.chart-visual img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 200px;
  object-fit: cover;
}

.chart-spotlight-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 250px at var(--x, 50%) var(--y, 50%), rgba(245, 166, 35, 0.1) 0%, transparent 100%);
  pointer-events: none;
  z-index: 10;
}

.chart-info {
  flex: 1;
  min-width: 0;
}

.chart-info-label {
  margin-bottom: 14px;
}

.chart-info-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 700;
  color: var(--color-ink-navy);
  margin-bottom: 32px;
}

.chart-quote {
  background: var(--color-page-bg);
  border-left: 4px solid var(--color-ink-navy);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.chart-quote p {
  font-family: var(--font-body);
  font-size: 17px;
  font-style: italic;
  color: var(--color-ink-navy);
  line-height: 1.6;
}

.chart-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  margin: 0;
}

.chart-point {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--color-on-surface-variant);
  line-height: 1.5;
}

.chart-point-num {
  color: var(--color-warm-amber);
  font-weight: 700;
  font-family: var(--font-body);
  flex-shrink: 0;
}

.chart-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-ink-navy);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition:
    gap 0.2s ease,
    color 0.2s ease;
}

.chart-download-btn:hover {
  gap: 14px;
  color: var(--color-warm-amber);
}

.chart-download-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── 13. MARKET TICKER ────────────────────────────────────── */

.ticker-section {
  background: var(--color-ink-navy);
  padding-block: 48px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

@media (max-width: 767px) {
  .ticker-section {
    padding-block: 28px;
  }
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  gap: 64px;
}

.ticker-track:hover {
  /* pause handled by JS */
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    overflow-x: auto;
    padding-bottom: 8px;
  }
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-shrink: 0;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
}

.ticker-symbol {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.ticker-price {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: white;
}

.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);
}

/* Price flash on update */
@keyframes ticker-flash-anim {
  0% {
    opacity: 1;
  }
  20% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}

.ticker-flash {
  animation: ticker-flash-anim 0.45s ease;
}

/* ── 14. FOOTER ───────────────────────────────────────────── */

.fiscal-footer {
  background: var(--color-surface);
  padding-top: var(--spacing-section);
  padding-bottom: 48px;
  border-top: 1px solid var(--color-border-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* Brand column */
.footer-brand-col .footer-logo-link,
.footer-brand-col .custom-logo-link {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-brand-col .footer-logo-img,
.footer-brand-col .custom-logo {
  display: block;
  max-width: 300px;
  width: 100%;
  height: auto;
}

.footer-site-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 20px;
  color: var(--color-ink-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-site-name:hover {
  color: var(--color-warm-amber);
}

.footer-tagline {
  font-size: 14px;
  color: var(--color-on-surface-variant);
  line-height: 1.6;
}

/* Column headings */
.footer-col-heading {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-warm-amber);
  margin-bottom: 20px;
  display: block;
}

/* Footer nav list */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-on-surface);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-list a:hover {
  color: var(--color-warm-amber);
}

/* Hide sub-menus in footer */
.footer-nav-list .sub-menu {
  display: none;
}

/* Copyright column */
.footer-copyright-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-copyright-text {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-on-surface-variant);
  display: block;
}

/* Footer bottom bar */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-on-surface-variant);
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-legal-link {
  color: var(--color-on-surface-variant);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: var(--color-warm-amber);
}

/* ── 15. PAGE HERO BAND ───────────────────────────────────── */

.page-hero-band {
  background: var(--color-ink-navy);
}

.page-hero-inner {
  padding-top: 140px; /* compensate for fixed header */
  padding-bottom: 80px;
}

.page-hero-label {
  color: var(--color-warm-amber);
  margin-bottom: 16px;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  color: white;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

/* ── 16. BLOG INDEX ───────────────────────────────────────── */

.fiscal-blog-index {
  padding-block: var(--spacing-section);
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

@media (min-width: 640px) {
  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (min-width: 1024px) {
  .blog-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-post-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-post-card .post-thumbnail {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.blog-post-card .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3);
  transition:
    filter 0.5s ease,
    transform 0.5s ease;
  display: block;
}

.blog-post-card:hover .post-thumbnail img {
  filter: grayscale(0);
  transform: scale(1.03);
}

.blog-post-card .post-category {
  font-size: 10px;
  color: var(--color-warm-amber);
}

.blog-post-card .post-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink-navy);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-post-card .post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-post-card:hover .post-title a {
  color: var(--color-warm-amber);
}

.blog-post-card .post-excerpt {
  font-size: 14px;
  color: var(--color-on-surface-variant);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-post-card .post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--color-outline);
  font-family: var(--font-mono);
}

.blog-empty {
  padding-block: 80px;
  color: var(--color-on-surface-variant);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 80px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink-navy);
  border: 1px solid var(--color-border-muted);
  transition: all 0.2s ease;
  text-decoration: none;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--color-ink-navy);
  color: white;
  border-color: var(--color-ink-navy);
}

/* ── 17. SINGLE POST ──────────────────────────────────────── */

.fiscal-single {
  padding-bottom: var(--spacing-section);
}

@media (max-width: 767px) {
  .fiscal-single {
    padding-bottom: 56px;
  }
}

.single-post-hero-image-wrap {
  width: 100%;
  max-height: 60vh;
  overflow: hidden;
  margin-bottom: 0;
  margin-top: 72px; /* push below fixed header (14px padding × 2 + 44px logo) */
}

/* When WP admin bar is visible it adds 32px to <html> — reduce margin accordingly */
body.admin-bar .single-post-hero-image-wrap {
  margin-top: 40px; /* 72px header − 32px admin bar */
}

@media screen and (max-width: 782px) {
  body.admin-bar .single-post-hero-image-wrap {
    margin-top: 26px; /* 72px header − 46px admin bar */
  }
}

/* Mobile: natural aspect-ratio card instead of tall fixed-height hero */
@media (max-width: 767px) {
  .single-post-hero-image-wrap {
    max-height: none;
    aspect-ratio: 16 / 9;
  }
}

.single-post-hero-image {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  .single-post-hero-image {
    height: 100%;
  }
}

.single-post-header {
  padding-top: 140px; /* push below fixed header if no hero image */
  padding-bottom: 0;
}

@media (max-width: 767px) {
  .single-post-header {
    padding-top: 96px;
  }
}

/* When hero image present, reduce top push */
.single-post-hero-image-wrap + .container .single-post-header {
  padding-top: 48px;
}

@media (max-width: 767px) {
  .single-post-hero-image-wrap + .container .single-post-header {
    padding-top: 28px;
  }
}

.single-post-category {
  color: var(--color-warm-amber);
  margin-bottom: 16px;
  display: block;
}

.single-post-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 60px);
  font-weight: 700;
  color: var(--color-ink-navy);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  margin-top: 14px;
}

@media (max-width: 767px) {
  .single-post-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 16px;
  }
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--color-on-surface-variant);
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border-muted);
  font-family: var(--font-body);
}

@media (max-width: 767px) {
  .single-post-meta {
    margin-bottom: 28px;
    padding-bottom: 20px;
    gap: 10px;
  }
}

.single-post-reading-time {
  font-size: 10px;
}

.single-post-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}

@media (max-width: 767px) {
  .single-post-content {
    gap: 40px;
  }
}

@media (min-width: 1024px) {
  .single-post-content {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

/* Post nav */
.single-post-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border-muted);
}

@media (min-width: 640px) {
  .single-post-nav {
    flex-direction: row;
    justify-content: space-between;
  }
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  max-width: 280px;
  transition: color 0.2s ease;
}

.post-nav-link:hover {
  color: var(--color-warm-amber);
}

.post-nav-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.post-nav-next {
  text-align: right;
  margin-left: auto;
}

/* Single sidebar */
.single-post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (max-width: 767px) {
  .single-post-sidebar {
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .single-post-sidebar {
    position: sticky;
    top: 120px;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-ink-navy);
  text-decoration: none;
  transition:
    gap 0.2s ease,
    color 0.2s ease;
}

.back-link:hover {
  gap: 12px;
  color: var(--color-warm-amber);
}

/* ── 18. ARTICLE PROSE ────────────────────────────────────── */

.fiscal-prose {
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-on-surface);
  max-width: 68ch;
}

@media (max-width: 767px) {
  .fiscal-prose {
    font-size: 16px;
    line-height: 1.7;
  }
}

.fiscal-prose h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-ink-navy);
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.fiscal-prose h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink-navy);
  margin-top: 32px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.fiscal-prose h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-ink-navy);
  margin-top: 24px;
  margin-bottom: 8px;
}

.fiscal-prose p {
  margin-bottom: 24px;
}

.fiscal-prose blockquote {
  border-left: 4px solid var(--color-warm-amber);
  padding: 20px 24px;
  margin: 32px 0;
  background: var(--color-page-bg);
  font-style: italic;
  font-size: 20px;
  color: var(--color-ink-navy);
  line-height: 1.5;
}

.fiscal-prose a {
  color: var(--color-ink-navy);
  text-decoration: underline;
  text-decoration-color: var(--color-warm-amber);
  text-underline-offset: 3px;
}

.fiscal-prose a:hover {
  color: var(--color-warm-amber);
}

.fiscal-prose ul,
.fiscal-prose ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.fiscal-prose ul {
  list-style: disc;
}

.fiscal-prose ol {
  list-style: decimal;
}

.fiscal-prose li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.fiscal-prose img {
  width: 100%;
  margin-block: 32px;
  display: block;
}

.fiscal-prose strong {
  font-weight: 700;
  color: var(--color-ink-navy);
}

.fiscal-prose code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--color-page-bg);
  padding: 2px 6px;
  border-radius: 2px;
}

.fiscal-prose pre {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--color-ink-navy);
  color: white;
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.fiscal-prose hr {
  border: none;
  border-top: 1px solid var(--color-border-muted);
  margin-block: 48px;
}

/* ── 19. GENERIC PAGE ─────────────────────────────────────── */

.fiscal-page-content {
  padding-block: var(--spacing-section);
}

/* ── 20. 404 ──────────────────────────────────────────────── */

.fiscal-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--spacing-section);
  padding-top: calc(var(--spacing-section) + 80px);
}

.fiscal-404-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.error-code {
  color: var(--color-warm-amber);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.error-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 12vw, 140px);
  font-weight: 700;
  color: var(--color-ink-navy);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}

.error-message {
  font-size: 18px;
  color: var(--color-on-surface-variant);
  margin-bottom: 48px;
  max-width: 40ch;
}

/* ── 21. WORDPRESS ALIGNMENT UTILITIES ───────────────────── */

.alignleft {
  float: left;
  margin-right: 24px;
  margin-bottom: 16px;
}

.alignright {
  float: right;
  margin-left: 24px;
  margin-bottom: 16px;
}

.aligncenter {
  display: block;
  margin-inline: auto;
  margin-bottom: 16px;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 13px;
  color: var(--color-on-surface-variant);
  font-style: italic;
  margin-top: 8px;
  text-align: center;
}

/* Screen-reader only */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
