/* ==========================================================================
   Giganeed Reference Register — Catalogue, Spec Console & Elite Showcase
   Follows friendly typographic hierarchy: Signal Orange #F83800, Graphite #1E1E1C,
   Plus Jakarta Sans headings with round orange stop, Inter UI + body.
   ========================================================================== */

.reg {
  --ink: #1e1e1c;
  --graphite: #1b1c1a;
  --dim: #5a5954;
  --muted: #7a7972;
  --line: #d8d7d0;
  --line-soft: #e6e5de;
  --sheet: #f3f2ee;
  --sheet-warm: #faf9f6;
  --orange: #f83800;
  --orange-deep: #c42c00;
  --orange-soft: #ff8a5c;
  --head: "Plus Jakarta Sans", Arial, sans-serif;
  --body: "Inter", Arial, sans-serif;
  --mono: "Inter", Arial, sans-serif;
  color: var(--ink);
  font-family: var(--body);
  background: #fff;
}
.reg *, .reg *::before, .reg *::after { box-sizing: border-box; }
.reg :is(p, h1, h2, h3, ul, dl, dd, fieldset) { margin: 0; }
.reg fieldset { padding: 0; border: 0; }
.reg a { color: inherit; text-decoration: none; }
.reg :is(button, select, input) { font: inherit; color: inherit; }
.reg :is(summary, button, select, label:has(input)) { cursor: pointer; }
.reg :is(button, select) { background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.reg :focus-visible { outline: 3px solid #884022; outline-offset: 2px; }
.reg [hidden], .reg:not(.reg-ready) .reg-js { display: none !important; }
.reg .wrap { width: min(100% - clamp(40px, 9vw, 160px), 1500px); margin-inline: auto; }
.reg summary { list-style: none; }
.reg summary::-webkit-details-marker { display: none; }
.reg :is(a, summary, input, button, select) { scroll-margin-block: calc(var(--reg-mast, 84px) + 110px) 72px; }
.reg [tabindex="-1"] { scroll-margin-top: 200px; }
.reg[aria-busy="true"] .reg-results { opacity: .55; transition: opacity .15s ease; }

.reg-kicker,
.reg-mono,
.reg-specs dt,
.reg-index small {
  font: 600 12.5px/1.4 var(--body);
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}
.reg-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.reg-kicker::before { content: ""; width: 22px; height: 3px; background: var(--orange); }

/* ==========================================================================
   1. Catalogue Hero (Light Default + Dark Graphite Giganeed Elite Showcase)
   ========================================================================== */
.reg .reg-head {
  position: relative;
  isolation: isolate;
  background: var(--sheet);
  color: var(--ink);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.reg .reg-head-inner {
  min-height: clamp(208px, 17vw, 265px);
  display: flex;
  align-items: center;
  padding-block: 32px;
}
.reg-head-copy { width: 54%; position: relative; z-index: 2; }
.reg .reg-head h1 {
  color: var(--ink);
  font: 700 clamp(36px, 4.6vw, 68px)/1.05 var(--head);
  letter-spacing: -.035em;
  margin: 12px 0;
}
.reg .reg-intro {
  font-size: clamp(15px, 1.13vw, 18px);
  line-height: 1.5;
  max-width: 48ch;
  color: var(--dim);
}
.catalogue-cover {
  position: absolute;
  inset: 0 0 0 55%;
  z-index: 0;
  overflow: hidden;
  background: #ebeae4;
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
}
.catalogue-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  display: block;
}

/* ---------- Premium Dark Studio Giganeed Elite Hero ---------- */
.reg .reg-head.reg-head--elite {
  background: #171715;
  color: #f7f6f1;
  border-bottom-color: #2c2d29;
}
.reg-head--elite .reg-head-inner {
  min-height: clamp(320px, 26vw, 410px);
  padding-block: clamp(36px, 4vw, 56px);
}
.reg-head--elite .reg-head-copy { width: 43%; }
.reg .reg-head.reg-head--elite h1 { color: #f7f6f1; }
.reg .reg-head.reg-head--elite .reg-intro { color: #cfcdc5; max-width: 40ch; }
.reg-head--elite .catalogue-cover {
  inset: 0 0 0 40%;
  background: #171715;
  clip-path: none;
}
.reg-head--elite .catalogue-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
.reg-head--elite .catalogue-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #171715 0%, #171715b8 8%, transparent 22%),
    linear-gradient(180deg, #17171555 0%, transparent 16%, transparent 86%, #17171566 100%);
}
.reg-cover-caption {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 3vw, 48px);
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid #343530;
  border-radius: 3px;
  background: #141413d9;
  color: #eceae5;
  font: 500 12px/1.3 var(--body);
  letter-spacing: 0;
  text-transform: none;
}
.reg-cover-caption i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}
.reg-head--elite .reg-kicker { color: var(--orange-soft); }
.reg-elite-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.reg-elite-switch a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #3f403b;
  border-radius: 4px;
  background: #20211e;
  color: #ecebe4;
  font: 600 13.5px/1.2 var(--body);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.reg-elite-switch a small {
  font: 500 11px/1 var(--mono);
  color: var(--orange-soft);
}
.reg-elite-switch a:hover {
  border-color: var(--orange);
  background: #282925;
}
.reg-elite-switch a[aria-current="page"] {
  background: #fff;
  border-color: #fff;
  color: var(--graphite);
}
.reg-elite-switch a[aria-current="page"] small {
  color: var(--orange-deep);
}

/* ==========================================================================
   2. Architectural 5-Column Category Index Ribbon + Family Sub-Nav
   ========================================================================== */
.reg-index {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 15;
}
.reg-index-toggle > summary { display: none; }
.reg-index > .wrap {
  display: grid;
  grid-template-columns: minmax(145px, .82fr) minmax(150px, .92fr) minmax(125px, .76fr) minmax(215px, 1.25fr) minmax(230px, 1.15fr);
  align-items: stretch;
}
.reg-index-all,
.reg-family {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 13px clamp(10px, 1.25vw, 18px);
  border-inline-start: 1px solid var(--line-soft);
  transition: background-color .15s ease;
}
.reg-index-all { border-inline-start: 0; }
.reg-index > .wrap > :last-child { border-inline-end: 0; }
.reg-index-all:hover,
.reg-family:not(.reg-family--elite):hover { background: var(--sheet-warm); }
.reg-family > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.reg-index-all,
.reg-family > a {
  font: 600 14px/1.25 var(--body);
  color: var(--ink);
}
.reg-fam-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reg-fam-bar {
  width: 14px;
  height: 4px;
  flex: none;
  background: var(--dim);
}
.reg-fam-bar.is-all { background: var(--ink); width: 10px; }
.reg-fam-bar.is-copper { background: #2f6db5; }
.reg-fam-bar.is-fiber { background: linear-gradient(90deg, #e7bb15 50%, #00a3ad 50%); }
.reg-fam-bar.is-cab { background: #56636e; }
.reg-fam-bar.is-elite { background: var(--orange); }

.reg-index small {
  flex: none;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--sheet);
  color: var(--dim);
  font-size: 11.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.reg-index .current:not(.reg-family--elite),
.reg-index-all[aria-current="page"] {
  background: #fff;
}
.reg-index .current::after,
.reg-index-all[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--orange);
}

/* Vector chevron dropdown trigger */
.reg-family details { flex: none; position: static; }
.reg-family summary {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: var(--dim);
  transition: background-color .15s ease, color .15s ease;
}
.reg-family summary:hover { background: var(--sheet); color: var(--ink); }
.reg-family summary svg { transition: transform .18s ease; }
.reg-family details[open] > summary svg { transform: rotate(180deg); }

/* Dropdown menu */
.reg-menu {
  position: absolute;
  z-index: 25;
  top: calc(100% + 1px);
  left: -1px;
  right: -1px;
  min-width: 245px;
  background: #fff;
  border: 1px solid #b9b8af;
  border-top: 2px solid var(--ink);
  border-radius: 0 0 6px 6px;
  padding: 6px;
  box-shadow: 0 12px 28px #1e1e1c17;
}
.reg-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  font: 500 13.5px/1.3 var(--body);
  color: var(--ink);
}
.reg-menu a small {
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
}
.reg-menu a:hover,
.reg-menu a[aria-current="page"] {
  background: var(--sheet);
}
.reg-menu a[aria-current="page"] {
  font-weight: 600;
  color: var(--orange-deep);
}

/* ---------- Premium Flagship Giganeed Elite Tab ---------- */
.reg-family.reg-family--elite {
  background: var(--graphite);
  color: #f7f6f1;
  border-inline-start-color: var(--graphite);
  margin-block: -1px;
}
.reg-family--elite:hover { background: #262723; }
.reg-family--elite > a { color: #f7f6f1; }
.reg-family--elite .reg-fam-bar.is-elite { display: none; }
.reg-fam-elite-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.reg-fam-elite-logo img {
  width: 84px;
  height: auto;
  display: block;
}
.reg-fam-elite-tag {
  font: 600 11px/1 var(--body);
  font-style: normal;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-soft);
  padding-top: 3px;
}
.reg-fam-elite-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
  box-shadow: 0 0 0 3px #f8380033;
}
.reg-family--elite small {
  background: #2c2d29;
  color: var(--orange-soft);
  border: 1px solid #3f403b;
}
.reg-family--elite summary { color: #bdbcb3; }
.reg-family--elite summary:hover { background: #31322d; color: #fff; }
.reg-family--elite.current { background: #141513; }
.reg-family--elite .reg-menu--elite {
  left: auto;
  right: 0;
  background: var(--graphite);
  border-color: #3f403b;
  border-top: 2px solid var(--orange);
  color: #f7f6f1;
}
.reg-menu--elite a { color: #ecebe4; }
.reg-menu--elite a small { color: var(--orange-soft); background: none; border: 0; }
.reg-menu--elite a:hover,
.reg-menu--elite a[aria-current="page"] { background: #2b2c28; color: #fff; }

/* Active Family Sub-Category Pill Strip */
.reg-subnav {
  background: var(--sheet-warm);
  border-bottom: 1px solid var(--line-soft);
}
.reg-subnav-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding-block: 11px;
}
.reg-subnav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font: 500 13px/1.2 var(--body);
  color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease;
}
.reg-subnav a small {
  font: 500 11px/1 var(--mono);
  color: var(--muted);
}
.reg-subnav a:hover { border-color: var(--ink); }
.reg-subnav a[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.reg-subnav a[aria-current="page"] small { color: var(--orange-soft); }

/* ==========================================================================
   3. Workspace Grid, Command Toolbar & Creative Spec Console (Left Rail)
   ========================================================================== */
.reg-work { padding-block: clamp(24px, 3vw, 44px) 64px; }
.reg-form { position: relative; z-index: 5; }

/* Top Command Toolbar */
.reg-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.reg-search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.reg-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 36px 0 13px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.reg-search:focus-within {
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px #f838001f;
}
.reg-search svg { width: 19px; height: 19px; flex: none; color: var(--dim); }
.reg-search input {
  border: 0;
  outline: none;
  min-width: 0;
  flex: 1;
  width: 100%;
  height: 100%;
  background: transparent;
  font-size: 15px;
}
.reg-search input::placeholder { color: var(--muted); }
.reg-search-clear {
  position: absolute;
  right: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-size: 18px;
  line-height: 1;
  color: var(--dim);
}
.reg-search-clear:hover { background: #e3e2da; color: var(--ink); }

.reg-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.reg-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 13.5px/1.2 var(--body);
  color: var(--dim);
}
.reg .reg-sort select {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: 500 13.5px/42px var(--body);
}
.reg .reg-sort select:hover { border-color: #9e9d95; }

/* Segmented Icon View Switcher */
.reg-view-switch {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 3px;
  gap: 2px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.reg-view-switch label {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: var(--dim);
  transition: background-color .15s ease, color .15s ease;
}
.reg-view-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.reg-view-switch svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reg-view-switch label:hover { color: var(--ink); }
.reg-view-switch label:has(input:checked) {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.reg-view-switch label:has(input:focus-visible) {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

/* ---------- Creative Left Filter Console ---------- */
.reg-filter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.reg .filter-title {
  font: 700 24px/1.1 var(--head);
  letter-spacing: -.025em;
}
.reg-filter-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.reg-active-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--orange);
  color: #fff;
  font: 500 11px/1 var(--mono);
  font-style: normal;
}
.reg-reset-inline {
  font: 500 12.5px/1 var(--body);
  color: var(--orange-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reg-scale-bar {
  height: 8px;
  margin: 12px 0 14px;
  border-top: 1px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, #8b8a82 0 1px, transparent 1px 40px) top left / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, #c6c5bd 0 1px, transparent 1px 8px) top left / 100% 4px no-repeat;
}

/* Elite Spotlight Card inside the Filter Rail */
.reg-elite-callout {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 14px 13px;
  margin-bottom: 14px;
  background: var(--graphite);
  color: #f7f6f1;
  border-radius: 5px;
  border-left: 3px solid var(--orange);
  transition: background-color .15s ease;
}
.reg-elite-callout:hover { background: #262723; }
.reg-elite-callout.is-active {
  border: 1px solid #3c3d37;
  border-left: 3px solid var(--orange);
  box-shadow: inset 0 0 0 1px #f8380024;
}
.reg-elite-callout-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.reg-elite-callout-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.reg-elite-callout-logo img {
  width: 118px;
  height: auto;
  display: block;
}
.reg-elite-callout-tier {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 11px/1 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-soft);
}
.reg-elite-callout-tier::before,
.reg-elite-callout-tier::after {
  content: "";
  width: 16px;
  height: 1.5px;
  background: var(--orange);
}
.reg-elite-callout-top small {
  font: 500 11px/1 var(--mono);
  color: var(--orange-soft);
  padding: 3px 6px;
  border-radius: 3px;
  background: #282925;
  border: 1px solid #3c3d37;
  flex: none;
}
.reg-elite-callout-sub {
  font-size: 12.5px;
  line-height: 1.38;
  color: #bdbcb4;
}

/* Filter Accordions */
.reg-panel .reg-facets { display: block; border: 0; padding: 0; }
.reg-group { border-bottom: 1px solid var(--line-soft); }
.reg-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 2px;
  font: 600 14px/1.25 var(--body);
  color: var(--ink);
}
.reg-group summary::after {
  content: "+";
  font: 500 15px/1 var(--mono);
  color: var(--muted);
}
.reg-group[open] > summary::after { content: "−"; color: var(--ink); }
.reg-group-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.reg-group-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--orange);
  color: #fff;
  font: 500 10.5px/1 var(--mono);
  font-style: normal;
}

/* Grouped Product Types */
.reg-type-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 14px;
}
.reg-type-fam {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 4px 2px 3px;
  font: 600 12px/1.25 var(--body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.reg-type-fam:first-child { margin-top: 0; }
.reg-type-fam .reg-fam-bar { width: 10px; height: 3px; }
.reg-type-fam.is-elite { color: var(--orange-deep); }

.reg-type-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 7px;
  border-radius: 4px;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--dim);
  transition: background-color .14s ease, color .14s ease, opacity .14s ease;
}
.reg-type-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.reg-check-box {
  width: 15px;
  height: 15px;
  flex: none;
  border: 1.5px solid #b5b4ac;
  border-radius: 3px;
  background: #fff;
  display: grid;
  place-items: center;
  transition: background-color .14s ease, border-color .14s ease;
}
.reg-type-item:hover { background: var(--sheet); color: var(--ink); }
.reg-type-item:hover .reg-check-box { border-color: var(--ink); }
.reg-type-item:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 1px; }
.reg-type-item.is-checked,
.reg-type-item:has(input:checked) {
  background: #fdf2ee;
  color: var(--ink);
  font-weight: 600;
}
.reg-type-item.is-checked .reg-check-box,
.reg-type-item:has(input:checked) .reg-check-box {
  background: var(--orange);
  border-color: var(--orange);
}
.reg-type-item.is-checked .reg-check-box::after,
.reg-type-item:has(input:checked) .reg-check-box::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 1.8px solid #fff;
  border-bottom: 1.8px solid #fff;
  transform: rotate(-45deg) translate(.5px, -.8px);
}
.reg-type-name { flex: 1; min-width: 0; }
.reg-type-item small {
  margin-left: auto;
  font: 500 11px/1 var(--mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.reg-type-item.is-checked small,
.reg-type-item:has(input:checked) small { color: var(--orange-deep); }
.reg-type-item.is-zero { opacity: .38; }

/* Tactile Spec Chip Matrix */
.reg-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 2px 0 14px;
}
.reg-chips--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.reg-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 33px;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: 500 12.5px/1.15 var(--body);
  color: var(--ink);
  transition: background-color .14s ease, border-color .14s ease, color .14s ease, opacity .14s ease;
}
.reg-chips--3 .reg-chip {
  padding: 6px 6px;
  gap: 3px;
  font-family: var(--mono);
  font-size: 11.5px;
}
.reg-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.reg-chip-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reg-chip-n {
  font: 500 10.5px/1 var(--mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.reg-chip:hover {
  border-color: var(--ink);
  background: var(--sheet-warm);
}
.reg-chip:has(input:focus-visible) {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}
.reg-chip.is-checked,
.reg-chip:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--orange);
}
.reg-chip.is-checked .reg-chip-n,
.reg-chip:has(input:checked) .reg-chip-n {
  color: var(--orange-soft);
}
.reg-chip.is-zero {
  opacity: .36;
  background: var(--sheet-warm);
}

/* IEC Authentic Fiber Jacket Color Dots */
.reg-fiber-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: #8b8a82;
}
.reg-chip[data-fiber="os2"] .reg-fiber-dot { background: #e7bb15; box-shadow: inset 0 0 0 1px #b5920c; }
.reg-chip[data-fiber="om1"] .reg-fiber-dot { background: #e87722; }
.reg-chip[data-fiber="om2"] .reg-fiber-dot { background: #f28c00; }
.reg-chip[data-fiber="om3"] .reg-fiber-dot { background: #00a3ad; }
.reg-chip[data-fiber="om4"] .reg-fiber-dot { background: #c4328f; }
.reg-chip[data-fiber="om5"] .reg-fiber-dot { background: #7ab800; }
.reg-chips--fiber .reg-chip { justify-content: flex-start; gap: 6px; }
.reg-chips--fiber .reg-chip-n { margin-left: auto; }

/* Filter Shell Mobile Summary & Apply Bar */
.reg-filter-shell > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 14px;
}
.reg-apply {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}
.reg-apply a, .reg-link { text-decoration: underline; text-underline-offset: 3px; }
.reg .reg-action {
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--orange);
  padding: 10px 18px;
  font-weight: 600;
  transition: background-color .15s ease;
}
.reg .reg-action:hover { background: var(--orange-deep); }
.reg-ready .reg-filter-shell > summary,
.reg-ready .reg-filter-shell .reg-apply { display: none; }

/* Active Filter Selection Pills */
.reg-selections {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 13px;
}
.reg-sel-label {
  font: 600 12px/1 var(--body);
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  margin-right: 2px;
}
.reg-sel-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12.5px;
  transition: border-color .15s ease, background-color .15s ease;
}
.reg-sel-chip:hover { border-color: var(--ink); background: #eae8e0; }
.reg-sel-k {
  font: 600 12px/1 var(--body);
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}
.reg-sel-chip b { font-weight: 600; color: var(--ink); }
.reg-sel-x { color: var(--orange-deep); font-weight: 600; }
.reg-sel-clear {
  margin-left: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   4. Results Header & Refined Product Cards (Grid, List & Compact Views)
   ========================================================================== */
.reg-results { scroll-margin-top: 200px; }
.reg-results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 0 16px;
}
.reg .reg-results-head h2 {
  font: 700 clamp(22px, 2vw, 32px)/1.08 var(--head);
  letter-spacing: -.025em;
}
.reg-results-head .reg-mono {
  font: 500 13px/1.4 var(--body);
  text-transform: none;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* Base List Layout (Register / Compact modes) */
.reg-list { padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.reg-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.1fr) minmax(135px, .42fr);
  align-items: start;
  gap: clamp(14px, 2.2vw, 32px);
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.reg-id { min-width: 0; display: flex; gap: 15px; align-items: flex-start; }
.reg-photo {
  position: relative;
  flex: none;
  width: clamp(72px, 6.4vw, 100px);
  aspect-ratio: 1;
  background: #f5f4f0;
  border: 1px solid #ecebe4;
  border-radius: 6px;
  overflow: hidden;
}
.reg-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.03) brightness(1.015);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.reg-identity { min-width: 0; }
.reg .reg-identity .gn-tab {
  font: 500 12px/1.3 var(--body);
  text-transform: none;
  letter-spacing: 0;
  color: var(--dim);
}
.reg .reg-identity .gn-tab-code { font: inherit; text-transform: none; letter-spacing: inherit; }
.reg .reg-identity h3 {
  font: 600 clamp(16.5px, 1.25vw, 19.5px)/1.25 var(--head);
  letter-spacing: -.018em;
  margin: 6px 0 5px;
}
.reg-identity h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.reg .reg-sku {
  display: inline-block;
  width: fit-content;
  font: 500 12.5px/1.4 var(--mono);
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  color: var(--dim);
  overflow-wrap: anywhere;
}
.reg-sku:is(:hover, :focus-visible) span {
  background: #f6e5da;
  border-bottom: 2px solid var(--orange-deep);
}
.reg-sku:hover, .reg-sku:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* Elite Corner Stamp */
.reg-elite-badge {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 3px;
  background: var(--graphite);
  color: #f7f6f1;
  font: 600 11px/1 var(--body);
  letter-spacing: .01em;
  text-transform: none;
  border: 1px solid #353631;
}
.reg-elite-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}
.reg-list:not(.reg-cards) .reg-elite-badge {
  top: 4px;
  left: 4px;
  padding: 2px 5px;
  font-size: 8.5px;
}

/* Subtle Key Spec Micro-Pills (Grid cards only — List/Compact already open full specs) */
.reg-card-chips {
  display: none;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.reg-card-chips li {
  padding: 3px 7px;
  border-radius: 3px;
  background: var(--sheet);
  border: 1px solid #e5e4dc;
  color: #3d3c38;
  font: 500 11px/1.25 var(--mono);
  letter-spacing: .01em;
}
.reg-cards .reg-card-chips { display: flex; }

/* Specifications Accordion & Part-Number Guide */
.reg-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  font: 500 13.5px/1.3 var(--body);
  color: var(--ink);
  border-block: 1px solid var(--line-soft);
  transition: color .14s ease;
}
.reg-details > summary:hover { color: var(--orange-deep); }
.reg-details > summary::after { content: "+"; font: 500 16px/1 var(--mono); color: var(--muted); }
.reg-details[open] > summary::after { content: "−"; color: var(--ink); }
.reg-details .reg-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  padding: 12px 0;
}
.reg-details .reg-specs dt {
  font: 600 12px/1.3 var(--body);
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 2px;
}
.reg-details .reg-specs dd { font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; }
.reg-decode { margin-top: 4px; font-size: 13px; }
.reg-decode summary, .reg-copy { color: var(--dim); }
.reg-decode summary::before { content: "+ "; font-family: var(--mono); }
.reg-decode[open] summary::before { content: "− "; }
.reg-decode dl { margin: 8px 0; }
.reg-decode dt { font-family: var(--mono); font-weight: 600; font-size: 12px; }
.reg-decode dd { margin: 0 0 6px; font-size: 12.5px; color: var(--dim); }
.reg-more-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 0 4px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
}
.reg-more-actions a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.reg .reg-copy { padding: 2px 0; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; font-size: 12.5px; }
.reg .reg-copy:hover { color: var(--ink); }

/* Bottom Action Tools (Datasheet + Compare) */
.reg-tools {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
}
.reg-pdf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 6px;
  margin-left: -6px;
  border-radius: 4px;
  font: 600 13.5px/1.2 var(--body);
  color: var(--ink);
  transition: background-color .14s ease, color .14s ease;
}
.reg-pdf svg { width: 17px; height: 17px; flex: none; }
.reg-pdf small {
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--sheet);
  font: 600 10.5px/1 var(--body);
  letter-spacing: .02em;
  color: var(--orange-deep);
}
.reg-pdf:hover { background: var(--sheet); color: var(--orange-deep); }

.reg-compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: 500 13px/1.2 var(--body);
  color: var(--dim);
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.reg-compare-toggle:hover { background: var(--sheet); color: var(--ink); }
.reg-compare-toggle input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--orange);
  flex: none;
  margin: 0;
}
.reg-compare-toggle:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.reg-tools .reg-review-row {
  display: none;
  padding: 6px 10px;
  font: 600 12.5px/1.2 var(--body);
  border-color: var(--ink);
  color: var(--ink);
}
.reg-tools .reg-review-row:hover { background: var(--ink); color: #fff; }
.reg-ready .reg-tools:has(input:checked) .reg-review-row { display: inline-flex; justify-content: center; }

/* ==========================================================================
   5. Grid View — Refined Product Card Tweaks (Clean Architectural Frame)
   ========================================================================== */
.reg-list.reg-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 1.8vw, 24px);
  border: 0;
}
.reg-cards .reg-row {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s ease, background-color .2s ease;
}
/* Crisp hairline top-accent bar on hover (flat, no drop shadow per DESIGN.md) */
.reg-cards .reg-row::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s cubic-bezier(.22, 1, .36, 1);
}
.reg-cards .reg-row:hover { border-color: #c6c5bc; }
.reg-cards .reg-row:hover::before { transform: scaleX(1); }
.reg-cards .reg-row.is-compared {
  border-color: var(--ink);
  background: var(--sheet-warm);
}
.reg-cards .reg-row.is-compared::before { transform: scaleX(1); background: var(--ink); }

/* Elite Card subtle flagship styling */
.reg-cards .reg-row.is-elite {
  border-color: #d3d1c8;
  background: #fff;
}
.reg-cards .reg-row.is-elite::before {
  background: var(--graphite);
  transform: scaleX(1);
}
.reg-cards .reg-row.is-elite:hover { border-color: #8f8d84; }
.reg-cards .reg-row.is-elite:hover::before { background: var(--orange); }
.reg-cards .reg-row.is-elite .reg-card-chips li {
  background: #f1f0ea;
  border-color: #dcdad1;
}

.reg-cards .reg-id {
  flex-direction: column;
  width: 100%;
  gap: 14px;
  flex: 1;
}
.reg-cards .reg-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1.56;
  background: #f5f4f0;
  border: 1px solid #ecebe4;
  border-radius: 6px;
}
.reg-cards .reg-photo img {
  display: block;
  padding: 5% 6%;
}
.reg-cards .reg-row:hover .reg-photo img { transform: scale(1.038); }
.reg-cards .reg-photo::after {
  content: "↗";
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.reg-cards .reg-row:hover .reg-photo::after,
.reg-cards .reg-photo:focus-visible::after {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translate(1px, -1px);
}

.reg-cards .reg-identity {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.reg-cards .reg-details {
  margin-top: auto;
  padding-top: 14px;
}
.reg-cards .reg-tools {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding-top: 10px;
  gap: 8px;
}
.reg-cards .reg-review-row { flex-basis: 100%; }

/* Compact & List Adjustments */
.reg-compact .reg-photo { display: none; }
.reg-compact .reg-row { padding-block: 11px; }
.reg-compact .reg-specs { gap: 4px 12px; }
.reg-list:not(.reg-cards) .reg-details { width: 100%; }
.reg-list:not(.reg-cards) .reg-tools { gap: 6px; }
.reg-list:not(.reg-cards) .reg-row.is-elite {
  border-left: 3px solid var(--graphite);
  padding-left: 14px;
}

/* Empty State */
.reg-empty-box {
  padding: 40px 24px;
  background: var(--sheet-warm);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.reg-empty { margin-bottom: 10px; font-size: 16px; color: var(--ink); }

/* ==========================================================================
   6. Comparison Sticky Tray & Dialog Modals
   ========================================================================== */
.reg-tray {
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: var(--graphite);
  color: #fff;
  border-top: 2px solid var(--orange);
}
.reg-tray :focus-visible { outline-color: #fff; }
.reg-tray > .wrap, .reg-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.reg-tray > .wrap { justify-content: space-between; padding-block: 12px; }
.reg-tray .reg-picked button {
  color: #fff;
  border-color: #5c5d57;
  background: #282925;
  padding: 6px 10px;
  font: 500 12px var(--mono);
  border-radius: 4px;
}
.reg-tray .reg-picked button:hover { border-color: var(--orange-soft); }

.reg-dialog {
  width: min(94vw, 1040px);
  max-height: 85dvh;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
}
.reg-dialog::backdrop { background: #18191599; }
.reg-dialog-bar {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
  padding: 13px 18px;
}
.reg-dialog-bar button { padding: 7px 12px; font-weight: 500; }
.reg-matrix, .reg-dialog-body { padding-block: 24px; }
.reg-dialog-body { padding-inline: 20px; }
.reg-matrix-scroll { overflow-x: auto; margin-top: 18px; }
.reg-matrix-scroll table { width: 100%; border-collapse: collapse; font-size: 14px; }
.reg-matrix-scroll :is(th, td) { text-align: left; vertical-align: top; border: 1px solid var(--line); padding: 10px; min-width: 125px; }
.reg-matrix-scroll thead { background: var(--ink); color: #fff; font-family: var(--mono); }
.reg-matrix-scroll a { text-decoration: underline; }
.reg-matrix-scroll tbody th { background: var(--sheet); }

/* ==========================================================================
   7. Responsive Layout
   ========================================================================== */
@media (min-width: 761px) {
  .reg .reg-work {
    display: grid;
    grid-template-columns: clamp(232px, 19.5vw, 286px) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    gap: 0 clamp(24px, 3vw, 48px);
    align-items: start;
  }
  .reg .reg-form { display: contents; }
  .reg .reg-toolbar { grid-column: 2; grid-row: 1; }
  .reg .reg-filter-shell {
    grid-column: 1;
    grid-row: 1 / span 3;
    min-width: 0;
    padding-right: clamp(16px, 1.8vw, 26px);
    border-right: 1px solid var(--line-soft);
  }
  .reg-ready .reg-filter-shell > summary { display: none; }
  .reg:not(.reg-ready) .reg-filter-shell > summary { display: block; }
  .reg .reg-results { grid-column: 2; grid-row: 3; min-width: 0; }
  .reg-selections { grid-column: 2; grid-row: 2; }
  .reg-form > noscript { grid-column: 2; grid-row: 4; }
  .reg-list:not(.reg-cards) .reg-row { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.05fr) minmax(115px, .48fr); }
}

@media (min-width: 761px) and (min-height: 600px) {
  .reg-ready .reg-filter-shell {
    position: sticky;
    top: calc(var(--reg-mast, 84px) + 14px);
    max-height: calc(100dvh - var(--reg-mast, 84px) - 28px);
    overflow: auto;
    scrollbar-width: thin;
  }
}

@media (max-width: 1180px) {
  .reg-index > .wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .reg-index-all, .reg-family { border-bottom: 1px solid var(--line-soft); }
  .reg-family--elite { grid-column: span 2; }
  .reg-list.reg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reg-toolbar { flex-wrap: wrap; }
  .reg-search-wrap { flex-basis: 100%; }
  .reg-toolbar-controls { width: 100%; justify-content: space-between; }
}

@media (max-width: 960px) {
  .reg-head--elite .reg-head-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    min-height: 0;
    padding-bottom: 24px;
  }
  .reg-head--elite .reg-head-copy { width: 100%; }
  .reg-head--elite .catalogue-cover {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    border: 1px solid #2d2e2a;
  }
  .reg-head--elite .catalogue-cover img { object-position: center; }
  .reg-head--elite .catalogue-cover::after { display: none; }
  .reg-cover-caption { right: 12px; bottom: 12px; font-size: 10px; }
}

@media (max-width: 760px) {
  .reg .reg-head-inner { min-height: 175px; padding-block: 24px; }
  .reg-head-copy { width: 68%; }
  .reg .reg-head h1 { font-size: clamp(30px, 7vw, 42px); }
  .reg .reg-intro { font-size: 14px; line-height: 1.45; }
  .catalogue-cover { left: 66%; clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%); }
  .reg-index > .wrap { grid-template-columns: 1fr 1fr; }
  .reg-family--elite { grid-column: 1 / -1; margin-block: 0; }
  .reg-filter-shell > summary,
  .reg-ready .reg-filter-shell > summary {
    display: inline-flex;
    border: 1px solid var(--ink);
    border-radius: 5px;
    background: #fff;
    margin-top: 12px;
  }
  .reg .reg-sheet {
    margin: 0 0 0 auto;
    inset: 0;
    height: 100dvh;
    max-height: 100dvh;
    width: min(100vw, 440px);
    max-width: 100vw;
    border: 0;
    border-radius: 0;
  }
  .reg-sheet[open] { display: flex; flex-direction: column; }
  .reg-sheet .reg-panel { display: flex; flex-direction: column; min-height: 0; flex: 1; }
  .reg-sheet .reg-facets { flex: 1; overflow: auto; padding: 14px 18px; }
  .reg-sheet .reg-filter-head, .reg-sheet .reg-scale-bar { display: none; }
  .reg-sheet .reg-apply {
    display: flex;
    padding: 12px 18px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #fff;
  }
  .reg-sheet .reg-apply button { flex: 1; }
  .reg-list.reg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reg-list:not(.reg-cards) .reg-row { grid-template-columns: 1fr; gap: 12px; }
  .reg-list:not(.reg-cards) .reg-tools { flex-direction: row; align-items: center; }
}

@media (max-width: 560px) {
  .reg-index-toggle > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
  }
  .reg-index-toggle > summary::after { content: "+"; font-family: var(--mono); }
  .reg-index-toggle[open] > summary::after { content: "−"; }
  .reg-index-toggle[open] > summary { border-bottom: 1px solid var(--line-soft); }
  .reg-index-toggle:not([open]) + .wrap { display: none; }
  .reg-index > .wrap { width: 100%; grid-template-columns: 1fr; }
  .reg-list.reg-cards { grid-template-columns: 1fr; }
  .reg-cards .reg-photo { aspect-ratio: 1.85; }
  .reg-picked { min-width: 0; flex-wrap: nowrap; overflow: auto; }
  .reg-tray > .wrap { flex-wrap: nowrap; gap: 6px; }
  .reg-picked button, .reg-tray .reg-action { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .reg *, .reg *::before, .reg *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
