/* ==========================================================================
   MATA BERGERAK - Interactive Eye Wellness Journal
   Design System & Layout Stylesheet
   Bahasa Indonesia / id-ID
   ========================================================================== */

:root {
  /* Warm Paper & Navy Color Palette */
  --bg-primary: #FAF7F2;
  --bg-surface: #FFFFFF;
  --bg-surface-soft: #F4EFE6;
  --bg-card: #FFFFFF;
  
  --text-main: #0F1D36;
  --text-muted: #4B5565;
  --text-light: #6E7C91;
  --border-subtle: #E8E2D8;
  --border-strong: #D5CCC0;
  
  /* Primary & Secondary Brand Accents */
  --teal-primary: #0D9488;
  --teal-dark: #0F766E;
  --teal-light: #CCFBF1;
  --teal-soft: #E6FFFA;
  
  --coral-accent: #E76F51;
  --coral-soft: #FFE8E2;
  --coral-dark: #C54E33;
  
  --amber-accent: #D97706;
  --amber-soft: #FEF3C7;
  
  --rose-danger: #BE123C;
  --rose-soft: #FFE4E6;
  
  /* Typography & Sizing */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
  --base-font-size: 16px;
  --line-height-body: 1.65;
  
  /* Elevation Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 29, 54, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 29, 54, 0.07);
  --shadow-lg: 0 12px 28px rgba(15, 29, 54, 0.09);
  --shadow-card: 0 2px 8px rgba(15, 29, 54, 0.04), 0 1px 2px rgba(15, 29, 54, 0.02);
  
  /* Layout */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: var(--base-font-size);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-primary);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: var(--line-height-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Skip link for keyboard accessibility */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--teal-primary);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 15px;
}

/* Reading Progress Bar */
#reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal-primary), var(--coral-accent));
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* Accessibility resizer utility classes */
body.font-large {
  --base-font-size: 18px;
}
body.font-xlarge {
  --base-font-size: 20px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

a {
  color: var(--teal-primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Navigation & Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 500;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.1;
}
.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  text-decoration: none;
}
.nav-link:hover {
  color: var(--teal-dark);
  background: var(--bg-surface-soft);
  text-decoration: none;
}
.nav-link.active {
  color: var(--teal-primary);
  background: var(--teal-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Font Resizer Widget in Nav */
.font-resizer {
  display: flex;
  align-items: center;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 2px 4px;
}
.font-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}
.font-btn:hover, .font-btn:focus-visible {
  color: var(--teal-dark);
  background: var(--bg-surface);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--text-main);
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  flex-direction: column;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 24px;
  gap: 8px;
}
.mobile-drawer.open {
  display: flex;
}
.mobile-nav-link {
  padding: 12px 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-sm);
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--teal-soft);
  color: var(--teal-dark);
  text-decoration: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, rgba(230, 255, 250, 0.4) 0%, rgba(250, 247, 242, 0) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.badge-journal {
  background: var(--coral-soft);
  color: var(--coral-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.badge-evidence {
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.hero-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.hero-intro {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: var(--teal-primary);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: var(--teal-dark);
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg-surface-soft);
  color: var(--teal-dark);
  text-decoration: none;
  border-color: var(--teal-primary);
}

.hero-visual {
  position: relative;
}
.hero-image-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.hero-img-caption {
  padding: 10px 6px 4px;
  font-size: 0.82rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Section Headers & Generic Section Layout
   ========================================================================== */
.section {
  padding: 64px 0;
}
.section-alt {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 40px;
  max-width: 720px;
}
.section-kicker {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-primary);
  margin-bottom: 6px;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Feature Grids & Cards
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-primary);
}

.card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.card-icon-teal { background: var(--teal-soft); color: var(--teal-primary); }
.card-icon-coral { background: var(--coral-soft); color: var(--coral-accent); }
.card-icon-amber { background: var(--amber-soft); color: var(--amber-accent); }

.card-title {
  font-size: 1.22rem;
  font-weight: 750;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.35;
}
.card-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-action {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--teal-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Article Cards (Feed & Archive)
   ========================================================================== */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-primary);
  text-decoration: none;
}

.article-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background: var(--bg-surface-soft);
  overflow: hidden;
}
.article-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .article-card-thumb {
  transform: scale(1.04);
}

.article-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.category-tag-teal { background: var(--teal-soft); color: var(--teal-dark); }
.category-tag-coral { background: var(--coral-soft); color: var(--coral-dark); }
.category-tag-amber { background: var(--amber-soft); color: #92400E; }
.category-tag-emerald { background: #D1FAE5; color: #065F46; }
.category-tag-rose { background: var(--rose-soft); color: var(--rose-danger); }

.article-card-title {
  font-size: 1.18rem;
  font-weight: 750;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 10px;
}
.article-card:hover .article-card-title {
  color: var(--teal-primary);
}

.article-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--teal-primary);
  font-weight: 700;
}

/* ==========================================================================
   Interactive 20-20-20 Break Timer Widget
   ========================================================================== */
.timer-widget {
  background: var(--bg-surface);
  border: 2px solid var(--teal-primary);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  margin: 30px 0;
}

.timer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: center;
}

.timer-display-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.timer-circle-wrap {
  position: relative;
  width: 220px;
  height: 220px;
}
.timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.timer-circle-bg {
  fill: none;
  stroke: var(--bg-surface-soft);
  stroke-width: 12;
}
.timer-circle-progress {
  fill: none;
  stroke: var(--teal-primary);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 565;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.8s ease;
}

.timer-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.timer-digits {
  font-size: 2.8rem;
  font-weight: 850;
  color: var(--text-main);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.timer-state-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.timer-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.timer-btn {
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.timer-btn-start {
  background: var(--teal-primary);
  color: #FFFFFF;
}
.timer-btn-start:hover {
  background: var(--teal-dark);
}
.timer-btn-reset {
  background: var(--bg-surface-soft);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}
.timer-btn-reset:hover {
  color: var(--text-main);
  background: var(--border-subtle);
}

.timer-sound-toggle {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.timer-instruction-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.timer-instruction-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}
.timer-instruction-desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.timer-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.timer-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.timer-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Interactive Eye Movement Visualizer Widget
   ========================================================================== */
.exercise-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin: 32px 0;
}

.exercise-canvas-box {
  position: relative;
  width: 100%;
  height: 300px;
  background: radial-gradient(circle at center, #FFFFFF 0%, #F5F1E9 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tracking-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--coral-accent);
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(231, 111, 81, 0.6);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.05s linear;
}

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

.exercise-modes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mode-btn {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.mode-btn.active, .mode-btn:hover {
  background: var(--teal-primary);
  color: #FFFFFF;
  border-color: var(--teal-primary);
}

/* ==========================================================================
   Search & Filter Component (Pustaka Artikel)
   ========================================================================== */
.search-filter-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
}

.search-input-wrap {
  position: relative;
  margin-bottom: 20px;
}
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-light);
  pointer-events: none;
}
.search-input {
  width: 100%;
  height: 52px;
  padding: 0 20px 0 52px;
  font-size: 1.05rem;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--bg-primary);
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}
.search-input:focus {
  border-color: var(--teal-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-pill {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-soft);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}
.filter-pill:hover, .filter-pill.active {
  background: var(--teal-primary);
  color: #FFFFFF;
  border-color: var(--teal-primary);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  display: none;
}
.empty-state-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--text-light);
}

/* ==========================================================================
   Article Detail Layout & Typography
   ========================================================================== */
.article-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumb-separator {
  color: var(--border-strong);
}

.article-headline {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 18px;
}

.article-hero-img-wrap {
  margin: 32px 0 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.article-hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.article-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

/* Sticky Table of Contents */
.toc-sidebar {
  position: sticky;
  top: 100px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}
.toc-title {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 14px;
}
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toc-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
  padding: 4px 0 4px 10px;
  border-left: 2px solid transparent;
  text-decoration: none;
  transition: var(--transition);
}
.toc-link:hover {
  color: var(--teal-primary);
  border-left-color: var(--teal-light);
  text-decoration: none;
}
.toc-link.active {
  color: var(--teal-primary);
  font-weight: 700;
  border-left-color: var(--teal-primary);
}

/* Article Body Content */
.article-body {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-main);
}
.article-body p {
  margin-bottom: 22px;
}
.article-body p.lead {
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 28px;
}
.article-body h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 44px 0 18px;
  line-height: 1.3;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}
.article-body h3 {
  font-size: 1.3rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 28px 0 12px;
}
.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-body li {
  line-height: 1.7;
}

/* Article Custom Callout Boxes */
.note-box {
  background: var(--bg-surface-soft);
  border-left: 4px solid var(--teal-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 0.98rem;
  line-height: 1.65;
}
.quote-box {
  background: var(--teal-soft);
  border-left: 4px solid var(--teal-primary);
  padding: 20px 24px;
  margin: 28px 0;
  font-style: italic;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.step-guide {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}
.step-guide h3 {
  margin-top: 0;
  color: var(--teal-dark);
}
.warning-box {
  background: #FFFBEB;
  border-left: 4px solid var(--amber-accent);
  padding: 18px 22px;
  margin: 28px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.danger-box {
  background: var(--rose-soft);
  border-left: 4px solid var(--rose-danger);
  padding: 22px 24px;
  margin: 28px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.danger-box h3 {
  color: var(--rose-danger);
  margin-top: 0;
}

.myth-fact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
}
.myth-badge {
  display: inline-block;
  background: var(--rose-soft);
  color: var(--rose-danger);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
.fact-badge {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin: 14px 0 8px;
}

.article-figure {
  margin: 32px 0;
  text-align: center;
}
.article-figure img {
  border-radius: var(--radius-md);
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}
.article-figure figcaption {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 10px;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.94rem;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.data-table th, .data-table td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.data-table th {
  background: var(--bg-surface-soft);
  font-weight: 750;
  color: var(--text-main);
}

/* Sources & Disclaimer Boxes at end of article */
.sources-card {
  background: var(--bg-surface-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 40px 0 24px;
}
.sources-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}
.sources-list {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sources-item a {
  font-size: 0.88rem;
  word-break: break-word;
}

.medical-disclaimer-box {
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 32px 0;
}
.medical-disclaimer-title {
  color: var(--rose-danger);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.medical-disclaimer-text {
  font-size: 0.88rem;
  color: #881337;
  line-height: 1.6;
}

/* ==========================================================================
   Legal & Informational Pages Layout
   ========================================================================== */
.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding: 48px 0;
}
.legal-sidebar {
  position: sticky;
  top: 100px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}
.legal-nav-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.legal-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.legal-nav-link:hover {
  background: var(--bg-surface-soft);
  color: var(--teal-dark);
}
.legal-nav-link.active {
  background: var(--teal-soft);
  color: var(--teal-primary);
}

.badge-status {
  display: inline-block;
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0B1527;
  color: #E2E8F0;
  padding: 64px 0 32px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-logo-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFFFFF;
}
.footer-brand-desc {
  font-size: 0.9rem;
  color: #94A3B8;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38BDF8;
  margin-bottom: 16px;
}
.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-link {
  font-size: 0.88rem;
  color: #CBD5E1;
  text-decoration: none;
}
.footer-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #64748B;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .article-grid, .legal-layout {
    grid-template-columns: 1fr;
  }
  .toc-sidebar, .legal-sidebar {
    position: static;
    margin-bottom: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .timer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .timer-display-box {
    margin: 0 auto;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-img {
    height: 260px;
  }
  .timer-widget {
    padding: 24px;
  }
}
