/* Global Skin Tech website — shared stylesheet.
   Layout: lab-sheet look. Porcelain sections, mono spec labels, one deep ink band.
   Colours are tokens. The site is always light, whatever the visitor's system setting. */

:root {
  --bg: #f6f8f8;
  --surface: #ffffff;
  --ink: #132a2e;
  --muted: #5a6d70;
  --line: #d8e1e2;
  --accent: #2f7d6d;
  --accent-strong: #256559;
  --accent-soft: #e3f0ec;
  --on-accent: #ffffff;
  --band: #132a2e;
  --band-fg: #e9f2f0;
  --band-muted: #a9b6b6;
  --band-accent: #6cc3ad;
  --tbc: #fff4cc;
  --tbc-fg: #6b5300;
  --danger: #b42318;

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1120px;
  --gutter: 16px;
  --radius: 10px;
  color-scheme: light;
}

/* Dark palette, kept for later use. Not applied: nothing on the site sets this class.
   To bring back automatic dark mode, wrap these tokens in @media (prefers-color-scheme: dark) { :root { ... } }
   and provide a light version of the logo. */
:root.theme-dark {
  --bg: #0f1a1c;
  --surface: #162528;
  --ink: #e4eeec;
  --muted: #9db0b1;
  --line: #2a3d40;
  --accent: #6cc3ad;
  --accent-strong: #8ad3c1;
  --accent-soft: #1c3631;
  --on-accent: #0f1a1c;
  --band: #0a1214;
  --band-fg: #dfeae8;
  --band-muted: #9fa9a8;
  --band-accent: #6cc3ad;
  --tbc: #3a3110;
  --tbc-fg: #f1d77a;
  --danger: #f97066;
  color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--f-body);
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; }
h2, .h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -0.01em; }
h3, .h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: 0; }
p { margin: 0; max-width: 65ch; }
ul, ol { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent-soft); }

/* ---------- Utilities ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.eyebrow { font: 500 0.75rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.tbc { background: var(--tbc); color: var(--tbc-fg); padding: 0 0.3em; border-radius: 3px; font: 500 0.85em var(--f-mono); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--accent); color: var(--on-accent);
  padding: 0.6rem 1rem; border-radius: 6px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 16px; top: 8px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.3rem; border-radius: 6px; border: 1px solid var(--accent);
  font: 600 0.95rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Sections ---------- */

.section { padding-block: 4.5rem; }
.section--flush { padding-top: 0; }
.section-head { display: grid; gap: 0.8rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); }
.section-link { margin-top: 1.5rem; font-weight: 600; }
.section-link a { color: var(--accent); text-decoration: none; }
.section-link a::after { content: " →"; }
.section-link a:hover { text-decoration: underline; }
.page-head { display: grid; gap: 1rem; padding-block: 3.5rem 3rem; }

/* ---------- Header and navigation ---------- */

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.logo img { display: block; width: auto; height: 44px; }
.site-footer .logo img { height: 88px; }

.site-menu { display: flex; align-items: center; gap: 1.6rem; }
.site-menu ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-menu li a { color: var(--muted); font-size: 0.95rem; text-decoration: none; }
.site-menu li a:hover, .site-menu li a[aria-current] { color: var(--ink); }
.site-menu li a[aria-current] {
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}

.nav-toggle {
  display: none; align-items: center; gap: 0.55rem;
  padding: 0.45rem 0.8rem; border: 1px solid var(--line); border-radius: 6px;
  background: transparent; color: var(--ink); font: 500 0.9rem var(--f-body); cursor: pointer;
}
.nav-toggle::before {
  content: ""; width: 16px; height: 12px;
  background:
    linear-gradient(currentColor 0 0) top / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat;
}

/* ---------- Footer ---------- */

.site-footer { margin-top: 2rem; border-top: 1px solid var(--line); padding-block: 3rem 2rem; color: var(--muted); font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 2.5rem; }
.footer-brand { display: grid; gap: 0.8rem; align-content: start; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-title { margin-bottom: 0.8rem; font: 500 0.75rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.footer-col ul { display: grid; gap: 0.5rem; list-style: none; padding: 0; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; }

/* ---------- Cards and grids ---------- */

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { display: grid; gap: 0.7rem; align-content: start; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card .code { font: 500 0.75rem var(--f-mono); color: var(--accent); }
.card p { color: var(--muted); font-size: 0.95rem; }
.card-title { font: 500 1.15rem/1.2 var(--f-display); }
.card--link { color: var(--ink); text-decoration: none; transition: border-color 0.15s; }
.card--link:hover { border-color: var(--accent); }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.panel { padding: 1.4rem 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Two columns: text + aside ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.split > * { min-width: 0; }
.split-text { display: grid; gap: 1rem; }
.split-text p { color: var(--muted); }
section[id] { scroll-margin-top: 1.5rem; }

/* ---------- Lists with tick marks ---------- */

.ticks { display: grid; gap: 0.6rem; padding-left: 0; list-style: none; }
.ticks li { position: relative; padding-left: 1.5rem; color: var(--muted); font-size: 0.95rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.45em;
  width: 0.65rem; height: 0.35rem;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.panel.ticks li { color: var(--ink); }

/* ---------- Key/value sheet ---------- */

.spec-list { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.95rem; }
.spec-list > div { display: grid; grid-template-columns: 10.5rem 1fr; gap: 1rem; padding: 0.85rem 1.2rem; border-bottom: 1px dashed var(--line); }
.spec-list > div:last-child { border-bottom: 0; }
.spec-list dt { color: var(--muted); font: 500 0.72rem/1.9 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.spec-list dd { margin: 0; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { padding: 0.9rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table thead th { background: var(--bg); color: var(--muted); font: 500 0.72rem/1.5 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.table tbody th { font-weight: 600; }
.table td { color: var(--muted); }
.table--compare tbody td:last-child { background: var(--accent-soft); color: var(--ink); }
.table--compare thead th:last-child { background: var(--accent-soft); color: var(--accent); }

/* ---------- Notice box ---------- */

.notice { display: grid; gap: 0.8rem; padding: 1.8rem; background: var(--surface); border: 1px dashed var(--accent); border-radius: var(--radius); }
.notice p { color: var(--muted); }
.notice .section-link { margin-top: 0.4rem; }
.terms-note { color: var(--muted); font-size: 0.92rem; }
.terms-note a { color: var(--accent); }
.aside-stack .section-link { margin-top: 0.3rem; }

/* ---------- Home: hero and network diagram ---------- */

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; padding-block: 4.5rem 4rem; }
.hero > * { min-width: 0; }
.hero-text { display: grid; gap: 1.4rem; }

.netmap { display: grid; gap: 1rem; min-width: 0; margin: 0; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font: 400 0.82rem/1.4 var(--f-mono); }
.netmap-row { display: flex; justify-content: center; }
.node { padding: 0.5rem 0.8rem; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.node small { display: block; color: var(--muted); font-size: 0.72rem; }
.node--hub { background: var(--accent-soft); border-color: var(--accent); font-weight: 500; }
.netmap-link { width: 1px; height: 18px; margin: 0 auto; background: var(--accent); }
.netmap-factories { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; padding-top: 18px; }
.netmap-factories::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 1px; background: var(--accent); }
.netmap-factories .node { position: relative; }
.netmap-factories .node:nth-child(-n+2)::before { content: ""; position: absolute; top: -18px; left: 50%; width: 1px; height: 18px; background: var(--accent); }

/* ---------- Product categories ---------- */

.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); }
.cat { display: grid; gap: 0.4rem; align-content: start; padding: 1.4rem; background: var(--surface); text-decoration: none; }
.cat:hover { background: var(--accent-soft); }
.cat span { color: var(--muted); font: 400 0.8rem var(--f-mono); }
.cats--related { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.narrow { max-width: 46rem; }

/* ---------- Breadcrumb ---------- */

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; color: var(--muted); font: 400 0.8rem var(--f-mono); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- GST Standard criteria ---------- */

.standard { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.standard > * { min-width: 0; }
.standard-text { display: grid; gap: 1rem; }
.standard-text p { color: var(--muted); }
.criteria { margin: 0; padding: 0; list-style: none; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.criteria li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: baseline; padding: 1rem 1.2rem; border-bottom: 1px dashed var(--line); }
.criteria li:last-child { border-bottom: 0; }
.criteria .ref { color: var(--accent); font: 500 0.75rem var(--f-mono); }
.criteria strong { display: block; font-weight: 600; }
.criteria span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Dark band and steps ---------- */

.band { background: var(--band); color: var(--band-fg); }
.band .eyebrow { color: var(--band-accent); }
.band .section-head p, .band .steps p { color: var(--band-muted); }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; gap: 0.4rem; align-content: start; padding-top: 1rem; border-top: 2px solid var(--band-accent); counter-increment: step; }
.steps li::before { content: "0" counter(step); color: var(--band-accent); font: 500 0.8rem var(--f-mono); }
.steps strong { font: 500 1.05rem var(--f-display); }
.steps p { font-size: 0.88rem; }
.steps--light li { border-top-color: var(--accent); }
.steps--light li::before { color: var(--accent); }
.steps--light p { color: var(--muted); font-size: 0.95rem; }
.steps--3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps--4 { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ---------- Figures ---------- */

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.fact { display: grid; gap: 0.3rem; padding-left: 1rem; border-left: 2px solid var(--accent); }
.fact b { font: 700 1.6rem var(--f-display); }
.fact span { color: var(--muted); font-size: 0.9rem; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 0.6rem; max-width: 820px; }
.faq details { padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 0.6rem; color: var(--muted); }

/* ---------- Call to action ---------- */

.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; padding: 2.5rem; background: var(--accent-soft); border-radius: 14px; }
.cta > div { display: grid; gap: 0.6rem; min-width: 0; }

/* ---------- Forms ---------- */

.split--form { grid-template-columns: 1.45fr 1fr; }
.form { display: grid; gap: 1.3rem; }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field-row > * { min-width: 0; }
.form label, .form legend { padding: 0; font-weight: 600; font-size: 0.95rem; }
.form legend { margin-bottom: 0.6rem; }
.form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.optional { color: var(--muted); font-weight: 400; }
.hint { color: var(--muted); font-size: 0.85rem; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; padding: 0.7rem 0.85rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px;
  font: 400 1rem/1.4 var(--f-body);
}
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form input:user-invalid, .form textarea:user-invalid { border-color: var(--danger); }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.55rem 1rem; }
.choices--inline { display: flex; flex-wrap: wrap; gap: 0.55rem 1.4rem; }
.form .choice { display: flex; align-items: flex-start; gap: 0.55rem; font-weight: 400; font-size: 0.95rem; cursor: pointer; }
.form .choice input { flex: none; width: 1rem; height: 1rem; margin: 0.25rem 0 0; accent-color: var(--accent); }
.form .consent { color: var(--muted); font-size: 0.9rem; }
.form .consent a { color: var(--accent); }
.form-status { padding: 1rem 1.2rem; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 8px; }
.aside-stack { display: grid; gap: 1.25rem; align-content: start; }
.aside-stack h2 { font-size: 1.05rem; font-weight: 500; }
.aside-stack .panel { display: grid; gap: 0.7rem; }
.aside-stack ol { display: grid; gap: 0.5rem; padding-left: 1.2rem; color: var(--muted); font-size: 0.95rem; }
.email-link { color: var(--accent); font: 500 1rem var(--f-mono); word-break: break-all; }

/* ---------- Long-form text (articles, legal pages) ---------- */

.prose > * { max-width: 70ch; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.8rem; font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.4rem; }
.prose a { color: var(--accent); }
.prose blockquote { margin-inline: 0; padding-left: 1rem; border-left: 2px solid var(--accent); color: var(--muted); }

.prose .keypoints { display: grid; gap: 0.6rem; margin-block: 1.6rem; padding: 1.2rem 1.4rem; background: var(--accent-soft); border-radius: var(--radius); }
.prose .keypoints ul { margin: 0; }

/* ---------- Blog ---------- */

.badge { margin-left: 0.4rem; padding: 0.1rem 0.4rem; background: var(--tbc); color: var(--tbc-fg); border-radius: 3px; font: 500 0.7rem var(--f-mono); letter-spacing: 0.04em; }
.read-more { margin-top: 0.3rem; color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.read-more::after { content: " →"; }
.article-meta { color: var(--muted); font: 400 0.82rem var(--f-mono); }

/* ---------- FAQ topics ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.chips a { padding: 0.4rem 0.85rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 0.9rem; text-decoration: none; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.section[id^="faq-"] .section-head { margin-bottom: 1rem; }
.faq details p a { color: var(--accent); }
.page-head .lead a { color: var(--accent); }

/* ---------- Error page ---------- */

.page-404 { padding-block: 5rem 6rem; }

/* ---------- Product pages and product type pages ---------- */

.mono { font-family: var(--f-mono); }
.product-head { padding-bottom: 2rem; }
.product-hero { display: grid; gap: 2.5rem; align-items: start; }
.product-hero--media { grid-template-columns: 1.15fr 0.85fr; }
.product-hero > * { min-width: 0; }
.product-hero-text { display: grid; gap: 1.1rem; }
.product-hero-text .lead { max-width: 62ch; }
.h1-sub { display: block; margin-top: 0.5rem; color: var(--accent); font: 500 clamp(1.05rem, 2vw, 1.35rem)/1.3 var(--f-display); letter-spacing: 0; }

.facts-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0.4rem 0 0.2rem; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.facts-strip--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 46rem; }
.facts-strip > div { display: grid; gap: 0.25rem; align-content: start; padding: 0.85rem 0.9rem; border-right: 1px dashed var(--line); }
.facts-strip > div:last-child { border-right: 0; }
.facts-strip dt { color: var(--muted); font: 500 0.7rem/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.facts-strip dd { margin: 0; font-weight: 600; font-size: 0.95rem; }

.product-media { display: grid; gap: 0.75rem; margin: 0; }
.product-media > img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.product-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.product-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; }
.product-media figcaption { color: var(--muted); font-size: 0.82rem; }
.media-empty { display: grid; gap: 0.5rem; place-content: center; justify-items: center; aspect-ratio: 1; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font: 400 0.85rem var(--f-mono); }
.card-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg); border-radius: 6px; }
/* Category pages: products of a type that has no page of its own, linked from its type card */
.type-group { scroll-margin-top: 6rem; }
.type-group + .type-group { margin-top: 2.75rem; }
.type-group h3 { margin-bottom: 1rem; }
.media-small { display: grid; place-items: center; aspect-ratio: 1; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.media-small img { width: auto; max-width: 100%; height: auto; }

.toc { position: sticky; top: 0; z-index: 5; margin-bottom: 3rem; background: var(--bg); border-block: 1px solid var(--line); }
.toc-list { display: flex; gap: 0.4rem; margin: 0; padding: 0.6rem 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.toc-list::-webkit-scrollbar { display: none; }
.toc-list a { display: block; padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 0.88rem; white-space: nowrap; text-decoration: none; }
.toc-list a:hover, .toc-list a:focus-visible { border-color: var(--accent); color: var(--accent); }
.product-page section[id] { scroll-margin-top: 4.5rem; }
.product-section { padding-bottom: 4rem; }
.product-section .section-head { margin-bottom: 1.6rem; }
.sub-head { margin: 2.5rem 0 1.2rem; }
.split .panel h3 { margin-bottom: 0.8rem; }
.split-text h3 { margin-top: 0.6rem; }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.benefits--4 { grid-template-columns: repeat(4, 1fr); }
.benefit { display: grid; gap: 0.3rem; align-content: start; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); }
.benefit h4 { font-size: 1.02rem; font-weight: 500; }
.benefit p { color: var(--muted); font-size: 0.93rem; }

.cell-note { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.88rem; font-weight: 400; }
.table--ways tbody th a { color: var(--accent); text-decoration: none; }
.table--ways tbody th a:hover { text-decoration: underline; }
.table--ways td:nth-child(n+3) { color: var(--ink); font-weight: 600; }
.table--ways tr.is-featured > * { background: var(--surface); }
.table--ways .tag { display: inline-block; margin-left: 0.5rem; padding: 0.1rem 0.5rem; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; font: 500 0.68rem/1.5 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; }
.cta-row--section { margin-top: 2rem; }
.hint.narrow { margin-top: 0.9rem; }
.table-wrap + p.narrow { margin-top: 1rem; }   /* text that follows a table, e.g. the INCI line under the ingredients */
.cta .cta-row { flex: none; }

.trust .panel { display: grid; gap: 0.5rem; align-content: start; }
.trust p { color: var(--muted); font-size: 0.95rem; }
.trust a { color: var(--accent); }

.inci { margin-top: 1rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.inci summary { cursor: pointer; font-weight: 600; }
.inci p { margin-top: 0.7rem; font: 400 0.9rem/1.7 var(--f-mono); max-width: none; }
.inci .hint { font-family: var(--f-body); }

.order-steps { margin-top: 2rem; max-width: 46rem; }
.rules { display: grid; gap: 1.2rem; }
.rules > div { display: grid; gap: 0.4rem; padding-left: 1rem; border-left: 2px solid var(--accent); }
.rules p { color: var(--muted); }
.sources { margin-top: 1.8rem; font-size: 0.88rem; }
.sources h3 { font: 500 0.72rem/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sources ul { display: grid; gap: 0.3rem; margin-top: 0.5rem; padding-left: 1.1rem; }
.sources a { color: var(--accent); }

/* Quick actions on small screens, shown by main.js once the first buttons have scrolled away. */
.actionbar { display: none; }

@media (max-width: 900px) {
  .product-hero--media { grid-template-columns: 1fr; }
  .benefits, .benefits--4 { grid-template-columns: repeat(2, 1fr); }
  .product-media { max-width: 26rem; }
  .facts-strip, .facts-strip--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-strip > div { border-bottom: 1px dashed var(--line); }
  .facts-strip > div:nth-child(2n) { border-right: 0; }
  .facts-strip > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-bottom: 0; }
  .facts-strip--4 > div:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 700px) {
  .js .actionbar.is-visible {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(19, 42, 46, 0.08);
  }
  .benefits, .benefits--4 { grid-template-columns: 1fr; }
  .actionbar .btn { padding: 0.7rem 0.5rem; font-size: 0.9rem; }
  .has-actionbar .site-footer { padding-bottom: 5.5rem; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav { flex-wrap: wrap; }
  .site-menu { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .site-menu ul { flex-direction: column; gap: 0; }
  .site-menu li a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .site-menu .btn { align-self: flex-start; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-menu { display: none; }
  .js .site-menu.is-open { display: flex; padding-bottom: 0.5rem; }

  .hero, .standard { grid-template-columns: 1fr; }
  .hero { padding-block: 3rem; }
  .grid3 { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cats--related { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 1.8rem; }
  .steps--3 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .grid2 { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .cats { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .criteria li { grid-template-columns: 1fr; gap: 0.2rem; }
  .cta { padding: 1.8rem; }
  .grid4 { gap: 0.75rem; }
  .grid4 .card { padding: 1.1rem; }
  .field-row, .choices { grid-template-columns: 1fr; }
  .spec-list > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .notice { padding: 1.4rem; }
}

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