/* ============================================
   Bedside Physicians — Theme: Slate & Mint
   Drop-in replacement for styles.css.
   To use: rename this file to "styles.css".
   ============================================ */

:root {
  /* THEME: Slate & Mint — soft, editorial, refined */
  --navy-950: #0a1020;
  --navy-900: #1a2236;
  --navy-800: #283145;
  --navy-700: #3a4358;
  --navy-600: #4d566b;
  --navy-500: #6a7385;

  --teal-50:  #f0fdf9;
  --teal-100: #d5f7ec;
  --teal-200: #aff0db;
  --teal-300: #7ee5c3;
  --teal-400: #4dd3a7;
  --teal-500: #2bb88a;
  --teal-600: #1a9670;
  --teal-700: #15765c;
  --teal-800: #155e4b;
  --teal-900: #134d3f;

  --slate-50:  #fafaf9;
  --slate-100: #f4f4f2;
  --slate-200: #e7e7e3;
  --slate-300: #d1d1cc;
  --slate-400: #a3a39d;
  --slate-500: #71716c;
  --slate-600: #51514c;
  --slate-700: #3a3a36;
  --slate-800: #252523;
  --slate-900: #141413;

  --bg: #fafaf9;
  --bg-soft: #f4f4f2;
  --bg-tint: #f0fdf9;
  --ink: #1a2236;
  --ink-soft: #51514c;
  --line: #e7e7e3;

  /* Status */
  --success: #2bb88a;
  --warning: #d97706;
  --danger:  #dc2626;
  --info:    #475569;

  /* Typography */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;

  /* Shape & shadow */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(26,34,54,0.04);
  --shadow:    0 4px 12px rgba(26,34,54,0.06), 0 1px 3px rgba(26,34,54,0.03);
  --shadow-md: 0 10px 30px rgba(26,34,54,0.08), 0 2px 6px rgba(26,34,54,0.04);
  --shadow-lg: 0 24px 60px rgba(26,34,54,0.12), 0 4px 12px rgba(26,34,54,0.05);
  --shadow-glow: 0 0 0 4px rgba(125,229,195,0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-feature-settings: "ss01", "ss02", "cv11";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.625rem); }
h4 { font-size: 1.125rem; font-weight: 600; }

p { margin: 0 0 1rem; color: var(--ink-soft); }
a { color: var(--teal-700); text-decoration: none; transition: color .15s; }
a:hover { color: var(--teal-600); }

/* Layout */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }
.container-sm { max-width: 880px; margin: 0 auto; padding: 0 1.25rem; }

/* ============================================
   GLOBAL ANNOUNCEMENT BANNER
   ============================================ */
.announce-banner {
  position: relative;
  background: linear-gradient(90deg, var(--navy-900), var(--navy-700) 60%, var(--teal-700));
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 2.5rem 0.625rem 1.25rem;
  text-align: center;
  letter-spacing: 0.01em;
}
.announce-banner.is-hidden { display: none; }
.announce-banner .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-300);
  margin-right: .5rem;
  vertical-align: middle;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}
.announce-banner .close-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}
.announce-banner .close-btn:hover { color: #fff; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}
.brand img { height: 36px; width: auto; display: block; }
.brand-fallback {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all .15s;
}
.nav-links a:hover { background: var(--slate-100); color: var(--ink); }
.nav-links a.active {
  background: var(--navy-900);
  color: #fff;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 40px; height: 40px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span {
  position: relative;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  display: block;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

@media (max-width: 1024px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem;
    gap: 0;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.875rem 1rem; }
  .nav-cta .btn-ghost { display: none; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .18s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--navy-900);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-800); transform: translateY(-1px); box-shadow: var(--shadow-md); color: #fff; }

.btn-accent {
  background: var(--teal-600);
  color: #fff;
}
.btn-accent:hover { background: var(--teal-700); transform: translateY(-1px); box-shadow: var(--shadow-md); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--slate-50); border-color: var(--slate-300); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); color: #fff; }

.btn-sm { padding: 0.5rem 0.875rem; font-size: 0.8rem; }
.btn-lg { padding: 0.95rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(20,184,166,0.18), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(11,31,58,0.04), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg-soft));
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11,31,58,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,31,58,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: var(--teal-50);
  color: var(--teal-700);
  border: 1px solid var(--teal-200);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px; background: var(--teal-500);
  border-radius: 50%;
}

/* ============================================
   SECTIONS
   ============================================ */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }

.section-header {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.section-header.left { margin-left: 0; text-align: left; }
.section-header .eyebrow { margin-bottom: 1rem; }
.section-header p { color: var(--ink-soft); font-size: 1.05rem; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all .2s;
  box-shadow: var(--shadow-sm);
}
.card:hover { border-color: var(--slate-300); box-shadow: var(--shadow-md); }

/* Service card (compact, with expandable detail) */
.service-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all .2s;
}
.service-card:hover { box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.service-card .sc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.service-card .sc-icon svg { width: 22px; height: 22px; }
.service-card .sc-body { padding: 1.5rem; }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card .sc-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy-900);
  font-weight: 600;
  margin-top: 0.5rem;
}
.service-card .sc-price small {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 500;
  display: block;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.service-card .sc-summary {
  color: var(--ink-soft);
  font-size: 0.925rem;
  margin: 0.75rem 0 1.25rem;
}
.service-card .sc-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.sc-readmore {
  background: transparent;
  border: none;
  color: var(--teal-700);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.sc-readmore .chev { transition: transform .2s; display: inline-block; }
.sc-readmore.is-open .chev { transform: rotate(180deg); }

.sc-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  border-top: 1px solid transparent;
  background: var(--slate-50);
}
.sc-detail.is-open {
  max-height: 1600px;
  border-top-color: var(--line);
}
.sc-detail-inner { padding: 1.25rem 1.5rem 1.5rem; font-size: 0.9rem; }
.sc-detail-inner h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-600);
  margin: 1rem 0 0.5rem;
}
.sc-detail-inner h4:first-child { margin-top: 0; }
.sc-detail-inner ul {
  margin: 0; padding-left: 1.1rem;
  color: var(--ink-soft);
}
.sc-detail-inner li { margin-bottom: 0.25rem; }

/* ============================================
   PHASES (timeline for service pages)
   ============================================ */
.phases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .phases { grid-template-columns: 1fr 1fr; }
}
.phase-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}
.phase-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-500), var(--navy-700));
}
.phase-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--navy-900);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.phase-card h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.phase-card ul { margin: 0; padding-left: 1.1rem; }
.phase-card li { color: var(--ink-soft); margin-bottom: 0.4rem; font-size: 0.925rem; }
.phase-card li strong { color: var(--ink); }

/* ============================================
   BLOG GRID
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card .img {
  aspect-ratio: 16 / 10;
  background: var(--slate-100);
  background-size: cover;
  background-position: center;
}
.blog-card .body { padding: 1.25rem 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card .tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal-700);
  margin-bottom: 0.5rem;
}
.blog-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.blog-card p { font-size: 0.9rem; margin-bottom: 1rem; }
.blog-card .meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--slate-500);
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

/* ============================================
   EVENTS
   ============================================ */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
}
.event-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .2s;
  display: flex; flex-direction: column;
}
.event-card:hover { box-shadow: var(--shadow-md); }
.event-flyer {
  aspect-ratio: 16/9;
  position: relative;
  background: linear-gradient(135deg, var(--navy-800), var(--teal-700));
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  overflow: hidden;
}
.event-flyer::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18), transparent 50%);
}
.event-flyer .flyer-content { position: relative; z-index: 1; }
.event-date-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.95);
  color: var(--navy-900);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  text-align: center;
  min-width: 64px;
  z-index: 1;
}
.event-date-badge .day { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1; font-family: var(--font-display); }
.event-date-badge .mon { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.15rem; color: var(--teal-700); font-weight: 700; }
.event-body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.event-body h3 { margin-bottom: 0.5rem; }
.event-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--slate-600);
  margin-bottom: 0.75rem;
}
.event-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.event-price-tag {
  display: inline-block;
  background: var(--slate-100);
  color: var(--ink);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.event-price-tag.paid { background: #fef3c7; color: #92400e; }
.event-price-tag.free { background: var(--teal-50); color: var(--teal-700); }
.event-actions { margin-top: auto; padding-top: 1rem; display: flex; gap: 0.5rem; }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 1rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 600px) { .form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }

.label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.label .req { color: var(--danger); margin-left: 0.15rem; }

.input, .select, .textarea {
  width: 100%;
  padding: 0.7rem 0.875rem;
  background: #fff;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--ink);
  transition: all .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: var(--shadow-glow);
}
.textarea { min-height: 100px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748b'%3e%3cpath d='M4.5 6L8 9.5 11.5 6h-7z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.25rem;
}
.help { font-size: 0.78rem; color: var(--slate-500); margin-top: 0.35rem; }

.checkbox-row, .radio-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}
.checkbox-row input, .radio-row input { margin-top: 0.2rem; accent-color: var(--teal-600); }

/* Insurance picker (highlighted) */
.insurance-block {
  background: linear-gradient(180deg, var(--teal-50), #fff);
  border: 1px solid var(--teal-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
}
.insurance-block::before {
  content: 'INSURANCE';
  position: absolute;
  top: -10px; left: 16px;
  background: var(--teal-600);
  color: #fff;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 4px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-950);
  color: #cbd5e1;
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
}
.footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
  font-weight: 700;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 0.4rem; }
.footer a { color: #cbd5e1; font-size: 0.9rem; }
.footer a:hover { color: var(--teal-300); }
.footer .brand-block { font-size: 0.92rem; line-height: 1.7; }
.footer .brand-block img { height: 40px; background: #fff; padding: 4px 8px; border-radius: 6px; margin-bottom: 1rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  color: var(--slate-400);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3rem);
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--teal-500), transparent 60%);
  opacity: 0.35;
  filter: blur(40px);
}
.newsletter-inner { position: relative; z-index: 1; max-width: 720px; }
.newsletter h2 { color: #fff; margin-bottom: 0.5rem; }
.newsletter p { color: rgba(255,255,255,0.78); }
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--teal-400);
  background: rgba(255,255,255,0.15);
}
.newsletter-success {
  margin-top: 1rem;
  background: rgba(20,184,166,0.15);
  border: 1px solid var(--teal-400);
  color: var(--teal-100);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}
.newsletter-success.is-visible { display: block; }

/* ============================================
   STATS / FEATURES
   ============================================ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
@media (min-width: 768px) {
  .stats-strip { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  background: #fff;
  padding: 1.5rem;
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1;
}
.stat .lbl {
  font-size: 0.8rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
  font-weight: 600;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all .2s;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--teal-300); }
.feature .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.feature p { font-size: 0.9rem; margin: 0; }

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,31,58,0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
  animation: fadeIn .15s ease;
}
.modal-overlay.is-open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { margin: 0; font-size: 1.25rem; }
.modal-close {
  background: transparent; border: none;
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--slate-500);
}
.modal-close:hover { background: var(--slate-100); color: var(--ink); }
.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  display: flex; gap: 0.5rem; justify-content: flex-end;
  background: var(--bg-soft);
  flex-wrap: wrap;
}

/* ============================================
   TOAST
   ============================================ */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  display: flex; flex-direction: column; gap: 0.5rem;
  max-width: 360px;
}
.toast {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal-500);
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--info); }

/* ============================================
   TABLES (admin/portal)
   ============================================ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table th, .table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.table th {
  background: var(--bg-soft);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-600);
  font-weight: 700;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--slate-50); }

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--slate-100);
  color: var(--slate-700);
}
.badge.success { background: #d1fae5; color: #065f46; }
.badge.warn { background: #fef3c7; color: #92400e; }
.badge.danger { background: #fee2e2; color: #991b1b; }
.badge.info { background: #dbeafe; color: #1e40af; }
.badge.teal { background: var(--teal-50); color: var(--teal-700); }

/* ============================================
   ADMIN LAYOUT
   ============================================ */
.admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 60px);
}
@media (min-width: 1024px) {
  .admin-layout { grid-template-columns: 240px 1fr; }
}
.admin-sidebar {
  background: var(--navy-950);
  color: #cbd5e1;
  padding: 1.5rem 1rem;
}
.admin-sidebar h4 {
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 1rem 0 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
}
.admin-nav {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.admin-nav button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #cbd5e1;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex; align-items: center; gap: 0.65rem;
  transition: all .15s;
}
.admin-nav button:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-nav button.active { background: var(--teal-600); color: #fff; }
.admin-nav button svg { width: 16px; height: 16px; }

.admin-main { padding: 2rem 1.5rem; background: var(--bg-soft); }
.admin-section { display: none; }
.admin-section.is-active { display: block; }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-header h2 { margin-bottom: 0.25rem; }
.admin-header p { margin: 0; color: var(--slate-500); font-size: 0.92rem; }

.kpi-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.kpi .lbl { font-size: 0.72rem; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.kpi .num { font-family: var(--font-display); font-size: 1.875rem; font-weight: 600; color: var(--navy-900); margin-top: 0.25rem; line-height: 1; }
.kpi .delta { font-size: 0.78rem; color: var(--success); margin-top: 0.25rem; }
.kpi .delta.down { color: var(--danger); }

/* ============================================
   PATIENT PORTAL
   ============================================ */
.portal-login {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(900px 500px at 20% 20%, rgba(20,184,166,0.12), transparent 60%),
    var(--bg-soft);
  padding: 2rem 1rem;
}
.portal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 2.25rem;
}
.portal-card .lock-icon {
  width: 48px; height: 48px;
  background: var(--teal-50);
  color: var(--teal-700);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.portal-card h2 { margin-bottom: 0.25rem; }
.portal-card .sub { color: var(--slate-500); font-size: 0.9rem; margin-bottom: 1.5rem; }
.portal-card .security-note {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--slate-500);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.portal-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .portal-dashboard { grid-template-columns: 280px 1fr; }
}
.portal-aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: fit-content;
}
.portal-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--teal-600));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.portal-aside .pname { font-family: var(--font-display); font-size: 1.25rem; }
.portal-aside .pid { font-size: 0.8rem; color: var(--slate-500); }
.portal-aside ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.88rem; }
.portal-aside ul li {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.portal-aside ul li:last-child { border-bottom: none; }
.portal-aside ul li span:last-child { color: var(--ink); font-weight: 600; }

.portal-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
  overflow-x: auto;
}
.portal-tabs button {
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--slate-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.portal-tabs button.active { color: var(--navy-900); border-bottom-color: var(--teal-500); }

.portal-panel { display: none; }
.portal-panel.is-active { display: block; }

/* ============================================
   CHECKOUT STEPPER
   ============================================ */
.stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}
.stepper::before {
  content: '';
  position: absolute;
  top: 16px; left: 5%; right: 5%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
}
.step-num {
  width: 32px; height: 32px;
  margin: 0 auto 0.4rem;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--slate-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.step.active .step-num { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.step.done .step-num { background: var(--teal-500); color: #fff; border-color: var(--teal-500); }
.step .lbl { font-size: 0.75rem; color: var(--slate-500); font-weight: 600; }
.step.active .lbl { color: var(--navy-900); }

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 968px) { .checkout-grid { grid-template-columns: 1.4fr 1fr; } }
.summary-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 90px;
}
.summary-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.9rem; color: var(--ink-soft); }
.summary-row.total {
  border-top: 1px solid var(--line);
  margin-top: 0.5rem; padding-top: 1rem;
  font-weight: 700; color: var(--ink); font-size: 1rem;
}

.step-section { display: none; }
.step-section.is-active { display: block; }

/* ============================================
   SUCCESS PAGE
   ============================================ */
.success-state {
  text-align: center;
  padding: 3rem 1rem;
}
.success-state .check {
  width: 80px; height: 80px;
  background: var(--teal-500);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.muted { color: var(--slate-500); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }
.hidden { display: none; }

/* Two-column generic */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 880px) {
  .two-col { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
}
.two-col.reverse > :first-child { order: 0; }
@media (min-width: 880px) {
  .two-col.reverse > :first-child { order: 1; }
}

.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy-800), var(--teal-700));
  box-shadow: var(--shadow-lg);
}
.media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.2), transparent 50%),
    repeating-linear-gradient(45deg, transparent 0, transparent 10px, rgba(255,255,255,0.04) 10px, rgba(255,255,255,0.04) 11px);
}
.media-frame .pulse-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

/* Section with dark bg */
.dark-section {
  background: var(--navy-950);
  color: #cbd5e1;
}
.dark-section h1, .dark-section h2, .dark-section h3 { color: #fff; }
.dark-section p { color: rgba(255,255,255,0.7); }

/* Page hero header (for inner pages) */
.page-hero {
  position: relative;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(126,229,195,0.18), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(77,211,167,0.12), transparent 55%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(135deg, transparent 40%, rgba(126,229,195,0.06) 50%, transparent 60%);
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 720px; }
.page-hero .eyebrow {
  background: rgba(255,255,255,0.1);
  color: var(--teal-200);
  border-color: rgba(20,184,166,0.3);
}

/* Cart summary on checkout */
.cart-line {
  display: flex; justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-line:last-of-type { border-bottom: none; }
.cart-line .nm { font-weight: 600; font-size: 0.9rem; }
.cart-line .meta { font-size: 0.78rem; color: var(--slate-500); }

/* Article reader */
.article-reader {
  max-width: 720px;
  margin: 0 auto;
}
.article-reader .hero-img {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}
.article-reader h1 { margin-bottom: 0.75rem; }
.article-reader .meta {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.article-reader p, .article-reader li { font-size: 1.05rem; line-height: 1.75; color: var(--ink-soft); }
.article-reader h2 { margin: 2rem 0 0.75rem; font-size: 1.6rem; }
.article-reader h3 { margin: 1.5rem 0 0.5rem; }

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--slate-500);
}
.empty-state svg { opacity: 0.5; margin-bottom: 1rem; }

/* Tooltip-like pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--slate-100);
  color: var(--slate-700);
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
}

/* Print-friendly */
@media print {
  .navbar, .footer, .announce-banner, .modal-overlay { display: none !important; }
}

/* ============================================
   PAGE-LEVEL EXTRAS (for pages built after design system)
   ============================================ */

/* Soft section variant */
.section-soft { background: var(--bg-soft); }

/* Service/lab/feature grids */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

/* Light, numbered feature blocks for "How it works" rows */
.features-grid-light {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .features-grid-light { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid-light { grid-template-columns: repeat(4, 1fr); } }
.feature-light {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all .2s;
}
.feature-light:hover { border-color: var(--teal-300); box-shadow: var(--shadow-sm); }
.feature-light .feat-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal-600);
  margin-bottom: 0.5rem;
}
.feature-light h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.feature-light p { font-size: 0.9rem; margin: 0; color: var(--ink-soft); }

/* Aliases used by some pages */
.section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.eyebrow-pill { /* same as .eyebrow */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: var(--teal-50);
  color: var(--teal-700);
  border: 1px solid var(--teal-200);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-cta { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* Event grid alias */
.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .event-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .event-grid { grid-template-columns: repeat(3, 1fr); } }

/* Event card extras */
.flyer-emoji {
  font-size: 2.75rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.flyer-tag {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.event-foot {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Form field wrapper */
.form-field { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.form-field .hint { font-size: 0.78rem; color: var(--slate-500); margin-top: 0.2rem; }

/* Two-column form row */
.form-row.cols-2,
.form-row[class*="cols-"] { /* already handled above; placeholder */ }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .form-row:not(.cols-1) { grid-template-columns: 1fr 1fr; }
  .form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr !important; }
  .form-row.cols-1 { grid-template-columns: 1fr; }
}

/* Article reader extras */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal-700);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.article-back:hover { color: var(--navy-900); }

/* Lab result row */
.lab-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.lab-row:last-child { border-bottom: none; }
.lab-row .test { font-weight: 600; color: var(--ink); }
.lab-row .range { color: var(--slate-500); font-size: 0.82rem; }
.lab-row.head {
  background: var(--bg-soft);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate-600);
  font-weight: 700;
}
.lab-row.head .test { color: var(--slate-600); font-weight: 700; }

/* Action button (small ghost in tables) */
.btn-icon {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all .15s;
}
.btn-icon:hover { background: var(--slate-50); border-color: var(--slate-300); }
.btn-icon.danger { color: #991b1b; border-color: #fecaca; }
.btn-icon.danger:hover { background: #fef2f2; }

/* Detail list */
.detail-list { display: grid; gap: 0.75rem; }
.detail-list .row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.detail-list .row:last-child { border-bottom: none; }
.detail-list .row .k { color: var(--slate-500); font-weight: 600; }
.detail-list .row .v { color: var(--ink); }
