/* Vixon Piping 4130: site stylesheet (Oct 2026).
   Brand from vixonpiping.com: logo teal #42C8B7 on charcoal and white. Roboto Slab for headings echoes the slab
   letters of the logo; Inter for text, as on vixonpiping.com. Square-cornered controls and a short teal rule above
   section headings, after the rule over "IXON" in the logo. A darker teal carries text and buttons on light grounds
   for contrast; the logo teal is used on charcoal, in dark mode and for marks. Orange marks pressure and centerlines.
   Signature element: the line run, one run of heavy-wall pipe with each product at its place in a high-pressure line
   and a pressure pulse moving through the bore. Product pages lead with technical drawings on a drafting grid. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/roboto-slab-latin-wght-normal.woff2") format("woff2-variations"), url("/assets/fonts/roboto-slab-latin-wght-normal.woff2") format("woff2");
}

:root {
  --ground: #ffffff;
  --mist: #f2f5f4;
  --surface: #ffffff;
  --surface-2: #e9efed;
  --ink: #161b1a;
  --ink-2: #3d4846;
  --ink-3: #5e6b68;
  --line: #dbe3e1;
  --line-strong: #c0ccc9;
  --brand: #0a7366;
  --brand-strong: #075e53;
  --brand-tint: #e3f4f1;
  --on-brand: #ffffff;
  --link: #0a7366;
  --accent: #42c8b7;
  --forge: #e8702a;
  --forge-text: #a3480f;
  --deep: #151a19;
  --deep-2: #1f2624;
  --deep-line: rgb(255 255 255 / 0.12);
  --on-deep: #eef3f1;
  --on-deep-2: #a7b5b1;
  --on-deep-link: #7fdccf;
  --focus: #f5b83d;
  --steel: #8f9c98;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Roboto Slab", "Rockwell", "Roboto Serif", Georgia, "Times New Roman", serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.7rem, 1.25rem + 1.8vw, 2.4rem);
  --step-4: clamp(2.1rem, 1.4rem + 2.8vw, 3.25rem);
  --step-5: clamp(2.4rem, 1.3rem + 4.2vw, 4.4rem);

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --wrap: 1240px;
  --measure: 68ch;
  --r-btn: 6px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;
  --float: 0 18px 40px -18px rgb(10 16 15 / 0.5), 0 2px 6px rgb(10 16 15 / 0.08);
  --header-h: 76px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0d1110;
    --mist: #121816;
    --surface: #151c1a;
    --surface-2: #1b2421;
    --ink: #e8eeec;
    --ink-2: #b2bfbb;
    --ink-3: #84928e;
    --line: #233029;
    --line-strong: #33433f;
    --brand: #42c8b7;
    --brand-strong: #74dccd;
    --brand-tint: #0f2d29;
    --on-brand: #071a17;
    --link: #6fd8c9;
    --forge-text: #f59a5c;
    --deep: #080b0a;
    --deep-2: #111715;
    --steel: #6f7d79;
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--brand-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); }
[hidden] { display: none !important; }
p { margin: 0; }
strong { font-weight: 650; }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { left: var(--gutter); top: 10px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 700; line-height: 1.08; letter-spacing: -0.018em; }
h2 { font-size: var(--step-3); font-weight: 700; line-height: 1.14; letter-spacing: -0.012em; }
h3 { font-size: var(--step-1); font-weight: 650; line-height: 1.25; letter-spacing: -0.005em; }
h4 { font-size: var(--step-0); font-weight: 650; line-height: 1.3; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.eyebrow { font-size: 0.95rem; font-weight: 650; color: var(--brand); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--accent); flex: none; }
.mono, code, .val { font-family: var(--font); font-weight: 600; font-size: 0.96em; font-variant-numeric: tabular-nums; }
code { background: var(--surface-2); padding: 0.08em 0.4em; border-radius: 4px; font-weight: 500; }
small, .small { font-size: var(--step--1); }
figcaption, .caption { font-size: var(--step--1); color: var(--ink-3); line-height: 1.45; margin-top: 10px; }

/* ---------- buttons and chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-btn); border: 1px solid transparent;
  font-family: var(--font); font-size: 1rem; font-weight: 650; line-height: 1.1; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); text-decoration: none; }
.on-deep .btn-ghost { color: var(--on-deep); border-color: rgb(255 255 255 / 0.32); }
.on-deep .btn-ghost:hover { border-color: #fff; color: #fff; background: rgb(255 255 255 / 0.06); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.94rem; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.chip svg { width: 16px; height: 16px; color: var(--brand); flex: none; }
.on-deep .chip { background: rgb(255 255 255 / 0.04); border-color: var(--deep-line); color: var(--on-deep); }
.on-deep .chip svg { color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand picture, .brand img { width: 150px; height: auto; }
.brand .lockup { font-size: 0.86rem; font-weight: 600; line-height: 1.15; color: var(--ink-2); border-left: 1px solid var(--line-strong); padding-left: 14px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 9px 12px; border-radius: var(--r-btn); white-space: nowrap; transition: background-color 0.15s ease; }
.nav a:not(.btn):hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"], .nav a.is-section { color: var(--brand); background: var(--brand-tint); }
.nav .btn { margin-left: 10px; min-height: 44px; }

.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: var(--r-btn); border: 1px solid var(--line-strong); font-weight: 650; background: var(--surface); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .bars { width: 16px; height: 10px; position: relative; }
.menu summary .bars::before, .menu summary .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.2s ease, top 0.2s ease; }
.menu summary .bars::before { top: 0; }
.menu summary .bars::after { top: 8px; }
.menu[open] summary .bars::before { top: 4px; transform: rotate(45deg); }
.menu[open] summary .bars::after { top: 4px; transform: rotate(-45deg); }
.menu .panel {
  position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); bottom: 0; overflow-y: auto;
  background: var(--ground); padding: 12px var(--gutter-r) 32px var(--gutter); display: grid; align-content: start; gap: 0;
}
.menu .panel a:not(.btn) { padding: 16px 2px; color: var(--ink); text-decoration: none; font-size: 1.35rem; font-weight: 700; border-bottom: 1px solid var(--line); }
.menu .panel .btn { margin-top: 20px; }
@media (max-width: 1300px) { .brand .lockup { display: none; } }
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 520px) { .brand .lockup { display: none; } .brand img, .brand picture { width: 138px; } }

/* ---------- breadcrumbs and page head ---------- */
.crumbs { font-size: var(--step--1); color: var(--ink-3); padding-top: 22px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.page-head { padding-block: 20px 48px; display: grid; gap: 18px; }
.page-head-text { display: grid; gap: 18px; align-content: start; }
.page-head h1 { max-width: 24ch; }
.page-head .meta { font-size: var(--step--1); color: var(--ink-3); }
.page-head.has-img { grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: center; }
.page-head-img { margin: 0; }
.page-head-img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-lg); }
@media (max-width: 1100px) { .page-head.has-img { grid-template-columns: minmax(0, 1fr); gap: 24px; } .page-head-img img { aspect-ratio: 2 / 1; border-radius: var(--r-md); } }

/* ---------- sections ---------- */
.section { padding-block: 88px; }
.section.mist { background: var(--mist); }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 70ch; }
.section-head h2::before, .rfq-band h2::before, .related h2::before { content: ""; display: block; width: 44px; height: 4px; background: var(--accent); margin-bottom: 18px; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.section-head.split-head { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
.section-head.split-head > div { display: grid; gap: 14px; max-width: 70ch; }
.section-head.split-head > .btn { justify-self: start; }
.on-deep { background: var(--deep); color: var(--on-deep); }
.on-deep h1, .on-deep h2, .on-deep h3 { color: #fff; }
.on-deep p { color: var(--on-deep-2); }
.on-deep a:not(.btn) { color: var(--on-deep-link); }
.on-deep a:not(.btn):hover { color: #fff; }
.on-deep figcaption { color: var(--on-deep-2); }
@media (max-width: 760px) {
  .section { padding-block: 60px; }
  .section-head.split-head { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: 64px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 70% at 88% 0%, rgb(66 200 183 / 0.16), transparent 70%), linear-gradient(180deg, transparent 60%, rgb(0 0 0 / 0.18));
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4.1rem); line-height: 1.02; letter-spacing: -0.018em; max-width: 16ch; }
.hero .lede { margin-top: 22px; color: var(--on-deep-2); font-size: 1.22rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .chips { margin-top: 30px; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
.hero-photo figcaption { position: absolute; left: 14px; bottom: 14px; margin: 0; padding: 7px 12px; border-radius: var(--r-pill); background: rgb(12 16 15 / 0.8); color: #e6efed; font-size: 0.82rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (max-width: 960px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-photo img { aspect-ratio: 16 / 10; }
}

/* ---------- the line run (signature) ---------- */
.run { --node: 52px; --wall: 16px; --run-ring: var(--brand); --run-fill: var(--surface); --run-glyph: var(--brand); --run-text: var(--ink); --run-sub: var(--ink-2); --run-spec: var(--ink); --run-line: var(--line); --run-steel: var(--steel); --run-bore: var(--mist); }
.on-deep .run, .run.is-deep { --run-ring: var(--accent); --run-fill: var(--deep-2); --run-glyph: #d3ece7; --run-text: var(--on-deep); --run-sub: var(--on-deep-2); --run-spec: #d8e6e2; --run-line: var(--deep-line); --run-steel: #56635f; --run-bore: var(--deep); }
.hero .run { margin-top: 64px; padding: 34px 0 44px; border-top: 1px solid var(--deep-line); }
.run-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 28px; margin-bottom: 26px; }
.run-head h2 { font-size: var(--step-2); }
.run-key { display: flex; gap: 20px; font-size: 0.9rem; color: var(--run-sub); margin: 0; }
.run-key span { display: inline-flex; align-items: center; gap: 8px; }
.run-key i { display: inline-block; width: 30px; height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--forge) 0 12px, transparent 12px 18px); }
.run-track { position: relative; }
/* The pipe: steel walls with the bore between them; the pressure pulse runs along the bore. */
.run-pipe { position: absolute; left: 8.33%; right: 8.33%; top: calc(var(--node) / 2 - var(--wall) / 2); height: var(--wall); border-radius: 4px; background: var(--run-steel); }
.run-pipe::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 6px; background-color: var(--run-bore); background-image: repeating-linear-gradient(90deg, var(--forge) 0 16px, transparent 16px 44px); background-size: 44px 6px; animation: run-flow 1.5s linear infinite; }
@keyframes run-flow { from { background-position: 0 0; } to { background-position: 44px 0; } }
.run-stations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; position: relative; }
.run-st { display: flex; }
/* Each station is a column; the spec sits at the foot so the six specs line up whatever the text above them. */
.run .run-st a { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; text-decoration: none; color: var(--run-text); border-radius: var(--r-md); padding: 0 4px 6px; }
.run .run-st a:hover { color: var(--run-text); }
.run-node { flex: none; position: relative; z-index: 1; width: var(--node); height: var(--node); border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px; background: var(--run-fill); border: 2px solid var(--run-ring); color: var(--run-glyph); transition: transform 0.2s ease; }
.run-node .glyph { width: 30px; height: 30px; }
.run-name { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.run-what { font-size: 0.88rem; line-height: 1.4; color: var(--run-sub); max-width: 22ch; margin-bottom: 6px; }
.run-spec { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--run-line); font-size: 0.84rem; font-weight: 600; line-height: 1.5; color: var(--run-spec); width: 100%; }
.run-st a:hover .run-name { text-decoration: underline; text-underline-offset: 0.2em; }
.run-st a:hover .run-node { transform: scale(1.06); }
@media (max-width: 900px) {
  /* Vertical run: one pipe segment per station, from its node to the next, so the line ends at the last part. */
  .run-stations { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .run-pipe { display: none; }
  .run-st { position: relative; }
  .run-st:not(:last-child)::before, .run-st:not(:last-child)::after { content: ""; position: absolute; top: calc(var(--node) / 2); bottom: calc(var(--node) / -2); }
  .run-st:not(:last-child)::before { left: calc(var(--node) / 2 - var(--wall) / 2); width: var(--wall); background: var(--run-steel); }
  .run-st:not(:last-child)::after { left: calc(var(--node) / 2 - 3px); width: 6px; background-color: var(--run-bore); background-image: repeating-linear-gradient(180deg, var(--forge) 0 16px, transparent 16px 44px); background-size: 6px 44px; animation: run-flow-v 1.5s linear infinite; }
  .run .run-st a { display: grid; grid-template-columns: var(--node) minmax(0, 1fr); align-content: start; justify-items: start; text-align: left; column-gap: 16px; row-gap: 3px; padding: 0 0 28px; }
  .run .run-st:last-child a { padding-bottom: 0; }
  .run-node { grid-row: 1 / span 3; margin: 0; }
  .run-name { padding-top: 3px; }
  .run-what { max-width: none; margin: 0; }
  .run-spec { grid-column: 2; margin-top: 2px; padding-top: 0; border-top: 0; width: auto; font-size: 0.8rem; color: var(--run-spec); }
}
@keyframes run-flow-v { from { background-position: 0 0; } to { background-position: 0 44px; } }

/* ---------- article layout with spec rail ---------- */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: start; padding-bottom: 88px; }
.doc.no-rail { grid-template-columns: minmax(0, 1fr); }
/* The rail runs the full height of the article: the spec card sits at the top, then the contents list sticks. */
.rail { align-self: stretch; display: flex; flex-direction: column; gap: 26px; }
.rail .toc { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 1100px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 64px; }
  .rail { order: -1; }
}
/* Text keeps a readable measure; tables, figures, cards and people may use the full column. */
.prose { min-width: 0; }
.prose > :where(p, ul, ol, h2, h3, h4, .answer, .note, .faq, blockquote, address) { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.3em; font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.15rem); }
.prose h3 { margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.65em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose :is(.list-links, .chips, .checks) { padding-left: 0; max-width: none; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--brand); }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; border-radius: var(--r-lg); }
.prose .answer {
  font-size: 1.16rem; line-height: 1.55; color: var(--ink);
  background: var(--brand-tint); border-left: 4px solid var(--accent); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 20px 24px 22px;
}
.prose .answer::before { content: "In short"; display: block; font-size: 0.84rem; font-weight: 700; color: var(--brand); margin-bottom: 6px; }

/* spec card */
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.spec h2 { font-size: 1.05rem; font-weight: 700; padding: 18px 20px 12px; margin: 0; }
.spec dl { margin: 0; padding: 0 20px 6px; display: grid; }
.spec dl > div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.spec dt { font-size: 0.86rem; color: var(--ink-3); }
.spec dd { margin: 0; font-weight: 600; font-size: 0.92rem; line-height: 1.45; min-width: 0; overflow-wrap: anywhere; }
.spec .spec-cta { padding: 16px 20px 20px; display: grid; gap: 10px; background: var(--mist); border-top: 1px solid var(--line); }
.spec .spec-cta .btn { width: 100%; }
.spec .spec-cta p { font-size: 0.86rem; color: var(--ink-3); }

.toc { padding: 4px 0 0 2px; }
.toc h2 { font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; margin-left: -2px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: 0.93rem; line-height: 1.35; }
.toc a:hover { color: var(--brand); }
.toc a[aria-current="true"] { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
@media (max-width: 1100px) { .toc { display: none; } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.prose .table-wrap { margin-top: 1.4em; }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
caption { text-align: left; caption-side: top; padding: 14px 16px 10px; font-size: 0.9rem; font-weight: 650; color: var(--ink); }
th, td { text-align: left; vertical-align: top; padding: 11px 16px; border-top: 1px solid var(--line); }
thead th { font-weight: 650; font-size: 0.86rem; color: var(--ink-2); background: var(--mist); white-space: nowrap; }
tbody tr:nth-child(even) > * { background: color-mix(in srgb, var(--mist) 55%, transparent); }
tbody th { font-weight: 650; }
td .val, td code { white-space: nowrap; }

/* ---------- callouts ---------- */
.note { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); border-radius: var(--r-md); padding: 18px 20px; }
.note.warn { background: color-mix(in srgb, var(--forge) 7%, var(--surface)); border-color: color-mix(in srgb, var(--forge) 30%, var(--line)); }
.note > * + * { margin-top: 0.5em; }
.note strong:first-child { display: block; font-size: 1.04rem; font-weight: 700; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.card {
  display: grid; gap: 10px; align-content: start; min-width: 0; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink); text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mist .card { border-color: transparent; }
a.card:hover { border-color: var(--brand); color: var(--ink); }
a.card:hover h3 { color: var(--brand); }
.card h3 { font-size: 1.18rem; }
.card p { font-size: 0.96rem; color: var(--ink-2); line-height: 1.55; }
.card .kv { font-size: 0.84rem; font-weight: 600; color: var(--ink-3); line-height: 1.5; }
.card.has-img { padding: 0; overflow: hidden; gap: 0; }
.card.has-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card.has-img .card-body { padding: 20px 24px 24px; display: grid; gap: 10px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards.two, .cards.three { grid-template-columns: minmax(0, 1fr); } }
.cards.feature .card.has-img img { aspect-ratio: 16 / 9; }
.cards.feature .card h3 { font-size: 1.45rem; }

/* editorial list of guides */
.list-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.list-links li { border-top: 1px solid var(--line-strong); }
.list-links a { display: grid; gap: 6px; padding: 20px 0 22px; text-decoration: none; color: var(--ink); }
.list-links a strong { font-size: 1.12rem; font-weight: 680; }
.list-links a span { color: var(--ink-2); font-size: 0.96rem; }
.list-links a:hover strong { color: var(--brand); text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 760px) { .list-links { grid-template-columns: minmax(0, 1fr); } }

/* ---------- two-col split and checks ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split.top { align-items: start; }
.split .table-wrap { margin-top: 26px; }
.split-sub { font-size: var(--step-1); margin-bottom: 16px; }
.stack { display: grid; gap: 12px; }
.split figure { margin: 0; }
.split figure img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { padding-left: 34px; position: relative; color: var(--ink-2); }
.checks li strong { color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-tint); }
.checks li::after { content: ""; position: absolute; left: 7px; top: calc(0.2em + 6px); width: 8px; height: 5px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.inline-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; }

/* ---------- photo grid ---------- */
.photos { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.photos figure { margin: 0; min-width: 0; }
.photos img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 3 / 2; border-radius: var(--r-md); }
.photos .w8 img { aspect-ratio: 8 / 5; }
.photos .tall img { aspect-ratio: 7 / 8; }
.photos .w6 { grid-column: span 6; }
.photos .w4 { grid-column: span 4; }
.photos .w8 { grid-column: span 8; }
.photos .w3 { grid-column: span 3; }
@media (max-width: 860px) { .photos .w6, .photos .w4, .photos .w8, .photos .w3 { grid-column: span 12; } .photos .w8 img, .photos .tall img { aspect-ratio: 3 / 2; } }

/* ---------- facts list ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 0 24px; margin: 0; }
.facts > div { padding: 16px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; min-width: 0; }
.facts dt { font-size: 0.88rem; color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.on-deep .facts > div { border-top-color: var(--deep-line); }
.on-deep .facts dt { color: var(--on-deep-2); }
.on-deep .facts dd { color: #fff; }

/* ---------- glossary ---------- */
.glossary { margin: 0; display: grid; border-top: 1px solid var(--line); max-width: var(--measure); }
.glossary > div { padding: 16px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.glossary > div:target { background: var(--brand-tint); border-radius: var(--r-sm); padding-inline: 14px; }
.glossary dt { font-weight: 700; font-size: 1.06rem; }
.glossary dt span { font-weight: 500; color: var(--ink-3); margin-left: 6px; font-size: 0.95rem; }
.glossary dd { margin: 4px 0 0; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq > div { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.faq h3 { font-size: 1.1rem; }
.faq p { color: var(--ink-2); }

/* ---------- RFQ band ---------- */
.rfq-band { background: var(--mist); }
.rfq-band .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; padding-block: 80px; align-items: center; }
.rfq-band h2 { max-width: 20ch; }
.rfq-band ul { margin: 18px 0 0; padding-left: 1.2em; color: var(--ink-2); display: grid; gap: 6px; }
.rfq-band li::marker { color: var(--brand); }
.rfq-band .contact-lines { display: grid; gap: 12px; padding: 28px; background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); }
.rfq-band .contact-lines .btn { width: 100%; }
.rfq-band .contact-lines p { font-size: 0.95rem; color: var(--ink-2); }
@media (max-width: 900px) { .rfq-band .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 60px; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 680px) { .form .row { grid-template-columns: minmax(0, 1fr); } .form { padding: 20px; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field legend { font-weight: 650; font-size: 0.95rem; }
.field .hint { font-size: 0.86rem; color: var(--ink-3); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--ground);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 11px 14px; min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.94rem; border: 1px solid var(--line-strong); border-radius: var(--r-btn); padding: 8px 14px; background: var(--ground); cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.choices label:hover { border-color: var(--brand); }
.choices label:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); color: var(--ink); font-weight: 600; }
.choices input { accent-color: var(--brand); margin: 0; }
input[type="file"] { font: inherit; font-size: 0.92rem; max-width: 100%; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 600; margin-right: 12px; padding: 9px 16px; border-radius: var(--r-btn); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 18px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--mist); }
.form-status.err { border-color: color-mix(in srgb, var(--forge) 45%, var(--line)); background: color-mix(in srgb, var(--forge) 8%, var(--surface)); }
.form-status.ok { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.req { color: var(--forge-text); }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep); }
.site-footer .wrap { padding-block: 72px 30px; display: grid; gap: 48px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr)); gap: 40px 32px; }
@media (max-width: 1240px) { .foot-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } .site-footer .foot-blurb { max-width: 60ch; } }
@media (max-width: 960px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer h2 { font-size: 0.98rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--on-deep-2); text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; font-size: 0.94rem; line-height: 1.65; color: var(--on-deep-2); }
.site-footer .foot-logo { width: 186px; margin-bottom: 20px; }
.site-footer .foot-blurb { font-size: 1rem; max-width: 40ch; color: var(--on-deep); }
.site-footer .foot-contact { margin-top: 18px; display: grid; gap: 4px; }
.site-footer .foot-contact a { color: #fff; font-weight: 600; font-size: 1rem; }
.site-footer .foot-contact span { font-size: 0.88rem; color: var(--on-deep-2); }
.site-footer .foot-place, .site-footer .foot-main { margin-top: 18px; font-size: 0.94rem; color: var(--on-deep-2); }
.site-footer .foot-main { margin-top: 6px; }
.site-footer .foot-main a { color: #fff; font-weight: 600; }
@media (min-width: 761px) { body.has-bar .site-footer .legal { padding-right: 150px; } }
.site-footer .legal { border-top: 1px solid var(--deep-line); padding-top: 22px; font-size: 0.86rem; color: var(--on-deep-2); display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; align-items: center; }
.site-footer .legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.site-footer .legal a, .site-footer .legal .link-btn { font-size: 0.86rem; color: inherit; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
/* ---------- quick contact: WhatsApp pill (desktop) and action bar (phones) ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px 0 14px; font-size: 0.95rem; border-radius: var(--r-btn); background: var(--deep); color: #fff; font-weight: 650; text-decoration: none; box-shadow: var(--float); border: 1px solid rgb(255 255 255 / 0.1); }
.wa-float svg { width: 20px; height: 20px; color: var(--accent); }
.wa-float:hover { color: #fff; background: var(--deep-2); text-decoration: none; }
.action-bar { display: none; }
@media (max-width: 760px) {
  .wa-float { display: none; }
  .action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter); background: color-mix(in srgb, var(--ground) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .action-bar .btn { min-height: 46px; padding: 0 12px; }
  body.has-bar { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- cookie choice ---------- */
.consent { position: fixed; z-index: 60; left: var(--gutter); right: var(--gutter-r); bottom: 20px; max-width: 680px; margin-inline: auto; display: grid; gap: 14px; padding: 20px 22px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--float); }
.consent[hidden] { display: none; }
.consent p { font-size: 0.95rem; line-height: 1.5; color: var(--ink-2); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { body.has-bar .consent { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- misc ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r-btn); color: var(--ink-2); background: var(--surface); white-space: nowrap; }
.related { padding-block: 72px 88px; background: var(--mist); }
.related h2 { font-size: var(--step-3); margin-bottom: 26px; }
.related .card { border-color: transparent; }
.related .card:hover { border-color: var(--brand); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.center-404 { padding-block: 96px; display: grid; gap: 18px; max-width: 60ch; }
.center-404 figure { margin: 12px 0 0; }
.center-404 figure img { border-radius: var(--r-lg); }
.copy { display: inline-flex; align-items: center; gap: 8px; }
.copy button { font: inherit; font-size: 0.82rem; font-weight: 600; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.copy button:hover { border-color: var(--brand); color: var(--brand); }


/* ---------- technical drawings ---------- */
/* Drawings sit on a faint drafting grid. Dimension lines are teal, centerlines orange, hidden lines dashed. */
.dwg-fig { margin: 0; --dwg-bg: var(--surface); background-color: var(--dwg-bg); background-image: linear-gradient(var(--dwg-grid) 1px, transparent 1px), linear-gradient(90deg, var(--dwg-grid) 1px, transparent 1px); background-size: 24px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 14px; --dwg-grid: color-mix(in srgb, var(--brand) 6%, transparent); }
.dwg-fig figcaption { margin-top: 10px; }
.prose .dwg-fig { margin: 2em 0; max-width: 760px; }
.dwg { width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.dwg .d-body { fill: color-mix(in srgb, var(--brand) 7%, var(--surface)); stroke: var(--ink-2); stroke-width: 2; stroke-linejoin: round; }
.dwg .d-hid { fill: none; stroke: var(--ink-2); stroke-width: 1.1; stroke-dasharray: 6 4; opacity: 0.6; }
.dwg .d-cl { fill: none; stroke: var(--forge); stroke-width: 1.1; stroke-dasharray: 18 4 3 4; }
.dwg .d-ext { stroke: var(--brand); stroke-width: 0.8; opacity: 0.7; }
.dwg .d-dim line { stroke: var(--brand); stroke-width: 1.1; }
.dwg .d-arrow { fill: var(--brand); }
.dwg .d-gap { fill: var(--surface); }
.dwg .d-txt { fill: var(--brand); font-size: 14px; font-weight: 700; }
.dwg .d-note { fill: var(--ink-3); font-size: 12.5px; font-weight: 500; }
.dwg .d-thread { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.page-head-dwg { min-width: 0; }
.page-head.has-img .page-head-dwg .dwg-fig { padding: 16px; }
@media (max-width: 1100px) { .page-head-dwg { max-width: 560px; } }
.dwg-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.prose .dwg-row { margin: 2em 0; }
.prose .dwg-row .dwg-fig { margin: 0; }
@media (max-width: 700px) { .dwg-row { grid-template-columns: minmax(0, 1fr); } }

/* glyphs: small product outlines for cards and the line run */
.glyph { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.glyph .g-thin { stroke-width: 1.2; stroke-dasharray: 3 3; }
.card.has-glyph .glyph { width: 44px; height: 44px; color: var(--brand); }
a.card.has-glyph:hover .glyph { color: var(--forge); }

/* photo credits and table notes */
figcaption .credit { display: block; margin-top: 3px; font-size: 0.8rem; color: var(--ink-3); }
figcaption .credit a { color: inherit; }
.on-deep figcaption .credit { color: var(--on-deep-2); }
.table-note { font-size: var(--step--1); color: var(--ink-3); margin-top: 0.6em; max-width: var(--measure); }

/* example RFQ line item */
.line-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: start; padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); background: var(--surface); max-width: var(--measure); }
.line-item .li-label { grid-column: 1 / -1; font-size: 0.84rem; font-weight: 700; color: var(--forge-text); }
.line-item p { font-weight: 600; line-height: 1.5; }
.prose .line-item + .line-item { margin-top: 0.7em; }

/* pressure ratings drawn to scale */
.psi-bars { margin: 2em 0; padding: 22px 22px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.bars-key { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.88rem; color: var(--ink-2); margin-bottom: 16px; }
.bars-key span { display: inline-flex; align-items: center; gap: 8px; }
.bars-key i { width: 22px; height: 10px; border-radius: 3px; display: inline-block; }
.bars-key .k-work, .bar.work { background: var(--brand); }
.bars-key .k-test, .bar.test { background: color-mix(in srgb, var(--forge) 75%, var(--surface)); }
.bars-grid { display: grid; gap: 14px; }
.bars-row, .bars-axis { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; }
.bars-label { font-size: 0.9rem; font-weight: 650; line-height: 1.25; }
.bars-track { position: relative; height: 40px; margin-right: 64px; background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: calc(100% / 6) 100%; }
.bar { position: absolute; left: 0; height: 16px; border-radius: 0 4px 4px 0; }
.bar.work { top: 2px; }
.bar.test { top: 22px; }
.bar-val { position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); font-size: 0.8rem; font-weight: 650; white-space: nowrap; color: var(--ink-2); }
.bars-ticks { position: relative; height: 18px; margin-right: 64px; font-size: 0.78rem; color: var(--ink-3); }
.bars-ticks span { position: absolute; top: 0; transform: translateX(-50%); }
.psi-bars figcaption { margin-top: 12px; }
@media (max-width: 560px) { .psi-bars { padding: 16px 14px 12px; } .bars-row, .bars-axis { grid-template-columns: 74px minmax(0, 1fr); } .bars-label { font-size: 0.8rem; } .bars-track, .bars-ticks { margin-right: 52px; } }

/* hero product strip on the home page */
.hero-dwg { margin: 0; }
.hero-dwg .dwg-fig { --dwg-grid: rgb(255 255 255 / 0.06); background-color: var(--deep-2); border-color: var(--deep-line); }
.hero-dwg .dwg .d-body { fill: rgb(255 255 255 / 0.05); stroke: #cfdcd8; }
.hero-dwg .dwg .d-hid { stroke: #cfdcd8; }
.hero-dwg .dwg .d-dim line, .hero-dwg .dwg .d-ext { stroke: var(--accent); }
.hero-dwg .dwg .d-arrow, .hero-dwg .dwg .d-txt { fill: var(--accent); }
.hero-dwg .dwg .d-gap { fill: var(--deep-2); }
.hero-dwg .dwg .d-note { fill: var(--on-deep-2); }
.hero-dwg figcaption { color: var(--on-deep-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .rfq-band, .rail .spec-cta, .menu, .related, .consent, .wa-float, .action-bar, .run-pipe, .run-st::before, .run-st::after { display: none !important; }
  body { background: #fff; color: #000; }
  .doc { grid-template-columns: 1fr; }
  .on-deep { background: #fff; color: #000; }
}

.prose .list-links { margin-top: 0.6em; max-width: none; }
.prose .cards { margin-top: 1.2em; }
