/* ========================================
   PRESCRIBED HARM — Global Stylesheet
   Clean clinical design system
   ======================================== */

/* --- CSS Variables --- */
:root {
  --navy: #1a1f2e;
  --navy-light: #242938;
  --slate: #4a5568;
  --steel: #718096;
  --silver: #a0aec0;
  --light-gray: #edf2f7;
  --off-white: #f7fafc;
  --white: #ffffff;
  --red-accent: #c53030;
  --red-dark: #9b2c2c;
  --red-light: #fff5f5;
  --amber: #b7791f;
  --amber-light: #fffff0;
  --teal: #2c7a7b;
  --teal-light: #f0fff4;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-nav: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1400px;
  --content-width: 960px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.07);
  --radius: 6px;
  --radius-lg: 10px;
  --transition: 0.25s ease;
}

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

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

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

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.7;
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--red-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }

.main-content a,
.scope-content a,
.why-matters-content a,
.content-narrow a,
.ref-list a {
  text-decoration: underline;
  text-decoration-color: rgba(185, 28, 28, 0.25);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.main-content a:hover,
.scope-content a:hover,
.why-matters-content a:hover,
.content-narrow a:hover,
.ref-list a:hover {
  text-decoration-color: var(--red-accent);
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.85rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.6rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
h4 { font-size: 1.05rem; margin-bottom: 0.5rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

p { margin-bottom: 1.15rem; color: var(--slate); }

.section-subtitle {
  font-size: 1rem;
  color: var(--steel);
  margin-top: -0.4rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

blockquote {
  border-left: 3px solid var(--light-gray);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--off-white);
  color: var(--slate);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.content-narrow { max-width: 1200px; margin: 0 auto; }

/* --- Header / Navigation --- */
.site-header {
  background: var(--white);
  color: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.header-top {
  display: none;
}

.site-logo {
  font-family: var(--font-nav);
  font-size: 1rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo span { color: var(--red-accent); }

.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo h1 {
  font-family: var(--font-nav);
  font-size: 1rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0;
}
.logo h1 .harm,
.site-logo .harm { color: var(--red-accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  width: 30px;
  height: 24px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

.main-nav {
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 0.25rem;
  min-height: 60px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.main-nav li { position: relative; }

.main-nav a {
  display: block;
  color: var(--steel);
  padding: 1.1rem 0.55rem;
  font-family: var(--font-nav);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition);
  border-bottom: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--navy);
  border-bottom: none;
}

/* Support link in nav — inherits .btn .btn-primary, just scale for nav */
.main-nav .nav-support,
.main-nav .nav-support:hover {
  color: var(--white);
  padding: 0.42rem 1rem;
  font-size: 0.72rem;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  letter-spacing: 0.06em;
}

/* Dropdown */
.has-dropdown:hover .dropdown { display: block; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  border-radius: 0 0 var(--radius) var(--radius);
  border: 1px solid var(--light-gray);
}

.dropdown a {
  padding: 0.6rem 1.2rem;
  text-transform: none;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--slate);
  border-bottom: 1px solid var(--light-gray);
}

.dropdown a:hover {
  color: var(--navy);
  background: var(--off-white);
}

.dropdown a:last-child { border-bottom: none; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  border-radius: 0 0 var(--radius) var(--radius);
  border: 1px solid var(--light-gray);
}

.has-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  color: var(--slate);
  padding: 0.6rem 1.2rem;
  font-size: 0.84rem;
  border-bottom: 1px solid var(--light-gray);
  transition: color var(--transition);
}

.dropdown-menu a:hover { color: var(--navy); background: var(--off-white); }
.dropdown-menu a:last-child { border-bottom: none; }

/* --- Hero Sections --- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero .subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--silver);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
}

.hero-home {
  padding: 6.5rem 2rem 6rem;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-home::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(185,28,28,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-home::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(15,118,110,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-home h1,
.hero-home .hero-headline { font-size: 3rem; font-weight: 700; letter-spacing: -0.01em; }

.hero h2,
.hero-home h2,
.hero-headline {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 0.85rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--silver);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 4px;
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--red-accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); color: var(--white); box-shadow: 0 4px 16px rgba(197,48,48,0.25); }

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); color: var(--white); }

.btn-secondary {
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--white);
  background: transparent;
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); color: var(--white); }

.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: #256e6f; color: var(--white); }

/* --- Home Page Sections --- */
.stats-section {
  padding: 3rem 2rem;
  background: var(--off-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 2.25rem 1.5rem;
  background: transparent;
  border-radius: 0;
  border: none;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--red-accent);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--steel);
  line-height: 1.45;
}

.scope-section {
  padding: 0.75rem 2rem;
  background: var(--white);
}

.scope-content {
  max-width: 100%;
}

.medications-grid-section {
  padding: 4.5rem 2rem;
  background: var(--off-white);
}

.medications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.medication-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  border: 1px solid var(--light-gray);
  transition: all var(--transition);
}

.medication-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.medication-card h3 a { color: var(--navy); }
.medication-card h3 a:hover { color: var(--red-accent); }

.medication-card a {
  color: var(--navy);
  text-decoration: none;
}

.medication-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.warning-section {
  padding: 1.25rem 2rem;
  background: var(--white);
}

.why-matters-section {
  padding: 1.5rem 2rem;
  background: var(--white);
}

.why-matters-content {
  max-width: 100%;
}

.cta-content {
  max-width: 100%;
  margin: 0 auto;
}

.legal-disclaimer {
  font-size: 0.8rem;
  color: var(--steel);
  line-height: 1.5;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  transition: all var(--transition);
  border: 1px solid var(--light-gray);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  background: var(--red-light);
  color: var(--red-accent);
}

.card-icon.red { background: var(--red-light); color: var(--red-accent); }
.card-icon.teal { background: var(--teal-light); color: var(--teal); }
.card-icon.amber { background: var(--amber-light); color: var(--amber); }

/* --- Stat Bars --- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}

.stat-box {
  text-align: center;
  padding: 1.5rem;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-gray);
}

/* --- Content Sections --- */
.section {
  padding: 1.5rem 2rem;
}

.section-alt { background: var(--off-white); }

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 { margin-bottom: 0.5rem; }

.section-title .divider {
  width: 50px;
  height: 1.5px;
  background: var(--red-accent);
  margin: 1rem auto 0;
  border-radius: 1px;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--light-gray);
  margin: 2rem 0;
  border: none;
}

/* --- Warning / Info / Amber Boxes --- */
.warning-box {
  background: var(--off-white);
  border: none;
  border-left: 3px solid var(--red-accent);
  padding: 1.75rem 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

.warning-box .warning-title {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--red-accent);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.info-box {
  background: var(--off-white);
  border: none;
  border-left: 3px solid var(--teal);
  padding: 1.75rem 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

.amber-box {
  background: var(--off-white);
  border: none;
  border-left: 3px solid var(--amber);
  padding: 1.75rem 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

.amber-box h3 {
  color: var(--navy);
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.amber-box p {
  color: var(--slate);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- Symptom Grid --- */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.symptom-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.45;
}

.symptom-item::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--red-accent);
  margin-top: 0.45rem;
}

/* --- Reference List --- */
.ref-list { list-style: none; counter-reset: refs; }

.ref-list li {
  counter-increment: refs;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--slate);
}

.ref-list li::before {
  content: counter(refs) ".";
  font-weight: 600;
  color: var(--red-accent);
  margin-right: 0.5rem;
  font-size: 0.82rem;
}

/* Ref items used on SNRIs etc */
.ref-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--slate);
}

/* --- Timeline --- */
.timeline { position: relative; padding-left: 2rem; margin: 2rem 0; }

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--light-gray);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red-accent);
  border: 2px solid var(--white);
}

.timeline-item h4 { color: var(--navy); margin-bottom: 0.3rem; }

/* --- Sidebar Layout --- */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.sidebar-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--light-gray);
}

.sidebar-card h3,
.sidebar-card h4 {
  border-bottom: none;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.sidebar-card ul { list-style: none; }
.sidebar-card li { padding: 0.35rem 0; border-bottom: 1px solid rgba(226,232,240,0.6); font-size: 0.84rem; color: var(--slate); }
.sidebar-card li:last-child { border-bottom: none; }
.sidebar-card li a { color: var(--red-accent); text-decoration: none; }
.sidebar-card li a:hover { color: var(--red-dark); text-decoration: underline; }

/* Sidebar card variants */
.sidebar-card.warning-box {
  background: var(--red-light);
  border-color: rgba(185,28,28,0.15);
}

.sidebar-card.amber-box {
  background: var(--amber-light);
  border-color: rgba(180,83,9,0.15);
}

/* --- Table --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--light-gray);
}

.data-table th {
  background: var(--off-white);
  color: var(--navy);
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0;
  border-bottom: 1px solid var(--light-gray);
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.88rem;
  color: var(--slate);
}

.data-table tr:nth-child(even) { background: var(--off-white); }
.data-table tr:hover { background: #f1f5f9; }

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: var(--silver);
  padding: 3.5rem 2rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr 1.5fr;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto 2rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.78rem;
  margin-bottom: 1rem;
  font-family: var(--font-nav);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }

.footer-col a {
  color: var(--silver);
  font-size: 0.84rem;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
  list-style: none;
  padding: 0;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--silver);
  font-size: 0.84rem;
  transition: color var(--transition);
}
.footer-social a:hover { color: var(--white); }
.footer-social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-bottom p { color: var(--steel); margin-bottom: 0.3rem; }

/* --- Forms --- */
.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 550;
  font-size: 0.88rem;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
  color: var(--navy);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--silver);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15,118,110,0.08);
}

.form-group textarea { min-height: 160px; resize: vertical; }

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group .file-input {
  padding: 2rem;
  border: 1.5px dashed var(--light-gray);
  text-align: center;
  cursor: pointer;
  border-radius: var(--radius);
  background: var(--off-white);
  transition: all var(--transition);
}

.form-group .file-input:hover {
  border-color: var(--teal);
  background: var(--teal-light);
}

/* --- Accordion --- */
.accordion-item {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.accordion-header {
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
  color: var(--navy);
}

.accordion-header:hover { background: var(--off-white); }

.accordion-header::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--silver);
  transition: transform var(--transition);
  font-weight: 300;
}

.accordion-item.open .accordion-header::after {
  content: '\2212';
}

.accordion-body {
  display: none;
  padding: 0 1.5rem 1.5rem;
}

.accordion-item.open .accordion-body { display: block; }

/* --- FAQ Search --- */
#faq-search:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

/* --- CTA Banner --- */
.cta-banner {
  background: #2d3748;
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}

.cta-banner h2,
.cta-banner h3 { color: var(--white); margin-bottom: 0.6rem; }
.cta-banner p { color: #cbd5e0; margin-bottom: 1.5rem; }

/* --- Contact Page Styles --- */
.contact-intro {
  padding: 3rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
}

.contact-intro h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.intro-text {
  max-width: 1200px;
  margin: 0 auto;
}

.intro-text p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.contact-section {
  padding: 3rem 2rem;
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
}

.contact-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-forms h2 {
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.form-intro {
  font-size: 0.88rem;
  color: var(--steel);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.story-form,
.inquiry-form {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.story-form .btn-primary,
.inquiry-form .btn-primary {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

.form-group small {
  display: block;
  font-size: 0.78rem;
  color: var(--steel);
  margin-top: 0.3rem;
}

.required {
  color: var(--red-accent);
  font-weight: 600;
}

.optional {
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: normal;
}

/* Checkbox & Radio Groups */
.checkbox-group,
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.checkbox-label,
.radio-label {
  display: inline-flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  background: var(--off-white);
  transition: all var(--transition);
  color: var(--slate);
}

.checkbox-label:hover,
.radio-label:hover {
  border-color: var(--teal);
  background: var(--teal-light);
}

.checkbox-label:has(input:checked),
.radio-label:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-light);
  color: var(--navy);
  font-weight: 550;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
  width: auto;
  margin-right: 0.45rem;
  margin-bottom: 0;
  cursor: pointer;
  padding: 0;
  border: none;
  background: none;
  accent-color: var(--teal);
}

.checkbox-label input[type="checkbox"]:focus,
.radio-label input[type="radio"]:focus {
  outline: 2px solid var(--teal);
  border-radius: 3px;
}

.checkbox-consent {
  margin-top: 0.5rem;
}

.checkbox-consent label {
  font-size: 0.85rem;
  line-height: 1.5;
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  background: var(--amber-light);
  border-color: rgba(180,83,9,0.2);
}

.checkbox-consent label:has(input:checked) {
  background: var(--teal-light);
  border-color: var(--teal);
}

/* File Upload Styling */
.file-label {
  display: block;
  margin-bottom: 0.5rem;
}

.file-input {
  position: relative;
  padding: 1.5rem;
  border: 1.5px dashed var(--light-gray);
  text-align: center;
  cursor: pointer;
  border-radius: var(--radius);
  background: var(--off-white);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}

.file-input:hover {
  border-color: var(--teal);
  background: var(--teal-light);
}

.file-input::before {
  content: '\1F4CE';
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.file-input input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  top: 0;
  left: 0;
}

.file-text {
  color: var(--steel);
  font-size: 0.84rem;
}

/* Info Cards */
.info-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.form-card {
  border-top: none;
}

.info-card h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.info-card p {
  color: var(--slate);
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}

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

.info-card a {
  color: var(--red-accent);
  text-decoration: underline;
  text-decoration-color: rgba(185,28,28,0.25);
}

.info-card a:hover { color: var(--red-dark); text-decoration-color: var(--red-accent); }

/* Why Sharing Matters Section */
.why-sharing-matters {
  padding: 3.5rem 2rem;
  background: var(--white);
}

.why-sharing-matters h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.why-content {
  max-width: 720px;
  margin: 0 auto;
}

.why-content p {
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Privacy Notice */
.privacy-notice {
  padding: 2rem 2rem;
  background: var(--off-white);
}

/* Contact Page Hero */
.contact-page .hero {
  background: var(--navy);
  color: var(--white);
}

.contact-page .hero h1,
.contact-page .hero h2 {
  color: var(--white);
}

.contact-page .hero-subtitle {
  color: var(--silver);
}

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

/* --- Responsive --- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .hero h1, .hero-home h1, .hero-headline, .hero h2, .hero-home h2 { font-size: 2.2rem; }
  .hero .subtitle, .hero-subtitle { font-size: 1rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: flex; margin-left: auto; }

  .main-nav {
    flex-wrap: wrap;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    padding: 0;
    width: 100%;
    order: 10;
  }

  .main-nav.open ul { display: flex; }

  .main-nav .search-bar {
    display: none;
    width: 100%;
    order: 9;
    margin: 0.5rem 1rem;
  }

  .main-nav.open .search-bar { display: flex; }

  .main-nav .nav-support {
    display: none;
  }

  .main-nav.open .nav-support {
    display: block;
    order: 11;
    width: 100%;
    margin: 0.75rem 1.5rem 1rem;
    text-align: center;
  }

  .main-nav a {
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--light-gray);
  }

  /* Keep logo link styled normally, not as a menu item */
  .main-nav .site-logo {
    border-bottom: none;
    padding: 0;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    background: var(--off-white);
    border: none;
  }

  .has-dropdown:hover .dropdown,
  .has-dropdown:hover .dropdown-menu { display: none; }
  .has-dropdown.open .dropdown,
  .has-dropdown.open .dropdown-menu { display: block; }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: var(--off-white);
    border: none;
  }
}

@media (max-width: 768px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid .footer-col:last-child { grid-column: 1 / -1; }

  .container, .section { padding-left: 1rem; padding-right: 1rem; }

  .hero { padding: 3.5rem 1.5rem; }
  .hero h1 { font-size: 1.8rem; }

  .contact-section { padding: 2rem 1rem; }
  .contact-intro { padding: 2rem 1rem; }
  .why-sharing-matters { padding: 2rem 1rem; }
  .privacy-notice { padding: 1.5rem 1rem; }

  .checkbox-group,
  .radio-group { gap: 0.5rem; }

  .file-input { min-height: 72px; padding: 1.5rem; }

  /* Tables: horizontal scroll on mobile */
  .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Prevent long words/URLs from breaking layout */
  .main-content, .scope-content, .why-matters-content, .content-narrow {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Footer social wrap gracefully */
  .footer-social { flex-wrap: wrap; gap: 0.75rem; }
}

@media (max-width: 480px) {
  .stat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-home { padding: 3rem 1rem; }
  .hero-home h1, .hero-home h2, .hero-headline { font-size: 1.75rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .medications-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .medication-card { padding: 1.5rem; }
  .stat-number { font-size: 1.8rem; }
  .warning-box, .info-box, .amber-box { padding: 1.25rem 1rem; }
  .ref-list li { font-size: 0.82rem; }
  .symptom-grid { grid-template-columns: 1fr; }

  /* Ensure sidebar cards use full width */
  aside.sidebar { width: 100%; }
}

/* --- Search Bar --- */
.main-nav > ul {
  flex: 1;
}

.search-bar {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 0.75rem;
  flex-shrink: 0;
  position: relative;
}

#site-search-input {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: 2rem;
  color: var(--navy);
  font-family: var(--font-nav);
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  width: 0;
  opacity: 0;
  outline: none;
  transition: width 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  pointer-events: none;
}

#site-search-input.expanded {
  width: 180px;
  opacity: 1;
  padding: 0.45rem 0.9rem;
  pointer-events: auto;
}

#site-search-input.expanded:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15,118,110,0.08);
}

#site-search-input::placeholder {
  color: var(--silver);
}

#site-search-btn {
  background: none;
  border: none;
  color: var(--steel);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.4rem;
  flex-shrink: 0;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

#site-search-btn:hover { color: var(--navy); }

.search-shortcut {
  font-size: 0.7rem;
  color: var(--silver);
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  margin-right: 0.3rem;
  white-space: nowrap;
}

/* Search Overlay */
#search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.8);
  z-index: 2000;
  padding: 6rem 1rem 2rem;
  overflow-y: auto;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#search-overlay.active { display: block; }

#search-results {
  max-width: 580px;
  margin: 0 auto;
}

#search-close {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--silver);
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
  padding: 0.5rem;
  transition: color var(--transition);
}

#search-close:hover { color: var(--white); }

.search-results-header {
  color: var(--silver);
  font-size: 0.88rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0.75rem;
}

.search-results-header strong { color: var(--white); }

.search-section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
  margin: 1.25rem 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-weight: 550;
}

.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  margin-bottom: 0.4rem;
  text-decoration: none;
  transition: background var(--transition);
}

.search-result-item:hover {
  background: rgba(255,255,255,0.1);
}

.search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.search-icon-med { background: var(--red-accent); color: var(--white); font-weight: 600; font-size: 0.65rem; }
.search-icon-study { background: var(--teal); color: var(--white); }
.search-icon-doc { background: #3b82f6; color: var(--white); }
.search-icon-res { background: var(--amber); color: var(--white); }
.search-icon-page { background: var(--slate); color: var(--white); }

.search-result-title {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.search-result-title mark {
  background: rgba(185, 28, 28, 0.35);
  color: var(--white);
  padding: 0 2px;
  border-radius: 2px;
}

.search-result-meta {
  color: var(--steel);
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

.search-no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--silver);
}

.search-no-results strong { color: var(--white); }

/* Mobile search */
@media (max-width: 1024px) {
  #site-search-input.expanded {
    width: 100%;
  }
}

/* --- Scroll Reveal Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.hero-home .hero-content,
.hero .container {
  animation: fadeInUp 0.6s ease both;
}

/* --- Subtle Interactions --- */
.stat-card {
  transition: box-shadow 0.2s ease;
}

.stat-card:hover {
  box-shadow: none;
}

.medication-card {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.medication-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.medication-card .card-icon {
  transition: transform 0.2s ease;
}

.medication-card:hover .card-icon {
  transform: scale(1.05);
}

.sidebar-card {
  transition: box-shadow 0.2s ease;
}

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

/* --- Smooth underline on nav links --- */
.main-nav > ul > li > a {
  position: relative;
}

.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--navy);
  transition: width 0.25s ease, left 0.25s ease;
}

.main-nav > ul > li > a:hover::after,
.main-nav > ul > li > a.active::after {
  width: 60%;
  left: 20%;
}

@media (max-width: 1024px) {
  .main-nav > ul > li > a::after { display: none; }
}

/* --- Better focus styles for accessibility --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  z-index: 9999;
  font-size: 0.88rem;
}

.skip-link:focus {
  top: 0.5rem;
}

/* --- Lists in main content --- */
.main-content ul,
.accordion-body ul {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.main-content ul li,
.accordion-body ul li {
  padding: 0.2rem 0;
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.6;
}

.main-content ul li strong,
.accordion-body ul li strong {
  color: var(--navy);
}

/* Inline-styled cards on medication pages */
.card h4 {
  margin-top: 0;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
