/* Concept F — Match Desk (Grok 4.5)
   Platform-agnostic static concept. No commerce CDN dependencies. */

:root {
  --navy-950: #071a2f;
  --navy-900: #0b2a4a;
  --navy-800: #123a63;
  --navy-700: #1b4f82;
  --red-700: #b10f28;
  --red-600: #c8102e;
  --red-100: #fde8ec;
  --alloy-100: #eef2f5;
  --alloy-200: #dfe6ec;
  --alloy-300: #c5d0da;
  --white: #ffffff;
  --graphite-900: #14191f;
  --graphite-700: #2c3540;
  --graphite-500: #5b6775;
  --success-700: #0f6b3c;
  --success-100: #e5f6ec;
  --warn-700: #8a5a00;
  --warn-100: #fff4d6;
  --focus: #2f7dd1;
  --radius-sm: 8px;
  --radius-md: 12px;
  --shadow-panel: 0 18px 40px rgba(7, 26, 47, 0.12);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --shell: 72rem;
  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-2xl: clamp(1.85rem, 1.4rem + 1.6vw, 2.75rem);
  --line: 1.5;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--line);
  color: var(--graphite-900);
  background: var(--white);
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--red-700);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 1000;
  background: var(--navy-900);
  color: var(--white);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-3);
  color: var(--white);
}

.shell {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--navy-700);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lede {
  font-size: var(--text-lg);
  color: var(--graphite-700);
  max-width: 42rem;
}

.part-no,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* Buttons */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.btn--primary {
  background: var(--red-600);
  color: var(--white);
  border-color: var(--red-600);
}

.btn--primary:hover {
  background: var(--red-700);
  border-color: var(--red-700);
  color: var(--white);
}

.btn--secondary {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

.btn--secondary:hover {
  background: var(--navy-800);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--alloy-300);
}

.btn--ghost:hover {
  border-color: var(--navy-700);
  color: var(--navy-900);
}

.btn--small {
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  font-size: var(--text-sm);
}

.text-link {
  font-weight: 700;
  color: var(--navy-800);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.prototype-note {
  max-width: 42rem;
  margin: var(--space-3) 0 0;
  color: var(--graphite-500);
  font-size: var(--text-xs);
}

/* Utility + header */
.utility-bar {
  background: var(--navy-950);
  color: #d7e3ef;
  font-size: var(--text-xs);
}

.utility-bar a {
  color: #f4f8fc;
}

.utility-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  justify-content: space-between;
  align-items: center;
  padding-block: 0.55rem;
}

.utility-bar__note {
  margin: 0;
}

.utility-bar__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--alloy-200);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.brand img {
  width: 150px;
  height: auto;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav__list {
  display: none;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  color: var(--graphite-700);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--navy-900);
  background: var(--alloy-100);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.header-actions__desk {
  display: none;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--alloy-300);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--graphite-900);
  font-weight: 700;
}

.cart-link__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding-inline: 0.3rem;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.75rem;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--alloy-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  font-weight: 700;
  color: var(--graphite-900);
  cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 1rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__bars::before {
  top: -5px;
}

.menu-toggle__bars::after {
  top: 5px;
}

.mobile-nav {
  border-top: 1px solid var(--alloy-200);
  background: var(--white);
}

.mobile-nav__inner {
  padding: var(--space-4) 0 var(--space-5);
}

.mobile-nav__list {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
}

.mobile-nav__list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--alloy-200);
  text-decoration: none;
  color: var(--graphite-900);
  font-weight: 700;
}

.mobile-nav__cta {
  width: 100%;
}

/* Hero */
.hero {
  background:
    linear-gradient(180deg, var(--alloy-100) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--alloy-200);
  padding: var(--space-7) 0 var(--space-6);
}

.hero__grid {
  display: grid;
  gap: var(--space-5);
}

.hero h1 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-2xl);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy-950);
  max-width: 16ch;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
}

.hero__proof li {
  background: var(--white);
  border: 1px solid var(--alloy-200);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: var(--text-sm);
  color: var(--graphite-700);
}

.hero__aside {
  background: var(--navy-900);
  color: #e7eef6;
  border-radius: var(--radius-md);
  padding: var(--space-5);
  align-self: start;
}

.hero__aside-label {
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9db4cc;
}

.hero__aside ul {
  margin: 0;
  padding-left: 1.1rem;
}

.hero__aside li + li {
  margin-top: 0.45rem;
}

/* Match Desk */
.match-desk {
  padding: var(--space-6) 0 var(--space-8);
  background:
    radial-gradient(circle at top left, rgba(18, 58, 99, 0.08), transparent 40%),
    var(--white);
}

.match-desk__head {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.match-desk__head h2 {
  margin: 0;
  font-size: var(--text-xl);
  color: var(--navy-950);
}

.match-desk__sub {
  margin: var(--space-2) 0 0;
  max-width: 48rem;
  color: var(--graphite-700);
}

.match-desk__status {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-left: 4px solid var(--red-600);
  background: var(--alloy-100);
  color: var(--graphite-700);
  font-size: var(--text-sm);
}

.match-panel {
  background: var(--white);
  border: 1px solid var(--alloy-200);
  border-radius: calc(var(--radius-md) + 2px);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--navy-900);
  padding: var(--space-2);
}

.mode-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #c7d7e8;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 700;
  text-align: left;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mode-tab:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.mode-tab.is-active {
  background: var(--white);
  color: var(--navy-950);
}

.mode-panels {
  padding: var(--space-5);
  background: linear-gradient(180deg, #f7fafc 0%, var(--white) 48%);
  border-bottom: 1px solid var(--alloy-200);
}

.mode-panel[hidden] {
  display: none;
}

.finder-form {
  display: grid;
  gap: var(--space-4);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label,
.chip-fieldset legend {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--graphite-900);
}

.field input,
.field textarea,
.view-toggle select,
.quick-order textarea {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--alloy-300);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--graphite-900);
  background: var(--white);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--graphite-500);
}

.field input:focus,
.field textarea:focus,
.view-toggle select:focus,
.quick-order textarea:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(47, 125, 209, 0.25);
  outline: none;
}

.field-hint {
  margin: 0;
  color: var(--graphite-500);
  font-size: var(--text-xs);
}

.finder-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.unit-toggle {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 0;
  border: 1px solid var(--alloy-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}

.unit-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.unit-toggle label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  background: var(--white);
  color: var(--graphite-700);
  font-weight: 700;
  font-size: var(--text-sm);
  cursor: pointer;
}

.unit-toggle input:checked + label {
  background: var(--navy-900);
  color: var(--white);
}

.unit-toggle input:focus-visible + label {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.size-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  align-items: end;
}

.size-grid__sep {
  display: none;
  text-align: center;
  font-weight: 700;
  color: var(--graphite-500);
  padding-bottom: 0.85rem;
}

.chip-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.chip-fieldset + .chip-fieldset {
  margin-top: var(--space-2);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  border: 1.5px solid var(--alloy-300);
  border-radius: 999px;
  background: var(--white);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

.chip:has(input:checked) {
  border-color: var(--navy-800);
  background: #e8f0f8;
  color: var(--navy-950);
}

.chip input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--navy-800);
}

/* Match tray */
.match-tray {
  padding: var(--space-5);
  background: var(--alloy-100);
}

.match-tray__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: end;
  margin-bottom: var(--space-4);
}

.match-tray__head h3 {
  margin: 0;
  font-size: var(--text-lg);
  color: var(--navy-950);
}

.match-tray__meta {
  margin: 0.25rem 0 0;
  color: var(--graphite-700);
  font-size: var(--text-sm);
}

.view-toggle select {
  min-width: 10rem;
}

.match-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--alloy-200);
  border-radius: var(--radius-md);
}

.match-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 44rem;
  font-size: var(--text-sm);
}

.match-table th,
.match-table td {
  padding: 0.9rem 0.85rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--alloy-200);
}

.match-table th {
  background: var(--navy-900);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.match-table tbody tr:hover {
  background: #f4f8fc;
}

.match-table tbody tr.is-best {
  background: #f3faf6;
}

.match-table .part-cell {
  display: grid;
  gap: 0.15rem;
}

.match-table .part-cell strong {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  color: var(--navy-950);
}

.match-table .part-cell span {
  color: var(--graphite-500);
  font-size: var(--text-xs);
}

.fit-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.fit-pill--exact {
  background: var(--success-100);
  color: var(--success-700);
  border-color: #b7e4c7;
}

.fit-pill--interchange {
  background: #e8f0f8;
  color: var(--navy-800);
  border-color: #bfd2e6;
}

.fit-pill--dimension {
  background: var(--warn-100);
  color: var(--warn-700);
  border-color: #f0d48a;
}

.fit-pill--family {
  background: var(--alloy-200);
  color: var(--graphite-700);
  border-color: var(--alloy-300);
}

.stock {
  font-weight: 700;
  font-size: var(--text-sm);
}

.stock--in {
  color: var(--success-700);
}

.stock--low {
  color: var(--warn-700);
}

.stock--out {
  color: var(--red-700);
}

.price-cell {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--graphite-900);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.match-cards {
  display: grid;
  gap: var(--space-3);
}

.match-card {
  background: var(--white);
  border: 1px solid var(--alloy-200);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: grid;
  gap: var(--space-3);
}

.match-card__top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: start;
}

.match-card__top strong {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--navy-950);
}

.match-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin: 0;
}

.match-card dt {
  font-size: var(--text-xs);
  color: var(--graphite-500);
  font-weight: 700;
}

.match-card dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
}

.match-tray__foot {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.match-tray__foot p {
  margin: 0;
  color: var(--graphite-700);
  font-size: var(--text-sm);
}

.match-tray__foot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* Catalog systems */
.catalog,
.product-band,
.business,
.trust,
.resources {
  padding: var(--space-7) 0;
}

.catalog {
  background: var(--white);
  border-top: 1px solid var(--alloy-200);
}

.section-head {
  margin-bottom: var(--space-5);
  max-width: 46rem;
}

.section-head h2,
.business__copy h2,
.resources h2 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xl);
  color: var(--navy-950);
  letter-spacing: -0.015em;
}

.section-head p,
.business__copy p,
.resources p {
  margin: 0;
  color: var(--graphite-700);
}

.section-head--row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: end;
}

.system-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.system-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--space-4);
  align-items: center;
  min-height: 100%;
  padding: var(--space-4);
  border: 1px solid var(--alloy-200);
  border-radius: var(--radius-md);
  background: var(--alloy-100);
  text-decoration: none;
  color: inherit;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.system-card:hover {
  border-color: var(--navy-700);
  background: var(--white);
  color: inherit;
}

.system-card img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--alloy-200);
  padding: 0.35rem;
}

.system-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--navy-950);
}

.system-card p {
  margin: 0;
  color: var(--graphite-700);
  font-size: var(--text-sm);
}

.system-card__cta {
  display: inline-block;
  margin-top: 0.55rem;
  color: var(--navy-800);
  font-weight: 800;
  font-size: var(--text-sm);
}

.system-card--text {
  grid-template-columns: 1fr;
  background: var(--white);
}

.series-strip {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: 1px dashed var(--alloy-300);
  border-radius: var(--radius-md);
  background: #fbfcfd;
}

.series-strip__title {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  color: var(--graphite-700);
}

.series-strip__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
}

.series-strip__list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--alloy-300);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--navy-900);
}

.series-strip__list a:hover {
  border-color: var(--navy-700);
}

/* Product rows */
.product-band {
  background: var(--alloy-100);
  border-block: 1px solid var(--alloy-200);
}

.product-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.product-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--space-3) var(--space-4);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--alloy-200);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.product-row img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid var(--alloy-200);
  border-radius: var(--radius-sm);
  background: #fafbfc;
  padding: 0.25rem;
}

.product-row__id .part-no {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy-950);
}

.product-row__id p:last-child {
  margin: 0.15rem 0 0;
  color: var(--graphite-500);
  font-size: var(--text-sm);
}

.product-row__specs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  margin: 0;
}

.product-row__specs div {
  display: grid;
  gap: 0.1rem;
}

.product-row__specs dt {
  font-size: var(--text-xs);
  color: var(--graphite-500);
  font-weight: 700;
}

.product-row__specs dd {
  margin: 0;
  font-weight: 600;
}

.product-row__buy {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  border-top: 1px solid var(--alloy-200);
}

.price {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.price-note {
  margin: 0;
  color: var(--graphite-500);
  font-size: var(--text-xs);
}

/* Business */
.business {
  background: var(--white);
}

.business__grid {
  display: grid;
  gap: var(--space-5);
}

.business__list {
  margin: var(--space-4) 0 0;
  padding-left: 1.15rem;
  color: var(--graphite-700);
}

.business__list li + li {
  margin-top: 0.4rem;
}

.quick-order {
  background: var(--navy-900);
  color: #e8f0f8;
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.quick-order h3 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-lg);
}

.quick-order label {
  color: #f4f8fc;
}

.quick-order .field-hint {
  color: #9db4cc;
}

.quick-order textarea {
  min-height: 10rem;
  resize: vertical;
}

.quick-order__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.quick-order .btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.quick-order .btn--ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

.form-status {
  min-height: 1.4em;
  margin: var(--space-3) 0 0;
  color: #d7e8f8;
  font-size: var(--text-sm);
}

/* Trust + resources */
.trust {
  background: var(--alloy-100);
  border-block: 1px solid var(--alloy-200);
}

.trust-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.trust-grid li {
  background: var(--white);
  border: 1px solid var(--alloy-200);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.trust-grid h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.05rem;
  color: var(--navy-950);
}

.trust-grid p {
  margin: 0;
  color: var(--graphite-700);
  font-size: var(--text-sm);
}

.resources__inner {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--alloy-200);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f7fafc, var(--white));
}

.resource-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.resource-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: #c9d7e6;
  padding: var(--space-7) 0 var(--space-5);
}

.site-footer a {
  color: #eef5fb;
}

.site-footer__grid {
  display: grid;
  gap: var(--space-5);
}

.site-footer .brand img {
  filter: brightness(0) invert(1);
  margin-bottom: var(--space-3);
}

.footer-heading {
  margin: 0 0 var(--space-3);
  color: var(--white);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer__base {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--text-xs);
  color: #8fa6bc;
}

.site-footer__base p {
  margin: 0;
}

/* Toast */
.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: min(24rem, calc(100vw - 2rem));
  background: var(--navy-950);
  color: var(--white);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-panel);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Empty state */
.empty-row td {
  text-align: center;
  color: var(--graphite-500);
  padding: 1.5rem 1rem;
}

/* ========== Breakpoints ========== */

/* 768+ */
@media (min-width: 768px) {
  .mode-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .mode-tab {
    text-align: center;
  }

  .size-grid {
    grid-template-columns: 1fr auto 1fr auto 1fr;
  }

  .size-grid__sep {
    display: block;
  }

  .system-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-row {
    grid-template-columns: 96px minmax(10rem, 1.1fr) minmax(14rem, 2fr) minmax(9rem, 0.9fr);
    gap: var(--space-4);
  }

  .product-row img {
    width: 96px;
    height: 96px;
  }

  .product-row__specs {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .product-row__buy {
    grid-column: auto;
    display: grid;
    justify-content: stretch;
    border-top: 0;
    padding-top: 0;
    text-align: right;
  }

  .product-row__buy .btn {
    width: 100%;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }

  .resources__inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }

  .match-tray__foot {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* 1024+ */
@media (min-width: 1024px) {
  .primary-nav__list {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .header-actions {
    margin-left: 0;
  }

  .header-actions__desk {
    display: inline-flex;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.8fr);
    align-items: end;
  }

  .match-desk__head {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
  }

  .system-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .business__grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }

  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .mode-panels {
    padding: var(--space-6);
  }

  .match-tray {
    padding: var(--space-6);
  }
}

/* 1440-friendly shell already set; tighten hero type and spacing */
@media (min-width: 1440px) {
  :root {
    --shell: 76rem;
  }

  .hero {
    padding-top: var(--space-8);
  }

  .hero h1 {
    max-width: 18ch;
  }
}

/* Compact mobile refinements around 390 */
@media (max-width: 419px) {
  .shell {
    width: min(100% - 1.25rem, var(--shell));
  }

  .hero h1 {
    max-width: none;
  }

  .utility-bar__inner {
    align-items: start;
  }

  .match-table-wrap {
    display: none;
  }

  .match-cards {
    display: grid;
  }

  .match-cards[hidden] {
    display: none;
  }
}

@media (min-width: 420px) {
  .match-cards {
    display: none;
  }

  .match-cards.is-forced {
    display: grid;
  }

  .match-table-wrap.is-hidden {
    display: none;
  }
}
