/* ============================================================
   Ultrafilter KB — modern industrial design system
   UF blue + white. Typography is the body. Color carries weight.
   ============================================================ */

:root {
  /* Brand */
  --uf-blue:        #1e4170;     /* primary brand navy — Ultrafilter logo color */
  --uf-blue-bright: #3a78c2;     /* highlights · hover · accents */
  --uf-blue-light:  #6f9ed1;     /* tertiary blue — captions on dark */
  --uf-blue-pale:   #e9eff7;     /* tinted backgrounds, hover surfaces */
  --uf-pale:        #e9eff7;     /* alias for --uf-blue-pale — used in cross-ref table column tint */
  --uf-dark:        #0a1929;     /* hero / feature surfaces */
  --uf-dark-2:      #122236;     /* dark gradient mid-stop */

  /* Neutrals */
  --paper:  #ffffff;
  --soft:   #f6f8fb;             /* very light blue-tinted off-white */
  --tint:   #e9eff7;             /* same as blue-pale */
  --ink:    #0a1929;             /* dark navy = working text color */
  --ink-soft: #2a3f55;
  --rule:   #d8dee5;             /* hairline */
  --rule-strong: #0a1929;
  --muted:  #5a6a7e;
  --faint:  #94a1b2;

  --safety: #c84416;             /* warnings · closures only */
}

/* Force-zero radius globally — keep the industrial corners */
*, *::before, *::after { border-radius: 0 !important; }
input, button, select, textarea { border-radius: 0 !important; }

html, body {
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-feature-settings: 'ss01' on, 'cv11' on;
  font-variant-numeric: tabular-nums;
}

/* ---- Type primitives ---- */
.label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}
.mono     { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.serif    { font-family: 'Source Serif 4', Charter, Georgia, serif; }
.display  { font-family: 'Archivo', 'Inter', system-ui, sans-serif; font-weight: 800; letter-spacing: -0.035em; line-height: 0.92; }

/* ---- Rules ---- */
.hairline        { border-top: 1px solid var(--rule); }
.hairline-strong { border-top: 1px solid var(--rule-strong); }

/* ---- Section accent (small horizontal rule before headings) ---- */
.section-rule {
  width: 56px;
  height: 3px;
  background: var(--uf-blue);
  margin-bottom: 22px;
}
.section-rule.bright { background: var(--uf-blue-bright); }

/* ---- Section background variants ---- */
.bg-paper { background: var(--paper); }
.bg-soft  { background: var(--soft); }
.bg-tint  { background: var(--tint); }
.bg-blue  { background: var(--uf-blue); color: var(--paper); }
.bg-dark  { background: var(--uf-dark); color: var(--paper); }

/* ============================================================
   NAV  ·  TOP BAR  ·  SIDEBAR
   ============================================================ */

.brand-mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 28px; width: auto; display: block; mix-blend-mode: multiply; }
.brand-logo-on-dark { mix-blend-mode: screen; }
.brand-logo-lg { height: 60px; mix-blend-mode: multiply; }

.nav-link {
  display: block;
  padding: 4px 0 4px 16px;
  border-left: 2px solid transparent;
  margin-left: -2px;
  color: var(--muted);
  text-decoration: none;
  transition: color 80ms linear, border-color 80ms linear;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active {
  border-left-color: var(--uf-blue);
  color: var(--uf-blue);
  font-weight: 500;
}
.nav-sub { padding-left: 32px; font-size: 11.5px; }

.nav-scroll { scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.nav-scroll::-webkit-scrollbar { width: 6px; }
.nav-scroll::-webkit-scrollbar-thumb { background: var(--rule); }

/* ============================================================
   HERO  ·  DARK FEATURE SURFACES
   ============================================================ */

.hero {
  position: relative;
  background:
    radial-gradient(900px 600px at 18% -10%, rgba(58,120,194,0.32), transparent 65%),
    radial-gradient(600px 480px at 95% 105%, rgba(30,65,112,0.45), transparent 70%),
    linear-gradient(140deg, var(--uf-dark) 0%, #0e1d33 55%, var(--uf-blue) 140%);
  color: var(--paper);
  overflow: hidden;
}
.hero a { color: var(--uf-blue-light); }
.hero a:hover { color: var(--paper); }
.hero .label, .hero .eyebrow { color: var(--uf-blue-light); }
.hero hr.hairline { border-top-color: rgba(255,255,255,0.14); }

.bg-blue a, .bg-dark a { color: var(--uf-blue-light); }
.bg-blue a:hover, .bg-dark a:hover { color: var(--paper); }

.accent-line {
  display: inline-block;
  width: 56px;
  height: 3px;
  background: var(--uf-blue-bright);
  vertical-align: middle;
  margin-right: 14px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid currentColor;
  transition: all 120ms ease;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary       { background: var(--uf-blue);        color: var(--paper); border-color: var(--uf-blue); }
.btn-primary:hover { background: var(--uf-blue-bright); border-color: var(--uf-blue-bright); transform: translateY(-1px); }
.btn-bright        { background: var(--uf-blue-bright); color: var(--paper); border-color: var(--uf-blue-bright); }
.btn-bright:hover  { background: var(--paper);          color: var(--uf-blue); border-color: var(--paper); }
.btn-light         { background: var(--paper);          color: var(--ink);   border-color: var(--paper); }
.btn-light:hover   { background: var(--uf-blue-bright); color: var(--paper); border-color: var(--uf-blue-bright); }
.btn-ghost         { background: transparent;           color: inherit; }
.btn-ghost:hover   { background: rgba(255,255,255,0.10); transform: translateY(-1px); }
.btn-outline       { background: transparent;           color: var(--ink);   border-color: var(--ink); }
.btn-outline:hover { background: var(--ink);            color: var(--paper); }

/* ============================================================
   CARDS · ELEVATIONS · HOVERS
   ============================================================ */

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.card-lift {
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(10,25,41,0.10);
  border-color: var(--uf-blue);
}
.card-link { text-decoration: none; color: inherit; display: block; }

/* ============================================================
   STATS  ·  METRICS
   ============================================================ */

.stat { border-top: 3px solid var(--uf-blue); padding-top: 20px; }
.stat-bright { border-top-color: var(--uf-blue-bright); }
.stat-value {
  font-family: 'Archivo', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 6vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.stat-unit  {
  font-family: 'Archivo', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--muted);
  margin-left: 4px;
}
.stat-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
  display: block;
}
.bg-blue .stat-value, .bg-dark .stat-value, .hero .stat-value  { color: var(--paper); }
.bg-blue .stat-unit,  .bg-dark .stat-unit,  .hero .stat-unit   { color: var(--uf-blue-light); }
.bg-blue .stat-label, .bg-dark .stat-label, .hero .stat-label  { color: var(--uf-blue-light); }
.bg-blue .stat,       .bg-dark .stat,       .hero .stat        { border-top-color: var(--uf-blue-bright); }

/* ============================================================
   PRODUCT PHOTOS  ·  IMAGE FRAMES
   ============================================================ */

.photo-frame {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 28px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.photo-frame img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: 280px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.photo-frame.photo-sm img { height: 200px; }
.photo-frame.photo-md img { height: 320px; }
.photo-frame.photo-lg img { height: 420px; }
.photo-frame.photo-xl img { height: 520px; }

.product-img { mix-blend-mode: multiply; object-fit: contain; }

/* Family / portfolio card with photo top, title body */
.fam-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  text-decoration: none;
  color: inherit;
}
.fam-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(10,25,41,0.10);
  border-color: var(--uf-blue);
}
.fam-card:hover .fam-arrow { transform: translateX(4px); color: var(--uf-blue); }
.fam-photo {
  border-bottom: 1px solid var(--rule);
  background: var(--soft);
  padding: 32px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.fam-photo img { height: 220px; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.fam-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.fam-arrow { transition: transform 160ms ease, color 160ms ease; color: var(--muted); display: inline-block; }

/* Hero photo plate (used on dark hero backgrounds) */
.hero-plate {
  background: var(--paper);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 36px;
  position: relative;
}
.hero-plate img { mix-blend-mode: multiply; display: block; margin: 0 auto; max-width: 100%; }

/* ============================================================
   VIDEO
   ============================================================ */

.video-frame {
  border: 1px solid var(--rule);
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--soft);
  width: 100%;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   TABLES  ·  DATA
   ============================================================ */

table.spec {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
table.spec thead th {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 12px 14px 10px 0;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}
table.spec tbody td {
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  font-size: 13.5px;
  line-height: 1.45;
}
table.spec tbody tr:hover td { background: var(--soft); }
table.spec tbody tr:last-child td { border-bottom: 1px solid var(--ink); }
table.spec td.num,
table.spec td.code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; }
table.spec td.right { text-align: right; }
table.spec td.shrink { white-space: nowrap; width: 1%; }

table.spec tr.group td {
  background: var(--soft);
  border-bottom: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--uf-blue);
  padding: 9px 14px 7px 0;
  font-weight: 600;
}

/* ============================================================
   CALLOUTS
   ============================================================ */

.callout {
  border: 1px solid var(--rule);
  padding: 18px 22px;
  background: var(--paper);
}
.callout-warn   { border-left: 3px solid var(--safety); }
.callout-info   { border-left: 3px solid var(--uf-blue); background: var(--soft); }
.callout-todo   { border: 1px dashed var(--faint); background: var(--soft); }

/* ============================================================
   TOC RIGHT RAIL
   ============================================================ */

.toc a {
  display: block;
  padding: 4px 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
  border-left: 1px solid var(--rule);
  padding-left: 14px;
  transition: color 100ms ease, border-color 100ms ease;
}
.toc a:hover  { color: var(--ink); }
.toc a.active { color: var(--uf-blue); border-left-color: var(--uf-blue); border-left-width: 2px; }

/* ============================================================
   P&ID DIAGRAMS (technical SVG)
   ============================================================ */

.pid svg { display: block; }
.pid-box        { fill: var(--paper);  stroke: var(--ink); stroke-width: 1; }
.pid-box-soft   { fill: var(--soft);   stroke: var(--ink); stroke-width: 1; }
.pid-box-blue   { fill: var(--uf-blue); stroke: var(--uf-blue); stroke-width: 1; }
.pid-box-closed { fill: var(--paper);  stroke: var(--safety); stroke-width: 1; stroke-dasharray: 4 3; }
.pid-line       { stroke: var(--ink); stroke-width: 1; fill: none; }
.pid-line-blue  { stroke: var(--uf-blue); stroke-width: 1.5; fill: none; }
.pid-line-dashed { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 5 4; fill: none; }
.pid-arrow      { fill: var(--ink); }
.pid-label      {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--ink);
}
.pid-label-muted { fill: var(--muted); }
.pid-label-warn  { fill: var(--safety); }
.pid-label-blue  { fill: var(--uf-blue); }
.pid-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  fill: var(--ink);
}
.pid-name-on-blue { fill: var(--paper); }
.pid-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  fill: var(--muted);
}

/* ============================================================
   SELECTION
   ============================================================ */
::selection { background: var(--uf-blue); color: var(--paper); }

/* ============================================================
   UTILITY HELPERS
   ============================================================ */
.no-rule { border-radius: 0 !important; }
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); }

/* ---- Backwards-compat aliases for older product pages ---- */
.hero-section { background: var(--uf-dark); color: var(--paper); position: relative; overflow: hidden; }
.hero-section a { color: var(--uf-blue-light); }
.hero-section a:hover { color: var(--paper); }
.hero-section .label { color: var(--uf-blue-light); }
.hero-section .stat-value { color: var(--paper); }
.hero-section .stat-unit { color: var(--uf-blue-light); }
.hero-section .stat-label { color: var(--uf-blue-light); }
.dark-bg { background: var(--uf-dark); color: var(--paper); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   TABS (vanilla JS controlled)
   ============================================================ */
.tabs-nav { display: flex; gap: 0; border-bottom: 1px solid var(--rule); }
.tab-btn {
  background: transparent; border: 0; cursor: pointer;
  padding: 18px 28px; margin-bottom: -1px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); border-bottom: 3px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--uf-blue); border-bottom-color: var(--uf-blue); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 400ms ease; }

/* ============================================================
   MEGA-MENU NAVIGATION
   ============================================================ */
.mega-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mega-wrap { position: relative; }
.mega-btn, .mega-link {
  background: transparent; border: 0; cursor: pointer;
  padding: 10px 14px;
  font-family: inherit; font-size: inherit; letter-spacing: inherit; text-transform: inherit;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
  transition: color 120ms ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.mega-btn:hover, .mega-link:hover,
.mega-wrap:hover .mega-btn,
.mega-link.active { color: var(--uf-blue); border-bottom-color: var(--uf-blue); }
.caret { font-size: 9px; opacity: 0.55; transition: transform 200ms ease; }
.mega-wrap:hover .caret { transform: rotate(180deg); opacity: 1; }

.mega-panel {
  position: absolute;
  top: calc(100% + 1px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 14px 40px rgba(10,25,41,0.10);
  padding: 28px 32px;
  width: max-content;
  max-width: 920px;
  opacity: 0; visibility: hidden;
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s 160ms;
  z-index: 100;
}
.mega-wrap:hover .mega-panel,
.mega-wrap:focus-within .mega-panel {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 160ms ease, transform 160ms ease;
}
.mega-col-h {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--uf-blue);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  font-weight: 600;
}
.mega-item {
  display: block;
  padding: 7px 0;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  transition: color 100ms ease, transform 100ms ease;
}
.mega-item:hover { color: var(--uf-blue); transform: translateX(2px); }
.mega-item strong { font-weight: 700; color: var(--ink); }
.mega-item-link {
  color: var(--uf-blue);
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.mega-item-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: none;
  font-weight: 400;
  display: inline-block;
  margin-left: 4px;
}

/* Left-anchored mega-panel — positions panel relative to the nav-bar's left edge
   instead of centering under the button. Used for the Products mega-menu. */
.mega-panel-anchored {
  left: 0 !important;
  transform: translateY(8px) !important;
}
.mega-wrap:hover .mega-panel-anchored,
.mega-wrap:focus-within .mega-panel-anchored {
  transform: translateY(0) !important;
}

/* ============================================================
   Simple dropdown — single column, used for Products menu
   ============================================================ */
.dropdown-panel {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 14px 40px rgba(10,25,41,0.10);
  padding: 8px 0;
  min-width: 320px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s 160ms;
  z-index: 100;
}
.mega-wrap:hover .dropdown-panel,
.mega-wrap:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) !important;
  transition: opacity 160ms ease, transform 160ms ease;
}
.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 18px;
  color: var(--ink);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 120ms ease, border-color 120ms ease;
}
.dropdown-item:hover {
  background: var(--soft);
  border-left-color: var(--uf-blue);
}
.dropdown-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--uf-blue);
  font-weight: 600;
  margin-top: 4px;
  min-width: 18px;
}
.dropdown-title {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-transform: none;
}
.dropdown-meta {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 3px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.dropdown-divider {
  height: 1px;
  background: var(--rule);
  margin: 6px 12px;
}
.dropdown-item-sub .dropdown-title {
  font-size: 13px;
  color: var(--muted);
}
.dropdown-item-sub:hover .dropdown-title {
  color: var(--ink);
}
.dropdown-item-sub .dropdown-num {
  color: var(--faint);
}

/* ============================================================
   Festo-style box mega-menu — Products dropdown
   ============================================================ */
.box-panel {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 14px 40px rgba(10,25,41,0.10);
  padding: 24px;
  width: 760px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s 160ms;
  z-index: 100;
}
.mega-wrap:hover .box-panel,
.mega-wrap:focus-within .box-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) !important;
  transition: opacity 160ms ease, transform 160ms ease;
}

.box-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.box-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.box-card:hover {
  background: var(--paper);
  border-color: var(--uf-blue);
  transform: translateY(-1px);
}
.box-card-img {
  width: 84px;
  height: 84px;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.box-card-img img {
  max-height: 70px;
  max-width: 70px;
  width: auto;
  height: auto;
  mix-blend-mode: multiply;
}
.box-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.box-card-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--uf-blue);
  font-weight: 600;
  margin-bottom: 3px;
}
.box-card-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 5px;
}
.box-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.box-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.box-footer-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  text-decoration: none;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-transform: none;
  border-left: 2px solid transparent;
  transition: background 120ms ease, border-color 120ms ease;
}
.box-footer-link:hover {
  background: var(--soft);
  border-left-color: var(--uf-blue);
  color: var(--uf-blue);
}
.box-footer-tag {
  display: inline-block;
  color: var(--uf-blue);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  margin-right: 4px;
}
.box-footer-meta {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0;
  text-transform: none;
}

/* Lang switcher */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--rule);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lang-switch a {
  padding: 5px 9px;
  color: var(--muted);
  text-decoration: none;
  transition: all 120ms ease;
  border-right: 1px solid var(--rule);
}
.lang-switch a:last-child { border-right: 0; }
.lang-switch a.active { background: var(--uf-blue); color: var(--paper); }
.lang-switch a:hover:not(.active) { background: var(--soft); color: var(--ink); }

/* Trusted-by logo strip */
.trusted-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 48px;
}
.trusted-logo {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--muted);
  opacity: 0.7;
  transition: opacity 200ms ease, color 200ms ease;
}
.trusted-logo:hover { opacity: 1; color: var(--uf-blue); }

/* ============================================================
   Download section — used on every product page
   ============================================================ */
.dl-section {
  background: var(--soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 4px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.dl-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: background 160ms ease, transform 160ms ease;
  position: relative;
  border-left: 3px solid transparent;
}
.dl-card:hover {
  background: var(--uf-blue-pale);
  border-left-color: var(--uf-blue);
}
.dl-card .dl-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--uf-blue);
  font-weight: 600;
}
.dl-card .dl-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 2px;
}
.dl-card .dl-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dl-card .dl-arrow {
  color: var(--muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  transition: transform 160ms ease, color 160ms ease;
  margin-left: auto;
}
.dl-card:hover .dl-arrow { color: var(--uf-blue); transform: translateX(3px); }
.dl-tag-ds  { color: var(--uf-blue); }       /* Datasheet */
.dl-tag-vg  { color: #2c7d3a; }              /* Validation Guide */
.dl-tag-fab { color: #b85d00; }              /* Features Advantages Benefits */
.dl-tag-doc { color: #7a3aa3; }              /* Declaration of Conformity */
.dl-tag-coc { color: #7a3aa3; }              /* Certificate of Conformity */
.dl-tag-coe { color: #b85d00; }              /* Certificate of Element */
.dl-tag-iso { color: var(--ink); }           /* ISO certificate */
.dl-tag-br  { color: var(--uf-blue-bright); }/* Brochure */

.dl-divider {
  height: 1px;
  background: var(--rule);
  margin: 32px 0 24px;
}
.dl-subhead {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
