/* Valor Synthetics — site styles
   Tokens: cool mineral paper, deep teal-black ink, one ultramarine accent.
   Type: Bricolage Grotesque (optical size axis handles display vs text). */

:root {
  --ink: #121F1E;
  --ink-2: #3F4F4D;
  --mute: #6B7876;
  --paper: #EDF0EE;
  --surface: #FFFFFF;
  --line: #CBD3D0;
  --line-2: #DFE5E2;
  --accent: #2742C3;
  --accent-ink: #1C2F93;
  --accent-tint: #E3E7F9;
  --warn: #9A3B12;
  --warn-tint: #F8E9E1;
  --ok: #1E6B47;
  --ok-tint: #E2F1E8;
  --radius: 6px;
  --radius-sm: 4px;
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.015em; font-weight: 650; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .3em; }
small { font-size: .85em; }
strong { font-weight: 650; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--mute); }
.small { font-size: .9rem; }
.lede { font-size: 1.15rem; line-height: 1.5; color: var(--ink-2); max-width: 62ch; }

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

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius);
  border: 1px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " \2192"; }

/* ── Header ─────────────────────────────────────────────────── */
.ruo-strip { background: var(--ink); color: #DCE5E2; font-size: .8rem; text-align: center; padding: 6px var(--gutter); letter-spacing: .01em; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; font-size: 1.05rem; white-space: nowrap; }
.brand .mark { color: var(--ink); flex: none; }
.brand-name span { color: var(--accent); }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 550; }
.site-nav a:hover { color: var(--ink); background: var(--paper); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.cart-link:hover { border-color: var(--ink); color: var(--ink); }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: #fff; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.cart-count.is-empty { background: var(--line); color: var(--ink-2); }
.nav-toggle { display: none; margin-left: auto; min-height: 40px; padding: 6px 12px; background: transparent; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; }
@media (max-width: 760px) {
  .header-row { gap: 10px; }
  .brand { font-size: 1rem; gap: 8px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 12px; margin: 0; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 8px; border-bottom: 1px solid var(--line-2); }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
  .cart-link span:first-of-type { display: none; }
}

/* ── Sections ────────────────────────────────────────────────── */
.section { padding-top: 40px; padding-bottom: 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.count { color: var(--mute); font-size: .95rem; }
.page-head { padding-top: 40px; padding-bottom: 8px; }
.page-head h1 { margin-bottom: .35em; }
.notice-block { margin: 48px auto 56px; }
.notice-block p { border-left: 3px solid var(--line); padding-left: 16px; color: var(--ink-2); max-width: 80ch; }
.empty-note { padding: 24px var(--gutter); color: var(--mute); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 32px; }
.hero h1 { max-width: 16ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 28px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--ink-2); }
.hero-facts li { padding-left: 18px; position: relative; }
.hero-facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-visual { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
.hero-vial { width: 120px; height: auto; }
.label-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: 0 1px 0 var(--line-2); max-width: 300px; }
.label-sheet-head { display: flex; justify-content: space-between; font-size: .72rem; color: var(--mute); letter-spacing: .02em; border-bottom: 1px solid var(--line-2); padding-bottom: 8px; margin-bottom: 10px; }
.label-sheet-name { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.label-sheet-name small { font-weight: 500; color: var(--ink-2); font-size: .8rem; margin-left: 6px; }
.label-sheet dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0 0 10px; }
.label-sheet dl div { display: flex; flex-direction: column; }
.label-sheet dt { font-size: .7rem; color: var(--mute); }
.label-sheet dd { margin: 0; font-size: .9rem; font-weight: 600; }
.label-sheet-foot { font-size: .7rem; color: var(--warn); font-weight: 650; border-top: 1px solid var(--line-2); padding-top: 8px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .hero-visual { justify-content: start; }
}
@media (max-width: 420px) {
  .hero-visual { grid-template-columns: 1fr; }
  .hero-vial { display: none; }
}

.assurance { padding-top: 8px; padding-bottom: 8px; }
.assurance-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.assurance-row > div { padding: 22px 20px 12px 0; }
.assurance-row > div + div { border-left: 1px solid var(--line); padding-left: 20px; }
.assurance-row h2 { font-size: 1.05rem; margin-bottom: .4em; }
.assurance-row p { font-size: .95rem; color: var(--ink-2); margin-bottom: .5em; }
@media (max-width: 760px) {
  .assurance-row { grid-template-columns: 1fr; }
  .assurance-row > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}

/* ── Product cards (vial labels) ─────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.vial-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.vial-card:hover { border-color: var(--ink-2); }
.vial-card-link { display: flex; flex-direction: column; height: 100%; padding: 16px; color: inherit; text-decoration: none; }
.vial-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.vial-card h3 { margin: 0; font-size: 1.15rem; }
.cap { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--cap, var(--accent)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), 0 0 0 1px rgba(18,31,30,.25); flex: none; }
.cap-lg { width: 22px; height: 22px; }
.vial-card-tagline { font-size: .92rem; color: var(--ink-2); min-height: 2.8em; margin-bottom: 14px; }
.spec-strip { display: grid; grid-template-columns: auto auto auto; justify-content: space-between; gap: 6px 10px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 10px 0; margin: 0 0 14px; }
.spec-strip div { display: flex; flex-direction: column; min-width: 0; }
.spec-strip dt { font-size: .7rem; color: var(--mute); white-space: nowrap; }
.spec-strip dd { margin: 0; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.vial-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price { font-weight: 650; }

/* ── Home: calculator teaser, guide list ─────────────────────── */
.calc-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-top: 56px; }
.calc-teaser-demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 18px; }
.demo-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: .95rem; }
.demo-row:last-child { border-bottom: 0; }
.demo-row strong { font-size: 1.05rem; }
@media (max-width: 760px) { .calc-teaser { grid-template-columns: 1fr; gap: 20px; padding-top: 40px; } }
.guide-list { list-style: none; padding: 0; margin: 0 0 40px; border-top: 1px solid var(--line); }
.guide-list li { margin: 0; border-bottom: 1px solid var(--line); }
.guide-list a { display: grid; gap: 2px; padding: 14px 0; color: inherit; text-decoration: none; }
.guide-list a:hover strong { color: var(--accent); }
.guide-list span { color: var(--ink-2); font-size: .95rem; max-width: 72ch; }

/* ── Catalog ─────────────────────────────────────────────────── */
.catalog-tools { display: grid; gap: 14px; margin-top: 20px; }
.search-field input { width: 100%; max-width: 420px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 34px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); cursor: pointer; font-size: .9rem; font-weight: 550; color: var(--ink-2); }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.catalog-group[hidden] { display: none; }

/* ── Product page ────────────────────────────────────────────── */
.crumbs { padding-top: 20px; font-size: .9rem; color: var(--mute); }
.crumbs a { color: var(--ink-2); }
.crumbs span { margin: 0 4px; }
.product-hero { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 40px; padding-top: 20px; align-items: start; }
.product-visual { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; justify-content: center; }
.product-vial { width: 100%; max-width: 220px; height: auto; }
.product-title { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.product-title h1 { margin: 0; }
.buy-form { margin: 20px 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.variants { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.variants legend { font-weight: 600; margin-bottom: 8px; }
.variant { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.variant:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.variant input { margin: 0; width: 18px; height: 18px; accent-color: var(--accent); }
.variant-label { flex: 1; font-weight: 550; }
.variant-price { font-weight: 650; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.qty-row label { font-weight: 600; }
.qty-control { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.qty-control button { width: 40px; min-height: 40px; border: 0; background: var(--paper); cursor: pointer; font-size: 1.1rem; }
.qty-control button:hover { background: var(--line-2); }
.qty-control input { width: 54px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); -moz-appearance: textfield; }
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-note { margin: 12px 0 0; color: var(--ok); font-weight: 600; }
.buy-facts { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; color: var(--ink-2); font-size: .95rem; }
.buy-facts li { padding-left: 18px; position: relative; }
.buy-facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ruo-note { font-size: .88rem; color: var(--warn); border-left: 3px solid var(--warn); padding-left: 12px; }
@media (max-width: 760px) { .product-hero { grid-template-columns: 1fr; gap: 20px; } .product-visual { padding: 16px; } .product-vial { max-width: 150px; } }

.product-detail { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; padding-top: 40px; }
.detail-main h2 { margin-top: 1.2em; }
.detail-main h2:first-child { margin-top: 0; }
.research-areas, .handling { padding-left: 1.2em; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; font-size: .92rem; }
.spec-table th { color: var(--mute); font-weight: 550; width: 38%; }
.spec-table thead th { color: var(--ink); border-bottom: 1px solid var(--line); width: auto; }
.spec-table tfoot th, .spec-table tfoot td { font-weight: 650; border-bottom: 0; color: var(--ink); }
.spec-table td { word-break: break-word; }
.detail-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; align-self: start; }
.detail-side h2 { font-size: 1.1rem; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; gap: 24px; } }

/* ── Forms ───────────────────────────────────────────────────── */
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="number"], .field input[type="search"], .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.field textarea { min-height: 120px; resize: vertical; }
.input-unit { display: flex; align-items: stretch; max-width: 320px; }
.input-unit input { flex: 1 1 auto; width: 100%; min-width: 0; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius) 0 0 var(--radius); background: var(--surface); font-size: 1.15rem; font-weight: 600; }
.input-unit span, .input-unit select { flex: 0 0 auto; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--paper); color: var(--ink-2); font-weight: 600; }
.input-unit select { width: 92px; padding: 0 8px; }
.field .chip-row { margin-top: 10px; }
.hint { font-size: .85rem; color: var(--mute); margin: 8px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin-bottom: 14px; cursor: pointer; }
.check input { margin: .25em 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.form-error { color: var(--warn); background: var(--warn-tint); border-radius: var(--radius-sm); padding: 10px 12px; font-size: .95rem; }
.form-status { margin-top: 12px; font-weight: 600; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--warn); }

/* ── Calculator ──────────────────────────────────────────────── */
.calc-layout { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 40px; padding-top: 20px; align-items: start; }
.calc-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.calc-form .field:last-child { margin-bottom: 0; }
.calc-form .field > select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 8px; align-items: baseline; }
.result-label { grid-column: 1 / -1; font-size: .85rem; color: var(--mute); margin-bottom: 4px; }
.result strong { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.result-unit { font-size: .95rem; color: var(--ink-2); font-weight: 550; }
.result-sub { grid-column: 1 / -1; font-size: .85rem; color: var(--mute); margin-top: 6px; }
.result-primary { background: var(--accent-tint); border-color: var(--accent); }
.result-primary strong { color: var(--accent-ink); }
.syringe-wrap { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 6px; }
.syringe { width: 100%; height: auto; }
.status { margin: 6px 0; font-size: .92rem; min-height: 1.4em; color: var(--ink-2); }
.status.is-warn { color: var(--warn); font-weight: 600; }
.status.is-ok { color: var(--ok); font-weight: 600; }
.result-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.copied { color: var(--ok); font-weight: 600; }
.calc-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.calc-reverse .input-unit { margin-bottom: 12px; }
.reverse-out { font-size: 1.05rem; }
.reverse-out strong { font-size: 1.3rem; }
.calc-notes { padding-bottom: 40px; }
.calc-notes ul { max-width: 80ch; }
@media (max-width: 860px) {
  .calc-layout { grid-template-columns: 1fr; gap: 20px; }
  .calc-secondary { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .result-grid { grid-template-columns: 1fr; } }

/* ── Articles ────────────────────────────────────────────────── */
.article { padding-top: 16px; max-width: 760px; }
.article-head { margin-bottom: 28px; }
.article-meta { color: var(--mute); font-size: .9rem; }
.article-body h2 { margin-top: 1.6em; }
.article-body ul, .article-body ol { max-width: 68ch; }
.prose { max-width: 760px; padding-bottom: 40px; }
.prose h2 { margin-top: 1.5em; }
.compound-index { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.compound-index li { margin: 0; }
.compound-index a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: inherit; text-decoration: none; font-weight: 600; }
.compound-index a:hover { border-color: var(--ink-2); }
.compound-index small { grid-column: 2; font-weight: 400; color: var(--ink-2); font-size: .82rem; }

/* ── Cart ────────────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr minmax(280px, 380px); gap: 32px; padding-top: 12px; align-items: start; }
.cart-items { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px; }
.cart-row { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.cart-row:last-child { border-bottom: 0; }
.cart-row-main { display: grid; min-width: 0; }
.cart-row-name { font-weight: 650; color: inherit; text-decoration: none; }
.cart-row-variant { color: var(--ink-2); font-size: .9rem; }
.cart-row-total { font-weight: 650; min-width: 72px; text-align: right; }
.icon-btn { width: 36px; height: 36px; border: 1px solid var(--line); background: transparent; border-radius: var(--radius-sm); cursor: pointer; font-size: 1.2rem; line-height: 1; }
.icon-btn:hover { border-color: var(--warn); color: var(--warn); }
.cart-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cart-summary h2 { font-size: 1.1rem; }
.totals { margin: 0 0 12px; }
.totals div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.totals dd { margin: 0; font-weight: 650; }
.cart-empty { text-align: left; }
@media (max-width: 760px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; }
  .cart-row .qty-control { grid-column: 2; }
  .cart-row-total { grid-column: 3; grid-row: 1; }
  .cart-row .icon-btn { grid-column: 3; grid-row: 2; justify-self: end; }
}
.order-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.order-detail address { font-style: normal; line-height: 1.6; }
@media (max-width: 760px) { .order-detail { grid-template-columns: 1fr; } }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr minmax(240px, 320px); gap: 40px; padding-top: 12px; padding-bottom: 48px; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.contact-side h2 { font-size: 1rem; margin-top: 1.2em; }
.contact-side h2:first-child { margin-top: 0; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; gap: 24px; } }

/* ── Admin ───────────────────────────────────────────────────── */
.admin-auth { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 20px; }
.admin-auth label { font-weight: 600; width: 100%; }
.admin-auth input { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); flex: 1; min-width: 200px; }
.order { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.order-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.order-head strong { font-size: 1.05rem; }
.order-items { margin: 8px 0; padding-left: 1.2em; }
.order-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.order-foot input { min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); flex: 1; min-width: 160px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: .8rem; font-weight: 650; }
.badge-ok { background: var(--ok-tint); color: var(--ok); }
.badge-wait { background: var(--warn-tint); color: var(--warn); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { margin-top: 56px; background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 24px; }
.footer-grid h2 { font-size: .95rem; margin-bottom: .6em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; font-size: .92rem; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { font-size: .92rem; color: var(--ink-2); max-width: 36ch; }
.footer-legal { border-top: 1px solid var(--line-2); padding-top: 18px; padding-bottom: 28px; }
.footer-legal p { font-size: .8rem; color: var(--mute); max-width: 100ch; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ── Research-use gate ───────────────────────────────────────── */
.gate { position: fixed; inset: 0; z-index: 200; background: rgba(18, 31, 30, .72); display: flex; align-items: center; justify-content: center; padding: 20px; }
.gate[hidden] { display: none; }
.gate-card { background: var(--surface); border-radius: var(--radius); padding: 28px; max-width: 520px; width: 100%; border-top: 6px solid var(--accent); }
.gate-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 18px; }
.gate-brand .mark { color: var(--ink); }
.gate-card h2 { margin-bottom: .4em; }
.gate-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
body.is-gated { overflow: hidden; }
