/* RIC Data Center Flanges: site stylesheet (Oct 2026 redesign)
   One type family (Archivo, expanded for headings), RIC blue on light pages, a deep night-shift blue for the hero,
   works band and footer, and one signature element: the loop line, a cooling-loop schematic with flowing coolant.
   Radii follow role: pills for actions, 12 for inputs, 16 for cards, 20 to 24 for photographs. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"), url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
}

:root {
  --ground: #ffffff;
  --mist: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #eaf0f5;
  --ink: #0b1d2e;
  --ink-2: #3d5164;
  --ink-3: #627487;
  --line: #dbe3ea;
  --line-strong: #c2cfdb;
  --brand: #0a5cad;
  --brand-strong: #074a8c;
  --brand-tint: #e7f0fa;
  --on-brand: #ffffff;
  --link: #0a5cad;
  --coolant: #20b5e6;
  --forge: #f07a2e;
  --deep: #061a2e;
  --deep-2: #0c2a46;
  --deep-line: rgb(255 255 255 / 0.12);
  --on-deep: #eef4f9;
  --on-deep-2: #a8bccd;
  --focus: #f5b83d;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.25rem + 1.9vw, 2.5rem);
  --step-4: clamp(2.2rem, 1.45rem + 2.9vw, 3.4rem);
  --step-5: clamp(2.5rem, 1.35rem + 4.4vw, 4.6rem);

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --wrap: 1240px;
  --measure: 68ch;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;
  --float: 0 18px 40px -18px rgb(6 26 46 / 0.45), 0 2px 6px rgb(6 26 46 / 0.08);
  --header-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #07131f;
    --mist: #0b1a29;
    --surface: #0e1f30;
    --surface-2: #13283c;
    --ink: #e8f0f7;
    --ink-2: #b3c3d2;
    --ink-3: #8597a9;
    --line: #1d3247;
    --line-strong: #2a455d;
    --brand: #3b8de0;
    --brand-strong: #64a8ec;
    --brand-tint: #102b47;
    --link: #7fbdf3;
    --deep: #040e18;
    --deep-2: #0a1d30;
    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;
  font-variant-numeric: tabular-nums;
  -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(--coolant) 35%, 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); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); font-stretch: 125%; font-weight: 760; line-height: 1.04; letter-spacing: -0.012em; }
h2 { font-size: var(--step-3); font-stretch: 125%; font-weight: 720; line-height: 1.1; letter-spacing: -0.008em; }
h3 { font-size: var(--step-1); font-stretch: 112%; font-weight: 660; line-height: 1.22; }
h4 { font-size: var(--step-0); font-stretch: 108%; font-weight: 660; 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); }
.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: 6px; 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-pill); 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-pill); 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(--coolant); }

/* ---------- 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: 164px; height: auto; }
.brand .lockup { font-size: 0.86rem; font-weight: 620; font-stretch: 112%; line-height: 1.12; 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 13px; border-radius: var(--r-pill); 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-pill); 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; font-stretch: 118%; border-bottom: 1px solid var(--line); }
.menu .panel .btn { margin-top: 20px; }
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 520px) { .brand .lockup { display: none; } .brand img, .brand picture { width: 150px; } }

/* ---------- 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 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: #9dd6f6; }
.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(60% 70% at 85% 0%, rgb(10 92 173 / 0.45), transparent 70%);
}
.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: var(--step-5); line-height: 1.0; letter-spacing: -0.018em; }
.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(6 26 46 / 0.78); color: #e4eef6; 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 loop line (signature) ---------- */
.loop { --node: 48px; --pipe: 3px; --gap1: 16px; --gap2: 30px; }
.on-deep .loop, .loop.is-deep { --loop-ring: var(--coolant); --loop-fill: var(--deep-2); --loop-bolt: #9fb6ca; --loop-bore: var(--deep); --loop-text: var(--on-deep); --loop-sub: var(--on-deep-2); --loop-spec: #d6e6f2; --loop-line: var(--deep-line); }
.loop { --loop-ring: var(--brand); --loop-fill: var(--surface); --loop-bolt: var(--ink-3); --loop-bore: var(--mist); --loop-text: var(--ink); --loop-sub: var(--ink-2); --loop-spec: var(--ink); --loop-line: var(--line); }
.hero .loop { margin-top: 64px; padding: 34px 0 44px; border-top: 1px solid var(--deep-line); }
.loop-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 28px; margin-bottom: 26px; }
.loop-head h2 { font-size: var(--step-2); font-stretch: 118%; }
.loop-key { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.9rem; color: var(--loop-sub); margin: 0; }
.loop-key span { display: inline-flex; align-items: center; gap: 8px; }
.loop-key i { display: inline-block; width: 26px; height: var(--pipe); border-radius: 3px; background: var(--coolant); }
.loop-key i.ret { background: var(--forge); }
.loop-track { position: relative; }
.loop-pipe { position: absolute; left: 10%; right: 10%; height: var(--pipe); border-radius: 3px; background-size: 22px var(--pipe); animation: loop-flow 1.4s linear infinite; }
.loop-pipe.supply { top: calc(var(--node) / 2 - var(--pipe) * 2.2); background-image: repeating-linear-gradient(90deg, var(--coolant) 0 13px, transparent 13px 22px); }
.loop-pipe.return { top: calc(var(--node) / 2 + var(--pipe) * 1.2); background-image: repeating-linear-gradient(90deg, var(--forge) 0 13px, transparent 13px 22px); animation-direction: reverse; }
@keyframes loop-flow { from { background-position: 0 0; } to { background-position: 22px 0; } }
.loop-stations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; position: relative; }
.loop .loop-st a { display: grid; justify-items: center; text-align: center; gap: 6px; text-decoration: none; color: var(--loop-text); border-radius: var(--r-md); padding: 0 6px 6px; }
.loop .loop-st a:hover { color: var(--loop-text); }
.loop-node { width: var(--node); height: var(--node); border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px; transition: transform 0.2s ease; }
.loop-node svg { width: var(--node); height: var(--node); }
.loop-node .f-out { fill: var(--loop-fill); stroke: var(--loop-ring); stroke-width: 2.2; }
.loop-node .f-rf { fill: none; stroke: var(--loop-ring); stroke-width: 1; opacity: 0.55; }
.loop-node .f-bolt { fill: var(--loop-bolt); }
.loop-node .f-bore { fill: var(--loop-bore); stroke: var(--loop-ring); stroke-width: 1.2; }
.loop-name { font-weight: 700; font-stretch: 112%; font-size: 1.05rem; line-height: 1.2; }
.loop-what { font-size: 0.88rem; line-height: 1.4; color: var(--loop-sub); max-width: 24ch; }
.loop-spec { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--loop-line); font-size: 0.84rem; font-weight: 600; line-height: 1.5; color: var(--loop-spec); width: 100%; }
.loop-st a:hover .loop-name { text-decoration: underline; text-underline-offset: 0.2em; }
.loop-st a:hover .loop-node { transform: rotate(22.5deg); }
@media (max-width: 860px) {
  .loop-stations { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .loop-pipe { left: calc(var(--node) / 2 - var(--pipe) * 2.2); right: auto; top: calc(var(--node) / 2); bottom: calc(var(--node) / 2); width: var(--pipe); height: auto; background-size: var(--pipe) 22px; animation-name: loop-flow-v; }
  .loop-pipe.supply { top: calc(var(--node) / 2); background-image: repeating-linear-gradient(180deg, var(--coolant) 0 13px, transparent 13px 22px); }
  .loop-pipe.return { left: calc(var(--node) / 2 + var(--pipe) * 1.2); top: calc(var(--node) / 2); background-image: repeating-linear-gradient(180deg, var(--forge) 0 13px, transparent 13px 22px); }
  .loop-st a { grid-template-columns: var(--node) minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 16px; row-gap: 4px; padding: 0 0 26px; }
  .loop-node { grid-row: 1 / span 3; margin: 0; }
  .loop-what { max-width: none; }
  .loop-spec { grid-column: 2; margin-top: 4px; padding-top: 8px; }
}
@keyframes loop-flow-v { from { background-position: 0 0; } to { background-position: 0 22px; } }

/* ---------- 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(.downloads, .list-links, .social, .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-radius: var(--r-md); 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-stretch: 112%; 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-stretch: 108%; 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(--coolant) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--coolant) 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-stretch: 110%; 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; font-stretch: 118%; }

/* 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-stretch: 110%; 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 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-stretch: 112%; 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; }

/* ---------- video (click to play) ---------- */
.video { margin: 0; }
.video-poster { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: #000; color: #fff; text-decoration: none; }
.video-poster img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity 0.3s ease; }
.video-poster:hover img { opacity: 0.9; }
.video-poster:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.video-play { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: var(--r-pill); background: rgb(6 26 46 / 0.82); color: #fff; font-weight: 650; font-size: 1rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.video-btn { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); }
.video-btn::after { content: ""; position: absolute; left: 15px; top: 12px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.video-len { font-weight: 500; opacity: 0.85; }
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-lg); background: #000; }
.video figcaption .video-src { color: var(--ink-3); }
.on-deep .video figcaption .video-src { color: var(--on-deep-2); }
@media (max-width: 520px) {
  .video-play { left: 10px; bottom: 10px; gap: 8px; padding: 5px 12px 5px 5px; font-size: 0.88rem; }
  .video-btn { width: 30px; height: 30px; }
  .video-btn::after { left: 11px; top: 8px; border-width: 7px 0 7px 11px; }
}

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.person { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.person img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; object-position: 50% 30%; }
.person figcaption { padding: 14px 18px 18px; color: var(--ink-2); margin: 0; font-size: 0.95rem; }
.person figcaption strong { display: block; color: var(--ink); font-size: 1.12rem; font-stretch: 112%; }
.leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.leader { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.leader img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }
.leader h3 { font-size: 1.3rem; font-stretch: 118%; }
.leader p { color: var(--ink-2); font-size: 0.95rem; margin-top: 4px; }
.leader .leader-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .leader { grid-template-columns: 88px minmax(0, 1fr); padding: 18px; } .leader img { width: 88px; height: 88px; } }
.prose .leaders, .prose .people { margin-top: 1.4em; }

/* ---------- certificates and downloads ---------- */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.cert { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; padding: 18px; align-items: start; }
.cert img { width: 92px; border-radius: 6px; border: 1px solid var(--line); }
.cert h3 { font-size: 1.12rem; }
.cert p { font-size: 0.9rem; color: var(--ink-2); line-height: 1.45; margin-top: 4px; }
.cert .val { font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.prose .downloads { margin-top: 1.2em; }
.download { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.download img { width: 64px; border-radius: 4px; border: 1px solid var(--line); }
.download h3 { font-size: 1.05rem; }
.download p { font-size: 0.9rem; color: var(--ink-3); margin-top: 2px; }
@media (max-width: 560px) { .download { grid-template-columns: 52px minmax(0, 1fr); } .download img { width: 52px; } .download .btn { grid-column: 1 / -1; } }

/* ---------- 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-stretch: 110%; font-size: 1.06rem; }
.glossary dt span { font-weight: 500; font-stretch: 100%; 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-pill); 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-pill); 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(--coolant) 45%, var(--line)); }
.req { color: var(--forge); }

/* ---------- 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(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer h2 { font-size: 0.98rem; font-stretch: 112%; 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: 196px; margin-bottom: 18px; }
.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; }
.foot-links { display: grid; gap: 16px; margin-top: 26px; }
.foot-links p { display: grid; gap: 10px; }
.foot-links .label { font-size: 0.86rem; color: var(--on-deep-2); }
.social, .site-footer .social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 15px; border-radius: var(--r-pill); border: 1px solid var(--deep-line); color: var(--on-deep); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: background-color 0.15s ease, border-color 0.15s ease; }
.social a:hover { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.3); color: #fff; text-decoration: none; }
/* Social icons: the platforms' official monochrome marks, shown through a CSS mask in the text colour. */
.social-icons, .site-footer .social-icons { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.prose .social-icons { padding: 0; margin-block: 0.8em 1.4em; }
.prose .social-icons li { margin: 0; }
.social-icons a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--deep-line); color: var(--on-deep); text-decoration: none; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.social-icons a:hover { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.35); color: #fff; }
.social-icons a:focus-visible { outline: 2px solid var(--coolant); outline-offset: 2px; }
.si { display: block; width: 19px; height: 19px; background-color: currentColor; -webkit-mask: var(--si) center / contain no-repeat; mask: var(--si) center / contain no-repeat; }
.si-linkedin { --si: url(/assets/brand/social/linkedin.png); }
.si-facebook { --si: url(/assets/brand/social/facebook.png); }
.si-instagram { --si: url(/assets/brand/social/instagram.svg); }
.si-x { --si: url(/assets/brand/social/x.svg); width: 17px; height: 17px; }
.si-youtube { --si: url(/assets/brand/social/youtube.png); width: 23px; }
.si-whatsapp { --si: url(/assets/brand/social/whatsapp.svg); width: 20px; height: 20px; }
.social-icons.light a, .prose .social-icons a { border-color: var(--line-strong); color: var(--ink); }
.social-icons.light a:hover, .prose .social-icons a:hover { background: var(--surface-2); border-color: var(--ink-2); color: var(--ink); }
.prose .social a, .light .social a { border-color: var(--line-strong); color: var(--ink); }
.prose .social a:hover, .light .social a:hover { background: var(--surface-2); border-color: var(--ink-2); color: var(--ink); }
.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; }
/* Region switch: international (.com) and US (.us) editions of the same page. */
.site-footer .region { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--deep-line); border-radius: var(--r-pill); }
.site-footer .region a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 13px; border-radius: var(--r-pill); color: var(--on-deep); font-weight: 600; text-decoration: none; }
.site-footer .region a:hover { background: rgb(255 255 255 / 0.08); color: #fff; }
.site-footer .region a[aria-current] { background: rgb(255 255 255 / 0.12); color: #fff; }

/* ---------- 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-pill); 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(--coolant); }
.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-pill); 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-pill); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.copy button:hover { border-color: var(--brand); color: var(--brand); }

@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 { display: none !important; }
  body { background: #fff; color: #000; }
  .doc { grid-template-columns: 1fr; }
  .on-deep { background: #fff; color: #000; }
}
