/*
Theme Name: Cloud Native Pulse
Theme URI: https://cloudnativepulse.com
Author: Cloud Native Pulse Team
Author URI: https://cloudnativepulse.com
Description: A dark, podcast-media block theme for Cloud Native Pulse. Deep navy backgrounds, bright blue headings, orange accents, Archivo + Source Sans 3 typography, waveform animations, and full-site editing support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cloudnativepulse
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --orange: #F17720;
  --bright-blue: #00A7E1;
  --deep-blue: #0474BA;
  --dark-navy: #0B1929;
  --surface-navy: #122640;
  --light-gray: #EBEBEB;

  --bg: #0B1929;
  --bg-surface: #122640;
  --bg-surface-alt: #0F2035;
  --text: #EBEBEB;
  --text-muted: #4A5568;
  --heading-color: #00A7E1;
  --accent: #F17720;
  --link-color: #00A7E1;
  --link-hover: #33BEF0;
  --border-color: rgba(0, 167, 225, 0.12);
  --border-subtle: rgba(235, 235, 235, 0.06);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 8px 40px rgba(0, 167, 225, 0.15), 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-btn: 0 4px 16px rgba(0, 0, 0, 0.3);
  --overlay-strong: rgba(11, 25, 41, 0.85);
  --overlay-light: rgba(11, 25, 41, 0.6);

  --font-display: 'Archivo', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 100px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-med: 0.35s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);

  --wide-size: 1280px;
  --content-size: 800px;

  color-scheme: dark;
}

/* ============================================================
   LIGHT MODE OVERRIDES (CSS Custom Properties)
   ============================================================ */
[data-theme="light"] {
  --bg: #F0F4F8;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #E8EDF3;
  --text: #0B1929;
  --text-muted: #4A5568;
  --heading-color: #0474BA;
  --accent: #F17720;
  --link-color: #0474BA;
  --link-hover: #035A99;
  --border-color: rgba(4, 116, 186, 0.15);
  --border-subtle: rgba(11, 25, 41, 0.08);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.12), 0 2px 12px rgba(4, 116, 186, 0.1);
  --shadow-btn: 0 4px 16px rgba(0, 0, 0, 0.1);
  --overlay-strong: rgba(240, 244, 248, 0.9);
  --overlay-light: rgba(240, 244, 248, 0.7);
  --dark-navy: #0B1929;
  --surface-navy: #D6E4F0;
  color-scheme: light;
}

/* ============================================================
   GLOBAL RESETS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   FOOTER MARGIN RESET
   ============================================================ */
.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }
.hero-enter { opacity: 0; transform: translateX(-30px); }
.hero-enter.active { opacity: 1; transform: translateX(0); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.hero-enter-up { opacity: 0; transform: translateY(24px); }
.hero-enter-up.active { opacity: 1; transform: translateY(0); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.counter { font-variant-numeric: tabular-nums; }

/* Auto-animation (applied by JS to WP block elements) */
[data-cnp-anim] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-cnp-anim="left"] { transform: translateX(-36px); }
[data-cnp-anim="scale"] { transform: scale(0.94); opacity: 0; }
[data-cnp-anim].cnp-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark-navy);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  max-width: var(--wide-size);
  margin: 0 auto;
  padding: 5px var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  height: 50px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bright-blue);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}
.nav-links a:hover {
  color: var(--bright-blue);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.site-header .wp-block-navigation-item a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
}
.site-header .wp-block-navigation-item a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bright-blue);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}
.site-header .wp-block-navigation-item a:hover {
  color: var(--bright-blue);
}
.site-header .wp-block-navigation-item a:hover::after {
  transform: scaleX(1);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--orange);
  color: #0B1929;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.header-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease-out);
}
.header-cta:hover::after {
  transform: translateX(100%);
}
.header-cta:hover {
  background: #E06A18;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(241, 119, 32, 0.3);
}
.btn-subscribe .wp-block-button__link {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.02em !important;
  background: var(--orange) !important;
  color: #0B1929 !important;
  border-radius: var(--radius-md) !important;
  border: 2px solid transparent !important;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}
.btn-subscribe:hover .wp-block-button__link {
  background: #E06A18 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(241, 119, 32, 0.3);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #EBEBEB;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ============================================================
   HERO -- Full-bleed with waveform + inline player
   ============================================================ */
.hero-section {
  position: relative;
  overflow: visible;
}
.hero-section .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
}
.hero-section .wp-block-cover__background {
  z-index: 0;
}
.hero-section .wp-block-cover__image-background {
  opacity: 0.7;
  z-index: 0;
}
.hero-section .wp-block-cover__inner-container::before {
  content: '';
  position: absolute;
  left: 5%;
  top: 0;
  bottom: 0;
  width: 40%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.15;
  background:
    linear-gradient(rgba(200,214,229,1), rgba(200,214,229,1)) no-repeat 0px   center / 12px 90px,
    linear-gradient(rgba(200,214,229,1), rgba(200,214,229,1)) no-repeat 24px   center / 12px 204px,
    linear-gradient(rgba(200,214,229,1), rgba(200,214,229,1)) no-repeat 48px   center / 12px 315px,
    linear-gradient(rgba(200,214,229,1), rgba(200,214,229,1)) no-repeat 72px   center / 12px 249px,
    linear-gradient(rgba(200,214,229,1), rgba(200,214,229,1)) no-repeat 96px   center / 12px 384px,
    linear-gradient(rgba(200,214,229,1), rgba(200,214,229,1)) no-repeat 120px  center / 12px 270px,
    linear-gradient(rgba(200,214,229,1), rgba(200,214,229,1)) no-repeat 144px  center / 12px 180px,
    linear-gradient(rgba(200,214,229,1), rgba(200,214,229,1)) no-repeat 168px  center / 12px 339px,
    linear-gradient(rgba(200,214,229,1), rgba(200,214,229,1)) no-repeat 192px  center / 12px 225px,
    linear-gradient(rgba(200,214,229,1), rgba(200,214,229,1)) no-repeat 216px  center / 12px 135px,
    linear-gradient(rgba(200,214,229,1), rgba(200,214,229,1)) no-repeat 240px  center / 12px 294px,
    linear-gradient(rgba(200,214,229,1), rgba(200,214,229,1)) no-repeat 264px  center / 12px 204px,
    linear-gradient(rgba(200,214,229,1), rgba(200,214,229,1)) no-repeat 288px  center / 12px 90px;
  border-radius: 6px;
  animation: waveform-hero 1.8s var(--ease-out) infinite alternate;
}
@keyframes waveform-hero {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}
.hero-full {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-start;
  padding: clamp(4rem, 8vw, 7rem) 0 var(--space-3xl);
  background: linear-gradient(135deg, #0B1929 0%, #0D2240 40%, #0A253E 70%, #122640 100%);
  overflow: visible;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  z-index: 0;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 25, 41, 0.6) 0%, rgba(13, 34, 64, 0.5) 40%, rgba(10, 37, 62, 0.45) 70%, rgba(18, 38, 64, 0.55) 100%);
  z-index: 1;
}
.hero-full .wide-width {
  position: relative;
  z-index: 2;
  max-width: var(--wide-size);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  width: 100%;
}
.hero-waveform-bg {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  opacity: 1;
}
.hero-waveform-bars {
  position: absolute;
  left: 5%;
  top: 0;
  bottom: 0;
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-right: var(--space-2xl);
  opacity: 0.18;
}
.waveform-bar {
  width: 12px;
  border-radius: 6px;
  background: #C8D6E5;
  animation: waveform 1.8s var(--ease-out) infinite alternate;
}
.waveform-bar:nth-child(1) { height: 90px; animation-delay: 0s; }
.waveform-bar:nth-child(2) { height: 204px; animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { height: 315px; animation-delay: 0.2s; }
.waveform-bar:nth-child(4) { height: 249px; animation-delay: 0.15s; }
.waveform-bar:nth-child(5) { height: 384px; animation-delay: 0.3s; }
.waveform-bar:nth-child(6) { height: 270px; animation-delay: 0.25s; }
.waveform-bar:nth-child(7) { height: 180px; animation-delay: 0.35s; }
.waveform-bar:nth-child(8) { height: 339px; animation-delay: 0.05s; }
.waveform-bar:nth-child(9) { height: 225px; animation-delay: 0.2s; }
.waveform-bar:nth-child(10) { height: 135px; animation-delay: 0.4s; }
.waveform-bar:nth-child(11) { height: 294px; animation-delay: 0.1s; }
.waveform-bar:nth-child(12) { height: 204px; animation-delay: 0.3s; }
.waveform-bar:nth-child(13) { height: 90px; animation-delay: 0.15s; }
.signal-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid #C8D6E5;
  animation: signal-pulse 3s var(--ease-out) infinite;
}
.signal-ring:nth-child(1) {
  inset: 0;
  animation-delay: 0s;
}
.signal-ring:nth-child(2) {
  inset: 60px;
  animation-delay: 0.6s;
  border-color: rgba(200, 214, 229, 0.7);
}
.signal-ring:nth-child(3) {
  inset: 120px;
  animation-delay: 1.2s;
  border-color: rgba(200, 214, 229, 0.5);
}
.signal-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  background: #C8D6E5;
  box-shadow: 0 0 12px rgba(200, 214, 229, 0.6);
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.05;
  color: var(--bright-blue);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  text-wrap: balance;
  max-width: 700px;
}
.hero-tagline span {
  color: var(--orange);
}
.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  max-width: 520px;
}

/* Inline player */
.inline-player {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  max-width: 600px;
  box-shadow: var(--shadow-card);
}
.player-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange);
  border: none;
  color: #0B1929;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  box-shadow: 0 0 20px rgba(241, 119, 32, 0.3);
}
.player-play-btn:hover {
  background: #E06A18;
  transform: scale(1.08);
}
.player-info {
  flex: 1;
  min-width: 0;
}
.player-ep-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 2px;
}
.player-ep-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-progress {
  width: 100%;
  height: 4px;
  background: rgba(0, 167, 225, 0.15);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}
.player-progress-fill {
  width: 35%;
  height: 100%;
  background: var(--bright-blue);
  border-radius: 2px;
}
.player-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.listen-on {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
  max-width: 600px;
}
.listen-on-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.listen-on-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}
.listen-on-link:hover {
  color: var(--bright-blue);
  border-color: var(--border-color);
  background: rgba(0, 167, 225, 0.05);
}

/* ============================================================
   SECTIONS -- Common
   ============================================================ */
.section {
  padding: var(--space-3xl) 0;
}
.section-wide {
  max-width: var(--wide-size);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.section-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.1;
  color: var(--heading-color);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  text-wrap: balance;
}

/* ============================================================
   EPISODES -- 3-col with featured spanning 2
   ============================================================ */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.episode-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* Grid items stretch to equal height */
.wp-block-post-template.is-layout-grid > li {
  display: flex;
  align-items: stretch;
}
/* WP post-featured-image as ep-visual */
.episode-card .wp-block-post-featured-image {
  position: relative;
  height: 160px;
  overflow: hidden;
  margin: 0;
}
.episode-card .wp-block-post-featured-image a {
  display: block;
  height: 100%;
}
.episode-card .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.episode-card .wp-block-post-featured-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-surface), transparent 60%);
  z-index: 1;
}
/* Play overlay on hover */
.episode-card .wp-block-post-featured-image::before {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--transition-fast);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Ccircle cx='28' cy='28' r='28' fill='%23F17720'/%3E%3Cpolygon points='22 16 42 28 22 40' fill='%230B1929'/%3E%3C/svg%3E") center center no-repeat;
}
.episode-card:hover .wp-block-post-featured-image::before {
  opacity: 1;
}
/* Style the excerpt more link as ep-link */
.episode-card .wp-block-post-excerpt__more-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--link-color);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.episode-card .wp-block-post-excerpt__more-link:hover {
  color: var(--link-hover);
}
/* WP post-terms as ep-tag-inline pill */
.episode-card .wp-block-post-terms {
  display: inline-block;
}
.episode-card .wp-block-post-terms a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(241, 119, 32, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
}
/* Same treatment for article cards */
.article-card .wp-block-post-featured-image {
  position: relative;
  height: 180px;
  overflow: hidden;
  margin: 0;
}
.article-card .wp-block-post-featured-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-surface), transparent 60%);
  z-index: 1;
}
.article-card .wp-block-post-featured-image a {
  display: block;
  height: 100%;
}
.article-card .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card .wp-block-post-terms {
  display: inline-block;
}
.article-card .wp-block-post-terms a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(241, 119, 32, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
}
.article-card .wp-block-post-excerpt__more-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--link-color);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.article-card .wp-block-post-excerpt__more-link:hover {
  color: var(--link-hover);
}
.episode-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-color);
}
.episode-card.featured {
  grid-column: span 2;
}
.episode-card.featured .ep-visual {
  height: 220px;
}
/* First episode card spans 2 columns like mockup featured card */
.wp-block-post-template.is-layout-grid > li:first-child {
  grid-column: span 2;
}
.wp-block-post-template.is-layout-grid > li:first-child .wp-block-post-featured-image {
  height: 220px;
}
.ep-visual {
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ep-visual-grad {
  background: linear-gradient(135deg, #0A253E 0%, #122640 60%, #1A3555 100%);
}
.ep-visual-img {
  position: relative;
}
.ep-visual-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ep-visual-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-surface), transparent 60%);
}
.ep-num-watermark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4rem;
  color: var(--orange);
  opacity: 0.5;
  letter-spacing: -0.03em;
  position: absolute;
  right: var(--space-lg);
  bottom: var(--space-sm);
}
.ep-tag {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 2;
  background: rgba(241, 119, 32, 0.12);
  color: var(--accent);
  padding: 4px 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(241, 119, 32, 0.2);
  text-transform: uppercase;
}
.ep-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 3;
}
.episode-card:hover .ep-play-overlay {
  opacity: 1;
}
.ep-play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: #0B1929;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(241, 119, 32, 0.4);
  transition: transform var(--transition-fast);
}
.episode-card:hover .ep-play-circle {
  transform: scale(1.1);
}
.ep-body {
  padding: var(--space-lg);
}
.ep-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.ep-tag-inline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(241, 119, 32, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}
.ep-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.ep-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}
.ep-excerpt {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.ep-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ep-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--link-color);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}
.ep-link:hover {
  color: var(--link-hover);
}
.ep-duration {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   ARTICLES -- Clean 2-column
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

/* WP block grid: equal-height cards within each row */
.articles-section .wp-block-post-template-is-layout-grid > li {
  display: flex;
  flex-direction: column;
}
.articles-section .wp-block-post-template-is-layout-grid .article-card {
  flex: 1;
  height: auto;
}
.article-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-color);
}
.article-image {
  height: 180px;
  position: relative;
  overflow: hidden;
}
.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-med);
}
.article-card:hover .article-image img {
  transform: scale(1.05);
}
.article-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--bg-surface), transparent);
}
.article-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.article-tag-inline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(241, 119, 32, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}
.article-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.article-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}
.article-excerpt {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  flex: 1;
}
.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.article-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--link-color);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}
.article-link:hover {
  color: var(--link-hover);
}
.article-read-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ============================================================
   ABOUT / HOSTS
   ============================================================ */
.about-section {
  background: var(--bg-surface-alt);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.about-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-med);
}
.about-photo:hover img {
  transform: scale(1.05);
}
.about-photo-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--overlay-strong);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.about-content .section-title {
  margin-bottom: var(--space-md);
}
.about-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}
.about-text a {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color var(--transition-fast);
}
.about-text a:hover {
  color: var(--link-hover);
}
.about-stats {
  display: flex;
  gap: var(--space-xl);
}
.about-stat {
  text-align: center;
}
.about-stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--orange);
  letter-spacing: -0.02em;
}
.about-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   ADVERTISE -- Bold CTA banner
   ============================================================ */
.advertise-banner {
  background: linear-gradient(135deg, var(--deep-blue) 0%, #0D2E4F 50%, var(--dark-navy) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-3xl);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.advertise-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(0, 167, 225, 0.08);
  animation: signal-pulse 3s var(--ease-out) infinite;
}
.advertise-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(241, 119, 32, 0.08);
  animation: signal-pulse 3s var(--ease-out) infinite 1.5s;
}
.advertise-inner {
  position: relative;
  z-index: 2;
}
.advertise-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  color: var(--bright-blue);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.advertise-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto var(--space-xl);
}
.advertise-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease-out);
}
.btn:hover::after {
  transform: translateX(100%);
}
.btn-primary {
  background: transparent;
}
.btn-primary:hover {
  background: transparent;
}
.btn-primary .wp-block-button__link {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.02em !important;
  background: var(--orange) !important;
  color: #0B1929 !important;
  border-radius: var(--radius-md) !important;
  border: 2px solid transparent !important;
  box-shadow: var(--shadow-btn);
  transition: all var(--transition-fast);
}
.btn-primary:hover .wp-block-button__link {
  background: #E06A18 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(241, 119, 32, 0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--bright-blue);
  border-color: var(--bright-blue);
}
.btn-secondary:hover {
  background: rgba(0, 167, 225, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 167, 225, 0.15);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
/* Hide default page title when page has its own hero */
main:has(.page-hero) > .page-title-section {
  display: none !important;
  visibility: hidden;
  height: 0;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}
/* Widen content area for pages with page-hero */
main:has(.page-hero) > .wp-block-group,
main:has(.page-hero) > .wp-block-group > .wp-block-group {
  max-width: none !important;
}
main:has(.page-hero) .page-hero {
  max-width: none !important;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
}
main:has(.page-hero) .pulse-divider-hero {
  width: 100vw;
  position: absolute;
  bottom: -30px;
  left: calc(-50vw + 50%);
  right: 0;
  margin: 0;
  z-index: 5;
}
/* Override WP columns for subscribe-options grid */
.subscribe-options.wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: var(--space-lg) !important;
  max-width: 900px;
  margin: 0 auto var(--space-2xl);
}
.subscribe-options .wp-block-column {
  padding: 0;
  margin: 0;
}
.page-hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0 var(--space-2xl);
  background: linear-gradient(135deg, #0B1929 0%, #0D2240 40%, #0A253E 70%, #122640 100%);
  text-align: center;
  overflow: visible;
}
.page-hero .section-wide {
  max-width: var(--wide-size);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.page-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--bright-blue);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.page-hero-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #C8D6E5;
  max-width: 560px;
  margin: 0 auto;
}
[data-theme="light"] .page-hero { background: linear-gradient(135deg, #0B1929 0%, #0D2240 40%, #0A253E 70%, #122640 100%); }
[data-theme="light"] .page-hero-desc { color: #C8D6E5; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.page-hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; z-index: 0; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11, 25, 41, 0.6) 0%, rgba(13, 34, 64, 0.5) 40%, rgba(10, 37, 62, 0.45) 70%, rgba(18, 38, 64, 0.55) 100%); z-index: 1; }
.page-hero .wide-width { position: relative; z-index: 2; max-width: var(--wide-size); margin: 0 auto; padding: 0 var(--space-xl); width: 100%; }
.mission-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(0, 167, 225, 0.12); border: 1px solid rgba(0, 167, 225, 0.2); border-radius: var(--radius-pill); padding: 6px 16px; font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--bright-blue); margin-bottom: var(--space-lg); }
.hero-contact-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(0, 167, 225, 0.12); border: 1px solid rgba(0, 167, 225, 0.2); border-radius: var(--radius-pill); padding: 6px 16px; font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--bright-blue); margin-bottom: var(--space-lg); }
.page-hero-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-md);
  color: var(--text-muted);
  opacity: 0.7;
}

/* HOST PROFILES */
.hosts-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-xl); }
.host-card { background: var(--bg-surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-subtle); transition: all var(--transition-fast); box-shadow: var(--shadow-card); }
.host-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--border-color); }
.host-photo { height: 260px; position: relative; overflow: hidden; }
.host-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-med); }
.host-card:hover .host-photo img { transform: scale(1.05); }
.host-photo::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40%; background: linear-gradient(to top, var(--bg-surface), transparent); }
.host-body { padding: var(--space-lg); }
.host-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--text); margin-bottom: 2px; letter-spacing: -0.01em; }
.host-role { font-size: 0.82rem; color: var(--accent); font-weight: 600; margin-bottom: var(--space-md); }
.host-bio { font-size: 0.88rem; line-height: 1.6; color: var(--text-muted); }
.host-social { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }
.host-social a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.8rem; transition: all var(--transition-fast); }
.host-social a:hover { background: var(--bright-blue); color: #FFFFFF; border-color: var(--bright-blue); }

/* STATS */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); margin-top: var(--space-2xl); }
.stat-card { text-align: center; background: var(--bg-surface); border-radius: var(--radius-lg); padding: var(--space-xl) var(--space-lg); border: 1px solid var(--border-subtle); transition: all var(--transition-fast); position: relative; overflow: hidden; }
.stat-card:hover { border-color: var(--border-color); transform: translateY(-2px); }
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bright-blue), var(--orange));
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.stat-card:hover::before { opacity: 1; }
.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 167, 225, 0.1);
  color: var(--bright-blue);
}
[data-theme="light"] .stat-icon {
  background: rgba(4, 116, 186, 0.08);
  color: #0474BA;
}
.stat-number { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 3vw, 2.6rem); color: var(--orange); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: var(--space-xs); }
.stat-label { font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }

/* CNCF PROJECTS */
.projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.project-tag { background: var(--bg-surface); border-radius: var(--radius-md); padding: var(--space-md) var(--space-lg); border: 1px solid var(--border-subtle); font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--text); text-align: center; transition: all var(--transition-fast); }
.project-tag:hover { border-color: var(--bright-blue); color: var(--heading-color); transform: translateY(-2px); }

/* SUPPORT */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.support-card { background: var(--bg-surface); border-radius: var(--radius-lg); padding: var(--space-xl); border: 1px solid var(--border-subtle); text-align: center; transition: all var(--transition-fast); box-shadow: var(--shadow-card); }
.support-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--border-color); }
.support-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(0, 167, 225, 0.1); border: 1px solid rgba(0, 167, 225, 0.15); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-md); color: var(--bright-blue); }
.support-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: var(--space-sm); }
.support-desc { font-size: 0.85rem; line-height: 1.55; color: var(--text-muted); margin-bottom: var(--space-md); }

.btn-sm { font-size: 0.8rem; padding: 9px 20px; }

/* About page light mode */
[data-theme="light"] .page-hero-overlay { background: linear-gradient(135deg, rgba(11, 25, 41, 0.65) 0%, rgba(13, 34, 64, 0.55) 40%, rgba(10, 37, 62, 0.5) 70%, rgba(18, 38, 64, 0.6) 100%); }
[data-theme="light"] .stat-number { color: #F17720; }
[data-theme="light"] .section-alt { background: #FFFFFF; }

/* About page responsive */
@media (max-width: 900px) {
  .hosts-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .support-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .hosts-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 300px; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

/* CONTACT LAYOUT */
.contact-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-2xl); align-items: flex-start;
}

/* FORM */
.contact-form-card {
  background: var(--bg-surface); border-radius: var(--radius-lg);
  padding: var(--space-2xl); border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.form-group { display: flex; flex-direction: column; gap: var(--space-sm); }
.form-label { font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.form-input {
  font-family: var(--font-body); font-size: 0.95rem; padding: 12px 16px;
  border-radius: var(--radius-md); border: 1px solid var(--border-color);
  background: var(--bg); color: var(--text); outline: none; transition: all var(--transition-fast);
}
.form-input::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-input:focus { border-color: var(--bright-blue); box-shadow: 0 0 0 3px rgba(0, 167, 225, 0.12); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A9BB5' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.form-full { grid-column: 1 / -1; }
.form-submit { margin-top: var(--space-lg); }

/* INFO CARDS */
.contact-info-grid { display: flex; flex-direction: column; gap: var(--space-lg); }
.info-card {
  background: var(--bg-surface); border-radius: var(--radius-lg);
  padding: var(--space-xl); border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast); box-shadow: var(--shadow-card);
}
.info-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); border-color: var(--border-color); }
.info-card-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0, 167, 225, 0.1); border: 1px solid rgba(0, 167, 225, 0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--bright-blue); margin-bottom: var(--space-md);
}
.info-card-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: var(--space-xs); }
.info-card-value { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }
.info-card-value a { color: var(--link-color); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: color var(--transition-fast); }
.info-card-value a:hover { color: var(--link-hover); }

/* GUEST CTA */
.guest-cta {
  background: linear-gradient(135deg, var(--deep-blue) 0%, #0D2E4F 50%, var(--dark-navy) 100%);
  border-radius: var(--radius-lg); padding: var(--space-2xl);
  position: relative; overflow: hidden; text-align: center;
}
.guest-cta::before {
  content: ''; position: absolute; top: -40%; right: -8%;
  width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid rgba(0, 167, 225, 0.08);
  animation: signal-pulse 3s var(--ease-out) infinite;
}
.guest-cta-inner { position: relative; z-index: 2; }
.guest-cta-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 2vw, 1.8rem); color: var(--bright-blue); letter-spacing: -0.02em; margin-bottom: var(--space-md); }
.guest-cta-text { font-size: 1rem; line-height: 1.6; color: var(--text-muted); max-width: 540px; margin: 0 auto var(--space-lg); }
.guest-cta-actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }

/* Contact page responsive */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .form-grid { grid-template-columns: 1fr; }
  .contact-form-card { padding: var(--space-xl); }
  .page-hero { min-height: 260px; }
  .guest-cta { padding: var(--space-xl); }
}

/* ============================================================
   SPONSOR PAGE
   ============================================================ */

/* HERO -- Sponsor page variant (override homepage hero-full) */
.hero-full.sponsor-hero {
  min-height: 480px;
}

/* AUDIENCE STATS -- 4-card grid */
.stat-card.sponsor-stat {
  box-shadow: var(--shadow-card);
}

/* SPONSORSHIP PACKAGES -- 3 tier cards */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}
.package-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.package-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-color);
}
.package-card.featured {
  border-color: var(--orange);
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(241, 119, 32, 0.04) 100%);
}
.package-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), #FFB347);
}
.package-badge {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: rgba(241, 119, 32, 0.12);
  color: var(--accent);
  padding: 4px 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(241, 119, 32, 0.2);
  text-transform: uppercase;
}
.package-tier {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}
.package-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--heading-color);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}
.package-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: var(--orange);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-xs);
}
.package-price span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0;
}
.package-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}
.package-features {
  list-style: none;
  margin-bottom: var(--space-xl);
  flex: 1;
}
.package-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: var(--space-sm);
}
.package-features li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--bright-blue);
}
.package-card.featured .package-features li svg {
  color: var(--orange);
}
.package-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  text-align: center;
  width: 100%;
}
.package-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease-out);
}
.package-cta:hover::after {
  transform: translateX(100%);
}
.package-cta-primary {
  background: var(--orange);
  color: #0B1929;
  box-shadow: var(--shadow-btn);
}
.package-cta-primary:hover {
  background: #E06A18;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(241, 119, 32, 0.3);
}
.package-cta-secondary {
  background: transparent;
  color: var(--bright-blue);
  border-color: var(--bright-blue);
}
.package-cta-secondary:hover {
  background: rgba(0, 167, 225, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 167, 225, 0.15);
}

/* BENEFITS GRID */
.benefits-section {
  background: var(--bg-surface-alt);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}
.benefit-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-color);
}
.benefit-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 167, 225, 0.1);
  color: var(--bright-blue);
}
[data-theme="light"] .benefit-icon {
  background: rgba(4, 116, 186, 0.08);
  color: #0474BA;
}
.benefit-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}
.benefit-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* TESTIMONIAL */
.testimonial-block {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-xl);
}
.testimonial-quote {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: var(--space-lg);
  position: relative;
  text-wrap: pretty;
}
.testimonial-quote::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--orange);
  margin: 0 auto var(--space-lg);
  border-radius: 2px;
}
.testimonial-attribution {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}
.testimonial-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}
.testimonial-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* CTA SECTION */
.cta-banner {
  background: linear-gradient(135deg, var(--deep-blue) 0%, #0D2E4F 50%, var(--dark-navy) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-3xl);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(0, 167, 225, 0.08);
  animation: signal-pulse 3s var(--ease-out) infinite;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(241, 119, 32, 0.08);
  animation: signal-pulse 3s var(--ease-out) infinite 1.5s;
}
.cta-inner {
  position: relative;
  z-index: 2;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  color: var(--bright-blue);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.cta-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto var(--space-xl);
}
.cta-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}
.cta-email {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: var(--space-lg);
}
.cta-email a {
  color: var(--bright-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color var(--transition-fast);
}
.cta-email a:hover {
  color: var(--link-hover);
}

/* Sponsor page light mode */
[data-theme="light"] .benefits-section {
  background: #F0F4F8;
}
[data-theme="light"] .benefit-title {
  color: #0B1929;
}
[data-theme="light"] .package-name {
  color: #0474BA;
}
[data-theme="light"] .package-price {
  color: #F17720;
}
[data-theme="light"] .testimonial-quote {
  color: #0B1929;
}
[data-theme="light"] .testimonial-name {
  color: #0B1929;
}
[data-theme="light"] .cta-banner {
  background: linear-gradient(135deg, #0474BA 0%, #0D5A9E 50%, #0B1929 100%);
}
[data-theme="light"] .cta-title {
  color: #FFFFFF;
}
[data-theme="light"] .cta-text {
  color: rgba(255, 255, 255, 0.85);
}
[data-theme="light"] .cta-email {
  color: rgba(255, 255, 255, 0.75);
}
[data-theme="light"] .cta-email a {
  color: #FFFFFF;
}
[data-theme="light"] .package-cta-secondary {
  border-color: #0474BA;
  color: #0474BA;
}
[data-theme="light"] .package-cta-secondary:hover {
  background: #0474BA;
  color: #FFFFFF;
}

/* Sponsor page responsive */
@media (max-width: 900px) {
  .packages-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  .packages-grid {
    grid-template-columns: 1fr;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    padding: var(--space-xl) var(--space-lg);
  }
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================================
   UNSUBSCRIBE PAGE
   ============================================================ */

/* SECTIONS */
.section-narrow { max-width: var(--content-size); margin: 0 auto; padding: 0 var(--space-xl); }

/* PREFERENCES CARD */
.pref-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
}
[data-theme="light"] .pref-card {
  background: #FFFFFF;
  border-color: rgba(4, 116, 186, 0.1);
}
.pref-card-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: var(--space-sm);
}
[data-theme="light"] .pref-card-heading { color: #0B1929; }
.pref-card-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

/* PREFERENCE OPTION ROW */
.pref-option {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  transition: border-color var(--transition-fast);
}
[data-theme="light"] .pref-option {
  background: #F0F4F8;
  border-color: rgba(4, 116, 186, 0.08);
}
.pref-option:hover {
  border-color: var(--border-color);
}
.pref-option-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 167, 225, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bright-blue);
  flex-shrink: 0;
}
.pref-option-info {
  flex: 1;
  min-width: 0;
}
.pref-option-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 2px;
}
[data-theme="light"] .pref-option-title { color: #0B1929; }
.pref-option-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* TOGGLE SWITCH */
.toggle-switch {
  position: relative;
  flex-shrink: 0;
}
.toggle-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-switch-label {
  display: block;
  width: 48px;
  height: 26px;
  border-radius: 13px;
  background: var(--border-color);
  position: relative;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.toggle-switch-label::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.toggle-switch input[type="checkbox"]:checked + .toggle-switch-label {
  background: var(--bright-blue);
}
.toggle-switch input[type="checkbox"]:checked + .toggle-switch-label::after {
  transform: translateX(22px);
  background: #FFFFFF;
}
.toggle-switch input[type="checkbox"]:focus-visible + .toggle-switch-label {
  outline: 2px solid var(--bright-blue);
  outline-offset: 2px;
}

/* SAVE BUTTON */
.save-pref-btn {
  display: block;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--orange);
  color: #0B1929;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  margin-top: var(--space-lg);
}
.save-pref-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease-out);
}
.save-pref-btn:hover::after { transform: translateX(100%); }
.save-pref-btn:hover { background: #E06A18; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(241, 119, 32, 0.3); }

/* SAVE SUCCESS MESSAGE */
.save-success {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: #2ECC71;
  margin-top: var(--space-md);
  opacity: 0;
  transition: opacity var(--transition-med);
}
.save-success.show { opacity: 1; }

/* UNSUBSCRIBE LINK */
.unsub-link {
  display: block;
  text-align: center;
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  font-family: var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.unsub-link:hover { color: var(--link-color); }

/* UNSUBSCRIBE SECTION */
.unsubscribe-section {
  max-width: 640px;
  margin: var(--space-xl) auto 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s var(--ease-out), opacity 0.4s var(--ease-out);
}
.unsubscribe-section.open {
  max-height: 600px;
  opacity: 1;
}
.unsub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
}
[data-theme="light"] .unsub-card {
  background: #FFFFFF;
  border-color: rgba(4, 116, 186, 0.1);
}
.unsub-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: var(--space-lg);
}
[data-theme="light"] .unsub-heading { color: #0B1929; }
.unsub-form-group {
  margin-bottom: var(--space-lg);
}
.unsub-form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}
.unsub-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: all var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23C8D6E5' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.unsub-select:focus { border-color: var(--bright-blue); box-shadow: 0 0 0 3px rgba(0, 167, 225, 0.12); }
.unsub-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg);
  color: var(--text);
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: all var(--transition-fast);
}
.unsub-textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.unsub-textarea:focus { border-color: var(--bright-blue); box-shadow: 0 0 0 3px rgba(0, 167, 225, 0.12); }
[data-theme="light"] .unsub-select,
[data-theme="light"] .unsub-textarea {
  background: #F0F4F8;
  color: #0B1929;
  border-color: rgba(4, 116, 186, 0.15);
}

/* BUTTONS ROW */
.unsub-buttons {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* OUTLINE BUTTON */
.btn-outline {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-outline:hover {
  border-color: var(--bright-blue);
  color: var(--bright-blue);
  background: rgba(0, 167, 225, 0.05);
}
[data-theme="light"] .btn-outline {
  border-color: rgba(4, 116, 186, 0.2);
  color: #0B1929;
}

/* DESTRUCTIVE BUTTON */
.destructive-btn {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  background: #E74C3C;
  color: #FFFFFF;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.destructive-btn:hover {
  background: #C0392B;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(231, 76, 60, 0.3);
}

/* CONFIRMATION MESSAGE */
.confirmation-message {
  max-width: 640px;
  margin: var(--space-xl) auto 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  text-align: center;
  display: none;
}
.confirmation-message.show { display: block; }
[data-theme="light"] .confirmation-message {
  background: #FFFFFF;
  border-color: rgba(4, 116, 186, 0.1);
}
.confirmation-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: #2ECC71;
}
.confirmation-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: var(--space-sm);
}
[data-theme="light"] .confirmation-heading { color: #0B1929; }
.confirmation-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.confirmation-text a { color: var(--link-color); text-decoration: underline; text-underline-offset: 3px; }
.confirmation-text a:hover { color: var(--link-hover); }

/* Unsubscribe page responsive */
@media (max-width: 680px) {
  .pref-card { padding: var(--space-lg); }
  .pref-option { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
  .pref-option-row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .unsub-buttons { flex-direction: column; }
  .unsub-card { padding: var(--space-lg); }
  .confirmation-message { padding: var(--space-lg); }
}

/* ============================================================
   SUBSCRIBE PAGE
   ============================================================ */
.subscribe-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}
.subscribe-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.email-row {
  display: flex;
  gap: var(--space-sm);
  max-width: 520px;
  margin: 0 auto var(--space-2xl);
}
.email-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text);
  outline: none;
  transition: all var(--transition-fast);
}
.email-input::placeholder { color: var(--text-muted); opacity: 0.6; }
.email-input:focus { border-color: var(--bright-blue); box-shadow: 0 0 0 3px rgba(0, 167, 225, 0.12); }
.email-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--orange);
  color: #0B1929;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.email-btn:hover { background: #E06A18; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(241, 119, 32, 0.3); }

.subscribe-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto var(--space-2xl);
}
.option-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
  text-align: center;
  cursor: pointer;
  position: relative;
}
.option-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--border-color); }
.option-card.selected { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange), var(--shadow-card-hover); }
.option-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 167, 225, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--bright-blue);
  transition: all var(--transition-fast);
}
.option-card.selected .option-icon { background: rgba(241, 119, 32, 0.12); color: var(--orange); }
.option-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: var(--space-sm);
}
.option-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.option-frequency {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bright-blue);
  background: rgba(0, 167, 225, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-block;
}
.option-check {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.option-card.selected .option-check {
  background: var(--orange);
  border-color: var(--orange);
  color: #0B1929;
}

.features-row {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}
.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.feature-icon {
  color: var(--orange);
  flex-shrink: 0;
}
.subscribe-cta {
  text-align: center;
  padding: var(--space-2xl) 0;
}
.cta-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
}
.cta-note a { color: var(--link-color); text-decoration: underline; text-underline-offset: 3px; }
.cta-note a:hover { color: var(--link-hover); }

/* Light mode overrides for subscribe */
[data-theme="light"] .option-card { background: #FFFFFF; border-color: rgba(4, 116, 186, 0.1); }
[data-theme="light"] .option-title { color: #0B1929; }
[data-theme="light"] .option-desc { color: #4A5568; }
[data-theme="light"] .email-input { background: #FFFFFF; }

/* Responsive subscribe */
@media (max-width: 900px) {
  .subscribe-options { grid-template-columns: 1fr; max-width: 400px; }
}
@media (max-width: 680px) {
  .email-row { flex-direction: column; }
  .features-row { flex-direction: column; align-items: center; }
}

/* ============================================================
   FOOTER with newsletter
   ============================================================ */
.site-footer {
  background: #122640;
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-2xl) 0 var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  max-width: var(--wide-size);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: var(--space-md);
}
.footer-col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bright-blue);
  margin-bottom: var(--space-md);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: var(--space-sm);
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--bright-blue);
}
.footer-newsletter-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFFFFF;
  margin-bottom: var(--space-sm);
}
.footer-newsletter-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.newsletter-form {
  display: flex;
  gap: var(--space-sm);
}
.newsletter-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: all var(--transition-fast);
}
.newsletter-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}
.newsletter-input:focus {
  border-color: var(--bright-blue);
  box-shadow: 0 0 0 3px rgba(0, 167, 225, 0.12);
}
.newsletter-btn {
  flex-shrink: 0;
}
.newsletter-btn:hover {
  background: #E06A18;
}
.newsletter-btn .wp-block-button__link {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  background: var(--orange) !important;
  color: #0B1929 !important;
  border-radius: var(--radius-md) !important;
  border: none !important;
  transition: all var(--transition-fast);
}
.newsletter-btn:hover .wp-block-button__link {
  background: #E06A18 !important;
}
.footer-bottom {
  max-width: var(--wide-size);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-xl) 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-2xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-social {
  display: flex;
  gap: var(--space-md);
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.footer-social a:hover {
  background: var(--bright-blue);
  color: #FFFFFF;
  border-color: var(--bright-blue);
}

/* ============================================================
   PULSE DIVIDER
   ============================================================ */
.pulse-divider {
  position: relative;
  width: 100vw;
  max-width: none !important;
  margin-left: calc(-50vw + 50%) !important;
  height: 60px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 !important;
}
.pulse-divider svg {
  width: 100%;
  height: 40px;
  display: block;
}
.pulse-divider-hero {
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  margin: 0;
  z-index: 5;
}
.pulse-divider path {
  stroke: #F17720;
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw-pulse-line 3s linear infinite;
}
@keyframes pulse-divider-draw {
  0% { background-size: 0% 40px; }
  100% { background-size: 100% 40px; }
}

/* ============================================================
   SINGLE POST / ARTICLE
   ============================================================ */

/* Hero image */
.article-hero-image-wrap {
  position: relative;
}
.article-hero-image-wrap .wp-block-post-featured-image {
  position: relative;
  height: 480px;
  overflow: hidden;
  margin: 0;
}
.article-hero-image-wrap .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-hero-image-wrap .wp-block-post-featured-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(11,25,41,0.3) 40%, transparent 100%);
}

/* Hero content overlapping image */
.article-hero-content {
  position: relative;
  z-index: 2;
}
/* Fallback: no featured image → add top padding so title doesn't hide behind header */
.article-hero-image-wrap:not(:has(img)) + .article-hero-content,
.article-hero-image-wrap:empty + .article-hero-content {
  margin-top: 0 !important;
  padding-top: 64px !important;
  background: var(--bg);
}

/* Category badge (wp:post-terms) */
.article-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(241,119,32,0.12);
  border: 1px solid rgba(241,119,32,0.2);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-md);
}
.article-category-badge a {
  color: var(--accent);
  text-decoration: none;
}
.article-hero-title {
  margin-bottom: var(--space-lg);
}
.article-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.article-hero-meta .meta-separator {
  color: var(--border-color);
  font-weight: 300;
  line-height: 1;
}
.article-hero-meta .wp-block-post-date,
.article-hero-meta .wp-block-post-date a,
.article-hero-meta .wp-block-post-terms,
.article-hero-meta .wp-block-post-terms a,
.meta-read-time {
  font-size: 0.82rem;
  color: #C8D6E5;
  text-decoration: none;
}
.article-hero-meta .wp-block-post-terms {
  display: inline;
  white-space: normal;
  overflow: visible;
}
.article-hero-meta .wp-block-post-terms a:hover {
  color: var(--bright-blue);
}
.article-hero-meta .wp-block-post-author {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.article-hero-meta .wp-block-post-author__name {
  font-weight: 600;
}

/* Prose — the post body */
.article-prose {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text);
}
.article-prose p {
  margin-bottom: var(--space-lg);
}
.article-prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.2;
  color: var(--heading-color);
  letter-spacing: -0.01em;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
}
.article-prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--text);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}
.article-prose a {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color var(--transition-fast);
}
.article-prose a:hover { color: var(--link-hover); }
.article-prose ul,
.article-prose ol {
  margin-bottom: var(--space-lg);
  padding-left: 1.5rem;
}
.article-prose li {
  margin-bottom: var(--space-sm);
  line-height: 1.65;
}
.article-prose code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.88em;
  background: var(--bg-surface-alt);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  color: var(--accent);
}
.article-prose pre {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}
.article-prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text);
}
/* Article logo: float top-right, text wraps (matches tweakers.net 77px rendered size) */
.article-prose .wp-block-image.alignright {
  float: right;
  clear: right;
  margin: 4px 0 24px 28px;
  width: 80px;
}
.article-prose .wp-block-image.alignright img {
  width: 80px;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 8px;
  box-sizing: border-box;
}
.article-prose::after {
  content: '';
  display: table;
  clear: both;
}

.article-prose blockquote {
  position: relative;
  margin: var(--space-xl) 0;
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-surface);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text);
  font-style: italic;
}
.article-prose blockquote cite,
.article-prose blockquote p.wp-block-quote__citation {
  display: block;
  margin-top: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  font-style: normal;
  color: var(--text-muted);
}
/* Inline images in article */
.article-prose .wp-block-image,
.article-prose figure {
  margin: var(--space-xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}
.article-prose .wp-block-image img,
.article-prose figure img {
  width: 100%;
  height: auto;
  display: block;
}
.article-prose .wp-block-image figcaption,
.article-prose figure figcaption {
  padding: var(--space-md) var(--space-lg);
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  font-style: italic;
}

/* Author card */
.author-card-inner {
  box-shadow: var(--shadow-card);
}
.author-card-inner .wp-block-post-author-avatar img {
  border-radius: 50%;
}

/* Related cards (single post) */
.related-card {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-color) !important;
}
.related-card .wp-block-post-featured-image {
  height: 180px;
  overflow: hidden;
  margin: 0;
  position: relative;
}
.related-card .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-med);
}
.related-card:hover .wp-block-post-featured-image img {
  transform: scale(1.05);
}
.related-card .wp-block-post-featured-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, #122640, transparent);
}
.related-card .wp-block-post-terms a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(241,119,32,0.1);
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
}
.related-card .wp-block-post-title a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.related-card .wp-block-post-title a:hover { color: var(--bright-blue); }
.related-card .wp-block-read-more {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--link-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.related-card .wp-block-read-more:hover { color: var(--link-hover); }

/* ============================================================
   LIGHT MODE — SINGLE POST
   ============================================================ */
[data-theme="light"] .article-hero-image-wrap .wp-block-post-featured-image::after {
  background: linear-gradient(to top, var(--bg) 0%, rgba(240,244,248,0.4) 40%, transparent 100%);
}
[data-theme="light"] .article-hero-title,
[data-theme="light"] .article-prose h2 { color: #0474BA !important; }
[data-theme="light"] .article-prose h3 { color: #1A3A5C !important; }
[data-theme="light"] .article-prose strong,
[data-theme="light"] .article-prose b { color: #1A202C !important; }
[data-theme="light"] .article-prose { color: #2D3748 !important; }
[data-theme="light"] .article-hero-meta .wp-block-post-date,
[data-theme="light"] .article-hero-meta .wp-block-post-date a,
[data-theme="light"] .article-hero-meta .wp-block-post-terms,
[data-theme="light"] .article-hero-meta .wp-block-post-terms a,
[data-theme="light"] .meta-read-time,
[data-theme="light"] .article-hero-meta .meta-separator { color: #4A5568 !important; }
[data-theme="light"] .article-prose code {
  background: #F0F4F8;
  border-color: rgba(4,116,186,0.1);
}
[data-theme="light"] .article-prose pre {
  background: #FFFFFF;
  border-color: rgba(4,116,186,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
[data-theme="light"] .article-prose blockquote { background: #F0F4F8; }
[data-theme="light"] .article-prose .wp-block-image,
[data-theme="light"] .article-prose figure { border-color: rgba(4,116,186,0.1); }
[data-theme="light"] .author-card-inner {
  background-color: #FFFFFF !important;
  border-color: rgba(4,116,186,0.1) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
[data-theme="light"] .related-card {
  background-color: #FFFFFF !important;
  border-color: rgba(4,116,186,0.1) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
[data-theme="light"] .related-card .wp-block-post-title a { color: #0B1929; }
[data-theme="light"] .related-card .wp-block-post-featured-image::after {
  background: linear-gradient(to top, #FFFFFF, transparent);
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes draw-pulse-line {
  0% { stroke-dashoffset: 400; }
  100% { stroke-dashoffset: 0; }
}
@keyframes waveform {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}
@keyframes signal-pulse {
  0% { opacity: 0.3; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0.3; transform: scale(0.95); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(241, 119, 32, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(241, 119, 32, 0); }
}
@keyframes dot-fade {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}
@keyframes eq-bounce {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* ============================================================
   LIGHT MODE OVERRIDES (Component-level)
   ============================================================ */
[data-theme="light"] .site-header {
  background: #122640;
  border-bottom: 1px solid var(--border-subtle);
}
[data-theme="light"] .nav-links a {
  color: #EBEBEB;
}
[data-theme="light"] .nav-links a:hover {
  color: var(--bright-blue);
}
[data-theme="light"] .hero-section,
[data-theme="light"] .hero-full {
  background: linear-gradient(135deg, #0B1929 0%, #0D2240 40%, #0A253E 70%, #122640 100%);
}
[data-theme="light"] .hero-bg-overlay {
  background: linear-gradient(135deg, rgba(11, 25, 41, 0.6) 0%, rgba(13, 34, 64, 0.5) 40%, rgba(10, 37, 62, 0.45) 70%, rgba(18, 38, 64, 0.55) 100%);
}
[data-theme="light"] .hero-waveform-bg .signal-ring {
  border-color: #C8D6E5;
}
[data-theme="light"] .listen-on-label,
[data-theme="light"] .listen-on-link {
  color: #C8D6E5;
  border-color: rgba(235, 235, 235, 0.06);
}
[data-theme="light"] .listen-on-link:hover {
  color: #00A7E1;
  border-color: rgba(0, 167, 225, 0.12);
  background: rgba(0, 167, 225, 0.05);
}
[data-theme="light"] .hero-waveform-bg .signal-dot {
  background: #C8D6E5;
  box-shadow: 0 0 12px rgba(200, 214, 229, 0.6);
}
[data-theme="light"] .hero-waveform-bars {
  opacity: 0.12;
}
[data-theme="light"] .hero-waveform-bars .waveform-bar {
  background: #C8D6E5;
}
[data-theme="light"] .hero-tagline span {
  color: #F17720;
}
[data-theme="light"] .hero-subtitle {
  color: #C8D6E5;
}
[data-theme="light"] .player-card {
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .ep-section-title,
[data-theme="light"] .articles-section-title,
[data-theme="light"] .about-section-title,
[data-theme="light"] .advertise-section-title {
  color: #0474BA;
}
/* Override WP body background (WP global styles loads after theme CSS) */
[data-theme="light"] body {
  background-color: #F0F4F8 !important;
}

/* episode-card and inline-player have inline background-color:#122640 → need !important */
[data-theme="light"] .episode-card {
  background-color: #FFFFFF !important;
  border-color: rgba(4, 116, 186, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .episode-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .inline-player {
  background-color: #FFFFFF !important;
  border-color: rgba(0, 167, 225, 0.2) !important;
}
[data-theme="light"] .ep-card {
  background: #FFFFFF;
  border: 1px solid rgba(4, 116, 186, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .ep-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .ep-card .ep-badge {
  color: #F17720;
  background: rgba(241, 119, 32, 0.1);
}
[data-theme="light"] .ep-card .ep-title {
  color: #0B1929;
}
[data-theme="light"] .ep-card .ep-excerpt {
  color: #4A5568;
}
[data-theme="light"] .ep-card .play-btn-overlay {
  background: rgba(255, 255, 255, 0.85);
}
[data-theme="light"] .ep-card .play-btn-overlay:hover {
  background: rgba(255, 255, 255, 0.95);
}
[data-theme="light"] .article-card {
  background-color: #FFFFFF !important;
  border-color: rgba(4, 116, 186, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .article-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .article-card .card-title {
  color: #0B1929;
}
[data-theme="light"] .article-card .card-excerpt {
  color: #4A5568;
}
[data-theme="light"] .tag {
  background: rgba(4, 116, 186, 0.1);
  color: #0474BA;
}
[data-theme="light"] .about-section {
  background: #FFFFFF !important;
}
[data-theme="light"] .host-card {
  background: #F0F4F8;
  border: 1px solid rgba(4, 116, 186, 0.08);
}
[data-theme="light"] .host-name {
  color: #0B1929;
}
[data-theme="light"] .host-role {
  color: #4A5568;
}
[data-theme="light"] .host-bio {
  color: #4A5568;
}
[data-theme="light"] .stat-number {
  color: #0474BA;
}
[data-theme="light"] .stat-label {
  color: #4A5568;
}
[data-theme="light"] .advertise-section {
  background: linear-gradient(135deg, #0474BA 0%, #0D5A9E 50%, #0B1929 100%);
}
[data-theme="light"] .advertise-title {
  color: #FFFFFF;
}
[data-theme="light"] .advertise-text {
  color: rgba(255, 255, 255, 0.85);
}
[data-theme="light"] .advertise-inner .section-label {
  color: rgba(255, 255, 255, 0.85) !important;
}
[data-theme="light"] .site-footer {
  background: #122640;
  color: #EBEBEB;
}
[data-theme="light"] .footer-col h4 {
  color: #00A7E1;
}
[data-theme="light"] .footer-col a {
  color: #C8D6E5;
}
[data-theme="light"] .footer-col a:hover {
  color: #00A7E1;
}
[data-theme="light"] .footer-brand p {
  color: #C8D6E5;
}
[data-theme="light"] .footer-newsletter-desc {
  color: #C8D6E5;
}
[data-theme="light"] .footer-bottom {
  border-top-color: rgba(0, 167, 225, 0.15);
  color: rgba(255, 255, 255, 0.85);
}
[data-theme="light"] .footer-social a {
  color: #B0C4D8;
}
[data-theme="light"] .footer-social a:hover {
  color: #00A7E1;
}
[data-theme="light"] .ep-meta,
[data-theme="light"] .card-meta {
  color: #6B7C93;
}
[data-theme="light"] .btn-secondary {
  border-color: #0474BA;
  color: #0474BA;
}
[data-theme="light"] .btn-secondary:hover {
  background: #0474BA;
  color: #FFFFFF;
}
[data-theme="light"] .card-gradient-overlay {
  background: linear-gradient(to top, rgba(240,244,248,0.95), transparent 60%);
}
[data-theme="light"] .section-eyebrow {
  color: #F17720;
}

/* Section titles have inline color:#00A7E1 → override for light mode */
[data-theme="light"] .section-title {
  color: #0474BA !important;
}

/* WP block post elements inside cards in light mode */
[data-theme="light"] .episode-card .wp-block-post-title,
[data-theme="light"] .episode-card .wp-block-post-title a,
[data-theme="light"] .article-card .wp-block-post-title,
[data-theme="light"] .article-card .wp-block-post-title a {
  color: #0474BA;
}
[data-theme="light"] .episode-card .wp-block-post-excerpt p,
[data-theme="light"] .episode-card .wp-block-post-date,
[data-theme="light"] .episode-card .wp-block-post-date a,
[data-theme="light"] .article-card .wp-block-post-excerpt p,
[data-theme="light"] .article-card .wp-block-post-date,
[data-theme="light"] .article-card .wp-block-post-date a {
  color: #4A5568 !important;
}

/* About section: labels, body text, stat labels — all #4A5568 in light mode */
/* Exclude .about-stat-num which must stay orange (also has inline color so !important would win) */
[data-theme="light"] .about-section p:not(.about-stat-num) {
  color: #4A5568 !important;
}

/* Theme toggle */
.header-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.header-toggle:hover {
  border-color: var(--bright-blue);
  color: var(--heading-color);
}
.toggle-track {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: var(--border-color);
  position: relative;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}
.toggle-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bright-blue);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform var(--transition-fast);
}
[data-theme="light"] .header-toggle {
  color: #C8D6E5;
  border-color: rgba(0, 167, 225, 0.12);
}
[data-theme="light"] .header-toggle:hover {
  border-color: var(--bright-blue);
  color: var(--bright-blue);
}
[data-theme="light"] .toggle-track {
  background: rgba(0, 167, 225, 0.12);
}
[data-theme="light"] .toggle-thumb {
  transform: translateX(16px);
  background: var(--bright-blue);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .episodes-grid {
    grid-template-columns: 1fr 1fr;
  }
  .episode-card.featured {
    grid-column: span 2;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site-header .wp-block-navigation__container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #122640;
    flex-direction: column;
    padding: var(--space-md) var(--space-xl);
    border-bottom: 1px solid var(--border-subtle);
    gap: var(--space-md);
    z-index: 9999;
  }
  .site-header .wp-block-navigation__container.open {
    display: flex;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero-tagline {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }
  .inline-player {
    flex-direction: column;
    text-align: center;
  }
  .listen-on {
    flex-wrap: wrap;
    justify-content: center;
  }
  .episodes-grid {
    grid-template-columns: 1fr;
  }
  .episode-card.featured {
    grid-column: span 1;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .about-photos {
    grid-template-columns: 1fr;
  }
  .about-stats {
    flex-wrap: wrap;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
  .advertise-banner {
    padding: var(--space-xl) var(--space-lg);
  }
  .hero-waveform-bg {
    display: none;
  }
}

/* ============================================================
   EDITOR VISIBILITY (Required)
   ============================================================ */
.editor-styles-wrapper .reveal,
.editor-styles-wrapper .reveal-left,
.editor-styles-wrapper .reveal-right,
.editor-styles-wrapper .reveal-scale,
.editor-styles-wrapper .hero-enter,
.editor-styles-wrapper .hero-enter-up,
.editor-styles-wrapper .stagger-1,
.editor-styles-wrapper .stagger-2,
.editor-styles-wrapper .stagger-3,
.editor-styles-wrapper .stagger-4,
.editor-styles-wrapper .stagger-5,
.editor-styles-wrapper .stagger-6,
.editor-styles-wrapper [data-cnp-anim] {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* ============================================================
   PREFERS REDUCED MOTION (Required)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .hero-enter,
  .hero-enter-up,
  .stagger-1,
  .stagger-2,
  .stagger-3,
  .stagger-4,
  .stagger-5,
  .stagger-6,
  [data-cnp-anim] {
    opacity: 1 !important;
    transform: none !important;
  }
}
