/* B2B industrial: Kestrel Fixings, an invented fastener manufacturer with its own freight. Steel grey, graphite text and a safety orange accent with Arial Narrow headings and monospace part numbers. Specs, quotes and tracking are the product. */

.bi-page {
  --bi-canvas: #f5f6f7;
  --bi-surface: #ffffff;
  --bi-band: #e9ebee;
  --bi-ink: #16191d;
  --bi-muted: #4d545c;
  --bi-line: #d3d7dc;
  --bi-line-strong: #767e88;
  --bi-accent: #b84300;
  --bi-accent-hover: #933500;
  --bi-on-accent: #ffffff;
  --bi-tint: #fbe6d9;
  --bi-success: #1e6b35;
  --bi-danger: #a3241b;
  --bi-focus: #b84300;
  --bi-head: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --bi-body: Arial, "Segoe UI", sans-serif;
  --bi-r: 2px;

  background: var(--bi-canvas);
  color: var(--bi-ink);
  font-family: var(--bi-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Dark mode, the default (PRD section 13.10): the factory floor at night, graphite with safety orange. Only this template's
   tokens change. */
@media screen {
  :root[data-theme="dark"] .bi-page {
    --bi-canvas: #111316;
    --bi-surface: #1a1d21;
    --bi-band: #15181b;
    --bi-ink: #eceef1;
    --bi-muted: #b0b6be;
    --bi-line: #2e3339;
    --bi-line-strong: #7d858f;
    --bi-accent: #ff9a52;
    --bi-accent-hover: #ffb985;
    --bi-on-accent: #2a1000;
    --bi-tint: #3a2617;
    --bi-success: #8fd29b;
    --bi-danger: #ff8a80;
    --bi-focus: #ff9a52;
    color-scheme: dark;
  }
}

.bi-page [hidden] { display: none !important; }
:where(.bi-page) :is(p, h1, h2, h3, h4, ul, ol, dl, dd, fieldset, figure, blockquote) { margin: 0; }
:where(.bi-page) :is(ul, ol) { padding: 0; list-style: none; }
:where(.bi-page) fieldset { padding: 0; border: 0; min-width: 0; }
:where(.bi-page) a { color: var(--bi-accent); }
:where(.bi-page) :is(h1, h2, h3, h4) { color: inherit; }
.bi-page :focus-visible { outline: 3px solid var(--bi-focus); outline-offset: 2px; }
.bi-page :is(input[type="range"], input[type="checkbox"], input[type="radio"]) { accent-color: var(--bi-accent); }
html:has(.bi-page) { scroll-behavior: smooth; }
.bi-page section[id] { scroll-margin-top: 72px; }
.bi-wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.bi-header { position: sticky; top: 0; z-index: 20; background: var(--bi-canvas); border-bottom: 1px solid var(--bi-line); }
.bi-header-in { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.bi-logo { display: flex; align-items: center; gap: 10px; font: 700 1.2rem/1.1 var(--bi-head); color: var(--bi-ink) !important; text-decoration: none; }
.bi-logo-mark { width: 30px; height: 30px; flex: none; fill: var(--bi-tint); stroke: var(--bi-accent); stroke-width: 2; stroke-linejoin: round; }
.bi-nav { margin-left: auto; }
.bi-nav ul { display: flex; gap: 22px; }
.bi-nav a { color: var(--bi-ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.bi-nav a:hover { color: var(--bi-accent); text-decoration: underline; text-underline-offset: 4px; }
.bi-menu-btn { display: none; }
.bi-theme-btn {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--bi-line-strong); border-radius: var(--bi-r); background: transparent; color: inherit; font-size: 1.15rem; cursor: pointer;
}
.bi-theme-btn:hover { background: var(--bi-tint); }

.bi-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border: 2px solid var(--bi-accent); border-radius: var(--bi-r); font: 700 1rem/1.2 var(--bi-head); text-decoration: none; cursor: pointer; text-align: center;
}
.bi-btn--fill { background: var(--bi-accent); color: var(--bi-on-accent) !important; }
.bi-btn--fill:hover { background: var(--bi-accent-hover); border-color: var(--bi-accent-hover); }
.bi-btn--line { background: transparent; color: var(--bi-accent) !important; }
.bi-btn--line:hover { background: var(--bi-tint); }
.bi-btn--big { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.bi-btn:disabled { background: var(--bi-band); border-color: var(--bi-line-strong); color: var(--bi-muted) !important; cursor: not-allowed; }

.bi-eyebrow { font-weight: 700; color: var(--bi-accent); font-size: .92rem; letter-spacing: .02em; }
.bi-title { font: 700 clamp(1.7rem, 3.4vw, 2.4rem)/1.15 var(--bi-head); }
.bi-sub { color: var(--bi-muted); margin-top: 8px; max-width: 64ch; }
.bi-head { margin-bottom: 26px; }
.bi-sec { padding: 72px 0; }
.bi-band { background: var(--bi-band); }
.bi-muted { color: var(--bi-muted); }
.bi-small { font-size: .9rem; color: var(--bi-muted); }

.bi-hero { padding: 64px 0 56px; }
.bi-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.bi-hero-title { font: 700 clamp(2.2rem, 5vw, 3.5rem)/1.06 var(--bi-head); margin-top: 10px; }
.bi-lede { font-size: 1.15rem; color: var(--bi-muted); margin-top: 16px; max-width: 54ch; }
.bi-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.bi-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; color: var(--bi-muted); font-size: .95rem; }
.bi-facts strong { color: var(--bi-ink); }
.bi-panel { padding: 24px; background: var(--bi-surface); border: 1px solid var(--bi-line); border-radius: calc(var(--bi-r) + 4px); box-shadow: 0 24px 40px -30px var(--color-shadow); }
.bi-panel-title { font: 700 1.1rem var(--bi-head); margin-bottom: 12px; }

.bi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.bi-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bi-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--bi-surface); border: 1px solid var(--bi-line); border-radius: var(--bi-r); }
.bi-card h3 { font: 700 1.15rem/1.25 var(--bi-head); }
.bi-card p { color: var(--bi-muted); font-size: .96rem; }
.bi-card .bi-btn { margin-top: auto; align-self: flex-start; }
.bi-card.is-on { border: 2px solid var(--bi-accent); }
.bi-art { height: 120px; margin: -22px -22px 6px; border-radius: var(--bi-r) var(--bi-r) 0 0; background: var(--bi-tint); position: relative; overflow: hidden; }
.bi-art::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: 18%; top: 22%; background: var(--bi-canvas); opacity: .7; }
.bi-price { font: 700 1.5rem var(--bi-head); color: var(--bi-ink); }
.bi-badge { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--bi-line-strong); font-size: .82rem; font-weight: 600; color: var(--bi-ink); }
.bi-badge--on { background: var(--bi-tint); border-color: var(--bi-accent); }
.bi-badge--bad { border-color: var(--bi-danger); color: var(--bi-danger); }
.bi-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--bi-muted); }

.bi-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.bi-chip { min-height: 42px; padding: 0 16px; border: 1px solid var(--bi-line-strong); border-radius: 999px; background: var(--bi-surface); color: var(--bi-ink); font: 600 .95rem var(--bi-body); cursor: pointer; }
.bi-chip:hover { border-color: var(--bi-accent); }
.bi-chip[aria-pressed="true"] { background: var(--bi-accent); border-color: var(--bi-accent); color: var(--bi-on-accent); }
.bi-count { font-weight: 600; margin-bottom: 14px; }
.bi-empty { padding: 28px; text-align: center; border: 1px dashed var(--bi-line-strong); border-radius: var(--bi-r); }

.bi-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; counter-reset: st; }
.bi-steps li { padding: 22px; background: var(--bi-surface); border: 1px solid var(--bi-line); border-radius: var(--bi-r); counter-increment: st; }
.bi-steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--bi-accent); color: var(--bi-on-accent); font-weight: 700; }
.bi-steps h3 { font: 700 1.1rem var(--bi-head); }
.bi-steps p { color: var(--bi-muted); font-size: .95rem; margin-top: 4px; }

.bi-table { width: 100%; border-collapse: collapse; background: var(--bi-surface); border: 1px solid var(--bi-line); border-radius: var(--bi-r); overflow: hidden; }
.bi-table th, .bi-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--bi-line); vertical-align: top; }
.bi-table th { font-size: .88rem; color: var(--bi-muted); background: var(--bi-band); }
.bi-table td.bi-num, .bi-table th.bi-num { text-align: right; font-variant-numeric: tabular-nums; }

.bi-meter { height: 10px; border-radius: 999px; background: var(--bi-line); overflow: hidden; }
.bi-meter span { display: block; height: 100%; background: var(--bi-accent); border-radius: inherit; }
.bi-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 16px; }
.bi-stat strong { display: block; font: 700 2rem/1.1 var(--bi-head); }
.bi-stat span { color: var(--bi-muted); font-size: .92rem; }

.bi-faq-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.bi-qs details { border-bottom: 1px solid var(--bi-line); }
.bi-qs summary { padding: 16px 0; font-weight: 700; cursor: pointer; }
.bi-qs p { padding: 0 0 16px; color: var(--bi-muted); }

.bi-form { max-width: 760px; margin-inline: auto; padding: 32px; background: var(--bi-surface); border: 1px solid var(--bi-line); border-radius: calc(var(--bi-r) + 4px); display: flex; flex-direction: column; gap: 18px; }
.bi-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bi-field--full { grid-column: 1 / -1; }
.bi-field label, .bi-field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.bi-field :is(input, select, textarea) { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--bi-line-strong); border-radius: calc(var(--bi-r) - 2px); background: var(--bi-canvas); color: var(--bi-ink); font: 1rem var(--bi-body); }
.bi-field textarea { min-height: 110px; resize: vertical; }
.bi-field :is(input, select, textarea)[aria-invalid="true"] { border: 2px solid var(--bi-danger); }
.bi-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.bi-check input { width: 20px; min-height: 20px; height: 20px; margin-top: 3px; accent-color: var(--bi-accent); }
.bi-hint { font-size: .88rem; color: var(--bi-muted); margin-top: 6px; }
.bi-error { color: var(--bi-danger); font-weight: 600; font-size: .92rem; margin-top: 6px; }
.bi-error::before { content: "! "; }
.bi-status { font-weight: 600; }
.bi-status.is-ok { padding: 14px 16px; border-radius: calc(var(--bi-r) - 2px); background: var(--bi-tint); border-left: 4px solid var(--bi-success); }

.bi-footer { padding: 28px 0; border-top: 1px solid var(--bi-line); color: var(--bi-muted); font-size: .92rem; }
.bi-footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .bi-header-in { flex-wrap: wrap; gap: 10px; }
  .bi-theme-btn { margin-left: auto; }
  .bi-menu-btn {
    display: inline-flex; align-items: center; order: 3; min-height: 44px; padding: 0 16px;
    border: 1px solid var(--bi-line-strong); border-radius: var(--bi-r); background: transparent; color: var(--bi-ink); font: 600 .95rem var(--bi-body); cursor: pointer;
  }
  .bi-nav { display: none; order: 5; width: 100%; margin: 0; }
  .bi-nav.is-open { display: block; padding-bottom: 12px; }
  .bi-nav ul { flex-direction: column; gap: 0; }
  .bi-nav a { display: block; padding: 12px 0; border-top: 1px solid var(--bi-line); }
  .bi-header-cta { display: none; }
  .bi-hero-in, .bi-faq-in, .bi-grid--2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 640px) {
  .bi-sec { padding: 52px 0; }
  .bi-fields { grid-template-columns: minmax(0, 1fr); }
  .bi-form { padding: 20px; }
  .bi-table thead { display: none; }
  .bi-table, .bi-table tbody, .bi-table tr, .bi-table td { display: block; width: 100%; }
  .bi-table tr { border-bottom: 1px solid var(--bi-line-strong); padding: 6px 0; }
  .bi-table td { border: 0; padding: 6px 14px; text-align: left !important; }
  .bi-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--bi-muted); }
}

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

@media print {
  .bi-header, .bi-theme-btn, .bi-form { display: none; }
}

/* This template's own sections */
.bi-big { font: 700 1.6rem var(--bi-head); font-variant-numeric: tabular-nums; }
.bi-pn { font-family: Consolas, "Courier New", monospace; font-weight: 700; }
.bi-specs td, .bi-specs th { font-variant-numeric: tabular-nums; }
.bi-add { min-height: 36px; padding: 4px 12px; border: 1px solid var(--bi-accent); border-radius: var(--bi-r); background: var(--bi-surface); color: var(--bi-accent); font: 700 .9rem var(--bi-body); cursor: pointer; white-space: nowrap; }
.bi-add:hover { background: var(--bi-tint); }
.bi-add[aria-pressed="true"] { background: var(--bi-accent); color: var(--bi-on-accent); }
.bi-quote { display: grid; gap: 32px; align-items: start; }
.bi-qtable input { width: 110px; min-height: 40px; padding: 6px 8px; border: 1px solid var(--bi-line-strong); border-radius: var(--bi-r); background: var(--bi-surface); color: var(--bi-ink); font: inherit; }
.bi-rm { min-height: 36px; border: 0; background: none; color: var(--bi-danger); font: 700 .9rem var(--bi-body); text-decoration: underline; cursor: pointer; }
.bi-sum div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--bi-line); }
.bi-sum dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.bi-sum-big { border-bottom: 0 !important; font: 700 1.3rem var(--bi-head); }
.bi-small { color: var(--bi-muted); font-size: .9rem; margin: 10px 0 14px; }
.bi-track { display: grid; gap: 40px; align-items: start; }
.bi-label { display: block; font-weight: 700; margin: 16px 0 6px; }
.bi-track-row { display: flex; gap: 8px; }
.bi-track-row input { flex: 1; min-height: 44px; padding: 8px 12px; border: 1px solid var(--bi-line-strong); border-radius: var(--bi-r); background: var(--bi-surface); color: var(--bi-ink); font: 700 1rem Consolas, "Courier New", monospace; text-transform: uppercase; }
.bi-track-row input[aria-invalid="true"] { border: 2px solid var(--bi-danger); }
.bi-error { margin-top: 8px; color: var(--bi-danger); font-weight: 700; }
.bi-tl { position: relative; padding-left: 28px; }
.bi-tl li { position: relative; padding: 0 0 18px; }
.bi-tl li::before { content: ""; position: absolute; left: -24px; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--bi-line-strong); background: var(--bi-surface); }
.bi-tl li::after { content: ""; position: absolute; left: -17px; top: 20px; bottom: 0; width: 2px; background: var(--bi-line); }
.bi-tl li:last-child::after { display: none; }
.bi-tl li.is-done::before { background: var(--bi-success); border-color: var(--bi-success); }
.bi-tl li.is-now::before { background: var(--bi-accent); border-color: var(--bi-accent); }
.bi-tl b { display: block; }
.bi-tl span { color: var(--bi-muted); font-size: .92rem; }
