/* ═══════════════════════════════════════════════════
   Use Case Catalog (/use-cases) — public shell on the shared site header, site footer and section
   surfaces. Colors, radii, easing and fonts come only from theme.css tokens.
   Funnel (docs/product/USE-CASE-CATALOG.md → Page Anatomy): the dark public hero, a sticky on-page
   navigation bar, then full-width bands (styles.css → Public Site Layout): Three Ways to Build, the
   included Basic Board use case, the shared kit, Ready-to-Flash Use Cases (with the one search), the
   any-sensor bridge, Sensor Profiles ordered by what they sense, and custom development.
   Card anatomy: 16:9 art with its kind chip (Ready to Flash or Sensor Profile), eyebrow, title, one
   sentence, four capability markers (a check when provided, an open ring when a profile could
   provide it), the hardware it adds, View Details and the request. The title links to the entry's
   own page (/use-cases/<id>) and stretches over the card; the request button sits above that link.
   Entry pages (.uc-page) reuse this sheet: see the Entry Pages section.
   ═══════════════════════════════════════════════════ */

.catalog-page {
  background: var(--halo-deep);
  color: var(--halo-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.catalog-page .brand { color: inherit; text-decoration: none; }

.catalog-header-link {
  align-items: center;
  border-radius: var(--halo-radius-chip);
  color: var(--halo-accent);
  display: inline-flex;
  font-size: .875rem;
  font-weight: 500;
  min-height: 44px;
  padding: 0 8px;
  text-decoration: none;
  transition: color 150ms var(--ease);
  white-space: nowrap;
}
.catalog-header-link:hover { color: var(--halo-accent-bright); }

/* Bands are full width; their content sits in the page container (styles.css → .public-container). */
.catalog-main {
  display: block;
  flex: 1 0 auto;
  width: 100%;
  /* Deep links land flush under the sticky header and, at 960px+, the sticky on-page navigation
     (one row: 60px plus its 1px rule). */
  --catalog-jump-height: 61px;
  --catalog-offset: var(--sticky-offset);
}
.catalog-main:focus { outline: none; }
@media (min-width: 960px) {
  .catalog-main { --catalog-offset: calc(var(--sticky-offset) + var(--catalog-jump-height)); }
}
.catalog-main .public-band { scroll-margin-top: var(--catalog-offset); }

/* ── Hero: copy beside the theme-matched dashboard poster, on the dark public hero ── */
.catalog-hero { --ring-x: 78%; --ring-y: 50%; }
.catalog-hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(32px, 5vw, 80px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.catalog-hero-copy { min-width: 0; }
.catalog-hero-visual {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--hero-line);
  border-radius: var(--halo-radius-panel);
  box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--image-scrim) 85%, transparent);
  margin: 0;
  min-width: 0;
  overflow: hidden;
}
/* The poster's own margin is trimmed so the laptop and tablet fill the frame. */
.catalog-hero-visual img { display: block; height: 100%; object-fit: cover; transform: scale(1.1); width: 100%; }

/* Fact strip under the lede: four short stats separated by hairlines. */
.catalog-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  justify-content: start;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}
.catalog-facts { column-gap: clamp(20px, 2.6vw, 36px); }
.catalog-facts li { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 2px 0; }
.catalog-facts strong { color: var(--hero-ink); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.catalog-facts span { color: var(--hero-muted); font-size: .8125rem; line-height: 1.4; }
.catalog-hero-action { min-height: 48px; }

.catalog-included-actions,
.catalog-bridge-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── On this page: the funnel as one bar under the hero, sticky under the header at 960px+ ── */
.catalog-jump-bar {
  background: var(--halo-deep);
  border-bottom: 1px solid var(--halo-border);
  position: relative;
  z-index: 50;
}
@media (min-width: 960px) {
  .catalog-jump-bar {
    position: sticky;
    top: var(--sticky-offset);
  }
  /* One fixed-height row while sticky, so --catalog-jump-height stays exact for deep links. */
  .catalog-jump { flex-wrap: nowrap; height: 60px; min-height: 0; overflow-x: auto; padding-block: 0; }
}
.catalog-jump {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  min-height: 60px;
  padding-block: 8px;
}
.catalog-jump a {
  align-items: center;
  border-radius: var(--halo-radius-control);
  color: var(--halo-subtle);
  display: inline-flex;
  font-size: .875rem;
  font-weight: 500;
  gap: 8px;
  min-height: 44px;
  padding: 4px 14px;
  position: relative;
  text-decoration: none;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.catalog-jump a:hover { background: var(--halo-fill); color: var(--halo-text); }
.catalog-jump a[aria-current="true"] { color: var(--halo-text); }
.catalog-jump a[aria-current="true"]::after {
  background: var(--halo-accent);
  border-radius: 2px;
  bottom: -9px;
  content: "";
  height: 2px;
  left: 14px;
  position: absolute;
  right: 14px;
}
.catalog-jump a:focus-visible { outline: 2px solid var(--halo-accent); outline-offset: 2px; }
.catalog-jump-count {
  background: var(--halo-fill-strong);
  border-radius: var(--halo-radius-chip);
  color: var(--halo-subtle);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  padding: 0 8px;
}

.catalog-path-icon svg,
.catalog-sees-icon svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  width: 18px;
}


/* Section titles outside the shared .public-heading (the included use case and the closing band). */
.catalog-included h2 {
  color: var(--halo-text);
  font-size: clamp(1.75rem, 3.1vw, 2.625rem);
  font-weight: var(--font-weight-display);
  letter-spacing: -.015em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

/* ── How It Works: three ways to build ── */
.catalog-paths {
  counter-reset: path;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.catalog-path {
  background: var(--band-card);
  border: 1px solid var(--halo-border);
  border-radius: var(--halo-radius-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 20px 22px 12px;
}
.catalog-path.is-now { border-color: var(--halo-border-strong); }
.catalog-path-head { align-items: center; display: flex; gap: 12px; justify-content: space-between; margin-bottom: 4px; }
.catalog-path-icon {
  align-items: center;
  background: var(--halo-accent-glow);
  border: 1px solid var(--halo-border);
  border-radius: 50%;
  color: var(--halo-accent);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}
.catalog-path-icon svg { height: 20px; width: 20px; }
.catalog-path-tag {
  background: var(--halo-fill-strong);
  border-radius: var(--halo-radius-chip);
  color: var(--halo-text);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.5;
  padding: 1px 10px;
}
.catalog-path.is-now .catalog-path-tag { background: var(--halo-accent-fill); color: var(--halo-on-accent); }
.catalog-path h3 {
  color: var(--halo-text);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}
.catalog-path > p { color: var(--halo-subtle); font-size: .875rem; line-height: 1.55; margin: 0; }
.catalog-path-steps {
  border-top: 1px solid var(--halo-border);
  counter-reset: step;
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 4px 0 0;
  padding: 12px 0 0;
}
.catalog-path-steps li {
  align-items: baseline;
  color: var(--halo-text);
  counter-increment: step;
  display: grid;
  font-size: .8125rem;
  gap: 10px;
  grid-template-columns: 20px minmax(0, 1fr);
  line-height: 1.45;
}
.catalog-path-steps li::before {
  color: var(--halo-muted);
  content: counter(step);
  font-family: var(--font-mono);
  font-size: .75rem;
}
.catalog-path > .public-link { align-self: flex-start; margin-top: auto; padding-top: 4px; }
.catalog-later-note { color: var(--halo-muted); font-size: .875rem; line-height: 1.5; margin: 20px 0 0; }

/* ── Every Use Case Starts With ── */
.catalog-kit {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.catalog-kit-item {
  background: var(--band-card);
  border: 1px solid var(--halo-border);
  border-radius: var(--halo-radius-card);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.catalog-kit-art {
  align-items: center;
  background: var(--product-well);
  display: flex;
  height: 140px;
  justify-content: center;
  padding: 16px;
}
.catalog-kit-art img { display: block; height: auto; max-height: 100%; max-width: 100%; object-fit: contain; width: auto; }
.catalog-kit-item.is-computer .catalog-kit-art { color: var(--halo-muted); }
.catalog-kit-item.is-computer .catalog-kit-art svg { height: 100%; max-width: 70%; }
.catalog-kit-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 16px 20px 12px; }
.catalog-kit-num {
  color: var(--halo-muted);
  display: block;
  font-family: var(--font-mono);
  font-size: .75rem;
  margin-bottom: 4px;
}
.catalog-kit-copy h3 {
  color: var(--halo-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}
.catalog-kit-copy p {
  color: var(--halo-subtle);
  font-size: .875rem;
  line-height: 1.6;
  margin: 0;
}
.catalog-kit-copy .catalog-kit-part {
  color: var(--halo-muted);
  font-family: var(--font-mono);
  font-size: .75rem;
  line-height: 1.45;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.catalog-kit-copy > .public-link { align-self: flex-start; margin-top: auto; padding-top: 8px; }

/* ── Capability markers ── */
.catalog-caps {
  display: grid;
  gap: 6px 14px;
  grid-template-columns: repeat(2, max-content);
  list-style: none;
  margin: 0;
  padding: 0;
}
.catalog-cap {
  align-items: center;
  display: inline-flex;
  font-size: .8125rem;
  font-weight: 500;
  gap: 5px;
  line-height: 1.3;
}
.catalog-cap svg {
  fill: none;
  flex: 0 0 auto;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 15px;
}
.catalog-cap.is-on { color: var(--halo-text); }
.catalog-cap.is-off { color: var(--halo-muted); font-weight: 400; }
/* A profile's markers are possibilities: open rings and quieter text. */
.catalog-caps.is-possible .catalog-cap.is-on { color: var(--halo-subtle); }
.catalog-caps-label { color: var(--halo-muted); font-size: .75rem; font-weight: 500; margin: 0 0 -6px; }

/* ── Included With Every Account: the Basic Board use case ── */
.catalog-included > .public-container { display: grid; gap: 28px; }
.catalog-included-top {
  align-items: center;
  display: grid;
  gap: clamp(32px, 5vw, 80px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}
.catalog-included-copy { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.catalog-included-copy h2 { margin-bottom: 0; }
.catalog-included-summary {
  color: var(--halo-text);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.55;
  margin: 0;
}
.catalog-included-copy .catalog-subhead { margin-top: 6px; }
.catalog-included-sees { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.catalog-included-sees li {
  align-items: center;
  color: var(--halo-text);
  display: grid;
  font-size: .9375rem;
  gap: 12px;
  grid-template-columns: 36px minmax(0, 1fr);
  line-height: 1.45;
}
.catalog-sees-icon {
  align-items: center;
  background: var(--halo-accent-glow);
  border-radius: 50%;
  color: var(--halo-accent);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}
.catalog-included-actions { margin-top: 6px; }

/* A real dashboard capture in the visitor's theme (theme-variant-* in styles.css), with the kit. */
.catalog-included-visual {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  margin: 0;
  min-width: 0;
}
.catalog-shot {
  background: var(--band-card);
  border: 1px solid var(--halo-border);
  border-radius: var(--halo-radius-card);
  box-shadow: 0 28px 56px -34px color-mix(in srgb, var(--halo-shadow) 70%, transparent);
  grid-column: 1 / -1;
  overflow: hidden;
}
.catalog-shot-img { display: block; height: auto; width: 100%; }
.catalog-included-evk {
  background: var(--product-well);
  border: 1px solid var(--halo-border-strong);
  border-radius: var(--halo-radius-tile);
  box-shadow: 0 18px 36px -22px color-mix(in srgb, var(--halo-shadow) 80%, transparent);
  grid-column: 1;
  margin: -56px 0 0 -12px;
  padding: 8px;
  position: relative;
}
.catalog-included-evk img { display: block; height: auto; width: 100%; }
.catalog-included-visual figcaption {
  align-self: center;
  color: var(--halo-muted);
  font-size: .8125rem;
  grid-column: 2;
  line-height: 1.5;
  padding: 12px 0 0 20px;
}
.catalog-included-more { border-top: 1px solid var(--halo-border); margin: 0; padding-top: 4px; }

/* ── Card grid ── */
.catalog-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
/* A deep-linked card keeps 24px of its own band above it, so it never sits on the sticky chrome. */
.catalog-card { display: flex; min-width: 0; scroll-margin-top: calc(var(--catalog-offset, var(--sticky-offset)) + 24px); }
.catalog-card[hidden] { display: none; }
.catalog-card-body {
  background: var(--band-card);
  border: 1px solid var(--halo-border);
  border-radius: var(--halo-radius-card);
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: border-color 150ms var(--ease);
}
.catalog-card-body:hover { border-color: var(--halo-border-strong); }
.catalog-card.is-targeted .catalog-card-body { border-color: var(--halo-accent); }
/* The title link covers the card (one link per card, keeping its accessible name); the request button
   and any other control sit above it. The card shows hover and keyboard focus. */
.catalog-card-body { position: relative; }
.catalog-card-link { color: inherit; text-decoration: none; }
.catalog-card-link::after { border-radius: inherit; content: ""; inset: 0; position: absolute; }
.catalog-card-link:focus-visible { outline: none; }
.catalog-card-body:has(.catalog-card-link:focus-visible) { outline: 2px solid var(--halo-accent); outline-offset: 3px; }
.catalog-card-body:hover .catalog-card-more { color: var(--halo-accent-bright); }
.catalog-card-body:hover .catalog-card-more-arrow { transform: translateX(2px); }
.catalog-card-body:hover .catalog-card-media img { transform: scale(1.03); }
.catalog-card-media img { transition: transform 360ms var(--ease); }
.catalog-card .catalog-request { cursor: pointer; position: relative; z-index: 1; }

/* 16:9 art across the top of the card, with the kind chip on it. */
.catalog-card-media {
  aspect-ratio: 16 / 9;
  background: var(--halo-panel-hover);
  border-bottom: 1px solid var(--halo-border);
  overflow: hidden;
  position: relative;
}
.catalog-card-media img { display: block; height: 100%; object-fit: cover; width: 100%; }
.catalog-kind {
  border-radius: var(--halo-radius-chip);
  display: inline-flex;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.5;
  padding: 2px 10px;
  white-space: nowrap;
}
.catalog-kind.is-use-case { background: var(--halo-accent-fill); color: var(--halo-on-accent); }
.catalog-kind.is-sensor-profile {
  background: var(--halo-panel);
  border: 1px solid var(--halo-border-strong);
  color: var(--halo-text);
}
.catalog-card-media .catalog-kind { left: 12px; position: absolute; top: 12px; }

.catalog-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 20px 22px 14px;
}
.catalog-card-titles { min-width: 0; }
.catalog-card-category { color: var(--halo-muted); font-size: .75rem; font-weight: 500; margin: 0 0 3px; }
.catalog-card-title {
  color: var(--halo-text);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  text-wrap: balance;
}
.catalog-card-title:focus { outline: none; }
.catalog-card-summary {
  color: var(--halo-subtle);
  font-size: .9375rem;
  line-height: 1.55;
  margin: 0;
}

/* What the card adds to the shared kit, as chips: names only; parts and notes live in the details. */
.catalog-card-adds {
  align-items: center;
  border-top: 1px solid var(--halo-border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0;
  padding-top: 12px;
}
.catalog-card-adds-label { color: var(--halo-muted); font-size: .75rem; font-weight: 500; }
.catalog-card-adds ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.catalog-card-adds li {
  background: var(--halo-fill-strong);
  border: 1px solid var(--halo-border);
  border-radius: var(--halo-radius-chip);
  color: var(--halo-text);
  font-size: .8125rem;
  line-height: 1.35;
  padding: 3px 10px;
}
.catalog-or { color: var(--halo-muted); }

/* View Details (the card link's visible cue) and the request share one row at the foot of the card. */
.catalog-card-foot {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: space-between;
  margin-top: auto;
}
.catalog-card-more {
  align-items: center;
  color: var(--halo-accent);
  display: inline-flex;
  font-size: .875rem;
  font-weight: 500;
  gap: 6px;
  min-height: 44px;
  transition: color 150ms var(--ease);
}
.catalog-card-more-arrow { display: inline-block; transition: transform 150ms var(--ease); }

.catalog-subhead {
  color: var(--halo-muted);
  font-size: .75rem;
  font-weight: 500;
  margin: 0;
}
.catalog-profile-note {
  border-left: 2px solid var(--halo-border-strong);
  color: var(--halo-subtle);
  font-size: .875rem;
  line-height: 1.5;
  margin: 0;
  padding: 2px 0 2px 12px;
}

.catalog-none { color: var(--halo-muted); font-size: .875rem; line-height: 1.5; margin: 0; }

/* ── Hardware parts (entry pages) ── */
.catalog-hardware-name { color: var(--halo-text); font-size: .9375rem; font-weight: 600; line-height: 1.4; }
.catalog-hardware-or { color: var(--halo-muted); font-size: .75rem; font-weight: 500; margin-right: 2px; }
.catalog-hardware-part {
  color: var(--halo-muted);
  font-family: var(--font-mono);
  font-size: .8125rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.catalog-hardware-note { color: var(--halo-subtle); font-size: .875rem; line-height: 1.5; }

/* ── Card actions ── */
.catalog-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-left: auto;
}
.catalog-request { min-height: 44px; }
.catalog-account-badge {
  align-items: center;
  border: 1px solid var(--halo-border-strong);
  border-radius: var(--halo-radius-chip);
  color: var(--halo-green);
  display: inline-flex;
  font-size: .75rem;
  font-weight: 500;
  gap: 6px;
  min-height: 28px;
  padding: 2px 10px;
}
.catalog-account-badge::before {
  background: var(--halo-green);
  border-radius: 50%;
  content: "";
  height: 7px;
  width: 7px;
}
.catalog-account-badge[hidden] { display: none; }


/* ── Bridge: any sensor can join the platform ── */
.catalog-bridge-grid {
  align-items: center;
  display: grid;
  gap: clamp(32px, 5vw, 80px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.catalog-bridge-art {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--halo-border);
  border-radius: var(--halo-radius-panel);
  box-shadow: 0 32px 64px -40px color-mix(in srgb, var(--halo-shadow) 80%, transparent);
  margin: 0;
  min-width: 0;
  overflow: hidden;
}
.catalog-bridge-art img { display: block; height: 100%; object-fit: cover; width: 100%; }
.catalog-bridge-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.catalog-bridge-copy .public-heading { margin: 0; }
.catalog-bridge-steps {
  counter-reset: bridge;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 2px 0;
  padding: 0;
}
.catalog-bridge-steps li {
  column-gap: 12px;
  counter-increment: bridge;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
}
.catalog-bridge-steps li::before {
  align-items: center;
  background: var(--halo-accent-glow);
  border-radius: 50%;
  color: var(--halo-accent);
  content: counter(bridge);
  display: inline-flex;
  font-size: .8125rem;
  font-weight: 600;
  grid-row: span 2;
  height: 28px;
  justify-content: center;
  width: 28px;
}
.catalog-bridge-steps strong { color: var(--halo-text); font-size: .9375rem; font-weight: 600; line-height: 1.4; }
.catalog-bridge-steps span { color: var(--halo-subtle); font-size: .875rem; line-height: 1.5; }
.catalog-bridge-actions .btn { font-size: .9375rem; min-height: 48px; padding-inline: 22px; }

/* ── Custom development: the closing call to action (styles.css → .public-cta) ── */
.catalog-custom { --ring-x: 90%; --ring-y: 50%; }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .catalog-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-hero-visual { max-width: 640px; width: 100%; }
}
@media (max-width: 860px) {
  .catalog-paths { grid-template-columns: minmax(0, 1fr); }
  .catalog-included-top,
  .catalog-bridge-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-bridge-art { max-width: 640px; width: 100%; }
  .catalog-kit { grid-template-columns: minmax(0, 1fr); }
  .catalog-kit-item { display: grid; grid-template-columns: 160px minmax(0, 1fr); }
  .catalog-kit-art { height: auto; min-height: 120px; }
  .catalog-kit-art img { max-height: 120px; }
  .catalog-included-visual { max-width: 640px; }
}
@media (max-width: 640px) {
  .catalog-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* Four facts become a two-by-two grid. */
  .catalog-facts { gap: 14px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-facts strong { font-size: 1.0625rem; }
  .catalog-jump { gap: 4px; min-height: 0; }
  .catalog-jump a { padding-inline: 10px; }
  .catalog-path { padding: 18px 16px 10px; }
  .catalog-included-visual { grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); }
  .catalog-included-evk { margin: -36px 0 0 -6px; padding: 6px; }
  .catalog-included-visual figcaption { font-size: .75rem; padding: 10px 0 0 14px; }
  .catalog-kit-item { grid-template-columns: 112px minmax(0, 1fr); }
  .catalog-kit-art { padding: 12px; }
  .catalog-kit-copy { padding: 14px 16px 10px; }
  .catalog-card-content { padding: 16px 16px 12px; }
  .catalog-included-actions .btn,
  .catalog-bridge-actions .btn { flex: 1 1 100%; min-height: 48px; }
  .catalog-card-actions { flex: 1 1 100%; margin-left: 0; }
  .catalog-request { flex: 1 1 100%; min-height: 48px; }
}
@media (max-width: 420px) {
  .catalog-header-link { padding: 0 4px; }
  .catalog-kit-item { grid-template-columns: minmax(0, 1fr); }
  .catalog-kit-art { height: 148px; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-jump a,
  .catalog-card-body,
  .catalog-card-media img,
  .catalog-header-link,
  .catalog-card-more,
  .catalog-card-more-arrow { transition: none; }
  .catalog-card-body:hover .catalog-card-media img,
  .catalog-card-body:hover .catalog-card-more-arrow { transform: none; }
}

/* ═══════════════════════════════════════════════════
   Entry pages (/use-cases/<id>, tools/render-use-case-catalog.cjs → renderEntryPage)
   One outline for every use case and sensor profile: hero (breadcrumb, kind, title, summary, the
   request and Share), the sticky On This Page bar, then bands in a fixed order: Overview, the
   dashboard (or what it could provide), Hardware You Need, How to Get It, Limits, Applications,
   Related, and the closing call to action that repeats the request.
   ═══════════════════════════════════════════════════ */
.uc-hero { --ring-x: 84%; --ring-y: 42%; padding-block: clamp(24px, 3.4vw, 56px) clamp(44px, 6vw, 96px); }
.uc-hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(28px, 4.5vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}
.uc-hero-copy { min-width: 0; }
.uc-hero-kind { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 16px; }
.uc-hero-eyebrow { color: var(--hero-subtle); font-size: .875rem; font-weight: 500; }
.uc-hero .public-hero-lede { margin-bottom: 24px; }
.uc-hero-actions .catalog-account-badge { border-color: var(--hero-line-strong); }
.uc-share svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}
.uc-share { gap: 8px; min-height: 44px; }
.uc-hero-art {
  aspect-ratio: 16 / 9;
  background: var(--hero-surface);
  border: 1px solid var(--hero-line-strong);
  border-radius: var(--halo-radius-card);
  margin: 0;
  min-width: 0;
  overflow: hidden;
}
.uc-hero-art img { display: block; height: 100%; object-fit: cover; width: 100%; }
.uc-hero-art.is-cutout { background: var(--product-well); padding: clamp(16px, 3vw, 40px); }
.uc-hero-art.is-cutout img { object-fit: contain; }

.uc-section .public-heading { margin-bottom: clamp(20px, 2.6vw, 36px); }
.uc-section { padding-block: clamp(48px, 5.5vw, 88px); }

/* Overview: the job the entry does and where it fits, beside an at-a-glance list. */
.uc-overview {
  align-items: start;
  display: grid;
  gap: clamp(24px, 4vw, 64px);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
.uc-overview-copy { display: grid; gap: 14px; max-width: 62ch; min-width: 0; }
.uc-overview-copy p { color: var(--halo-subtle); font-size: 1rem; line-height: 1.65; margin: 0; }
.uc-overview-copy .uc-overview-lead { color: var(--halo-text); font-size: 1.1875rem; font-weight: 500; line-height: 1.55; }
.uc-facts {
  background: var(--band-card);
  border: 1px solid var(--halo-border);
  border-radius: var(--halo-radius-card);
  display: grid;
  margin: 0;
  padding: 6px 20px;
}
.uc-facts > div {
  border-bottom: 1px solid var(--halo-border);
  display: grid;
  gap: 4px 16px;
  grid-template-columns: minmax(7.5rem, auto) minmax(0, 1fr);
  padding: 12px 0;
}
.uc-facts > div:last-child { border-bottom: 0; }
.uc-facts dt { color: var(--halo-muted); font-size: .875rem; font-weight: 500; }
.uc-facts dd { color: var(--halo-text); font-size: .9375rem; line-height: 1.45; margin: 0; }

/* How it works: the sensing, then what the firmware and server do with it, as numbered steps. */
.uc-how {
  counter-reset: uc-how;
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  max-width: 72ch;
  padding: 0;
}
.uc-how li {
  color: var(--halo-text);
  counter-increment: uc-how;
  display: grid;
  font-size: 1rem;
  gap: 16px;
  grid-template-columns: 28px minmax(0, 1fr);
  line-height: 1.65;
}
.uc-how li::before {
  align-items: center;
  background: var(--halo-accent-fill);
  border-radius: 50%;
  color: var(--halo-on-accent);
  content: counter(uc-how);
  display: inline-flex;
  font-size: .875rem;
  font-weight: 600;
  height: 28px;
  justify-content: center;
  width: 28px;
}

/* Dashboard: four tiles for live, history, alerts and controls; an absent one reads muted. */
.uc-profile-note { margin-bottom: 20px; max-width: 62ch; }
.uc-provides { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.uc-provide {
  align-content: start;
  background: var(--band-card);
  border: 1px solid var(--halo-border);
  border-radius: var(--halo-radius-card);
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 18px 20px 20px;
}
.uc-provide h3 { color: var(--halo-text); font-size: 1rem; font-weight: 600; margin: 0; }
.uc-provide.is-off h3 { color: var(--halo-muted); }
.uc-provide ul { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.uc-provide li,
.uc-provide p { color: var(--halo-subtle); font-size: .9375rem; line-height: 1.5; margin: 0; }
.uc-provide li { padding-left: 16px; position: relative; }
.uc-provide li::before {
  background: var(--halo-accent);
  border-radius: 50%;
  content: "";
  height: 6px;
  left: 2px;
  position: absolute;
  top: .6em;
  width: 6px;
}
.uc-provides.is-possible .uc-provide li::before { background: none; border: 1.5px solid var(--halo-accent); height: 7px; width: 7px; }
.uc-provide .catalog-none { font-size: .9375rem; }
.uc-dashboard-shot { margin: clamp(24px, 3vw, 40px) 0 0; max-width: 960px; }
.uc-dashboard-shot figcaption { color: var(--halo-muted); font-size: .875rem; line-height: 1.5; margin-top: 12px; }

/* Hardware: what this entry adds beside the kit every use case shares. */
.uc-hardware { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.uc-hardware-group { align-content: start; display: grid; gap: 12px; min-width: 0; }
.uc-hardware-group .catalog-subhead { color: var(--halo-text); font-size: 1rem; font-weight: 600; }
.uc-hardware-group .uc-hardware-list + .catalog-subhead { margin-top: 12px; }
.uc-hardware-list { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.uc-hardware-item {
  background: var(--band-card);
  border: 1px solid var(--halo-border);
  border-radius: var(--halo-radius-tile);
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 14px 18px 8px;
}
.uc-hardware-item.is-alternative { border-style: dashed; }
.uc-hardware-item .uc-buy { justify-self: start; }
.uc-hardware-item > :last-child:not(.uc-buy) { padding-bottom: 8px; }

/* How to get it: three numbered steps, then the actions. */
.uc-steps {
  counter-reset: uc-step;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.uc-steps li {
  background: var(--band-card);
  border: 1px solid var(--halo-border);
  border-radius: var(--halo-radius-card);
  counter-increment: uc-step;
  display: grid;
  gap: 6px;
  padding: 18px 20px 20px;
}
.uc-steps li::before {
  align-items: center;
  background: var(--halo-accent-fill);
  border-radius: 50%;
  color: var(--halo-on-accent);
  content: counter(uc-step);
  display: inline-flex;
  font-size: .875rem;
  font-weight: 600;
  height: 28px;
  justify-content: center;
  margin-bottom: 6px;
  width: 28px;
}
.uc-steps strong { color: var(--halo-text); font-size: 1rem; font-weight: 600; line-height: 1.4; }
.uc-steps span { color: var(--halo-subtle); font-size: .9375rem; line-height: 1.55; }
.uc-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.uc-actions .btn { font-size: .9375rem; min-height: 48px; padding-inline: 22px; }

.uc-limits {
  border-left: 3px solid var(--halo-border-strong);
  color: var(--halo-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0;
  max-width: 68ch;
  padding: 2px 0 2px 18px;
}

.uc-applications { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.uc-applications > div {
  background: var(--band-card);
  border: 1px solid var(--halo-border);
  border-radius: var(--halo-radius-card);
  display: grid;
  gap: 6px;
  padding: 18px 20px 20px;
}
.uc-applications dt { color: var(--halo-text); font-size: 1rem; font-weight: 600; }
.uc-applications dd { color: var(--halo-subtle); font-size: .9375rem; line-height: 1.55; margin: 0; }

/* Related: compact cards whose title link covers the card. */
.uc-related { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.uc-related-card {
  background: var(--band-card);
  border: 1px solid var(--halo-border);
  border-radius: var(--halo-radius-card);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.uc-related-card .catalog-card-media.is-cutout { background: var(--product-well); }
.uc-related-card .catalog-card-media.is-cutout img { object-fit: contain; padding: 12px; }
.uc-related-copy { display: grid; gap: 6px; padding: 16px 20px 20px; }
.uc-related-copy .catalog-card-category { margin: 0; }
.uc-related-copy h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; margin: 0; }
.uc-related-copy h3 .public-link { color: var(--halo-text); font-size: inherit; min-height: 0; }
.uc-related-copy p { color: var(--halo-subtle); font-size: .875rem; line-height: 1.55; margin: 0; }
.uc-related-card:hover .catalog-card-media img { transform: scale(1.03); }
.uc-related-more { margin: 20px 0 0; }

.uc-closing { --ring-x: 90%; --ring-y: 50%; }

/* Share confirmation: a short toast above the bottom safe area. */
.uc-toast {
  background: var(--halo-text);
  border-radius: var(--halo-radius-chip);
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--halo-shadow) 40%, transparent);
  color: var(--halo-deep);
  font-size: .9375rem;
  font-weight: 500;
  left: 50%;
  max-width: calc(100vw - 32px);
  opacity: 0;
  overflow-wrap: anywhere;
  padding: 10px 18px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 8px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  z-index: 60;
}
.uc-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1080px) {
  .uc-provides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uc-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uc-related > :nth-child(3) { display: none; }
}
@media (max-width: 899px) {
  .uc-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .uc-hero-art { max-width: 640px; width: 100%; }
  .uc-overview,
  .uc-hardware { grid-template-columns: minmax(0, 1fr); }
  .uc-steps,
  .uc-applications { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .uc-provides,
  .uc-related { grid-template-columns: minmax(0, 1fr); }
  .uc-related > :nth-child(3) { display: flex; }
  .uc-facts { padding: 4px 16px; }
  .uc-facts > div { grid-template-columns: minmax(0, 1fr); }
  .uc-actions .btn,
  .uc-hero-actions .btn { flex: 1 1 100%; }
  .uc-hero-actions .uc-hero-badge { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .uc-toast { transition: none; }
  .uc-related-card:hover .catalog-card-media img { transform: none; }
}

/* Print: the content, not the chrome. */
@media print {
  .site-header,
  .site-footer,
  .catalog-jump-bar,
  .uc-share,
  .uc-closing,
  .uc-related,
  .uc-related-more,
  .uc-toast,
  .skip-link { display: none !important; }
  .public-hero,
  .public-band { background: none; border: 0; color: inherit; padding-block: 16px; }
  .public-hero::before { display: none; }
  .public-hero h1,
  .public-hero-lede,
  .uc-hero-eyebrow,
  .public-breadcrumb li,
  .public-breadcrumb [aria-current="page"] { color: inherit; }
  .uc-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .uc-hero-art { max-width: 420px; }
  .uc-provide,
  .uc-how li,
  .uc-steps li,
  .uc-applications > div,
  .uc-hardware-item { break-inside: avoid; }
}

/* The page outline bar earns its row only on wide screens, where it stays sticky. */
@media (max-width: 959px) {
  .uc-jump-bar { display: none; }
}
