/* One part number's page (flgtechnics.com/inventory/part/<slug>). The live
   inventory page's look: the same tokens, fonts, header, table and footer as
   live_inventory.html, dark only. Self-hosted fonts under /static/live-inventory/
   (the website proxy forwards only that). No script on these pages. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/live-inventory/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/static/live-inventory/fonts/space-grotesk-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("/static/live-inventory/fonts/jetbrains-mono-latin.woff2") format("woff2"); }
:root {
  color-scheme: dark;
  --bg: #05070a;
  --surface: #0a0d12;
  --surface-2: #0f141b;
  --text: #e2e8f0;
  --head: #f8fafc;
  --muted: #94a3b8;
  --dim: #8a97ab;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --accent: #7dd3fc;
  --accent-hover: #bae6fd;
  --on-accent: #05070a;
  --accent-soft: rgba(125, 211, 252, 0.1);
  --grid-line: rgba(125, 211, 252, 0.045);
  --glow: 0 0 0 1px rgba(125, 211, 252, 0.4), 0 8px 32px -8px rgba(56, 189, 248, 0.5);
  --warn-bg: #2a2110;
  --warn-text: #f5d58a;
  --warn-border: #5a4516;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans);
  min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.mono-label { font: 500 11px/1.3 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }

/* Header */
.site-head { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: rgba(5, 7, 10, 0.82); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 88px; }
.logo-link { display: inline-flex; flex: 0 0 auto; border-radius: 6px; }
.logo-link img { height: 68px; width: auto; display: block; }
.head-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
.back-link {
  color: var(--muted); text-decoration: none; font-size: 14px; padding: 8px 10px; border-radius: 6px; white-space: nowrap;
  transition: color 160ms var(--ease);
}
.back-link:hover { color: var(--head); }

/* Buttons (links styled as the page's buttons) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: 6px; cursor: pointer; white-space: nowrap; text-decoration: none;
  border: 0; background: var(--accent); color: var(--on-accent); box-shadow: var(--glow);
  font-weight: 600; font-size: 15px;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.97); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.02); color: var(--text); box-shadow: none; border: 1px solid var(--line-2); font-weight: 500;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.24); color: var(--head); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background-image:
    radial-gradient(60rem 26rem at 12% -10%, rgba(56, 189, 248, 0.14), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
}
.hero .wrap { padding-top: 28px; padding-bottom: 32px; }
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--head); font-family: var(--mono); overflow-wrap: anywhere; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  font: 500 11px/1.3 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: #cbd5e1;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; background: rgba(255, 255, 255, 0.02);
}
.eyebrow::before {
  content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
h1 {
  margin: 18px 0 10px; font: 600 clamp(1.9rem, 5vw, 3.25rem)/1.08 var(--display);
  letter-spacing: -0.03em; color: var(--head); overflow-wrap: anywhere;
}
h1 .h-pn { font-family: var(--mono); font-weight: 500; letter-spacing: -0.02em; color: var(--accent); }
.lede { margin: 0; color: var(--muted); max-width: 46rem; font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 260px)); gap: 10px; margin: 24px 0 0; padding: 0; }
.fact { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); border-radius: 8px; padding: 12px 14px; min-width: 0; margin: 0; }
.fact dt { margin: 0 0 4px; }
.fact dd { margin: 0; color: var(--head); font-weight: 500; overflow-wrap: anywhere; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 26px 0 0; }
.minorder { margin: 0; color: var(--head); font-weight: 600; }

/* Lines table */
main.wrap { padding-top: 28px; }
main h2 { margin: 0 0 12px; font: 600 22px/1.25 var(--display); letter-spacing: -0.01em; color: var(--head); }
.tablewrap { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--surface-2); text-align: left; padding: 0 12px; height: 44px;
  border-bottom: 1px solid var(--line); font: 500 11px/1.2 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
}
thead th.num, td.num { text-align: right; }
tbody td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: top; font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
.pill {
  display: inline-block; padding: 3px 8px; border-radius: 4px; border: 1px solid var(--line-2);
  font: 500 11px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.trace { font-size: 13px; color: var(--muted); }
.dim { color: var(--muted); }
td.num { font-variant-numeric: tabular-nums; }
td.c-serial { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.after { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

/* Not in stock */
.state {
  background: var(--surface); border: 1px dashed var(--line-2); border-radius: 10px; padding: 32px 20px; text-align: center;
  margin: 40px auto 0; max-width: 40rem;
}
.state h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-top: 0; }
.state p { margin: 0 auto 16px; color: var(--muted); max-width: 32rem; }
.state .cta { justify-content: center; }

/* Footer */
.site-foot { margin-top: 56px; border-top: 1px solid var(--line); background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-top: 44px; padding-bottom: 36px; }
.foot-brand img { height: 56px; width: auto; display: block; }
.foot-brand .mono-label { display: block; margin: 12px 0 0 2px; font-size: 10px; letter-spacing: 0.22em; }
.foot-brand p { margin: 16px 0 0; color: var(--muted); font-size: 14px; max-width: 28rem; }
.foot-col .mono-label { margin-bottom: 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.foot-col a { color: var(--muted); text-decoration: none; transition: color 160ms var(--ease); }
.foot-col a:hover { color: var(--accent); }
.foot-col li { color: var(--muted); }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 18px; padding-bottom: 26px;
  border-top: 1px solid var(--line); color: var(--dim); font-size: 13px;
}
.foot-bottom .mono-label { font-size: 10px; letter-spacing: 0.2em; }

@media (max-width: 960px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .back-link { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-head .wrap { min-height: 68px; }
  .logo-link img { height: 48px; }
  .head-actions .btn { min-height: 40px; padding: 0 12px; font-size: 14px; }
  .eyebrow { font-size: 9.5px; letter-spacing: 0.08em; padding: 5px 10px; }
  .lede { font-size: 16px; }
  .cta .btn { width: 100%; }
  .tablewrap { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tbody tr { margin: 0 0 10px; padding: 12px 14px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
  tbody td { display: flex; justify-content: space-between; gap: 14px; padding: 3px 0; border: 0; text-align: right; }
  tbody td::before {
    content: attr(data-label); flex: 0 0 auto; text-align: left;
    font: 500 11px/1.9 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim);
  }
  td.num { text-align: right; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
