/* =========================================================================
   Studies Index — a clinical reference, not a marketing page.
   Color is used for evidence status only; everything else stays paper.
   ========================================================================= */

:root {
  --paper: #f4f3ee;
  --surface: #fdfcf8;
  --surface-alt: #f8f7f2;
  --ink: #14181b;
  --ink-soft: #39424a;
  --muted: #6c767d;
  --hair: #dedbd2;
  --hair-strong: #c6c2b6;
  --brand: #0f5c5f;
  --brand-deep: #0a4346;
  --brand-wash: #e6efee;

  --verified-bg: #e4f3e7;
  --verified-bd: #a6d3b1;
  --verified-fg: #16502f;
  --human-bg: #e8f0f9;
  --human-bd: #a8c3dd;
  --human-fg: #1a4468;
  --animal-bg: #fbeed8;
  --animal-bd: #e2c38c;
  --animal-fg: #78480a;
  --lab-bg: #f5f0df;
  --lab-bd: #d5c69c;
  --lab-fg: #6b5722;
  --reported-bg: #ecebf6;
  --reported-bd: #bcb8d7;
  --reported-fg: #423b70;
  --contradicted-bg: #fbe6e3;
  --contradicted-bd: #e0aaa0;
  --contradicted-fg: #8c1f14;
  --noeffect-bg: #e7eaef;
  --noeffect-bd: #b3bcc9;
  --noeffect-fg: #333e4d;
  --none-bg: #eceeec;
  --none-bd: #c7cdc9;
  --none-fg: #4a534e;

  --danger: #8c1f14;
  --ok: #16502f;

  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 27, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 24, 27, 0.09);

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--brand-deep);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding-left: 1.15em;
}

hr {
  border: 0;
  border-top: 1px solid var(--hair);
}

::selection {
  background: #cfe6e4;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 50;
}

.skip:focus {
  left: 8px;
  top: 8px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.wrap-wide {
  max-width: 1320px;
}

main.wrap {
  padding-top: 34px;
  padding-bottom: 80px;
  min-height: 60vh;
}

/* ------------------------------------------------------------------ header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 243, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  background: var(--brand);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.brand-name {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 20px;
  flex: 1 1 auto;
}

.nav-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13.5px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--ink);
  border-bottom-color: var(--hair-strong);
}

.nav-link.is-active {
  color: var(--ink);
  border-bottom-color: var(--brand);
}

.head-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.who {
  font-size: 12.5px;
  color: var(--muted);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--hair-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.btn:hover {
  background: var(--surface-alt);
  border-color: var(--ink-soft);
  color: var(--ink);
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #fff;
}

.btn-quiet {
  background: transparent;
  border-color: var(--hair-strong);
  color: var(--ink-soft);
}

.btn-sm {
  padding: 5px 11px;
  font-size: 12.5px;
}

.btn-danger {
  color: var(--danger);
  border-color: #e0aaa0;
  background: transparent;
}

.btn-danger:hover {
  background: var(--contradicted-bg);
  border-color: var(--danger);
  color: var(--danger);
}

/* ------------------------------------------------------------- typography */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--mono);
  font-size: 12.5px;
}

.hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.note {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 2px solid var(--brand);
  background: var(--brand-wash);
  font-size: 13.5px;
  color: var(--ink-soft);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 20px;
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--brand);
}

.page-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.page-head h1 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 14px;
}

.page-head .lede,
.lede {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 68ch;
}

.page-head .lede em {
  font-style: italic;
}

.page-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.head-actions {
  display: flex;
  gap: 8px;
  padding-bottom: 4px;
}

/* ------------------------------------------------------------------- hero */

.hero {
  padding: 26px 0 34px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 30px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 18ch;
}

.hero .lede {
  max-width: 62ch;
  margin-bottom: 28px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin: 0;
}

.stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}

.stats dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
}

.stats .stat-date {
  font-size: 15px;
  padding-top: 7px;
}

/* ----------------------------------------------------------------- search */

.catalogue {
  padding-top: 4px;
}

.search {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 16px;
}

.search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 13px 15px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.search input[type="search"]::placeholder {
  color: #9aa2a7;
}

.search .select {
  flex: 0 0 190px;
  /* Flex items default to min-width:auto, so a long option would widen the page. */
  min-width: 0;
}

.select,
.input {
  padding: 9px 11px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12.5px;
  text-decoration: none;
  line-height: 1.3;
}

.chip:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip.is-active .chip-count {
  color: rgba(255, 255, 255, 0.7);
}

.chip-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.chip-glyph {
  font-size: 11px;
}

.chip--verified {
  background: var(--verified-bg);
  border-color: var(--verified-bd);
  color: var(--verified-fg);
}
.chip--human {
  background: var(--human-bg);
  border-color: var(--human-bd);
  color: var(--human-fg);
}
.chip--animal {
  background: var(--animal-bg);
  border-color: var(--animal-bd);
  color: var(--animal-fg);
}
.chip--lab {
  background: var(--lab-bg);
  border-color: var(--lab-bd);
  color: var(--lab-fg);
}
.chip--reported {
  background: var(--reported-bg);
  border-color: var(--reported-bd);
  color: var(--reported-fg);
}
.chip--contradicted {
  background: var(--contradicted-bg);
  border-color: var(--contradicted-bd);
  color: var(--contradicted-fg);
}
.chip--none {
  background: var(--none-bg);
  border-color: var(--none-bd);
  color: var(--none-fg);
}

.chip--verified.is-active,
.chip--human.is-active,
.chip--animal.is-active,
.chip--lab.is-active,
.chip--reported.is-active,
.chip--contradicted.is-active,
.chip--none.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip--verified.is-active .chip-count,
.chip--human.is-active .chip-count,
.chip--animal.is-active .chip-count,
.chip--lab.is-active .chip-count,
.chip--reported.is-active .chip-count,
.chip--contradicted.is-active .chip-count,
.chip--none.is-active .chip-count {
  color: rgba(255, 255, 255, 0.7);
}

.result-count {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

/* ------------------------------------------------------------------ table */

.table-wrap {
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table thead th {
  position: sticky;
  top: 0;
  text-align: left;
  padding: 11px 16px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}

.catalogue-table tbody tr:last-child td {
  border-bottom: 0;
}

.cell-name {
  min-width: 190px;
}

.row-name {
  display: block;
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.25;
  color: var(--ink);
  text-decoration: none;
}

.row-name:hover {
  color: var(--brand);
  text-decoration: underline;
}

.row-aliases {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
}

.cell-claim {
  color: var(--ink-soft);
  min-width: 240px;
  max-width: 460px;
}

.cell-claim .more {
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}

.cell-status {
  white-space: nowrap;
}

.cell-date {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

.cell-cat {
  white-space: nowrap;
}

.claims-table .cell-claim-text {
  min-width: 240px;
  max-width: 520px;
}

.claim-link {
  color: var(--ink);
  text-decoration: none;
}

.claim-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

.cell-compound {
  white-space: nowrap;
  font-size: 13px;
}

.cell-compound a {
  color: var(--ink-soft);
  text-decoration: none;
}

.cell-compound a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.compound-inline {
  display: none;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.table tbody tr:hover {
  background: #fbfaf5;
}

.table-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.empty {
  padding: 46px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--hair-strong);
  border-radius: var(--radius);
}

.empty p {
  margin-bottom: 8px;
}

.empty .btn {
  margin-top: 12px;
}

/* ----------------------------------------------------------------- badges */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 7px;
  border: 1px solid var(--none-bd);
  border-radius: 3px;
  background: var(--none-bg);
  color: var(--none-fg);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
  white-space: nowrap;
}

.badge-glyph {
  font-size: 10px;
  opacity: 0.85;
}

.badge--sm {
  font-size: 10.5px;
  padding: 2px 7px 2px 6px;
}

.badge--verified {
  background: var(--verified-bg);
  border-color: var(--verified-bd);
  color: var(--verified-fg);
}
.badge--human {
  background: var(--human-bg);
  border-color: var(--human-bd);
  color: var(--human-fg);
}
.badge--animal {
  background: var(--animal-bg);
  border-color: var(--animal-bd);
  color: var(--animal-fg);
}
.badge--lab {
  background: var(--lab-bg);
  border-color: var(--lab-bd);
  color: var(--lab-fg);
}
.badge--reported {
  background: var(--reported-bg);
  border-color: var(--reported-bd);
  color: var(--reported-fg);
}
.badge--contradicted {
  background: var(--contradicted-bg);
  border-color: var(--contradicted-bd);
  color: var(--contradicted-fg);
}
.badge--noeffect {
  background: var(--noeffect-bg);
  border-color: var(--noeffect-bd);
  color: var(--noeffect-fg);
}
.badge--none {
  background: var(--none-bg);
  border-color: var(--none-bd);
  color: var(--none-fg);
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  margin: 0 6px 6px 0;
  border: 1px solid var(--hair-strong);
  border-radius: 3px;
  background: var(--surface-alt);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tag--type {
  background: var(--surface);
}

.tag--approval.is-approved {
  background: var(--verified-bg);
  border-color: var(--verified-bd);
  color: var(--verified-fg);
}

.pill {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 6px;
  border-radius: 3px;
  background: var(--none-bg);
  border: 1px solid var(--none-bd);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--none-fg);
}

.pill--ai {
  background: var(--reported-bg);
  border-color: var(--reported-bd);
  color: var(--reported-fg);
}

.pill--kind {
  background: transparent;
  border-color: var(--hair-strong);
  color: var(--muted);
}

.rel {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 2px;
  vertical-align: 1px;
}

.rel--against {
  background: var(--contradicted-bg);
  color: var(--contradicted-fg);
}

.rel--mixed {
  background: var(--lab-bg);
  color: var(--lab-fg);
}

/* ---------------------------------------------------------------- product */

.product-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 34px;
}

.product-tags {
  margin-bottom: 14px;
}

.product-id h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.aliases {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 12px;
  max-width: 62ch;
}

.section--aliases {
  margin-top: -8px;
}

.alias-table {
  font-size: 13px;
}

.alias-name {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  white-space: nowrap;
}

.alias-kind {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.alias-kind.is-unverified {
  color: var(--animal-fg);
}

.alias-note {
  color: var(--ink-soft);
}

.row-match {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--brand);
}

.product-summary {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 64ch;
}

.scorecard {
  border: 1px solid var(--hair);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.scorecard-head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.scorecard-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: grid;
  gap: 6px;
}

.scorecard-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.scorecard-list .count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.scorecard-foot {
  border-top: 1px solid var(--hair);
  padding-top: 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.section {
  margin-bottom: 46px;
}

.section-head {
  margin-bottom: 18px;
  max-width: 74ch;
}

.section-head h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.section-head p {
  font-size: 13.5px;
  color: var(--muted);
}

.section--muted {
  background: var(--surface-alt);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 22px;
}

.section--warning {
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius);
  padding: 22px;
}

.claims {
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* One claim is one record: a scan line (claim, in-humans, verdict) and a
   labeled record underneath with the detail. */

.claims-head,
.claim-scan {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 168px 178px;
  gap: 18px;
  padding: 14px 20px;
}

.claims-head {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.claim {
  border-bottom: 1px solid var(--hair);
}

.claim:last-child {
  border-bottom: 0;
}

.claim:hover {
  background: #fbfaf5;
}

.claim-scan {
  align-items: start;
  padding-bottom: 4px;
}

.claim-index {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--hair-strong);
  padding-top: 4px;
}

.claim-text {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  margin: 0;
}

.claim-clin {
  justify-self: start;
  margin-top: 1px;
  padding: 2px 7px;
  border: 1px solid var(--none-bd);
  border-radius: 3px;
  background: var(--none-bg);
  color: var(--none-fg);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.6;
  white-space: nowrap;
}

.claim-clin--yes {
  background: var(--verified-bg);
  border-color: var(--verified-bd);
  color: var(--verified-fg);
}

.claim-clin--borrowed {
  background: var(--lab-bg);
  border-color: var(--lab-bd);
  color: var(--lab-fg);
}

.claim-status {
  padding-top: 0;
}

.claim-record {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 12px 26px;
  margin: 4px 20px 0 68px;
  padding: 12px 0 14px;
  border-top: 1px dashed var(--hair);
}

.rec dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.rec dd {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.rec--wide {
  grid-column: 1 / -1;
}

.rec .studies {
  margin: 0;
}

.claim-meta {
  margin: 0 20px 14px 68px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.5;
}

.studies {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 4px;
}

.study {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

.study-meta {
  display: block;
  font-size: 10.5px;
  color: #8b9399;
}

.claim-source {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  word-break: break-word;
}

.claim-dose {
  margin-top: 8px;
  padding: 7px 9px;
  background: var(--surface-alt);
  border-left: 2px solid var(--hair-strong);
  font-size: 12px;
  color: var(--ink-soft);
}

.claim-facts {
  margin: 0;
  display: grid;
  gap: 7px;
  font-size: 11.5px;
}

.claim-facts dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1px;
}

.claim-facts dd {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.4;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.fact h3 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 6px;
}

.fact p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.source-links {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 12.5px;
}

.link-ext::after {
  content: " ↗";
  font-size: 10px;
  opacity: 0.6;
}

.dose-table td {
  font-size: 13px;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.cta-row h2 {
  font-size: 20px;
  margin-bottom: 5px;
}

.cta-row p {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 62ch;
}

/* ----------------------------------------------------------------- method */

.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.level-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-top: 3px solid var(--hair-strong);
  border-radius: var(--radius);
  padding: 18px;
}

.level-card--verified {
  border-top-color: var(--verified-fg);
}
.level-card--human {
  border-top-color: var(--human-fg);
}
.level-card--animal {
  border-top-color: var(--animal-fg);
}
.level-card--lab {
  border-top-color: var(--lab-fg);
}
.level-card--reported {
  border-top-color: var(--reported-fg);
}
.level-card--contradicted {
  border-top-color: var(--contradicted-fg);
}
.level-card--none {
  border-top-color: var(--none-fg);
}

.level-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.level-flag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.level-definition {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.level-criteria {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  padding-top: 10px;
  border-top: 1px solid var(--hair);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 78ch;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 38px;
  font-size: 14px;
  color: var(--ink-soft);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brand);
  border: 1px solid var(--hair-strong);
  border-radius: 3px;
  padding: 1px 5px;
}

.rules {
  display: grid;
  gap: 10px;
  max-width: 82ch;
  font-size: 14px;
  color: var(--ink-soft);
}

.rules li::marker {
  color: var(--hair-strong);
}

/* ------------------------------------------------------------------ forms */

.form {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.form--inline {
  max-width: none;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 18px;
}

.form--inline .form-foot {
  grid-column: 1 / -1;
}

.form--tight {
  gap: 10px;
  max-width: none;
  margin-top: 10px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field > label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 9px 11px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
}

.field textarea {
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(15, 92, 95, 0.18);
  outline-offset: 0;
}

.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.alert {
  padding: 11px 14px;
  border: 1px solid var(--contradicted-bd);
  border-left: 3px solid var(--danger);
  background: var(--contradicted-bg);
  border-radius: var(--radius);
  color: var(--contradicted-fg);
  font-size: 13.5px;
  margin-bottom: 20px;
}

.alert--ok {
  border-color: var(--verified-bd);
  border-left-color: var(--ok);
  background: var(--verified-bg);
  color: var(--verified-fg);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}

.panel > summary {
  cursor: pointer;
  font-weight: 500;
}

/* ------------------------------------------------------------------ admin */

.queue {
  display: grid;
  gap: 14px;
}

.queue-item {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.queue-time {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}

.queue-target {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.kv-list {
  display: grid;
  gap: 5px;
  margin: 0 0 10px;
  font-size: 12.5px;
}

.kv {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px;
}

.kv dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}

.kv dd {
  margin: 0;
  color: var(--ink-soft);
  word-break: break-word;
}

.queue-note {
  font-size: 12.5px;
  color: var(--muted);
  border-left: 2px solid var(--hair-strong);
  padding-left: 10px;
  margin-bottom: 10px;
}

.queue-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--hair);
  padding-top: 10px;
}

.input--note {
  width: 230px;
}

.queue-decided {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-top: 1px solid var(--hair);
  padding-top: 8px;
}

.product-index {
  list-style: none;
  padding: 0;
  columns: 3;
  column-gap: 26px;
  font-size: 13px;
}

.product-index li {
  break-inside: avoid;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--hair);
}

.product-index a {
  color: var(--ink);
  text-decoration: none;
}

.product-index a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.product-index .count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 12px;
}

.claim-editor {
  padding: 0;
}

.claim-editor > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  list-style: none;
  cursor: pointer;
}

.claim-editor > summary::-webkit-details-marker {
  display: none;
}

.claim-editor > summary::before {
  content: "▸";
  color: var(--muted);
  font-size: 11px;
}

.claim-editor[open] > summary::before {
  content: "▾";
}

.claim-editor-title {
  flex: 1 1 auto;
  font-size: 13.5px;
  font-weight: 500;
}

.claim-editor .form,
.claim-editor .study-block,
.claim-editor .danger-zone {
  margin: 0 16px 16px;
}

.claim-editor .form {
  padding-top: 14px;
  border-top: 1px solid var(--hair);
  max-width: none;
}

.study-block {
  border-top: 1px solid var(--hair);
  padding-top: 12px;
}

.study-block .label {
  display: block;
  margin-bottom: 6px;
}

.study-block .source-links {
  margin: 0 0 6px;
}

.danger-zone {
  border-top: 1px dashed var(--hair-strong);
  padding-top: 12px;
  margin-bottom: 16px;
}

/* ----------------------------------------------------------------- footer */

.site-foot {
  border-top: 1px solid var(--hair);
  background: var(--surface-alt);
  padding: 34px 0 46px;
}

.foot-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 34px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.foot-strong {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

.site-foot a {
  color: var(--ink-soft);
}

.site-foot a:hover {
  color: var(--brand);
}

/* ------------------------------------------------------------------- gate */

.has-gate {
  overflow: hidden;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 22, 25, 0.62);
  backdrop-filter: blur(3px);
  overflow-y: auto;
}

.gate-panel {
  width: min(620px, 100%);
  background: var(--paper);
  border: 1px solid var(--hair-strong);
  border-top: 4px solid var(--danger);
  border-radius: 6px;
  padding: 30px 32px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.gate-panel h2 {
  font-size: clamp(23px, 3vw, 29px);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.gate-lead {
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 14px;
}

.gate-points {
  display: grid;
  gap: 9px;
  margin: 0 0 20px;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.gate-points li::marker {
  color: var(--danger);
}

.gate-panel .btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 14.5px;
}

.gate-small {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1020px) {
  .product-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .scorecard {
    max-width: 340px;
  }

  .claims-head {
    display: none;
  }

  .claim-scan {
    grid-template-columns: minmax(0, 1fr) 158px 172px;
  }

  .claim-index {
    display: none;
  }

  .claim-record {
    margin-left: 20px;
  }

  .claim-meta {
    margin-left: 20px;
  }

  .col-cat,
  .cell-cat {
    display: none;
  }

  .product-index {
    columns: 2;
  }

  .foot-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding: 0 18px;
  }

  .head-inner {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 10px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-link {
    font-size: 12.5px;
    white-space: nowrap;
  }

  .head-user {
    margin-left: auto;
  }

  .search {
    flex-wrap: wrap;
  }

  .search input[type="search"] {
    flex: 1 1 100%;
  }

  .search .select {
    flex: 1 1 auto;
    min-width: 0;
  }

  .stats {
    gap: 20px;
  }

  .col-date,
  .cell-date {
    display: none;
  }

  /* Phones keep the compound and its evidence rating; the claim preview lives on
     the compound page, so the status column never sits off-screen. */
  .col-claim,
  .cell-claim {
    display: none;
  }

  /* Claims index: claim, compound underneath it, and the verdict. */
  .col-compound,
  .cell-compound,
  .col-clin,
  .cell-clin {
    display: none;
  }

  .compound-inline {
    display: block;
  }

  .claims-table .cell-claim-text {
    min-width: 0;
  }

  .cell-name {
    min-width: 0;
  }

  .catalogue-table tbody td {
    padding: 12px 12px;
  }

  .page-head--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .foot-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .product-index {
    columns: 1;
  }

  .kv {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .gate-panel {
    padding: 24px 20px 20px;
  }

  .section-head h2 {
    font-size: 21px;
  }

  .claim-scan {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 15px 16px 4px;
  }

  .claim-text {
    grid-column: 1 / -1;
  }

  .claim-clin {
    grid-column: 1;
    grid-row: 2;
    white-space: normal;
  }

  .claim-status {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .claim-record {
    grid-template-columns: 1fr;
    margin: 6px 16px 0;
  }

  .claim-meta {
    margin: 0 16px 14px;
  }

  .alias-name,
  .alias-kind {
    white-space: normal;
  }
}

/* Tone added with the two-axis model. */
.chip--noeffect {
  background: var(--noeffect-bg);
  border-color: var(--noeffect-bd);
  color: var(--noeffect-fg);
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* =========================================================================
   cPanel build additions: tables, verdict badges, ad slots, prose blocks.
   Loaded after the base sheet so the same palette carries over.
   ========================================================================= */
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 600; color: var(--brand); margin: 0 0 .4rem; }
.lede { font-size: 1.0625rem; line-height: 1.6; color: var(--ink-soft); max-width: 68ch; }
.page-head, .hero { padding: 2.25rem 0 1.25rem; }
.hero { padding-top: 2.75rem; }

.stat-row { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; padding: 0; margin: 1.5rem 0; }
.stat { background: var(--surface); border: 1px solid var(--hair); border-radius: 10px; padding: .9rem 1rem; display: grid; gap: .15rem; }
.stat-num { font-size: 1.6rem; font-weight: 650; }
.stat-cap { font-size: .8125rem; color: var(--muted); }
.stat--verified { border-color: var(--verified-bd); background: var(--verified-bg); }
.stat--human { border-color: var(--human-bd); background: var(--human-bg); }
.stat--animal { border-color: var(--animal-bd); background: var(--animal-bg); }
.stat--none { border-color: var(--hair-strong); }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem; margin: 1.75rem 0 .75rem; }
.filter input { width: min(320px, 70vw); padding: .5rem .65rem; border: 1px solid var(--hair-strong); border-radius: 8px; background: var(--surface); font: inherit; }

.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--hair); border-radius: 10px; overflow: hidden; }
.table th, .table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--hair); vertical-align: top; }
.table thead th { background: var(--surface-alt); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody th { font-weight: 600; }
.table--claims td, .table--claims th { font-size: .9375rem; }

.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .8125rem; font-weight: 600; padding: .18rem .5rem; border-radius: 999px; border: 1px solid var(--hair-strong); background: var(--surface-alt); color: var(--ink-soft); white-space: nowrap; }
.badge--verified { background: var(--verified-bg); border-color: var(--verified-bd); color: var(--verified-fg); }
.badge--human { background: var(--human-bg); border-color: var(--human-bd); color: var(--human-fg); }
.badge--animal { background: var(--animal-bg); border-color: var(--animal-bd); color: var(--animal-fg); }
.badge--lab { background: var(--lab-bg); border-color: var(--lab-bd); color: var(--lab-fg); }
.badge--reported { background: var(--reported-bg); border-color: var(--reported-bd); color: var(--reported-fg); }
.badge--contradicted { background: var(--contradicted-bg); border-color: var(--contradicted-bd); color: var(--contradicted-fg); }
.badge--noeffect { background: var(--noeffect-bg); border-color: var(--noeffect-bd); color: var(--noeffect-fg); }
.badge--none { background: var(--none-bg); border-color: var(--hair-strong); color: var(--muted); }

.crumbs { padding: 1rem 0 0; color: var(--muted); }
.crumbs a { color: var(--brand); text-decoration: none; }
.product-head h1, .page-head h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.2; margin: .1rem 0 .6rem; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; margin: 1.5rem 0; padding: 0; }
.fact { background: var(--surface); border: 1px solid var(--hair); border-radius: 10px; padding: .8rem .9rem; }
.fact dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .3rem; }
.fact dd { margin: 0; font-size: .9375rem; }

.claims-block { margin-top: 2rem; }
.claim { background: var(--surface); border: 1px solid var(--hair); border-radius: 12px; padding: 1.1rem 1.2rem; margin: 0 0 1rem; }
.claim h3 { margin: 0 0 .5rem; font-size: 1.0625rem; }
.claim-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 .7rem; }
.claim-sentence { color: var(--ink-soft); font-size: .9375rem; }
.claim-detail { display: grid; gap: .45rem; margin: 0 0 .75rem; }
.claim-detail dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.claim-detail dd { margin: .1rem 0 0; font-size: .9375rem; }
.study-list, .source-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.study, .source-list li { border-top: 1px dashed var(--hair); padding-top: .5rem; }
.study a, .source-list a { color: var(--brand); }
.study-meta { display: block; font-size: .8125rem; color: var(--muted); margin-top: .15rem; }

.prose, .safety, .faq, .all-sources, .related, .gaps { margin: 2.25rem 0; }
.prose h2, .safety h2, .faq h2, .all-sources h2, .related h2, .gaps h2 { font-size: 1.25rem; margin: 0 0 .75rem; }
.prose h3, .safety h3 { font-size: 1rem; margin: 1.25rem 0 .35rem; }
.prose p, .safety p { max-width: 72ch; line-height: 1.65; }
.def-list dt { font-weight: 650; margin-top: .9rem; }
.def-list dd { margin: .2rem 0 0; color: var(--ink-soft); max-width: 72ch; }
.badge-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; }
.plain-list { line-height: 1.7; max-width: 72ch; }
.plain-list.inline { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; padding: 0; }
.faq details { border-top: 1px solid var(--hair); padding: .6rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.disclaimer { border-top: 1px solid var(--hair); padding-top: 1rem; margin-top: 2rem; }

.ad-slot { margin: 1.25rem 0; display: grid; justify-items: center; }
.ad-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .25rem; }
.ad-slot--placeholder { border: 1px dashed var(--hair-strong); border-radius: 8px; padding: 1.4rem; color: var(--muted); font-size: .8125rem; background: var(--surface-alt); }

.site-foot { border-top: 1px solid var(--hair); margin-top: 3rem; padding: 1.5rem 0 2.5rem; }
.foot-note { margin: .25rem 0; color: var(--muted); }
.site-foot a, main a { color: var(--brand); }
@media (max-width: 720px) { .table { display: block; overflow-x: auto; } }

/* Approval chips: green when that route is approved in that region, red when not. */
.appr { display: inline-flex; align-items: center; gap: .25rem; font-size: .78rem; font-weight: 600; padding: .16rem .5rem; border-radius: 999px; border: 1px solid var(--hair-strong); background: var(--surface-alt); color: var(--ink-soft); white-space: nowrap; }
.appr--yes { background: var(--verified-bg); border-color: var(--verified-bd); color: var(--verified-fg); }
.appr--no { background: var(--contradicted-bg); border-color: var(--contradicted-bd); color: var(--contradicted-fg); }
.appr-list { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .75rem; }
.approvals-table td { vertical-align: top; }
.access-status { white-space: pre-line; margin: 0; }

/* Claims at a glance: the product page summary that sits above the detail.
   Each row links to the claim's own anchor further down the page. */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.claim-glance {
  margin: 30px 0 6px;
}

.glance-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  border-top: 1px solid var(--hair);
}

.glance-list li {
  border-bottom: 1px solid var(--hair);
}

.glance-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 11px 6px;
  color: var(--ink);
  text-decoration: none;
}

.glance-row:hover,
.glance-row:focus-visible {
  background: #fbfaf5;
  color: var(--brand);
  text-decoration: none;
}

.glance-row:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.glance-text {
  font-size: 14px;
  line-height: 1.4;
}

.glance-row .badge {
  justify-self: end;
  white-space: nowrap;
}

/* Jumping to a claim must not tuck it under the sticky header. */
.claim {
  scroll-margin-top: 84px;
}

@media (max-width: 640px) {
  .glance-row {
    grid-template-columns: 26px minmax(0, 1fr);
    row-gap: 6px;
  }

  .glance-row .badge {
    grid-column: 2;
    justify-self: start;
  }
}
