/* ==========================================================================
   D3MOTION BLOG & CMS DESIGN SYSTEM (v3.2)
   Official D3motion Brand Tokens, Dual Theme (Light & Dark), Full CMS Support.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Theme Tokens: LIGHT & DARK (Synced with Plan Switch Design Tokens)
   -------------------------------------------------------------------------- */
:root,
html[data-theme="dark"] {
  --bg-app: #000000;
  --bg-surface: #171717;
  --bg-card: #171717;
  --bg-card-alt: #222222;
  --bg-elevated: #262626;
  --bg-input: #171717;
  --bg-hover: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(10, 11, 14, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.24);
  --border-focus: #3b82f6;

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: #85847e;
  --text-inverse: #000000;

  --signal-primary: #2563eb;
  --signal-hover: #1d4ed8;
  --signal-bright: #60a5fa;
  --signal-glow: rgba(37, 99, 235, 0.25);
  --signal-subtle: rgba(37, 99, 235, 0.1);
  --signal-border: rgba(37, 99, 235, 0.25);

  --color-success: #34d17a;
  --color-success-glow: rgba(52, 209, 122, 0.2);
  --color-success-subtle: rgba(52, 209, 122, 0.1);
  --color-warning: #ff9f0a;
  --color-warning-glow: rgba(255, 159, 10, 0.2);
  --color-error: #ff5a5f;

  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --media-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);

  --grid-line-color: transparent;
  --chrome-bg: #1e2024;
  --chrome-border: rgba(255, 255, 255, 0.08);
  --media-stage-bg: #000000;
}

html[data-theme="light"] {
  --bg-app: #f7f7f6;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-alt: #f0f0ee;
  --bg-elevated: #ffffff;
  --bg-input: #ffffff;
  --bg-hover: rgba(0, 0, 0, 0.04);
  --bg-glass: rgba(247, 247, 246, 0.85);

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.12);
  --border-strong: rgba(0, 0, 0, 0.2);
  --border-focus: #2563eb;

  --text-primary: #17181a;
  --text-secondary: #52525b;
  --text-muted: #85847e;
  --text-inverse: #ffffff;

  --signal-primary: #2563eb;
  --signal-hover: #1d4ed8;
  --signal-bright: #2563eb;
  --signal-glow: rgba(37, 99, 235, 0.15);
  --signal-subtle: rgba(37, 99, 235, 0.06);
  --signal-border: rgba(37, 99, 235, 0.2);

  --color-success: #16a34a;
  --color-success-glow: rgba(22, 163, 74, 0.15);
  --color-success-subtle: rgba(22, 163, 74, 0.06);
  --color-warning: #d97706;
  --color-warning-glow: rgba(217, 119, 6, 0.15);
  --color-error: #dc2626;

  --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  --media-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);

  --grid-line-color: transparent;
  --chrome-bg: #f0f0ee;
  --chrome-border: rgba(0, 0, 0, 0.08);
  --media-stage-bg: #f7f7f6;
}

:root {
  --font-display: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --content-max-width: 1360px;
  --article-max-width: 860px;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.75;
  font-weight: 400;
  min-height: 100vh;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  background-image: none !important;
}

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--signal-primary), #60A5FA, var(--color-success));
  z-index: 1000;
  box-shadow: 0 0 10px var(--signal-glow);
  transition: width 0.05s ease-out;
}

/* Site Navigation Bar */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  height: 72px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.site-nav-container {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #12141C;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 12px var(--signal-glow);
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--signal-primary);
  background: var(--signal-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--signal-border);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link-desktop {
  display: inline-flex;
}

.skill-label-full {
  display: inline;
}

.skill-label-mobile {
  display: none;
}

.nav-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.nav-portal-link:hover, .nav-portal-link.active {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-skill-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--signal-primary);
  background: var(--signal-subtle);
  border: 1px solid var(--signal-border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.nav-skill-link:hover {
  background: var(--signal-primary);
  color: #FFFFFF;
}

/* Theme Toggle Button */
.btn-theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-fast);
}

.btn-theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--signal-primary);
  transform: translateY(-1px);
}

[data-theme="light"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: block; }
[data-theme="dark"] .theme-icon-light { display: block; }
[data-theme="dark"] .theme-icon-dark { display: none; }

/* Page Layout Shell */
.app-container {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 40px 24px 100px;
  box-sizing: border-box;
  min-width: 0;
  overflow: visible; /* Allows position: sticky on desktop sidebar */
}

/* --------------------------------------------------------------------------
   BLOG HUB (CMS ARCHIVE) STYLES
   -------------------------------------------------------------------------- */
.blog-hub-header {
  padding: 48px 0 36px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.blog-hub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--signal-primary);
  background: var(--signal-subtle);
  border: 1px solid var(--signal-border);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.blog-hub-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.12;
}

.blog-hub-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Category Filters Bar */
.blog-filter-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  margin: 24px auto 36px auto;
}

.filter-chip {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 12.5px;
  font-weight: 550;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-chip:hover:not(.active) {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.filter-chip.active {
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-medium) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  font-weight: 600 !important;
}

[data-theme="light"] .filter-chip.active {
  background: #ffffff !important;
  color: #17181a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* Featured Post Card (Large) */
.featured-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  margin-bottom: 64px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}

.featured-post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.featured-media-box {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  min-height: 380px;
}

.featured-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out;
}

.featured-post-card:hover .featured-media-box img {
  transform: scale(1.03);
}

.featured-badge-overlay {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

.featured-content-box {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-top-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--signal-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.featured-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.featured-excerpt {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Author Avatar with Photo */
.author-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-photo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--signal-primary);
  box-shadow: 0 0 10px var(--signal-glow);
}

.author-meta-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.author-meta-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* Blog Cards Grid for CMS */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.blog-card-media {
  position: relative;
  height: 200px;
  background: var(--bg-card-alt);
  border-radius: 14px;
  overflow: hidden;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.04);
}

.blog-card-body {
  padding: 16px 8px 6px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.blog-card-tag {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--signal-bright);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--signal-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.blog-card-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   ARTICLE POST PAGE SPECIFICS
   -------------------------------------------------------------------------- */
.article-header {
  padding: 24px 0 44px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-header-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--signal-primary);
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--signal-subtle);
  border: 1px solid var(--signal-border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.eyebrow-divider {
  height: 1px;
  flex-grow: 1;
  background: linear-gradient(90deg, var(--signal-primary), transparent);
  opacity: 0.4;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.article-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 900px;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.author-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 4px 14px 4px 6px;
  border-radius: var(--radius-pill);
  box-shadow: var(--card-shadow);
}

.author-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--signal-primary);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.skill-hero-banner {
  background: var(--bg-card);
  border: 1px solid var(--signal-border);
  border-left: 5px solid var(--signal-primary);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  margin: 28px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--card-shadow);
}

.skill-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.skill-banner-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-banner-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.skill-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--signal-primary);
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px var(--signal-glow);
  transition: all var(--transition-fast);
}

.skill-banner-cta:hover {
  background: var(--signal-hover);
  transform: translateY(-1px);
}

/* Two-Column Layout */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 52px;
  margin-top: 40px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.article-body {
  width: 100%;
  max-width: var(--article-max-width);
  min-width: 0;
  box-sizing: border-box;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 52px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-body h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--signal-primary);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--signal-glow);
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 36px 0 16px;
}

.article-body p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.article-body p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
  color: var(--text-secondary);
}

.article-body li {
  margin-bottom: 10px;
  padding-left: 6px;
}

.article-body a {
  color: var(--signal-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.article-body a:hover {
  color: var(--signal-hover);
}

/* Executive Summary AEO Card */
.executive-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--signal-primary);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 32px 0 44px;
  box-shadow: var(--card-shadow);
}

.exec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.exec-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.exec-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  background: var(--color-success-subtle);
  color: var(--color-success);
  border: 1px solid var(--color-success-glow);
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.exec-list {
  list-style: none;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exec-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  padding: 0;
}

.exec-bullet {
  color: var(--signal-primary);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Full Width Media Frame */
.d3-media-frame {
  width: 100%;
  max-width: 100%;
  margin: 36px 0 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--media-shadow);
  transition: border-color var(--transition-normal);
}

.d3-media-frame:hover {
  border-color: var(--border-strong);
}

.d3-media-chrome {
  background: var(--chrome-bg);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--chrome-border);
  min-width: 0;
  overflow: hidden;
}

.chrome-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.c-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.c-red { background: #EF4444; }
.c-yellow { background: #F59E0B; }
.c-green { background: #22C55E; }

.chrome-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.chrome-label span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.chrome-specs {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--signal-primary);
  background: var(--signal-subtle);
  border: 1px solid var(--signal-border);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  white-space: nowrap;
}

.d3-media-stage {
  width: 100%;
  max-width: 100%;
  background: var(--media-stage-bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fullwidth-image-wrapper {
  width: 100%;
  max-width: 100%;
  background: #000000;
  line-height: 0;
  overflow: hidden;
}

.fullwidth-image-wrapper img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.bento-iframe-scaler {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-top: 75%;
  background: #F7F7F5;
  overflow: hidden;
  touch-action: pan-y;
  contain: paint layout;
  clip-path: inset(0);
  box-sizing: border-box;
}

.bento-iframe-scaler iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1024px !important;
  height: 768px !important;
  max-width: none !important;
  max-height: none !important;
  border: none;
  transform-origin: 0 0;
  pointer-events: none;
}

.d3-player-controls {
  background: var(--chrome-bg);
  border-top: 1px solid var(--chrome-border);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  min-width: 0;
  overflow: hidden;
}

.player-transport {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-transport {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-transport:hover {
  background: var(--signal-primary);
  color: #FFFFFF;
}

.player-scrubber-track {
  flex: 1;
  min-width: 40px;
  height: 6px;
  background: var(--border-medium);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.player-scrubber-fill {
  height: 100%;
  width: 48%;
  background: var(--signal-primary);
  border-radius: var(--radius-pill);
  animation: scrubber-sweep 24s linear infinite;
}

@keyframes scrubber-sweep {
  0% { width: 0%; }
  100% { width: 100%; }
}

.player-telemetry {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 11px;
}

.telemetry-item strong {
  color: var(--text-primary);
}

/* Video Stage & Fallback Poster */
.video-responsive-stage {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000000;
  overflow: hidden;
}

.video-responsive-stage iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-poster-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background-color: #000;
  cursor: pointer;
  z-index: 10;
  text-decoration: none !important;
}

.video-poster-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  transition: background var(--transition-fast);
}

.video-poster-overlay:hover .video-poster-backdrop {
  background: rgba(0, 0, 0, 0.35);
}

.video-play-button {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 48px;
  background: #FF0000;
  border-radius: 14px;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.45);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.video-poster-overlay:hover .video-play-button {
  transform: scale(1.1);
  box-shadow: 0 14px 40px rgba(255, 0, 0, 0.65);
}

.video-poster-title {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.video-poster-badge {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #E2E8F0;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}

/* Callouts, Steps, Tables & Code Windows */
.bento-callout {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.bento-callout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--signal-primary);
}

.bento-callout.warning {
  border-color: var(--color-warning-glow);
}

.bento-callout.warning::before {
  background: var(--color-warning);
}

.callout-header {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 28px 0;
  box-shadow: var(--card-shadow);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--signal-primary);
  background: var(--signal-subtle);
  border: 1px solid var(--signal-border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.table-container {
  margin: 36px 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
  position: relative;
  box-sizing: border-box;
}

.mobile-scroll-hint {
  display: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--signal-primary);
  background: var(--signal-subtle);
  padding: 8px 14px;
  text-align: center;
  border-bottom: 1px solid var(--signal-border);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.comparison-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

.comparison-table th {
  background: var(--bg-card-alt);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-medium);
}

.comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: var(--bg-hover);
}

.highlight-col {
  background: var(--signal-subtle);
  font-weight: 600;
  color: var(--signal-primary) !important;
}

.code-window {
  margin: 28px 0;
  background: #0B0D13;
  color: #E2E8F0;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.code-header {
  background: #141822;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.code-filename {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.code-copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.code-content {
  padding: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  line-height: 1.6;
  color: #F8FAFC;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: block;
}
  font-size: 0.875rem;
  line-height: 1.6;
  color: #F8FAFC;
}

/* FAQ Accordion Section */
.faq-section {
  margin: 56px 0;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-chevron {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-chevron {
  transform: rotate(90deg);
  color: var(--signal-primary);
}

.faq-answer {
  padding: 0 22px 20px;
  font-size: 0.975rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Sidebar & TOC */
.article-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 96px;
  align-self: start;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-sidebar::-webkit-scrollbar {
  width: 4px;
}
.article-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

article section[id] {
  scroll-margin-top: 100px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--card-shadow);
}

.widget-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  line-height: 1.4;
  border-left: 2px solid transparent;
}

.toc-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.toc-link.active {
  color: var(--signal-primary);
  background: var(--signal-subtle);
  padding-left: 12px;
  border-left: 2px solid var(--signal-primary);
  font-weight: 600;
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

.spec-label { color: var(--text-muted); }
.spec-val { color: var(--text-primary); font-weight: 600; }

/* Author Bio Card with Photo */
.author-bio-card {
  margin: 64px 0 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: center;
  box-shadow: var(--card-shadow);
}

.author-bio-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--signal-primary);
  box-shadow: 0 0 16px var(--signal-glow);
  flex-shrink: 0;
}

.author-bio-info h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.author-bio-role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--signal-primary);
  margin-bottom: 8px;
}

.author-bio-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Call to Action Box */
.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--signal-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  margin: 60px 0;
  box-shadow: var(--card-shadow);
}

.cta-box h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.cta-box p {
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 24px;
}

.cta-actions-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary-action {
  background: var(--signal-primary);
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px var(--signal-glow);
  transition: all var(--transition-fast);
}

.btn-primary-action:hover {
  background: var(--signal-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--signal-glow);
  color: #FFFFFF !important;
}

.btn-secondary-action {
  background: var(--bg-hover);
  color: var(--text-primary) !important;
  text-decoration: none !important;
  border: 1px solid var(--border-medium);
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.btn-secondary-action:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface);
  transform: translateY(-2px);
  color: var(--text-primary) !important;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
  background: var(--bg-surface);
  margin-top: 80px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-content {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsiveness (Zero Breakage Guarantee)
   ========================================================================== */

/* Universal Mobile & Typography Safeguards */
a {
  word-break: break-word;
  overflow-wrap: anywhere;
}

h1, h2, h3, h4, p, li, span {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

@media (max-width: 1080px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
    box-sizing: border-box;
  }
  .app-container {
    overflow-x: hidden !important;
  }
  .featured-post-card {
    grid-template-columns: 1fr;
  }
  .article-layout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 0;
  }
  .article-sidebar {
    display: none !important;
  }
  .article-body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 768px) {
  .site-nav-container {
    padding: 0 16px;
  }
  .nav-link-desktop {
    display: none;
  }
  .featured-media-box {
    min-height: 220px;
    max-height: 260px;
  }
  .featured-content-box {
    padding: 24px 20px;
  }
  .featured-title {
    font-size: 1.45rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  html, body {
    font-size: 15px;
  }

  .site-nav {
    height: 60px;
  }

  .site-nav-container {
    padding: 0 14px;
  }

  .brand-icon-box {
    width: 32px;
    height: 32px;
  }

  .brand-title {
    font-size: 16px;
    gap: 6px;
  }

  .brand-badge {
    display: none; /* Hide badge on mobile to preserve navbar space */
  }

  .nav-actions {
    gap: 8px;
  }

  .skill-label-full {
    display: none;
  }

  .skill-label-mobile {
    display: inline;
  }

  .nav-skill-link {
    padding: 5px 10px;
    font-size: 11px;
    gap: 4px;
  }

  .btn-theme-toggle {
    width: 34px;
    height: 34px;
  }

  .app-container {
    padding: 16px 14px 60px;
  }

  /* Header & Eyebrow */
  .article-header {
    padding: 12px 0 28px;
  }

  .eyebrow-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .eyebrow-divider {
    display: none;
  }

  .article-title {
    font-size: clamp(1.65rem, 6.5vw, 2.3rem);
    line-height: 1.2;
    margin-top: 4px;
  }

  .blog-hub-title {
    font-size: clamp(1.85rem, 7vw, 2.5rem);
    line-height: 1.15;
  }

  .article-subtitle, .blog-hub-subtitle {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Mobile Blog Filter Bar: Replaces oversized 999px pill curve with clean 14px rounded container */
  .blog-filter-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 10px !important;
    border-radius: 14px !important;
    max-width: 100% !important;
    margin: 18px auto 28px auto !important;
  }

  .filter-chip {
    font-size: 12px !important;
    padding: 6px 12px !important;
    border-radius: 10px !important;
  }

  .article-meta-bar {
    gap: 8px 12px;
    font-size: 11px;
    padding-top: 4px;
  }

  .author-pill {
    padding: 3px 10px 3px 5px;
    font-size: 11px;
  }

  .author-avatar-img {
    width: 24px;
    height: 24px;
  }

  /* Skill Banner */
  .skill-hero-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 16px;
    gap: 14px;
    margin: 20px 0 10px;
    border-radius: var(--radius-md);
  }

  .skill-banner-cta {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 12.5px;
  }

  /* Body Headings & Text */
  .article-body h2 {
    font-size: 1.45rem;
    margin: 36px 0 14px;
    padding-bottom: 8px;
  }

  .article-body h3 {
    font-size: 1.2rem;
    margin: 26px 0 12px;
  }

  .article-body p {
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 18px;
  }

  .article-body ul, .article-body ol {
    margin: 0 0 20px 18px;
    font-size: 0.95rem;
  }

  /* Executive Summary Card */
  .executive-summary-card {
    padding: 18px 14px;
    margin: 24px 0 32px;
    border-radius: var(--radius-md);
  }

  .exec-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .exec-title {
    font-size: 1.05rem;
  }

  .exec-list li {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  /* Media Frames */
  .d3-media-frame {
    margin: 24px 0 30px;
    border-radius: var(--radius-md);
  }

  .d3-media-chrome {
    padding: 8px 12px;
    gap: 8px;
  }

  .chrome-dots {
    gap: 4px;
  }

  .c-dot {
    width: 8px;
    height: 8px;
  }

  .chrome-label {
    font-size: 10.5px;
  }

  .chrome-specs {
    font-size: 9.5px;
    padding: 2px 7px;
  }

  /* Player Controls */
  .d3-player-controls {
    padding: 8px 12px;
    gap: 10px;
  }

  .player-transport .btn-transport {
    width: 26px;
    height: 26px;
  }

  .player-telemetry .telemetry-item:nth-child(2) {
    display: none; /* Hide second telemetry badge on mobile */
  }

  .player-telemetry {
    font-size: 10px;
    gap: 6px;
  }

  /* Comparison Table Mobile Affordance */
  .mobile-scroll-hint {
    display: block;
  }

  .comparison-table th, .comparison-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  /* Step Card */
  .step-card {
    padding: 20px 16px;
    margin: 20px 0;
    border-radius: var(--radius-md);
  }

  /* Callouts */
  .bento-callout {
    padding: 18px 16px;
    margin: 24px 0;
  }

  /* Code Window */
  .code-window {
    margin: 20px 0;
    border-radius: var(--radius-md);
  }

  .code-header {
    padding: 8px 12px;
  }

  .code-filename {
    font-size: 11px;
  }

  .code-copy-btn {
    font-size: 10px;
    padding: 2px 8px;
  }

  .code-content {
    padding: 14px;
    font-size: 0.78rem;
    line-height: 1.5;
  }

  /* FAQ Accordion */
  .faq-section {
    margin: 36px 0;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 0.98rem;
    gap: 10px;
  }

  .faq-answer {
    padding: 0 16px 14px;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* Author Bio Card */
  .author-bio-card {
    flex-direction: column;
    text-align: center;
    padding: 22px 16px;
    gap: 14px;
    margin: 40px 0 24px;
  }

  .author-bio-avatar-img {
    width: 68px;
    height: 68px;
    margin: 0 auto;
  }

  .author-bio-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* CTA Box */
  .cta-box {
    padding: 28px 16px;
    margin: 36px 0;
    border-radius: var(--radius-lg);
  }

  .cta-box h3 {
    font-size: 1.4rem;
  }

  .cta-box p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .cta-actions-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn-primary-action, .btn-secondary-action {
    width: 100%;
    text-align: center;
    padding: 12px 18px;
    font-size: 13.5px;
  }

  /* Footer */
  .site-footer {
    padding: 36px 0;
    margin-top: 48px;
  }

  .footer-content {
    padding: 0 14px;
    gap: 16px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-copy {
    font-size: 11px;
    line-height: 1.6;
  }
}

@media (max-width: 420px) {
  .site-nav-container {
    padding: 0 10px;
  }
  .app-container {
    padding: 14px 10px 50px;
  }
  .d3-media-chrome {
    padding: 6px 10px;
  }
  .chrome-specs {
    display: none; /* Auto-hide on ultra-compact phones to prevent any truncation */
  }
  .d3-player-controls {
    padding: 6px 8px;
  }
}
