/*
 * Kit finder styles.
 *
 * Aligned to sterlingsep.com's own stylesheet so the finder reads as part of
 * that site rather than a bolt-on: the same palette, the same eyebrow and
 * divider treatment, the same card lift, the same system font stack. It does
 * not pull in Bootstrap: the finder is ~1000 lines of CSS with no framework,
 * and adding one to inherit six colours would be a poor trade.
 *
 * Brand is a rendering concern (spec §3), so everything brand-specific is a
 * token on the .theme-* class and nothing below it names a brand.
 */

/* ---- tokens -------------------------------------------------------------- */

:root {
  --ink: #1a2e42;          /* --sterling-text */
  --ink-soft: #52657a;
  --ink-faint: #7d8fa3;
  --rule: #d7e3ee;
  --rule-soft: #eaf1f7;
  --page: #ffffff;
  --panel: #f5f9fc;
  --panel-quiet: #e8f3fa;  /* --sterling-pale */

  --radius: 0.375rem;
  --radius-lg: 0.75rem;
  --shell: 1120px;

  /* Bootstrap 5's stack, which is what sterlingsep.com renders in. */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas,
    monospace;

  --lift: 0 12px 32px rgb(23 53 84 / 0.18);
  --lift-soft: 0 2px 8px rgb(0 0 0 / 0.08);
}

/*
 * STERLING's palette, taken from sterlingsep.com/assets/css/style.css.
 * --accent-glow is their --sterling-orange: named for a former orange accent,
 * actually the cyan #1abde0 that harmonises with RAL 5012. Kept as cyan here
 * and named for what it does, not what it used to be.
 */
.theme-sterling {
  --accent: #173554;          /* --sterling-navy */
  --accent-bright: #3977bc;   /* --sterling-blue, RAL 5012 */
  --accent-mid: #4d9fd0;      /* --sterling-mid */
  --accent-glow: #1abde0;     /* --sterling-orange (cyan) */
  --accent-glow-lt: #5bd8f0;  /* --sterling-orange-lt */
  --accent-ink: #ffffff;
  --accent-wash: #e8f3fa;     /* --sterling-pale */
  --answer-bg: #e8f3fa;
  --answer-rule: #3977bc;
}

.theme-stelsep {
  --accent: #123a6b;
  --accent-bright: #1b57a0;
  --accent-mid: #4d8fd0;
  --accent-glow: #1abde0;
  --accent-glow-lt: #5bd8f0;
  --accent-ink: #ffffff;
  --accent-wash: #ecf1f9;
  --answer-bg: #ecf1f9;
  --answer-rule: #1b57a0;
}

.theme-purotech {
  --accent: #1d4f45;
  --accent-bright: #2a7566;
  --accent-mid: #3f9083;
  --accent-glow: #2fc3a8;
  --accent-glow-lt: #63dcc5;
  --accent-ink: #ffffff;
  --accent-wash: #e9f3f0;
  --answer-bg: #e9f3f0;
  --answer-rule: #2a7566;
}

/* ---- base ----------------------------------------------------------------

   Scoped to .kf. On its own the finder puts .kf on <body>; inside the main
   site it is only on <main>, so these rules never reach the main site's
   navbar, footer or cookie banner, which Bootstrap and its style.css own.
   :where() keeps them at bare-element specificity: `.kf a` would outrank
   `.button` and paint button text the colour of the button. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

.kf {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

:where(.kf) h1,
:where(.kf) h2,
:where(.kf) h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

:where(.kf) h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem);
  font-weight: 700;
}

:where(.kf) h2 {
  font-size: 1.35rem;
  font-weight: 650;
}

:where(.kf) h3 {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

:where(.kf) p {
  margin: 0 0 1em;
}

:where(.kf) a {
  color: var(--accent-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

:where(.kf) a:hover {
  color: var(--accent);
}

:where(.kf) img {
  max-width: 100%;
  height: auto;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  background: var(--page);
  padding: 10px 16px;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.2);
}

.muted {
  color: var(--ink-faint);
}

/* ---- header -------------------------------------------------------------- */

/*
 * sterlingsep.com's navbar: bg-sterling-blue, sticky-top, 48px logo.
 * Not navy: navy is the footer.
 */
.site-header {
  background: var(--accent-bright);
  color: var(--accent-ink);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-header .shell {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.wordmark {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  line-height: 1.15;
  flex: 0 0 auto;
}

.wordmark-brand {
  font-weight: 750;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.wordmark-sub {
  font-size: 0.75rem;
  opacity: 0.75;
  letter-spacing: 0.04em;
}

.site-search {
  display: flex;
  flex: 1 1 320px;
  gap: 8px;
  position: relative;
}

.site-search input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--page);
  color: var(--ink);
}

.site-search input:focus-visible {
  outline: 3px solid rgb(255 255 255 / 0.5);
  outline-offset: 1px;
}

/* Cyan on blue, as .btn-sterling-orange is on the live site. */
.site-search button {
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius);
  background: var(--accent-glow);
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.site-search button:hover {
  background: var(--accent-glow-lt);
  border-color: var(--accent-glow-lt);
}

/* typeahead */

.typeahead {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--page);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.22);
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 4px;
}

.typeahead:empty {
  display: none;
}

/* "No exact match. Did you mean:" above near-miss suggestions. */
.typeahead .typeahead-hint {
  padding: 8px 12px 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.typeahead li a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 9px 12px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
}

.typeahead li a:hover,
.typeahead li[aria-selected='true'] a {
  background: var(--accent-wash);
}

.typeahead .ta-code {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9rem;
}

.typeahead .ta-meta {
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-align: right;
}

/* ---- breadcrumbs --------------------------------------------------------- */

.breadcrumbs {
  padding: 14px 0 0;
  font-size: 0.82rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink-faint);
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--rule);
}

/* ---- page furniture ------------------------------------------------------ */

main {
  padding: 24px 0 64px;
}

.page-head {
  max-width: 62ch;
  padding: 12px 0 8px;
}

.page-head--hero {
  padding: 32px 0 16px;
}

/* sterlingsep.com's .section-eyebrow */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-glow);
  margin: 0 0 8px;
}

.eyebrow a {
  color: inherit;
}

.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.panel {
  margin: 32px 0;
  padding: 26px 28px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--page);
  box-shadow: var(--lift-soft);
}

/* sterlingsep.com's .section-divider: blue into cyan, under every heading */
.panel > h2::after,
.page-head h1::after {
  content: '';
  display: block;
  width: 3.5rem;
  height: 3px;
  margin: 0.85rem 0 1.1rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent-glow));
}

.panel--quiet {
  background: var(--panel-quiet);
  border-color: transparent;
  box-shadow: none;
}

.panel-lede {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 68ch;
}

.note-inline {
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--rule);
  padding-left: 12px;
}

.trust {
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-top: 20px;
  max-width: 60ch;
}

.trust strong {
  color: var(--ink);
}

.stat-line {
  font-size: 0.82rem;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 40px;
}

/* ---- buttons ------------------------------------------------------------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

/* sterlingsep.com's .btn-sterling-primary */
.button {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  background: var(--accent-bright);
  color: var(--accent-ink);
  text-decoration: none;
  border: 1px solid var(--accent-bright);
  transition: background 0.2s, border-color 0.2s;
}

.button:hover {
  background: var(--accent-mid);
  border-color: var(--accent-mid);
  color: var(--accent-ink);
}

/* .btn-sterling-outline: cyan outline, cyan fill on hover with navy text */
.button--ghost {
  background: transparent;
  color: var(--accent-bright);
  border: 2px solid var(--accent-glow);
  padding: calc(0.6rem - 1px) calc(1.4rem - 1px);
}

.button--ghost:hover {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: var(--accent-glow);
}

/* ---- kit / model head ---------------------------------------------------- */

.kit-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 12px 0 8px;
}

/* No hero photograph: do not leave a 380px column of nothing. */
.kit-head--solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 70ch;
}

@media (min-width: 860px) {
  .kit-head:not(.kit-head--solo) {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}

.kit-head-text {
  min-width: 0;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--rule);
}

.facts div {
  min-width: 0;
}

.facts dt {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.facts dd {
  margin: 2px 0 0;
  font-size: 1rem;
  font-weight: 600;
}

/* the direct answer, the reason a model page exists */

/* sterlingsep.com's .reg-info box: pale fill, 4px blue rule, rounded */
.answer {
  background: var(--answer-bg);
  border-left: 4px solid var(--answer-rule);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 18px 0 0;
}

.answer-line {
  font-size: 1.12rem;
  margin: 0;
}

.answer-line strong {
  font-family: var(--mono);
}

.answer-line a {
  font-family: var(--mono);
  font-weight: 700;
}

.answer-detail {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---- imagery ------------------------------------------------------------- */

.kit-hero {
  margin: 0;
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.kit-hero > picture > img,
.kit-hero picture img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
}

.kit-hero figcaption {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 12px;
  text-align: left;
}

/* ---- tables -------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  margin-top: 16px;
}

:where(.kf) table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

:where(.kf) th,
:where(.kf) td {
  text-align: left;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}

:where(.kf) thead th {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

tfoot th,
tfoot td {
  border-bottom: none;
  border-top: 1px solid var(--rule);
  font-weight: 650;
}

.col-part,
.col-dim {
  white-space: nowrap;
}

.part-number,
.code-link {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 600;
}

.col-desc {
  color: var(--ink-soft);
}

.qty-badge {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--accent-wash);
  color: var(--accent);
}

.role-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-left: 7px;
  vertical-align: 1px;
  border: 1px solid var(--ink-faint);
}

.role-white {
  background: #ffffff;
}

.role-black {
  background: #2b2b2b;
  border-color: #2b2b2b;
}

/* ---- lists --------------------------------------------------------------- */

.fitment-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 18px;
}

.part-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 0.88rem;
}

.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
}

.chip-list a {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 5px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
}

.chip-list a:hover {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--accent);
}

.brand-grid {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.brand-grid a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  height: 100%;
}

.brand-grid a {
  border-radius: var(--radius-lg);
  box-shadow: var(--lift-soft);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

/* sterlingsep.com's .feature-card / .product-card lift */
.brand-grid a:hover {
  border-color: transparent;
  background: var(--page);
  transform: translateY(-4px);
  box-shadow: var(--lift);
}

.brand-name {
  font-weight: 600;
}

.brand-count {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.see-also {
  margin: 16px 0 0;
  font-weight: 600;
  font-size: 0.92rem;
}

.notes {
  margin: 32px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--rule);
  background: var(--panel);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.notes h2 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.notes ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---- search results ------------------------------------------------------ */

.results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.results li {
  border-bottom: 1px solid var(--rule-soft);
}

.results a {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
  padding: 14px 4px;
  text-decoration: none;
  color: var(--ink);
}

.results a:hover {
  background: var(--accent-wash);
}

.result-code {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-bright);
}

.result-meta {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.result-badge {
  margin-left: auto;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--ink-faint);
}

.empty-state {
  max-width: 56ch;
}

/* ---- footer -------------------------------------------------------------- */

/* sterlingsep.com's footer: bg-sterling-navy, white text. */
.site-footer {
  padding: 36px 0 32px;
  background: var(--accent);
  color: #fff;
  margin-top: 48px;
}

.disclaimer {
  font-size: 0.82rem;
  color: rgb(255 255 255 / 0.75);
  max-width: 90ch;
}

.disclaimer strong {
  color: #fff;
}

/* The live site's .text-white-50 lands at about 4.4:1 on navy, just under AA
   for text this size. 0.62 keeps the same recessive feel and clears it. */
.colophon {
  font-size: 0.78rem;
  color: rgb(255 255 255 / 0.62);
  margin: 0;
}

.answer-sibling {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.answer-sibling a {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Test builds only: see --staging in src/build.js. */
.staging-bar {
  margin: 0;
  padding: 7px 20px;
  background: #7a2e0e;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

/* ---- what's in the box --------------------------------------------------- */

.contents-grid {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  /* A fixed maximum on the track, not 1fr. With auto-fit and 1fr, three bags
     stretch to 330px each and the section dominates the page: these are
     thumbnails to glance at and count, not the subject of the page. */
  grid-template-columns: repeat(auto-fill, minmax(104px, 124px));
  justify-content: start;
  gap: 20px 22px;
}

.contents-item {
  min-width: 0;
  text-align: center;
}

/* Fixed ratio so bags from 170 mm to 600 mm long share a baseline and the row
   does not look ragged. */
.contents-shot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 10px;
  aspect-ratio: 3 / 4;
  cursor: zoom-in;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.contents-shot:hover,
.contents-shot:focus-visible {
  border-color: var(--accent);
  background: var(--accent-wash);
}

.contents-shot picture {
  display: block;
  width: 100%;
  height: 100%;
}

.contents-shot picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* The quantity is what a buyer is counting, so it reads as a count rather than
   a caption. */
.contents-qty {
  position: absolute;
  top: -9px;
  right: -9px;
  min-width: 34px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.18);
}

.contents-code {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 700;
}

.contents-role {
  margin: 1px 0 0;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.contents-role .role-dot {
  margin: 0 3px 0 0;
}

.contents-dim {
  margin: 1px 0 0;
  font-size: 0.7rem;
  color: var(--ink-faint);
}

@media (max-width: 420px) {
  .contents-grid {
    grid-template-columns: repeat(auto-fill, minmax(92px, 108px));
    gap: 16px;
  }
}

/* ---- full-size viewer ---------------------------------------------------- */

/* Progressive enhancement: every thumbnail is a plain link to the full image,
   so this working is a convenience and its absence is not a failure. */
.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 900px);
  max-height: 92vh;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgb(10 16 22 / 0.82);
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  object-fit: contain;
  background: var(--page);
  border-radius: var(--radius-lg);
}

.lightbox-caption {
  margin: 12px 0 0;
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.6);
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--page);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.4);
}

.lightbox-close:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.hero-zoom {
  display: block;
  cursor: zoom-in;
  border-radius: var(--radius);
}

.hero-zoom:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.separator-range {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin: 0;
}

/* ---- the separator this fits --------------------------------------------- */

.separator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 16px;
}

@media (min-width: 700px) {
  .separator-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

.separator-figure {
  margin: 0;
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
}

.separator-figure picture {
  display: block;
}

.separator-figure picture img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
}

.separator-figure figcaption {
  margin-top: 10px;
  font-size: 0.74rem;
  color: var(--ink-faint);
  text-align: left;
  line-height: 1.45;
}

/* The schematic is a stand-in, so it reads as a drawing rather than as a
   photograph that failed to load: muted, stroke-only, generous whitespace. */
.separator-schematic {
  width: 100%;
  max-width: 165px;
  height: auto;
  color: var(--accent);
  opacity: 0.42;
}

.separator-figure--placeholder {
  border: 1px dashed var(--rule);
  background: transparent;
}

.separator-text p {
  margin: 0 0 12px;
}

.separator-check {
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--rule);
  padding-left: 12px;
}

/* Dimensions and fill masses read as columns of figures, so lock the digit
   width: otherwise Ø248 and Ø1100 wander relative to each other. */
.spec-table td,
.spec-table th {
  font-variant-numeric: tabular-nums;
}

.spec-table .col-dim,
.spec-table .col-fill {
  font-feature-settings: 'tnum';
}

/* ---- brand furniture ----------------------------------------------------- */

.wordmark picture,
.wordmark img {
  display: block;
  height: 48px;
  width: auto;
}

.footer-mark {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-mark {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.15);
}

.footer-mark picture,
.footer-mark img {
  display: block;
  height: 38px;
  width: auto;
}

.footer-mark .colophon {
  margin: 0;
}

/* sterlingsep.com's .navbar: navy with a defined shadow beneath it */
.site-header {
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.35);
}

.site-footer a:hover,
.footer-link:hover {
  color: var(--accent-glow);
}

/* ---- STERLING's own ranges ----------------------------------------------- */

.range-block + .range-block {
  margin-top: 26px;
}

.range-block h3 {
  margin-bottom: 12px;
}

.range-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.range-grid li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--page);
}

.range-sep {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  min-width: 4.5em;
}

.range-kits {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 0.82rem;
}

.range-accessories {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.range-accessories a {
  font-family: var(--mono);
  font-weight: 600;
}

/* ---- photography indicators ---------------------------------------------- */

.photo-flags {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.photo-flag {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--page);
  color: var(--ink-faint);
  flex-shrink: 0;
}

.photo-flag svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Absent is a legible state, not a hidden one: a missing photograph is
   information, and it is what the photography backlog is made of. */
.photo-flag:not(.is-present) {
  opacity: 0.42;
  border-style: dashed;
}

.photo-flag.is-present {
  border-color: var(--accent-bright);
  background: var(--accent-wash);
  color: var(--accent-bright);
  cursor: zoom-in;
}

.photo-flag.is-present:hover,
.photo-flag.is-present:focus-visible {
  background: var(--accent-bright);
  color: var(--accent-ink);
  outline: none;
}

.col-photos {
  white-space: nowrap;
  width: 1%;
}

/* ---- hover preview ------------------------------------------------------- */

/* Width follows the number of bodies: one image stays compact, four need
   room to stay legible. Set by the grid below rather than fixed here. */
.photo-preview {
  position: fixed;
  z-index: 60;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: var(--page);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 32px rgb(23 53 84 / 0.28);
  pointer-events: none;
}

.photo-preview[hidden] {
  display: none;
}

.photo-preview-grid {
  display: grid;
  gap: 8px;
}

.photo-preview-grid[data-count='1'] { grid-template-columns: 170px; }
.photo-preview-grid[data-count='2'] { grid-template-columns: repeat(2, 110px); }
.photo-preview-grid[data-count='3'] { grid-template-columns: repeat(3, 92px); }
.photo-preview-grid[data-count='4'] { grid-template-columns: repeat(4, 84px); }

.photo-preview-cell {
  margin: 0;
  min-width: 0;
}

.photo-preview img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: var(--panel);
  border-radius: var(--radius);
}

.photo-preview-grid[data-count='1'] img {
  height: 150px;
}

/* The quantity is the difference between "a bag" and "what is in the box". */
.photo-preview-qty {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-bright);
  text-align: center;
  white-space: nowrap;
}

.photo-preview-caption {
  display: block;
  margin-top: 8px;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* The indicator is a <button> where a photograph exists, so reset the chrome
   a button brings with it. */
button.photo-flag {
  padding: 0;
  font: inherit;
  cursor: zoom-in;
}

.photo-flag:focus-visible {
  outline: 2px solid var(--accent-glow);
  outline-offset: 2px;
}

/* "No photograph yet": a real answer, visually distinct from one that
   carries an image so the two are never confused at a glance. */
.photo-flag.is-absent {
  cursor: help;
}

.photo-preview--empty {
  max-width: 200px;
}

.photo-preview--empty .photo-preview-grid {
  display: none;
}

.photo-preview--empty .photo-preview-caption {
  margin-top: 0;
  color: var(--ink-faint);
  font-style: italic;
}

/* ---- inside the main site --------------------------------------------------

   With .has-site-chrome the page carries sterlingsep.com's own navbar,
   footer and .page-hero, from Bootstrap and the main site's style.css. The
   finder's heading block sits in that hero, so its pieces get the main site's
   treatment for a dark gradient: white text, cyan accents, cyan buttons with
   navy text (.btn-sterling-orange), and a white card behind a photograph. */

.has-site-chrome main {
  padding: 8px 0 48px;
}

/* .container sets the width inside the main site; .shell would narrow it. */
.has-site-chrome .shell {
  max-width: none;
  padding: 0;
}

.kf-hero {
  padding: 2.25rem 0 3rem;
}

.kf-hero .site-search {
  max-width: 640px;
  margin: 2rem 0 0;
}

.kf-hero .page-head,
.kf-hero .kit-head {
  max-width: none;
  padding: 0;
}

.kf-hero .page-head > *,
.kf-hero .kit-head-text > * {
  max-width: 70ch;
}

.kf-hero .page-head h1::after {
  display: none;
}

.kf-hero h1 {
  margin-bottom: 0.5rem;
}

.kf-hero .eyebrow,
.kf-hero .eyebrow a {
  color: var(--accent-glow);
  text-decoration: none;
}

.kf-hero .lede,
.kf-hero .note-inline {
  color: rgb(255 255 255 / 0.85);
}

.kf-hero .note-inline {
  border-left-color: rgb(255 255 255 / 0.3);
}

.kf-hero .facts {
  border-top-color: rgb(255 255 255 / 0.2);
}

.kf-hero .facts dt {
  color: rgb(255 255 255 / 0.6);
}

.kf-hero .facts dd {
  color: #fff;
}

.kf-hero .trust {
  background: rgb(255 255 255 / 0.1);
  color: rgb(255 255 255 / 0.85);
}

.kf-hero .trust strong {
  color: #fff;
}

.kf-hero .button {
  background: var(--accent-glow);
  border-color: var(--accent-glow);
  color: var(--accent);
}

.kf-hero .button:hover {
  background: var(--accent-glow-lt);
  border-color: var(--accent-glow-lt);
  color: var(--accent);
}

.kf-hero .button--ghost {
  background: transparent;
  color: #fff;
}

.kf-hero .button--ghost:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

.kf-hero .answer {
  background: rgb(255 255 255 / 0.1);
  border-left-color: var(--accent-glow);
  color: #fff;
}

.kf-hero .answer a {
  color: var(--accent-glow);
}

.kf-hero .answer-detail {
  color: rgb(255 255 255 / 0.75);
}

.kf-hero .kit-hero {
  background: #fff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
}

.kf-disclaimer {
  padding: 1.25rem 0;
  font-size: 0.82rem;
  color: #6c7a89;
  border-top: 1px solid var(--rule-soft);
}

.kf-disclaimer p {
  margin: 0;
}

.kf-disclaimer p + p {
  margin-top: 0.4rem;
}
