:root {
  --ink: #16272e;
  --paper: #f3f5f2;
  --amber: #b87333;
  --amber-text: #8a4e1c;
  --teal: #0f6e6b;
  --mist: #dce6e4;
  --signal: #b4472e;
  --muted: #4e6066;
  --surface: #e9eeeb;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); color: var(--ink);
  padding: 10px 14px; z-index: 20;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- shared header ---------- */
.site-header { background: var(--ink); color: var(--paper); }
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  color: var(--paper); font-size: 1.16rem; font-weight: 600;
  letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--paper); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-links { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav-links a {
  color: #cad6d4; text-decoration: none; font-size: 0.88rem; white-space: nowrap;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--paper); border-color: #6d8589; }
.nav-links a[aria-current="page"] { color: var(--paper); border-color: var(--amber); }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  font: inherit; font-size: 0.88rem; color: #cad6d4;
  background: transparent; border: 0; border-bottom: 1px solid transparent;
  padding: 0 0 3px; cursor: pointer; white-space: nowrap;
}
.nav-dropdown-toggle:hover { color: var(--paper); border-color: #6d8589; }
.nav-dropdown.is-current > .nav-dropdown-toggle { color: var(--paper); border-color: var(--amber); }
.caret { display: inline-block; font-size: 0.7rem; margin-left: 4px; }
.nav-dropdown.open .caret { transform: rotate(180deg); }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 14px); left: -12px;
  min-width: 190px; list-style: none; margin: 0; padding: 6px 0;
  background: var(--ink); border: 1px solid #40555d; z-index: 16;
}
.nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-divider { border-top: 1px solid #40555d; margin: 6px 0; }
.dropdown-label {
  font-size: 0.69rem; font-weight: 600; letter-spacing: 0.05em;
  color: #8fa4a7; padding: 11px 14px 4px;
}
.dropdown-label:first-child { padding-top: 6px; }
.dropdown-menu a {
  display: block; padding: 9px 14px; border-bottom: 0 !important;
  color: #cad6d4; text-decoration: none; font-size: 0.85rem;
}
.dropdown-menu a:hover, .dropdown-menu a[aria-current="page"] {
  color: var(--paper); background: #253b43; border-color: transparent;
}
.nav-toggle {
  display: none; font: inherit; font-size: 0.88rem;
  background: transparent; color: var(--paper);
  border: 1px solid #6d8589; border-radius: 2px; padding: 6px 11px; cursor: pointer;
}

/* ---------- shared page furniture ---------- */
.page-hero {
  max-width: 1180px; margin: 0 auto; padding: 44px 28px 28px;
  border-bottom: 1px solid var(--ink);
}
.page-hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.05; margin: 0 0 12px; letter-spacing: -0.01em;
}
.page-hero .lede { font-size: 1.05rem; color: var(--muted); margin: 0; max-width: 64ch; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 36px 28px 72px; }
.prose { max-width: 68ch; }
.prose h2 {
  font-family: "Instrument Serif", Georgia, serif; font-weight: 400;
  font-size: 1.8rem; margin: 40px 0 10px;
}
.prose h2 .chapter {
  font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 0.78rem;
  font-weight: 600; color: var(--amber-text); margin-right: 8px;
  vertical-align: 3px;
}
.toc-list {
  list-style: none; padding: 14px 0 0; margin: 0 0 28px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 24px;
  border-top: 1px solid var(--mist);
}
.toc-list li { margin: 0; font-size: 0.88rem; }
.toc-list a { text-decoration: none; }
.toc-list a:hover { text-decoration: underline; }
.prose h3 { font-size: 1rem; margin: 24px 0 6px; }
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 20px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.notice {
  border-left: 2px solid var(--signal); padding: 4px 0 4px 14px;
  color: var(--signal); font-size: 0.86rem; margin: 24px 0;
}
.dropped-notice {
  background: var(--signal); color: var(--paper);
  border-left: 5px solid var(--ink);
  padding: 18px 20px 16px; margin: 0 0 26px;
  max-width: 72ch;
}
.dropped-notice p { margin: 0 0 9px; font-size: 0.92rem; line-height: 1.5; }
.dropped-notice p:last-child { margin-bottom: 0; }
.dropped-notice__head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 1.02rem; margin: 0 0 10px;
}
.dropped-notice__mark {
  background: var(--paper); color: var(--signal);
  font-size: 0.72rem; font-weight: 700;
  padding: 2px 8px; border-radius: 2px;
}
.dropped-notice a { color: var(--paper); text-decoration: underline; }
.dropped-notice .dropped-notice__source { font-size: 0.78rem; }
.asof-inline { font-size: 0.82rem; color: var(--muted); }

/* ---------- location plates (pharmacy profiles) ---------- */
.prose .loc-intro { color: var(--muted); font-size: 0.9rem; max-width: 60ch; }
.loc-plate { border: 1px solid var(--ink); background: var(--paper); margin: 0 0 24px; }
.loc-plate-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  padding: 11px 14px; background: var(--surface); border-bottom: 1px solid var(--ink);
}
.loc-label { font-size: 0.78rem; font-weight: 600; color: var(--amber-text); }
.loc-addr { font-size: 0.92rem; }
.loc-map { height: 300px; background: var(--surface); }
.loc-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.loc-plate-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  padding: 10px 14px; border-top: 1px solid var(--mist); font-size: 0.86rem;
}
.prose .loc-nomap { margin: 0; padding: 28px 16px; color: var(--muted); text-align: center; }
.btn {
  display: inline-block; font: inherit; font-size: 0.9rem; font-weight: 500;
  padding: 9px 16px; border-radius: 2px; text-decoration: none; cursor: pointer;
}
.btn--primary { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn--primary:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn--secondary { background: transparent; color: var(--ink); border: 1px solid var(--muted); }
.btn--secondary:hover { border-color: var(--teal); color: var(--teal); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- landing ---------- */
.hero {
  max-width: 1180px; margin: 0 auto; padding: 58px 28px 56px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 64px; align-items: center;
}
.hero h1 {
  font-family: "Instrument Serif", Georgia, serif; font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 4.3rem); line-height: 1.02;
  letter-spacing: -0.02em; margin: 0 0 20px;
}
.hero .lede { font-size: 1.1rem; color: var(--muted); max-width: 54ch; margin: 0; }
.tagline { font-size: 0.85rem; color: var(--teal); margin: 14px 0 0; }
.vial-label {
  border: 1px solid var(--ink); background: var(--surface);
  position: relative; padding: 26px 28px 24px 34px;
}
.vial-label::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--amber);
}
.vial-label .label-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.72rem; letter-spacing: 0.08em; border-bottom: 1px solid var(--ink);
  padding-bottom: 10px; text-transform: none;
}
.vial-label .label-title {
  font-family: "Instrument Serif", Georgia, serif; font-size: 1.9rem;
  line-height: 1.15; margin: 18px 0 4px;
}
.vial-label .label-sub { font-size: 0.85rem; color: var(--muted); margin: 0 0 20px; }
.vial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; }
.vial-grid div { border-top: 1px solid var(--mist); padding-top: 8px; }
.vial-grid dt { font-size: 0.72rem; color: var(--muted); margin: 0 0 2px; }
.vial-grid dd { margin: 0; font-size: 0.98rem; font-weight: 500; }
.vial-label .label-foot { margin: 20px 0 0; font-size: 0.72rem; color: var(--muted); }

.section-band { border-top: 1px solid var(--mist); }
.section-inner { max-width: 1180px; margin: 0 auto; padding: 42px 28px; }
.section-inner h2 {
  font-family: "Instrument Serif", Georgia, serif; font-weight: 400;
  font-size: 1.9rem; margin: 0 0 22px;
}
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.link-card {
  border-top: 2px solid var(--ink); padding-top: 14px; display: block;
  text-decoration: none; color: inherit;
}
.link-card:hover { border-color: var(--amber); }
.link-card h3 { font-size: 1.05rem; margin: 0 0 6px; }
.link-card p { font-size: 0.88rem; color: var(--muted); margin: 0 0 12px; }
.link-card .go { font-size: 0.84rem; color: var(--teal); font-weight: 500; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }

/* ---------- filter + results (options page) ---------- */
.layout {
  max-width: 1180px; margin: 0 auto; padding: 36px 28px 64px;
  display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 46px; align-items: start;
}
.filter-toggle { display: none; }
.filters-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--ink); padding-bottom: 10px;
}
.filters h2 { font-family: "Instrument Serif", Georgia, serif; font-size: 1.45rem; font-weight: 400; margin: 0; }
.reset-button {
  border: 0; background: none; color: var(--teal); font: inherit;
  font-size: 0.82rem; cursor: pointer; padding: 2px;
}
.reset-button:hover { text-decoration: underline; }
.filter-group { border: 0; border-bottom: 1px solid var(--mist); margin: 0; padding: 20px 0; }
.filter-group legend {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink);
  padding: 0; margin-bottom: 10px;
}
.filter-group select, .filter-group input[type="search"] {
  width: 100%; font: inherit; font-size: 0.9rem; padding: 8px 10px;
  border: 1px solid var(--mist); border-radius: 2px; background: var(--paper); color: var(--ink);
}
.field-note { margin: 8px 0 0; font-size: 0.76rem; color: var(--muted); line-height: 1.4; }
.choice-row { display: grid; gap: 8px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: block; font-size: 0.88rem; padding: 5px 0 5px 26px; position: relative; }
.choice span::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 13px; height: 13px;
  border: 1px solid var(--muted); border-radius: 50%;
}
.choice input:checked + span::before {
  background: var(--teal); border-color: var(--teal); box-shadow: inset 0 0 0 3px var(--paper);
}
.choice input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { position: relative; cursor: pointer; }
.chip span {
  display: inline-block; font-size: 0.83rem; padding: 4px 9px;
  border: 1px solid var(--mist); border-radius: 2px; background: transparent;
}
.chip input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.filters-footnote { font-size: 0.76rem; color: var(--muted); line-height: 1.5; margin: 20px 0 0; }

.results-head {
  display: flex; align-items: end; justify-content: space-between; gap: 20px;
  padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 4px;
}
.results-head h2 { font-family: "Instrument Serif", Georgia, serif; font-size: 1.9rem; font-weight: 400; margin: 0; line-height: 1.1; }
.result-count { margin: 4px 0 0; font-size: 0.85rem; color: var(--muted); }
.sort-label { font-size: 0.8rem; color: var(--muted); display: grid; gap: 4px; }
.sort-label select {
  font: inherit; font-size: 0.88rem; color: var(--ink);
  border: 1px solid var(--mist); border-radius: 2px; background: var(--paper); padding: 6px 8px;
}
.results-actions { display: flex; flex-wrap: wrap; align-items: end; justify-content: end; gap: 8px 14px; }
.copy-search {
  font: inherit; font-size: 0.8rem; font-weight: 500; color: var(--teal);
  background: transparent; border: 1px solid var(--teal); border-radius: 2px;
  padding: 7px 11px; cursor: pointer;
}
.copy-search:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.share-status { font-size: 0.76rem; color: var(--muted); min-height: 1.2em; }

.option { position: relative; border-bottom: 1px solid var(--mist); padding: 20px 6px 18px 20px; }
.option::before {
  content: ""; position: absolute; left: 0; top: 20px; bottom: 18px; width: 5px; background: var(--mist);
}
.option-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.provider { font-size: 1.04rem; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.tier {
  font-size: 0.7rem; font-weight: 500; color: var(--teal); border: 1px solid var(--teal);
  border-radius: 2px; padding: 1px 6px; white-space: nowrap;
}
.tier--none { color: var(--muted); border-color: var(--mist); }
.stage-badge {
  font-size: 0.7rem; font-weight: 500; color: var(--amber-text); border: 1px solid var(--amber);
  background: var(--surface); border-radius: 2px; padding: 1px 6px; white-space: nowrap;
}
.pharmacy { margin: 3px 0 0; font-size: 0.87rem; color: var(--muted); }
.price-block { text-align: right; white-space: nowrap; }
.price { font-family: "Instrument Serif", Georgia, serif; font-size: 2.15rem; line-height: 1; }
.price-label { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 3px; }
.price-per-month { display: block; font-size: 0.78rem; font-weight: 600; color: var(--teal); margin-top: 5px; }
.caveat {
  display: block; max-width: 230px; margin: 8px 0 0 auto; padding-left: 8px;
  border-left: 2px solid var(--signal); font-size: 0.76rem; color: var(--signal);
  line-height: 1.35; text-align: left; white-space: normal;
}
.caveat--state {
  max-width: none; margin: 8px 0 0; padding: 6px 8px;
  background: var(--surface); border-left-width: 3px;
}
.state-fee {
  display: block; margin-top: 5px; font-size: 0.72rem;
  font-weight: 500; color: var(--signal);
}
.promo-line {
  display: block; max-width: 230px; margin: 8px 0 0 auto; padding: 7px 9px;
  background: var(--surface); border-left: 2px solid var(--signal); border-radius: 2px;
  text-align: left; white-space: normal;
}
.promo-price { display: block; font-size: 0.92rem; font-weight: 600; color: var(--signal); }
.promo-terms { display: block; margin-top: 3px; font-size: 0.72rem; color: var(--muted); line-height: 1.35; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 14px 0 0; font-size: 0.83rem; }
.fact { padding: 0 12px; border-left: 1px solid var(--mist); color: var(--muted); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact strong { color: var(--ink); font-weight: 500; }
.avoid-non28 {
  display: inline-block; margin-top: 6px;
  font: inherit; font-size: 0.72rem; font-weight: 500; color: var(--signal);
  background: transparent; border: 1px solid var(--signal); border-radius: 2px;
  padding: 5px 9px; cursor: pointer;
}
.avoid-non28:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.price-order { display: block; margin-top: 7px; font-size: 0.78rem; }
.price-order a { font-weight: 600; }
.fact--warn { color: var(--signal); }
details { margin-top: 12px; }
details summary {
  cursor: pointer; list-style: none; font-size: 0.82rem; color: var(--teal);
  font-weight: 500; display: inline-block;
}
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "+ "; font-weight: 600; }
details[open] summary::before { content: "− "; }
.detail-body {
  margin-top: 12px; padding: 14px 16px; background: var(--surface); border-radius: 2px;
  font-size: 0.82rem; line-height: 1.55;
}
.detail-body h3 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em; margin: 0 0 6px; }
.detail-body ul { margin: 0 0 12px; padding-left: 18px; }
.detail-body li { margin-bottom: 4px; }
.detail-body p { margin: 0 0 12px; }
.detail-body .fine { color: var(--muted); font-size: 0.76rem; }
.detail-links { display: flex; flex-wrap: wrap; gap: 14px; }
.empty { padding: 56px 20px; }
.empty h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.6rem; margin: 0 0 6px; }
.empty p { color: var(--muted); margin: 0 0 16px; }
.empty button {
  font: inherit; font-size: 0.88rem; background: var(--ink); color: var(--paper);
  border: 0; border-radius: 2px; padding: 8px 14px; cursor: pointer;
}

/* ---------- directory pages ---------- */
.compare-picker {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px;
  align-items: end; border-bottom: 1px solid var(--ink); padding-bottom: 20px;
}
.compare-versus { font-size: 0.82rem; color: var(--muted); margin: 0 0 10px; white-space: nowrap; }
.compare-table-scroll { overflow-x: auto; margin-top: 20px; }
.compare-tool th[scope="row"] { width: 18%; }
.compare-tool td { min-width: 240px; }
.compare-tool ul { margin: 0; padding-left: 18px; }
.compare-tool li { margin-bottom: 7px; }
.compare-tool .fine { color: var(--muted); font-size: 0.76rem; }

.data-row { border-bottom: 1px solid var(--mist); padding: 18px 4px 16px; }
.data-row h2 { font-family: inherit; font-size: 1.02rem; font-weight: 600; margin: 0 0 3px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.data-row .sub { font-size: 0.84rem; color: var(--muted); margin: 0 0 10px; }
#telehealth-list .data-row .sub {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.badge {
  font-size: 0.7rem; font-weight: 500; border: 1px solid var(--muted); color: var(--muted);
  border-radius: 2px; padding: 1px 6px; white-space: nowrap;
}
.badge--a { border-color: var(--amber); color: var(--amber-text); }
.badge--b { border-color: var(--teal); color: var(--teal); }
.badge--warn { border-color: var(--signal); color: var(--signal); }
.badge--signal { border-color: var(--signal); background: var(--signal); color: var(--paper); font-weight: 600; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin: 18px 0 28px; }
.compare-table th, .compare-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--mist); vertical-align: top; }
.compare-table th { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.03em; border-bottom: 1px solid var(--ink); }
.compare-table td:first-child { font-weight: 500; width: 22%; }
.compare-table th[scope="row"] { font-size: 0.85rem; font-weight: 500; letter-spacing: 0; border-bottom: 1px solid var(--mist); width: 22%; }
.mini-facts { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 0.82rem; color: var(--muted); }
.mini-facts span { padding: 0 12px; border-left: 1px solid var(--mist); }
.mini-facts span:first-child { padding-left: 0; border-left: 0; }
.formula-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.formula-list li {
  background: var(--surface); padding: 10px 12px; border-radius: 2px;
  font-size: 0.82rem; line-height: 1.5;
}
.formula-list .fine { color: var(--muted); }
.directory-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid var(--ink); padding-bottom: 14px; margin-bottom: 4px;
}
.directory-head .search { width: min(360px, 100%); }
.directory-head .search input {
  width: 100%; font: inherit; font-size: 0.9rem; padding: 8px 10px;
  border: 1px solid var(--mist); border-radius: 2px; background: var(--paper); color: var(--ink);
}
.directory-count { font-size: 0.85rem; color: var(--muted); margin: 4px 0 0; }

/* ---------- calculators ---------- */
.calc-layout { display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.calc-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; }
.format-field { border: 0; padding: 0; margin: 0; }
.format-field legend { font-size: 0.82rem; font-weight: 600; padding: 0; margin-bottom: 6px; }
.field input, .field select {
  font: inherit; font-size: 0.95rem; padding: 9px 10px;
  border: 1px solid var(--mist); border-radius: 2px; background: var(--paper); color: var(--ink);
  width: 100%;
}
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#dose { -moz-appearance: textfield; appearance: textfield; }
#dose::-webkit-outer-spin-button, #dose::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.result-panel { border-top: 3px solid var(--amber); background: var(--surface); padding: 26px 28px; min-height: 220px; }
.result-panel .result-label { font-size: 0.76rem; color: var(--muted); margin: 0 0 4px; }
.result-panel .result-value { font-family: "Instrument Serif", Georgia, serif; font-size: 3.4rem; line-height: 1; margin: 0 0 8px; }
.result-panel .result-note { font-size: 0.88rem; color: var(--muted); margin: 0 0 18px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-actions .btn { margin: 0; }
.calc-math { border-top: 1px solid var(--mist); margin-top: 18px; padding-top: 14px; font-size: 0.84rem; }
.calc-math strong { font-weight: 600; }
.syringe-wrap { margin: 20px 0; }
.syringe-row { display: flex; align-items: center; height: 36px; }
.syringe-needle { width: 44px; height: 2px; background: var(--ink); flex: none; }
.syringe-hub {
  width: 12px; height: 18px; border: 2px solid var(--ink); border-right: 0;
  background: var(--mist); flex: none;
}
.syringe-barrel {
  position: relative; flex: 1; min-width: 0; height: 34px; border: 2px solid var(--ink);
  border-radius: 3px 0 0 3px; background: #fff; overflow: hidden;
}
.syringe-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--amber); opacity: 0.75; }
.syringe-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(22, 39, 46, 0.38); }
.syringe-scale { position: relative; height: 15px; margin: 4px 14px 0 56px; }
.syringe-label { position: absolute; top: 0; font-size: 0.62rem; color: var(--muted); }
.syringe-plunger {
  position: relative; width: 12px; height: 34px; border: 2px solid var(--ink);
  border-left: 0; background: var(--mist); flex: none;
}
.syringe-plunger::after {
  content: ""; position: absolute; right: -2px; top: -2px; bottom: -2px;
  width: 4px; background: var(--ink);
}
.syringe-caption { font-size: 0.78rem; color: var(--muted); margin: 10px 0 0; }
.syringe-group--multi .syringe-wrap { margin: 14px 0; }
.syringe-group--multi .syringe-caption { margin-top: 8px; }
.syringe-note {
  font-size: 0.78rem; color: var(--muted); margin: 14px 0 0;
  padding-left: 12px; border-left: 2px solid var(--amber);
}
.dose-reference { margin: 22px 0; }
.dose-table th[scope="row"] { width: 50%; }
.dose-table tr.is-mine { background: #e3ecea; }
.dose-table tr.is-mine th, .dose-table tr.is-mine td { color: var(--teal); font-weight: 600; }
.you-tag {
  font-size: 0.68rem; font-weight: 500; border: 1px solid var(--teal);
  border-radius: 2px; padding: 0 5px; margin-left: 6px; white-space: nowrap;
}
.result-panel .fine { font-size: 0.76rem; color: var(--muted); margin: 10px 0 0; }
.result-context { font-size: 0.94rem; color: var(--muted); line-height: 1.5; margin: 0 0 6px; }
.result-context strong { color: var(--ink); font-weight: 600; }
.result-value span { font-family: "IBM Plex Sans", sans-serif; font-size: 1.3rem; font-weight: 400; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.share-row .btn { font-size: 0.8rem; padding: 6px 11px; }

/* ---------- label quiz ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.quiz-shell { border: 1px solid var(--mist); background: var(--paper); padding: 24px 28px 28px; }
.quiz-progress {
  display: flex; align-items: center; gap: 16px;
  font-size: 0.78rem; color: var(--muted); margin-bottom: 22px;
}
.quiz-track { flex: 1; height: 4px; background: var(--mist); }
.quiz-track span { display: block; height: 100%; background: var(--amber); }
.quiz-layout { display: grid; grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.quiz-vial {
  border: 1px solid var(--ink); background: var(--surface);
  padding: 22px 24px 18px; min-height: 420px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.vial-figure { width: 224px; text-align: center; }
.vial-cap {
  width: 104px; height: 15px; margin: 0 auto;
  background: #c9cfcb; border: 1px solid #88958f; border-radius: 3px 3px 0 0;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5);
}
.vial-neck {
  width: 78px; height: 9px; margin: 0 auto;
  border-left: 2px solid rgba(22, 39, 46, 0.25);
  border-right: 2px solid rgba(22, 39, 46, 0.25);
  background: rgba(255, 255, 255, 0.35);
}
.vial-body {
  position: relative; min-height: 276px; border: 2px solid rgba(22, 39, 46, 0.35);
  border-top: 0; border-radius: 0 0 16px 16px; padding: 20px 12px 22px;
  display: flex; align-items: center; justify-content: center;
}
.quiz-vial--amber .vial-body {
  background: linear-gradient(100deg, rgba(184, 115, 51, 0.22), rgba(184, 115, 51, 0.06) 45%, rgba(255, 255, 255, 0.45) 70%, rgba(184, 115, 51, 0.14));
}
.quiz-vial--clear .vial-body {
  background: linear-gradient(100deg, rgba(22, 39, 46, 0.10), rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0.7) 70%, rgba(22, 39, 46, 0.08));
}
.vial-glass {
  position: absolute; top: 8px; bottom: 8px; left: 9px; width: 5px;
  border-radius: 4px; background: rgba(255, 255, 255, 0.45);
}
.vial-wrap {
  background: #f5f2e8; border: 1px solid #b9b09b; width: 100%;
  padding: 10px 8px 9px; text-align: left;
  box-shadow: 0 1px 2px rgba(22, 39, 46, 0.12);
}
.label-pharmacy {
  font-size: 0.62rem; letter-spacing: 0.02em; border-bottom: 1px solid #8d8776;
  padding-bottom: 5px; margin-bottom: 9px; display: flex;
  justify-content: space-between; gap: 6px;
}
.label-pharmacy span { white-space: nowrap; }
.label-combo { text-align: center; margin: 4px 0 10px; }
.combo-head { font-size: 0.86rem; font-weight: 600; letter-spacing: 0.01em; }
.combo-value {
  font-family: "Instrument Serif", Georgia, serif; font-size: 1.35rem;
  line-height: 1.15; margin-top: 2px;
}
.label-lines {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px;
  border-top: 1px solid #c8c1ad; padding-top: 7px;
}
.label-lines span { font-size: 0.6rem; color: #4a4a41; }
.label-practice { font-size: 0.67rem; color: var(--muted); margin: 16px 0 0; }
.quiz-help { border-left: 2px solid var(--teal); padding-left: 12px; margin: 0 0 24px; font-size: 0.88rem; }
.quiz-help summary { cursor: pointer; color: var(--teal); font-weight: 500; }
.quiz-help p { margin: 10px 0 0; color: var(--muted); }
.quiz-question > h2 {
  font-family: "Instrument Serif", Georgia, serif; font-weight: 400;
  font-size: 1.7rem; line-height: 1.2; margin: 4px 0 20px;
}
.quiz-options { border: 0; padding: 0; margin: 0; display: grid; gap: 9px; }
.quiz-option { position: relative; cursor: pointer; display: block; }
.quiz-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.quiz-option span {
  display: block; border: 1px solid var(--mist); border-radius: 2px;
  padding: 9px 12px 9px 30px; font-size: 0.92rem; position: relative;
}
.quiz-option span::before {
  content: ""; position: absolute; left: 10px; top: 13px; width: 11px; height: 11px;
  border: 1px solid var(--muted); border-radius: 50%;
}
.quiz-option input:checked + span { border-color: var(--teal); background: #e3ecea; }
.quiz-option input:checked + span::before {
  background: var(--teal); border-color: var(--teal); box-shadow: inset 0 0 0 2px #e3ecea;
}
.quiz-option input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.quiz-option.is-correct span { border-color: var(--teal); background: #dce9e6; }
.quiz-option.is-wrong span { border-color: var(--signal); background: #f3e3de; }
.quiz-option input:disabled { cursor: default; }
.quiz-feedback { font-size: 0.88rem; line-height: 1.55; margin: 18px 0 0; min-height: 1.5em; }
.quiz-feedback.is-right { color: var(--teal); }
.quiz-feedback.is-wrong-feedback { color: var(--signal); }
.quiz-question .btn { margin-top: 18px; margin-right: 8px; }
.quiz-complete { border-top: 3px solid var(--amber); background: var(--surface); padding: 26px 28px; }
.quiz-complete h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.9rem; margin: 0 0 16px; }
.quiz-complete .result-value { font-size: 3rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--ink); background: var(--surface); margin-top: 40px; }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 32px 28px 20px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px;
}
.footer-inner h2 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em; margin: 0 0 8px; }
.footer-inner p { margin: 0 0 8px; font-size: 0.83rem; color: var(--muted); line-height: 1.6; max-width: 48ch; }
.footer-inner ul { list-style: none; margin: 0; padding: 0; font-size: 0.83rem; }
.footer-inner li { margin-bottom: 6px; }
.footer-note { max-width: 1180px; margin: 0 auto; padding: 0 28px 28px; font-size: 0.76rem; color: var(--muted); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); padding: 12px 28px 18px; flex-direction: column; gap: 0; z-index: 15;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 9px 0; border-bottom: 1px solid #2c4149; }
  .nav-dropdown-toggle {
    display: block; width: 100%; text-align: left;
    padding: 9px 0; border-bottom: 1px solid #2c4149;
  }
  .nav-dropdown.is-current > .nav-dropdown-toggle { border-color: var(--amber); }
  .dropdown-menu {
    position: static; min-width: 0; padding: 4px 0 6px 14px;
    border: 0; background: transparent;
  }
  .dropdown-menu a { padding: 7px 0; }
  .site-header { position: relative; }
  .hero, .calc-layout, .quiz-layout { grid-template-columns: 1fr; gap: 28px; }
  .card-grid, .card-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .layout { grid-template-columns: 1fr; gap: 22px; padding: 22px 18px 48px; }
  .filter-toggle {
    display: inline-flex; justify-self: start; font: inherit; font-size: 0.88rem; font-weight: 500;
    background: var(--ink); color: var(--paper); border: 0; border-radius: 2px; padding: 8px 14px; cursor: pointer;
  }
  .filters { display: none; }
  .filters.open { display: block; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 28px 18px 16px; }
  .footer-note { padding: 0 18px 24px; }
}
@media (max-width: 620px) {
  .header-inner { padding: 12px 18px; }
  .hero { padding: 40px 18px; }
  .page-hero { padding: 32px 18px 24px; }
  .wrap { padding: 28px 18px 56px; }
  .loc-map { height: 240px; }
  .loc-plate-head, .loc-plate-foot { padding-left: 12px; padding-right: 12px; }
  .card-grid, .card-grid--four { grid-template-columns: 1fr; gap: 22px; }
  .results-head, .directory-head { align-items: start; flex-direction: column; gap: 10px; }
  .option { padding: 18px 2px 16px 14px; }
  .option-top { grid-template-columns: 1fr; gap: 10px; }
  .price-block { text-align: left; }
  .price { font-size: 1.9rem; }
  .caveat, .promo-line { margin-left: 0; max-width: none; }
  .fact { padding: 0 8px; }
  .mini-facts span { padding: 0 8px; }
  .field-pair { grid-template-columns: 1fr; }
  .result-panel { padding: 22px 20px; }
  .quiz-shell { padding: 20px 18px 22px; }
  .quiz-vial { min-height: 0; padding: 20px 18px 16px 26px; }
  .vial-figure { width: 200px; }
  .combo-value { font-size: 1.2rem; }
  .quiz-question > h2 { font-size: 1.45rem; }
  .toc-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
