/* AscendMax Labs — black and chrome, taken from the logo. */
:root {
  --bg: #000;
  --panel: #0a0a0b;
  --panel-2: #111113;
  --line: #232326;
  --line-strong: #3a3a3f;
  --text: #ececee;
  --muted: #8d9096;
  --silver: #c9ccd1;
  --chrome: linear-gradient(180deg, #ffffff 0%, #d5d7db 38%, #7d8187 52%, #c4c7cc 68%, #f4f5f6 100%);
  --chrome-fill: linear-gradient(180deg, #ffffff 0%, #e2e4e7 45%, #b4b8be 100%);
  --display: "Exo 2", "Eurostile", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } /* a phone turned sideways keeps the text size */
body {
  position: relative; /* so the vials at the sides can be placed all the way down the page */
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; margin: 0; line-height: 1.1; text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.chrome-text { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }

/* Night sky behind every page. The stars themselves are drawn by js/sky.js. */
.sky { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -2; overflow: hidden; pointer-events: none; }
.sky canvas { display: block; width: 100%; height: 100%; }
.sky i { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; background: #fff; box-shadow: 0 0 calc(var(--s) * 2) rgba(255, 255, 255, 0.6); animation: twinkle var(--t) ease-in-out var(--d) infinite alternate; }
@keyframes twinkle { from { opacity: 0; } to { opacity: 0.95; } }

/* Supernova: one small burst of light, on the home page and the entry screen. --k sets its size. */
.nova { position: absolute; z-index: -1; width: 0; height: 0; pointer-events: none; --k: 1; }
.nova i { position: absolute; left: 0; top: 0; width: calc(var(--d) * var(--k)); height: calc(var(--d) * var(--k)); margin: calc(var(--d) * var(--k) / -2) 0 0 calc(var(--d) * var(--k) / -2); border-radius: 50%; }
.nova-halo { --d: 620px; background: radial-gradient(closest-side, rgba(214, 224, 242, 0.16) 0%, rgba(196, 208, 230, 0.085) 12%, rgba(170, 182, 206, 0.04) 32%, rgba(150, 162, 188, 0.014) 58%, transparent 100%); }
.nova-shell { --d: 230px; background: radial-gradient(closest-side, transparent 62%, rgba(214, 224, 242, 0.05) 74%, rgba(232, 238, 250, 0.17) 83%, rgba(214, 224, 242, 0.05) 90%, transparent 100%); transform: rotate(-24deg) scaleY(0.8); animation: nova-shell 12s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.nova-rays { --d: 300px; background: conic-gradient(from 8deg, transparent 0deg, rgba(255, 255, 255, 0.11) 4deg, transparent 10deg, transparent 52deg, rgba(255, 255, 255, 0.07) 57deg, transparent 63deg, transparent 118deg, rgba(255, 255, 255, 0.09) 122deg, transparent 129deg, transparent 171deg, rgba(255, 255, 255, 0.06) 176deg, transparent 182deg, transparent 229deg, rgba(255, 255, 255, 0.1) 234deg, transparent 240deg, transparent 291deg, rgba(255, 255, 255, 0.07) 296deg, transparent 303deg, transparent 360deg); -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.55) 26%, transparent 100%); mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.55) 26%, transparent 100%); }
.nova-spikes { --d: 0px; transform: rotate(-14deg); }
.nova-spikes::before, .nova-spikes::after { content: ""; position: absolute; left: 0; top: 0; }
.nova-spikes::before { width: calc(380px * var(--k)); height: 1.5px; margin: -0.75px 0 0 calc(-190px * var(--k)); background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.07) 28%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.07) 72%, transparent 100%); }
.nova-spikes::after { width: 1.5px; height: calc(260px * var(--k)); margin: calc(-130px * var(--k)) 0 0 -0.75px; background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.07) 28%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.07) 72%, transparent 100%); }
.nova-core { --d: 54px; background: radial-gradient(closest-side, #fff 0%, #fff 7%, rgba(240, 245, 255, 0.9) 13%, rgba(216, 228, 250, 0.42) 30%, rgba(200, 214, 242, 0.12) 60%, transparent 100%); animation: nova-core 4.6s ease-in-out infinite alternate; }
@keyframes nova-shell {
  0% { transform: rotate(-24deg) scale(0.3, 0.24); opacity: 0; }
  14% { opacity: 1; }
  70% { opacity: 0.45; }
  100% { transform: rotate(-24deg) scale(1.3, 1.04); opacity: 0; }
}
@keyframes nova-core { from { transform: scale(0.9); opacity: 0.82; } to { transform: scale(1.12); opacity: 1; } }

/* Header */
.notice { background: var(--panel-2); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-align: center; padding: 8px 16px; text-transform: uppercase; }
#site-header { display: contents; } /* lets the header below stick to the page, not to this wrapper */
.header { position: sticky; top: 0; z-index: 20; background: rgba(0, 0, 0, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; font-family: var(--display); font-style: italic; font-weight: 900; line-height: 1; }
.wordmark span { font-size: 22px; letter-spacing: 0.1em; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.1em; }
.wordmark small { font-size: 10px; font-weight: 600; letter-spacing: 0.6em; color: var(--silver); margin-top: 3px; padding-left: 0.6em; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); transition: color 0.15s; }
.nav a:hover, .nav a[aria-current] { color: #fff; }
/* The right end of the menu: the sign-up link, the person (sign in) and the cart with its number. */
.header-tools { display: flex; align-items: center; gap: 4px; }
.header-tools .signup-link { margin-right: 14px; }
.icon-btn { position: relative; flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: color 0.15s, background-color 0.15s; }
.icon-btn:hover, .icon-btn[aria-current] { color: #fff; background: var(--panel-2); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-link b { position: absolute; top: 1px; right: -1px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 9px; background: var(--chrome-fill); color: #000; box-shadow: 0 0 0 2px #000; font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.cart-link b[hidden] { display: none; }
/* Signed in: a small silver dot on the person. */
.account-btn.is-in { color: var(--text); }
.account-btn.is-in::after { content: ""; position: absolute; right: 8px; bottom: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--chrome-fill); box-shadow: 0 0 0 2px #000; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border: 1px solid transparent; border-radius: var(--radius); background: var(--chrome-fill); color: #000; font-family: var(--display); font-size: 13px; font-weight: 800; font-style: italic; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transition: filter 0.15s, border-color 0.15s, color 0.15s; }
.btn:hover { filter: brightness(1.12); }
.btn-ghost { background: none; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: #fff; filter: none; }
.btn-sm { padding: 9px 16px; font-size: 11px; }
.btn[disabled] { background: var(--panel-2); color: var(--muted); border-color: var(--line); cursor: not-allowed; filter: none; }

/* Hero */
.hero { position: relative; text-align: center; padding: 24px 0 72px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, #fff 50%, transparent); opacity: 0.5; }
/* The logo picture has empty space above and below the artwork; the negative margins close it up. */
.hero-logo { --w: min(660px, 100%, 62vh * 1.5); width: var(--w); margin: calc(var(--w) * -0.045) auto calc(var(--w) * -0.13); }
.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hero-lead { max-width: 52ch; margin: 0 auto 28px; color: var(--muted); font-size: 17px; text-wrap: balance; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .nova { left: min(calc(50% + 400px), calc(100% - 56px)); top: 84px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.facts div { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts strong { display: block; font-family: var(--display); font-style: italic; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; }
.facts span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 36px); }
.link-more { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver); border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; }
.link-more:hover { color: #fff; border-color: #fff; }
.page-head { padding: 48px 0 28px; }
.page-head h1 { font-size: clamp(30px, 5vw, 52px); }
.page-head p { color: var(--muted); margin-top: 8px; }

/* Vials floating in the empty space at the left and right of every page.
   --g is the width of that empty space on one side. The picture box may be wider than that space,
   because the vial only fills the middle of its picture. They hide when the space gets too narrow. */
.side-vials { --g: calc((100vw - 1200px) / 2); --size: min(250px, calc(var(--g) * 1.7)); position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.side-vial { position: absolute; width: var(--size); margin: 0; opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.side-vial.in { opacity: 1; transform: none; }
.side-vial.left { left: calc((var(--g) - var(--size)) / 2); }
.side-vial.right { right: calc((var(--g) - var(--size)) / 2); }
.side-vial-art { position: relative; aspect-ratio: 1; animation: side-float 6.5s ease-in-out var(--delay, 0s) infinite alternate; }
.side-vial.left .side-vial-art { --tilt: -7deg; }
.side-vial.right .side-vial-art { --tilt: 7deg; }
.side-vial-art svg, .side-vial-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.side-vial-art img { object-fit: contain; }
.side-vial-art.has-img svg { display: none; }
/* The name is given the full width of the empty space, and is cut short with "…" if it still does not fit. */
.side-vial figcaption { width: var(--g); margin: 8px 0 0 calc((var(--size) - var(--g)) / 2); padding: 0 10px; overflow: hidden; text-overflow: ellipsis; text-align: center; color: var(--muted); font-family: var(--display); font-style: italic; font-weight: 600; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; }
@keyframes side-float { from { transform: translateY(-7px) rotate(var(--tilt, 0deg)); } to { transform: translateY(7px) rotate(var(--tilt, 0deg)); } }
@media (max-width: 1479px) {
  .side-vial figcaption { display: none; }
}
@media (max-width: 1339px) {
  .side-vials { display: none; }
}

/* Shop controls */
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--muted); font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.chip:hover { color: #fff; border-color: var(--silver); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--chrome-fill); color: #000; border-color: transparent; }
.field, select.field { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--text); font: inherit; font-size: 15px; padding: 11px 14px; width: 100%; }
.field::placeholder { color: var(--muted); }
.field:focus { outline: none; border-color: #fff; }
.controls .search { flex: 1 1 220px; max-width: 320px; margin-left: auto; }
.controls select { width: auto; }
.count { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: var(--silver); transform: translateY(-2px); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 17px; letter-spacing: 0.05em; }
.card h3 a:hover { color: #fff; }
/* The foot of a card: the price at the right, and under it the "Add to cart" button, as wide as the card. */
.card-foot { display: grid; gap: 10px; margin-top: auto; padding-top: 14px; }
.card-foot .price { justify-self: end; text-align: right; }
.price { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; color: var(--silver); font-variant-numeric: tabular-nums; }
/* "For research use only. Not for human or veterinary use." The same line under every product (the
   words are RESEARCH_LINE in js/products.js): under the name in a card, where the sizes used to be,
   under the price on a product's own page, under the name in a bulk-order row, a cart line and a
   certificate row, and under the buttons that lead to an order. */
.ruo-line { color: var(--muted); font-size: 12px; line-height: 1.45; letter-spacing: 0.01em; text-wrap: balance; }
.ruo-line span { display: inline-block; }   /* a sentence stays in one piece: a line of two rows breaks between the sentences */
.card .ruo-line { margin-top: 2px; }
.product .ruo-line { margin-bottom: 26px; font-size: 13px; }
.bulk-row .ruo-line { margin-top: 4px; }
.coa-row .ruo-line { margin-top: 8px; }
.line .ruo-line { margin-top: 10px; }
.summary .ruo-line { margin-top: 12px; text-align: center; }

/* Empty vial slot */
.vial { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #17171a 0%, #060607 70%); display: grid; place-items: center; }
.vial::before { content: ""; position: absolute; inset: 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.vial-empty { padding: 0 22px; text-align: center; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #55585e; }   /* centred inside the dashed box, also when it takes two lines */
.vial img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vial.has-img::before, .vial.has-img .vial-empty { display: none; }

/* Product page */
.crumbs { padding: 24px 0 0; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: #fff; }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 28px 0 72px; align-items: start; }
.product .vial { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product h1 { font-size: clamp(28px, 4.4vw, 46px); margin: 6px 0 12px; }
.product .price { font-size: 24px; display: block; margin-bottom: 8px; }   /* the research line sits right under it */
.label { display: block; font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.size { padding: 11px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.size:hover { border-color: var(--silver); }
.size[aria-pressed="true"] { background: var(--chrome-fill); color: #000; border-color: transparent; }
.buy { display: flex; gap: 12px; margin-bottom: 28px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.qty button { width: 42px; height: 46px; background: none; border: 0; color: var(--text); font-size: 18px; cursor: pointer; }
.qty button:hover { color: #fff; background: var(--panel-2); }
.qty span { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.buy .btn { flex: 1; }
.ruo { border: 1px solid var(--line); border-left: 2px solid var(--silver); background: var(--panel); padding: 16px 18px; font-size: 14px; color: var(--muted); border-radius: var(--radius); }
.ruo strong { color: var(--text); display: block; margin-bottom: 4px; }
.specs { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); font-size: 14px; }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs span:first-child { color: var(--muted); }
/* The price while a quantity discount applies: the price each, the usual price crossed out, the saving. */
.product .price s { margin-left: 8px; color: var(--muted); font-size: 16px; font-weight: 400; }
.product .price small { margin-left: 6px; color: var(--muted); font-family: var(--body); font-size: 13px; font-weight: 400; letter-spacing: 0; }
/* "Bundle and save": one button per deal. The one that matches the quantity chosen is marked like a chosen size. */
.bundles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bundle { display: grid; gap: 3px; align-content: center; min-height: 68px; padding: 10px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: none; color: var(--text); font: inherit; text-align: center; cursor: pointer; }
.bundle b { font-size: 15px; font-variant-numeric: tabular-nums; }
.bundle span { color: var(--muted); font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.bundle small { color: var(--silver); font-size: 12px; font-variant-numeric: tabular-nums; }
.bundle small:empty { display: none; }
.bundle:hover { border-color: var(--silver); }
.bundle[aria-pressed="true"] { background: var(--chrome-fill); color: #000; border-color: transparent; }
.bundle[aria-pressed="true"] span, .bundle[aria-pressed="true"] small { color: #26272b; }
.bundle-hint { margin: 10px 0 26px; }
/* Three points under the Add to cart button: free shipping, shipping protection, secure checkout. */
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.perks li { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--muted); font-size: 12px; line-height: 1.4; }
.perks svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--silver); }
.perks strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 13px; }
/* The sections under the picture and the buy box: certificates, "What is ...?", related products, research notice. */
.pd-section { padding: 48px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.pd-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px 48px; align-items: start; }
.pd-head h2 { margin-top: 8px; font-size: clamp(22px, 3vw, 32px); }
.pd-head .link-more { display: inline-block; margin-top: 18px; }
.pd-section .empty { padding: 36px 24px; background: var(--panel); }   /* a background, so no star shows through the words */
.coa-latest { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.coa-purity b { display: block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 46px; line-height: 1; padding-right: 0.1em; }
.coa-purity span { display: block; margin-top: 8px; color: var(--muted); font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.coa-facts { flex: 1 1 220px; display: grid; gap: 8px; margin: 0; font-size: 14px; }
.coa-facts div { display: flex; justify-content: space-between; gap: 16px; }
.coa-facts dt { color: var(--muted); }
.coa-facts dd { margin: 0; text-align: right; }
.coa-earlier { margin-top: 24px; color: var(--muted); font-size: 13px; letter-spacing: 0.16em; }
.info { margin: 0; border-top: 1px solid var(--line); font-size: 15px; }
.info div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info dt { color: var(--muted); }
.info dd { margin: 0; text-align: right; }
.research-notice { padding: 24px 26px; border: 1px solid var(--line); border-left: 2px solid var(--silver); border-radius: var(--radius); background: var(--panel); color: var(--muted); font-size: 14px; }
.research-notice h2 { margin-bottom: 12px; color: var(--text); font-size: 16px; letter-spacing: 0.16em; }
.research-notice p { max-width: 92ch; }
.research-notice p + p { margin-top: 10px; }
.research-notice strong { color: var(--text); }

/* Cart and checkout */
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 36px; padding-bottom: 72px; align-items: start; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line .vial { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.line .vial-empty { display: none; }
.line .vial::before { inset: 6px; }
.line h3 { font-size: 16px; }
.line-meta { color: var(--muted); font-size: 13px; margin: 2px 0 10px; }
.line-end { text-align: right; display: grid; gap: 8px; justify-items: end; }
.remove { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }
.remove:hover { color: #fff; }
.line .qty button { width: 34px; height: 36px; }
.summary { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 92px; }
.summary h2 { font-size: 18px; margin-bottom: 16px; }
.summary dl { margin: 0 0 20px; display: grid; gap: 10px; font-size: 15px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-variant-numeric: tabular-nums; }
.summary .total { border-top: 1px solid var(--line); padding-top: 14px; font-weight: 700; }
.summary .btn { width: 100%; }
.hint { color: var(--muted); font-size: 13px; margin-top: 12px; }
.form-block { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 24px; margin-bottom: 18px; }
.form-block h2 { font-size: 18px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.form-grid label { grid-column: span 6; font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.form-grid .half { grid-column: span 3; }
.form-grid .third { grid-column: span 2; }
/* A problem with what was typed in a field (checkout: a PO box as the address). The field gets the
   site's amber, and the message sits under it. Empty message: no space taken. */
.field[aria-invalid="true"], .field[aria-invalid="true"]:focus { border-color: #e6c873; }
.field-warning { grid-column: 1 / -1; margin-top: -4px; color: #e6c873; font-size: 13px; }
.field-warning:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: #d5d7db; flex: none; }
.pay-pending { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); font-size: 14px; }
/* Choices at checkout (ways of shipping, shipping protection): one row each, the price at the end. */
.options { display: grid; gap: 10px; }
.options + .options { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 15px; cursor: pointer; }
.option:hover { border-color: var(--silver); }
.option:has(input:checked) { border-color: var(--silver); background: var(--panel-2); }
.option input { width: 18px; height: 18px; margin: 0; accent-color: #d5d7db; flex: none; }
.option-name { flex: 1; min-width: 0; }
.option-name small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.option-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Bulk orders */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 36px; }
.tier { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.tier b { display: block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 46px; line-height: 1; padding-right: 0.1em; }
.tier span { display: block; margin-top: 10px; }
.tier small { color: var(--muted); font-size: 13px; }
/* A product in the bulk list: its picture, then its name with its sizes to click through, then the
   price per unit at bulk pricing (the regular price crossed out under it), then "Add 10". */
.bulk-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bulk-thumb { display: block; }
.bulk-thumb .vial { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.bulk-thumb .vial-empty { display: none; }
.bulk-thumb .vial::before { inset: 6px; }
.bulk-row h3 { font-size: 16px; }
.bulk-row h3 a:hover { color: #fff; }
.bulk-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bulk-sizes .size { padding: 6px 12px; font-size: 13px; }
.bulk-size { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.bulk-note { margin-top: 8px; color: var(--silver); font-size: 13px; }
.bulk-price { min-width: 124px; text-align: right; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.bulk-each b { color: var(--text); font-family: var(--display); font-size: 19px; letter-spacing: 0.02em; }
.bulk-was { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.bulk-ten { margin-top: 5px; font-size: 12px; }
.deal { padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--silver); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
/* "Your bulk order": the box beside the list. From the top: the products in the order (a list that
   opens and shuts), what they come to at regular prices, what the discounts take off, shipping and
   the total, then the way to checkout. It uses the cart panel's lines (.panel-line). */
.bulk-order { max-height: calc(100vh - 108px); overflow-y: auto; overscroll-behavior: contain; padding: 22px 22px 20px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.bulk-order:focus { outline: none; }   /* it takes the focus when the line that was being changed is gone */
.bulk-order h2 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; }
.bulk-order h2 span { color: var(--muted); font-family: var(--body); font-style: normal; font-weight: 400; font-size: 14px; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.order-items { margin-bottom: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.order-items > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; color: var(--muted); font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; list-style: none; }
.order-items > summary::-webkit-details-marker { display: none; }
.order-items > summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: -3px 4px 0 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 0.2s; }
.order-items[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.order-items > summary:hover { color: #fff; }
.order-items .panel-lines { border-top: 1px solid var(--line); }
.order-items .panel-line { padding: 14px 0; }
.bulk-order .panel-line .ruo-line { grid-column: 1 / -1; margin-top: 0; text-align: left; }
.order-none { padding: 14px 0; color: var(--muted); font-size: 14px; }
.order-each { margin-top: 4px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.bulk-order dl { margin-bottom: 12px; }
.bulk-order dt .deal { margin-left: 6px; }
.bulk-order .saving dd { color: #fff; font-weight: 600; }
.order-hint { min-height: 3em; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.order-start { display: grid; place-items: center; min-height: 50px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); font-size: 14px; }
.bulk-order .link-more { display: block; width: fit-content; margin: 14px auto 0; }
/* Beside the list, on a screen tall enough for it: the amounts and the checkout button stay at the
   bottom of the box, and the products in the order scroll under them. */
@media (min-width: 821px) and (min-height: 640px) {
  .bulk-order { scroll-padding-bottom: 350px; }
  .bulk-order .order-items { margin-bottom: 0; border-bottom: 0; }
  .order-bottom { position: sticky; bottom: -20px; z-index: 1; margin: 0 -22px -20px; padding: 16px 22px 20px; background: var(--panel); border-top: 1px solid var(--line); }
}
/* Text that is read out but not shown ("Regular price" in front of a crossed-out price). */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Certificates of analysis */
.coa-list { padding-bottom: 72px; }
.controls .search:only-child { margin-left: 0; }
.coa-row { padding: 16px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.coa-main { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.coa-main > :first-child { flex: 1 1 240px; }
.coa-row h3 { font-size: 16px; }
.coa-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.coa-sizes span { padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 12px; }
.coa-none { min-width: 120px; color: var(--muted); font-size: 13px; text-align: right; }
.coa-docs { list-style: none; margin: 0; padding: 6px 0 0; }
.coa-docs li { margin-top: 8px; font-size: 14px; }

/* Policy pages */
.policy-nav { margin-bottom: 24px; }
.draft-note { max-width: 72ch; margin-bottom: 24px; padding: 12px 16px; border: 1px dashed #7a6420; border-radius: var(--radius); background: #151104; color: #e6c873; font-size: 14px; }
.todo { padding: 1px 5px; border-radius: 3px; background: #2b2408; color: #f1d27c; white-space: nowrap; }
.prose { max-width: 72ch; padding-bottom: 72px; color: var(--silver); line-height: 1.7; }
.prose h2 { font-size: 19px; color: var(--text); margin: 40px 0 12px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 8px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose a, .hint a, .check a, .specs a, .coa-docs a, .ruo a, .info a, .research-notice a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover, .hint a:hover, .check a:hover, .specs a:hover, .coa-docs a:hover, .ruo a:hover, .info a:hover, .research-notice a:hover { color: #fff; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--panel); padding: 44px 0 32px; margin-top: 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--muted); }
.footer nav a:hover { color: #fff; }
.footer-contact { margin-bottom: 22px; color: var(--muted); font-size: 14px; }
.footer-contact a { color: var(--silver); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.footer-contact a:hover { color: #fff; }
.disclaimer { color: var(--muted); font-size: 13px; max-width: 90ch; border-top: 1px solid var(--line); padding-top: 22px; }
.copyright { color: #55585e; font-size: 12px; margin-top: 16px; }

/* Entry gate */
/* The entry screen has no background of its own: the sky shows through, and the page behind is hidden. */
body.locked > #site-header, body.locked > main, body.locked > #site-footer, body.locked > .side-vials { visibility: hidden; }
.gate { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow-y: auto; }
.gate-panel { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: clamp(28px, 6vw, 80px); }
.gate-panel .wordmark { align-self: flex-start; margin-bottom: 8px; }
.gate-panel h2 { font-size: clamp(30px, 4.4vw, 50px); margin-top: 10px; }
.gate-lead { max-width: 46ch; color: var(--muted); }
.gate-check { display: flex; gap: 14px; align-items: flex-start; max-width: 480px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); color: var(--silver); font-size: 15px; cursor: pointer; }
.gate-check:hover, .gate-check:has(:checked) { border-color: var(--silver); }
.gate-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #d5d7db; }
.gate-check b { color: #fff; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gate-fine { max-width: 52ch; color: var(--muted); font-size: 12px; }
.gate-fine a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.gate-art { position: relative; overflow: hidden; display: grid; place-items: center; border-left: 1px solid var(--line); }
.gate-art .nova { left: 74%; top: 20%; }
.gate-art img { width: min(620px, 94%); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--chrome-fill); color: #000; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; padding: 12px 22px; border-radius: var(--radius); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Cart panel: slides in from the right when something is added to the cart (CartPanel in js/app.js).
   From the top: the heading, the cart total with the free-shipping bar, what was just added, then
   the part that scrolls (the sizes to pick from, the lines in the cart), and the subtotal with the
   buttons at the bottom. While it is open the page behind is dimmed and does not scroll. */
html.panel-open body { overflow: hidden; }
.cart-panel { position: fixed; inset: 0; z-index: 60; visibility: hidden; transition: visibility 0s linear 0.32s; }
.cart-panel.open { visibility: visible; transition-delay: 0s; }
.panel-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.66); opacity: 0; transition: opacity 0.3s; }
.cart-panel.open .panel-shade { opacity: 1; }
.panel-box { position: absolute; top: 0; right: 0; bottom: 0; width: min(430px, 100% - 28px); display: flex; flex-direction: column; background: var(--panel); border-left: 1px solid var(--line-strong); box-shadow: -28px 0 70px rgba(0, 0, 0, 0.7); transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cart-panel.open .panel-box { transform: none; }
.panel-box:focus { outline: none; }   /* it takes the focus when it opens, without a ring around the whole panel */
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 18px; }
.panel-head h2 span { margin-left: 4px; color: var(--muted); font-family: var(--body); font-style: normal; font-weight: 400; font-size: 14px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.panel-x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -12px -6px 0; border: 0; border-radius: var(--radius); background: none; color: var(--muted); cursor: pointer; }
.panel-x:hover { color: #fff; background: var(--panel-2); }
.panel-x svg { width: 18px; height: 18px; }
/* The cart total against the amount that makes shipping free. The bar fills as the total grows. */
.panel-meter { padding: 14px 20px 16px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.panel-meter-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.panel-meter-top > span { color: var(--muted); font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.panel-meter-top b { font-family: var(--display); font-size: 18px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.panel-meter-top small { color: var(--muted); font-size: 13px; font-weight: 600; }
.panel-bar { height: 6px; margin: 10px 0; border-radius: 3px; background: var(--line-strong); overflow: hidden; }
.panel-bar i { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--chrome-fill); transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.panel-meter-note { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.panel-meter-note b { color: var(--text); font-variant-numeric: tabular-nums; }
.panel-meter-note svg, .panel-note svg { flex: none; width: 16px; height: 16px; color: var(--silver); }
.panel-meter.reached .panel-meter-note { color: var(--text); }
.panel-meter.reached .panel-bar { box-shadow: 0 0 12px rgba(255, 255, 255, 0.28); }
.panel-note { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-bottom: 1px solid var(--line); color: var(--silver); font-size: 13px; }
.panel-note b { color: var(--text); }
.panel-note[hidden], .panel-foot[hidden] { display: none; }
.panel-body { flex: 1; min-height: 0; padding: 0 20px; overflow-y: auto; overscroll-behavior: contain; }
.panel-body, .panel-box { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }   /* a dark, slim scrollbar */
.panel-thumb { display: block; }
.panel-thumb .vial { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-thumb .vial-empty { display: none; }
.panel-thumb .vial::before { inset: 5px; }
/* "Choose a size": one row per size, with its picture, its price and an Add button. The whole row takes the click. */
.panel-choose { padding: 18px 0; }
.panel-choose h3 { margin: 6px 0 4px; font-size: 20px; }
.panel-sizes { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.panel-size { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.panel-size:hover, .panel-size:focus-within { border-color: var(--silver); background: var(--panel-2); }
.panel-size b { font-size: 15px; font-variant-numeric: tabular-nums; }
.panel-size .btn::after { content: ""; position: absolute; inset: 0; }
.panel-sub { padding: 14px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; font-style: normal; font-weight: 600; letter-spacing: 0.2em; }
/* A line in the cart: picture, name and size, price, then the quantity and Remove, then the research line. */
.panel-lines { margin: 0; padding: 0; list-style: none; }
.panel-line { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 8px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.panel-line:last-child { border-bottom: 0; }
.panel-line .panel-thumb { grid-row: 1 / span 3; align-self: start; }
.panel-line h3 { font-size: 15px; }
.panel-line h3 a:hover { color: #fff; }
.panel-line .line-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 3px 0 0; }
.panel-line > .price { text-align: right; white-space: nowrap; }
.panel-line-tools { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-line .qty button { width: 34px; height: 36px; }
.panel-line .ruo-line { grid-column: 2 / -1; }
.panel-empty { display: grid; gap: 18px; justify-items: center; padding: 56px 0; color: var(--muted); }
.panel-foot { display: grid; gap: 10px; padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.panel-sum { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.panel-sum-less { color: var(--muted); font-size: 14px; font-weight: 400; }
.panel-foot .hint { margin: -4px 0 4px; }
.panel-foot .ruo-line { text-align: center; }
.panel-foot .link-more { justify-self: center; }
/* A screen that is not tall (a phone turned sideways, a short window): the whole panel scrolls as one,
   so the lines in the cart are not squeezed between the top and the buttons. */
@media (max-height: 640px) {
  .panel-box { overflow-y: auto; overscroll-behavior: contain; }
  .panel-body { flex: none; overflow: visible; }
}

/* ---------- Sign-up offer (SIGNUP_DEAL in js/products.js, the window is SignupBox in js/app.js) ---------- */
/* The link in the menu. Where the menu has no room for it, it is a strip under the menu instead. */
.signup-link { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--muted); font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: color 0.15s; }
.signup-link:hover { color: #fff; }
.signup-link .deal { border-color: var(--silver); color: #fff; }
.signup-link svg { width: 15px; height: 15px; }
.signup-strip { display: none; width: 100%; min-height: 44px; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--line); background: var(--panel-2); color: var(--silver); font: inherit; font-size: 13px; text-align: center; cursor: pointer; }
.signup-strip b { color: #fff; }
@media (max-width: 1040px) {
  .signup-link { display: none; }
  .signup-strip { display: block; }
}
/* The box at the top of the footer. */
.footer-signup { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 30px; padding: 18px 22px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel-2); }
.footer-signup p { display: grid; gap: 3px; }
.footer-signup strong { color: #fff; font-family: var(--display); font-size: 17px; font-style: italic; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-signup span { color: var(--muted); font-size: 14px; }
/* The line under an order's amounts: in the cart panel, on the cart page and at checkout. */
.signup-nudge { display: block; width: 100%; margin: 0 0 12px; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: none; color: var(--silver); font: inherit; font-size: 13px; text-align: center; cursor: pointer; }
.signup-nudge:hover { border-color: var(--silver); color: #fff; }
.panel-foot .signup-nudge { margin: 0; }
/* The window with the form. It sits above the cart panel, which can be open under it. */
.signup { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity 0.2s, visibility 0s linear 0.2s; }
.signup.open { visibility: visible; opacity: 1; transition-delay: 0s; }
.signup-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); }
.signup-box { position: relative; width: min(440px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain; padding: 34px 28px 26px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
.signup-box:focus { outline: none; }
.signup-x { position: absolute; top: 8px; right: 8px; margin: 0; }
.signup-box h2 { margin: 10px 36px 10px 0; font-size: 26px; line-height: 1.1; }
.signup-box p { color: var(--muted); font-size: 14px; }
.signup-form { display: grid; gap: 8px; margin-top: 18px; }
.signup-form label { color: var(--muted); font-size: 13px; }
.signup-form .field-warning { margin-top: 0; }
.signup-form .btn { margin-top: 6px; }
.signup-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.signup-box .ruo-line { margin-top: 12px; font-size: 12px; }
.signup-box .signup-fine { margin-top: 14px; font-size: 12px; }
.signup-fine a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
/* Signing in (the person in the menu): "Continue with Google", "or", then the email form. Our Google
   button follows Google's dark style; once Google sign-in is switched on, Google's own button is
   put in its place. */
.signup-box b.signup-off, .signup-box b.signup-who { color: #fff; overflow-wrap: anywhere; }
.google-slot { display: flex; justify-content: center; min-height: 44px; margin-top: 20px; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #8e918f; border-radius: var(--radius); background: #131314; color: #e3e3e3; font-family: Roboto, Arial, sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0.25px; cursor: pointer; transition: background-color 0.15s; }
.google-btn:hover { background: #1f1f21; }
.google-btn svg { flex: none; width: 20px; height: 20px; }
.signup-box .google-note { margin-top: 8px; color: #e6c873; font-size: 13px; }
.google-note:empty { display: none; }
.or { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--muted); font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.or + .signup-form { margin-top: 12px; }

@media (max-width: 820px) {
  .product, .split { grid-template-columns: 1fr; gap: 28px; }
  .pd-split { grid-template-columns: 1fr; }
  .summary { position: static; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .facts div:last-child { border-bottom: 0; }
  .header-inner { gap: 18px; }
  .nav { gap: 18px; }
  .controls .search { max-width: none; margin-left: 0; }
  .form-grid .half, .form-grid .third { grid-column: span 6; }
  .bulk .summary { order: -1; }
  .bulk-order { max-height: none; overflow: visible; }   /* above the list here: it is as tall as it needs, and only its list of products scrolls */
  .order-items .panel-lines { max-height: 300px; padding-right: 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
}
/* The entry screen is one column on a narrow screen and on a short one (a phone turned sideways),
   where two columns squeeze the text and push the Enter button far down. */
@media (max-width: 700px), (max-height: 520px) {
  .gate { grid-template-columns: 1fr; }
  .gate-art { display: none; }
}
@media (max-width: 640px) {
  .header { position: static; }
  .hero .nova { --k: 0.62; top: 62px; }
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 8px; gap: 0; }
  .header-tools { margin-left: auto; }
  .nav { order: 3; flex: 0 0 100%; margin: 8px 0 0; padding: 0; gap: 20px; border-top: 1px solid var(--line); overflow-x: auto; white-space: nowrap; }
  .bulk-row { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px 14px; }
  .bulk-main { grid-column: 2 / -1; }
  .bulk-price { grid-column: 1 / 3; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-width: 0; text-align: left; }
  .bulk-was, .bulk-ten { margin-top: 0; }
  .bulk-ten { flex-basis: 100%; }
  .coa-none { min-width: 0; }
}
/* Two layouts follow the room their own column has, not the width of the window. Between about
   820px and 1100px wide (a phone turned sideways, a small tablet, a half-width window) the page is
   in two columns, and each column is as narrow as a phone.
   - Bulk orders: when the list is narrow, a row has the picture and the name with its sizes on top,
     and the prices with "Add 10" on a line under them. (The .bulk-row lines above do the same on
     phones for browsers too old for @container.)
   - Product page: the three points under Add to cart are stacked when the buy box is narrow. */
.bulk > :first-child { container: bulk-list / inline-size; }
@container bulk-list (max-width: 600px) {
  .bulk-row { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px 14px; }
  .bulk-main { grid-column: 2 / -1; }
  .bulk-price { grid-column: 1 / 3; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-width: 0; text-align: left; }
  .bulk-was, .bulk-ten { margin-top: 0; }
  .bulk-ten { flex-basis: 100%; }
  .controls .search { max-width: none; margin-left: 0; }   /* the search box fills the line it wraps onto */
}
.product > :last-child { container: buy-box / inline-size; }
@container buy-box (max-width: 500px) {
  .perks { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .perks { grid-template-columns: 1fr; }
  .line { grid-template-columns: 60px 1fr; }
  .line-end { grid-column: 2; justify-items: start; text-align: left; }
  .card h3 { font-size: 15px; }   /* two cards across: the longest product names still fit on one line */
  .card .ruo-line span { display: inline; }   /* ... and a card is too narrow for a sentence a row, so the research line runs on */
  .card-foot .btn { padding-inline: 6px; letter-spacing: 0.1em; }   /* "Add to cart" stays on one line in a narrow card */
}
/* Phones and tablets: every control gets about 44px to tap, and form fields are 16px, the size at
   which an iPhone does not zoom the page in when a field is tapped. */
@media (max-width: 820px), (pointer: coarse) {
  .nav a { padding: 14px 0; }
  .icon-btn { width: 44px; height: 44px; }
  a.wordmark { min-height: 44px; }
  a.wordmark { justify-content: center; }
  .chip { display: inline-flex; align-items: center; min-height: 44px; }
  .btn-sm { min-height: 44px; font-size: 12px; }
  .signup-link, .signup-nudge { min-height: 44px; }
  .signup-fine a { position: relative; }   /* a taller area takes the tap, and the lines stay evenly spaced */
  .signup-fine a::after { content: ""; position: absolute; inset: -12px 0; }
  .qty button, .line .qty button, .panel-line .qty button { width: 44px; height: 44px; }
  .field, select.field { font-size: 16px; }
  .bulk-sizes .size { min-height: 44px; padding-inline: 14px; }
  .footer nav { row-gap: 0; }
  .footer nav a { padding: 12px 0; }
  .crumbs { padding-top: 12px; }
  .crumbs a { display: inline-block; padding: 12px 0; }
  .product { padding-top: 16px; }
  /* Text links keep their look: the area that takes the tap is made taller around them. That is the
     "View all" links, Remove, Edit cart, and a product's name in a card, a cart line or a bulk row. */
  .link-more, .remove, .summary .hint a, .card h3 a, .line h3 a, .bulk-row h3 a, .panel-line h3 a, .footer-contact a { position: relative; }
  .link-more::after, .remove::after, .summary .hint a::after, .card h3 a::after, .line h3 a::after, .bulk-row h3 a::after, .panel-line h3 a::after, .footer-contact a::after { content: ""; position: absolute; inset: -12px 0; }
  .summary .hint a::after, .footer-contact a::after { inset: -14px 0; }
  .card h3 a::after, .line h3 a::after { inset: -13px 0; }
  .panel-line h3 a::after { inset: -14px 0 -6px; }   /* stops short of the quantity buttons under the name */
  .bulk-row h3 a::after { inset: -13px 0 -6px; }   /* stops short of the size buttons under the name */
  .card-cat, .deal { font-size: 12px; }
  .bundle span { font-size: 12px; letter-spacing: 0.1em; }
}
/* The narrowest phones (320px wide): the four menu links and the card labels still fit, and so do
   the longest one-word product names in a card ("Tesamorelin"), without breaking in two. The bar at
   the top keeps to two lines. */
@media (max-width: 359px) {
  .notice { letter-spacing: 0.02em; padding-inline: 12px; }
  .nav { gap: 14px; }
  .nav a, .card-cat { letter-spacing: 0.12em; }
  .card-body { padding: 12px; }
  .card h3 { font-size: 14px; letter-spacing: 0.01em; }
  .card h3 a::after { inset: -14px 0; }
  .card-foot .btn { letter-spacing: 0.06em; }
  /* Cart panel: the quantity buttons and the research line of a line use the panel's full width, under the picture. */
  .panel-line .panel-thumb { grid-row: auto; }
  .panel-line-tools, .panel-line .ruo-line { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .sky i, .nova i, .side-vial-art { animation: none !important; }
}
