@charset "UTF-8";
/* ==========================================================================
   Dapcel.com redesign — design system
   Navy / teal, one sans-serif (Inter), evidence-forward, disciplined.
   All tokens + reusable components live here (audit §12, p.17).
   ========================================================================== */

/* ---- Font (bundled, offline-safe) --------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;               /* variable file covers all weights */
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* palette */
  --navy:        #0E2A3B;   /* header/footer, primary headings on light */
  --navy-800:    #143a51;
  --navy-700:    #1d4d68;
  --teal:        #16A3A3;   /* brand teal — accents on dark backgrounds, decorative */
  --teal-dark:   #0F8080;   /* button background (white text = 4.75:1, AA) */
  --teal-darker: #0C6A6A;   /* small teal text on light — AA on white, panel and tint */
  --teal-tint:   #E8F0F2;   /* soft panel */
  --teal-light:  #8fd0d0;   /* light teal — accent text on the navy hero (8.56:1 on navy, AA) */
  --blue:        #2C6E9B;   /* links, step numbers */
  --ink:         #1A2B36;   /* body text */
  --muted:       #5B6B75;   /* secondary text */
  --surface:     #FFFFFF;
  --panel:       #F4F7F9;   /* light section background */
  --panel-2:     #EDF2F5;
  --border:      #DCE4E8;
  --border-strong:#C3D0D7;
  --flag-bg:     #FFF4E5;   /* dev-only TODO marker */
  --flag-border: #E8B872;
  --success-tint:#EAF5EE;
  --success-line:#5B9E76;

  /* type scale */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fs-hero: clamp(2rem, 1.3rem + 3vw, 3.25rem);
  --fs-h1:   clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  --fs-h2:   clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem);
  --fs-h3:   clamp(1.15rem, 1rem + 0.6vw, 1.35rem);
  --fs-body: 1.0625rem;      /* 17px */
  --fs-sm:   0.9375rem;      /* 15px */
  --fs-xs:   0.8125rem;      /* 13px */
  --lh-tight: 1.2;
  --lh-body: 1.65;

  /* spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem;  --sp-7: 3rem;  --sp-8: 4rem; --sp-9: 6rem;

  /* structure */
  --maxw: 1120px;
  --maxw-text: 68ch;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(14,42,59,.06), 0 1px 3px rgba(14,42,59,.05);
  --shadow-md: 0 4px 14px rgba(14,42,59,.08), 0 2px 6px rgba(14,42,59,.05);
  --ring: 0 0 0 3px rgba(22,163,163,.35);
}

/* ---- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--navy); line-height: var(--lh-tight); font-weight: 700; margin: 0 0 var(--sp-4); }
h1 { font-size: var(--fs-h1); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); }
p  { margin: 0 0 var(--sp-4); max-width: var(--maxw-text); }
a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
li { margin: 0.25rem 0; }
strong { font-weight: 600; }
small { font-size: var(--fs-xs); }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-6) 0; }

/* focus + accessibility */
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }
.skip-link {
  position: absolute; left: var(--sp-4); top: -3rem; z-index: 200;
  background: var(--teal); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
  transition: top .15s ease;
}
.skip-link:focus { top: var(--sp-4); text-decoration: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Layout helpers ------------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-5); }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--sp-8); }
.section--tight { padding-block: var(--sp-7); }
.section--panel { background: var(--panel); }
.section--tint  { background: var(--teal-tint); }
.section--navy  { background: var(--navy); color: #dfe9ee; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: var(--fs-xs);
  font-weight: 600; color: var(--teal-darker); margin: 0 0 var(--sp-3);   /* teal-darker: AA on white AND panel */
}
.section--navy .eyebrow, .hero .eyebrow { color: #6fd0d0; }   /* light variant on dark backgrounds */
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid--wide { gap: var(--sp-7); align-items: start; }          /* text + list two-column split */
.grid--wide-center { gap: var(--sp-7); align-items: center; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: var(--fs-sm);
  padding: .8rem 1.4rem; border-radius: var(--radius-sm); cursor: pointer;
  border: 1.5px solid transparent; text-decoration: none; transition: all .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--teal-dark); color: #fff; border-color: var(--teal-dark); }
.btn--primary:hover { background: var(--teal-darker); border-color: var(--teal-darker); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--border-strong); }
.btn--outline:hover { border-color: var(--teal-dark); color: var(--teal-dark); }
.btn--on-navy { background: var(--teal-dark); color: #fff; border-color: var(--teal-dark); }
.btn--ghost-navy { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-navy:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--lg { padding: .95rem 1.7rem; font-size: var(--fs-body); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---- Header / nav ------------------------------------------------------------ */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 100; }
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
  max-width: var(--maxw); margin-inline: auto; padding: .6rem var(--sp-5);
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--sp-2); }
.nav a {
  color: #cdd9e0; font-size: var(--fs-sm); font-weight: 500;
  padding: .5rem .7rem; border-radius: var(--radius-sm); white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); text-decoration: none; }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--teal); }
.nav__cta { margin-left: var(--sp-2); }
.nav .btn--primary { color: #fff; }   /* override .nav a grey so CTA text stays white (AA on teal-dark) */
.nav-toggle {
  display: none; background: transparent; border: 1.5px solid rgba(255,255,255,.35);
  color: #fff; border-radius: var(--radius-sm); padding: .45rem .6rem; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--navy-800);
    border-top: 1px solid rgba(255,255,255,.12); padding: var(--sp-3);
    max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .25s ease;
  }
  .nav.is-open { max-height: 80vh; visibility: visible; overflow: auto; }
  .nav a { padding: .8rem .7rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--teal); }
  .nav__cta { margin: var(--sp-2) 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #b7c6cf; padding-block: var(--sp-7) var(--sp-5); font-size: var(--fs-sm); }
.site-footer a { color: #cdd9e0; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--sp-6); }
.site-footer h3 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--sp-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer__brand img { height: 54px; margin-bottom: var(--sp-4); }
.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--sp-6); padding-top: var(--sp-4);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); justify-content: space-between; color: #8aa0ac;
}
@media (max-width: 780px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---- Hero ---------------------------------------------------------------- */
.hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-800) 100%); color: #e7eef2; position: relative; overflow: hidden; }
.hero__inner { padding-block: var(--sp-8); display: grid; grid-template-columns: 1fr minmax(280px, 360px); gap: var(--sp-7); align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: var(--fs-hero); margin-bottom: var(--sp-4); max-width: 16ch; }
.hero__sub { font-size: 1.2rem; color: #b9cad3; max-width: 46ch; margin-bottom: var(--sp-5); }
.hero .btn-row { margin-bottom: var(--sp-5); }
.hero__panel {
  background: rgba(9, 25, 37, 0.66); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: var(--sp-6);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
@media (max-width: 860px) { .hero__inner { grid-template-columns: 1fr; gap: var(--sp-5); } .hero__bg { display: none; } }

/* ---- Interior page header (reused by service/product/content pages) ------ */
.page-header { background: var(--navy); color: #dfe9ee; position: relative; overflow: hidden; }
.page-header::after { content: ""; position: absolute; top: -30%; right: -4%; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(22,163,163,.16), rgba(22,163,163,0) 66%); pointer-events: none; z-index: 0; }
.page-header__inner { padding-block: var(--sp-6) var(--sp-7); max-width: 860px; position: relative; z-index: 1; }
.page-header h1 { color: #fff; margin-bottom: var(--sp-4); }
.page-header .eyebrow { color: #6fd0d0; }
.page-header .lede { color: #b9cad3; max-width: 60ch; }
.page-header .btn-row { margin-top: var(--sp-5); }
.page-header .breadcrumb { color: #8aa0ac; padding-block: 0; margin-bottom: var(--sp-5); }
.page-header .breadcrumb a { color: #b9cad3; }
.page-header .breadcrumb a:hover { color: #fff; }
/* optional header banner image (right side); add .page-header--media on the section */
.page-header__media { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; z-index: 0; }
.page-header__media img { width: 100%; height: 100%; object-fit: cover; }
.page-header__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 4%, rgba(14,42,59,.55) 48%, rgba(14,42,59,.2) 100%); }
@media (max-width: 780px) { .page-header--media .page-header__inner { max-width: none; } .page-header__media { display: none; } }

/* section intro helper */
.section-head { max-width: 680px; margin-inline: auto; text-align: center; margin-bottom: var(--sp-6); }
.section-head p { margin-inline: auto; }

/* supporting-service + package cards reuse .card; small tweaks */
.mini-card h3 { font-size: var(--fs-body); }
.mini-card .badge + h3 { margin-top: var(--sp-3); }
.mini-card .outcome { color: var(--ink); font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.mini-card .pkg-role { font-size: var(--fs-xs); font-weight: 600; color: var(--teal-dark); margin: 0 0 .35rem; }
.mini-card .deliver { color: var(--muted); font-size: var(--fs-xs); margin: 0; }
.mini-card .deliver strong { color: var(--navy); }
.mini-card .btn { margin-top: auto; align-self: flex-start; }   /* bottom-align CTAs like .path-card */

/* checklist grid */
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3) var(--sp-6); }
.check-grid li { list-style: none; display: flex; gap: .6rem; align-items: baseline; color: var(--ink); font-size: var(--fs-sm); }
.check-grid li::before { content: "✓"; color: var(--teal-dark); font-weight: 700; flex: none; }
.check-grid ul { margin: 0; padding: 0; }
.check-grid--single { grid-template-columns: 1fr; }
@media (max-width: 620px) { .check-grid { grid-template-columns: 1fr; } }

/* format cards — name-on-top + gloss, aligned checkmark (e.g. assay formats) */
.fmt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.fmt { display: flex; gap: .7rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); box-shadow: var(--shadow-sm); }
.fmt::before { content: "✓"; color: var(--teal-dark); font-weight: 800; font-size: 1.05rem; line-height: 1.5; flex: none; }
.fmt strong { display: block; color: var(--navy); font-size: 1.02rem; margin-bottom: .15rem; }
.fmt span { display: block; color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
@media (max-width: 620px) { .fmt-grid { grid-template-columns: 1fr; } }

/* ---- Trust strip --------------------------------------------------------- */
.trust-strip { background: var(--navy-800); color: #cfe0e6; border-top: 1px solid rgba(255,255,255,.1); }
.trust-strip__row {
  display: flex; flex-wrap: wrap; gap: var(--sp-5) var(--sp-7); justify-content: center;
  padding-block: var(--sp-4); font-size: var(--fs-sm); font-weight: 500;
}
/* ---- Cards (generic) ----------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--sp-6); box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: var(--sp-3); }
.card p:last-child { margin-bottom: 0; }
.card__ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--teal-tint); color: var(--teal-dark); margin-bottom: var(--sp-4); }
.card__sub { color: var(--muted); font-size: var(--fs-sm); margin: -.4rem 0 var(--sp-4); }

/* Service-path card */
.path-card { border-top: 3px solid var(--teal); }
.path-card__num {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--teal-tint); color: var(--teal-dark); font-weight: 700;
  font-size: var(--fs-sm); margin-bottom: var(--sp-4);
}
.path-card ul { list-style: none; padding: 0; margin: var(--sp-3) 0 var(--sp-5); }
.path-card li { display: flex; gap: .5rem; align-items: baseline; color: var(--muted); font-size: var(--fs-sm); }
.path-card li::before { content: "▸"; color: var(--teal-dark); font-size: .8em; }
.path-card .btn { margin-top: auto; align-self: flex-start; }

/* ---- Process (4-step) ---------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); counter-reset: step; }
.process__step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); }
.process__step .n {
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--fs-sm);
  margin-bottom: var(--sp-3);
}
.process__step h3 { color: var(--navy); margin: 0 0 var(--sp-2); font-size: var(--fs-body); }
.process__step p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.process__step:not(:last-child)::after {
  content: "→"; position: absolute; right: -0.85rem; top: 50%; transform: translateY(-50%);
  color: var(--border-strong); font-weight: 700; z-index: 1;
}
.process--vertical { grid-template-columns: 1fr; }
.process--vertical .process__step::after { display: none; }   /* no side-arrows when stacked */
@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; } .process__step::after { display: none; } }
@media (max-width: 460px) { .process { grid-template-columns: 1fr; } }

/* ---- Spec grid / table --------------------------------------------------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table caption { text-align: left; font-weight: 600; color: var(--navy); margin-bottom: var(--sp-3); }
.spec-table th, .spec-table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th[scope="row"] { color: var(--muted); font-weight: 500; width: 42%; }
.spec-table td { color: var(--ink); font-weight: 500; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-6); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 620px) { .spec-grid { grid-template-columns: 1fr; } }

/* ---- Evidence / callout panel -------------------------------------------- */
.panel { border-radius: var(--radius); padding: var(--sp-6); border: 1px solid var(--border); background: var(--panel); }
.panel--evidence { background: var(--teal-tint); border-color: #cfe1e4; border-left: 4px solid var(--teal); }
.panel--note { background: var(--success-tint); border-left: 4px solid var(--success-line); }
.panel h2, .panel h3, .panel h4 { color: var(--navy); margin-bottom: var(--sp-2); font-size: var(--fs-h3); }
.panel p:last-child { margin-bottom: 0; }
.panel blockquote { margin: 0; color: var(--navy); font-style: italic; }
.panel__cite { font-size: var(--fs-xs); color: var(--muted); margin: .6rem 0 0; }
.panel .badge + h3 { margin-top: var(--sp-3); }

/* ---- Testimonial card ---------------------------------------------------- */
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-6); box-shadow: var(--shadow-sm); }
.quote blockquote { margin: 0 0 var(--sp-4); font-size: 1.1rem; color: var(--navy); line-height: 1.55; }
.quote blockquote::before { content: "\201C"; color: var(--teal); font-weight: 700; font-size: 1.4em; margin-right: .1em; }
.quote__cite { font-style: normal; font-size: var(--fs-sm); color: var(--muted); }
.quote__cite strong { color: var(--ink); display: block; }
.quote__role { display: block; }

/* ---- Document / download list -------------------------------------------- */
.doc-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.doc-list li { margin: 0; border-bottom: 1px solid var(--border); }
.doc-list li:last-child { border-bottom: 0; }
.doc-list a { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; color: var(--navy); font-weight: 500; font-size: var(--fs-sm); }
.doc-list a:hover { background: var(--panel); text-decoration: none; }
.doc-list a::before { content: "PDF"; font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--teal-dark); background: var(--teal-tint); padding: .2rem .4rem; border-radius: 4px; flex: none; }

/* ---- Case-study block ---------------------------------------------------- */
.case { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.case__head { padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--border); background: var(--panel); }
.case__head .tag { font-size: var(--fs-xs); font-weight: 600; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .1em; }
.case__body { padding: var(--sp-6); display: grid; gap: var(--sp-4); }
.case__row { display: grid; grid-template-columns: 150px 1fr; gap: var(--sp-4); }
.case__row dt { font-weight: 600; color: var(--navy); font-size: var(--fs-sm); }
.case__row dd { margin: 0; color: var(--ink); font-size: var(--fs-sm); }
.case-list { display: grid; gap: var(--sp-6); }
.case__head h2 { font-size: var(--fs-h3); margin: .3rem 0 0; }

/* ---- Publication list ---------------------------------------------------- */
.pub-list { list-style: none; padding: 0; margin: 0; }
.pub { padding: var(--sp-4) 0; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .2rem .6rem; align-items: baseline; }
.pub:last-child { border-bottom: 0; }
.pub__cite { font-weight: 600; color: var(--navy); }
.pub__meta { color: var(--muted); font-size: var(--fs-sm); }
.pub__note { flex-basis: 100%; color: var(--ink); font-size: var(--fs-sm); margin-top: .15rem; }
@media (max-width: 560px) { .case__row { grid-template-columns: 1fr; gap: .2rem; } }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band { background: var(--navy); color: #dfe9ee; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-5); padding-block: var(--sp-7); }
.cta-band h2 { color: #fff; margin: 0 0 var(--sp-2); }
.cta-band p { color: #b9cad3; margin: 0; max-width: 52ch; }

/* ---- Product card -------------------------------------------------------- */
.product-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card__media { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.product-card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: var(--fs-body); margin-bottom: var(--sp-2); }
.product-card h3 a { color: var(--navy); }
.product-card__meta { font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--sp-3); }
.product-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--border); }
.price { font-weight: 700; color: var(--navy); }

/* ---- Badges / pills ------------------------------------------------------ */
.badge { display: inline-block; font-size: var(--fs-xs); font-weight: 600; padding: .2rem .55rem; border-radius: 999px; letter-spacing: .02em; }
.badge--tested { background: var(--success-tint); color: #2f6b47; }
.badge--identity { background: var(--teal-tint); color: var(--teal-darker); }
.badge--na { background: var(--panel-2); color: var(--muted); }

/* ---- Placeholder figure -------------------------------------------------- */
.figure-ph { background: var(--panel-2); border: 1px dashed var(--border-strong); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: var(--fs-sm); padding: var(--sp-6); min-height: 180px; text-align: center; }
figure { margin: 0; }
figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--sp-2); }

/* ---- Dev-only TODO flag (never ship to real deploy) ---------------------- */
.todo-flag { background: var(--flag-bg); border: 1px solid var(--flag-border); border-radius: 4px; padding: 0 .35rem; font-size: .85em; }
.todo-flag::before { content: "⚑ "; }

/* ---- Forms --------------------------------------------------------------- */
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-weight: 600; font-size: var(--fs-sm); color: var(--navy); margin-bottom: .35rem; }
.field .req { color: #b3452f; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); margin-top: .1rem; }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: var(--fs-sm); color: var(--ink);
  padding: .65rem .8rem; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #fff;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--teal); box-shadow: var(--ring); outline: none; }
.textarea { min-height: 120px; resize: vertical; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-4); }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: #b3452f; }
.error-msg { color: #b3452f; font-size: var(--fs-xs); margin-top: .25rem; display: none; }
.field.invalid .error-msg { display: block; }
.form-note { font-size: var(--fs-sm); color: var(--muted); }
.form-status { padding: var(--sp-4); border-radius: var(--radius); margin-top: var(--sp-4); display: none; }
.form-status.is-shown { display: block; }
.form-status--ok { background: var(--success-tint); border: 1px solid var(--success-line); color: #2f6b47; }
.form-status h2 { color: #245239; margin-bottom: var(--sp-2); }
.form-errors { background: #fdecec; border: 1px solid #e0a3a3; color: #8a2e2e; border-radius: var(--radius-sm); padding: var(--sp-4); margin-bottom: var(--sp-5); font-size: var(--fs-sm); font-weight: 600; }
.form-errors[hidden] { display: none; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }

/* ---- Inquiry form layout ------------------------------------------------- */
.form-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--sp-7); align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-6); box-shadow: var(--shadow-sm); }
.inquiry fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-6); min-width: 0; }
.inquiry fieldset:last-of-type { margin-bottom: var(--sp-5); }
.inquiry legend { font-weight: 700; color: var(--navy); font-size: var(--fs-h3); margin-bottom: var(--sp-2); padding: 0; }
.fieldset-hint { color: var(--muted); font-size: var(--fs-sm); margin: 0 0 var(--sp-4); }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); }
.checkbox input { margin-top: .2rem; flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--teal-dark); }
.checkbox label { font-weight: 500; color: var(--ink); }
.form-file { font-size: var(--fs-sm); max-width: 100%; }
.form-aside { display: grid; gap: var(--sp-4); position: sticky; top: 84px; }
.form-aside .panel { padding: var(--sp-5); }
.form-aside h3 { font-size: var(--fs-body); margin-bottom: var(--sp-2); }
.form-aside p, .form-aside ul { font-size: var(--fs-sm); }
.form-aside .panel p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .form-layout { grid-template-columns: 1fr; } .form-aside { position: static; } }

/* ---- FAQ accordion ------------------------------------------------------- */
.faq { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal-dark); font-weight: 700; font-size: 1.3em; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--teal-dark); }
.faq__a { padding: 0 1.25rem 1.25rem; color: var(--ink); font-size: var(--fs-sm); }
.faq__a p { margin: 0 0 var(--sp-3); }
.faq__a p:last-child { margin-bottom: 0; }

/* ---- Definition-style deliverable / input list --------------------------- */
.speclist { list-style: none; padding: 0; margin: 0; }
.speclist li { display: flex; gap: .7rem; align-items: baseline; padding: .6rem 0; border-bottom: 1px solid var(--border); color: var(--ink); font-size: var(--fs-sm); }
.speclist li:last-child { border-bottom: 0; }
.speclist li::before { content: "\2192"; color: var(--teal-dark); font-weight: 700; flex: none; }
.speclist strong { color: var(--navy); }

/* ---- Breadcrumb ---------------------------------------------------------- */
.breadcrumb { font-size: var(--fs-xs); color: var(--muted); padding-block: var(--sp-3) 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li:not(:first-child)::before { content: "/"; margin: 0 .4rem; opacity: .6; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal-dark); }

/* ---- Responsive grid collapse ------------------------------------------- */
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

/* ---- Utilities ----------------------------------------------------------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-6 { margin-top: var(--sp-6); }
.tagline { color: var(--teal-dark); font-weight: 600; font-style: italic; }
.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: var(--sp-6); }
.pill { font-size: var(--fs-sm); font-weight: 600; color: var(--navy); background: #fff; border: 1.5px solid var(--border-strong); border-radius: 999px; padding: .45rem 1rem; }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-2 { margin-bottom: var(--sp-2); }
.text-muted { color: var(--muted); }
.text-sm { font-size: var(--fs-sm); }
.pub__link { font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; margin-left: .4rem; }

/* tokenized utilities (replacing former inline styles — one source of truth) */
.m-0 { margin: 0; }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-lg { margin-top: 1.75rem; }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-lg { margin-bottom: 2.5rem; }
.p-card { padding: 1.25rem; }
.gap-4 { gap: var(--sp-4); }
.gap-lg { gap: 2.5rem; }
.fw-normal { font-weight: 400; }
.text-xs { font-size: var(--fs-xs); }
.fs-h3 { font-size: var(--fs-h3); }
.h-card { font-size: 1rem; margin-bottom: .3rem !important; }   /* !important beats .card h3 margin-bottom */
.note-xs { font-size: var(--fs-xs) !important; margin: .6rem 0 0; }  /* !important beats .form-aside p font-size */
.text-teal-light { color: var(--teal-light); }
.btn--block { width: 100%; justify-content: center; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.measure-sm { max-width: 640px; margin-inline: auto; }
.measure-narrow { max-width: 34ch; }
.chart-svg { width: 100%; height: auto; font-family: 'Inter', system-ui, sans-serif; }
.chart-svg--center { max-width: 660px; margin-inline: auto; display: block; }
.fig-note { max-width: 560px; margin: var(--sp-3) auto 0; }
.stack > * + * { margin-top: var(--sp-4); }

/* ==========================================================================
   BRAND v2 — image-rich, icon-led layer (comps: 2026-07). Honest content:
   no unverified ISO/GLP/stats; real phone; images are swap-in slots.
   ========================================================================== */

/* ---- Icons --------------------------------------------------------------- */
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 16px; height: 16px; }
.ico--lg { width: 30px; height: 30px; }

/* ---- Image slot (user-provided photos; gradient shows until an <img> loads) */
.media { background: linear-gradient(135deg, #123449 0%, #0d5e5e 100%); position: relative; overflow: hidden; }
.media > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Hero v2 (layered protein graphic + icon "three ways" panel) --------- */
.hero__bg { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; z-index: 0; pointer-events: none; }
.hero__bg > svg, .hero__bg > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 6%, rgba(14,42,59,.6) 40%, rgba(14,42,59,.28) 100%); }
.hero-ways { display: grid; }
.hero-ways__label { color: #6fd0d0; text-transform: uppercase; letter-spacing: .12em; font-size: var(--fs-xs); font-weight: 700; margin-bottom: var(--sp-3); }
.hero-way { display: grid; grid-template-columns: 42px 1fr; gap: .85rem; padding: var(--sp-4) 0; align-items: start; }
.hero-way + .hero-way { border-top: 1px solid rgba(255,255,255,.1); }
.hero-way__ic { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(111,208,208,.4); display: grid; place-items: center; color: #6fd0d0; }
.hero-way__head { display: flex; gap: .5rem; align-items: baseline; }
.hero-way__num { color: #6fd0d0; font-weight: 700; font-size: .85rem; }
.hero-way__title { color: #fff; font-weight: 600; }
.hero-way__desc { color: #9fb3be; font-size: .85rem; margin-top: .1rem; }
.hero-way a { color: inherit; }

/* ---- Trust strip v2 (icon + title + description) ------------------------- */
.trust-strip__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); align-items: start; }
.trust-item { display: grid; grid-template-columns: auto 1fr; gap: .8rem; text-align: left; }
.trust-item__ic { color: #6fd0d0; }
.trust-item__title { color: #fff; font-weight: 600; font-size: .95rem; }
.trust-item__desc { color: #9fb3be; font-size: .82rem; margin-top: .15rem; }
@media (max-width: 780px) { .trust-strip__row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .trust-strip__row { grid-template-columns: 1fr; } }

/* ---- Service cards v2 (photo + number + checklist + learn more) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.svc-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease; }
.svc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.svc-card__media { aspect-ratio: 3 / 2; }
.svc-card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.svc-card__num { color: var(--teal-dark); font-weight: 700; font-size: .85rem; }
.svc-card h3 { margin: .1rem 0 var(--sp-3); font-size: 1.2rem; }
.svc-card__desc { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.svc-card__list { list-style: none; padding: 0; margin: 0 0 var(--sp-5); }
.svc-card__list li { display: flex; gap: .5rem; align-items: baseline; font-size: var(--fs-sm); color: var(--ink); padding: .2rem 0; }
.svc-card__list .ico { color: var(--teal-dark); }
.svc-card__learn { margin-top: auto; align-self: flex-start; font-weight: 600; color: var(--teal-dark); display: inline-flex; align-items: center; gap: .4rem; }
.svc-card__learn:hover { gap: .6rem; text-decoration: none; }
@media (max-width: 860px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---- Icon feature rows (service overview / tech / about) ----------------- */
.feature { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); }
.feature__ic { width: 48px; height: 48px; border-radius: 12px; background: var(--teal-tint); color: var(--teal-dark); display: grid; place-items: center; }
.feature h3 { font-size: var(--fs-body); margin-bottom: .35rem; }
.feature p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.path-card .feature__ic { margin-bottom: var(--sp-4); }

/* ---- Section with subtle photo background -------------------------------- */
.section--photo { position: relative; }
.section--photo > .container { position: relative; z-index: 1; }
.section--photo .section-photo-bg { position: absolute; inset: 0; z-index: 0; opacity: .06; }
.section--photo .section-photo-bg img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Footer v2 (contact icons, tagline, legal row) ----------------------- */
.site-footer__tag { color: #6fd0d0; font-weight: 600; font-style: italic; margin-top: var(--sp-2); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; margin: .5rem 0; }
.footer-contact .ico { color: #6fd0d0; margin-top: 2px; }
/* contact list on light backgrounds */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; margin: .7rem 0; font-size: var(--fs-sm); }
.contact-list .ico { color: var(--teal-dark); margin-top: 2px; }

/* ---- Stats band (about page) -------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.stat { text-align: center; }
.stat__ic { color: var(--teal-dark); display: inline-grid; place-items: center; margin-bottom: var(--sp-2); }
.stat__num { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 700; color: var(--navy); line-height: 1; }
.stat__label { font-size: var(--fs-sm); color: var(--muted); margin-top: .35rem; }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---- Product catalog filter bar ----------------------------------------- */
.catalog-bar { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); }
.catalog-search { position: relative; flex: 1 1 320px; max-width: 460px; }
.catalog-search .ico { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.catalog-search .input { padding-left: 2.5rem; }
.catalog-filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { font: inherit; font-size: var(--fs-sm); font-weight: 600; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--border-strong); background: #fff; color: var(--navy); cursor: pointer; transition: all .12s ease; }
.chip:hover { border-color: var(--teal-dark); color: var(--teal-dark); }
.chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.catalog-count { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 var(--sp-5); }
.catalog-empty { text-align: center; color: var(--muted); padding: var(--sp-7) 0; }

/* dev-only marker for flagged (unverified) scientific values — see CORRECTIONS.md */
/* Flagged values = unverified scientific values a scientific owner must reconcile (see
   CORRECTIONS.md). Production-neutral by default (plain text) so buyers never see an internal
   QA badge; add class "flags-visible" to <body> during internal review to surface the amber
   marker + tooltip. The value itself is never changed (flag-don't-fix). */
.flags-visible .flag { background: var(--flag-bg); border-bottom: 2px solid var(--flag-border); border-radius: 3px 3px 0 0; padding: 0 .15rem; cursor: help; }
.flags-visible .flag::after { content: " \26A0"; font-size: .8em; color: #b3742a; }
.attach-reminder { margin-top: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--flag-bg); border: 1px solid var(--flag-border); border-radius: var(--radius-sm); }

/* ==========================================================================
   LIVE SKIN (2026-10) — the design above, served by the dapcel.com app itself
   (Views/New). Store, account, admin-content and old-checkout styles, plus the
   review fixes. Everything below is additive or an explicit override.
   ========================================================================== */

[hidden] { display: none !important; }
html { scroll-behavior: auto; scroll-padding-top: 5rem; }  /* #sent, #inquiry-problem etc. land below the sticky header */
section[tabindex="-1"]:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* focus: a visible 3:1 ring everywhere, light on dark areas */
:focus-visible { outline: 3px solid var(--teal-darker); outline-offset: 2px; box-shadow: none; }
.site-header :focus-visible, .hero :focus-visible, .page-header :focus-visible, .cta-band :focus-visible,
.site-footer :focus-visible, .utility-bar :focus-visible { outline-color: #8fd0d0; }
.skip-link { background: var(--navy); }

/* form controls: borders that pass 3:1 */
.input, .select, .textarea { border-color: #8a9ba5; }
.chip { border-color: #8a9ba5; }
.select { max-width: 100%; }

/* grids never force overflow */
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mini-card .btn, .card .btn { white-space: normal; }
.mini-card .badge { align-self: flex-start; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* list items with a bold lead stay one paragraph */
.speclist li { display: block; position: relative; padding-left: 1.4rem; }
.speclist li::before { position: absolute; left: 0; top: .6rem; }

/* hero: one flat navy so the image edge doesn't show a seam */
.hero { background: var(--navy); }
.hero__bg { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%); mask-image: linear-gradient(90deg, transparent 0, #000 38%); }
.hero__bg::after { background: linear-gradient(90deg, rgba(14,42,59,.55) 0%, rgba(14,42,59,.25) 60%, rgba(14,42,59,.15) 100%); }

/* interior header lines up with the body column */
.page-header__inner { max-width: var(--maxw); }
.page-header__inner > * { max-width: 760px; }
.page-header__inner > h1 { max-width: none; }
.page-header--media .page-header__inner > * { max-width: 560px; }

/* ---- Header: utility bar (contact, account, cart) + main bar --------------- */
.utility-bar { background: #0a2230; color: #b7c6cf; font-size: var(--fs-xs); }
.utility-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); max-width: var(--maxw); margin-inline: auto; padding: .35rem var(--sp-5); min-height: 34px; }
.utility-bar a { color: #dfe9ee; }
.utility-bar a:hover { color: #fff; }
.utility-bar__contact { display: flex; gap: var(--sp-5); align-items: center; }
.utility-bar__contact a { display: inline-flex; gap: .4rem; align-items: center; }
.utility-bar__contact .ico { width: 14px; height: 14px; color: #6fd0d0; }
.utility-bar__account { display: flex; gap: var(--sp-4); align-items: center; }
.utility-bar__account .sep { opacity: .4; }
.cart-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.cart-link .ico { width: 16px; height: 16px; color: #6fd0d0; }
.cart-link__count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 999px; background: var(--teal-dark); color: #fff; font-size: 11px; font-weight: 700; }
.cart-link__total { color: #b7c6cf; font-weight: 500; }
@media (max-width: 640px) { .utility-bar__contact .hide-sm { display: none; } .cart-link__total { display: none; } }

.brand { flex: none; }
.brand img { height: 40px; width: auto; }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--navy-800);
    border-top: 1px solid rgba(255,255,255,.12); padding: var(--sp-3);
    max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .25s ease;
  }
  .nav.is-open { max-height: 85vh; visibility: visible; overflow: auto; }
  .nav a { padding: .8rem .7rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--teal); }
  .nav__cta { margin: var(--sp-2) 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
  .site-header__bar { position: relative; }
}
.site-header { position: sticky; top: 0; }

/* footer: logo at its own ratio, readable description, four columns */
.site-footer__brand img { height: 40px; width: auto; margin-bottom: var(--sp-4); }
.site-footer .text-muted { color: #b7c6cf; }
.site-footer__grid { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; } .site-footer__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---- Notices (server messages) --------------------------------------------- */
.notice { border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-5); font-size: var(--fs-sm); border: 1px solid var(--border); background: var(--panel); }
.notice--ok { background: var(--success-tint); border-color: var(--success-line); color: #245239; }
.notice--warn { background: #fff7e8; border-color: #e8b872; color: #6b4a12; }
.notice--error { background: #fdecec; border-color: #e0a3a3; color: #8a2e2e; }
.notice h2, .notice h3 { color: inherit; font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.notice p:last-child { margin-bottom: 0; }

/* ---- Product cards: framed figure, or a tile when there's no picture ------- */
.product-card { position: relative; }
.product-card__media { aspect-ratio: 3 / 2; background: #fff; border-bottom: 1px solid var(--border); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; }
.product-card__media--photo img { object-fit: cover; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; }   /* whole card is the link */
.product-card h3 a:hover { text-decoration: none; color: var(--teal-dark); }
.product-card__cat { font-size: var(--fs-xs); font-weight: 600; color: var(--teal-darker); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25rem; }
.product-card__meta { font-size: var(--fs-sm); color: var(--muted); }
.product-card__foot .price { font-size: var(--fs-body); }
.product-card__foot .from { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; margin-right: .2rem; }
.product-card__sizes { font-size: var(--fs-xs); color: var(--muted); }
.tile { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 75% 20%, rgba(22,163,163,.28), rgba(22,163,163,0) 55%), var(--navy); color: #fff; text-align: center; padding: var(--sp-5); }
.tile__name { font-weight: 800; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); letter-spacing: -.01em; line-height: 1.1; }
.tile__kind { color: #8fd0d0; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .14em; margin-top: .5rem; font-weight: 600; }
.tile img { width: 64px !important; height: 64px !important; object-fit: contain !important; margin: 0 auto .6rem; border-radius: 12px; background: #fff; padding: 6px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
@media (max-width: 960px) { .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .catalog-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .catalog-grid .product-card { flex-direction: row; }
  .catalog-grid .product-card__media { flex: 0 0 104px; aspect-ratio: 1 / 1; border-bottom: 0; border-right: 1px solid var(--border); }
  .catalog-grid .product-card__body { padding: var(--sp-4); }
  .catalog-grid .tile { padding: var(--sp-2); }
  .catalog-grid .tile__name { font-size: 1rem; }
  .catalog-grid .tile__kind, .catalog-grid .tile img { display: none; }
}
.cat-section + .cat-section { margin-top: var(--sp-7); }
.cat-section__head { display: flex; gap: var(--sp-4); align-items: center; margin-bottom: var(--sp-5); }
.cat-section__head img { width: 56px; height: 56px; border-radius: 12px; background: #fff; border: 1px solid var(--border); padding: 6px; flex: none; }
.cat-section__head h2 { margin: 0; }
.cat-section__head p { margin: .2rem 0 0; color: var(--muted); font-size: var(--fs-sm); }

/* ---- Product page ------------------------------------------------------------ */
.product-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--sp-7); align-items: start; }
@media (max-width: 900px) { .product-top { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); } }
.product-figure { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-4); }
.product-figure img { width: 100%; height: auto; max-height: 460px; object-fit: contain; }
.product-figure--photo { padding: 0; overflow: hidden; }
.product-figure--photo img { max-height: none; object-fit: cover; aspect-ratio: 3 / 2; }
.product-figure .tile { aspect-ratio: 3 / 2; border-radius: var(--radius-sm); }
.facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: var(--sp-4) 0 0; padding: 0; list-style: none; }
.facts li { margin: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--navy); background: var(--teal-tint); border-radius: 999px; padding: .3rem .7rem; }
.facts li span { color: var(--muted); font-weight: 500; margin-right: .3rem; }

.order-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: var(--sp-6); position: sticky; top: 120px; }
@media (max-width: 900px) { .order-panel { position: static; } }
.order-panel h2 { font-size: var(--fs-h3); margin-bottom: var(--sp-4); }
.size-list { list-style: none; padding: 0; margin: 0 0 var(--sp-4); display: grid; gap: .5rem; }
.size-list li { margin: 0; }
.size-option { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; padding: .75rem .9rem; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; font-size: var(--fs-sm); background: #fff; }
.size-option:hover { border-color: var(--teal-dark); }
.size-option input { accent-color: var(--teal-dark); width: 1.05rem; height: 1.05rem; margin: 0; }
.size-option:has(input:checked) { border-color: var(--teal-dark); background: var(--teal-tint); }
.size-option__name { color: var(--ink); font-weight: 500; }
.size-option__sku { display: block; color: var(--muted); font-size: var(--fs-xs); font-weight: 400; }
.size-option__price { font-weight: 700; color: var(--navy); white-space: nowrap; }
.order-row { display: flex; gap: var(--sp-3); align-items: stretch; }
.qty { display: inline-flex; border: 1.5px solid #8a9ba5; border-radius: var(--radius-sm); overflow: hidden; flex: none; }
.qty button { width: 2.4rem; border: 0; background: var(--panel); color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.qty button:hover { background: var(--teal-tint); }
.qty input { width: 3rem; border: 0; text-align: center; font: inherit; font-weight: 600; color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.order-row .btn { flex: 1; justify-content: center; }
.order-note { font-size: var(--fs-xs); color: var(--muted); margin: var(--sp-3) 0 0; }
.order-meta { list-style: none; padding: var(--sp-4) 0 0; margin: var(--sp-4) 0 0; border-top: 1px solid var(--border); display: grid; gap: .45rem; font-size: var(--fs-sm); }
.order-meta li { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .55rem; align-items: start; color: var(--ink); }
.order-meta .ico { width: 18px; height: 18px; color: var(--teal-dark); margin-top: 2px; }
.order-panel .doc-list { margin-top: var(--sp-4); }

/* ---- Admin-written content (CKEditor HTML from /admin) ---------------------- */
.prose { color: var(--ink); max-width: 820px; }
.prose p, .prose ul, .prose ol { max-width: none; }
.prose [style*="font-family"] { font-family: inherit !important; }
.prose span[style*="font-size"], .prose strong[style*="font-size"], .prose p[style*="font-size"] { font-size: inherit !important; }
.prose p > span[style*="font-size:18px"], .prose p > span[style*="font-size: 18px"], .prose p > strong[style*="font-size: 18px"], .prose p > strong[style*="font-size:18px"] {
  display: block; font-size: var(--fs-h3) !important; color: var(--navy); font-weight: 700; margin-top: var(--sp-5); }
.prose h1, .prose h2, .prose h3, .prose h4 { margin-top: var(--sp-6); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
/* Publications: author line under each citation */
.prose p > small { display: block; line-height: 1.5; color: var(--muted); margin-top: 2px; }
.prose img { max-width: 100% !important; width: auto !important; height: auto !important; border-radius: var(--radius-sm); }
.prose p:has(> img:only-child) { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-4); display: inline-block; }
.prose table { width: 100% !important; height: auto !important; border-collapse: collapse; margin: 0 0 var(--sp-5); font-size: var(--fs-sm); background: #fff; }
.prose table[border="0"], .prose table:not([border]) { border: 1px solid var(--border); }
.prose td, .prose th { padding: .65rem .85rem; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; width: auto !important; height: auto !important; }
.prose tr > td:first-child { color: var(--muted); width: 40% !important; }
.prose tr > td:first-child strong { color: var(--navy); font-weight: 600; }
.prose blockquote { margin: 0 0 var(--sp-4); padding-left: var(--sp-4); border-left: 3px solid var(--teal); color: var(--navy); }
.prose hr { margin: var(--sp-5) 0; }
.prose ol, .prose ul { padding-left: 1.4rem; }
.prose--card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-6); box-shadow: var(--shadow-sm); max-width: none; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--sp-7); align-items: start; }
@media (max-width: 900px) { .content-layout { grid-template-columns: minmax(0, 1fr); } }
.side-stack { display: grid; gap: var(--sp-4); position: sticky; top: 120px; }
@media (max-width: 900px) { .side-stack { position: static; } }
.side-stack .panel { padding: var(--sp-5); }
.side-stack h2, .side-stack h3 { font-size: var(--fs-body); }
.side-stack p, .side-stack li { font-size: var(--fs-sm); }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { margin: 0; border-bottom: 1px solid var(--border); }
.side-links li:last-child { border-bottom: 0; }
.side-links a { display: block; padding: .55rem 0; font-weight: 500; }

/* ---- News + reviews -------------------------------------------------------- */
.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); }
.news-item { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5) var(--sp-6); box-shadow: var(--shadow-sm); }
.news-item time { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--teal-darker); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .3rem; }
.news-item h2, .news-item h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.news-item h2 a, .news-item h3 a { color: var(--navy); }
.news-item p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 0; }
.news-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); }
.news-mini li { margin: 0; padding-bottom: var(--sp-4); border-bottom: 1px solid var(--border); }
.news-mini li:last-child { border-bottom: 0; padding-bottom: 0; }
.news-mini time { display: block; font-size: var(--fs-xs); color: var(--muted); }
.news-mini a { font-weight: 600; color: var(--navy); }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
@media (max-width: 760px) { .review-grid { grid-template-columns: minmax(0, 1fr); } }
.review { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-6); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.review__text { color: var(--navy); font-size: 1.02rem; line-height: 1.6; }
.review__text p { max-width: none; }
.review__text p:last-child { margin-bottom: 0; }
.review__by { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--muted); font-style: normal; }
.review__by strong { display: block; color: var(--ink); }
.post-meta { color: #b9cad3; font-size: var(--fs-sm); margin: 0; }

/* the pagination markup DataManager builds (ul.pagination) */
.pagination { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: var(--sp-6) 0 0; align-items: center; }
.pagination li { margin: 0; }
.pagination a, .pagination span { display: inline-block; padding: .4rem .75rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--navy); background: #fff; }
.pagination a:hover { border-color: var(--teal-dark); text-decoration: none; }
.pagination a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination a.disabled { opacity: .45; pointer-events: none; }
.pagination span.title { border: 0; background: transparent; color: var(--muted); }

/* ---- Cart ---------------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--sp-6); align-items: start; }
@media (max-width: 960px) { .cart-layout { grid-template-columns: minmax(0, 1fr); } }
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: var(--fs-sm); }
.cart-table th { text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .75rem 1rem; background: var(--panel); border-bottom: 1px solid var(--border); font-weight: 600; }
.cart-table td { padding: 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: 0; }
.cart-table .num { text-align: right; white-space: nowrap; }
.cart-table__name a { font-weight: 600; color: var(--navy); }
.cart-table__name small { display: block; color: var(--muted); }
.cart-table input.cart-qty { width: 4.5rem; padding: .5rem .6rem; font: inherit; border: 1.5px solid #8a9ba5; border-radius: var(--radius-sm); text-align: center; }
.cart-remove { font-size: var(--fs-xs); color: #8a2e2e; }
@media (max-width: 640px) {
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--border); }
  .cart-table td { padding: 0; border: 0; }
  .cart-table .cart-table__name { grid-column: 1 / -1; }
}
.summary-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-6); box-shadow: var(--shadow-sm); }
.summary-card h2 { font-size: var(--fs-h3); }
.summary-card .field { margin-bottom: var(--sp-4); }
.summary-card .checkbox { margin-bottom: var(--sp-4); }
table.total { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin: var(--sp-4) 0; }
table.total td { padding: .45rem 0; vertical-align: top; }
table.total td:last-child { text-align: right; font-weight: 600; color: var(--navy); white-space: nowrap; padding-left: var(--sp-4); }
table.total tr.grand td { border-top: 1px solid var(--border); padding-top: .7rem; font-size: var(--fs-body); font-weight: 700; color: var(--navy); }
table.total .ship-note td, table.total .note td { font-size: var(--fs-xs); color: var(--muted); font-weight: 400; text-align: left; padding-top: 0; white-space: normal; padding-left: 0; }
.summary-card .btn-row .btn { flex: 1; justify-content: center; }
.empty-state { text-align: center; padding: var(--sp-8) var(--sp-5); background: var(--panel); border-radius: var(--radius); }
.empty-state p { margin-inline: auto; }

/* ---- Account ---------------------------------------------------------------- */
.auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); align-items: start; }
@media (max-width: 820px) { .auth-grid { grid-template-columns: minmax(0, 1fr); } }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-6); box-shadow: var(--shadow-sm); }
.auth-card h2 { font-size: var(--fs-h3); }
.auth-card .btn { width: 100%; justify-content: center; }
.guest-card { background: var(--teal-tint); border-color: #cfe1e4; }
.order-history { display: grid; gap: var(--sp-4); }
.order-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.order-card__head { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); justify-content: space-between; padding: var(--sp-4) var(--sp-5); background: var(--panel); border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.order-card__head strong { color: var(--navy); }
.order-card table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.order-card td { padding: .6rem var(--sp-5); border-bottom: 1px solid var(--border); }
.order-card tr:last-child td { border-bottom: 0; }
.order-card td.num { text-align: right; white-space: nowrap; }

/* ---- Old templates shown inside the new layout (the Stripe checkout page) ---- */
.legacy { max-width: var(--maxw); margin-inline: auto; padding: var(--sp-6) var(--sp-5) var(--sp-8); }
.legacy h1 { font-size: var(--fs-h1); }
.legacy h2, .legacy h3 { color: var(--navy); }
.legacy section.cart > h1, .legacy section > h1 { margin-bottom: var(--sp-5); }
.legacy table { border-collapse: collapse; }
.legacy table.cart, .legacy .cart > table:first-of-type { width: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); font-size: var(--fs-sm); margin-bottom: var(--sp-5); }
.legacy table.cart th, .legacy .cart > table:first-of-type th { text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--panel); padding: .7rem 1rem; border-bottom: 1px solid var(--border); }
.legacy table.cart td, .legacy .cart > table:first-of-type td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
.legacy .sku { color: var(--muted); font-size: var(--fs-xs); }
.legacy .total table { margin-left: auto; font-size: var(--fs-sm); }
.legacy .total td { padding: .3rem 0 .3rem var(--sp-5); text-align: right; }
.legacy .total td:last-child { font-weight: 700; color: var(--navy); }
.legacy .border { border-top: 1px solid var(--border); margin: .3rem 0; }
.legacy .form, .legacy form > .address, .legacy .address { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); margin-bottom: var(--sp-5); }
.legacy .row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: .3rem var(--sp-4); align-items: center; margin-bottom: var(--sp-3); }
@media (max-width: 640px) { .legacy .row { grid-template-columns: minmax(0, 1fr); } }
.legacy .row > label, .legacy label { font-weight: 600; font-size: var(--fs-sm); color: var(--navy); }
.legacy input[type=text], .legacy input[type=email], .legacy input[type=password], .legacy input[type=tel], .legacy input:not([type]), .legacy select, .legacy textarea {
  width: 100%; max-width: 460px; font: inherit; font-size: var(--fs-sm); color: var(--ink); padding: .6rem .75rem; border: 1.5px solid #8a9ba5; border-radius: var(--radius-sm); background: #fff; }
.legacy input[type=file] { font-size: var(--fs-sm); }
/* Checkout, signed in: order.js's saved-address picker and its "Enter different ... address" link */
.legacy .dd { position: relative; padding: var(--sp-4) 2.75rem var(--sp-4) var(--sp-4); background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.legacy .dd::after { content: ""; position: absolute; right: 1rem; top: 50%; margin-top: -3px; border: 6px solid transparent; border-top-color: var(--teal-dark); border-bottom: 0; }
.legacy .dd .dropdown { display: none; position: absolute; z-index: 20; top: 100%; left: -1px; right: -1px; margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-md); }
.legacy .dd.active .dropdown { display: block; }
.legacy .dd .dropdown li { padding: .6rem var(--sp-4); border-top: 1px solid var(--border); }
.legacy .dd .dropdown li:hover { background: var(--panel); color: var(--teal-dark); }
.legacy .diff { display: inline-block; margin: var(--sp-2) 0 var(--sp-3); color: var(--teal-dark); text-decoration: underline; cursor: pointer; font-size: var(--fs-sm); }
/* purchase-order file: "Delete" only once a file is chosen (order.js shows it), next to a box wide enough for the file name */
.legacy .reset-file { display: none; font-size: var(--fs-sm); color: var(--teal-dark); text-decoration: underline; cursor: pointer; }
.legacy .row:has(> input[type=file]) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); }
.legacy .row > input[type=file] { flex: 0 1 460px; min-width: 0; }
.legacy input[type=radio], .legacy input[type=checkbox] { accent-color: var(--teal-dark); width: 1.05rem; height: 1.05rem; vertical-align: -2px; margin-right: .35rem; }
.legacy input[type=submit], .legacy button, .legacy .cmd, .legacy a.cmd {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 600; font-size: var(--fs-sm);
  padding: .8rem 1.4rem; border-radius: var(--radius-sm); cursor: pointer; border: 1.5px solid var(--teal-dark); background: var(--teal-dark); color: #fff; text-decoration: none; }
.legacy input[type=submit]:hover, .legacy button:hover, .legacy .cmd:hover { background: var(--teal-darker); border-color: var(--teal-darker); text-decoration: none; }
.legacy .buttons { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.legacy p.alert, .legacy .alert, .legacy .message { border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-5); font-size: var(--fs-sm); border: 1px solid #e8b872; background: #fff7e8; color: #6b4a12; }
.legacy p.alert:empty { display: none; }
.legacy .clearfix { clear: both; }
.legacy .payment, .legacy .payment-method, .legacy fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); margin: 0 0 var(--sp-5); background: #fff; }
.legacy legend { font-weight: 700; color: var(--navy); padding: 0 .4rem; }

/* ---- Small helpers ---------------------------------------------------------------- */
.lead-in { font-size: var(--fs-sm); color: var(--muted); }
.price-note { font-size: var(--fs-xs); color: var(--muted); }
.icon-bullet { display: inline-flex; gap: .45rem; align-items: center; }
.section-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.section-intro h2 { margin: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: var(--sp-3); }
.svc-admin-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-3); }
.svc-admin-list li { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--sp-4); font-weight: 600; color: var(--navy); font-size: var(--fs-sm); }
.svc-admin-list li span { display: block; font-weight: 400; color: var(--muted); margin-top: .25rem; }
.input[type=file], .form-file { padding: .45rem; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; font-size: var(--fs-sm); color: var(--navy); background: #fff; border: 1.5px solid #8a9ba5; border-radius: var(--radius-sm); padding: .45rem .9rem; margin-right: .8rem; cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--teal-dark); color: var(--teal-dark); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.site-footer .h-footer { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--sp-3); }
#main:focus { outline: none; }
.fieldset-plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.product-card__cat { text-transform: none; letter-spacing: .02em; }
.legacy ul:has(input[type=radio]), .legacy ol:has(input[type=radio]) { list-style: none; padding-left: 0; }
.legacy li:has(> input[type=radio]) { margin: .4rem 0; }
.checkout-head { background: var(--panel); border-bottom: 1px solid var(--border); }
.checkout-head .container { padding-block: var(--sp-5); }
.checkout-head h1 { margin: 0; font-size: var(--fs-h2); }
.checkout-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0 0 .35rem; padding: 0; font-size: var(--fs-xs); color: var(--muted); }
.checkout-steps li { margin: 0; }
.checkout-steps li[aria-current] { color: var(--navy); font-weight: 700; }
.legacy .section.legacy-order { padding-top: 0; }
/* long sequences, URLs and admin tables never push the page sideways */
.prose, .legacy, .review__text, .news-item, .order-card { overflow-wrap: anywhere; }
.legacy td { overflow-wrap: normal; }
.legacy table.cart td:first-child { white-space: nowrap; }  /* the SKU column: "6001-5000-CF" stays whole */
.prose table { max-width: 100%; }
.prose caption { caption-side: top; text-align: left; font-weight: 700; color: var(--navy); padding: 0 0 .6rem; overflow-wrap: normal; font-size: var(--fs-body); }
.prose th[scope="row"], .prose tr > td:first-child, .prose th { overflow-wrap: normal; word-break: normal; hyphens: auto; }
.prose .spec-table th[scope="row"] { width: 34%; color: var(--muted); font-weight: 500; }
.prose .spec-table { border: 1px solid var(--border); }
.prose .panel { margin: var(--sp-5) 0; }
.prose .product-intro { font-size: 1.08rem; color: var(--ink); }
@media (max-width: 640px) {
  .legacy table { display: block; overflow-x: auto; max-width: 100%; }
  .legacy .total table { display: table; }
  .legacy input[type=file] { max-width: 100%; }
}
/* /order on phones: each item as a card, so quantity and amount stay in view */
@media (max-width: 640px) {
  .legacy .cart > table.cart { display: block; overflow: visible; }
  .legacy .cart > table.cart tbody { display: block; }
  .legacy .cart > table.cart tr:first-child { display: none; }
  .legacy .cart > table.cart tr { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: .2rem .6rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
  .legacy .cart > table.cart tr:last-child { border-bottom: 0; }
  .legacy .cart > table.cart td { padding: 0; border: 0; }
  .legacy .cart > table.cart td:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .legacy .cart > table.cart td:nth-child(1) { grid-column: 1 / -1; grid-row: 2; white-space: normal; color: var(--muted); font-size: var(--fs-xs); }
  .legacy .cart > table.cart td:nth-child(3) { grid-row: 3; grid-column: 1; white-space: nowrap; }
  .legacy .cart > table.cart td:nth-child(4) { grid-row: 3; grid-column: 2; white-space: nowrap; }
  .legacy .cart > table.cart td:nth-child(4)::before { content: "\00d7\00a0"; color: var(--muted); }
  .legacy .cart > table.cart td:nth-child(5) { grid-row: 3; grid-column: 3; justify-self: end; white-space: nowrap; font-weight: 600; }
}
.legacy th { overflow-wrap: normal; white-space: nowrap; }
@media (max-width: 560px) {
  .prose .spec-table, .prose .spec-table tbody, .prose .spec-table tr, .prose .spec-table th, .prose .spec-table td { display: block; width: auto !important; }
  .prose .spec-table tr { padding: .5rem .75rem; border-bottom: 1px solid var(--border); }
  .prose .spec-table th, .prose .spec-table td { padding: 0; border: 0; }
  .prose .spec-table th[scope="row"] { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; }
}

/* My account, order history on phones: the name on its own line, then "qty x price" and the amount */
@media (max-width: 600px) {
  .order-card table, .order-card tbody { display: block; }
  .order-card tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem var(--sp-3); padding: .6rem var(--sp-5); border-bottom: 1px solid var(--border); }
  .order-card tr:last-child { border-bottom: 0; }
  .order-card td { display: block; min-width: 0; padding: 0; border: 0; }
  .order-card td:first-child { flex: 1 1 auto; }
  .order-card td:empty { display: none; }
  .order-card td.num:last-child { margin-left: auto; }
}
/* a long sign-in email in the My account / Change password headers wraps */
.page-header .lede { overflow-wrap: break-word; }
/* Signed in on phones: the phone number on one row, My account | Sign out | Cart on the next */
.utility-bar__inner { flex-wrap: wrap; row-gap: .2rem; }
.utility-bar a { white-space: nowrap; }
.utility-bar__account { margin-left: auto; }
/* product page: sizes listed under their form ("Frozen · ships on dry ice") */
.size-group__title { margin: var(--sp-4) 0 var(--sp-2); font-weight: 700; color: var(--navy); font-size: var(--fs-sm); }
.size-group__title:first-of-type { margin-top: 0; }
.size-group__note { font-weight: 400; color: var(--muted); }

/* Row headers in a description's spec table look the same with or without scope="row" (a product's Comment field
   is size-limited, so the longest text drops the attribute). */
.spec-table tbody th { color: var(--muted); font-weight: 500; width: 42%; }
.prose .spec-table tbody th { width: 34%; overflow-wrap: normal; word-break: normal; hyphens: auto; }

/* Menu button: hamburger when closed, a cross when open (aria-expanded is kept in step by site.js). */
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
.nav-toggle:focus-visible { outline: 3px solid var(--focus, #7cc4ff); outline-offset: 2px; }

/* ---- Homepage (brief, 2026-10-31) -------------------------------------------------------------- */
/* Compact hero: one column, no side panel. */
.hero--compact .hero__inner { grid-template-columns: 1fr; padding-block: var(--sp-7); }
.hero--compact h1 { font-size: var(--fs-h1); max-width: none; }
.hero--compact .hero__sub { max-width: 58ch; }
.hero--compact .btn-row { margin-bottom: 0; }
/* Home: publications line under the hero buttons */
.hero__proof { margin: var(--sp-5) 0 0; color: #b9cad3; font-size: var(--fs-sm); max-width: 58ch; }
.hero__proof em { color: #e7eef2; }
.hero__proof a { color: #6fd0d0; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
/* Product page: published studies that used the product */
.pub-list { list-style: none; padding: 0; margin: 0; max-width: 860px; }
.pub-list li { padding: var(--sp-4) 0; border-bottom: 1px solid var(--border); }
.pub-list li:last-child { border-bottom: 0; }
.pub-list a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pub-list__src { display: block; color: var(--muted); font-size: var(--fs-sm); margin-top: .2rem; }
/* Service cards: what you send / what you receive, then the service page and a preselected quote link. */
.svc-card__list li span strong { color: var(--navy); font-weight: 600; }
.svc-card__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; margin: auto 0 0; padding-top: var(--sp-2); }
.svc-card__links .svc-card__learn { margin-top: 0; }
.svc-card__quote { font-weight: 600; color: var(--teal-darker); }
.svc-card__quote:hover { text-decoration: underline; }
/* A short numbered sequence (not cards): how a project starts. */
.steps-plain { list-style: none; counter-reset: step; margin: 0 auto; padding: 0; max-width: 60rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.steps-plain li { counter-increment: step; position: relative; padding-left: 2.6rem; color: var(--ink); }
.steps-plain li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-size: .95rem; display: grid; place-items: center; }
.steps-plain strong { display: block; color: var(--navy); margin-bottom: .2rem; }
@media (max-width: 760px) { .steps-plain { grid-template-columns: 1fr; gap: var(--sp-4); } }

/* ---- Quote form: optional details, collapsed; fields that don't apply to the chosen type are hidden ------ */
.more-details { border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 var(--sp-5); padding: 0 var(--sp-4); background: #fff; }
.more-details > summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: var(--sp-3) 0; list-style-position: inside; }
.more-details > summary:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 2px; border-radius: 4px; }
.more-details[open] > summary { margin-bottom: var(--sp-2); }
.more-details .fieldset-hint { margin-top: 0; }
.field-grid--wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-4); padding-bottom: var(--sp-3); }
.field-grid--wrap > .field[hidden] { display: none; }
@media (max-width: 640px) { .field-grid--wrap { grid-template-columns: 1fr; } }

/* Product page: the order panel comes first in the page (so phones get name, size, price and Add to cart before the
   large figure, in reading and focus order); on wider screens the figure sits on the left as before. */
@media (min-width: 901px) {
  .product-top > .product-top__figure { grid-column: 1; grid-row: 1; }
  .product-top > .order-panel { grid-column: 2; grid-row: 1; }
}


/* /services: additions for the service cards and the Additional services list (Views/New/Services/Index.cshtml). */

/* Text link under each main-service card's outline button (preselected quote type). */
.path-card .svc2-quote { display: inline-block; margin-top: var(--sp-3); font-size: var(--fs-sm); font-weight: 600; }

/* Additional services: one bordered block (.case) with rows separated by a rule. */
.svc2-item { display: grid; gap: var(--sp-3); }
.svc2-item + .svc2-item { border-top: 1px solid var(--border); padding-top: var(--sp-5); }
.svc2-item h3 { margin: 0; font-size: var(--fs-h3); color: var(--navy); }
.svc2-item dl { display: grid; gap: var(--sp-2); }
.svc2-links { display: flex; flex-wrap: wrap; gap: .4rem var(--sp-5); margin: 0; font-size: var(--fs-sm); font-weight: 600; }
@media (max-width: 560px) { .svc2-item dl { gap: var(--sp-3); } }


/* ==========================================================================
   Assay example section + assay-expertise page (brief section 6)
   Used by: Views/New/Shared/_AssayExample.cshtml (homepage, /bioactivity-testing)
            Views/New/Pages/assay-expertise.cshtml
   Depends on tokens in site.css (:root). All classes prefixed assay-.
   ========================================================================== */

/* ---- Section head: left-aligned, unlike the centered .section-head ------ */
.assay-example__head { max-width: 760px; margin-bottom: var(--sp-6); }
.assay-example__head h2 { margin-bottom: var(--sp-3); }
.assay-example__head p { margin-bottom: 0; }

/* ---- Main layout: short explanation column + large figure ---------------- */
.assay-example__layout {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
}
.assay-example__text h3 { color: var(--navy); margin: 0 0 var(--sp-4); }
.assay-example__more { margin: var(--sp-4) 0 0; font-size: var(--fs-sm); font-weight: 600; }

/* explanation column: sample / assay system / response / conclusion */
.assay-points { margin: 0; }
.assay-points dt { font-weight: 600; color: var(--navy); font-size: var(--fs-sm); margin: 0; }
.assay-points dd { margin: .15rem 0 var(--sp-4); font-size: var(--fs-sm); line-height: 1.55; color: var(--ink); }
.assay-points dd:last-of-type { margin-bottom: 0; }

/* ---- Figure: unaltered image on white, ordinary caption ------------------ */
.assay-fig { margin: 0; min-width: 0; }
.assay-fig__link {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.assay-fig__link:hover { border-color: var(--teal-dark); box-shadow: var(--shadow-md); }
.assay-fig__link:focus-visible,
.assay-fig__caption a:focus-visible,
.assay-example__more a:focus-visible,
.assay-followon a:focus-visible,
.assay-matrix a:focus-visible,
.assay-feature a:focus-visible {
  outline: 3px solid var(--teal-darker);
  outline-offset: 3px;
  box-shadow: none;
  border-radius: var(--radius-sm);
}
.assay-fig__img { display: block; width: 100%; height: auto; max-width: 100%; }

.assay-fig__caption { margin-top: var(--sp-4); font-size: var(--fs-sm); line-height: 1.55; color: var(--ink); }
.assay-fig__caption p { max-width: none; margin: 0 0 var(--sp-3); }
.assay-fig__open { font-weight: 600; }
.assay-fig__open a::after { content: " \2197"; }   /* north-east arrow: opens in a new tab */

/* compact description list beneath the figure */
.assay-details {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: .35rem var(--sp-4);
  margin: 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  line-height: 1.5;
}
.assay-details dt { font-weight: 600; color: var(--navy); }
.assay-details dd { margin: 0; color: var(--ink); }

/* ---- Secondary enzyme example: compact follow-on row --------------------- */
.assay-followon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--sp-6);
  align-items: start;
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-strong);
}
.assay-followon__text h3 { color: var(--navy); font-size: var(--fs-body); margin: 0 0 var(--sp-3); }
.assay-followon__text p { font-size: var(--fs-sm); }
.assay-followon__text p:last-child { margin-bottom: 0; }
.assay-fig--small .assay-fig__caption { font-size: var(--fs-xs); }

/* ---- Assay-expertise: featured example (thumbnail + text) ---------------- */
.assay-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: center;
}
.assay-feature h2 { margin-bottom: var(--sp-3); }

/* ---- Assay-expertise: capability matrix ---------------------------------- */
.assay-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.assay-matrix th, .assay-matrix td {
  text-align: left;
  vertical-align: top;
  padding: .75rem .9rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.assay-matrix thead th {
  background: var(--panel);
  color: var(--navy);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.assay-matrix tbody th { color: var(--navy); font-weight: 600; width: 28%; }
.assay-matrix td:nth-child(2) { width: 32%; color: var(--ink); }
.assay-matrix__none { color: var(--muted); font-style: italic; }

/* ---- Assay-expertise: definition list of reported values ----------------- */
.assay-terms {
  display: grid;
  grid-template-columns: minmax(9rem, max-content) minmax(0, 1fr);
  gap: 0 var(--sp-5);
  margin: var(--sp-5) 0 0;
  border-top: 1px solid var(--border);
}
.assay-terms dt, .assay-terms dd { padding: .7rem 0; border-bottom: 1px solid var(--border); margin: 0; }
.assay-terms dt { font-weight: 600; color: var(--navy); }
.assay-terms dd { color: var(--ink); font-size: var(--fs-sm); line-height: 1.55; }

/* ---- Tablet: stack the figure under the explanation ---------------------- */
@media (max-width: 960px) {
  .assay-example__layout { grid-template-columns: minmax(0, 1fr); }
  .assay-example__text { max-width: var(--maxw-text); }
  .assay-feature { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .assay-followon { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
}

/* ---- Phone (390 px): single column, table rows become labelled blocks ---- */
@media (max-width: 620px) {
  .assay-fig__link { padding: var(--sp-2); }
  .assay-details { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .assay-details dt { margin-top: var(--sp-2); }
  .assay-details dt:first-child { margin-top: 0; }
  .assay-details dd { overflow-wrap: anywhere; }

  .assay-terms { grid-template-columns: minmax(0, 1fr); }
  .assay-terms dt { border-bottom: 0; padding-bottom: 0; }
  .assay-terms dd { padding-top: .2rem; }

  .assay-matrix, .assay-matrix tbody, .assay-matrix tr, .assay-matrix th, .assay-matrix td { display: block; width: auto; }
  .assay-matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .assay-matrix { border: 0; background: transparent; }
  .assay-matrix tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: var(--sp-3); }
  .assay-matrix tbody th { width: auto; border-bottom: 0; padding-bottom: .2rem; }
  .assay-matrix td { border-bottom: 0; padding-top: .2rem; }
  .assay-matrix td:nth-child(2) { width: auto; }
  .assay-matrix td::before {
    content: attr(data-label);
    display: block;
    font-size: var(--fs-xs);
    font-weight: 600;
    font-style: normal;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
  }
}


/* ---- Data from our products: four small product figures (Shared/_AssayExample.cshtml) ---- */
.fig-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
.fig-strip__item { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: var(--sp-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.fig-strip__item:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.fig-strip__item:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.fig-strip__img { display: block; aspect-ratio: 2 / 1; margin-bottom: var(--sp-2); background: #fff; }
.fig-strip__img img { width: 100%; height: 100%; object-fit: contain; }
.fig-strip__name { font-weight: 600; color: var(--navy); line-height: 1.3; }
.fig-strip__assay { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 960px) { .fig-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .fig-strip { gap: var(--sp-3); } }

/* ---- Primary cell culture establishment (2026-11-03) ---- */
.page-header .lede + .lede { margin-top: calc(-1 * var(--sp-2)); }
.culture-home__lede { font-size: 1.15rem; color: var(--navy); font-weight: 500; }
.culture-home__panel { background: var(--surface); border-color: #cfe1e4; }
.cat-section__note { margin: var(--sp-5) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.cat-section__note a { font-weight: 600; }
.h-small { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.culture-figure { margin: 0; }
.culture-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: #111; }
.culture-figure figcaption { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.culture-figure--large { max-width: 1040px; margin-inline: auto; }
.culture-series__h { font-size: var(--fs-h2); margin: 0 0 var(--sp-2); }
.culture-example__h { font-size: var(--fs-h3); margin: var(--sp-5) 0 var(--sp-3); color: var(--navy); }
.culture-series { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-4); }
.culture-series figure { margin: 0; }
.culture-series img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.culture-series figcaption { margin-top: .35rem; font-size: var(--fs-sm); color: var(--ink); font-weight: 600; }

/* Services page: four service cards in one row (2026-11-04); "Learn more" buttons keep them on one line */
.grid-4 > .path-card { padding: var(--sp-5); }
/* Services page: additional services as two side-by-side cards, aligned with the service cards above */
.svc2-grid > .case { display: flex; flex-direction: column; }
.svc2-grid .case__body { flex: 1; align-content: start; grid-template-rows: auto auto 1fr; }
.svc2-grid .svc2-links { align-self: end; }
.svc2-grid .case__row { grid-template-columns: 110px 1fr; }
@media (max-width: 560px) { .svc2-grid .case__row { grid-template-columns: 1fr; } }
/* An odd last item in the additional-services grid takes the full row instead of leaving a gap. */
.svc2-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
