/* ============================================
   KETO DIET CORNER - Premium Editorial Theme
   Aesthetic: Warm Organic Kitchen meets Editorial
   ============================================ */

/* === CSS Custom Properties === */
:root {
  /* Primary Palette - Warm & Inviting */
  --color-cream: #faf8f5;
  --color-cream-dark: #f5f0e8;
  --color-sage: #7c9a7c;
  --color-sage-light: #9bb89b;
  --color-sage-dark: #5a7a5a;
  --color-terracotta: #c4704a;
  --color-terracotta-light: #d98b68;
  --color-terracotta-dark: #a85a38;
  --color-charcoal: #2d3436;
  --color-charcoal-light: #4a5054;
  --color-warm-gray: #6b7280;
  --color-warm-gray-light: #9ca3af;

  /* Accent Colors */
  --color-gold: #d4a253;
  --color-olive: #6b8e6b;

  /* Semantic Colors */
  --color-success: #5cb85c;
  --color-warning: #f0ad4e;
  --color-danger: #d9534f;
  --color-info: #5bc0de;

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --container-max: 1400px;
  --content-max: 800px;
  --header-height: 80px;

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(45, 52, 54, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(45, 52, 54, 0.07), 0 2px 4px -1px rgba(45, 52, 54, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(45, 52, 54, 0.08), 0 4px 6px -2px rgba(45, 52, 54, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(45, 52, 54, 0.1), 0 10px 10px -5px rgba(45, 52, 54, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-lg));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* === Background Decoration === */
.bg-decoration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.bg-blob-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--color-sage-light), var(--color-cream));
  top: -200px;
  right: -200px;
}

.bg-blob-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--color-terracotta-light), var(--color-gold));
  bottom: -150px;
  left: -150px;
  opacity: 0.25;
}

.bg-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: multiply;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-charcoal);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
}

em {
  font-style: italic;
  color: var(--color-terracotta);
}

a {
  color: var(--color-terracotta);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-terracotta-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* === Container === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-3xl);
  }
}

@media (min-width: 1200px) {
  .container {
    padding-inline: var(--space-4xl);
  }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--color-terracotta);
  color: white;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:hover {
  background: var(--color-terracotta-dark);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--color-charcoal);
  border: 2px solid var(--color-charcoal-light);
}

.btn-secondary:hover {
  background: var(--color-charcoal);
  color: white;
  text-decoration: none;
  border-color: var(--color-charcoal);
}

.btn-light {
  background: white;
  color: var(--color-terracotta);
}

.btn-light:hover {
  background: var(--color-cream);
  color: var(--color-terracotta-dark);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(45, 52, 54, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-md) var(--space-lg);
  height: var(--header-height);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-charcoal);
}

.site-logo:hover {
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  color: var(--color-terracotta);
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-charcoal);
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-terracotta);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Navigation */
.main-nav {
  display: none;
}

@media (min-width: 900px) {
  .main-nav {
    display: block;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-charcoal-light);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-item.is-active .nav-link {
  color: var(--color-charcoal);
  background: rgba(45, 52, 54, 0.05);
  text-decoration: none;
}

/* Submenu */
.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  padding: var(--space-sm);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  list-style: none;
}

.nav-item:hover .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-submenu li a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  color: var(--color-charcoal-light);
  border-radius: var(--radius-sm);
}

.nav-submenu li a:hover {
  background: var(--color-cream);
  color: var(--color-charcoal);
  text-decoration: none;
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 900px) {
  .mobile-toggle {
    display: none;
  }
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-charcoal);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
}

.mobile-menu.is-open {
  visibility: visible;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 52, 54, 0.5);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-menu.is-open .mobile-menu-backdrop {
  opacity: 1;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: white;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-base);
}

.mobile-menu.is-open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-cream-dark);
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-charcoal);
  text-decoration: none;
}

.mobile-logo .logo-icon {
  width: 32px;
  height: 32px;
}

.mobile-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-charcoal-light);
}

.mobile-close svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  flex: 1;
  padding: var(--space-lg);
  overflow-y: auto;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav li {
  border-bottom: 1px solid var(--color-cream-dark);
}

.mobile-nav a {
  display: block;
  padding: var(--space-md) 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-charcoal);
}

.mobile-nav a:hover {
  color: var(--color-terracotta);
  text-decoration: none;
}

.mobile-menu-footer {
  padding: var(--space-lg);
  text-align: center;
  color: var(--color-warm-gray);
  font-size: 0.875rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  padding: calc(var(--space-4xl) + var(--space-xl)) 0 var(--space-4xl);
  background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-sage-dark) 100%);
  color: white;
  overflow: hidden;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-3xl);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

@media (min-width: 768px) {
  .hero-container {
    padding-inline: var(--space-3xl);
  }
}

@media (min-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-4xl);
  }
}

@media (min-width: 1200px) {
  .hero-container {
    padding-inline: var(--space-4xl);
  }
}

.hero-badge {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  color: white;
  margin-bottom: var(--space-lg);
}

.hero-title em {
  font-style: italic;
  color: var(--color-cream);
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-2xl);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hero .btn-primary {
  background: white;
  color: var(--color-sage-dark);
}

.hero .btn-primary:hover {
  background: var(--color-cream);
}

.hero .btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
}

/* Hero Visual - Stats Cards */
.hero-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 400px;
}

@media (min-width: 900px) {
  .hero-visual {
    justify-self: end;
  }
}

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  animation: float 6s ease-in-out infinite;
}

.hero-card-1 { animation-delay: 0s; }
.hero-card-2 { animation-delay: -2s; }
.hero-card-3 { animation-delay: -4s; grid-column: span 2; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-card .card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-sm);
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
}

.hero-card .card-icon svg {
  width: 24px;
  height: 24px;
}

.hero-card .card-label {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-xs);
}

.hero-card .card-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}

.hero-decoration {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-decoration svg {
  width: 100%;
  height: auto;
}

/* ============================================
   FEATURED SECTIONS (Homepage)
   ============================================ */
.featured-sections {
  padding: var(--space-4xl) 0 calc(var(--space-4xl) + var(--space-2xl));
  background: var(--color-cream);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
  padding: 0 var(--space-lg);
}

.section-header h2 {
  margin-bottom: var(--space-lg);
}

.section-header p {
  color: var(--color-warm-gray);
  font-size: 1.25rem;
  line-height: 1.7;
}

.sections-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 700px) {
  .sections-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }
}

@media (min-width: 1100px) {
  .sections-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
  }
}

.section-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  animation: fadeInUp 0.6s ease-out both;
  animation-delay: calc(var(--card-index, 0) * 100ms);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.section-card .card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  color: var(--color-sage);
}

.section-card .card-icon svg {
  width: 28px;
  height: 28px;
}

.section-card .card-content {
  flex: 1;
}

.section-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.section-card h3 a {
  color: var(--color-charcoal);
}

.section-card h3 a:hover {
  color: var(--color-terracotta);
  text-decoration: none;
}

.section-card > .card-content > p {
  font-size: 0.9375rem;
  color: var(--color-warm-gray);
  margin-bottom: var(--space-md);
}

.card-links {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
}

.card-links li {
  margin: 0;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-cream-dark);
}

.card-links li:last-child {
  border-bottom: none;
}

.card-links a {
  font-size: 0.875rem;
  color: var(--color-charcoal-light);
}

.card-links a:hover {
  color: var(--color-terracotta);
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-terracotta);
  margin-top: auto;
}

.card-action svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.card-action:hover {
  text-decoration: none;
}

.card-action:hover svg {
  transform: translateX(4px);
}

/* ============================================
   HIGHLIGHT SECTION (Meal Delivery)
   ============================================ */
.highlight-section {
  padding: calc(var(--space-4xl) + var(--space-xl)) 0;
  background: var(--color-cream-dark);
}

.highlight-grid {
  display: grid;
  gap: var(--space-3xl);
  align-items: center;
}

@media (min-width: 800px) {
  .highlight-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
  }
}

.highlight-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-terracotta);
  background: rgba(196, 112, 74, 0.1);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.highlight-content h2 {
  margin-bottom: var(--space-md);
}

.highlight-content > p {
  color: var(--color-warm-gray);
  margin-bottom: var(--space-xl);
}

.highlight-list {
  list-style: none;
  margin: 0 0 var(--space-xl);
  padding: 0;
}

.highlight-list li {
  margin: 0;
}

.highlight-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  transition: all var(--transition-fast);
}

.highlight-list a:hover {
  background: var(--color-cream);
  text-decoration: none;
  transform: translateX(4px);
}

.highlight-list .list-title {
  font-weight: 500;
  color: var(--color-charcoal);
}

.highlight-list .list-arrow {
  color: var(--color-terracotta);
}

.highlight-list .list-arrow svg {
  width: 20px;
  height: 20px;
}

.highlight-visual {
  display: none;
}

@media (min-width: 800px) {
  .highlight-visual {
    display: block;
  }
}

.visual-decoration {
  position: relative;
  aspect-ratio: 1;
  max-width: 400px;
  margin-left: auto;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--color-sage-light);
  opacity: 0.3;
  animation: pulse 4s ease-in-out infinite;
}

.deco-circle-1 {
  width: 100%;
  height: 100%;
  inset: 0;
}

.deco-circle-2 {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  animation-delay: -1s;
}

.deco-circle-3 {
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
  animation-delay: -2s;
  background: var(--color-sage-light);
  opacity: 0.2;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.5; }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: calc(var(--space-4xl) + var(--space-2xl)) 0;
  background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-dark) 100%);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.cta-content h2 {
  color: white;
  margin-bottom: var(--space-lg);
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

/* ============================================
   INTRO SECTION
   ============================================ */
.intro-section {
  padding: var(--space-3xl) 0 var(--space-xl);
}

.intro-content {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--space-lg);
}

.intro-content p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--color-warm-gray);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
  padding: var(--space-lg) 0;
  background: var(--color-cream-dark);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0;
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  color: var(--color-warm-gray-light);
}

.breadcrumbs a {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-warm-gray);
}

.breadcrumbs a:hover {
  color: var(--color-terracotta);
  text-decoration: none;
}

.breadcrumbs svg {
  width: 16px;
  height: 16px;
}

.breadcrumbs .current {
  color: var(--color-charcoal);
  font-weight: 500;
}

/* ============================================
   CATEGORY PAGE - Clean Editorial Style
   ============================================ */

.category-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Category Header - Simple & Clean */
.category-header {
  background: var(--color-sage);
  padding: var(--space-4xl) 0 var(--space-3xl);
  color: white;
}

.category-header .breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  margin-bottom: var(--space-xl);
}

.category-header .breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.category-header .breadcrumb-nav a:hover {
  color: white;
  text-decoration: none;
}

.category-header .breadcrumb-nav .divider {
  color: rgba(255, 255, 255, 0.4);
}

.category-header .breadcrumb-nav .current {
  color: white;
  font-weight: 600;
}

.category-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  color: white;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.category-header .lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
}

/* Category Content */
.category-content {
  flex: 1;
  padding: var(--space-4xl) 0;
  background: var(--color-cream);
}

/* Intro Block */
.intro-block {
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
  padding: var(--space-2xl);
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.intro-block > *:first-child {
  margin-top: 0;
}

.intro-block > *:last-child {
  margin-bottom: 0;
}

.intro-block p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-charcoal);
}

/* Card Grid */
.card-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card */
.card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  opacity: 0;
  animation: cardIn 0.4s ease forwards;
  animation-delay: calc(var(--i, 0) * 60ms);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-xl);
  color: inherit;
  text-decoration: none;
}

.card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-charcoal);
  line-height: 1.35;
  margin-bottom: var(--space-md);
  transition: color var(--transition-fast);
}

.card:hover h2 {
  color: var(--color-sage-dark);
}

.card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-warm-gray);
  flex: 1;
  margin-bottom: var(--space-lg);
}

.card .read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-terracotta);
  margin-top: auto;
}

.card .read-more svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.card:hover .read-more svg {
  transform: translateX(4px);
}

/* Page Navigation */
.page-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-charcoal);
  background: white;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  background: var(--color-sage);
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.nav-link svg {
  width: 18px;
  height: 18px;
}

.nav-info {
  font-size: 0.875rem;
  color: var(--color-warm-gray);
  font-weight: 500;
}

/* Category CTA */
.category-cta {
  background: var(--color-terracotta);
  padding: var(--space-3xl) 0;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.cta-text h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: white;
  margin-bottom: var(--space-sm);
}

.cta-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  background: white;
  color: var(--color-terracotta-dark);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.cta-button:hover {
  background: var(--color-cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-button svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.cta-button:hover svg {
  transform: translateX(4px);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-cream-dark);
}

.pagination-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.pagination-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-weight: 500;
  color: var(--color-charcoal);
  background: white;
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.pagination-link svg {
  width: 18px;
  height: 18px;
}

.pagination-link:hover:not(.disabled) {
  background: var(--color-terracotta);
  color: white;
  border-color: var(--color-terracotta);
  text-decoration: none;
}

.pagination-link.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.875rem;
  color: var(--color-warm-gray);
}

/* ============================================
   SINGLE ARTICLE
   ============================================ */
.single-article {
  padding-bottom: var(--space-4xl);
}

.article-header {
  padding: var(--space-2xl) 0;
  text-align: center;
  background: linear-gradient(180deg, var(--color-cream-dark) 0%, var(--color-cream) 100%);
}

.article-header .container {
  max-width: var(--content-max);
}

.single-article .article-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: var(--space-md);
}

.article-subtitle {
  font-size: 1.25rem;
  color: var(--color-warm-gray);
  margin-bottom: var(--space-lg);
}

.article-meta-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.9375rem;
  color: var(--color-warm-gray);
}

.meta-item svg {
  width: 18px;
  height: 18px;
}

.meta-item a {
  color: var(--color-terracotta);
  font-weight: 500;
}

/* Table of Contents */
.toc-wrapper {
  padding: var(--space-lg) 0;
  background: var(--color-cream);
}

.toc-wrapper .container {
  max-width: var(--content-max);
}

.toc-details {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.toc-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  color: var(--color-charcoal);
  cursor: pointer;
  list-style: none;
}

.toc-toggle::-webkit-details-marker {
  display: none;
}

.toc-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--color-warm-gray);
}

.toc-toggle .chevron {
  margin-left: auto;
  transition: transform var(--transition-fast);
}

.toc-details[open] .toc-toggle .chevron {
  transform: rotate(180deg);
}

.toc-content {
  padding: 0 var(--space-lg) var(--space-lg);
}

.toc-content nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-content li {
  margin: 0;
  padding: var(--space-xs) 0;
}

.toc-content a {
  font-size: 0.9375rem;
  color: var(--color-charcoal-light);
}

.toc-content a:hover {
  color: var(--color-terracotta);
}

.toc-content ul ul {
  margin-left: var(--space-lg);
  padding-left: var(--space-md);
  border-left: 2px solid var(--color-cream-dark);
}

/* Article Body */
.article-body {
  padding-top: var(--space-2xl);
}

.article-body .container {
  max-width: calc(var(--content-max) + var(--space-xl) * 2);
}

.content-wrapper {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* Content Typography */
.content-wrapper h2 {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-cream-dark);
}

.content-wrapper h3 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.content-wrapper h4,
.content-wrapper h5,
.content-wrapper h6 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.content-wrapper p {
  margin-bottom: var(--space-lg);
}

.content-wrapper ul,
.content-wrapper ol {
  margin: 0 0 var(--space-lg) var(--space-xl);
  padding: 0;
}

.content-wrapper li {
  margin-bottom: var(--space-sm);
}

.content-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: var(--space-xl) 0;
}

.content-wrapper blockquote {
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background: var(--color-cream-dark);
  border-left: 4px solid var(--color-terracotta);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
}

.content-wrapper blockquote p:last-child {
  margin-bottom: 0;
}

/* Code */
.content-wrapper code {
  padding: 0.2em 0.4em;
  font-size: 0.875em;
  background: var(--color-cream-dark);
  border-radius: var(--radius-sm);
  color: var(--color-terracotta-dark);
}

.content-wrapper pre {
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background: var(--color-charcoal);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.content-wrapper pre code {
  padding: 0;
  background: none;
  color: var(--color-cream);
  font-size: 0.875rem;
}

/* ============================================
   ENHANCED TABLES - Editorial Style
   ============================================ */
.content-wrapper table,
.intro-block table {
  width: 100%;
  margin: var(--space-2xl) 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.content-wrapper thead,
.intro-block thead {
  background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-sage-dark) 100%);
}

.content-wrapper th,
.intro-block th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: white;
  border-bottom: none;
}

.content-wrapper th:first-child,
.intro-block th:first-child {
  border-top-left-radius: var(--radius-lg);
}

.content-wrapper th:last-child,
.intro-block th:last-child {
  border-top-right-radius: var(--radius-lg);
}

.content-wrapper td,
.intro-block td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--color-cream-dark);
  color: var(--color-charcoal);
  vertical-align: top;
  transition: background-color var(--transition-fast);
}

.content-wrapper tbody tr:last-child td,
.intro-block tbody tr:last-child td {
  border-bottom: none;
}

.content-wrapper tbody tr:last-child td:first-child,
.intro-block tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius-lg);
}

.content-wrapper tbody tr:last-child td:last-child,
.intro-block tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius-lg);
}

.content-wrapper tbody tr:nth-child(even),
.intro-block tbody tr:nth-child(even) {
  background: var(--color-cream);
}

.content-wrapper tbody tr:hover td,
.intro-block tbody tr:hover td {
  background: rgba(124, 154, 124, 0.08);
}

/* Table cell with bold/strong content styling */
.content-wrapper td strong,
.content-wrapper td b,
.intro-block td strong,
.intro-block td b {
  color: var(--color-charcoal);
  font-weight: 600;
}

/* First column emphasis for label-style tables */
.content-wrapper td:first-child,
.intro-block td:first-child {
  font-weight: 500;
  color: var(--color-charcoal);
}

/* Responsive table wrapper */
@media (max-width: 640px) {
  .content-wrapper table,
  .intro-block table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: var(--space-xl) calc(-1 * var(--space-lg));
    width: calc(100% + var(--space-xl) * 2);
    border-radius: 0;
    box-shadow: none;
    border-top: 3px solid var(--color-sage);
    border-bottom: 3px solid var(--color-sage);
  }

  .content-wrapper th,
  .content-wrapper td,
  .intro-block th,
  .intro-block td {
    padding: var(--space-sm) var(--space-md);
    white-space: nowrap;
  }

  .content-wrapper th:first-child,
  .content-wrapper th:last-child,
  .content-wrapper tbody tr:last-child td:first-child,
  .content-wrapper tbody tr:last-child td:last-child,
  .intro-block th:first-child,
  .intro-block th:last-child,
  .intro-block tbody tr:last-child td:first-child,
  .intro-block tbody tr:last-child td:last-child {
    border-radius: 0;
  }
}

/* ============================================
   ENHANCED CONTENT TYPOGRAPHY
   ============================================ */

/* Improved paragraph flow */
.content-wrapper > p:first-of-type,
.intro-block > p:first-of-type {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--color-charcoal);
}

.content-wrapper > p:first-of-type::first-letter,
.intro-block > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 500;
  float: left;
  line-height: 1;
  margin-right: var(--space-sm);
  margin-top: 0.1em;
  color: var(--color-terracotta);
}

/* Better list styling */
.content-wrapper ul,
.content-wrapper ol,
.intro-block ul,
.intro-block ol {
  margin: var(--space-lg) 0 var(--space-xl);
  padding-left: 0;
  list-style: none;
}

.content-wrapper ul li,
.content-wrapper ol li,
.intro-block ul li,
.intro-block ol li {
  position: relative;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.content-wrapper ul li::before,
.intro-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: var(--color-sage);
  border-radius: 50%;
}

.content-wrapper ol,
.intro-block ol {
  counter-reset: list-counter;
}

.content-wrapper ol li,
.intro-block ol li {
  counter-increment: list-counter;
}

.content-wrapper ol li::before,
.intro-block ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5em;
  height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  background: var(--color-terracotta);
  border-radius: 50%;
}

/* Nested lists */
.content-wrapper ul ul,
.content-wrapper ol ol,
.content-wrapper ul ol,
.content-wrapper ol ul,
.intro-block ul ul,
.intro-block ol ol,
.intro-block ul ol,
.intro-block ol ul {
  margin: var(--space-sm) 0 var(--space-sm);
  padding-left: var(--space-md);
}

.content-wrapper ul ul li::before,
.intro-block ul ul li::before {
  width: 6px;
  height: 6px;
  background: transparent;
  border: 2px solid var(--color-sage-light);
}

/* Enhanced blockquotes */
.content-wrapper blockquote,
.intro-block blockquote {
  position: relative;
  margin: var(--space-2xl) 0;
  padding: var(--space-xl) var(--space-xl) var(--space-xl) var(--space-2xl);
  background: linear-gradient(135deg, var(--color-cream-dark) 0%, rgba(245, 240, 232, 0.5) 100%);
  border-left: none;
  border-radius: var(--radius-lg);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-charcoal-light);
}

.content-wrapper blockquote::before,
.intro-block blockquote::before {
  content: '"';
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-terracotta);
  opacity: 0.3;
}

.content-wrapper blockquote p,
.intro-block blockquote p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.content-wrapper blockquote p + p,
.intro-block blockquote p + p {
  margin-top: var(--space-md);
}

/* Enhanced headings with visual markers */
.content-wrapper h2,
.intro-block h2 {
  position: relative;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  padding-left: var(--space-lg);
  border-bottom: 2px solid var(--color-cream-dark);
}

.content-wrapper h2::before,
.intro-block h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: calc(var(--space-md) + 2px);
  width: 4px;
  background: linear-gradient(180deg, var(--color-terracotta) 0%, var(--color-terracotta-light) 100%);
  border-radius: 2px;
}

.content-wrapper h3,
.intro-block h3 {
  position: relative;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
  color: var(--color-sage-dark);
}

.content-wrapper h3::before,
.intro-block h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 3px;
  background: var(--color-sage);
  border-radius: 2px;
}

/* Better horizontal rule */
.content-wrapper hr,
.intro-block hr {
  margin: var(--space-3xl) auto;
  border: none;
  height: 1px;
  max-width: 200px;
  background: linear-gradient(90deg, transparent 0%, var(--color-cream-dark) 20%, var(--color-terracotta-light) 50%, var(--color-cream-dark) 80%, transparent 100%);
}

/* Enhanced inline code */
.content-wrapper code,
.intro-block code {
  padding: 0.15em 0.5em;
  font-size: 0.875em;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', Consolas, monospace;
  background: var(--color-cream-dark);
  border: 1px solid rgba(196, 112, 74, 0.2);
  border-radius: var(--radius-sm);
  color: var(--color-terracotta-dark);
}

/* Enhanced code blocks */
.content-wrapper pre,
.intro-block pre {
  position: relative;
  margin: var(--space-2xl) 0;
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--color-charcoal) 0%, #1a1d1e 100%);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-lg);
}

.content-wrapper pre::before,
.intro-block pre::before {
  content: '';
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  display: flex;
  gap: 6px;
}

.content-wrapper pre code,
.intro-block pre code {
  padding: 0;
  background: none;
  border: none;
  color: #e8e8e8;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Better image styling */
.content-wrapper img,
.intro-block img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: var(--space-2xl) 0;
  box-shadow: var(--shadow-lg);
}

.content-wrapper figure,
.intro-block figure {
  margin: var(--space-2xl) 0;
}

.content-wrapper figure img,
.intro-block figure img {
  margin: 0;
}

.content-wrapper figcaption,
.intro-block figcaption {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--color-warm-gray);
  text-align: center;
}

/* Enhanced links in content */
.content-wrapper p a,
.content-wrapper li a,
.intro-block p a,
.intro-block li a {
  color: var(--color-terracotta);
  text-decoration: underline;
  text-decoration-color: rgba(196, 112, 74, 0.3);
  text-underline-offset: 3px;
  transition: all var(--transition-fast);
}

.content-wrapper p a:hover,
.content-wrapper li a:hover,
.intro-block p a:hover,
.intro-block li a:hover {
  color: var(--color-terracotta-dark);
  text-decoration-color: var(--color-terracotta);
}

/* Footnotes styling */
.content-wrapper .footnotes,
.intro-block .footnotes {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--color-cream-dark);
  font-size: 0.875rem;
  color: var(--color-warm-gray);
}

.content-wrapper .footnotes ol {
  margin-left: var(--space-md);
}

.content-wrapper .footnotes li {
  margin-bottom: var(--space-sm);
}

.content-wrapper .footnotes li::before {
  width: 1.25em;
  height: 1.25em;
  font-size: 0.75rem;
  background: var(--color-sage-light);
}

/* Footnote reference links */
.content-wrapper sup a,
.content-wrapper a[href^="#fn"] {
  font-size: 0.75em;
  color: var(--color-sage);
  text-decoration: none;
  vertical-align: super;
  font-weight: 600;
}

.content-wrapper sup a:hover,
.content-wrapper a[href^="#fn"]:hover {
  color: var(--color-terracotta);
}

/* Definition lists */
.content-wrapper dl {
  margin: var(--space-xl) 0;
}

.content-wrapper dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--color-charcoal);
  margin-top: var(--space-lg);
}

.content-wrapper dd {
  margin: var(--space-sm) 0 var(--space-md) var(--space-lg);
  padding-left: var(--space-md);
  border-left: 2px solid var(--color-cream-dark);
  color: var(--color-charcoal-light);
}

/* Abbreviations */
.content-wrapper abbr[title] {
  text-decoration: underline dotted var(--color-warm-gray-light);
  cursor: help;
}

/* Mark/highlight */
.content-wrapper mark {
  background: linear-gradient(120deg, rgba(212, 162, 83, 0.2) 0%, rgba(212, 162, 83, 0.35) 100%);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

/* Feedback Notice */
.feedback-notice {
  display: flex;
  gap: var(--space-md);
  margin: var(--space-3xl) 0;
  padding: var(--space-lg);
  background: var(--color-cream-dark);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-sage);
}

.feedback-notice .notice-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius-md);
  color: var(--color-sage);
}

.feedback-notice .notice-icon svg {
  width: 24px;
  height: 24px;
}

.feedback-notice .notice-content strong {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--color-charcoal);
}

.feedback-notice .notice-content p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-warm-gray);
}

/* Author Bio */
.author-bio {
  display: flex;
  gap: var(--space-lg);
  margin: var(--space-3xl) 0;
  padding: var(--space-xl);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.bio-avatar {
  flex-shrink: 0;
}

.bio-avatar img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--color-terracotta);
}

.bio-content {
  flex: 1;
}

.bio-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-warm-gray);
}

.bio-name {
  font-size: 1.25rem;
  margin: var(--space-xs) 0 var(--space-sm);
}

.bio-name a {
  color: var(--color-charcoal);
}

.bio-text {
  font-size: 0.9375rem;
  color: var(--color-warm-gray);
  margin-bottom: var(--space-md);
}

.bio-contact {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-terracotta);
}

.bio-contact svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 600px) {
  .author-bio {
    flex-direction: column;
    text-align: center;
  }

  .bio-avatar {
    margin: 0 auto;
  }
}

/* Related Posts */
.related-posts {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-cream-dark);
}

.related-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
}

.related-title svg {
  width: 24px;
  height: 24px;
  color: var(--color-terracotta);
}

.related-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-cream-dark);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.related-card:hover {
  background: var(--color-cream);
  text-decoration: none;
  transform: translateX(4px);
}

.related-card-title {
  font-weight: 500;
  color: var(--color-charcoal);
}

.related-card-arrow {
  color: var(--color-terracotta);
}

.related-card-arrow svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   NOTICES (Shortcode)
   ============================================ */
.notices {
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid;
}

.notices p:last-child {
  margin-bottom: 0;
}

.notices.yellow {
  background: #fffbeb;
  border-color: var(--color-warning);
}

.notices.red {
  background: #fef2f2;
  border-color: var(--color-danger);
}

.notices.blue {
  background: #eff6ff;
  border-color: var(--color-info);
}

.notices.green {
  background: #f0fdf4;
  border-color: var(--color-success);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  position: relative;
  background: var(--color-charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--space-4xl);
}

.footer-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.footer-top {
  display: grid;
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 700px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: white;
  text-decoration: none;
  margin-bottom: var(--space-md);
}

.footer-logo:hover {
  text-decoration: none;
}

.footer-logo .logo-icon {
  width: 32px;
  height: 32px;
  color: var(--color-terracotta-light);
}

.footer-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}

.footer-tagline {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-links h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8125rem;
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
}

.disclaimer {
  color: rgba(255, 255, 255, 0.4);
}

.footer-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  transform: translateY(-99%);
  overflow: hidden;
  pointer-events: none;
  color: var(--color-charcoal);
}

.footer-decoration svg {
  width: 100%;
  height: 100%;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 600px) {
  :root {
    --space-4xl: 4rem;
    --space-3xl: 3rem;
  }

  .hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
  }

  .hero-visual {
    display: none;
  }
}

/* ============================================
   PAGE CONTENT SECTION
   ============================================ */
.page-content {
  padding: var(--space-xl) 0;
}

.page-content .content-wrapper {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .site-header,
  .site-footer,
  .mobile-menu,
  .bg-decoration,
  .toc-wrapper,
  .feedback-notice,
  .related-posts {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .article-body {
    padding: 0;
  }
}
