/* Custom Drains — site styles.
   Tokens and components are lifted from the claude.ai design (*.dc.html); see CLAUDE.md. */

/* Self-hosted variable fonts (Latin subset, SIL OFL), preloaded in partials/head.php */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-bold-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: oklch(0.21 0.02 260);
  --ink-deep: oklch(0.17 0.015 260);
  --bg: oklch(0.97 0.003 250);
  --white: #fff;
  --text-2: oklch(0.4 0.015 260);
  --muted: oklch(0.45 0.015 260);
  --muted-2: oklch(0.55 0.01 260);
  --line: oklch(0.9 0.005 260);
  --line-soft: oklch(0.93 0.004 260);
  --line-mid: oklch(0.88 0.005 260);
  --line-strong: oklch(0.85 0.005 260);
  --accent: oklch(0.45 0.16 262);
  --accent-press: oklch(0.38 0.15 262);
  --accent-ink: oklch(0.32 0.12 262);
  --accent-tint: oklch(0.96 0.02 262);
  --accent-soft-text: oklch(0.93 0.03 262);
  --accent-outline: oklch(0.7 0.1 262);
  --orange: oklch(0.72 0.16 55);
  --chip: oklch(0.93 0.006 260);
  --on-dark: oklch(0.82 0.008 260);
  --on-dark-2: oklch(0.85 0.008 260);
  --on-dark-muted: oklch(0.78 0.01 260);
  --dark-line: oklch(0.35 0.02 260);
  --success-bg: oklch(0.95 0.04 150);
  --success: oklch(0.3 0.09 150);
  --success-2: oklch(0.33 0.09 150);
  --error-bg: oklch(0.95 0.04 25);
  --error: oklch(0.42 0.14 25);

  --font: 'Schibsted Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1280px;
  --r: 8px;
  --r-sm: 6px;
  --r-lg: 12px;
  --pad-xl: clamp(56px, 8vw, 112px);
  --pad-lg: clamp(56px, 8vw, 104px);
  --pad-md: clamp(48px, 7vw, 88px);
  --header-h: 72px;
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }
input, select, textarea, button { font: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 920px; }
.section { padding-block: var(--pad-lg); }
.section--xl { padding-block: var(--pad-xl); }
.section--md { padding-block: var(--pad-md); }
.section--flush-top { padding-top: 0; }
.band { background: var(--white); border-block: 1px solid var(--line); }
.band--top { border-bottom: 0; }
.band-dark { background: var(--ink); color: #fff; }

/* ───────── Type ───────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.eyebrow--sm { font-size: 11.5px; margin-bottom: 8px; }
.eyebrow--light { color: var(--on-dark-muted); }
.eyebrow--orange { color: var(--orange); }
.eyebrow--green { color: var(--success-2); }
.mono { font-family: var(--mono); }

.h-display { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
.h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
.h1--xl { font-size: clamp(36px, 5.6vw, 72px); }
.h1--lg { font-size: clamp(36px, 5vw, 64px); }
.h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.h2--sm { font-size: clamp(28px, 3.4vw, 40px); }
.h2--split { font-size: clamp(28px, 3.6vw, 44px); }
.h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; font-weight: 700; line-height: 1.1; }
.h4 { font-size: 22px; font-weight: 700; line-height: 1.25; }
.lead { font-size: 18px; color: var(--text-2); text-wrap: pretty; }
.lead--lg { font-size: clamp(17px, 1.6vw, 20px); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.text-link { font-weight: 600; }

.stack-sm > * + * { margin-top: 8px; }
.stack > * + * { margin-top: 16px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: 14px; }
.mb { margin-bottom: 20px; }
.mb-md { margin-bottom: 28px; }
.mb-lg { margin-bottom: 36px; }
.mt { margin-top: 24px; }
.mt-lg { margin-top: 32px; }
.maxw-sm { max-width: 540px; }
.maxw { max-width: 640px; }
.maxw-md { max-width: 720px; }
.maxw-lg { max-width: 860px; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 13px 24px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 16px; line-height: 1.3; border: 1px solid transparent;
  cursor: pointer; text-align: center; transition: background-color .15s, border-color .15s, color .15s;
}
.btn--sm { min-height: 0; padding: 11px 18px; font-size: 15px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-press); color: #fff; }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); font-weight: 700; }
.btn--white:hover { background: var(--bg); color: var(--ink); }
.btn--white-accent { background: #fff; color: oklch(0.3 0.12 262); font-weight: 700; }
.btn--white-accent:hover { background: var(--accent-tint); color: oklch(0.3 0.12 262); }
.btn--ghost-light { color: #fff; border-color: var(--accent-outline); }
.btn--ghost-light:hover { color: #fff; border-color: #fff; }
.btn--ghost-dark { color: #fff; border-color: var(--dark-line); }
.btn--ghost-dark:hover { color: #fff; border-color: #fff; }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ───────── Header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: oklch(0.97 0.003 250 / .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 36px; height: 36px; margin-block: -4px; flex: none; }
.brand__name { font-weight: 700; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
.brand--light { color: #fff; }
.brand--light .brand__mark { width: 34px; height: 34px; }
.brand--light .brand__name { font-size: 18px; }

.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.site-nav a { color: var(--ink); }
.site-nav a:hover, .site-nav a.is-active { color: var(--accent); }
.site-nav a.is-active { font-weight: 600; }
.site-header__actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.site-header__phone { font-weight: 600; font-size: 15px; color: var(--ink); padding: 10px 14px; }

.menu-toggle {
  display: none; height: 44px; padding: 0 14px 0 16px;
  border: 1px solid var(--line-strong); background: #fff; border-radius: var(--r-sm);
  font-weight: 600; color: var(--ink); cursor: pointer; align-items: center; gap: 10px;
}
.menu-toggle__label { min-width: 44px; text-align: left; }
.menu-toggle__icon { position: relative; width: 18px; height: 12px; display: block; }
.menu-toggle__icon span {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.menu-toggle__icon span:first-child { top: 0; }
.menu-toggle__icon span:last-child { bottom: 0; }
.is-menu-open .menu-toggle__icon span:first-child { transform: translateY(5px) rotate(45deg); }
.is-menu-open .menu-toggle__icon span:last-child { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  display: none; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows .38s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .38s;
}
.mobile-menu__inner { min-height: 0; overflow: hidden; }
.mobile-menu__nav {
  display: flex; flex-direction: column; padding-top: 4px; padding-bottom: 20px;
  font-size: 18px; font-weight: 600; max-height: calc(100vh - 80px); overflow: auto;
}
.mobile-menu__nav > a {
  color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu__nav > a.is-active { color: var(--accent); }
.mobile-menu__nav > * {
  opacity: 0; transform: translateY(-8px);
  transition: opacity .28s ease, transform .36s cubic-bezier(.2, .8, .2, 1);
}
.mobile-menu__phones { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; font-size: 16px; font-weight: 500; }
.is-menu-open .mobile-menu { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.is-menu-open .mobile-menu__nav > * { opacity: 1; transform: none; transition-delay: var(--d, 0s); }

@media (max-width: 1099px) {
  .site-nav, .site-header__actions { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu { display: grid; }
}

/* ───────── Footer ───────── */
.site-footer { background: var(--ink-deep); color: var(--on-dark); font-size: 15px; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #fff; }
.site-footer__cols {
  padding-top: 64px; padding-bottom: 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px;
}
.site-footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.site-footer__tagline { font-size: 14px; max-width: 240px; }
.site-footer a.site-footer__strong { color: #fff; }
.site-footer__email { word-break: break-word; }
.site-footer__heading { color: #fff; font-weight: 600; }
.site-footer__base {
  padding-top: 20px; padding-bottom: 32px; border-top: 1px solid oklch(0.3 0.015 260);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.mobile-cta { display: none; }
@media (max-width: 859px) {
  .site-footer { padding-bottom: 72px; }
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line-mid);
    box-shadow: 0 -6px 20px oklch(0.2 0.02 260 / .08);
  }
  .mobile-cta a { display: grid; place-items: center; min-height: 48px; border-radius: var(--r-sm); font-weight: 600; }
  .site-footer .mobile-cta__call { border: 1px solid var(--line-strong); color: var(--ink); }
  .site-footer .mobile-cta__quote { background: var(--accent); color: #fff; }
}

/* ───────── Breadcrumb & page intro ───────── */
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 28px; padding: 0; list-style: none; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs li + li::before { content: '/'; margin-right: 8px; }
.crumbs [aria-current] { color: var(--ink); }
.page-intro { padding-top: 28px; padding-bottom: clamp(32px, 5vw, 56px); }
.page-intro--tight { padding-bottom: 32px; }
.page-intro--loose { padding-bottom: var(--pad-md); }
.page-intro__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.page-intro h1 { margin-bottom: 16px; }
.page-intro .lead { max-width: 720px; }
.pill-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pill-nav a {
  font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
}
.pill-nav a:hover { border-color: var(--ink); color: var(--ink); }

/* ───────── Layout helpers ───────── */
.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split--top { align-items: flex-start; }
.split--wide-gap { gap: clamp(32px, 5vw, 72px); }
.split--reverse { flex-wrap: wrap-reverse; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split > .split__media { flex-basis: 380px; }
.split > .split__media--sm { flex-basis: 360px; }
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.grid--2-tight { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid--cards-sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.grid--tiles-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1099px) { .grid--tiles-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 859px) { .grid--tiles-5 { grid-template-columns: repeat(2, 1fr); } }
.grid--pair { grid-template-columns: 1fr 1fr; gap: 12px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }

.media { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); background: var(--line-soft); }
.media--square { aspect-ratio: 1/1; }
.media--wide { aspect-ratio: 16/9; }
.media--tall { aspect-ratio: 3/4; }
.media--hero { aspect-ratio: 4/3.4; }
.media--contain { object-fit: contain; background: #fff; border: 1px solid var(--line); }
.full-bleed { width: 100%; max-height: 560px; object-fit: cover; }
.hero-media { position: relative; }
.hero-media__caption {
  position: absolute; left: 16px; bottom: 16px; background: #fff; border-radius: var(--r-sm);
  padding: 10px 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--ink);
}

/* ───────── Stat strip ───────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stats > div { padding: 22px 16px 22px 0; display: flex; flex-direction: column; gap: 2px; }
.stats strong { font-weight: 700; font-size: 18px; }
.stats span { font-size: 14px; color: var(--muted); }

/* ───────── Chips (filters) ───────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 14px; font-weight: 600; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip.is-on, .chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ───────── Product cards ───────── */
.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; color: var(--ink); transition: border-color .15s;
}
a.card:hover { border-color: var(--accent); color: var(--ink); }
.card__media { aspect-ratio: 4/3; display: grid; place-items: center; padding: 20px; background: #fff; }
.card__media--square { aspect-ratio: 1/1; padding: 24px; }
.card__media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card__body { padding: 16px 18px 18px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__body--sm { padding: 14px 16px 16px; gap: 4px; }
.card__title { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-weight: 700; font-size: 18px; line-height: 1.3; }
.card__title--sm { font-size: 17px; }
.card__title .arrow { color: var(--accent); font-weight: 400; }
.card__desc { font-size: 14px; color: var(--muted); text-wrap: pretty; }
.card__tag { margin-top: auto; padding-top: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em; color: var(--ink); }
.card__tag--muted { color: oklch(0.35 0.015 260); padding-top: 10px; }
.card[hidden] { display: none; }

/* Tile (cover options etc.) */
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.tile img { width: 100%; aspect-ratio: 1/1; object-fit: contain; }
.tile__name { font-weight: 700; }
.tile__sub { font-size: 13.5px; color: var(--muted); }
.tile--lg { padding: 20px; gap: 12px; }
.tile--lg img { aspect-ratio: 4/3; }
.tile--lg .tile__name { font-size: 18px; }
.tile--lg .tile__sub { font-size: 14px; }
a.tile { color: var(--ink); }
a.tile:hover { border-color: var(--accent); color: var(--ink); }

/* Feature boxes (two-up on home) */
.feature-box { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; background: var(--bg); border-radius: var(--r); padding: 28px; }
.feature-box img { width: 160px; height: 160px; object-fit: contain; mix-blend-mode: multiply; }
.feature-box > div { flex: 1 1 200px; }
.feature-box__title { font-weight: 700; font-size: 22px; margin-bottom: 6px; }
.feature-box__meta { font-family: var(--mono); font-size: 13px; margin-bottom: 14px; }

/* Industry columns */
.ind-col { display: flex; flex-direction: column; gap: 16px; }
.ind-col__title { font-weight: 700; font-size: 22px; }
.rule-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-mid); margin: 0; padding: 0; list-style: none; }
.rule-list > * { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rule-list a { font-weight: 600; }
.rule-list--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 24px; font-size: 15px; border-top-color: var(--line); }

/* Numbered points on dark */
.points { display: flex; flex-direction: column; }
.points > div { display: flex; gap: 20px; padding: 18px 0; border-top: 1px solid var(--dark-line); }
.points > div:last-child { border-bottom: 1px solid var(--dark-line); }
.points .num { font-family: var(--mono); color: var(--orange); }
.points strong { display: block; font-weight: 600; font-size: 18px; }
.points span:not(.num) { color: oklch(0.8 0.008 260); font-size: 15px; }

/* Key/value rows */
.kv { display: flex; flex-direction: column; border-top: 1px solid var(--line); font-size: 15px; margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv dt, .kv .k { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; text-align: right; }
.kv--loose > div { padding: 12px 0; }
.kv--strong-line, .kv--strong-line > div { border-color: var(--line-mid); }
.kv--plain dt { color: var(--ink); }
.kv--plain dd { font-family: var(--mono); font-size: 13px; font-weight: 400; }
.spec-table { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin: 0; }
.spec-table > div { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 1.4fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; font-weight: 500; }

/* Bordered system cards (trench) */
.sys-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.sys-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.sys-card__body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.sys-card__title { font-weight: 700; font-size: 26px; letter-spacing: -.01em; line-height: 1.2; }
.sys-card__body > p { color: var(--text-2); }
.sys-card__body > a:last-child { margin-top: auto; font-weight: 600; }

.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.info-card__big { font-weight: 700; font-size: 28px; margin-bottom: 6px; line-height: 1.2; }
.info-card__title { font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.info-card p, .info-card__text { color: var(--text-2); font-size: 15px; }
.info-card--dark { background: transparent; border-color: var(--dark-line); }
.info-card--dark p, .info-card--dark .info-card__text { color: var(--on-dark); }

/* Downloads */
.doc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.doc-list--stack { grid-template-columns: 1fr; }
.doc {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); background: #fff;
  transition: border-color .15s;
}
.doc:hover { border-color: var(--accent); color: var(--ink); }
.doc__name { font-weight: 600; display: block; }
.doc__type { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.doc__cta { font-family: var(--mono); font-size: 12px; color: var(--accent); white-space: nowrap; }
.doc__cta--text { font-family: var(--font); font-size: 16px; font-weight: 600; }

/* CTA panels */
.cta-panel {
  border-radius: var(--r-lg); padding: clamp(32px, 5vw, 64px);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px;
}
.cta-panel > div:first-child { flex: 1 1 420px; }
.cta-panel h2 { margin-bottom: 14px; }
.cta-panel p { font-size: 18px; max-width: 560px; }
.cta-panel--blue { background: var(--accent); color: #fff; }
.cta-panel--blue p { color: var(--accent-soft-text); }
.cta-panel--dark { background: var(--ink); color: #fff; }
.cta-panel--dark p { color: var(--on-dark-2); }
.cta-bar {
  background: var(--ink); color: #fff; border-radius: var(--r); padding: 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
}
.cta-bar strong { display: block; font-weight: 700; font-size: 20px; }
.cta-bar span { color: var(--on-dark); }

.guide-link {
  display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 20px; color: var(--ink); min-width: 260px;
}
.guide-link:hover { border-color: var(--accent); color: var(--ink); }
.guide-link span:first-child { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--muted); }
.guide-link span:last-child { font-weight: 600; }

/* ───────── Floor drains listing ───────── */
.catalog { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.catalog__filters { flex: 0 1 250px; min-width: 220px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 96px; }
.catalog__results { flex: 1 1 520px; min-width: 0; }
.catalog__bar { display: none; width: 100%; justify-content: space-between; align-items: center; gap: 12px; }
.catalog__count { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.filter-group__label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 40px; cursor: pointer; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.check span:nth-of-type(1) { flex: 1; }
.check .count { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.link-btn { align-self: flex-start; font-size: 14px; font-weight: 600; background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; }
.empty-state { background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 40px; text-align: center; color: var(--muted); }
.empty-state[hidden] { display: none; }
@media (max-width: 1099px) {
  .catalog__bar { display: flex; }
  .catalog__filters { position: static; flex-basis: 100%; }
  .js .catalog__filters:not(.is-open) { display: none; }
  .catalog__results .catalog__count { display: none; }
}

/* ───────── Product detail ───────── */
.pd { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); align-items: flex-start; padding-top: 24px; padding-bottom: var(--pad-md); }
.pd > * { flex: 1 1 440px; min-width: 0; }
.pd__gallery { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 96px; }
.pd__main { background: #fff; border: 1px solid var(--line); border-radius: var(--r); aspect-ratio: 1/1; display: grid; place-items: center; padding: clamp(24px, 5vw, 64px); }
.pd__main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pd__thumb { aspect-ratio: 1/1; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 8px; cursor: pointer; display: grid; place-items: center; }
.pd__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd__thumb[aria-pressed="true"] { border-color: var(--accent); }
.pd h1 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.05; letter-spacing: -.025em; font-weight: 700; margin-bottom: 14px; text-wrap: balance; }
.pd__lead { font-size: 17px; color: var(--text-2); margin-bottom: 28px; text-wrap: pretty; }
.cfg { display: flex; flex-direction: column; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.cfg fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cfg__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cfg__head legend, .cfg__label { font-weight: 600; padding: 0; float: left; }
.cfg__value { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; clear: both; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span {
  display: inline-flex; align-items: center; font-size: 14.5px; font-weight: 600; min-height: 44px; padding: 8px 16px;
  border-radius: var(--r-sm); border: 1.5px solid var(--line-mid); background: #fff; color: var(--ink); cursor: pointer;
}
.opt input:checked + span { border-color: var(--accent); background: var(--accent-tint); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cover-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; clear: both; }
.cover-opt { position: relative; }
.cover-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cover-opt span {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px;
  border-radius: var(--r-sm); border: 1.5px solid var(--line-mid); background: #fff; cursor: pointer;
  font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center;
}
.cover-opt img { width: 100%; aspect-ratio: 1/1; object-fit: contain; }
.cover-opt input:checked + span { border-color: var(--accent); }
.cover-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.summary { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.summary__text { font-size: 15px; margin-bottom: 18px; text-wrap: pretty; }
.summary__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); height: 48px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--ink); }
.qty input { width: 52px; height: 100%; border: 0; background: none; padding: 0; text-align: center; font: inherit; font-weight: 600; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.qty:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.summary__actions .btn--primary { flex: 1 1 200px; font-weight: 700; }
.pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pairs a { display: flex; flex-direction: column; gap: 8px; color: var(--ink); font-weight: 600; font-size: 14px; }
.pairs a:hover { color: var(--accent); }
.pairs img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--r-sm); }
.pairs img.contain { object-fit: contain; background: #fff; border: 1px solid var(--line); }
.footnote { font-size: 13px; color: var(--muted); margin-top: 12px; }
.spec-code { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; font-size: 15px; color: var(--text-2); }
.spec-code strong { font-family: var(--mono); font-size: 13px; color: var(--ink); display: block; margin-bottom: 6px; letter-spacing: .03em; }
@media (max-width: 919px) { .pd__gallery { position: static; } }

/* ───────── Prose (migrated long-form content) ───────── */
.prose { max-width: 760px; font-size: 17px; color: var(--text-2); }
.prose--wide { max-width: none; }
.prose > * + * { margin-top: 1em; }
.prose h2 { color: var(--ink); font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.12; margin-top: 1.8em; }
.prose h3 { color: var(--ink); font-size: 21px; line-height: 1.3; margin-top: 1.6em; }
.prose h4 { color: var(--ink); font-size: 18px; margin-top: 1.4em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose > :first-child { margin-top: 0; }
.prose strong { color: var(--ink); }
.prose a { font-weight: 500; text-decoration: underline; text-decoration-color: oklch(0.45 0.16 262 / .35); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--muted-2); }
.prose img, .prose figure { border-radius: var(--r); }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--ink); font-size: 19px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; }
.cols-2 { columns: 2 220px; column-gap: 32px; }
.cols-2 li { break-inside: avoid; }
.dl dt { color: var(--ink); font-weight: 600; margin-top: 14px; }
.dl dd { margin: 4px 0 0; }
.callout { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; color: var(--text-2); }
.callout strong { color: var(--ink); }
.figure-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.figure-row img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); background: #fff; }
.figure-row--contain img { object-fit: contain; border: 1px solid var(--line); }
.figure-row figure { margin: 0; }
.figure-row figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.article__aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 959px) { .article { grid-template-columns: 1fr; } .article__aside { position: static; } }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.aside-card--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.aside-card--dark .eyebrow { color: var(--on-dark-muted); }
.aside-card__title { font-weight: 700; margin-bottom: 10px; }
.aside-card nav { display: flex; flex-direction: column; }
.aside-card nav a { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 15px; }
.aside-card nav a:last-child { border-bottom: 0; }
.aside-card nav a:hover, .aside-card nav a[aria-current] { color: var(--accent); }
.aside-card--dark a { color: #fff; }
.aside-phone { font-size: 24px; font-weight: 700; display: block; }

/* ───────── Contact & forms ───────── */
.form-shell { flex: 1.6 1 480px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 3vw, 36px); }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field .opt-tag { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-weight: 400; background: #fff; color: var(--ink); font-size: 16px; width: 100%;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-group legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.field-group .hint { font-weight: 400; font-size: 14px; color: var(--muted); }
.checks { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.checks .check { font-size: 15px; min-height: 36px; }
.dropzone {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px; border: 1.5px dashed oklch(0.82 0.005 260); border-radius: var(--r); cursor: pointer;
  background: oklch(0.98 0.002 260); position: relative;
}
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__title { display: block; font-weight: 600; }
.dropzone__hint { font-size: 14px; color: var(--muted); }
.dropzone__cta { font-weight: 600; color: var(--accent); }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.form__foot .btn { height: 52px; padding: 0 28px; font-weight: 700; }
.form__note { font-size: 13.5px; color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--r-sm); padding: 14px 16px; font-weight: 600; }
.alert--ok { background: var(--success-bg); color: var(--success); }
.alert--err { background: var(--error-bg); color: var(--error); }
.alert--info { background: var(--accent-tint); color: var(--accent-ink); }
.alert ul { margin: 6px 0 0; padding-left: 18px; font-weight: 500; }
.sent { padding: clamp(16px, 4vw, 48px) 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.sent__title { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.02em; }
.sent p { color: var(--text-2); max-width: 460px; }
.contact-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-card { background: var(--ink); color: #fff; border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.contact-card a { color: #fff; }
.contact-card__phone { font-size: 26px; font-weight: 700; }
.contact-card__emails { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--dark-line); }
.contact-card__emails a + a { color: var(--on-dark-2); word-break: break-word; }
.hours { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.hours__title { font-weight: 700; margin-bottom: 10px; }
.hours__row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 6px 0; }
.hours__note { font-size: 13.5px; color: var(--muted); padding-top: 6px; }
.form-layout { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 48px); align-items: flex-start; }

/* ───────── Quote list ("add to quote") ───────── */
.quote-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; white-space: nowrap;
  border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink);
}
.quote-pill:hover { border-color: var(--accent); color: var(--ink); }
.quote-pill__n {
  min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
}
@media (max-width: 1099px) { .quote-pill { margin-left: auto; } }
@media (max-width: 859px) { .quote-pill { display: none; } } /* the sticky mobile bar shows "View quote (n)" */

.quote-added { background: var(--success-bg); color: var(--success); border-bottom: 1px solid oklch(0.88 0.05 150); }
.quote-added__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-block: 12px; }
.quote-added__msg { font-weight: 600; }
.quote-added__msg::before { content: '✓'; margin-right: 10px; }
.quote-added__actions { display: flex; align-items: center; gap: 16px; }
.quote-added__close { background: none; border: 0; padding: 8px 0; font: inherit; font-weight: 600; color: var(--success); cursor: pointer; }
.quote-added__close:hover { text-decoration: underline; }

.atq-section { padding-bottom: var(--pad-md); }
.band + .atq-section { padding-top: var(--pad-md); }
.atq { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 3vw, 32px); max-width: 880px; scroll-margin-top: 96px; }
.atq__head { margin-bottom: 20px; }
.atq__title { font-size: clamp(22px, 2.4vw, 26px); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; margin: 0; }
.atq__intro { color: var(--text-2); margin-top: 6px; max-width: 620px; }
.atq__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.atq__lengths { max-width: 420px; clear: both; }
.atq__lengths > div { align-items: center; }
.atq__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.atq__foot .btn--primary { font-weight: 700; flex: 0 1 240px; }
.atq__num {
  width: 84px; height: 44px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font: inherit; font-size: 16px; font-weight: 600; background: #fff; color: var(--ink);
}
.atq__num:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }

.form-main { flex: 1.6 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.form-main > .form-shell, .form-main > .atq { flex: none; max-width: none; }

.ql { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 3vw, 36px); scroll-margin-top: 96px; }
.ql__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.ql__title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.ql__items { list-style: none; margin: 0; padding: 0; }
.ql__item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ql__img img { display: block; width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.ql__name { font-weight: 700; color: var(--ink); }
.ql__name:hover { color: var(--accent); }
.ql__model { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.ql__opts { font-size: 14.5px; line-height: 1.5; margin: 6px 0 0; }
.ql__opts div { display: flex; flex-wrap: wrap; gap: 0 6px; }
.ql__opts dt { color: var(--muted); }
.ql__opts dd { margin: 0; color: var(--ink); }
.ql__notes {
  margin-top: 10px; width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
}
.ql__notes:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.ql__note { font-style: italic; margin-top: 6px; }
.ql__qty { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ql__remove, .ql__clear { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.ql__remove:hover, .ql__clear:hover { color: var(--error); }
.ql__count { font-weight: 700; background: var(--chip); border-radius: 4px; padding: 4px 10px; white-space: nowrap; }
.ql__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 16px; }
.ql__empty { padding-top: 16px; color: var(--text-2); }
.ql__empty p { margin-bottom: 12px; }
.sent .ql { align-self: stretch; border: 0; padding: 8px 0 0; }
.sent__ref strong { color: var(--ink); font-family: var(--mono); font-size: 15px; }
@media (max-width: 560px) {
  .ql__item { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .ql__img img { width: 56px; height: 56px; }
  .ql__qty { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
}

/* FAQ accordion */
.faq { border-top: 1px solid var(--line-mid); }
.faq details { border-bottom: 1px solid var(--line-mid); }
.faq summary {
  display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0;
  cursor: pointer; font-weight: 600; font-size: 18px; min-height: 56px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--accent); flex: none; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq__a { margin: 0 0 22px; color: var(--text-2); max-width: 720px; text-wrap: pretty; }
.faq__a > * + * { margin-top: .8em; }
.faq__a ul { padding-left: 1.2em; }

/* Industry sections */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 14px; padding: 6px 12px; border-radius: 4px; background: var(--chip); }
.rec-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-mid); }
.rec-list a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-mid); color: var(--ink); font-weight: 600; }
.rec-list a:hover { color: var(--accent); }

/* Who we work with grid */
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: 1px solid var(--line-mid); }
.who > div { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line-mid); font-weight: 700; font-size: 20px; }

/* Equipment list (about) */
.equip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.equip h3 { font-size: 16px; margin-bottom: 8px; }
.equip ul { margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--text-2); }
.equip li { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* Sitemap */
.sitemap { columns: 3 260px; column-gap: 40px; }
.sitemap section { break-inside: avoid; margin-bottom: 28px; }
.sitemap h2 { font-size: 18px; margin-bottom: 8px; }
.sitemap ul { list-style: none; margin: 0; padding: 0; }
.sitemap li { padding: 5px 0; border-bottom: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
.aside-card--dark a.btn--white { color: var(--ink); }
/* Small legacy photos (e.g. 100px XHD shots) still fill their frame */
.card__media img, .pd__main img { width: 100%; height: 100%; }

/* ───────── Industry guides ───────── */
.guide-quick > * + * { margin-top: 1em; }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; padding-bottom: clamp(28px, 4vw, 48px); }
.glance__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.glance__item .eyebrow { margin-bottom: 6px; }
.glance__item p { margin: 0; color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.35; }
.guide-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; color: var(--muted); font-size: 15px; }
.guide { border-top: 1px solid var(--line-mid); }
.guide-section { border-bottom: 1px solid var(--line-mid); }
.guide-section > summary, .sources > summary {
  display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0;
  cursor: pointer; font-weight: 600; font-size: 19px; color: var(--ink); min-height: 56px; list-style: none;
}
.guide-section > summary::-webkit-details-marker, .sources > summary::-webkit-details-marker { display: none; }
.guide-section > summary::after, .sources > summary::after { content: '+'; font-size: 22px; color: var(--accent); flex: none; font-weight: 400; }
.guide-section[open] > summary::after, .sources[open] > summary::after { content: '−'; }
.guide-section__body { padding-bottom: 20px; }
.guide-section__body > * + * { margin-top: 1em; }
.sources { margin-top: 2em; border-top: 1px solid var(--line-mid); border-bottom: 1px solid var(--line-mid); }
.sources > summary { font-size: 16px; }
.sources ul { padding-left: 1.2em; margin-top: 0; }
.grade { margin-top: 2.4em; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 28px); }
.prose .grade h2 { margin-top: 0; font-size: clamp(22px, 2.4vw, 26px); }
.grade > * + * { margin-top: .8em; }
.grade__opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 0 16px; }
.grade__result { border-left: 4px solid var(--accent); background: var(--accent-tint); border-radius: var(--r-sm); padding: 14px 18px; color: var(--ink); }
.grade__result > * + * { margin-top: .5em; }
.grade__result strong { font-size: 18px; }
.grade__result--ok304 { border-color: var(--success); background: var(--success-bg); }
.grade__result--review { border-color: var(--orange); background: oklch(0.96 0.03 70); }
.grade__result--no { border-color: var(--error); background: var(--error-bg); }
.grade__note { font-size: 15px; color: var(--text-2); }
.questions { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.questions li { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; color: var(--text-2); font-size: 15px; }
.questions .mono { color: var(--orange); }
.questions strong { color: var(--ink); display: block; font-size: 17px; margin-bottom: 2px; }
.finder-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 20px; }
.guide-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.guide-tile { color: var(--ink); transition: border-color .15s; }
.guide-tile:hover { border-color: var(--accent); }
.guide-tile img { object-fit: cover; border-radius: var(--r-sm); }
.guide-tile .text-link { margin-top: auto; font-size: 14px; }
.estimate__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px 16px; }
.checklist { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.checklist .check { border-bottom: 1px solid var(--line); padding: 6px 0; min-height: 44px; }
.checklist__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 16px; }

/* ───────── Testimonials ───────── */
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: start; }
.tm { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.tm blockquote { margin: 0; color: var(--ink); font-size: 17px; line-height: 1.55; }
.tm blockquote > * + * { margin-top: .8em; }
.tm blockquote > p:first-child::before { content: '“'; }
.tm figcaption { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.tm__who { font-weight: 600; color: var(--text-2); }
.tm__guide { color: var(--accent); font-weight: 500; }
.tm__more summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 15px; margin-top: .4em; }
.tm__more[open] summary { display: none; }
.tm--hero { border: 0; background: var(--ink); color: #fff; padding: clamp(28px, 4vw, 48px); margin-bottom: 28px; }
.tm--hero blockquote { color: #fff; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; letter-spacing: -.01em; max-width: 900px; }
.tm--hero .tm__who { color: var(--on-dark); }
.trusted { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); border-top: 1px solid var(--line-mid); }
.trusted li { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line-mid); font-weight: 700; font-size: 17px; }
.client-list { columns: 4 200px; list-style: none; padding: 0; margin: 0; font-size: 15px; }
.client-list li { padding: 7px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.prose .tm { margin-top: 2em; }

/* ───────── Admin ───────── */
.admin { background: var(--bg); }
.admin-bar { background: var(--ink); color: #fff; }
.admin-bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 56px; padding-block: 8px; }
.admin-bar__brand { color: #fff; font-weight: 700; }
.admin-bar__brand span { font-family: var(--mono); font-size: 12px; color: var(--orange); text-transform: uppercase; letter-spacing: .06em; margin-left: 4px; }
.admin-bar__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 15px; }
.admin-bar__nav a, .admin-bar__nav .link-btn { color: var(--on-dark); }
.admin-bar__nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.admin-bar__nav form { margin: 0; }
.admin-main { padding-block: 28px 64px; display: flex; flex-direction: column; gap: 20px; }
.admin-login { max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.form--stack { grid-template-columns: 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.adm-list { display: flex; flex-direction: column; gap: 10px; }
.adm-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; }
.adm-row__main { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.adm-row__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; color: var(--muted); }
.adm-row__title { font-weight: 700; color: var(--ink); }
.adm-row__quote { margin: 0; color: var(--text-2); font-size: 15px; }
.adm-row__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-row__actions form { margin: 0; }
.adm-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.pill { display: inline-block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--chip); color: var(--ink); }
.pill--pending, .pill--new { background: oklch(0.93 0.06 80); }
.pill--published, .pill--won, .pill--sent { background: var(--success-bg); color: var(--success); }
.pill--hidden, .pill--lost, .pill--spam, .pill--draft { background: var(--chip); color: var(--muted); }
.pill--featured, .pill--replied, .pill--contacted { background: var(--accent-tint); color: var(--accent-ink); }
.pill--failed { background: var(--error-bg); color: var(--error); }
.btn--danger { background: var(--error); color: #fff; border-color: var(--error); }
.adm-row--link { color: var(--ink); }
.adm-row--link:hover { border-color: var(--accent); }
.adm-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.adm-filter .field { flex: 1 1 160px; }
.adm-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; align-items: start; }
.adm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.form--plain { border: 0; padding: 0; }
.kv .kv__block { flex-direction: column; gap: 4px; }
.kv .kv__block dd { text-align: left; font-weight: 400; color: var(--text-2); }
.table-scroll { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.adm-table th, .adm-table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm-table th { font-weight: 600; color: var(--muted); font-size: 13px; }
.adm-table .num { text-align: right; white-space: nowrap; }
.adm-table input { width: 100%; min-width: 0; font: inherit; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; }
.adm-table .num input { text-align: right; }
.email-frame { width: 100%; max-width: 720px; height: 900px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.adm-respond { display: flex; flex-direction: column; gap: 16px; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px 16px; }
.adm-grid__full { grid-column: 1 / -1; }
.adm-totals { max-width: 360px; margin-left: auto; width: 100%; }
.adm-table--edit td { padding-right: 8px; }
.adm-table--edit td:first-child { min-width: 220px; }
.adm-table--edit td:nth-child(2) { min-width: 200px; }
.adm-taxopts { border: 0; padding: 0; margin: 0; }
.adm-taxopts legend { font-size: 14px; font-weight: 600; margin-bottom: 4px; padding: 0; }
.adm-taxopts .check { min-height: 36px; }
.admin-main > *, .adm-card, .adm-respond > * { min-width: 0; }
@media (max-width: 699px) {
  .adm-table--edit thead { display: none; }
  .adm-table--edit, .adm-table--edit tbody, .adm-table--edit td { display: block; }
  .adm-table--edit tr { display: grid; grid-template-columns: 1fr 1.4fr 1fr auto; gap: 8px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .adm-table--edit td { border: 0; padding: 0; min-width: 0 !important; }
  .adm-table--edit td:nth-child(1), .adm-table--edit td:nth-child(2) { grid-column: 1 / -1; }
}
