/* IT Raven Store: design tokens.
   generated from tools/itraven_brand/tokens.json by build_tokens.py; edit tokens.json, then --write.
   The ONE file that holds every color, font, radius, shadow and spacing step.
   Rules: components read semantic tokens (--surface, --text, --action) and never
   a raw brand value. Breakpoints cannot be variables in CSS, so they are fixed
   here by convention: phone up to 639px, tablet 640 to 1023px, desktop 1024px up. */

:root {
  /* brand palette: Brand 2.0, Night Raven */
  --navy: #0B0D10;
  --blue: #0B6F7A;
  --blue-2: #36D6E7;
  --ink: #0B0D10;
  --paper: #F2EEE6;
  --card: #FBF9F4;
  --line: #D8D2C6;
  --muted: #57534C;
  --ok: #1E6B3A;
  --amber: #A3321F;

  /* derived brand values */
  --navy-deep: #060709;
  --navy-night: #060709;
  --navy-mid: #15181D;
  --blue-strong: #08555E;
  --blue-wash: #E3F4F6;
  --blue-edge: #B5E2E8;
  --amber-wash: #F8E6E1;
  --amber-edge: #E8C1B7;
  --ok-wash: #E4EFE6;
  --ok-edge: #B9D6C0;
  --footer: #0B0D10;

  /* semantic: surfaces and text */
  --surface: var(--paper);
  --surface-raised: var(--card);
  --surface-sunken: #E7E2D8;
  --surface-inverse: var(--navy);
  --border: var(--line);
  --border-strong: #BDB6A8;
  --text: var(--ink);
  --text-strong: var(--navy);
  --text-muted: var(--muted);
  --text-inverse: #F2EEE6;
  --text-inverse-muted: #A3A09A;
  --text-inverse-accent: #36D6E7;

  /* semantic: actions and states */
  --action: var(--blue);
  --action-hover: var(--blue-strong);
  --action-text: #FBF9F4;
  --link: var(--blue-strong);
  --link-hover: var(--navy);
  --focus: #3B6FE0;
  --focus-inverse: #F2EEE6;
  --urgent: var(--amber);
  --urgent-wash: var(--amber-wash);
  --success: var(--ok);
  --success-wash: var(--ok-wash);

  /* logo tiles: a neutral ground so a white or transparent logo never vanishes */
  --logo-ground: #ECE8E0;
  --logo-ground-dark: #1B1F25;
  --logo-edge: #D8D2C6;
  --monogram-text: #45423C;
  --monogram-text-dark: #E2DDD3;

  /* type */
  --font-wordmark: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-display-weight: 800;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.4rem, 1.1rem + 1.2vw, 1.75rem);
  --text-2xl: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem);
  --text-3xl: clamp(2.4rem, 1.4rem + 4.2vw, 4.2rem);
  --leading-tight: 0.95;
  --leading-snug: 1.25;
  --leading-body: 1.6;
  --tracking-display: -0.035em;
  --tracking-mono: 0.12em;

  /* spacing: a 4px scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* shape */
  --r-sm: 2px;
  --r-md: 2px;
  --r-lg: 2px;
  --r-xl: 2px;
  --r-pill: 999px;

  /* depth */
  --shadow-1: 0 1px 0 rgba(0, 0, 0, 0.35);
  --shadow-2: 0 12px 28px -16px rgba(0, 0, 0, 0.55);
  --shadow-3: 0 24px 56px -24px rgba(0, 0, 0, 0.65);
  --shadow-action: 0 8px 24px -10px rgba(54, 214, 231, 0.45);

  /* layout */
  --wrap: 1200px;
  --gutter: 24px;
  --header-h: 72px;

  /* motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 140ms;
  --slow: 420ms;
}

/* IT Raven Store: base layer. Reset, type, links, focus, layout primitives.
   Reads tokens only. Breakpoints: phone up to 639px, tablet 640 to 1023px,
   desktop 1024px and up. */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-5));
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote,
fieldset {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

fieldset {
  border: 0;
  min-width: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  color: var(--text-strong);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-3xl);
  font-weight: var(--font-display-weight);
}

h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
}

h3 {
  font-size: var(--text-md);
  font-weight: 700;
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
}

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

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

.utility :focus-visible,
.hero :focus-visible,
.band :focus-visible,
.footer :focus-visible {
  outline-color: var(--focus-inverse);
}

main:focus {
  outline: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Utility pages (quote, compare, search, terms, 404) end on a panel, not a
   section band, so the wrap carries the gap above the footer. */
.wrap--utility {
  padding-bottom: var(--s-8);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  background: var(--navy);
  color: var(--text-inverse);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
}

.skip:focus {
  top: var(--s-3);
}

/* The hidden attribute always wins, whatever display a component sets. */
[hidden] {
  display: none !important;
}

/* Controls that only work with JavaScript stay out of the way without it. */
.js-only {
  display: none !important;
}

.js .js-only {
  display: revert !important;
}

.js label.js-only,
.js .sort.js-only {
  display: flex !important;
}

.js aside.js-only {
  display: block !important;
}

.icon {
  flex: none;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--action);
}

.lede {
  font-size: var(--text-md);
  color: var(--text-muted);
  max-width: 68ch;
}

.note {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.section {
  padding-block: var(--s-8);
}

.section--tint {
  background: var(--surface-raised);
  border-block: 1px solid var(--border);
}

.section--flush {
  padding-block: var(--s-6);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}

.section-head h2 {
  margin-top: var(--s-1);
}

.section-head .lede {
  margin-top: var(--s-2);
  font-size: var(--text-base);
}

.more,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 0;
  color: var(--link);
  cursor: pointer;
}

.more:hover,
.text-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Long-form copy from the Voice tabs. */
.prose > * + * {
  margin-top: var(--s-4);
}

.prose p,
.prose li {
  max-width: 70ch;
}

.prose ul,
.prose ol {
  display: grid;
  gap: var(--s-2);
  padding-left: var(--s-5);
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li::marker {
  color: var(--action);
  font-weight: 600;
}

.prose h3 {
  margin-top: var(--s-5);
}

.prose blockquote {
  border-left: 4px solid var(--blue-2);
  padding-left: var(--s-4);
  color: var(--text-muted);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-sunken);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.prose--ticks ul {
  list-style: none;
  padding-left: 0;
}

.prose--ticks li {
  position: relative;
  padding-left: var(--s-6);
}

.prose--ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1.05em;
  height: 1.05em;
  border-radius: 5px;
  background: var(--action)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5 9.5-10'/%3E%3C/svg%3E")
    center / 72% no-repeat;
}

@media (max-width: 639px) {
  :root {
    --gutter: 16px;
  }

  .section {
    padding-block: var(--s-7);
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-3);
    margin-bottom: var(--s-5);
  }
}

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

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

/* IT Raven Store: components. Each block matches a function in
   storegen/components.py or storegen/shell.py. Tokens only, no raw colors. */

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 var(--s-5);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition:
    transform var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease),
    background-color var(--fast) var(--ease),
    border-color var(--fast) var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--action), var(--action-hover));
  color: var(--action-text);
  box-shadow: var(--shadow-action);
}

.btn--primary:hover {
  color: var(--action-text);
  background: var(--action-hover);
}

.btn--ghost {
  background: var(--surface-raised);
  border-color: var(--border-strong);
  color: var(--text-strong);
}

.btn--ghost:hover {
  border-color: var(--action);
  color: var(--action);
}

.btn--inverse {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--text-inverse);
}

.btn--inverse:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text-inverse);
}

.btn--block {
  width: 100%;
}

.btn.is-added {
  background: var(--success);
  border-color: var(--success);
  color: var(--action-text);
  box-shadow: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.add {
  display: contents;
}

/* --- chips and badges ----------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.5;
}

.chip--more {
  border-style: dashed;
}

.chips--facts .chip:first-child,
.chips--dept .chip {
  background: var(--blue-wash);
  border-color: var(--blue-edge);
  color: var(--text-strong);
  font-weight: 600;
}

.chips--ok .chip {
  background: var(--success-wash);
  border-color: var(--ok-edge);
  color: var(--success);
  font-weight: 600;
}

.chips--coverage .chip {
  font-family: var(--font-mono);
  background: var(--surface-raised);
  color: var(--text-strong);
  border-color: var(--border-strong);
}

.badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--blue-wash);
  border: 1px solid var(--blue-edge);
  color: var(--action);
}

.badge--lg {
  width: 64px;
  height: 64px;
  border-radius: var(--r-lg);
}

/* --- logo tiles ------------------------------------------------------------
   A fixed box on a neutral ground. The box never changes size while a logo
   loads, and a white or transparent logo still has something to sit on. */
.logo-tile {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  background: var(--logo-ground);
  border: 1px solid var(--logo-edge);
  border-radius: var(--r-md);
}

.logo-tile[data-ground="dark"] {
  background: var(--logo-ground-dark);
  border-color: var(--logo-ground-dark);
}

.logo-tile--sm {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
}

.logo-tile--md {
  width: 56px;
  height: 56px;
}

.logo-tile--lg {
  width: 96px;
  height: 96px;
}

.logo-tile--xl {
  width: 168px;
  height: 168px;
  border-radius: var(--r-lg);
}

.logo-tile--wide.logo-tile--lg {
  width: 100%;
  height: 104px;
}

.logo-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-tile--wide img {
  padding: 18px 28px;
}

.logo-tile__mono {
  display: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--monogram-text);
  font-size: 1.05rem;
}

.logo-tile[data-ground="dark"] .logo-tile__mono {
  color: var(--monogram-text-dark);
}

.logo-tile--sm .logo-tile__mono {
  font-size: 0.8rem;
}

.logo-tile--lg .logo-tile__mono {
  font-size: 1.9rem;
}

.logo-tile--xl .logo-tile__mono {
  font-size: 3rem;
}

.logo-tile.is-monogram .logo-tile__mono,
.logo-tile.is-broken .logo-tile__mono {
  display: block;
}

.logo-tile.is-broken img {
  display: none;
}

/* --- header ----------------------------------------------------------------- */
.utility {
  background: var(--surface-inverse);
  color: var(--text-inverse-muted);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.utility__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 34px;
}

.utility ul {
  display: flex;
  gap: var(--s-5);
}

.utility a {
  color: var(--text-inverse);
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
}

.masthead__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-6);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--text-strong);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 47px;
  height: 40px;
}

.brand__text {
  display: grid;
  line-height: 1;
  gap: 5px;
}

.brand__name {
  font-family: var(--font-wordmark);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--action);
}

.brand--inverse .brand__name {
  color: var(--text-inverse);
}

.brand--inverse .brand__sub {
  color: var(--text-inverse-accent);
}


.search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 620px;
  width: 100%;
  height: 46px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  transition: border-color var(--fast) var(--ease);
}

.search:focus-within {
  border-color: var(--action);
  background: var(--surface-raised);
}

.search__glass {
  margin-left: var(--s-4);
  color: var(--text-muted);
}

.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 var(--s-3);
  border: 0;
  background: transparent;
  outline: none;
}

.search input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.search .btn {
  min-height: 0;
  height: calc(100% + 3px);
  margin-right: -1.5px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  box-shadow: none;
}

.search .btn:hover {
  transform: none;
}

.search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: var(--s-2);
  max-height: 70vh;
  overflow: auto;
}

.quote-button {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 46px;
  padding: 0 var(--s-4);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface-raised);
  color: var(--text-strong);
  font-weight: 600;
  font-size: var(--text-sm);
  white-space: nowrap;
}

.quote-button:hover {
  border-color: var(--action);
  color: var(--action);
  text-decoration: none;
}

.quote-button__count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: var(--r-pill);
  background: var(--action);
  color: var(--action-text);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.quote-button__count:empty {
  display: none;
}

.ribbon {
  border-top: 1px solid var(--border);
  background: var(--surface-raised);
}

.ribbon ul {
  display: flex;
  gap: var(--s-5);
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.ribbon ul::-webkit-scrollbar {
  display: none;
}

.ribbon a {
  display: block;
  padding: 11px 0 9px;
  border-bottom: 2px solid transparent;
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 500;
}

.ribbon li:first-child a {
  font-weight: 700;
  color: var(--text-strong);
}

.ribbon a:hover,
.ribbon a[aria-current="page"] {
  color: var(--action);
  border-bottom-color: var(--action);
  text-decoration: none;
}

/* --- breadcrumbs and page heads ------------------------------------------- */
.crumbs {
  padding-block: var(--s-5) var(--s-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.crumbs li + li::before {
  content: "/";
  margin-right: var(--s-2);
  color: var(--border-strong);
}

.crumbs a {
  color: var(--text-muted);
}

.crumbs [aria-current] {
  color: var(--text-strong);
  font-weight: 600;
}

.page-head {
  display: grid;
  gap: var(--s-3);
  padding-block: var(--s-4) var(--s-6);
}

.page-head--icon {
  grid-template-columns: auto 1fr;
  gap: var(--s-5);
  align-items: start;
}

.page-head--icon > div {
  display: grid;
  gap: var(--s-3);
}

.page-head--center {
  justify-items: center;
  text-align: center;
  padding-block: var(--s-8) var(--s-6);
}

.page-head__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- panels ----------------------------------------------------------------- */
.panel {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-6);
  box-shadow: var(--shadow-1);
}

.panel > h2 {
  font-size: var(--text-lg);
  margin-bottom: var(--s-4);
}

.panel > .eyebrow + h2 {
  margin-top: var(--s-2);
}

.panel--note {
  background: var(--blue-wash);
  border-color: var(--blue-edge);
}

.panel--note p:last-child {
  color: var(--text);
  max-width: 70ch;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
  padding-block: var(--s-6);
}

.panel--wide {
  grid-column: 1 / -1;
}

/* --- cards ------------------------------------------------------------------ */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
}

.dept-tile {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--text);
  transition:
    border-color var(--fast) var(--ease),
    transform var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
}

.dept-tile:hover {
  border-color: var(--action);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  text-decoration: none;
}

.dept-tile__text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dept-tile__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.25;
  color: var(--text-strong);
}

.dept-tile__meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.service-card h3 a {
  color: var(--text-strong);
}

.service-card h3 a:hover {
  color: var(--action);
}

.service-card > p:not(.eyebrow) {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.service-card__meta {
  font-weight: 600;
  color: var(--text-strong) !important;
}

.service-card .btn {
  margin-top: auto;
  align-self: flex-start;
  min-height: 38px;
}

.service-card .eyebrow {
  font-size: 0.66rem;
  color: var(--text-muted);
}

.supplier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
}

.supplier-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.supplier-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition:
    border-color var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
}

.supplier-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}

.supplier-card[hidden] {
  display: none;
}

.supplier-card__top {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.supplier-card h3 {
  font-size: var(--text-base);
  min-width: 0;
}

.supplier-card h3 a {
  color: var(--text-strong);
}

.supplier-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: auto;
  padding-top: var(--s-2);
}

.supplier-card__actions .btn {
  min-height: 38px;
  padding: 0 var(--s-4);
  margin-left: auto;
}

.compare-toggle {
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  cursor: pointer;
}

.compare-toggle input,
.facet__option input {
  width: 18px;
  height: 18px;
  accent-color: var(--action);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}

.featured-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.featured-card h3 {
  font-size: var(--text-lg);
}

.featured-card h3 a {
  color: var(--text-strong);
}

.featured-card__line {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.featured-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: auto;
  padding-top: var(--s-3);
}

.featured-card__actions .btn {
  min-height: 40px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--s-2);
}

.mini-supplier {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: var(--text-sm);
  min-width: 0;
}

.mini-supplier a {
  color: var(--text-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- the service promise band ------------------------------------------------- */
.band {
  background:
    radial-gradient(70% 120% at 85% 0%, rgba(54, 214, 231, 0.12), transparent 60%),
    linear-gradient(140deg, var(--navy), var(--navy-deep));
  color: var(--text-inverse-muted);
  padding-block: var(--s-8);
}

.band h2 {
  color: var(--text-inverse);
  margin-top: var(--s-2);
  max-width: 24ch;
}

.band .eyebrow {
  color: var(--text-inverse-accent);
}

.band .lede {
  color: var(--text-inverse-muted);
  margin-top: var(--s-3);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-7);
}

.step {
  display: grid;
  gap: var(--s-2);
  align-content: start;
  padding-top: var(--s-4);
  border-top: 2px solid rgba(143, 189, 240, 0.4);
  font-size: var(--text-sm);
}

.step__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  color: var(--text-inverse-accent);
}

.step h3 {
  color: var(--text-inverse);
}

.band--compact {
  padding-block: var(--s-7);
  margin-top: var(--s-7);
}

.band--compact .steps {
  margin-top: var(--s-6);
}

/* --- footer ------------------------------------------------------------------- */
.footer {
  background: var(--footer);
  color: var(--text-inverse-muted);
  font-size: var(--text-sm);
  padding-block: var(--s-8) var(--s-6);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 2fr 1fr 1fr;
  gap: var(--s-7);
}

.footer__brand {
  display: grid;
  gap: var(--s-4);
  align-content: start;
  max-width: 34ch;
}

.footer__title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-inverse);
  margin-bottom: var(--s-3);
}

.footer ul {
  display: grid;
  gap: var(--s-2);
}

.footer__two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--s-5);
}

.footer a {
  color: var(--text-inverse-muted);
}

.footer a:hover {
  color: var(--text-inverse);
}

.footer__legal {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--text-xs);
  color: var(--text-inverse-muted);
}

.footer__legal p {
  max-width: 100ch;
}

/* --- toast and empty states ---------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: var(--s-5);
  z-index: 80;
  transform: translate(-50%, 140%);
  max-width: min(92vw, 520px);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--text-inverse);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: var(--shadow-3);
  visibility: hidden;
  opacity: 0;
  transition:
    transform var(--slow) var(--ease),
    opacity var(--fast) var(--ease),
    visibility 0s linear var(--slow);
}

.toast.is-open {
  transform: translate(-50%, 0);
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.toast a {
  color: var(--text-inverse);
  text-decoration: underline;
  font-weight: 700;
}

.empty {
  display: grid;
  gap: var(--s-3);
  justify-items: start;
  padding: var(--s-6);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface-raised);
  color: var(--text-muted);
}

.empty[hidden] {
  display: none;
}

/* --- tablet ---------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .dept-grid,
  .service-grid,
  .supplier-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supplier-grid,
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .masthead__row {
    gap: var(--s-4);
  }
}

/* --- phone ----------------------------------------------------------------------- */
@media (max-width: 639px) {
  .utility ul {
    display: none;
  }

  .utility__row {
    min-height: 30px;
    font-size: 0.6rem;
  }

  .masthead {
    position: static;
  }

  .masthead__row {
    grid-template-columns: 1fr auto;
    gap: var(--s-3);
    padding-block: var(--s-3);
  }

  .search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
  }

  .search .btn {
    padding: 0 var(--s-4);
  }

  .dept-grid,
  .service-grid,
  .supplier-grid,
  .supplier-grid--four,
  .featured-grid,
  .panel-grid,
  .steps,
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel {
    padding: var(--s-5);
  }

  .footer__grid {
    gap: var(--s-6);
  }
}

/* --- search results (header dropdown and the search page) ---------------------- */
.search-hit {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 2px var(--s-3);
  align-items: baseline;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  color: var(--text);
}

.search-hit:hover,
.search-hit:focus {
  background: var(--blue-wash);
  text-decoration: none;
}

.search-hit__kind {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.search-hit__name {
  font-weight: 600;
  color: var(--text-strong);
}

.search-hit__meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.search-none {
  padding: var(--s-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.search-page {
  margin-bottom: var(--s-4);
}

/* --- compare: the tray and the table ---------------------------------------------- */
.compare-tray {
  position: fixed;
  left: 50%;
  bottom: var(--s-4);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  max-width: min(94vw, 640px);
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--text-inverse);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-3);
  transform: translate(-50%, 160%);
  visibility: hidden;
  transition:
    transform var(--slow) var(--ease),
    visibility 0s linear var(--slow);
}

.compare-tray.is-open {
  transform: translate(-50%, 0);
  visibility: visible;
  transition-delay: 0s;
}

.compare-tray .btn {
  min-height: 38px;
  box-shadow: none;
  background: var(--surface-raised);
  color: var(--text-strong);
}

.compare-tray .btn[hidden] {
  display: none;
}

.compare-tray .text-link {
  color: var(--text-inverse-accent);
  padding-right: var(--s-3);
}

.compare-tray :focus-visible {
  outline-color: var(--focus-inverse);
}

.compare-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-raised);
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.compare-table th,
.compare-table td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface-raised);
  min-width: 190px;
}

.compare-table thead th > * + * {
  margin-top: var(--s-2);
}

.compare-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-strong);
}

.compare-table tbody th {
  width: 190px;
  font-weight: 600;
  color: var(--text-strong);
  background: var(--surface);
}

.compare-section th {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--action) !important;
  background: var(--blue-wash) !important;
}

.compare-none {
  color: var(--text-muted);
}

.compare-yes {
  font-weight: 600;
  color: var(--success);
}

/* --- the quote list page -------------------------------------------------------------- */
.quote-items {
  display: grid;
}

.quote-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-top: 1px solid var(--border);
}

.quote-item .eyebrow {
  font-size: 0.66rem;
  color: var(--text-muted);
}

.quote-item h3 a {
  color: var(--text-strong);
}

.quote-item__note {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.quote-suggest {
  margin-top: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  background: var(--blue-wash);
  border: 1px solid var(--blue-edge);
}

.quote-suggest h3 {
  font-size: var(--text-base);
  margin-bottom: var(--s-3);
}

.quote-suggest__list {
  display: grid;
  gap: var(--s-2);
}

.quote-suggest__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  font-weight: 600;
}

.quote-suggest__list .btn {
  min-height: 36px;
  padding: 0 var(--s-4);
}

.quote-send {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
  margin-block: var(--s-4) var(--s-6);
}

.quote-send[hidden] {
  display: none;
}

.quote-send .panel > p {
  color: var(--text-muted);
  margin-bottom: var(--s-4);
}

@media (max-width: 1023px) {
  .quote-send {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 639px) {
  .compare-tray {
    left: var(--s-3);
    right: var(--s-3);
    max-width: none;
    transform: translateY(160%);
    border-radius: var(--r-lg);
    flex-wrap: wrap;
  }

  .compare-tray.is-open {
    transform: translateY(0);
  }

  .search-hit {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-hit__kind {
    grid-row: auto;
  }
}

/* IT Raven Store: page layouts. One block per page anatomy in site/README.md. */

/* --- home: hero row ---------------------------------------------------------- */
.hero-row {
  padding-block: var(--s-5) var(--s-4);
}

.hero-row__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--s-4);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  color: var(--text-inverse-muted);
  background:
    radial-gradient(80% 120% at 78% -20%, rgba(11, 111, 122, 0.35), transparent 56%),
    radial-gradient(60% 90% at 6% 120%, rgba(54, 214, 231, 0.1), transparent 52%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-mid) 55%, var(--navy-night) 100%);
}

/* Generated art, when present, sits behind the copy and fades out to the left
   so the headline always has a calm ground. Without art the gradient stands alone. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 58%;
  background-image: var(--hero-art, none);
  background-size: cover;
  background-position: 84% center;
  opacity: 0.95;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.55;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-4);
  padding: var(--s-7) var(--s-7) var(--s-6);
}

.hero .eyebrow {
  color: var(--text-inverse-accent);
}

.hero h1 {
  color: var(--text-inverse);
  max-width: 15ch;
}

.hero__lede {
  font-size: var(--text-md);
  max-width: 40ch;
}

.hero .btn-row {
  margin-top: var(--s-2);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-7);
  margin-top: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero__stats dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--text-inverse);
}

.hero__stats dd {
  margin-top: var(--s-2);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
}

.urgent-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6);
  border-radius: var(--r-xl);
  background: var(--surface-raised);
  border: 1px solid var(--border);
}

/* A clock-face motif in the corner: time is the point of this card. CSS only. */
.urgent-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, var(--border) 0deg 1.2deg, transparent 1.2deg 30deg),
    radial-gradient(circle, transparent 58%, var(--border) 58.5% 60%, transparent 60.5%);
  -webkit-mask-image: radial-gradient(circle, transparent 47%, #000 48%);
  mask-image: radial-gradient(circle, transparent 47%, #000 48%);
  opacity: 0.9;
  pointer-events: none;
}

.urgent-card > * {
  position: relative;
  z-index: 1;
}

.urgent-card .eyebrow {
  color: var(--urgent);
}

.urgent-card h2 {
  font-size: var(--text-xl);
}

.urgent-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.ticks {
  display: grid;
  gap: var(--s-2);
  margin-block: var(--s-2) var(--s-4);
  font-weight: 600;
  color: var(--text-strong);
}

.ticks li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.ticks .icon {
  color: var(--urgent);
}

/* --- home: the logo strip, five-second trust ------------------------------------ */
.logo-strip {
  padding-block: var(--s-4) var(--s-5);
}

.logo-strip .wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-5);
}

.logo-strip .eyebrow {
  color: var(--text-muted);
  max-width: 14ch;
}

.logo-strip ul {
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  scrollbar-width: none;
}

.logo-strip ul::-webkit-scrollbar {
  display: none;
}

.logo-strip .mini-supplier {
  flex: none;
  border: 0;
  background: none;
  padding: 0;
}

.logo-strip .mini-supplier a {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.logo-strip .mini-supplier {
  position: relative;
}

.logo-strip .mini-supplier:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.logo-strip .logo-tile--sm {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
}

/* --- home: moments ---------------------------------------------------------------- */
.moments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}

.moment {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.moment h3 {
  font-size: var(--text-lg);
}

.moment > p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.moment__list {
  display: grid;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
  font-weight: 600;
  font-size: var(--text-sm);
}

.moment__list li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.moment__list .icon {
  color: var(--success);
}

.moment__list a {
  color: var(--text-strong);
}

.moment .btn {
  margin-top: auto;
}

/* --- services index ------------------------------------------------------------------ */
.jump ul,
.letters ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.jump a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--surface-raised);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-strong);
}

.jump a:hover {
  border-color: var(--action);
  color: var(--action);
  text-decoration: none;
}

.dept-block {
  padding-block: var(--s-6);
  border-top: 1px solid var(--border);
  margin-top: var(--s-6);
}

.dept-block__head {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  margin-bottom: var(--s-5);
}

.dept-block__head h2 {
  font-size: var(--text-xl);
}

.dept-block__head h2 a {
  color: var(--text-strong);
}

.dept-block__head p {
  color: var(--text-muted);
  margin-top: var(--s-1);
  max-width: 70ch;
}

/* --- service and supplier: the product head -------------------------------------------- */
.product-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--s-7);
  align-items: start;
  padding-block: var(--s-3) var(--s-6);
}

.product-head > div {
  display: grid;
  gap: var(--s-4);
  align-content: start;
}

.product-head--supplier {
  grid-template-columns: auto minmax(0, 1fr) 340px;
  gap: var(--s-6);
}

.product-head__logo {
  padding-top: var(--s-1);
}

.product-head--supplier .logo-tile--wide.logo-tile--lg {
  width: 264px;
  height: 120px;
}

.product-head__intro {
  font-size: var(--text-md);
  color: var(--text);
  max-width: 62ch;
}

.product-head__intro .summary {
  border-left: 4px solid var(--blue-2);
  padding-left: var(--s-4);
}

.available {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--success);
}

.buy-box {
  position: sticky;
  top: calc(var(--header-h) + var(--s-5));
  display: grid;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.buy-box h2 {
  font-size: var(--text-md);
  font-family: var(--font-display);
}

.buy-box h3 {
  font-size: var(--text-sm);
  font-family: var(--font-body);
  letter-spacing: 0;
  margin-top: var(--s-2);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}

.buy-box .btn {
  width: 100%;
  min-height: 48px;
}

.buy-box__count {
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}

.buy-box__count strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-strong);
  margin-right: var(--s-1);
}

.ask {
  flex-direction: column;
  gap: var(--s-2);
  font-weight: 600;
  color: var(--text-strong);
}

.ask input,
.prep__a {
  width: 100%;
  min-height: 42px;
  padding: 0 var(--s-3);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface-raised);
  font-weight: 400;
}

.ask input:focus,
.prep__a:focus {
  border-color: var(--action);
  outline: none;
  box-shadow: 0 0 0 3px var(--blue-edge);
}

.next {
  display: grid;
  gap: var(--s-2);
  counter-reset: next;
}

.next li {
  position: relative;
  padding-left: var(--s-6);
  counter-increment: next;
}

.next li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-wash);
  color: var(--action);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
}

/* --- service: the buyer's checklist as a quote prep sheet -------------------------------- */
.prep {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-6);
  border-top: 4px solid var(--action);
}

.prep > h2 {
  font-size: var(--text-xl);
  margin-bottom: 0;
}

.prep__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4) var(--s-7);
  margin-top: var(--s-3);
}

.prep__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
}

.prep__num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--action);
  padding-top: 2px;
}

.prep__body {
  display: grid;
  gap: var(--s-2);
}

.prep__q {
  font-weight: 500;
  color: var(--text);
}

/* --- service: the shelf ---------------------------------------------------------------------- */
.shelf {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: var(--s-5);
  align-items: start;
  padding-block: var(--s-6);
}

.shelf__main {
  display: grid;
  gap: var(--s-4);
  grid-column: 2;
}

html:not(.js) .shelf__main,
.shelf__main:only-child {
  grid-column: 1 / -1;
}

.shelf__bar {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-4);
}

.shelf__bar h2 {
  font-size: var(--text-xl);
}

.shelf__status {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.sort {
  margin-left: auto;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.sort select {
  min-height: 38px;
  padding: 0 var(--s-3);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface-raised);
}

.rail {
  position: sticky;
  top: calc(var(--header-h) + var(--s-5));
  max-height: calc(100vh - var(--header-h) - var(--s-7));
  overflow-y: auto;
  padding: var(--s-5);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.rail__head h3 {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-base);
}

.facet {
  padding-top: var(--s-4);
  margin-top: var(--s-4);
  border-top: 1px solid var(--border);
}

.facet legend {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-strong);
  padding-bottom: var(--s-3);
}

.facet ul {
  display: grid;
  gap: 2px;
}

.facet__option {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 34px;
  font-size: var(--text-sm);
  cursor: pointer;
}

.facet__option span:first-of-type {
  flex: 1;
}

.facet__option:has(input:disabled) {
  color: var(--text-muted);
  cursor: default;
}

.facet__count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.rail__help {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-5);
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--blue-wash);
  border: 1px solid var(--blue-edge);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.rail__help h3 {
  font-size: var(--text-sm);
}

.rail__help .btn {
  min-height: 40px;
  width: 100%;
}

/* --- supplier: what they offer, facts ------------------------------------------------------------ */
.offerings {
  display: grid;
  margin-top: var(--s-2);
}

.offering {
  display: grid;
  gap: var(--s-3);
  padding-block: var(--s-4);
  border-top: 1px solid var(--border);
}

.offering__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
}

.offering__head .eyebrow {
  font-size: 0.66rem;
  color: var(--text-muted);
}

.offering h3 a {
  color: var(--text-strong);
}

.offering .btn {
  min-height: 36px;
  padding: 0 var(--s-4);
}

.facts {
  display: grid;
  gap: var(--s-3);
}

.facts > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: var(--s-4);
  align-items: baseline;
}

.facts dt {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.facts dd {
  font-weight: 500;
}

/* --- suppliers A to Z ------------------------------------------------------------------------------- */
.letters {
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  padding-block: var(--s-3);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.letters ul {
  gap: 4px;
}

.letters a,
.letters span {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
}

.letters a {
  background: var(--navy);
  color: var(--text-inverse);
}

.letters a:hover {
  background: var(--action);
  text-decoration: none;
}

.letters span {
  color: var(--border-strong);
}

.az-group {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: var(--s-4);
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 64px);
}

.az-group > h2 {
  font-size: var(--text-3xl);
  color: var(--blue-2);
  line-height: 1;
}

.az-group > ul {
  display: grid;
  gap: var(--s-2);
}

.az-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.az-row h3 {
  font-size: var(--text-base);
}

.az-row h3 a {
  color: var(--text-strong);
}

.az-row__main p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.az-row__count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

.az-row .btn {
  min-height: 36px;
  padding: 0 var(--s-4);
}

/* --- utility pages ------------------------------------------------------------------------------------ */
.link-columns {
  columns: 3 220px;
  column-gap: var(--s-6);
  margin-bottom: var(--s-5);
}

.link-columns li {
  break-inside: avoid;
  padding-block: 5px;
}

.panel .btn-row {
  margin-top: var(--s-4);
}

/* --- tablet ------------------------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .hero-row__grid,
  .product-head,
  .product-head--supplier {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-head--supplier {
    gap: var(--s-4);
  }

  .buy-box,
  .rail {
    position: static;
    max-height: none;
  }

  .shelf {
    grid-template-columns: minmax(0, 1fr);
  }

  .shelf__main {
    grid-column: 1;
  }

  .moments {
    grid-template-columns: minmax(0, 1fr);
  }

  .logo-strip .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-3);
  }

  .logo-strip .eyebrow {
    max-width: none;
  }
}

/* --- phone --------------------------------------------------------------------------------------------- */
@media (max-width: 639px) {
  .hero::before {
    display: none;
  }

  .hero__inner {
    padding: var(--s-6) var(--s-5);
  }

  .hero__stats {
    gap: var(--s-5);
  }

  .urgent-card {
    padding: var(--s-5);
  }

  .prep {
    padding: var(--s-5);
  }

  .prep__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .letters {
    position: static;
  }

  .az-group {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-3);
  }

  .az-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .az-row__count {
    display: none;
  }

  .facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .product-head--supplier .logo-tile--wide.logo-tile--lg {
    width: 100%;
    max-width: 264px;
  }

  .logo-tile--xl {
    width: 120px;
    height: 120px;
  }
}

/* --- department head with generated art -----------------------------------------------
   The art is decorative, so it is a background and never an img. It sits on the
   right and fades into navy on the left, where the words are. Without an art file
   the head keeps its light ground and nothing here applies. */
.page-head--art {
  position: relative;
  overflow: hidden;
  margin-block: var(--s-2) var(--s-6);
  padding: var(--s-7);
  border-radius: var(--r-xl);
  color: var(--text-inverse-muted);
  background:
    linear-gradient(90deg, var(--navy-deep) 0%, var(--navy-deep) 34%, rgba(11, 13, 16, 0.72) 52%, rgba(11, 13, 16, 0) 78%),
    var(--head-art) right center / cover no-repeat,
    var(--navy-deep);
  min-height: 300px;
  align-content: center;
}

.page-head--art h1,
.page-head--art .lede {
  color: var(--text-inverse);
  max-width: 26ch;
}

.page-head--art .lede {
  max-width: 48ch;
  color: var(--text-inverse-muted);
}

.page-head--art .eyebrow,
.page-head--art .page-head__meta {
  color: var(--text-inverse-accent);
}

.page-head--art .badge {
  background: rgba(54, 214, 231, 0.14);
  border-color: rgba(143, 189, 240, 0.4);
  color: var(--text-inverse-accent);
}

.page-head--art :focus-visible {
  outline-color: var(--focus-inverse);
}

@media (max-width: 639px) {
  .page-head--art {
    padding: var(--s-5);
    min-height: 0;
    background:
      linear-gradient(180deg, rgba(11, 13, 16, 0.9) 0%, rgba(11, 13, 16, 0.82) 100%),
      var(--head-art) right center / cover no-repeat,
      var(--navy-deep);
  }
}

/* --- visual QA fixes (issue D5) ---------------------------------------------------------
   Found by screenshots of every page type at 390, 820 and 1280 on the real catalog. */

/* A long shelf folds to its first page. Every card stays in the HTML. */
.is-folded {
  display: none !important;
}

.paged-more {
  justify-self: start;
  margin-top: var(--s-4);
}

.paged-more[hidden] {
  display: none;
}

/* The 0-9 group label wrapped onto two lines in the narrow letter column. */
.az-group {
  grid-template-columns: 92px minmax(0, 1fr);
}

.az-group > h2 {
  font-size: var(--text-2xl);
  white-space: nowrap;
}

/* Compared companies share the width instead of huddling on the left. */
.compare-table {
  table-layout: fixed;
}

.search input {
  text-overflow: ellipsis;
}

/* The ribbon scrolls sideways below desktop width: fade its edge to say so. */
@media (max-width: 1023px) {
  .ribbon ul {
    -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent);
    mask-image: linear-gradient(90deg, #000 84%, transparent);
    padding-right: var(--s-7);
  }
}

@media (max-width: 639px) {
  /* Every button is a comfortable touch target on a phone: 44px or taller. */
  .btn,
  .supplier-card__actions .btn,
  .service-card .btn,
  .featured-card__actions .btn,
  .az-row .btn,
  .offering .btn,
  .quote-suggest__list .btn,
  .rail__help .btn,
  .compare-tray .btn {
    min-height: 44px;
  }

  /* The clock motif ran behind the words at this width. */
  .urgent-card::after {
    display: none;
  }

  .az-group {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The filter rail is a disclosure. Open on desktop; on smaller screens it starts
   folded behind its heading so the companies come first. */
.rail__fold > summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-strong);
}

.rail__fold > summary::-webkit-details-marker {
  display: none;
}

.rail__title {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

.rail__state {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--action);
}

.rail__clear {
  margin-top: var(--s-3);
  font-size: var(--text-sm);
}

@media (min-width: 1024px) {
  .rail__fold > summary {
    cursor: default;
    pointer-events: none;
  }
}

@media (max-width: 1023px) {
  .rail__fold > summary::after {
    content: "Show";
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--link);
  }

  .rail__fold[open] > summary::after {
    content: "Hide";
  }
}
