/* Page CSS for Modern Medical Wholesalers: only what sits inside a visual and the kit lacks. */

/* her logo, in brushed champagne: the PNG is the mask, the metal is a gradient */
.brand-logo { display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo__img {
  display: block; width: 118px; aspect-ratio: 400 / 160;
  background: linear-gradient(115deg, #f4ead6 0%, #c9a96e 38%, #f1e4c4 58%, #a8864c 100%);
  -webkit-mask: url(../img/logo.png) center / contain no-repeat; mask: url(../img/logo.png) center / contain no-repeat;
}
.closing__links .brand-logo__img { width: 150px; }

/* ---------- hero: the head row, then the live vial across the wrap ---------- */
.hero--vial .hero__stage.vial-stage {
  margin-top: var(--s-6); margin-bottom: calc(var(--s-5) - var(--hpadb, 64px));
  border-radius: 0; overflow: visible; background: none;
}
@media (min-width: 1024px) {
  .hero--vial .hero__head { grid-template-rows: auto auto; row-gap: var(--s-5); }
  .hero--vial .hero__head > :first-child { display: contents; }
  .hero--vial .hero__head h1 { grid-column: 1 / span 7; grid-row: 1 / span 2; align-self: end; margin: 0; }
  .hero--vial .hero__head .hero__lead { grid-column: 9 / -1; grid-row: 1; align-self: end; margin: 0; max-width: none; }
  .hero--vial .hero__head > .btn-row { grid-column: 9 / -1; grid-row: 2; justify-content: flex-start; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero--vial .hero__head h1 { grid-column: 1 / span 6; }
  .hero--vial .hero__head .hero__lead, .hero--vial .hero__head > .btn-row { grid-column: 7 / -1; }
}

/* desktop: readout | the live vial | the compound list, three columns, nothing laid over the canvas */
.vial-stage { display: grid; grid-template-columns: 232px minmax(0, 1fr) 300px; grid-template-rows: minmax(0, 1fr); gap: var(--s-6); }
.vial-view { position: relative; min-height: 0; }
.vial-stage__canvas, .vial-stage__still { position: absolute; inset: 0; width: 100%; height: 100%; }
.vial-stage__canvas { touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity 400ms cubic-bezier(0.23, 1, 0.32, 1); }
.vial-stage__canvas.is-grabbing { cursor: grabbing; }
.vial-stage__still { object-fit: contain; max-width: none; padding: 0 !important; }
.vial-stage.is-live .vial-stage__canvas { opacity: 1; }
.vial-stage.is-still .vial-stage__canvas { display: none; }
.vial-stage.is-still .vial-pick, .vial-stage.is-still .vial-hint, .vial-stage.is-still .vial-pause { display: none; }

.vial-read { align-self: center; display: grid; }
.vial-read__kind { color: var(--accent); margin: 0 0 var(--s-2); }
.vial-read__name { font-family: var(--font-display); font-size: 30px; line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 var(--s-5); }
.vial-read__facts { display: grid; margin: 0; }
.vial-read__facts > div { display: flex; justify-content: space-between; gap: var(--s-3); padding: 10px 0; border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent); }
.vial-read__facts dt { color: var(--muted); font-size: 13px; }
.vial-read__facts dd { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.vial-hint { margin: var(--s-5) 0 0; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.vial-side { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--s-4); }
.vial-pick { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-4); width: 100%; }
.vial-pick button {
  all: unset; box-sizing: border-box; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--muted); padding: 0 4px; transition: color .2s ease;
}
.vial-pick button::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--accent) 55%, transparent); flex: none;
  transition: background .2s ease, transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.vial-pick button[aria-pressed="true"] { color: var(--ink); }
.vial-pick button[aria-pressed="true"]::before { background: var(--accent); border-color: var(--accent); }
.vial-pick button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.vial-pause {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--ink) 45%, transparent); background: var(--p-surface); color: var(--ink); display: grid; place-items: center; cursor: pointer;
  transition: border-color .2s ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.vial-pause svg { width: 14px; height: 14px; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.vial-pause .i-pause { fill: none; }
.vial-pause .i-play, .vial-pause[aria-pressed="true"] .i-pause { display: none; }
.vial-pause[aria-pressed="true"] .i-play { display: block; }

.vial-tip {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; margin: -64px 0 0 14px;
  padding: 8px 12px; border-radius: 10px; background: color-mix(in oklab, var(--p-surface) 94%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  display: grid; gap: 2px; white-space: nowrap;
}
.vial-tip b { font-weight: 500; font-size: 14px; color: var(--ink); }
.vial-tip span { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }

/* under 1024: the readout as one line on top, the vial, then the list as a row of pills with the pause button */
@media (max-width: 1023px) {
  .vial-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: var(--s-3); }
  .vial-read { align-self: start; grid-template-columns: auto 1fr; align-items: baseline; column-gap: var(--s-4); }
  .vial-read__kind, .vial-hint { display: none; }
  .vial-read__name { font-size: 22px; margin: 0; }
  .vial-read__facts { display: flex; gap: var(--s-4); justify-content: flex-end; }
  .vial-read__facts > div { border: 0; padding: 0; gap: 6px; }
  .vial-read__facts > div:nth-child(n+3) { display: none; }
  .vial-side { flex-direction: row; align-items: center; }
  .vial-pick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; width: auto; }
  .vial-pick::-webkit-scrollbar { display: none; }
  .vial-pick button { flex: none; padding: 0 14px; border: 1px solid color-mix(in oklab, var(--ink) 45%, transparent); border-radius: 999px; }
  .vial-pick button::before { display: none; }
  .vial-pick button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
}
@media (max-width: 639px) {
  .hero--vial .hero__stage.vial-stage { flex: 1 1 auto; aspect-ratio: auto; min-height: 300px; margin-bottom: 0; margin-top: var(--s-5); }
  .vial-read__facts > div:nth-child(2) { display: none; }
  .vial-read__facts dt, .vial-read__facts dd { font-size: 13px; }
}

/* ---------- catalog: five vials a row, each card the height its row is given ---------- */
.catalog { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter, 24px); align-self: stretch; min-height: 0; }
.group:has(> .catalog) { display: flex; flex-direction: column; }
.group > .catalog { flex: 1 1 auto; }
.vial-card { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; min-height: 0; transition: transform .25s cubic-bezier(.2,.7,.2,1); }

.vial-card__img { flex: 1 1 auto; min-height: 220px; border-radius: var(--r-lg); overflow: hidden; background: var(--p-surface); position: relative; }
.vial-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1); }
.vial-card__name { font-size: 17px; font-weight: 500; }
.vial-card__meta { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: auto; justify-content: space-between; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.vial-card__meta span:last-child { color: var(--accent); }
@media (max-width: 1023px) { .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); } .vial-card__img { min-height: 0; aspect-ratio: 4 / 5; flex: none; } }
@media (max-width: 639px) { .vial-card__img { aspect-ratio: 1 / 1; } }
@media (max-width: 639px) { .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }

/* ---------- lab reports: the cream ground ---------- */
.reports { overflow-x: auto; }
.reports:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.reports__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.reports__table th, .reports__table td { text-align: left; padding: 0 12px 0 0; height: 46px; border-bottom: 1px solid color-mix(in oklab, var(--ink) 14%, transparent); white-space: nowrap; }
.reports__table thead th { font-size: 13px; font-weight: 500; color: var(--muted); height: 40px; }
.reports__table tbody th { font-weight: 500; }
.reports__table td { font-family: var(--font-mono); font-size: 14px; }
.reports__table code { font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; background: color-mix(in oklab, var(--ink) 6%, transparent); padding: 3px 7px; border-radius: 6px; }
.reports__table tbody tr { transition: background .2s ease; }
.reports__table tbody tr:hover, .reports__table tbody tr:target { background: color-mix(in oklab, var(--ink) 5%, transparent); }
.pur { display: inline-flex; align-items: center; gap: 10px; }
.pur::before {
  content: ""; width: 64px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--p-accent-deep, #8b6d37) calc((var(--p) - 90) / 10 * 100%), color-mix(in oklab, var(--ink) 12%, transparent) 0);
}
@media (max-width: 767px) {
  .reports__table thead { display: none; }
  .reports__table, .reports__table tbody { display: block; }
  .reports { overflow: visible; }
  .reports__table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid color-mix(in oklab, var(--ink) 14%, transparent); }
  .reports__table th, .reports__table td { white-space: normal; }
  .reports__table tbody th { overflow-wrap: anywhere; }
  .reports__table td:nth-child(3), .reports__table td:nth-child(4) { white-space: nowrap; }
  .reports__table code { overflow-wrap: anywhere; }
  .reports__table td[data-label]::before { content: attr(data-label) " "; font-family: var(--font-text); color: var(--muted); font-size: 13px; }
  .reports__table th, .reports__table td { height: auto; border: 0; padding: 0; }
  .reports__table td:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--muted); }
  .reports__table td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; justify-self: end; }
  .reports__table td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; }
  .reports__table td:nth-child(5) { grid-column: 1 / -1; }
  .reports__table td:nth-child(6) { grid-column: 1; font-size: 13px; }
  .reports__table td:nth-child(7) { grid-column: 2; text-align: right; font-size: 13px; color: var(--muted); }
  .pur::before { display: none; }
}

/* ---------- ordering steps: rows on hairlines beside the label close-up ---------- */
.steps { list-style: none; padding: 0; margin: 0; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid color-mix(in oklab, var(--accent) 35%, transparent); }
.step__n { font-family: var(--font-mono); font-size: 13px; color: var(--accent); padding-top: 4px; }
.step > div { display: grid; gap: var(--s-2); }
.step h3 { margin: 0; font-family: var(--font-text); font-weight: 500; font-size: var(--t-card); line-height: 1.3; letter-spacing: -0.01em; }
.step p { margin: 0; }

/* ---------- research use statement ---------- */
.ruo .mo-la__sub { max-width: 58ch; color: var(--ink); }
.ruo-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter, 24px); margin: var(--s-7) 0 0; }
.ruo-facts > div { border-top: 1px solid color-mix(in oklab, var(--accent) 35%, transparent); padding-top: var(--s-4); display: grid; gap: var(--s-2); }
.ruo-facts dt { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.ruo-facts dd { margin: 0; font-size: var(--t-lead); }
@media (max-width: 639px) { .ruo-facts { grid-template-columns: 1fr; gap: var(--s-4); } }

/* lab head: the h2 left, the note and the link right */
#lab .section-head--row { align-items: end; }
.lab-aside { display: grid; gap: var(--s-4); max-width: 46ch; justify-items: start; }
.lab-aside p { font-size: var(--t-body); margin: 0; }

/* catalog: the second row takes the second screen */
#catalog > .wrap > .catalog { align-self: stretch; }

.hide-sm { display: inline; }
@media (max-width: 639px) { .hide-sm { display: none; } }

.hero--vial .hero__stage.vial-stage { margin-bottom: 0; }
@media (max-width: 639px) {
}
@media (max-width: 359px) { .nav__actions { display: none !important; } .nav__toggle { margin-left: auto; } }


/* hover and press motion: a mouse only (a tap would leave it stuck), and nothing moves under reduced motion */
@media (hover: hover) and (pointer: fine) {
  .vial-pick button:hover { color: var(--ink); }
  .vial-pause:hover { border-color: var(--accent); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .vial-pick button:hover::before { transform: scale(1.25); }
  .vial-card:hover { transform: translateY(-2px); }
  .vial-card:hover .vial-card__img img { transform: scale(1.03); }
}
@media (prefers-reduced-motion: no-preference) { .vial-pause:active { transform: scale(.97); } }

/* the compound row on a phone: the edge fades, so the seven chips past it read as more to scroll to */
@media (max-width: 1023px) {
  .vial-pick { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); padding-inline-end: 32px; scroll-padding-inline-end: 32px; }
}

/* the access form: field outlines at 3:1 on the black, a line that says every field is needed */
.form .field :is(input, select, textarea):not([aria-invalid="true"]) { border-color: color-mix(in oklab, var(--ink) 45%, transparent); }
.form__note { margin: 0; color: var(--muted); font-size: var(--t-small); }
/* the form heading clears the fixed bar when a button jumps to it */
#access { scroll-margin-top: calc(var(--nav, 56px) + var(--s-4)); }

/* footer: the lede's leading, and links tall enough to hit with a mouse */
.closing__links .footer__lede { line-height: 1.4; }
@media (min-width: 640px) {
  .footer__col a { display: inline-block; padding-block: 4px; }
  .footer__legal a { display: inline-block; padding: 6px 0; margin-inline-end: var(--s-3); }
}

/* catalog: the meta never breaks inside a figure, a missing picture shows the tile, not its alt text */
.vial-card__meta span { white-space: nowrap; }
.vial-card__img img { color: transparent; }
.catalog { grid-auto-rows: minmax(min-content, 1fr); }
/* phone: the two rows of five become one grid of ten (no lone card), each vial whole in its square
   (contain on the render's own ground, #111113, the card colour) */
@media (max-width: 639px) {
  #catalog > .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-content: start; }
  #catalog > .wrap > .group, #catalog .catalog { display: contents; }
  #catalog .section-head { grid-column: 1 / -1; }
  .vial-card__img img { object-fit: contain; }
}
@media (max-width: 359px) { #catalog > .wrap { grid-template-columns: minmax(0, 1fr); } }

/* lab: a card's link lands the row below the fixed bar; on desktop the section grows to hold all ten rows */
.reports__table tr[id] { scroll-margin-top: calc(var(--nav, 56px) + 24px); }
.reports { flex: none; }
@media (min-width: 1024px) {
  .reports { overflow-y: hidden; }
  .reports__table tbody th { white-space: normal; min-width: 12ch; }
  main > #lab.section { height: auto; min-height: 100svh; }
}
.lab-aside { overflow-wrap: anywhere; }
@media (max-width: 359px) { .btn { white-space: normal; } }

/* phone: the label close-up at its own 9:10, uncropped; the cap close-up drops, it only stood between the answers and the form */
@media (max-width: 639px) {
  #how .grid.fill > .frame--fill { flex: none; aspect-ratio: 9 / 10; height: auto; min-height: 0; }
  #faq .grid.fill > .frame--fill { display: none; }
}

/* desktop lab: all ten rows inside one screen */
@media (min-width: 1024px) {
  .reports__table th, .reports__table td { height: 38px; }
  .reports__table thead th { height: 32px; }
}
/* phone FAQ: with the cap close-up gone the answers fill one screen, not two */
@media (max-width: 639px) { #faq { --hm: 1 !important; } }

/* desktop catalog: all ten on one screen, every vial the same size (the second row no longer takes a screen of its own) */
@media (min-width: 1024px) {
  main > #catalog.section.g2 { --h: 1; }
  main > #catalog.g2 > .wrap { display: flex; flex-direction: column; row-gap: var(--gutter, 24px); justify-content: center; }
  #catalog .group { display: flex; flex-direction: column; flex: none; }
  #catalog .catalog { flex: none; grid-auto-rows: auto; }
  #catalog .vial-card__img { flex: none; min-height: 0; aspect-ratio: 5 / 4; }
  #catalog .vial-card__img img { object-fit: contain; object-position: 50% 55%; scale: 1.15; }   /* the render's own margin, taken back */
}

/* the bar's "Request access" steps aside while the hero's own button is on screen, so two gold buttons never sit together */
.nav__actions { transition: opacity .25s ease, visibility 0s linear 0s; }
.nav__actions.is-tucked { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility 0s linear .25s; }

/* the ordering picture: the whole vial label, never cropped by a tall frame; the frame takes the render's own ground */
#how .frame { background: var(--p-surface); }
#how .frame__img { object-fit: contain; }


/* ---------- round-2 critique fixes ---------- */
/* the bar's button returns inside the open phone menu, and steps aside at the form too (two gold buttons never together) */
.nav.is-open .nav__actions.is-tucked { opacity: 1; visibility: visible; pointer-events: auto; transition: none; }

/* lab on a tablet: the table, without the Lot column, names wrapping */
@media (min-width: 768px) and (max-width: 1023px) {
  .reports__table th:nth-child(6), .reports__table td:nth-child(6) { display: none; }
}
@media (min-width: 768px) {
  .reports__table tbody th { white-space: normal; min-width: 12ch; }
}
/* lab at 1024 x 768 and other short desktops: all ten rows still on the screen */
@media (min-width: 1024px) and (max-height: 820px) {
  .reports__table th, .reports__table td { height: 33px; }
  .reports__table thead th { height: 30px; }
}

/* catalog on a tablet: one grid of ten, five a row, no holes, no stretched cards */
@media (min-width: 640px) and (max-width: 1023px) {
  #catalog > .wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; gap: 24px 16px; align-content: start; }
  #catalog > .wrap > .group, #catalog .catalog { display: contents; }
  #catalog .section-head { grid-column: 1 / -1; }
  .vial-card__img { aspect-ratio: 4 / 5; }
  .vial-card__img img { object-fit: contain; }
  .vial-card__name { font-size: 15px; }
  main > #catalog.section.g2 { --h: 1; }
}
/* phone catalog: the kit's two 1fr screen rows no longer stretch the first card row */
@media (max-width: 639px) {
  #catalog > .wrap { grid-template-rows: none; grid-auto-rows: auto; }
}

/* the ordering picture and the FAQ cap: the whole render at its own 9:10, centred beside the words, never stretched */
#how .grid.fill > .frame--fill, #faq .grid.fill > .frame--fill { flex: none; height: auto !important; min-height: 0; aspect-ratio: 9 / 10; align-self: center; }
#faq .frame { background: var(--p-surface); }
#faq .frame__img { object-fit: contain; }
@media (min-width: 640px) and (max-width: 1023px) {
  #how .grid.fill > .frame--fill { width: min(100%, 320px); margin-inline: auto; }
  #faq .grid.fill > .frame--fill { display: none; }
}
/* phone: the ordering section is as tall as its steps and picture, not two screens */
@media (max-width: 639px) { #how { --hm: 1 !important; } }
@media (min-width: 640px) and (max-width: 1023px) { #how, #ruo { --hm: 1 !important; } }
/* a short desktop: the ordering section grows instead of pushing step 04 under the fold */
@media (min-width: 1024px) and (max-height: 820px) {
  main > #how.section { height: auto; min-height: 100svh; }
  .step { padding: var(--s-4) 0; }
}

/* research use: the facts start on one line; the assembling letters stay inside their section */
.ruo-facts > div { align-content: start; }
.ruo .mo-la__sub { text-wrap: pretty; }
@media (max-width: 1023px) { main > #ruo.section > .wrap { display: flex; flex-direction: column; justify-content: center; } }

/* hero head at 1280 and up: a wider right column, so the two buttons sit side by side */
@media (min-width: 1280px) {
  .hero--vial .hero__head h1 { grid-column: 1 / span 7; }
  .hero--vial .hero__head .hero__lead, .hero--vial .hero__head > .btn-row { grid-column: 8 / -1; }
  .hero--vial .hero__head > .btn-row { flex-wrap: nowrap; }
}
/* phone hero: the secondary button gives its row to a larger vial (the lab link is in the menu and one scroll away) */
@media (max-width: 639px) {
  .hero--vial .hero__head .btn--secondary { display: none; }
  .hero--vial .hero__stage.vial-stage { min-height: 340px; }
}
/* the compound pills snap, so the fade lands between chips, not mid-word */
@media (max-width: 1023px) {
  .vial-pick { scroll-snap-type: x mandatory; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
  .vial-pick button { scroll-snap-align: start; }
}

/* form errors: a wrapped message stays beside its mark; fields in a row stay on one line; less dead space on a phone */
.field__error:not([hidden]) { display: flex; align-items: flex-start; }
.field__error::before { flex: none; margin-top: 2px; }
.form { align-items: start; }
@media (max-width: 1023px) { #access .grid { row-gap: var(--s-5); } }

/* footer: the logo at the header's size, the lede at body size, the legal links spaced evenly */
.closing__links .brand-logo__img { width: 130px; }
.closing__links .footer__lede { font-size: var(--t-body); }
.footer__legal > span { display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: var(--s-5); }
.footer__legal a { margin-inline-end: 0; }

/* the Catalog menu pictures show the whole vial */
.menu-card .frame__img { object-fit: contain; }
.vial-card[id] { scroll-margin-top: calc(var(--nav, 56px) + 24px); }
/* a tablet: the ordering section is as tall as its steps and picture */
@media (min-width: 640px) and (max-width: 1023px) { main > #how.section { height: auto; min-height: 100svh; } }
/* a short desktop (1024 x 768): the catalog and the lab keep to one screen */
@media (min-width: 1024px) and (max-height: 820px) {
  main > #catalog.section, main > #lab.section { --padt: 40px; --padb: 40px; }
}

/* ---------- round-2 measurements ---------- */
/* phone: the ordering picture takes the column's width (centred, it shrank to nothing) */
@media (max-width: 639px) { #how .grid.fill > .frame--fill { width: 100%; } }
/* phone: the © on its own line, Privacy and Terms together under it */
@media (max-width: 639px) { .footer__legal > span > span:first-child { flex-basis: 100%; } }
/* the pill row fades at both edges, so a chip scrolled past the left edge is not cut hard */
@media (max-width: 1023px) {
  .vial-pick { -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 24px), transparent); scroll-padding-inline: 20px; padding-inline-start: 0; }
}
/* tablet: the FAQ keeps its cap picture (small, centred) instead of a third of a screen of nothing;
   the ordering and FAQ grids size to their content; the catalog figures stack under the name */
@media (min-width: 640px) and (max-width: 1023px) {
  #faq .grid.fill > .frame--fill { display: block; width: min(100%, 320px); margin-inline: auto; }
  main > #faq.section { height: auto; min-height: 100svh; }
  #how .grid.fill, #faq .grid.fill { height: auto; }
  .vial-card__meta { flex-direction: column; gap: 2px; }
}
/* a short desktop: the lab and catalog headings land below the bar */
@media (min-width: 1024px) and (max-height: 820px) {
  main > #catalog.section, main > #lab.section { scroll-margin-top: var(--nav, 72px); }
}
/* 1024 to 1279: narrower side columns give the vial more room */
@media (min-width: 1024px) and (max-width: 1279px) {
  .vial-stage { grid-template-columns: 200px minmax(0, 1fr) 244px; gap: var(--s-5); }
  .vial-pick { column-gap: var(--s-3); }
}
/* under 1024 the ordering and FAQ blocks grow with their picture instead of overflowing a fixed screen */
@media (max-width: 1023px) { main > #how > .wrap > .fill, main > #faq > .wrap > .fill { flex: 1 0 auto; min-height: auto; } }
