:root {
  --bg-deep: #0a0114;
  --bg: #120322;
  --bg-2: #1a0828;
  --bg-3: #240b35;
  --bg-4: #2e1242;

  --neon: #46ff79;
  --neon-soft: #9cffb9;
  --neon-mute: #2eaa50;
  --neon-deep: #0e8a3a;

  --text: #c9f5d6;
  --text-strong: #e8ffef;
  --muted: #7eb692;
  --line: rgba(70, 255, 121, 0.18);
  --line-2: rgba(70, 255, 121, 0.32);

  --warn: #ff7a5a;
  --warn-bg: rgba(255, 122, 90, 0.10);

  --shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.45);
  --glow: 0 0 14px rgba(70, 255, 121, 0.55), 0 0 32px rgba(70, 255, 121, 0.18);
  --glow-soft: 0 0 8px rgba(70, 255, 121, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 560px at 14% 6%, rgba(70, 255, 121, 0.08), transparent 60%),
    radial-gradient(700px 500px at 92% 22%, rgba(46, 18, 66, 0.6), transparent 65%),
    radial-gradient(900px 700px at 50% 110%, rgba(70, 255, 121, 0.06), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 60%, #08010f 100%);
  background-attachment: fixed;
  font-family: "Assistant", "Rubik", Arial, sans-serif;
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(70, 255, 121, 0.04) 0 1px, transparent 1px) 0 0 / 84px 84px,
    linear-gradient(0deg, rgba(70, 255, 121, 0.03) 0 1px, transparent 1px) 0 0 / 84px 84px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}

img { display: block; max-width: 100%; }
a { color: var(--neon-soft); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Rubik", "Assistant", Arial, sans-serif; letter-spacing: 0; }

h1 {
  margin-bottom: 18px;
  color: var(--neon);
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  font-weight: 900;
  line-height: 1.02;
  text-shadow: var(--glow);
}
h2 {
  margin-bottom: 14px;
  color: var(--neon);
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  font-weight: 900;
  line-height: 1.2;
  text-shadow: var(--glow-soft);
}
h3 {
  margin-bottom: 8px;
  color: var(--neon-soft);
  font-size: 1.2rem;
  font-weight: 800;
}
p { color: var(--text); }
strong { color: var(--text-strong); }

::selection { background: var(--neon); color: var(--bg-deep); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 1, 20, 0.86);
  backdrop-filter: blur(20px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--neon);
  font-family: "Rubik", sans-serif;
  font-weight: 900;
  text-decoration: none;
  text-shadow: var(--glow-soft);
}
.brand-home {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 50%;
  outline-offset: 3px;
}
.brand-home:focus-visible { outline: 2px solid var(--neon); }
.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid var(--neon);
  background: var(--bg-2);
  box-shadow: var(--glow);
}
.brand-text {
  margin: 0;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--neon);
  background: transparent;
  font: inherit;
  font-family: "Rubik", sans-serif;
  font-weight: 900;
  text-shadow: var(--glow-soft);
  cursor: pointer;
  transition: 140ms ease;
}
.brand-text:hover {
  border-color: var(--neon-mute);
  background: rgba(70, 255, 121, 0.08);
  box-shadow: var(--glow-soft);
}
.brand-text:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
  border-color: transparent;
}
.nav { display: flex; gap: 6px; }
.nav a, .button, .small-button, .app-tabbar a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}
.nav a {
  color: var(--neon-soft);
  border: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--neon);
  border-color: var(--neon);
  background: rgba(70, 255, 121, 0.10);
  box-shadow: var(--glow-soft);
}

/* ============ HERO ============ */
.hero, .hero-text {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(46px, 9vw, 110px) 0 clamp(40px, 7vw, 90px);
}
.hero-text { max-width: 980px; }
.hero-em {
  display: inline-block;
  position: relative;
  color: var(--neon);
  text-shadow: var(--glow);
}
.hero-em::after {
  content: "";
  position: absolute;
  inset: auto 0 -8px 0;
  height: 4px;
  background: var(--neon);
  box-shadow: var(--glow);
  border-radius: 4px;
}
.lead {
  max-width: 780px;
  color: var(--text-strong);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 600;
}
.eyebrow, .section-kicker, .tag {
  margin: 0 0 12px;
  color: var(--neon);
  font-family: "Rubik", sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: var(--glow-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.button {
  border: 1.5px solid var(--neon);
  transition: 160ms ease;
}
.button.primary {
  color: var(--bg-deep);
  background: var(--neon);
  box-shadow: var(--glow);
}
.button.primary:hover { transform: translateY(-2px); box-shadow: 0 0 22px rgba(70, 255, 121, 0.85); }
.button.secondary {
  color: var(--neon);
  background: transparent;
}
.button.secondary:hover { background: rgba(70, 255, 121, 0.10); box-shadow: var(--glow-soft); }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.hero-tags li {
  padding: 6px 12px;
  border: 1px dashed var(--neon-mute);
  border-radius: 999px;
  color: var(--neon-soft);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ============ MANIFESTO PANELS ============ */
.manifesto, .ribbon-strip, .civic-block, .quote-band, .sources,
.lab-intro, .tag-strip, .catalog-layout, .emergency-banner,
.craft-grid, .trauma-pillars, .help-grid, .panel-stack, .method-grid,
.section, .home-panels, .book-grid {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.manifesto {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 0 64px;
}
.m-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  box-shadow: var(--shadow);
  transition: 160ms ease;
}
.m-card:hover {
  border-color: var(--neon);
  box-shadow: var(--shadow), var(--glow-soft);
  transform: translateY(-2px);
}
.m-card.highlighted {
  border-color: var(--neon);
  background: linear-gradient(135deg, var(--bg-3), var(--bg-4));
  box-shadow: var(--shadow), var(--glow-soft);
}

.quote-band {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line);
  border-inline-start: 5px solid var(--neon);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg));
  box-shadow: var(--shadow);
}
.quote-band > div { display: block; }
.quote-band h2 br { display: block; }

.civic-block {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr);
  gap: 28px;
  padding: 56px 0;
  align-items: start;
}
.civic-block.civic-top {
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 0 0 24px;
  margin-top: -8px;
}
.civic-block.civic-top .civic-head { max-width: 880px; }
.civic-block.civic-top .civic-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.civic-block.civic-top .civic-stats article {
  padding: 24px 22px;
  border: 1.5px solid var(--neon-mute);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  box-shadow: var(--shadow), var(--glow-soft);
}
.civic-block.civic-top .civic-stats strong {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}
.civic-stats { display: grid; gap: 12px; }
.civic-stats article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  box-shadow: var(--shadow-soft);
}
.civic-stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--neon);
  font-family: "Rubik", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: var(--glow);
}
.civic-stats span { color: var(--text); font-weight: 600; }

.ribbon-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 8px 0 56px;
}
.ribbon-strip article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  box-shadow: var(--shadow-soft);
}
.ribbon-strip span { display: block; color: var(--neon); font-weight: 900; font-family: "Rubik", sans-serif; }
.ribbon-strip strong { color: var(--text-strong); }

/* ============ EMERGENCY BANNER ============ */
.emergency-banner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 2px solid var(--neon);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(46, 18, 66, 0.96), rgba(36, 11, 53, 0.96));
  box-shadow: var(--glow), var(--shadow);
}
.emergency-banner > div {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(70, 255, 121, 0.06);
  border: 1px solid var(--line-2);
}
.emergency-banner strong {
  display: block;
  margin-bottom: 4px;
  color: var(--neon);
  font-family: "Rubik", sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  text-shadow: var(--glow);
}
.emergency-banner span { display: block; color: var(--text-strong); font-weight: 600; line-height: 1.4; }

/* ============ TAG STRIP ============ */
.tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 4px 0;
}
.tag-strip button {
  padding: 7px 14px;
  border: 1px dashed var(--neon-mute);
  border-radius: 999px;
  color: var(--neon-soft);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  transition: 140ms ease;
}
.tag-strip button:hover {
  border-style: solid;
  border-color: var(--neon);
  color: var(--bg-deep);
  background: var(--neon);
  box-shadow: var(--glow-soft);
}

/* ============ LAB-NOTE ============ */
.lab-note {
  width: min(1180px, calc(100% - 36px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 18px;
  border: 1px dashed var(--neon-mute);
  border-radius: 14px;
  background: rgba(70, 255, 121, 0.04);
}
.lab-note strong { color: var(--neon); }
.lab-note span { color: var(--text); }

/* ============ LAB INTRO ============ */
.lab-intro {
  display: grid;
  grid-template-columns: minmax(280px, 1fr);
  gap: 20px;
  padding: 56px 0 16px;
}
.section-heading { max-width: 820px; margin-bottom: 24px; }

/* ============ CATALOG ============ */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  padding: 28px 0 84px;
  align-items: start;
}
.catalog-filters {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
  box-shadow: var(--shadow-soft);
}
.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 4px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}
.filters-head h2 { margin: 0; font-size: 1.3rem; }
.filter-field { display: block; }
.filter-field span {
  display: block;
  margin-bottom: 6px;
  color: var(--neon);
  font-family: "Rubik", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
input, select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1.5px solid var(--line-2);
  border-radius: 10px;
  color: var(--text-strong);
  background: var(--bg);
  font: inherit;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--neon) 50%), linear-gradient(135deg, var(--neon) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-inline-end: 32px;
}
select option { background: var(--bg-2); color: var(--text-strong); }
input:focus, select:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(70, 255, 121, 0.18);
}
.filter-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}
.small-button {
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--neon);
  color: var(--neon);
  background: transparent;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: 999px;
}
.small-button:hover { background: var(--neon); color: var(--bg-deep); box-shadow: var(--glow-soft); }

.filter-legend ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}
.filter-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text);
}

.catalog-area { min-height: 320px; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.drug-tile {
  display: grid;
  grid-template-rows: 160px auto;
  text-align: right;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  overflow: hidden;
  transition: 180ms ease;
  box-shadow: var(--shadow-soft);
}
.drug-tile:hover {
  transform: translateY(-3px);
  border-color: var(--neon);
  box-shadow: var(--shadow), var(--glow-soft);
}
.tile-art {
  position: relative;
  background: var(--bg-deep);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.tile-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile-body {
  display: grid;
  gap: 6px;
  padding: 14px 16px 16px;
}
.tile-body h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.05rem;
  font-weight: 800;
}
.tile-type {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.risk-pill {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border: 1px solid var(--neon-mute);
  border-radius: 999px;
  color: var(--neon-soft);
  background: rgba(70, 255, 121, 0.08);
  font-family: "Rubik", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.risk-pill.risk-mod { color: var(--neon-soft); border-color: var(--neon-mute); }
.risk-pill.risk-high { color: #ffd089; border-color: #c98039; background: rgba(201, 128, 57, 0.10); }
.risk-pill.risk-crit { color: #ff9c8a; border-color: var(--warn); background: var(--warn-bg); text-shadow: 0 0 8px rgba(255, 122, 90, 0.45); }

.empty-list {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-2);
  border-radius: 16px;
  background: var(--bg-2);
}

/* ============ MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 3vw, 28px);
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(46, 18, 66, 0.74), rgba(8, 1, 16, 0.92));
  backdrop-filter: blur(8px);
}
.modal-content {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100dvh - clamp(16px, 6vw, 56px));
  overflow: auto;
  border: 1.5px solid var(--neon);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--bg-2) 0%, var(--bg) 100%);
  box-shadow: var(--glow), var(--shadow);
  animation: modalIn 220ms ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1.5px solid var(--neon);
  border-radius: 50%;
  color: var(--neon);
  background: var(--bg-deep);
  cursor: pointer;
  font-family: "Rubik", sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--glow-soft);
}
.modal-close:hover { background: var(--neon); color: var(--bg-deep); }
.modal-body { padding: clamp(22px, 4vw, 40px); display: grid; gap: 22px; }
.modal-header {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.modal-art {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--bg-deep);
  overflow: hidden;
  aspect-ratio: 1;
}
.modal-art img { width: 100%; height: 100%; object-fit: cover; }
.modal-headline h2 { margin: 6px 0 4px; }
.modal-subtype { margin: 0; color: var(--muted); font-weight: 700; }

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.fact {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-3);
}
.fact span {
  display: block;
  color: var(--neon);
  font-family: "Rubik", sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fact strong { color: var(--text-strong); font-weight: 700; }

.modal-section {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(70, 255, 121, 0.03);
}
.modal-section p:last-child { margin-bottom: 0; }
.modal-section.risk-box {
  border: 1.5px solid var(--warn);
  background: var(--warn-bg);
}
.modal-section.risk-box .section-kicker { color: var(--warn); text-shadow: none; }
.risk-emergency {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--warn);
  border-radius: 12px;
  background: rgba(255, 122, 90, 0.18);
  color: var(--text-strong);
  font-weight: 700;
}
.risk-emergency strong { color: var(--warn); }

.modal-sources { padding-top: 4px; }
.modal-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal-source-list a {
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg-3);
  color: var(--neon-soft);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.modal-source-list a:hover {
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: var(--glow-soft);
}
.card-empathy {
  padding: 14px 16px;
  border: 1px dashed var(--neon-mute);
  border-radius: 12px;
  background: rgba(70, 255, 121, 0.06);
  color: var(--text-strong);
  font-weight: 600;
}

/* About modal — text-only, narrower, serif-leaning typography */
.modal.about-modal .modal-content { max-width: 720px; }
.about-body {
  display: grid;
  gap: 14px;
  padding: clamp(28px, 4.5vw, 48px) clamp(24px, 4vw, 44px) clamp(28px, 4.5vw, 44px);
}
.about-body .section-kicker { margin-bottom: 0; }
.about-body h2 {
  margin: 0 0 6px;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.18;
}
.about-text {
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 1.95;
  text-align: justify;
}
.about-signature {
  margin: 6px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--neon-mute);
  color: var(--neon);
  font-family: "Rubik", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  text-shadow: var(--glow-soft);
  text-align: center;
  letter-spacing: 0.04em;
}

body.modal-open { overflow: hidden; }

/* ============ TREATMENT PAGE COMPONENTS ============ */
.section { padding: 64px 0; }
.treatment-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.55fr);
  gap: 24px;
  align-items: end;
}
.care-alert {
  padding: 22px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--bg-3);
  box-shadow: var(--shadow-soft);
}
.care-alert strong { display: block; margin-bottom: 6px; color: var(--neon); font-size: 1.1rem; }
.care-alert span { display: block; color: var(--text); }

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.book-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
  box-shadow: var(--shadow-soft);
}
.book-card h3 { direction: ltr; text-align: left; color: var(--neon); }
.book-card .tag {
  direction: ltr;
  text-align: left;
  display: inline-block;
  margin: 4px 0 12px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(70, 255, 121, 0.18);
  color: #000;
  font-family: "Rubik", "Assistant", sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: none;
  text-shadow:
    0 0 6px rgba(70, 255, 121, 0.95),
    0 0 14px rgba(70, 255, 121, 0.65),
    0 0 22px rgba(70, 255, 121, 0.35);
}

.stats-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-strip { display: grid; gap: 12px; }
.stat-strip div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
}
.stat-strip strong {
  display: block;
  color: var(--neon);
  font-family: "Rubik", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: var(--glow-soft);
}
.stat-strip.rich span { display: block; margin-top: 8px; font-size: 1rem; font-weight: 600; color: var(--text); }

.method-grid, .home-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.panel {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
  box-shadow: var(--shadow-soft);
}
.panel.prominent {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-color: var(--neon);
  background: linear-gradient(160deg, var(--bg-3), var(--bg-4));
  box-shadow: var(--shadow), var(--glow-soft);
}
.panel.prominent h2, .panel.prominent .section-kicker { color: var(--neon); }

/* ============ CRAFT ============ */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.craft-card {
  position: relative;
  padding: 28px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
  box-shadow: var(--shadow-soft);
}
.craft-step {
  position: absolute;
  top: -18px;
  right: 22px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1.5px solid var(--neon);
  border-radius: 50%;
  background: var(--bg-deep);
  color: var(--neon);
  font-family: "Rubik", sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: var(--glow-soft);
}
.craft-card h3 { color: var(--neon); }

/* ============ TRAUMA ============ */
.trauma-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trauma-pillars li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  border-inline-start: 5px solid var(--neon);
  box-shadow: var(--shadow-soft);
}
.trauma-pillars strong {
  display: block;
  margin-bottom: 6px;
  color: var(--neon);
  font-family: "Rubik", sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
}
.trauma-pillars span { color: var(--text); font-weight: 600; }

/* ============ HELP CARDS ============ */
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.help-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  text-decoration: none;
  transition: 160ms ease;
}
.help-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--neon);
  font-family: "Rubik", sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  text-shadow: var(--glow-soft);
}
.help-card span { display: block; color: var(--text); font-weight: 600; }
.help-card:hover {
  transform: translateY(-2px);
  border-color: var(--neon);
  box-shadow: var(--shadow), var(--glow-soft);
}
.help-card.emergency {
  background: linear-gradient(135deg, var(--bg-3), var(--bg-4));
  border-color: var(--neon);
  box-shadow: var(--glow-soft), var(--shadow-soft);
}
.help-card.emergency strong { text-shadow: var(--glow); }

.panel-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* ============ SOURCES ============ */
.sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 32px 0 72px;
  border-top: 1px solid var(--line);
}
.sources.wide { padding: 36px 0 76px; }
.sources h2 { width: 100%; margin-bottom: 4px; font-size: 1.2rem; }
.sources a {
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--neon-soft);
  background: var(--bg-2);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: 140ms ease;
}
.sources a:hover {
  border-color: var(--neon);
  color: var(--neon);
  background: var(--bg-3);
  box-shadow: var(--glow-soft);
}

/* ============ FOOTER + TABBAR ============ */
.site-footer {
  padding: 32px 18px;
  margin-top: 24px;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-deep), #04000a);
  border-top: 1px solid var(--line);
  text-align: center;
}
.site-footer p { margin: 0; }
.site-footer p:first-child { color: var(--neon); text-shadow: var(--glow-soft); font-weight: 800; }

.app-tabbar {
  position: fixed;
  right: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 30;
  display: none;
  width: min(440px, calc(100% - 24px));
  transform: translateX(50%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--neon-mute);
  border-radius: 999px;
  background: rgba(10, 1, 20, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.app-tabbar a {
  min-height: 40px;
  border-radius: 999px;
  color: var(--neon-soft);
  font-size: 0.94rem;
  font-weight: 800;
}
.app-tabbar a:hover, .app-tabbar a[aria-current="page"] {
  color: var(--bg-deep);
  background: var(--neon);
  box-shadow: var(--glow-soft);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-filters { position: static; }
  .modal-header { grid-template-columns: 1fr; }
  .modal-art { aspect-ratio: 16/9; }
}
@media (max-width: 920px) {
  .site-header { position: static; flex-direction: column; align-items: stretch; }
  .brand, .nav { justify-content: center; }
  .emergency-banner { grid-template-columns: 1fr; }
  .manifesto, .craft-grid, .trauma-pillars, .help-grid, .panel-stack, .method-grid, .home-panels, .book-grid, .ribbon-strip, .civic-block { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  body { padding-bottom: 78px; }
  .app-tabbar { display: grid; }
}
@media (max-width: 620px) {
  .brand span { font-size: 0.95rem; }
  .brand-logo { width: 48px; height: 48px; }
  .nav a { flex: 1 1 30%; padding-inline: 10px; }
  h1 { font-size: 2.55rem; }
  .hero-actions .button { width: 100%; }
  .ribbon-strip { grid-template-columns: 1fr 1fr; }
  .civic-block.civic-top .civic-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .civic-block.civic-top .civic-stats article:nth-child(3) { grid-column: 1 / -1; }
  .civic-block.civic-top .civic-stats article { padding: 16px 14px; }

  /* Catalog: single-column horizontal cards (image at the inline-start, text alongside) */
  .catalog-layout { gap: 10px; padding: 12px 0 88px; }
  .catalog-grid { grid-template-columns: 1fr; gap: 8px; }
  .drug-tile {
    grid-template-rows: none;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: stretch;
    min-height: 92px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  }
  .drug-tile:hover { transform: none; }
  .tile-art {
    border-bottom: none;
    border-inline-end: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
  }
  .tile-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .tile-body {
    padding: 10px 14px;
    gap: 3px;
    align-content: center;
    min-width: 0;
  }
  .tile-body h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }
  .tile-type {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .risk-pill {
    margin-top: 4px;
    padding: 2px 9px;
    font-size: 0.72rem;
    letter-spacing: 0;
    width: fit-content;
  }

  /* Filter block: compact 2-col grid above the catalog */
  .catalog-filters {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
  }
  .filters-head { grid-column: 1 / -1; padding: 0 0 6px; }
  .filters-head h2 { font-size: 1.1rem; }
  .filters-head .small-button { font-size: 0.78rem; min-height: 32px; padding: 4px 12px; }
  .catalog-filters > label { grid-column: span 1; }
  .catalog-filters > label:nth-of-type(1),
  .catalog-filters > label:nth-of-type(4) { grid-column: 1 / -1; }
  .filter-field span { margin-bottom: 4px; font-size: 0.7rem; }
  .catalog-filters input, .catalog-filters select { min-height: 40px; padding: 8px 10px; font-size: 0.92rem; }
  .filter-count { grid-column: 1 / -1; margin: 2px 0 0; font-size: 0.82rem; }
  .filter-legend { grid-column: 1 / -1; margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line); }
  .filter-legend ul { gap: 6px; font-size: 0.8rem; }
  .filter-legend li { gap: 8px; }
  .filter-legend .section-kicker { margin-bottom: 6px; }

  /* Modal: solid mobile experience, no overflow, easy close */
  .modal { padding: 8px; }
  .modal-content {
    border-radius: 14px;
    max-height: calc(100dvh - 16px);
  }
  .modal-close { top: 10px; left: 10px; width: 40px; height: 40px; font-size: 1.4rem; }
  .modal-body { padding: 16px 16px 18px; gap: 14px; }
  .modal-header {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding-inline-end: 48px;
    align-items: center;
  }
  .modal-art { aspect-ratio: 1; max-height: 96px; border-radius: 12px; }
  .modal-headline h2 { margin: 4px 0 2px; font-size: 1.45rem; line-height: 1.15; }
  .modal-headline .risk-pill { margin-top: 0; }
  .modal-subtype { font-size: 0.92rem; }
  .modal-grid { grid-template-columns: 1fr; gap: 10px; }
  .fact { padding: 12px 14px; }
  .modal-section { padding: 14px 16px; }
  .risk-emergency { padding: 10px 12px; font-size: 0.92rem; }
  .modal-source-list a { font-size: 0.84rem; padding: 6px 10px; }
  .card-empathy { padding: 12px 14px; font-size: 0.92rem; }
}

@media (max-width: 380px) {
  .drug-tile { grid-template-columns: 76px minmax(0, 1fr); min-height: 80px; }
  .tile-body { padding: 8px 12px; }
  .tile-body h3 { font-size: 0.95rem; }
  .tile-type { font-size: 0.78rem; }
  .risk-pill { font-size: 0.68rem; padding: 1px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
}
