/* ============================================================
   Ray Bridge — Components
   Product/application/case/article cards, spec plates,
   comparison tables, accordion, tabs, gallery, CTA, forms
   ============================================================ */

/* ============================================================
   SPEC PLATE — signature component ("machine data plate")
   ============================================================ */
.plate {
  border: 1px solid var(--rb-line);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.plate__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  background: var(--rb-blue-dark);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plate__head em {
  font-style: normal;
  font-size: 0.62rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--rb-blue-light);
}
.plate__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.plate__cell {
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--rb-line-soft);
}
.plate__cell:nth-child(odd) { border-right: 1px solid var(--rb-line-soft); }
.plate__cell dt {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: var(--ls-plate);
  text-transform: uppercase;
  color: var(--rb-muted);
  margin-bottom: 0.18rem;
}
.plate__cell dd {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--rb-blue-dark);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.plate__cell dd small {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--rb-muted);
  margin-left: 0.25em;
}

/* ============================================================
   BADGES / CHIPS
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.32em 0.8em;
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--rb-blue-tint);
  color: var(--rb-blue-dark);
  border: 1px solid rgba(21, 104, 167, 0.18);
}
.chip--orange { background: var(--rb-orange-tint); color: var(--rb-orange-dark); border-color: rgba(245, 123, 10, 0.25); }
.chip--line { background: transparent; border-color: var(--rb-line); color: var(--rb-muted); }
.chip--light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.35); }

/* ============================================================
   CARD — generic shell
   ============================================================ */
.site-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--rb-surface);
}
.site-image--contain { object-fit: contain; padding: clamp(0.6rem, 2vw, 1.25rem); }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-1-1 { aspect-ratio: 1 / 1; }

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--t-base), transform var(--t-base),
              border-color var(--t-base);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--rb-blue-light);
}
.card__media { position: relative; }
.card__media .media-ph { border: 0; border-radius: 0; border-bottom: 1px solid var(--rb-line); }
.card__media .site-image { border-bottom: 1px solid var(--rb-line); }
.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: var(--sp-5);
  flex: 1;
}
.card__body--tight { padding: var(--sp-4); }
.card__tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--rb-blue-dark);
  line-height: 1.15;
}
.product-card__title a { transition: color var(--t-fast); }
.product-card__title a:hover { color: var(--c-primary); }
.product-card__type {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rb-muted);
}
.product-card__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rb-line-soft);
  border: 1px solid var(--rb-line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-block: 0.35rem;
}
.product-card__spec {
  background: #fff;
  padding: 0.55rem 0.6rem;
  text-align: center;
}
.product-card__spec b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--rb-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.product-card__spec span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rb-muted);
}
.product-card__use {
  font-size: var(--fs-xs);
  color: var(--rb-muted);
  line-height: 1.55;
}
.product-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

/* ============================================================
   FEATURE CARD (icon + title + text)
   ============================================================ */
.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: var(--sp-5);
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: var(--radius-md);
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.feature:hover { box-shadow: var(--shadow-md); border-color: var(--rb-blue-light); }
.feature__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--rb-blue-tint);
  color: var(--c-primary);
}
.feature h3, .feature h4 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.feature p { font-size: var(--fs-sm); line-height: 1.6; margin: 0; }

.feature--dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
}
.feature--dark .feature__icon { background: rgba(57, 140, 196, 0.25); color: #8FC1E8; }
.feature--dark:hover { border-color: rgba(255, 255, 255, 0.4); }
.feature--dark h3, .feature--dark h4 { color: #fff; }

/* ============================================================
   APPLICATION / CASE / ARTICLE CARDS
   ============================================================ */
.tile-card { position: relative; }
.tile-card__body { padding: var(--sp-5); gap: 0.55rem; }
.tile-card__kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.tile-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--rb-blue-dark);
}
.tile-card p { font-size: var(--fs-sm); margin: 0; }
.tile-card__link {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-primary);
}
.tile-card__link svg { transition: transform var(--t-fast); }
.tile-card:hover .tile-card__link svg { transform: translateX(3px); }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: var(--fs-xs);
  color: var(--rb-muted);
}
.meta-row span { display: inline-flex; align-items: center; gap: 0.4em; }

/* ============================================================
   COMPARISON TABLE (model vs model)
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rb-line);
  border-radius: var(--radius-md);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.table-wrap:focus-visible { outline: 3px solid var(--c-focus); outline-offset: -3px; }

.spec-table {
  width: 100%;
  min-width: 640px;
  font-size: var(--fs-sm);
  border-collapse: collapse;
}
.spec-table caption {
  caption-side: top;
  text-align: left;
  padding: 0.85rem 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rb-blue-dark);
  background: var(--rb-blue-tint);
  border-bottom: 1px solid var(--rb-line);
}
.spec-table th, .spec-table td {
  padding: 0.72rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--rb-line-soft);
  vertical-align: top;
}
.spec-table thead th {
  background: var(--rb-blue-dark);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.spec-table thead th small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--rb-blue-light);
  text-transform: none;
}
.spec-table tbody th {
  font-weight: 600;
  color: var(--rb-ink);
  background: var(--rb-surface);
  width: 30%;
}
.spec-table td {
  font-variant-numeric: tabular-nums;
  color: var(--c-text);
}
.spec-table tbody tr:hover td { background: #FBFDFE; }
.spec-table tbody tr:last-child th, .spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table .tbd {
  color: var(--rb-orange-dark);
  background: var(--rb-orange-tint);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.15em 0.5em;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.table-scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.55rem;
  font-size: var(--fs-xs);
  color: var(--rb-muted);
}

/* ============================================================
   ACCORDION (FAQ etc.)
   ============================================================ */
.acc { border: 1px solid var(--rb-line); border-radius: var(--radius-md); background: #fff; overflow: hidden; }
.acc + .acc { margin-top: 0.6rem; }
.acc__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  text-align: left;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--rb-ink);
  transition: background var(--t-fast), color var(--t-fast);
}
.acc__trigger:hover { background: var(--rb-blue-tint); color: var(--c-primary); }
.acc__trigger .acc__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--rb-blue-light);
  color: var(--c-primary);
  transition: transform var(--t-base), background var(--t-fast);
}
.acc__trigger[aria-expanded="true"] {
  background: var(--rb-blue-tint);
  color: var(--rb-blue-dark);
}
.acc__trigger[aria-expanded="true"] .acc__icon {
  transform: rotate(45deg);
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
/* Without JS all panels stay visible (progressive enhancement) */
html.js .acc__panel { display: none; }
.acc__panel {
  padding: 0.25rem 1.15rem 1.2rem;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--c-text);
}
html.js .acc__panel.is-open { display: block; }
.acc__panel > * + * { margin-top: 0.7rem; }
.acc__panel ul { margin: 0.4rem 0 0; }

/* ============================================================
   TABS (product line switcher)
   ============================================================ */
.tabs { margin-bottom: var(--sp-6); }
.tabs__list { display: none; } /* revealed by JS */
html.js .tabs__list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.3rem;
  background: var(--rb-surface);
  border: 1px solid var(--rb-line);
  border-radius: var(--radius-sm);
}
.tabs__btn {
  padding: 0.55em 1.2em;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--rb-muted);
  border-radius: var(--radius-sm);
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.tabs__btn:hover { color: var(--c-primary); }
.tabs__btn[aria-selected="true"] {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.tabs__panel[hidden] { display: none; }
html.js .tabs__panel + .tabs__panel { margin-top: var(--sp-5); }

/* ---------- Scroll reveal (enhancement only) ---------- */
html.js [data-reveal="pending"] {
  opacity: 0;
  transform: translateY(14px);
}
html.js [data-reveal="in"] {
  opacity: 1;
  transform: none;
  transition: opacity var(--t-slow), transform var(--t-slow);
}

/* ============================================================
   FILTER CHIPS (cases page)
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--sp-6);
}
.filter-bar__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rb-muted);
  margin-right: 0.3rem;
}
.filter-chip {
  padding: 0.45em 1em;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-text);
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: var(--radius-pill);
  transition: all var(--t-fast);
}
.filter-chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filter-chip[aria-pressed="true"] {
  background: var(--rb-blue-dark);
  border-color: var(--rb-blue-dark);
  color: #fff;
}

/* ============================================================
   GALLERY (product detail)
   ============================================================ */
.gallery__stage .media-ph { border-radius: var(--radius-md); }
.gallery__stage .site-image { border-radius: var(--radius-md); }
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.gallery__thumb {
  position: relative;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--rb-surface);
  transition: border-color var(--t-fast);
}
.gallery__thumb:hover { border-color: var(--rb-blue-light); }
.gallery__thumb[aria-selected="true"] { border-color: var(--c-primary); }
.gallery__thumb .site-image { aspect-ratio: 1 / 1; object-fit: contain; padding: 0.25rem; }
.gallery__thumb .media-ph { border: 0; border-radius: 0; padding: 0.5rem; }
.gallery__thumb .media-ph::after { inset: 4px; }
.gallery__thumb .media-ph figcaption {
  font-size: 0.56rem;
  line-height: 1.3;
  max-width: none;
}

/* ============================================================
   QUOTE FORM PANEL
   ============================================================ */
.quote-panel {
  background: #fff;
  border: 1px solid var(--rb-line);
  border-top: 4px solid var(--c-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--sp-6);
}
.quote-panel__head { margin-bottom: var(--sp-5); }
.quote-panel__head h2, .quote-panel__head h3 { font-size: 1.55rem; }
.quote-panel__head p { font-size: var(--fs-sm); margin-top: 0.4rem; }
.quote-panel__trust {
  display: grid;
  gap: 0.55rem;
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--rb-line);
}
.quote-panel__trust li {
  display: flex;
  gap: 0.55em;
  align-items: flex-start;
  font-size: var(--fs-xs);
  color: var(--rb-muted);
  line-height: 1.5;
  list-style: none;
}
.quote-panel__trust svg { color: var(--c-primary); flex: none; margin-top: 1px; }
.quote-panel__trust ul { padding: 0; margin: 0; display: contents; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background:
    linear-gradient(120deg, var(--rb-blue-dark) 0%, var(--rb-blue) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: clamp(1.8rem, 1.2rem + 2.5vw, 3.2rem);
  display: grid;
  gap: var(--sp-5);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #D5E2EC; margin-top: 0.5rem; }
.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ============================================================
   STEPS (working process — real sequences only)
   ============================================================ */
.steps {
  display: grid;
  gap: var(--sp-5);
  counter-reset: step;
}
.step {
  position: relative;
  padding: var(--sp-5);
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: var(--radius-md);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--rb-blue-light);
  opacity: 0.55;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.step p { font-size: var(--fs-sm); margin: 0; }

/* ============================================================
   CHECKLIST
   ============================================================ */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.checklist li {
  display: flex;
  gap: 0.65em;
  align-items: flex-start;
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.checklist svg {
  flex: none;
  margin-top: 3px;
  color: var(--c-primary);
}
.checklist--orange svg { color: var(--c-accent); }

/* ============================================================
   DOWNLOAD CARD
   ============================================================ */
.download-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: var(--radius-md);
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.download-card:hover { box-shadow: var(--shadow-md); border-color: var(--rb-blue-light); }
.download-card__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--rb-blue-tint);
  color: var(--c-primary);
}
.download-card__body { flex: 1; min-width: 0; }
.download-card__body b { display: block; font-size: var(--fs-sm); color: var(--rb-ink); }
.download-card__body span { font-size: var(--fs-xs); color: var(--rb-muted); }

/* ============================================================
   STAT BLOCK (only verified numbers; else .ph-tag)
   ============================================================ */
.stat {
  padding: var(--sp-5);
  border-left: 3px solid var(--c-accent);
  background: #fff;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--rb-blue-dark);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block;
  margin-top: 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rb-muted);
}
.stat--dark { background: rgba(255,255,255,0.06); border-left-color: var(--c-accent); }
.stat--dark b { color: #fff; }
.stat--dark span { color: #9FB9CD; }

/* ============================================================
   NOTICE / INFO BOX (articles & details)
   ============================================================ */
.notice {
  display: flex;
  gap: 0.8rem;
  padding: var(--sp-4) var(--sp-5);
  background: var(--rb-blue-tint);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  line-height: 1.65;
}
.notice svg { flex: none; color: var(--c-primary); margin-top: 3px; }
.notice--warn { background: var(--rb-orange-tint); border-left-color: var(--c-accent); }
.notice--warn svg { color: var(--c-accent); }

/* ============================================================
   SPLIT MEDIA (image + content half)
   ============================================================ */
.split {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}
.split__media { min-width: 0; }
.split__media .media-ph { border-radius: var(--radius-md); }
.split__content > * + * { margin-top: var(--sp-4); }
.split__content .checklist { margin-top: var(--sp-4); }

/* ============================================================
   TABLE OF CONTENTS (articles)
   ============================================================ */
.toc {
  background: var(--rb-surface);
  border: 1px solid var(--rb-line);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
}
.toc__title {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rb-muted);
  margin-bottom: var(--sp-3);
}
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 0.5rem; font-size: var(--fs-sm); }
.toc a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
.toc a:hover { color: var(--rb-blue-dark); }

/* ============================================================
   ARTICLE / PROSE
   ============================================================ */
.prose { font-size: var(--fs-body-lg); line-height: 1.78; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: 1.9rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.4rem; margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: 0.45rem; }
.prose .table-wrap { margin-top: 1.4rem; }
.prose figure { margin: 1.6rem 0; }
.prose figcaption {
  margin-top: 0.55rem;
  font-size: var(--fs-xs);
  color: var(--rb-muted);
  text-align: center;
}

/* ============================================================
   HEADER SEARCH — toggle button + drop panel (client-side)
   ============================================================ */
.header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--rb-blue-dark);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.header-search-btn:hover { background: var(--rb-blue-tint); color: var(--c-primary); }
.header-search-btn:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.header-search-btn[aria-expanded="true"] { background: var(--rb-blue-tint); color: var(--c-primary); }

.search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 60;                    /* above mega menu, below drawer */
  background: #fff;
  color: var(--c-text);
  border-top: 3px solid var(--c-primary);
  border-bottom: 1px solid var(--rb-line);
  box-shadow: 0 24px 48px -24px rgba(9, 42, 71, 0.35);
}
.search-panel__inner {
  display: grid;
  gap: var(--sp-4);
  padding-block: var(--sp-4) var(--sp-5);
}
.search-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 2px solid var(--rb-line);
  padding-block: 0.35rem;
}
.search-form:focus-within { border-bottom-color: var(--c-primary); }
.search-form > svg { color: var(--rb-blue); flex: none; }
.search-form__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  color: var(--c-heading);
  padding: 0.5rem 0;
}
.search-form__input:focus { outline: none; }
.search-form__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-form__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--rb-muted);
  cursor: pointer;
}
.search-form__close:hover { background: var(--rb-blue-tint); color: var(--c-primary); }

.search-results {
  display: grid;
  gap: 0.25rem;
  max-height: min(52vh, 26rem);
  overflow-y: auto;
}
.search-results__item {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
}
.search-results__item b {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--rb-blue-dark);
  line-height: 1.25;
}
.search-results__item span {
  display: block;
  font-size: var(--fs-sm);
  color: var(--rb-muted);
  margin-top: 0.15rem;
}
.search-results__item:hover,
.search-results__item.is-active { background: var(--rb-blue-tint); }
.search-results__empty {
  font-size: var(--fs-sm);
  color: var(--rb-muted);
  padding: 0.5rem 0.75rem;
  margin: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .search-panel.is-open { animation: search-drop 0.16s ease-out; }
  @keyframes search-drop {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* Empty state (no real cases yet) */
.empty-state {
  text-align: center;
  padding: var(--sp-9) var(--sp-5);
  border: 1.5px dashed var(--rb-line);
  border-radius: var(--radius-md);
  background: var(--rb-surface);
}
.empty-state h3 { margin-bottom: 0.5rem; }
.empty-state p {
  margin-inline: auto;
  max-width: 52ch;
  font-size: var(--fs-sm);
  color: var(--rb-muted);
}

/* ============================================================
   PRODUCT GALLERY V2 — single-row thumbnail carousel + lightbox
   ============================================================ */
.gallery__stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: zoom-in;
}
.gallery__stage .site-image {
  display: block;
  width: 100%;
}
.gallery__zoom {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 42, 72, 0.88);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  cursor: zoom-in;
  z-index: 2;
  transition: transform var(--t-fast), background var(--t-fast);
}
.gallery__zoom:hover,
.gallery__zoom:focus-visible {
  background: var(--c-primary);
  transform: scale(1.05);
}
.gallery__zoom svg { width: 1.25rem; height: 1.25rem; }

.gallery__thumb-shell {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) 2.35rem;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
}
.gallery__thumbs {
  display: flex;
  grid-template-columns: none;
  gap: 0.6rem;
  margin-top: 0;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb {
  flex: 0 0 clamp(70px, 18%, 96px);
  scroll-snap-align: start;
}
.gallery__thumb-nav {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--rb-line);
  border-radius: 999px;
  background: #fff;
  color: var(--c-primary);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.gallery__thumb-nav:hover,
.gallery__thumb-nav:focus-visible {
  border-color: var(--c-primary);
  background: var(--c-primary);
  color: #fff;
}
.gallery__thumb-nav[disabled] {
  opacity: .35;
  cursor: default;
  background: #fff;
  color: var(--rb-text-muted);
  border-color: var(--rb-line);
}
.gallery__thumb-nav svg { width: 1rem; height: 1rem; }

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(5, 17, 31, .92);
}
.gallery-lightbox.is-open { display: flex; }
.gallery-lightbox__image {
  display: block;
  max-width: min(94vw, 1400px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: .4rem;
  background: #fff;
}
.gallery-lightbox__close,
.gallery-lightbox__prev,
.gallery-lightbox__next {
  position: absolute;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(13, 40, 70, .72);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.gallery-lightbox__close { top: 1rem; right: 1rem; }
.gallery-lightbox__prev { left: max(1rem, 2.5vw); top: 50%; transform: translateY(-50%); }
.gallery-lightbox__next { right: max(1rem, 2.5vw); top: 50%; transform: translateY(-50%); }
.gallery-lightbox__close:hover,
.gallery-lightbox__prev:hover,
.gallery-lightbox__next:hover { background: var(--c-primary); }
.gallery-lightbox svg { width: 1.25rem; height: 1.25rem; }
body.gallery-lightbox-open { overflow: hidden; }

@media (max-width: 600px) {
  .gallery__thumb-shell {
    grid-template-columns: 2rem minmax(0, 1fr) 2rem;
    gap: .35rem;
  }
  .gallery__thumb-nav { width: 2rem; height: 2rem; }
  .gallery__thumb { flex-basis: 76px; }
  .gallery__zoom { right: .55rem; bottom: .55rem; width: 2.5rem; height: 2.5rem; }
  .gallery-lightbox__prev,
  .gallery-lightbox__next { width: 2.6rem; height: 2.6rem; }
}
