/* Direction A: the shutdown board.
   World: a plant turnaround T-card board. Brand-blue powder-coated steel, white and red card stock,
   amber magnets. Tokens map to Collin's --gc-* variables in PORT-NOTES.md. */

:root {
  --aisl-red: #ec1b1e;          /* brand red, graphics only */
  --aisl-blue: #323795;         /* brand blue, the board */
  --aisl-navy: #243673;
  --aisl-amber: #ffa800;

  --board: var(--aisl-blue);
  --board-deep: #262a78;
  --board-ink: #ffffff;
  --board-ink-2: #d6d8f2;       /* secondary text on the board, tinted from the hue */
  --stock: #ffffff;             /* card stock */
  --stock-red: #d71920;         /* red card stock, 5.2:1 with white text */
  --paper: #f2f3f8;             /* reading sections */
  --ink: #161a3d;
  --ink-2: #464b6e;
  --line: #d6d8e4;
  --focus: var(--aisl-amber);

  --font-sign: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --step-2: clamp(1.625rem, 1.4rem + 0.9vw, 2.25rem);
  --step-3: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);
  --step-4: clamp(2.75rem, 2rem + 3.6vw, 5.25rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --rail: 72px;                 /* slot pitch on the board */
  --radius-card: 3px;
  --shadow-card: 0 2px 1px rgba(10, 12, 50, 0.35), 0 10px 18px -6px rgba(10, 12, 50, 0.45);
  --shadow-lift: 0 4px 2px rgba(10, 12, 50, 0.3), 0 22px 30px -10px rgba(10, 12, 50, 0.55);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--aisl-amber); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-sign); font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--aisl-amber); color: var(--ink); padding: 0.75rem 1rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* Icons: one stroke family, 24 grid, 1.75 stroke. */
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.25rem;
  font: 600 var(--step-0)/1 var(--font-body); letter-spacing: 0.01em;
  border: 0; border-radius: 2px; cursor: pointer; text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 160ms, box-shadow 160ms;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--stock-red); color: #fff; }
.btn-red:hover { background: #b9141a; }
.btn-amber { background: var(--aisl-amber); color: var(--ink); }
.btn-amber:hover { background: #ffb933; }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-line:hover { background: rgba(255, 255, 255, 0.08); }

/* Header: a strip of white card stock above the board */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--stock); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: var(--space-3); min-height: 76px; }
.brand { flex: none; display: block; }
.brand img { height: 52px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 0.75rem 0.75rem; font-weight: 500; text-decoration: none; color: var(--ink); border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--aisl-blue); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--stock-red); }
.header-phone { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.menu-toggle { display: none; margin-left: auto; min-height: 44px; min-width: 44px; background: none; border: 1.5px solid var(--ink); border-radius: 2px; font: 600 var(--step--1) var(--font-body); color: var(--ink); padding: 0 0.75rem; cursor: pointer; }
@media (max-width: 1080px) {
  .header-phone span { display: none; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
  .site-nav { position: absolute; inset: 100% 0 auto 0; background: var(--stock); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 0.5rem 1rem 1rem; }
  .site-nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .header-row .btn-red, .header-phone { display: none; }
  .brand img { height: 42px; }
  .header-row { min-height: 64px; }
}

/* The board: brand blue with slot rails every --rail */
.board {
  background-color: var(--board);
  background-image:
    repeating-linear-gradient(to bottom,
      transparent 0 calc(var(--rail) - 3px),
      rgba(0, 0, 20, 0.28) calc(var(--rail) - 3px) calc(var(--rail) - 1px),
      rgba(255, 255, 255, 0.10) calc(var(--rail) - 1px) var(--rail));
  color: var(--board-ink);
}
.board a { color: inherit; }

/* Hero */
.hero { padding: var(--space-4) 0 var(--space-5); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-5); align-items: start; }
.hero h1 { font-size: clamp(2.75rem, 2rem + 3vw, 4.75rem); max-width: 16ch; }
.hero-lede { margin-top: var(--space-3); font-size: var(--step-1); line-height: 1.45; color: var(--board-ink-2); max-width: 34ch; }
.hero-facts { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.hero-facts li { display: flex; gap: 0.6rem; align-items: center; font-weight: 500; }
.hero-facts .icon { color: var(--aisl-amber); }

/* T-cards: head wider than the body, cut with a T silhouette. The wrapper carries the shadow. */
.tcard {
  --head: 44%;
  position: relative;
  filter: drop-shadow(0 2px 1px rgba(10, 12, 50, 0.35)) drop-shadow(0 10px 12px rgba(10, 12, 50, 0.35));
  transition: transform 220ms var(--ease-out), filter 220ms var(--ease-out);
}
.tcard-face {
  position: relative;
  background: var(--stock);
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% var(--head), 93% var(--head), 93% 100%, 7% 100%, 7% var(--head), 0 var(--head));
  border-radius: var(--radius-card);
  height: 100%;
}
.tcard.is-red .tcard-face { background: var(--stock-red); color: #fff; }
.tcard:hover, .tcard:focus-within { transform: translateY(-8px); filter: drop-shadow(0 4px 2px rgba(10, 12, 50, 0.3)) drop-shadow(0 20px 18px rgba(10, 12, 50, 0.45)); }
@media (prefers-reduced-motion: reduce) { .tcard, .tcard:hover, .tcard:focus-within { transform: none; transition: none; } }
.tcard-head { padding: 0.9rem 1rem 0; height: var(--head-h, auto); }
.tcard-title { font-family: var(--font-sign); font-weight: 700; font-size: var(--step-1); line-height: 1; padding-right: 1.75rem; }
.tcard-brand { font-size: var(--step--1); font-weight: 500; opacity: 0.85; margin-top: 0.2rem; }
.tcard-body { padding: 0.6rem calc(7% + 0.75rem) 0.9rem; font-size: var(--step--1); }
.tcard a.cover { text-decoration: none; color: inherit; }
.tcard a.cover::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tcard a.cover:focus-visible { outline: none; }
.tcard:has(a.cover:focus-visible) .tcard-face { outline: 3px solid var(--focus); outline-offset: -3px; }
/* The magnet that holds a card to the board */
.magnet { position: absolute; top: 0.7rem; right: 0.8rem; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd27a, var(--aisl-amber) 55%, #c98400); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35); }

/* The rack on the home hero */
.rack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--rail) - 2rem) 1.25rem; padding-top: 0.5rem; }
.rack .tcard { --head: 34%; min-height: calc(var(--rail) * 3 - 1.5rem); }
.rack .tcard-face { display: flex; flex-direction: column; }
.rack .tcard-head { min-height: 4.4rem; }
.rack .tcard-body { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.rack .thumb { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 2px; background: #fff; }
.rack .tcard-body p { line-height: 1.35; }
.rack-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin-top: var(--space-3); font-size: var(--step--1); color: var(--board-ink-2); }
.swatch { display: inline-block; width: 1.4rem; height: 0.9rem; border-radius: 2px; vertical-align: -0.1rem; margin-right: 0.4rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.swatch.red { background: var(--stock-red); }
.swatch.white { background: #fff; }

/* The quote card: the same T-card at its largest size */
.quote-card { --head: 4.5rem; margin-top: var(--space-3); max-width: 32rem; }
.quote-card .tcard-face { clip-path: polygon(0 0, 100% 0, 100% var(--head), 96% var(--head), 96% 100%, 4% 100%, 4% var(--head), 0 var(--head)); }
.quote-card:hover, .quote-card:focus-within { transform: none; }
.quote-card .tcard-head { height: var(--head); display: flex; flex-direction: column; justify-content: center; border-bottom: 2px dashed var(--line); }
.quote-card .tcard-body { padding: 1rem calc(4% + 1rem) 1.25rem; }
.field { display: grid; gap: 0.3rem; margin-bottom: 0.75rem; }
.field label { font-weight: 600; font-size: var(--step--1); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 0.6rem 0.75rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #9a9db8; border-radius: 2px;
}
.field textarea { min-height: 4.75rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6a6e8c; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--aisl-amber); outline-offset: 0; border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.75rem; }
.form-note { font-size: var(--step--1); color: var(--ink-2); margin-top: 0.6rem; }
.field input[aria-invalid="true"] { border-color: var(--stock-red); }
.field .error { color: #b3141a; font-size: var(--step--1); font-weight: 600; }

/* Paper sections */
.section { padding: var(--space-6) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-4); align-items: end; margin-bottom: var(--space-4); }
.section h2 { font-size: var(--step-3); }
.section-head p { color: var(--ink-2); max-width: 60ch; }

.service-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-5); align-items: center; }
.service-photo { position: relative; }
.service-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 2px; }
.service-photo .tag { position: absolute; left: -1rem; bottom: 1.5rem; background: var(--aisl-amber); color: var(--ink); font-family: var(--font-sign); font-weight: 700; font-size: var(--step-2); padding: 0.6rem 1rem 0.5rem; box-shadow: var(--shadow-card); }
.service-copy p + p { margin-top: var(--space-2); }
.service-copy .lead { font-size: var(--step-1); line-height: 1.45; }
.service-copy p { max-width: 62ch; color: var(--ink-2); }
.service-copy .lead { color: var(--ink); }

/* Ruled list for the three solution facts: the permit sheet */
.ruled { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ruled li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.ruled h3 { font-size: var(--step-2); }
.ruled p { color: var(--ink-2); max-width: 62ch; }

/* Downloads band on the board */
.downloads { padding: var(--space-6) 0; }
.downloads h2 { font-size: var(--step-3); }
.downloads-intro { color: var(--board-ink-2); margin-top: 0.75rem; max-width: 52ch; }
.dl-rack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.25rem; margin-top: var(--space-4); }
.dl-rack .tcard { --head: 3.6rem; }
.dl-rack .tcard-head { height: var(--head); display: flex; align-items: center; padding-top: 0; }
.dl-rack .tcard-body { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-weight: 600; }
.dl-group-title { font-family: var(--font-sign); font-size: var(--step-1); font-weight: 600; color: var(--board-ink-2); margin-top: var(--space-4); }

/* Industry photo strip */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--ink); }
.strip figure { margin: 0; position: relative; }
.strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: saturate(0.85); }
.strip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem 0.9rem; background: linear-gradient(transparent, rgba(16, 18, 52, 0.85)); color: #fff; font-family: var(--font-sign); font-weight: 600; font-size: var(--step-1); }

/* Notices: blog posts pinned like notices */
.notices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.notice { background: var(--stock); padding: 1.5rem 1.25rem 1.25rem; position: relative; box-shadow: 0 1px 1px rgba(20, 22, 60, 0.12), 0 8px 18px -10px rgba(20, 22, 60, 0.3); }
.notice .magnet { top: -9px; right: auto; left: 1.25rem; }
.notice time { font-size: var(--step--1); color: var(--ink-2); }
.notice h3 { font-size: var(--step-1); margin-top: 0.4rem; }
.notice a { text-decoration: none; }
.notice a::after { content: ""; position: absolute; inset: 0; }
.notice:hover h3 { text-decoration: underline; text-underline-offset: 0.15em; }

/* Contacts: the call-out list */
.contacts { padding: var(--space-6) 0; }
.contacts-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-5); }
.contacts h2 { font-size: var(--step-3); }
.contacts .intro { color: var(--board-ink-2); margin-top: 0.75rem; max-width: 40ch; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.person { background: var(--stock); color: var(--ink); padding: 1.1rem 1.25rem; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.person .area { font-family: var(--font-sign); font-weight: 600; font-size: var(--step-1); }
.person .name { font-weight: 600; margin-top: 0.15rem; }
.person .role { color: var(--ink-2); font-size: var(--step--1); }
.person ul { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; gap: 0.25rem; font-size: var(--step--1); }
.person li a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 32px; }

/* Footer */
.site-footer { background: var(--ink); color: #c9cbe0; padding: var(--space-5) 0 var(--space-3); font-size: var(--step--1); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: var(--space-4); }
.footer-logo { background: #fff; display: inline-block; padding: 0.6rem 0.75rem; border-radius: 2px; }
.footer-logo img { height: 44px; width: auto; }
.site-footer h2 { font-family: var(--font-body); font-size: var(--step-0); color: #fff; font-weight: 600; margin-bottom: 0.75rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { border-top: 1px solid #2c3160; margin-top: var(--space-4); padding-top: var(--space-3); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-right: 5rem; }

/* Reserved: the website chat button sits here at build. The mockup draws a placeholder only. */
.livechat-slot { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--aisl-navy); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); border: 2px solid #fff; }

/* Category page */
.crumbs { font-size: var(--step--1); color: var(--board-ink-2); }
.crumbs ol { list-style: none; display: flex; gap: 0.4rem; padding: 0; margin: 0; flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.6; }
.cat-hero { padding: var(--space-4) 0 var(--space-5); }
.cat-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-5); align-items: end; margin-top: var(--space-3); }
.cat-hero h1 { font-size: var(--step-4); max-width: 14ch; }
.cat-hero .lede { margin-top: var(--space-3); font-size: var(--step-1); line-height: 1.45; color: var(--board-ink-2); max-width: 46ch; }
.cat-hero .proof { background: var(--stock); color: var(--ink); padding: 1.25rem; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.cat-hero .proof img { height: 36px; width: auto; }
.cat-hero .proof p { margin-top: 0.75rem; font-size: var(--step--1); color: var(--ink-2); }
.cat-hero .proof .btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.btn-small { min-height: 44px; padding: 0 0.9rem; font-size: var(--step--1); }

.conditions { background: var(--board-deep); border-top: 1px solid rgba(255, 255, 255, 0.12); border-bottom: 1px solid rgba(0, 0, 0, 0.3); position: sticky; top: 76px; z-index: 20; }
@media (max-width: 900px) { .conditions { top: 64px; } }
.conditions-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding: 0.9rem 0; color: #fff; }
.conditions-title { font-family: var(--font-sign); font-weight: 700; font-size: var(--step-1); }
.slider { display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; align-items: center; }
.slider label { font-weight: 600; font-size: var(--step--1); }
.slider output { font-family: var(--font-sign); font-weight: 700; font-size: var(--step-1); min-width: 5.5ch; text-align: right; color: var(--aisl-amber); }
.slider input[type="range"] { width: 100%; accent-color: var(--aisl-amber); height: 32px; }
.readout { font-size: var(--step--1); color: var(--board-ink-2); text-align: right; }
.readout strong { color: #fff; font-size: var(--step-0); }
.btn-reset { background: none; border: 1.5px solid rgba(255, 255, 255, 0.5); color: #fff; min-height: 40px; padding: 0 0.75rem; border-radius: 2px; font: 600 var(--step--1) var(--font-body); cursor: pointer; margin-left: 0.5rem; }

.cat-body { padding: var(--space-5) 0 var(--space-6); }
.cat-layout { display: grid; grid-template-columns: minmax(0, 8.5fr) minmax(0, 3.5fr); gap: var(--space-4); align-items: start; }
.materials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem 1.5rem; }
.material { --head: 7.5rem; }
.material .tcard-face { clip-path: polygon(0 0, 100% 0, 100% var(--head), 95% var(--head), 95% 100%, 5% 100%, 5% var(--head), 0 var(--head)); }
.material .tcard-head { height: var(--head); display: grid; grid-template-columns: 96px 1fr; gap: 0.9rem; padding: 1rem; align-items: start; }
.material .tcard-head img { width: 96px; height: 96px; object-fit: cover; border-radius: 2px; border: 1px solid var(--line); }
.material .tcard-title { font-size: var(--step-1); padding-right: 1.5rem; }
.material .chip { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.45rem; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.material .chip i { width: 0.85rem; height: 0.85rem; border-radius: 1px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.material .tcard-body { padding: 0.9rem calc(5% + 1rem) 1.1rem; display: grid; gap: 0.8rem; }
.material .app { color: var(--ink-2); line-height: 1.45; }
.rating { display: grid; gap: 0.25rem; }
.rating-label { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.8125rem; font-weight: 600; }
.rating-label span:last-child { color: var(--ink-2); font-weight: 500; }
/* Full scale drawn, unrated span kept as a ghost cell */
.bar { position: relative; height: 10px; background: repeating-linear-gradient(90deg, #e7e8f0 0 6px, #f4f5f9 6px 8px); border-radius: 1px; }
.bar span { position: absolute; top: 0; bottom: 0; background: var(--aisl-navy); border-radius: 1px; }
.bar span.cont { background: var(--aisl-blue); opacity: 0.45; }
.bar .mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--stock-red); display: none; }
.has-conditions .bar .mark { display: block; }
.approvals { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.approvals li { list-style: none; font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.45rem; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-2); }
.approvals { margin: 0; padding: 0; }
.material-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.material-actions .btn { min-height: 44px; font-size: var(--step--1); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--paper); }
.btn-add[aria-pressed="true"] { background: var(--aisl-amber); color: var(--ink); }
/* A material that is not rated for the chosen conditions keeps its slot as a ghost */
.material.is-out { filter: none; }
.material.is-out .tcard-face { background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); color: #fff; }
.material.is-out .tcard-face > * { opacity: 0.55; }
.material.is-out .out-note { display: block; opacity: 1; }
.out-note { display: none; position: absolute; right: 1rem; top: 1rem; font-size: 0.75rem; font-weight: 700; color: #fff; background: rgba(0, 0, 0, 0.35); padding: 0.2rem 0.5rem; border-radius: 2px; }
.material.is-out .magnet { display: none; }
.material.is-ask .tcard-face { outline: 2px dashed var(--aisl-amber); outline-offset: -6px; }
.note-limits { margin-top: var(--space-4); padding: 1rem 1.25rem; background: rgba(0, 0, 0, 0.18); color: var(--board-ink-2); font-size: var(--step--1); max-width: 72ch; border-radius: 2px; }
.note-limits strong { color: #fff; }

.quote-dock { position: sticky; top: calc(76px + 6.5rem); }
.quote-dock .quote-card { margin-top: 0; max-width: none; }
.quote-lines { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.4rem; }
.quote-lines li { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; align-items: center; padding: 0.5rem 0.6rem; background: var(--paper); border-radius: 2px; font-size: var(--step--1); font-weight: 600; animation: slot-in 320ms var(--ease-out); }
.quote-lines button { background: none; border: 0; min-width: 32px; min-height: 32px; cursor: pointer; color: var(--ink-2); border-radius: 2px; }
.quote-lines button:hover { background: #e3e4ee; color: var(--ink); }
.quote-empty { font-size: var(--step--1); color: var(--ink-2); padding: 0.6rem; border: 1.5px dashed #b9bbd0; border-radius: 2px; margin-bottom: 0.75rem; }
@keyframes slot-in { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .quote-lines li { animation: none; } }

.sizing { padding: var(--space-5) 0; }
.sizing-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-5); align-items: center; }
.sizing img { border: 1px solid var(--line); background: #fff; }
.sizing h2 { font-size: var(--step-3); }
.sizing p { color: var(--ink-2); margin-top: 0.75rem; max-width: 55ch; }
.sizing .btns { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: var(--space-3); }

.related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.related a { display: block; background: var(--stock); padding: 1rem 1.1rem; text-decoration: none; border-top: 4px solid var(--aisl-blue); font-family: var(--font-sign); font-weight: 600; font-size: var(--step-1); box-shadow: 0 1px 1px rgba(20, 22, 60, 0.12); }
.related a.red { border-top-color: var(--stock-red); }
.related a:hover { box-shadow: 0 1px 1px rgba(20, 22, 60, 0.12), 0 10px 20px -12px rgba(20, 22, 60, 0.45); }

/* Phone quote toggle sits bottom-left, clear of the Live Chat corner */
.quote-fab { display: none; }

@media (max-width: 1100px) {
  .rack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-grid, .service-grid, .section-head, .contacts-grid, .cat-hero-grid, .sizing-grid, .cat-layout { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-dock { position: static; }
  .conditions-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .conditions-title { grid-column: 1 / -1; }
  .readout { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 640px) {
  :root { --rail: 64px; }
  .hero { padding: var(--space-4) 0; }
  .rack { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; margin-inline: -1rem; padding: 0.75rem 1rem 1.25rem; }
  .rack .tcard { flex: 0 0 72%; scroll-snap-align: start; }
  .quote-card { max-width: none; }
  .field-row { grid-template-columns: 1fr; }
  .ruled li { grid-template-columns: 1fr; gap: 0.5rem; }
  .dl-rack, .notices, .people, .related, .materials { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section, .downloads, .contacts { padding: var(--space-5) 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .conditions { position: static; }
  .conditions-row { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .material { --head: 7rem; }
  .material .tcard-head { grid-template-columns: 80px 1fr; }
  .material .tcard-head img { width: 80px; height: 80px; }
  .service-photo .tag { left: 0.75rem; }
  .quote-fab { display: inline-flex; position: fixed; left: 16px; bottom: 20px; z-index: 40; min-height: 52px; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3); }
}

/* Controls inside a card sit above the card's stretched link */
.material-actions, .tcard .btn, .tcard input, .tcard textarea, .tcard select { position: relative; z-index: 2; }
