/* ================================================================
   ShockwaveTherapy.net — Design System
   Clean, trustworthy medical authority site.
   ================================================================ */

/* ── CSS Custom Properties ──────────────────────────────────────── */
:root {
  /* Colors */
  --color-primary: #1a365d;        /* Deep navy */
  --color-primary-light: #2a4a7f;
  --color-primary-dark: #0f2340;
  --color-accent: #3182ce;         /* Medium blue for links */
  --color-accent-light: #ebf4ff;   /* Very light blue background */
  --color-cta: #2f855a;            /* Green for CTAs */
  --color-cta-hover: #276749;
  --color-cta-light: #f0fff4;
  --color-text: #1a202c;           /* Near-black body text */
  --color-text-muted: #4a5568;     /* Gray for secondary text */
  --color-text-light: #718096;     /* Lighter gray */
  --color-border: #e2e8f0;         /* Light gray borders */
  --color-border-dark: #cbd5e0;
  --color-bg: #ffffff;
  --color-bg-alt: #f7fafc;         /* Subtle off-white sections */
  --color-bg-dark: #1a365d;        /* Dark sections */
  --color-warning: #c53030;

  /* Typography */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo,
    monospace;
  --text-base: 1.125rem;           /* 18px */
  --text-sm: 0.875rem;             /* 14px */
  --text-xs: 0.75rem;              /* 12px */
  --text-lg: 1.25rem;              /* 20px */
  --text-xl: 1.5rem;               /* 24px */
  --text-2xl: 2rem;                /* 32px */
  --text-3xl: 2.5rem;              /* 40px */
  --line-height: 1.7;
  --line-height-tight: 1.3;

  /* Spacing */
  --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 */
  --max-width: 1200px;
  --max-width-narrow: 800px;

  /* Borders & Shadows */
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition: 150ms ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary);
}

/* ── Skip Link ──────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-md);
}

/* ── Layout ─────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

/* ── Typography ─────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  line-height: var(--line-height-tight);
  font-weight: 700;
}

h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: var(--text-lg);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

/* Prose — article/content styling */
.prose {
  max-width: 680px;
}

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

.prose ul,
.prose ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

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

.prose blockquote {
  border-left: 4px solid var(--color-accent);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  background: var(--color-accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-text-muted);
  font-style: italic;
}

.prose code {
  font-family: var(--font-mono);
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

.prose pre {
  background: var(--color-primary-dark);
  color: #e2e8f0;
  padding: var(--space-lg);
  border-radius: var(--radius);
  overflow-x: auto;
  margin: var(--space-xl) 0;
}

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-xl) 0;
}

.prose th,
.prose td {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  text-align: left;
}

.prose th {
  background: var(--color-bg-alt);
  font-weight: 600;
  color: var(--color-primary);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-3xl) 0;
}

/* ── Hero & Post Images ────────────────────────────────────────── */
.hero-image, .post-image {
  margin: 0 auto var(--space-xl);
  max-width: var(--max-width-narrow);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.section-heading {
  text-align: center;
  margin-bottom: var(--space-2xl);
  font-size: var(--text-2xl);
}

.section-intro {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

/* Key Facts Strip — self-contained component */
.key-facts {
  background: var(--color-primary) !important;
  padding: var(--space-2xl) 0;
}

.key-facts .facts-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: var(--space-xl);
  text-align: center;
  color: #fff;
}

.key-facts .fact-card .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff !important;
  line-height: 1;
  margin-bottom: var(--space-sm);
  flex-shrink: initial;
}

.key-facts .fact-card .stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8) !important;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .key-facts .facts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-lg);
  }
}

@media (max-width: 375px) {
  .key-facts .facts-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .key-facts .fact-card .stat-number {
    font-size: 2rem;
  }
}

.latest-blog {
  padding: var(--space-3xl) 0;
}
.hero-image img, .post-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
    box-shadow var(--transition);
  border: 2px solid transparent;
  line-height: 1.4;
}

.btn--primary {
  background-color: var(--color-cta);
  color: #fff;
  border-color: var(--color-cta);
}

.btn--primary:hover {
  background-color: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  color: #fff;
}

.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background-color: var(--color-primary);
  color: #fff;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: var(--text-lg);
}

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.site-logo {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo:hover {
  color: var(--color-primary);
}

.logo-dot {
  color: var(--color-accent);
}

/* Nav */
.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-xs);
  align-items: center;
}

.nav-item > a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background-color var(--transition), color var(--transition);
}

.nav-item > a:hover,
.nav-item > a[aria-current="page"] {
  color: var(--color-primary);
  background-color: var(--color-accent-light);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  list-style: none;
  padding: var(--space-sm) 0;
  z-index: 200;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: background-color var(--transition);
}

.dropdown li a:hover {
  background-color: var(--color-accent-light);
  color: var(--color-primary);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Breadcrumbs ────────────────────────────────────────────────── */
.breadcrumbs {
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: var(--space-xs);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: var(--space-xs);
  color: var(--color-border-dark);
}

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

.breadcrumbs a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-text-muted);
}

/* ── Hero Sections ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: var(--space-3xl) 0;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: var(--text-3xl);
  max-width: 800px;
  margin: 0 auto var(--space-md);
}

.hero-subtitle {
  font-size: var(--text-lg);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: var(--line-height);
}

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

.hero .btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero .btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

/* Page hero (non-homepage) */
.page-hero,
.condition-hero,
.geo-hero,
.blog-hero,
.directory-hero {
  background: var(--color-accent-light);
  padding: var(--space-3xl) 0;
  margin-bottom: var(--space-2xl);
}

.page-hero h1,
.condition-hero h1,
.geo-hero h1,
.blog-hero h1,
.directory-hero h1 {
  margin-bottom: var(--space-sm);
}

.condition-subtitle,
.geo-subtitle,
.blog-subtitle,
.directory-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
}

/* ── Feature Cards ──────────────────────────────────────────────── */
.features {
  padding: var(--space-3xl) 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card h2,
.feature-card h3 {
  font-size: var(--text-xl);
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  font-size: var(--text-base);
}

.feature-card a {
  font-weight: 600;
  text-decoration: none;
}

.feature-card a::after {
  content: " \2192";
}

/* ── Intro / Content Sections ───────────────────────────────────── */
.intro-section {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-alt);
}

.intro-section h2 {
  margin-top: 0;
}

.intro-section p {
  margin-bottom: var(--space-lg);
  color: var(--color-text-muted);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.intro-content {
  max-width: 600px;
}

.intro-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.intro-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* ── Condition Grid & Cards ─────────────────────────────────────── */
.featured-conditions,
.conditions-index {
  padding: var(--space-3xl) 0;
}

.featured-conditions h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: var(--space-xl);
}

.condition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.condition-card {
  display: block;
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: box-shadow var(--transition), border-color var(--transition),
    transform var(--transition);
}

.condition-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.condition-card h2,
.condition-card h3 {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-sm);
  color: var(--color-primary);
}

.condition-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: 0;
  line-height: var(--line-height);
}

.section-cta {
  text-align: center;
  margin-top: var(--space-xl);
}

.section-cta a {
  font-weight: 600;
}

/* ── CTA Box ────────────────────────────────────────────────────── */
.cta-section {
  padding: var(--space-3xl) 0;
}

.cta-box {
  background: var(--color-cta-light);
  border: 1px solid #c6f6d5;
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-xl);
}

.cta-box--centered {
  text-align: center;
}

.cta-box h2 {
  margin-top: 0;
  color: var(--color-cta);
}

.cta-box p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 500px;
}

.cta-box--centered p {
  margin-left: auto;
  margin-right: auto;
}

.provider-cta {
  margin: var(--space-3xl) 0;
}

/* ── Condition Page ─────────────────────────────────────────────── */
.condition-layout {
  position: relative;
}

/* Table of Contents */
.toc {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.toc-title {
  font-size: var(--text-base);
  margin: 0 0 var(--space-sm);
  color: var(--color-primary);
}

.toc-list {
  list-style: none;
  padding: 0;
}

.toc-list li {
  margin-bottom: var(--space-xs);
}

.toc-list a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color 0.2s, font-weight 0.2s;
}

.toc-list a:hover {
  color: var(--color-accent);
}

.toc-list a.active {
  color: var(--color-accent);
  font-weight: 600;
}

/* ── FAQ Section ────────────────────────────────────────────────── */
.faq-section {
  margin: var(--space-3xl) 0;
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.faq-section h2 {
  margin-top: 0;
}

.faq-list {
  margin-top: var(--space-lg);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--color-accent);
}

.faq-question {
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition);
}

.faq-question:hover {
  background-color: var(--color-bg-alt);
}

.faq-question::after {
  content: "+";
  font-size: var(--text-xl);
  color: var(--color-accent);
  flex-shrink: 0;
  margin-left: var(--space-md);
  transition: transform var(--transition);
}

.faq-item[open] .faq-question::after {
  content: "\2212";
}

/* Remove default marker */
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text-muted);
}

.faq-answer p {
  margin-bottom: var(--space-sm);
}

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

/* ── Blog Post ──────────────────────────────────────────────────── */
.blog-post {
  padding-bottom: var(--space-3xl);
}

.post-header {
  padding: var(--space-3xl) 0 var(--space-xl);
}

.post-header h1 {
  margin-bottom: 0;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  color: var(--color-text-light);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
}

.post-content {
  margin-bottom: var(--space-3xl);
}

/* Author Box */
.author-box {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2xl);
  align-items: center;
}

.author-name {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.author-bio {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--line-height);
}

/* ── Blog Filters ──────────────────────────────────────────────── */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ── Blog Index ─────────────────────────────────────────────────── */
.blog-index {
  padding-bottom: var(--space-3xl);
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.post-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.post-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-border-dark);
}

.post-card-image {
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 420;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.03);
}

.post-card-content {
  padding: var(--space-xl);
}

.post-card h2,
.post-card h3 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

.post-card h2 a,
.post-card h3 a {
  color: var(--color-primary);
  text-decoration: none;
}

.post-card h2 a:hover,
.post-card h3 a:hover {
  color: var(--color-accent);
}

.post-excerpt {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.read-more {
  font-weight: 600;
  font-size: var(--text-sm);
}

.read-more::after {
  content: " \2192";
}

/* Post Cards grid (used in related posts) */
.post-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.related-posts {
  margin: var(--space-3xl) 0;
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.related-posts h2 {
  margin-top: 0;
}

/* ── Tags / Pills ───────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--color-accent-light);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-category.tag {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

/* ── Provider Listings ──────────────────────────────────────────── */
.provider-listings {
  margin: var(--space-3xl) 0;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.provider-card {
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition);
}

.provider-card:hover {
  box-shadow: var(--shadow-sm);
}

.provider-card h3 {
  margin: 0 0 var(--space-sm);
  color: var(--color-primary);
}

.provider-specialty {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
}

.provider-address,
.provider-phone {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.provider-phone a {
  color: var(--color-accent);
}

.provider-conditions {
  margin: var(--space-md) 0;
  font-size: var(--text-sm);
}

.provider-conditions .tag {
  margin-right: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.no-providers {
  padding: var(--space-2xl);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--color-text-muted);
}

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

/* ── Directory Page ─────────────────────────────────────────────── */
.directory-page {
  padding-bottom: var(--space-3xl);
}

.claim-cta {
  background: var(--color-accent-light);
  padding: var(--space-lg);
  border-radius: var(--radius);
  margin-bottom: var(--space-2xl);
  text-align: center;
}

.claim-cta p {
  margin: 0;
  color: var(--color-text-muted);
}

.browse-states {
  margin-bottom: var(--space-3xl);
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.state-group h3 {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-lg);
  color: var(--color-primary);
}

.state-group ul {
  list-style: none;
}

.state-group li {
  margin-bottom: var(--space-xs);
}

.state-group a {
  font-size: var(--text-sm);
  text-decoration: none;
}

.state-group a:hover {
  text-decoration: underline;
}

.directory-empty {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.directory-empty h2 {
  margin-top: 0;
}

.directory-empty p {
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto var(--space-md);
}

.directory-conditions {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.condition-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.condition-links a {
  text-decoration: none;
}

.condition-links a:hover {
  text-decoration: underline;
}

/* ── Geo Page ───────────────────────────────────────────────────── */
.geo-page {
  padding-bottom: var(--space-3xl);
}

.geo-content {
  margin-bottom: var(--space-2xl);
}

.geo-conditions {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

/* ── Medical Disclaimer ─────────────────────────────────────────── */
.medical-disclaimer {
  margin-top: var(--space-3xl);
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-warning);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  margin-top: var(--space-2xl);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-logo {
  font-size: var(--text-xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  font-size: var(--text-sm);
  opacity: 0.7;
  max-width: 300px;
}

.footer-nav h4 {
  color: #fff;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-md);
}

.footer-nav ul {
  list-style: none;
}

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

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: #fff;
}

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

.disclaimer {
  font-size: var(--text-xs);
  opacity: 0.6;
  max-width: 700px;
  line-height: var(--line-height);
  margin-bottom: var(--space-md);
}

.copyright {
  font-size: var(--text-xs);
  opacity: 0.5;
}

/* ── Article Metadata Bar ──────────────────────────────────────── */
.article-meta-bar {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
  margin-bottom: var(--space-xl);
}
.meta-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
}
.meta-reading-time::before,
.meta-updated::before {
  content: "\00B7";
  margin-right: 0.5rem;
}

/* Evidence Badges — see main definition below */

/* ── Reading Progress Bar ─────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
  background: transparent;
}
.reading-progress-bar {
  height: 100%;
  background: var(--color-accent);
  width: 0%;
  transition: width 0.1s;
}

/* ── Back to Top ──────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 50;
}
.back-to-top.is-hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

/* ── Responsive ─────────────────────────────────────────────────── */

/* Tablet and below */
@media (max-width: 768px) {
  :root {
    --text-3xl: 2rem;
    --text-2xl: 1.5rem;
    --text-xl: 1.25rem;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: var(--space-md);
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-item > a {
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
  }

  /* Show dropdown items inline on mobile */
  .dropdown {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    padding-left: var(--space-lg);
  }

  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    display: block;
  }

  .dropdown li a {
    padding: var(--space-sm) var(--space-md);
  }

  /* Grid adjustments */
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .provider-grid {
    grid-template-columns: 1fr;
  }

  .state-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small mobile */
@media (max-width: 375px) {
  .container {
    padding: 0 var(--space-md);
  }

  .state-grid {
    grid-template-columns: 1fr;
  }
}

/* Desktop enhancements */
@media (min-width: 1024px) {
  .condition-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-2xl);
  }

  .toc {
    position: sticky;
    top: 80px;
    align-self: start;
  }
}

/* ── Print ──────────────────────────────────────────────────────── */
/* ── Lifestyle Section ──────────────────────────────────────────── */
.lifestyle-section {
  padding: var(--space-3xl) 0;
}

.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.lifestyle-card {
  text-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.lifestyle-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.lifestyle-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.lifestyle-card p {
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  color: var(--color-primary);
  font-size: var(--text-base);
  margin: 0;
}

@media (max-width: 768px) {
  .lifestyle-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ── Focus Visible (Accessibility) ──────────────────────────────── */
.filter-btn:focus-visible,
.back-to-top:focus-visible,
.nav-toggle:focus-visible,
.faq-question:focus-visible,
.btn:focus-visible,
.condition-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ── Stat Callout Mobile ───────────────────────────────────────── */
@media (max-width: 375px) {
  .stat-callout {
    flex-direction: column;
    gap: 0.5rem;
  }
  .meta-bar-inner > *:first-child::before {
    display: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .breadcrumbs,
  .provider-cta,
  .cta-section,
  .hero-actions {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .hero {
    background: none;
    color: #000;
    padding: 1rem 0;
  }

  .hero h1 {
    color: #000;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* ── Key Takeaway Box ──────────────────────────────────────────── */
.key-takeaway {
  background: linear-gradient(135deg, #ebf4ff 0%, #f0f7ff 100%);
  border-left: 4px solid #3182ce;
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0 2.5rem;
  font-size: 0.95rem;
}
.key-takeaway h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3182ce;
  margin: 0 0 0.75rem;
  font-weight: 700;
}
.key-takeaway ul {
  margin: 0;
  padding-left: 1.25rem;
}
.key-takeaway li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* ── Evidence Badge ────────────────────────────────────────────── */
.evidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.evidence-badge--strong {
  background: #f0fff4;
  color: #276749;
  border: 1px solid #c6f6d5;
}
.evidence-badge--moderate {
  background: #fffff0;
  color: #975a16;
  border: 1px solid #fefcbf;
}
.evidence-badge--emerging {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #fed7d7;
}

/* ── Stat Callout (in-content stats, NOT key-facts strip) ─────── */
.stat-callout {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.stat-callout .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  flex-shrink: 0;
}
.stat-callout .stat-label {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ── Warning / Info Box ────────────────────────────────────────── */
.info-box {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.info-box--warning {
  background: #fff5f5;
  border-left: 4px solid #c53030;
}
.info-box--info {
  background: #ebf4ff;
  border-left: 4px solid #3182ce;
}
.info-box--success {
  background: #f0fff4;
  border-left: 4px solid #2f855a;
}
.info-box strong {
  display: block;
  margin-bottom: 0.5rem;
}

/* ── Performance ───────────────────────────────────────────────── */

/* Contain paint for cards — isolates repaint/layout to the card */
.condition-card, .post-card, .provider-card, .feature-card {
  contain: layout style;
}

/* Defer rendering of off-screen images */
img[loading="lazy"] {
  content-visibility: auto;
}

/* Reduce layout shift for hero/post images */
.hero-image img, .post-image img {
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}
