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

:root {
  /* Neutral dark backgrounds — clinical, not sci-fi */
  --bg: #111113;
  --bg-card: #1a1a1f;
  --bg-card-hover: #222228;
  --border: #2e2e38;

  /* Warm off-white text */
  --text: #e8e8ed;
  --text-muted: #8b8b9e;

  /* Accent — professional indigo */
  --accent: #6366f1;
  --accent-light: #818cf8;

  /* Unified 5-level risk scale: blue → red */
  --risk-low: #60a5fa;        /* cool blue — low concern */
  --risk-moderate: #fbbf24;   /* amber — pay attention */
  --risk-high: #f97316;       /* orange — significant risk */
  --risk-dangerous: #ef4444;  /* red — serious danger */
  --risk-deadly: #9f1239;     /* deep crimson — potentially fatal */

  /* Functional colors (non-risk) */
  --info: #60a5fa;            /* informational blue */
  --red: #ef4444;             /* emergency/critical only */
  --red-dark: #dc2626;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'Menlo', monospace;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== HEADER ===== */
header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

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

.tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== EMERGENCY BUTTON ===== */
.btn-emergency {
  background: var(--red-dark);
  color: white;
  border: 2px solid var(--red);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-emergency:hover {
  background: var(--red);
  transform: scale(1.05);
}

.emergency-icon { font-size: 1.1rem; }

/* ===== SEARCH BAR (in header) ===== */
.header-search {
  flex: 1;
  max-width: 400px;
  margin: 0 1.5rem;
}

.search-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.55rem 0.8rem 0.55rem 2.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input::placeholder {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: var(--bg-card);
}

.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.search-result-item {
  padding: 0.7rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  transition: background 0.15s;
}

.search-result-item:hover,
.search-result-item.active {
  background: var(--bg-card-hover);
}

.search-result-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.search-result-match {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.search-result-match mark {
  background: rgba(99, 102, 241, 0.3);
  color: var(--accent-light);
  padding: 0 2px;
  border-radius: 2px;
}

.search-no-results {
  padding: 0.8rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ===== EMERGENCY BAR ===== */
.emergency-bar {
  background: var(--red-dark);
  color: white;
  padding: 0.8rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  text-align: center;
  font-weight: 600;
}

.emergency-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.emergency-pulse {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.emergency-exit-btn {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}

/* ===== MAIN LAYOUT ===== */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

/* ===== SKIP TO CONTENT (a11y) ===== */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-to-content:focus { top: 0; }

/* ===== LOADING STATE ===== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: opacity 0.3s;
}
.loading-overlay.fade-out { opacity: 0; pointer-events: none; }
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: var(--text-muted); font-size: 0.9rem; }

/* ===== SUBSTANCE NAV ===== */
.substance-nav { margin-bottom: 1rem; }

/* Dropdown (visible on mobile, hidden on desktop) */
.substance-select {
  display: none;
  width: 100%;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 0.5rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}
.substance-select:focus { border-color: var(--accent); outline: none; }
.substance-select optgroup { font-weight: 600; color: var(--text-muted); }
.substance-select option { font-weight: 400; color: var(--text); background: var(--bg-card); }

/* Pill strip (single row, horizontal scroll) */
.substance-pills-wrapper {
  position: relative;
}
.substance-pills-wrapper::before,
.substance-pills-wrapper::after {
  content: '›';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}
.substance-pills-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 40%, transparent);
  content: '‹';
}
.substance-pills-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 40%, transparent);
}
.substance-pills-wrapper.scroll-right::after { opacity: 1; }
.substance-pills-wrapper.scroll-left::before { opacity: 1; }

.substance-pills-strip {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}
.substance-pills-strip::-webkit-scrollbar { display: none; }

.substance-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.substance-pill:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.substance-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ===== DISCLAIMER ===== */
.disclaimer {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--risk-moderate);
  margin-bottom: 1.5rem;
}

/* ===== CONTENT GRID ===== */
.content-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .body-map-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .header-search {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
    margin: 0;
  }
  .substance-nav { margin-bottom: 0.75rem; }
  .substance-select { display: block; }
  .substance-pills-strip { display: none; }
  main { padding: 1rem; }
  .tab-content { padding: 1rem; }
  .effects-grid { grid-template-columns: 1fr; }
  .extended-use-grid { grid-template-columns: 1fr; }
  .addiction-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  header { padding: 0.75rem 1rem; }
  .logo h1 { font-size: 1.2rem; }
  .tagline { font-size: 0.65rem; }
  .btn-emergency { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
  .btn-emergency .emergency-icon { display: none; }
  .substance-header h2 { font-size: 1.4rem; }
  .substance-header { padding: 1rem; }
  .tab { padding: 0.5rem 0.7rem; font-size: 0.72rem; }
  #body-map { max-width: 100%; }
  .organ-label-ext { font-size: 14px; }
  .timeline-clock-wrapper { width: 180px; height: 180px; }
}

/* ===== BODY MAP ===== */
.body-map-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  align-self: start;
}

.panel-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.body-map-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#body-map {
  width: 100%;
  max-width: 620px;
}

.organ {
  fill: #25252d;
  stroke: #38384a;
  stroke-width: 1;
  cursor: pointer;
  transition: all 0.4s ease;
}

.organ-eye {
  stroke: #ccc;
  stroke-width: 1.5;
}

.organ-brain {
  stroke-dasharray: 4 2;
}

.organ-outline {
  stroke: #38384a;
}

.organ-line {
  stroke: #38384a;
  stroke-dasharray: 4 4;
}

.organ-limb {
  stroke: #38384a;
}

.organ-label {
  fill: #66667a;
  font-size: 8px;
  text-anchor: middle;
  pointer-events: none;
  font-family: var(--font);
  transition: fill 0.3s;
  display: none;
}

.organ-label-side {
  text-anchor: start;
}

/* External labels with leader lines */
.organ-label-ext {
  fill: #ddd;
  font-size: 18px;
  font-family: var(--font);
  cursor: pointer;
  transition: fill 0.3s;
}
.organ-label-ext:hover { fill: #fff; }
.organ-label-ext.label-left { text-anchor: end; }
.organ-label-ext.label-right { text-anchor: start; }
.label-line {
  stroke: #444;
  stroke-width: 0.8;
  stroke-dasharray: 3 2;
  pointer-events: none;
  transition: stroke 0.3s;
}

/* Severity states */
.organ[data-severity="low"] { fill: rgba(96, 165, 250, 0.25); stroke: var(--risk-low); }
.organ[data-severity="moderate"] { fill: rgba(251, 191, 36, 0.3); stroke: var(--risk-moderate); }
.organ[data-severity="high"] { fill: rgba(249, 115, 22, 0.35); stroke: var(--risk-high); }
.organ[data-severity="dangerous"] { fill: rgba(239, 68, 68, 0.4); stroke: var(--risk-dangerous); }

/* Active/selected organ: solid fill, no transparency */
.organ.active[data-severity="low"] { fill: #60a5fa; }
.organ.active[data-severity="moderate"] { fill: #fbbf24; }
.organ.active[data-severity="high"] { fill: #f97316; }
.organ.active[data-severity="dangerous"] { fill: #ef4444; }
.organ-outline.active[data-severity] { fill: none; stroke-width: 6; }
.organ-limb.active[data-severity="low"] { stroke: #60a5fa; stroke-width: 22; }
.organ-limb.active[data-severity="moderate"] { stroke: #fbbf24; stroke-width: 22; }
.organ-limb.active[data-severity="high"] { stroke: #f97316; stroke-width: 22; }
.organ-limb.active[data-severity="dangerous"] { stroke: #ef4444; stroke-width: 22; }

/* Selected label: red circle effect */
.organ-label-ext.label-highlight { fill: #fff; font-weight: 700; }
.label-line.label-highlight { stroke: #dc2626; stroke-width: 1.5; stroke-dasharray: none; }
.organ-label-ext.label-hover { fill: #c4b5fd; }
.label-line.label-hover { stroke: #c4b5fd; stroke-width: 1.2; }

/* Body impact level label */
#impact-level { transition: fill 0.3s ease; }

.organ-outline[data-severity="low"] { fill: none; stroke: var(--risk-low); }
.organ-outline[data-severity="moderate"] { fill: none; stroke: var(--risk-moderate); }
.organ-outline[data-severity="high"] { fill: none; stroke: var(--risk-high); }
.organ-outline[data-severity="dangerous"] { fill: none; stroke: var(--risk-dangerous); }

.organ-line[data-severity="low"] { stroke: var(--risk-low); }
.organ-line[data-severity="moderate"] { stroke: var(--risk-moderate); }
.organ-line[data-severity="high"] { stroke: var(--risk-high); }
.organ-line[data-severity="dangerous"] { stroke: var(--risk-dangerous); }

.organ-limb[data-severity="low"] { stroke: var(--risk-low); }
.organ-limb[data-severity="moderate"] { stroke: var(--risk-moderate); }
.organ-limb[data-severity="high"] { stroke: var(--risk-high); }
.organ-limb[data-severity="dangerous"] { stroke: var(--risk-dangerous); }

.organ:hover, .organ.active {
  filter: brightness(1.4);
  stroke-width: 2;
}

/* Severity Legend */
.severity-legend {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Organ Detail */
.organ-detail {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.organ-detail h3 {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.organ-detail-severity {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ===== DETAIL PANEL ===== */
.detail-panel {
  min-width: 0;
}

.substance-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.substance-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.substance-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.chemical-name {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.aliases {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.alias-tag {
  background: rgba(136, 136, 170, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(136, 136, 170, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
}

.drug-class {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.4rem;
}

.class-tag {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-light);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.25rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs-wrapper {
  position: relative;
}
.tabs-wrapper::before,
.tabs-wrapper::after {
  content: '›';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}
.tabs-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-card) 40%, transparent);
  content: '‹';
  border-radius: 8px 0 0 8px;
}
.tabs-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-card) 40%, transparent);
  border-radius: 0 8px 8px 0;
}
.tabs-wrapper.scroll-right::after { opacity: 1; }
.tabs-wrapper.scroll-left::before { opacity: 1; }

.tab {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}

.tab:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.tab.active {
  background: var(--accent);
  color: white;
}

.tab[data-tab="emergency"] {
  color: var(--red);
}

.tab[data-tab="emergency"].active {
  background: var(--red-dark);
  color: white;
}

/* ===== TAB CONTENT ===== */
.tab-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.tab-pane h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-light);
}

.tab-pane h3:first-child { margin-top: 0; }

.tab-pane p {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.tab-pane ul {
  list-style: none;
  padding: 0;
}

.tab-pane ul li {
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
  font-size: 0.85rem;
  line-height: 1.5;
}

.tab-pane ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-light);
}

/* ===== EFFECTS GRID ===== */
.effects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 700px) {
  .effects-grid { grid-template-columns: 1fr; }
}

.effect-col {
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  padding: 1rem;
}

.effect-col h3 { margin-top: 0; font-size: 0.85rem; }

.effect-desired h3 { color: var(--accent-light); }
.effect-neutral h3 { color: var(--text-muted); }
.effect-negative h3 { color: var(--risk-high); }

.effect-desired li::before { color: var(--accent-light); }
.effect-neutral li::before { color: var(--text-muted); }
.effect-negative li::before { color: var(--risk-high); }

.effect-serious {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 1rem;
}

.effect-serious h3 { color: var(--risk-dangerous); margin-top: 0; }
.effect-serious li::before { color: var(--risk-dangerous); }

/* ===== DOSAGE ===== */
.dosage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.dosage-table th {
  text-align: left;
  padding: 0.6rem 0.8rem;
  background: rgba(99, 102, 241, 0.1);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-light);
}

.dosage-table td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid rgba(42, 42, 74, 0.5);
}

.dosage-table tr:last-child td { border-bottom: none; }

.dose-level {
  font-weight: 600;
  font-size: 0.8rem;
}

.dose-threshold { color: var(--risk-low); }
.dose-light { color: var(--risk-low); }
.dose-common { color: var(--risk-moderate); }
.dose-strong { color: var(--risk-high); }
.dose-heavy { color: var(--risk-dangerous); }

.dosage-warning {
  background: rgba(251, 191, 36, 0.08);
  border-left: 3px solid var(--risk-moderate);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1rem;
}

/* ===== TIMELINE ===== */
/* ===== TIMELINE CLOCK ===== */
.timeline-visual {
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== TIMELINE BARS ===== */
.tl-bars {
  margin-bottom: 1rem;
}

/* Stacked bar — all phases in one row */
.tl-stacked-track {
  display: flex;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}
.tl-stacked-seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 2%;
  opacity: 0.9;
  transition: opacity 0.15s;
  cursor: pointer;
  position: relative;
}
.tl-stacked-seg:hover { opacity: 1; }
.tl-seg-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}
.tl-seg-time {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Time axis */
.tl-axis {
  position: relative;
  height: 1.2rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.tl-axis span {
  position: absolute;
  transform: translateX(-50%);
}
.tl-axis span:first-child { left: 0; transform: none; }
.tl-axis span:last-child { right: 0; left: auto; transform: none; }

/* Individual phase detail rows */
.tl-phase-row {
  margin-bottom: 1rem;
}
.tl-phase-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.tl-phase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tl-phase-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}
.tl-phase-duration {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
}
.tl-phase-bar-wrap {
  height: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}
.tl-phase-bar {
  height: 100%;
  border-radius: 4px;
  opacity: 0.85;
}
.tl-phase-effects {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.75rem;
}
.tl-phase-effects li {
  font-size: 0.78rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 0.75rem;
}
.tl-phase-effects li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* Total duration */
.tl-total {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 0.5rem;
}

.timeline-notes {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-align: center;
}

/* ===== INTERACTIONS ===== */
.interaction-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.interaction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.interaction-substance {
  font-weight: 600;
  font-size: 0.95rem;
}
.interaction-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
  transition: opacity 0.15s;
}
.interaction-link:hover { opacity: 0.8; }

.risk-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Unified interaction risk badges */
.risk-low { background: rgba(96, 165, 250, 0.15); color: var(--risk-low); }
.risk-moderate { background: rgba(251, 191, 36, 0.2); color: var(--risk-moderate); }
.risk-high { background: rgba(249, 115, 22, 0.2); color: var(--risk-high); }
.risk-dangerous { background: rgba(239, 68, 68, 0.25); color: var(--risk-dangerous); }
.risk-deadly { background: rgba(159, 18, 57, 0.4); color: #fda4af; border: 1px solid rgba(159,18,57,0.6); }
.risk-unknown { background: rgba(136, 136, 170, 0.15); color: var(--text-muted); }

.interaction-mechanism {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.interaction-action {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.08);
}

/* ===== SAFETY / HARM REDUCTION ===== */
.safety-list li {
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  border-bottom: 1px solid rgba(42, 42, 74, 0.3);
}

.safety-list li:last-child { border-bottom: none; }

.safety-list li::before {
  content: '→';
  color: var(--info);
}

.safety-critical {
  font-weight: 600;
  color: var(--risk-dangerous);
}

/* ===== EMERGENCY TAB ===== */
.emergency-section {
  margin-bottom: 1.5rem;
}

.emergency-section h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.emergency-normal h3 { color: var(--info); }
.emergency-watch h3 { color: var(--risk-moderate); }
.emergency-call h3 { color: var(--risk-dangerous); }

.emergency-call {
  background: rgba(220, 38, 38, 0.08);
  border: 2px solid rgba(220, 38, 38, 0.3);
  border-radius: 8px;
  padding: 1rem;
}

.emergency-actions {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  padding: 1rem;
}

.ems-script {
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 8px;
  padding: 1rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ===== AT-A-GLANCE (overview pills + addiction meter) ===== */
.overview-glance {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.glance-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.glance-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  min-width: 5.5rem;
  padding-top: 0.3rem;
  flex-shrink: 0;
}

.glance-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.glance-pill {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.glance-pill-desired {
  background: rgba(96, 165, 250, 0.12);
  color: var(--risk-low);
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.glance-pill-negative {
  background: rgba(239, 68, 68, 0.1);
  color: var(--risk-dangerous);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.glance-pill-deadly {
  background: rgba(159, 18, 57, 0.25);
  color: #fda4af;
  border: 1px solid rgba(159, 18, 57, 0.5);
  font-weight: 600;
}

.glance-section {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.glance-section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}

.glance-meters {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.addiction-meter {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.addiction-segments {
  display: flex;
  gap: 3px;
}

.addiction-seg {
  width: 24px;
  height: 8px;
  border-radius: 2px;
  transition: background 0.3s;
}

.addiction-meter-label {
  font-size: 0.8rem;
  font-weight: 600;
}

.glance-addiction-profile {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.glance-ap-row {
  display: flex;
  gap: 0.6rem;
  line-height: 1.45;
}

.glance-ap-key {
  min-width: 5.5rem;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding-top: 0.1rem;
}

.glance-ap-val {
  color: var(--text);
}

@media (max-width: 600px) {
  .glance-row {
    flex-direction: column;
    gap: 0.3rem;
  }
  .glance-label {
    min-width: auto;
    padding-top: 0;
  }
  .glance-ap-row {
    flex-direction: column;
    gap: 0.15rem;
  }
  .glance-ap-key {
    min-width: auto;
  }
}

/* ===== ROUTE CARDS ===== */
.route-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.route-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.route-risk {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 0.5rem;
}

/* Unified route risk badges */
.route-risk-low { background: rgba(96, 165, 250, 0.15); color: var(--risk-low); }
.route-risk-moderate { background: rgba(251, 191, 36, 0.2); color: var(--risk-moderate); }
.route-risk-high { background: rgba(249, 115, 22, 0.2); color: var(--risk-high); }
.route-risk-dangerous { background: rgba(239, 68, 68, 0.25); color: var(--risk-dangerous); }
.route-risk-deadly { background: rgba(159, 18, 57, 0.35); color: #fda4af; }

.route-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.route-notes {
  font-size: 0.8rem;
  margin-top: 0.25rem;
  color: var(--risk-moderate);
}

/* ===== ADDICTION PROFILE ===== */
.addiction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.addiction-item {
  background: rgba(255,255,255,0.02);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

.addiction-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.addiction-value {
  font-weight: 600;
  margin-top: 0.2rem;
}

/* ===== EXTENDED USE ===== */
.extended-use-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .extended-use-grid { grid-template-columns: 1fr; }
}

.extended-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
}

.extended-col h3 {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.extended-col.body-effects { border-top: 3px solid var(--risk-high); }
.extended-col.mind-effects { border-top: 3px solid var(--accent-light); }

.extended-col ul {
  list-style: none;
  padding: 0;
}

.extended-col li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.5;
}

.extended-col li:last-child { border-bottom: none; }

.extended-col li::before {
  content: "→ ";
  color: var(--text-muted);
}

.extended-meta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
  margin-top: 0;
}

.extended-meta h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.extended-meta p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

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

.extended-meta strong {
  color: var(--text);
}

/* ===== WITHDRAWAL & CESSATION ===== */
.withdrawal-section, .cessation-section, .addiction-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
  margin-top: 1.5rem;
}
.withdrawal-section h3, .cessation-section h3, .addiction-section h3 {
  margin-bottom: 0.8rem;
}
.withdrawal-section h4, .cessation-section h4, .addiction-section h4 {
  margin: 0.8rem 0 0.4rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.withdrawal-section ul, .cessation-section ul {
  padding-left: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.7;
}
.withdrawal-col { margin-bottom: 0.5rem; }

.cessation-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.cessation-flag {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.flag-critical { background: rgba(239,68,68,0.15); color: var(--risk-dangerous); border: 1px solid rgba(239,68,68,0.35); }
.flag-warn { background: rgba(249,115,22,0.12); color: var(--risk-high); border: 1px solid rgba(249,115,22,0.3); }
.flag-ok { background: rgba(96,165,250,0.1); color: var(--info); border: 1px solid rgba(96,165,250,0.25); }

.cessation-summary {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
}
.cessation-critical { border-top: 3px solid var(--risk-dangerous); }
.cessation-recommended { border-top: 3px solid var(--risk-high); }
.cessation-low { border-top: 3px solid var(--info); }

.addiction-notes {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.addiction-notes p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ===== EMERGENCY OVERLAY ===== */
.emergency-overlay {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 999;
  overflow-y: auto;
  padding: 2rem;
}

.emergency-content {
  max-width: 800px;
  margin: 0 auto;
}

.emergency-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--red-dark);
}

.emergency-header h1 {
  color: var(--red);
  font-size: 2rem;
}

.btn-close-emergency {
  background: rgba(220, 38, 38, 0.2);
  color: var(--red);
  border: 1px solid var(--red);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}

.emergency-substance-select {
  margin-bottom: 2rem;
}

.emergency-substance-select label {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.emergency-pills .substance-pill {
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
}

/* ===== ROUTE TIMELINE LABELS ===== */
.route-timeline-label {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}
.route-timeline-label:first-child {
  margin-top: 0;
}

/* ===== PHASE EFFECT TOOLTIP ===== */
.phase-tooltip {
  position: fixed;
  z-index: 1000;
  background: #1a1a2e;
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  max-width: 320px;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.phase-tooltip.hidden {
  display: none;
}
.phase-tooltip-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: #e0e0f0;
  margin-bottom: 0.4rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.phase-tooltip-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.phase-tooltip-list li {
  font-size: 0.78rem;
  color: #c0c0d0;
  padding: 0.2rem 0;
  line-height: 1.3;
}
.phase-tooltip-list li::before {
  content: '•';
  color: var(--accent);
  margin-right: 0.4rem;
}

/* Phase arcs hover effect */
.phase-arc[data-effects]:hover {
  opacity: 1 !important;
  filter: brightness(1.3);
}

/* Hover hint */
.timeline-hover-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
  opacity: 0.7;
}

.emergency-guide {
  font-size: 1.1rem;
  line-height: 1.8;
}

.emergency-guide h2 {
  color: var(--red);
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.emergency-guide h2:first-child { margin-top: 0; }

.emergency-guide .call-911-box {
  background: rgba(220, 38, 38, 0.15);
  border: 2px solid var(--red);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
  font-size: 1.2rem;
}

.emergency-guide .call-911-box a {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
}

.emergency-guide .action-step {
  background: rgba(99, 102, 241, 0.1);
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  border-radius: 0 8px 8px 0;
}

.emergency-guide .ems-box {
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  font-family: var(--mono);
  font-size: 1rem;
}

/* ===== FOOTER ===== */
footer {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

footer a { color: var(--accent-light); }
.footer-disclaimer {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--risk-dangerous);
}
.footer-sources { margin-top: 0.5rem; }

/* ===== DETECTION CALENDAR ===== */
.detection-method {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.detection-method h3 { margin: 0 0 0.5rem; color: var(--text); }
.detection-calendars {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}
.det-calendar {
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 0.75rem;
  min-width: 220px;
}
.det-cal-title {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.det-cal-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}
.det-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  color: #555;
  font-weight: 500;
}
.det-day.det-high { background: rgba(239, 68, 68, 0.6); color: #fff; }
.det-day.det-med { background: rgba(249, 115, 22, 0.5); color: #fff; }
.det-day.det-low { background: rgba(251, 191, 36, 0.3); color: #ddd; }
.det-legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.det-legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.det-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
  display: inline-block;
}
.det-dot.det-high { background: rgba(239, 68, 68, 0.6); }
.det-dot.det-med { background: rgba(249, 115, 22, 0.5); }
.det-dot.det-low { background: rgba(251, 191, 36, 0.3); }

/* ===== SHARE BUTTON ===== */
.share-btn {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
  margin-top: 0.75rem;
}
.share-btn:hover { color: var(--text); border-color: var(--accent); }
.share-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.share-toast.visible { opacity: 1; }

/* ===== DETECTION BAR (horizontal) ===== */
.det-bar-container {
  margin-top: 0.75rem;
}
.det-bar-track {
  height: 28px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.3rem;
}
.det-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 6px;
  background: linear-gradient(to right, var(--risk-dangerous), var(--risk-high), var(--risk-moderate), transparent);
}
.det-bar-label {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}
.det-bar-days {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* ===== COLOR-BLIND SEVERITY PATTERNS ===== */
.organ[data-severity="low"] { stroke-dasharray: none; }
.organ[data-severity="moderate"] { stroke-dasharray: 6 2 2 2; }
.organ[data-severity="high"] { stroke-dasharray: 8 3; }
.organ[data-severity="dangerous"] { stroke-dasharray: none; stroke-width: 2.5; }

/* ===== UTILITIES ===== */
.hidden { display: none !important; }

/* ===== EMERGENCY MODE BODY ===== */
body.emergency-mode {
  padding-top: 50px;
}

body.emergency-mode header { top: 50px; }

/* ===== PRINT ===== */
@media print {
  body { background: white; color: #222; }
  header, .substance-nav, .emergency-bar, .emergency-overlay,
  .btn-emergency, .share-btn, .tabs, .body-map-panel,
  .loading-overlay, .skip-to-content { display: none !important; }
  .content-grid { grid-template-columns: 1fr; }
  .tab-pane { display: block !important; page-break-inside: avoid; margin-bottom: 1rem; }
  .tab-content { border: none; padding: 0; background: white; }
  .substance-header { background: white; border: 1px solid #ccc; }
  .tab-pane h3 { color: #333; }
  .footer-disclaimer { background: #fef2f2; border-color: #dc2626; }
}
