/* ============ ScanSource Intl ============ */

/* ---------------------------------------------------------------
   COLOUR SCHEME — "Fresh Teal" (locked 2026-08-09)
   Contrast-tuned: --acc passes AA (4.51:1) both as text on white and
   as a fill behind white text. --acc-deep (6.38:1) is for small text
   on light. --acc-bright (6.87:1 on the dark bands) is the on-dark tone.
   --------------------------------------------------------------- */
:root {
  /* dark surfaces */
  --d-950: #04262B; --d-900: #073A41; --d-800: #0D5560;
  /* text on light */
  --t-ink: #0E2A2E; --t-slate: #4F6D72;
  --line: #DDEBEC; --bg: #ffffff; --bg-alt: #F1FAFA;
  /* accent */
  --acc: #00857E; --acc-deep: #026B65; --acc-soft: #E0F5F3; --acc-on: #FFFFFF;
  --acc-bright: #35D6C9;

  /* hero + nav (light-first) */
  --hero-a: #FFFFFF; --hero-b: #E2F6F5; --hero-ink: #0B2A2D; --hero-mute: #4F6D72;
  --grid-line: rgba(0,133,126,0.10);
  --nav-bg: rgba(255,255,255,0.88); --nav-ink: #0E2A2E; --nav-mute: #4F6D72;
  --nav-border: rgba(14,42,46,0.1);
  /* bands */
  --band-bg: #073A41; --band-mute: #93B7BA;
  --deep-bg: #073A41; --deep-ink: #ffffff; --deep-mute: #A6C6C8; --deep-soft: #D6E8E9;
  --foot-bg: #04262B; --foot-mute: #93B7BA;
  --ghost-ink: #0E2A2E; --ghost-border: rgba(14,42,46,0.2); --ghost-bg: rgba(255,255,255,0.6);
  --card-border: #DDEBEC;

  /* legacy aliases used throughout this file */
  --navy-950: var(--d-950);
  --navy-900: var(--d-900);
  --navy-800: var(--d-800);
  --navy-700: var(--d-800);
  --ink: var(--t-ink);
  --slate: var(--t-slate);
  --amber: var(--acc);
  --amber-deep: var(--acc-deep);
  --amber-soft: var(--acc-soft);

  --font-head: "Sora", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --radius: 14px;
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 860px; }

h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.45rem); font-weight: 700; }
h3 { font-size: 1.13rem; font-weight: 600; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--acc-deep);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--acc-bright); }

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--deep-bg); color: var(--deep-soft); }
.section-dark h2 { color: var(--deep-ink); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-sub { color: var(--slate); margin-top: 16px; font-size: 1.04rem; }
.desk-only { display: inline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600; font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;          /* translated CTAs must not wrap */
  border: 0; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--acc);
  color: var(--acc-on);
  box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--acc) 70%, transparent);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-ghost {
  color: var(--ghost-ink);
  border: 1.5px solid var(--ghost-border);
  background: var(--ghost-bg);
}
.btn-ghost:hover { border-color: var(--acc); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nav-border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 11px; min-width: 0;
  text-decoration: none; color: var(--nav-ink);
  font-family: var(--font-head); font-weight: 700; font-size: 1.08rem;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--acc), var(--acc-deep));
  color: var(--acc-on);
  display: grid; place-items: center;
  font-size: 1.05rem; font-weight: 800;
}
.brand-text { white-space: nowrap; }
.brand-text em { font-style: normal; color: var(--acc); }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--nav-mute); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  white-space: nowrap;          /* translated labels must not wrap */
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--nav-ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; flex: none; }
/* shown only on small phones, inside the burger menu (see 560px block) */
.nav-cta-mobile { display: none; }
.nav-burger { display: none; flex: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--nav-ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--hero-a) 0%, var(--hero-b) 100%);
  color: var(--hero-ink);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 95% 85% at 45% 25%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 45% 25%, #000 30%, transparent 78%);
}
.hero-inner {
  /* Single column while there is no hero photo — restore the two-column grid
     (1.15fr 0.85fr, gap 64px) when .hero-visual comes back in template.html. */
  position: relative;
  padding-top: 104px; padding-bottom: 112px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.55rem);
  font-weight: 800;
  margin: 6px 0 22px;
}
.hero .accent { color: var(--acc); }
.hero-sub { color: var(--hero-mute); font-size: 1.12rem; max-width: 640px; }
.hero-ctas { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 26px; font-size: 0.88rem; color: var(--hero-mute); opacity: 0.85; }
.hero-visual { position: relative; }
.hero-card {
  position: absolute; bottom: -20px; left: -26px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--card-border);
  border-radius: 12px; padding: 16px 20px;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.28);
  font-size: 0.86rem; font-weight: 600;
  display: grid; gap: 8px;
}
.hero-card-row { display: flex; align-items: center; gap: 9px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); flex: none; }

/* ---------- Photo placeholders ---------- */
.ph {
  border-radius: var(--radius);
  border: 2px dashed color-mix(in srgb, currentColor 34%, transparent);
  background:
    repeating-linear-gradient(45deg, color-mix(in srgb, currentColor 6%, transparent) 0 12px, transparent 12px 24px),
    color-mix(in srgb, currentColor 5%, transparent);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; text-align: center;
  color: var(--slate);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  line-height: 1.5;
}
.section-dark .ph { color: var(--deep-mute); }
.hero .ph { color: var(--hero-mute); }
.ph small { font-weight: 400; opacity: 0.75; }
.ph-icon { width: 34px; height: 34px; opacity: 0.55; }
.ph-hero { aspect-ratio: 4 / 3.4; }
.ph-tall { aspect-ratio: 4 / 4.6; }
.ph-prod { aspect-ratio: 4 / 3; margin-bottom: 14px; }
.ph-prod span { font-size: 0.7rem; }
.ph-portrait { aspect-ratio: 3.4 / 4; }

/* ---------- Product photography ---------- */
/* Real photos step into the same boxes the dashed placeholders hold, so a
   half-photographed grid still lines up. Slot sizes come from prep_product.py
   and already match these ratios exactly — object-fit only guards a mismatch. */
.pv {
  display: block; overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}
.pv img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pv-prod { aspect-ratio: 4 / 3; margin-bottom: 14px; }
.pv-range { aspect-ratio: 4 / 3; }
.pv-cat { aspect-ratio: 4 / 3.2; }
/* On the dark category header a white catalogue shot needs no outline —
   a hairline keeps the corner radius from looking accidental. */
.cat-head-visual .pv { border-color: rgba(255, 255, 255, 0.16); }
.prod-linked .pv-prod { transition: border-color 0.15s; }
.prod-linked:hover .pv-prod { border-color: var(--acc); }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--band-bg); border-top: 1px solid rgba(255,255,255,0.07); }
.trustbar-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-top: 34px; padding-bottom: 34px; gap: 24px;
}
.stat { text-align: center; color: var(--band-mute); }
.stat strong {
  display: block;
  font-family: var(--font-head); font-size: 1.9rem; font-weight: 700;
  color: var(--acc-bright);
  margin-bottom: 2px;
}
.stat span { font-size: 0.84rem; }

/* ---------- Cards (services) ---------- */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(15, 27, 45, 0.22); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--acc-soft); color: var(--acc-deep);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 0.95rem; }

/* ---------- Products ---------- */
.prod-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.prod h3 { font-size: 0.98rem; font-weight: 600; }
.prod-more {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 26px 24px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.prod-more p { color: var(--slate); font-size: 0.9rem; }
.prod-more a { color: var(--acc-deep); font-weight: 600; text-decoration: none; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  display: grid; gap: 0;
  max-width: 820px;
}
.step {
  display: flex; gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step-num {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 800;
  color: var(--acc);
  flex: none; width: 56px;
  line-height: 1.3;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--slate); font-size: 0.97rem; max-width: 600px; }

/* ---------- Compliance ---------- */
.compliance-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 72px; align-items: center;
}
.compliance-copy p { margin: 18px 0; color: var(--deep-mute); }
.compliance-copy strong { color: var(--deep-ink); }
.check-list { list-style: none; margin-top: 26px; display: grid; gap: 13px; }
.check-list li {
  padding-left: 34px; position: relative;
  color: var(--deep-soft); font-size: 0.98rem;
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--acc);
}
.check-list li::after {
  content: "";
  position: absolute; left: 5px; top: 8px;
  width: 9px; height: 5px;
  border-left: 2.5px solid var(--acc-on);
  border-bottom: 2.5px solid var(--acc-on);
  transform: rotate(-45deg);
}

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.why h3 {
  padding-top: 16px; margin-bottom: 10px;
  border-top: 3px solid var(--acc);
}
.why p { color: var(--slate); font-size: 0.94rem; }

/* ---------- About ---------- */
.about-inner {
  display: grid; grid-template-columns: 0.72fr 1.28fr;
  gap: 72px; align-items: center;
}
.about-role { color: var(--acc-deep); font-weight: 600; font-size: 0.95rem; margin: 8px 0 18px; }
.about-copy p { margin-bottom: 14px; color: var(--slate); }
.about-copy h2 { color: var(--ink); }
.about-quote {
  margin-top: 26px;
  padding: 18px 24px;
  border-left: 4px solid var(--acc);
  background: var(--acc-soft);
  border-radius: 0 10px 10px 0;
  font-family: var(--font-head);
  font-size: 1.02rem; font-weight: 500;
  color: var(--navy-800);
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 600; font-size: 1.02rem;
  padding: 20px 56px 20px 24px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400;
  color: var(--acc-deep);
  transition: transform 0.2s;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 24px 20px; color: var(--slate); font-size: 0.97rem; }

/* ---------- Contact ---------- */
.contact-inner {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 72px; align-items: start;
}
.contact-copy p { color: var(--deep-mute); margin-top: 16px; }
.contact-alt { margin-top: 34px; display: grid; gap: 12px; font-size: 0.97rem; }
.contact-alt strong { color: var(--deep-ink); display: inline-block; width: 96px; }
.contact-alt a { color: var(--acc-bright); text-decoration: none; }
.tbd { color: var(--deep-mute); opacity: 0.75; font-style: italic; }

.rfq {
  background: #fff; color: var(--ink);
  border-radius: var(--radius);
  padding: 34px;
  display: grid; gap: 18px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.4);
}
.rfq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rfq label {
  display: grid; gap: 7px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--navy-800);
}
.rfq input, .rfq textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
}
.rfq input:focus, .rfq textarea:focus { border-color: var(--acc); }
.rfq-note { font-size: 0.8rem; color: var(--slate); text-align: center; font-weight: 400; }

/* ---------- Footer ---------- */
.footer { background: var(--foot-bg); color: var(--foot-mute); }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 48px;
  padding-top: 64px; padding-bottom: 48px;
}
.footer-brand p { font-size: 0.9rem; margin-top: 16px; max-width: 320px; }
.footer .brand { color: #fff; }
/* the brand teal is 3.5:1 on the dark footer; the on-dark tone passes */
.footer .brand-text em { color: var(--acc-bright); }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links h3 {
  color: #fff; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.footer-links a { color: var(--foot-mute); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-base {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px; padding-bottom: 28px;
  font-size: 0.82rem;
  display: flex; justify-content: space-between;
}

/* ---------- Category page ---------- */
.cat-head {
  background: linear-gradient(160deg, var(--hero-a) 0%, var(--hero-b) 100%);
  color: var(--hero-ink);
  padding: 26px 0 0;
}
.crumbs {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--hero-mute);
  margin-bottom: 30px;
}
.crumbs a { text-decoration: none; color: inherit; }
.crumbs a:hover { color: var(--acc-deep); }
.crumbs strong { color: var(--hero-ink); font-weight: 600; }
.crumbs span { opacity: 0.45; }

.cat-head-grid {
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: 60px; align-items: center;
  padding-bottom: 48px;
}
.cat-head h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  font-weight: 800; margin: 4px 0 10px;
}
.cat-tagline {
  font-family: var(--font-head);
  font-size: 1.18rem; font-weight: 600;
  color: var(--acc-deep);
  margin-bottom: 18px;
}
.cat-intro { color: var(--hero-mute); font-size: 1.03rem; margin-bottom: 30px; max-width: 620px; }
/* The quote buttons carry the category name ("Solicitar cotización de almacenamiento
   móvil de herramientas") — let them wrap rather than push a phone screen sideways. */
.cat-head .btn, .cat-cta .btn { white-space: normal; max-width: 100%; text-align: center; }
.ph-cat { aspect-ratio: 4 / 3.2; }
.cat-head-visual .ph { color: var(--hero-mute); }

.cat-facts {
  display: grid; grid-template-columns: repeat(var(--facts, 4), 1fr);
  gap: 1px;
  background: color-mix(in srgb, var(--t-slate) 20%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--t-slate) 20%, transparent);
}
.cat-fact {
  background: var(--bg);
  padding: 20px 22px;
  display: grid; gap: 5px;
}
.cat-fact span {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--t-slate);
}
.cat-fact strong {
  font-family: var(--font-head); font-size: 0.98rem;
  color: var(--t-ink); font-weight: 600;
}

/* range grid */
.range-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.range-item h3 { margin: 14px 0 6px; font-size: 1.02rem; }
.range-item p { color: var(--slate); font-size: 0.9rem; }
.ph-range { aspect-ratio: 4 / 3; }
/* A line whose photo is on its way: calm and finished-looking, not a dashed
   design placeholder. Same box as a photo so the grid stays aligned. */
.ph-soon {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
}
.ph-range span { font-size: 0.7rem; }

/* materials */
.mat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 34px; }
.mat-item h3 {
  padding-top: 14px; margin-bottom: 8px;
  border-top: 3px solid var(--acc);
}
.mat-item p { color: var(--slate); font-size: 0.94rem; }

/* qc card on the dark band */
.qc-card {
  background: color-mix(in srgb, #ffffff 8%, transparent);
  border: 1px solid color-mix(in srgb, #ffffff 16%, transparent);
  border-radius: var(--radius);
  padding: 30px 30px 32px;
}
.qc-card h3 { color: var(--deep-ink); margin-bottom: 18px; font-size: 1.06rem; }
.qc-list { list-style: none; counter-reset: qc; display: grid; gap: 14px; }
.qc-list li {
  counter-increment: qc;
  position: relative; padding-left: 38px;
  color: var(--deep-soft); font-size: 0.94rem;
}
.qc-list li::before {
  content: counter(qc);
  position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 7px;
  background: var(--acc); color: var(--acc-on);
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700;
}
.qc-guarantee {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, #ffffff 16%, transparent);
  color: var(--deep-ink); font-weight: 600; font-size: 0.95rem;
}
.cat-note {
  margin-top: 22px; font-size: 0.84rem;
  color: var(--acc-bright); opacity: 0.9; font-style: italic;
}

/* spec table */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  text-align: left; padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem; vertical-align: top;
}
.spec-table th {
  width: 34%; font-family: var(--font-head); font-weight: 600;
  color: var(--t-ink); background: var(--bg-alt);
}
.spec-table td { color: var(--slate); }

/* related */
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related-card {
  display: block; text-decoration: none;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px;
  transition: border-color 0.15s, transform 0.15s;
}
.related-card:hover { border-color: var(--acc); transform: translateY(-3px); }
.related-card h3 { font-size: 0.98rem; font-weight: 600; }

.cat-cta { text-align: center; }
.cat-cta h2 { color: var(--deep-ink); }
.cat-cta p { color: var(--deep-mute); margin: 16px auto 28px; max-width: 560px; }

/* linked product cards on the home grid */
.prod-linked { display: block; text-decoration: none; color: inherit; }
.prod-linked .ph-prod { transition: border-color 0.15s; }
.prod-linked:hover .ph-prod { border-color: var(--acc); }
.prod-go {
  display: inline-block; margin-top: 4px;
  font-size: 0.82rem; font-weight: 600; color: var(--acc-deep);
}

@media (max-width: 1000px) {
  .cat-head-grid { grid-template-columns: 1fr; gap: 40px; }
  .range-grid { grid-template-columns: repeat(3, 1fr); }
  .mat-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* the smallest phones: two fact boxes side by side overflow in es/pt
   ("PEDIDO MÍNIMO HABITUAL"), so stack them */
@media (max-width: 420px) {
  .cat-facts { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .range-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .mat-grid { grid-template-columns: 1fr; gap: 24px; }
  .related-grid { grid-template-columns: 1fr; }
  .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table th { border-bottom: 0; padding-bottom: 6px; }
}

/* ---------- Language switcher ---------- */
.langsel { position: relative; }
.langsel-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: 1.5px solid var(--nav-border);
  color: var(--nav-mute);
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  padding: 7px 10px 7px 9px; border-radius: 9px;
  cursor: pointer; transition: color 0.15s, border-color 0.15s;
}
.langsel-btn:hover { color: var(--nav-ink); border-color: var(--acc); }
.lang-globe { width: 17px; height: 17px; flex: none; }
.lang-chev { width: 15px; height: 15px; opacity: 0.7; transition: transform 0.18s; }
.langsel.open .lang-chev { transform: rotate(180deg); }
.langsel-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 168px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 16px 38px -12px rgba(10, 25, 30, 0.3);
  padding: 6px;
  display: none; z-index: 120;
}
.langsel.open .langsel-menu { display: block; }
.langsel-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
  transition: background 0.13s;
}
.langsel-menu a:hover { background: var(--bg-alt); }
.langsel-menu a.active { color: var(--acc-deep); font-weight: 700; background: var(--acc-soft); }
.lang-tick { font-size: 0.85rem; }

/* inline variant — footer + inside mobile menu */
.lang-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lang-inline .lang-globe { opacity: 0.65; }
.lang-inline a {
  font-size: 0.9rem; text-decoration: none;
  color: inherit; opacity: 0.75;
  transition: opacity 0.15s, color 0.15s;
}
.lang-inline a:hover { opacity: 1; }
.lang-inline a.active { opacity: 1; font-weight: 700; color: var(--acc-bright); }
.footer-lang { margin-top: 22px; }
.nav-lang-mobile { display: none; }

/* language suggestion bar — suggests, never forces */
.langbar {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  background: var(--acc-soft); color: var(--acc-deep);
  padding: 10px 46px 10px 20px;
  font-size: 0.9rem; font-weight: 500;
  position: relative;
  border-bottom: 1px solid color-mix(in srgb, var(--acc) 25%, transparent);
}
.langbar[hidden] { display: none; }
.langbar-go {
  color: var(--acc-deep); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
  white-space: nowrap;
}
.langbar-x {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer;
  font-size: 1.3rem; line-height: 1; color: var(--acc-deep); opacity: 0.6;
  padding: 4px 8px;
}
.langbar-x:hover { opacity: 1; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.35s ease, transform 0.35s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* Nav collapses earlier than the rest of the layout: Spanish and Portuguese
   labels run ~25% longer than English and won't fit a horizontal bar. */
@media (max-width: 1120px) {
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    /* Opaque, not the translucent --nav-bg: .nav above already sets a
       backdrop-filter, which makes it a backdrop root, so a blur here never
       samples the page behind the panel — the hero just showed through. */
    background: var(--bg);
    flex-direction: column; gap: 0;
    padding: 12px 28px 20px;
    border-bottom: 1px solid var(--nav-border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 1rem; }
  .nav-burger { display: block; }
  .langsel { display: none; }
  .nav-lang-mobile {
    display: block;
    margin-top: 10px; padding-top: 14px;
    border-top: 1px solid var(--nav-border);
    color: var(--nav-mute);
  }
  .nav-lang-mobile .lang-inline a { padding: 6px 0; }
}

/* Small phones: brand + CTA + burger cannot share the bar (the English
   "Request a Quote" alone is 160px of a 319px content box at 375). Drop the
   CTA out of the bar and give it a full-width slot in the burger menu. One
   breakpoint for all languages so the header behaves the same everywhere. */
@media (max-width: 560px) {
  .nav-inner { gap: 12px; }
  .nav-cta .btn { display: none; }
  .nav-links a.nav-cta-mobile {
    display: block;
    padding: 13px 20px; margin: 6px 0 4px;
    font-size: 0.95rem; text-align: center;
    color: var(--acc-on);
  }
  .nav-links a.nav-cta-mobile:hover { color: var(--acc-on); }
}

@media (max-width: 1000px) {
  .hero-inner { padding-top: 72px; padding-bottom: 80px; }
  .hero-card { left: 0; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .compliance-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  /* portrait photos stacked above their copy: full width would fill a tablet screen */
  .about-photo, .compliance-visual { max-width: 400px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .desk-only { display: none; }
}
@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
  .trustbar-inner { grid-template-columns: repeat(2, 1fr); }
  .rfq-row { grid-template-columns: 1fr; }
  .rfq { padding: 24px; }
  .step { gap: 18px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-base { flex-direction: column; gap: 6px; }
}

/* prefilled RFQ field (arrived from a category page) */
.rfq input.prefilled { border-color: var(--acc); background: var(--acc-soft); }


/* =================================================================
   Buyer features (3 Oct 2026): products menu, search, enquiry list,
   photo viewer, phone quote bar, timeline, print sheet, polish
   ================================================================= */

/* skip link: invisible until a keyboard user tabs to it */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--acc); color: var(--acc-on);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
#main:focus { outline: none; }

/* section you are reading, in the nav */
.nav-links a.active { color: var(--nav-ink); box-shadow: inset 0 -2px 0 var(--acc); }

/* nav: Products button + icon buttons */
.nav-prod {
  display: inline-flex; align-items: center; gap: 2px;
  background: none; border: 0; cursor: pointer; padding: 0;
  font: inherit; font-size: 0.9rem; font-weight: 500; color: var(--nav-mute);
  white-space: nowrap; transition: color 0.15s;
}
.nav-prod:hover, .nav-prod.open { color: var(--nav-ink); }
.nav-prod.open .lang-chev { transform: rotate(180deg); }
.nav-icon {
  position: relative; flex: none;
  width: 38px; height: 38px; display: grid; place-items: center;
  background: none; border: 1.5px solid var(--nav-border); border-radius: 9px;
  color: var(--nav-mute); cursor: pointer; text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.nav-icon[hidden] { display: none; }
.nav-icon:hover { color: var(--nav-ink); border-color: var(--acc); }
.nav-icon svg { width: 19px; height: 19px; }
.nav-enq-n {
  position: absolute; top: -7px; right: -7px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--acc); color: var(--acc-on);
  font-size: 0.7rem; font-weight: 700; line-height: 19px; text-align: center;
}

/* products menu */
.megamenu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 24px 40px -24px rgba(10, 25, 30, 0.35);
  max-height: calc(100vh - 68px); overflow-y: auto;
  padding: 22px 0 26px;
}
.megamenu[hidden] { display: none; }
.mm-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--acc-deep); margin-bottom: 14px; }
.mm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 18px; }
.mm-grid a {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 8px; border-radius: 10px; text-decoration: none; color: var(--ink);
  font-size: 0.92rem; font-weight: 600; line-height: 1.3;
}
.mm-grid a:hover { background: var(--bg-alt); }
.mm-pic { flex: none; width: 56px; height: 42px; border-radius: 7px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.mm-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-txt small { display: block; font-weight: 400; font-size: 0.78rem; color: var(--slate); }
.mm-home { display: inline-block; margin-top: 16px; color: var(--acc-deep); font-weight: 600; font-size: 0.9rem; text-decoration: none; }

/* search */
body.modal-open { overflow: hidden; }
.search, .lb {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(4, 38, 43, 0.62);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 9vh 16px 16px;
}
.search[hidden], .lb[hidden] { display: none; }
.search-box {
  width: 100%; max-width: 640px; max-height: 78vh;
  background: var(--bg); border-radius: var(--radius);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; overflow: hidden;
}
.search-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--slate); }
.search-row svg { width: 20px; height: 20px; flex: none; }
.search-row input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 1.02rem; color: var(--ink); background: transparent; }
.search-row input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-x { background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--slate); cursor: pointer; padding: 2px 6px; }
.search-results { list-style: none; overflow-y: auto; padding: 6px; }
.search-results a {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink);
}
.search-results a:hover, .search-results a.on { background: var(--acc-soft); }
.search-results img { width: 64px; height: 48px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); background: #fff; flex: none; }
.sr-t { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.sr-t small { display: block; font-weight: 400; font-size: 0.8rem; color: var(--slate); }
.search-none { padding: 18px 20px 22px; color: var(--slate); font-size: 0.93rem; }
.search-none a { color: var(--acc-deep); font-weight: 600; }

/* home category cards: count + second product on hover */
.prod-pics { position: relative; display: block; margin-bottom: 14px; }
.prod-pics .pv-prod { margin-bottom: 0; }
.pv-alt { position: absolute; inset: 0; opacity: 0; transition: opacity 0.25s ease; }
@media (hover: hover) {
  .prod-linked:hover .pv-alt, .prod-linked:focus-visible .pv-alt { opacity: 1; }
}
.prod-n { display: block; font-size: 0.82rem; color: var(--slate); margin-top: 2px; }

/* category tiles: photo opens the viewer, add-to-enquiry under the name */
.ri-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); }
.ri-zoom:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.ri-zoom:hover .pv-range { border-color: var(--acc); }
.range-item p:empty { display: none; }
.ri-add {
  margin-top: 10px; padding: 6px 12px;
  background: none; border: 1.5px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--acc-deep);
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.ri-add:hover { border-color: var(--acc); }
.ri-add.on { background: var(--acc-soft); border-color: var(--acc); }
.cat-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* photo viewer */
.lb { align-items: center; padding: 16px; }
.lb-box {
  position: relative; width: 100%; max-width: 960px; max-height: 94vh;
  background: var(--bg); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.lb-stage { position: relative; background: #fff; display: flex; align-items: center; justify-content: center; min-height: 0; flex: 1; }
.lb-pic { display: block; width: 100%; }
.lb-pic img { display: block; width: 100%; height: auto; max-height: 74vh; object-fit: contain; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,0.92);
  font-size: 1.7rem; line-height: 1; color: var(--ink); cursor: pointer;
}
.lb-nav[hidden] { display: none; }
#lbPrev { left: 12px; } #lbNext { right: 12px; }
.lb-x {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,0.92); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.lb-cap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.lb-count { font-size: 0.82rem; color: var(--slate); }
.lb-acts { display: flex; gap: 10px; flex-wrap: wrap; }
#lbAdd.on { background: var(--acc-soft); border-color: var(--acc); }

/* enquiry list on the form */
.enq-chips { border: 1.5px dashed var(--acc); border-radius: 10px; padding: 12px 14px; background: var(--acc-soft); }
.enq-chips[hidden] { display: none; }
.enq-chips-h { font-size: 0.82rem; font-weight: 700; color: var(--acc-deep); margin-bottom: 8px; }
.enq-chips ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.enq-chips li {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 3px 4px 3px 11px; font-size: 0.83rem;
}
.chip-x { border: 0; background: none; cursor: pointer; font-size: 1.05rem; line-height: 1; color: var(--slate); padding: 0 6px; }
.enq-clear { margin-top: 8px; background: none; border: 0; padding: 0; font: inherit; font-size: 0.8rem; color: var(--acc-deep); text-decoration: underline; cursor: pointer; }
.rfq-status { font-size: 0.9rem; font-weight: 600; text-align: center; padding: 10px; border-radius: 8px; background: var(--bg-alt); }
.rfq-status.ok { background: var(--acc-soft); color: var(--acc-deep); }
.rfq-status.err { background: #FDECEC; color: #9B1C1C; }
.rfq-status[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* sections without their photo yet run full width */
.compliance-solo, .about-solo { grid-template-columns: 1fr; }
.compliance-solo .compliance-copy, .about-solo .about-copy { max-width: 820px; }
.qc-img, .about-img { width: 100%; height: auto; border-radius: var(--radius); display: block; }

/* process as a numbered timeline */
.steps { position: relative; }
.step { position: relative; border-bottom: 0; padding: 0 0 34px; }
.step:last-child { padding-bottom: 0; }
.step-num {
  position: relative; z-index: 1;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--acc-soft); border: 2px solid var(--acc);
  font-size: 1.05rem; line-height: 1;
}
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 25px; top: 52px; bottom: 0;
  width: 2px; background: color-mix(in srgb, var(--acc) 35%, transparent);
}
.step > div { padding-top: 12px; }

/* phone quote bar */
.mbar { display: none; }
@media (max-width: 720px) {
  .mbar {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--nav-border);
    transition: transform 0.2s ease;
  }
  .mbar .btn { flex: 1; text-align: center; padding: 12px 14px; }
  .mbar-wa { background: #15803D; color: #fff; }  /* white text 5:1 (was #1F9D55, 3.5:1) */
  .mbar.away, body.modal-open .mbar, body.menu-open .mbar { transform: translateY(110%); }
  body.has-mbar .footer { padding-bottom: 72px; }
  .mm-grid { grid-template-columns: 1fr 1fr; }
  .lb-cap { padding: 12px 14px 16px; }
}
@media (max-width: 1000px) and (min-width: 721px) { .mm-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1120px) {
  .nav-prod { padding: 12px 0; font-size: 1rem; justify-content: flex-start; }
}
@media (max-width: 420px) {
  .mm-grid { grid-template-columns: 1fr; }
  .nav-cta { gap: 8px; }
  .nav-icon { width: 36px; height: 36px; }
}

/* print / save as PDF: the category sheet a buyer forwards to their boss */
.print-only { display: none; }
@media print {
  .langbar, .nav-links, .nav-cta, .nav-burger, .megamenu, .search, .lb, .mbar, .skip,
  .cat-ctas, .ri-add, #related, #cta, .footer, .crumbs { display: none !important; }
  .nav { position: static; border: 0; backdrop-filter: none; background: none; }
  .print-only { display: block; }
  .print-contact { text-align: center; font-weight: 600; margin: 18px 0 0; font-size: 11pt; }
  body { font-size: 10.5pt; }
  .section, .cat-head { padding: 14px 0 !important; background: none !important; }
  .section-dark { background: none !important; color: var(--ink) !important; }
  .section-dark h2, .section-dark h3, .section-dark p, .section-dark li, .qc-card, .qc-card * { color: var(--ink) !important; }
  .qc-card { background: none !important; border: 1px solid #ccc; }
  .cat-head-grid { grid-template-columns: 1.3fr 0.7fr; gap: 24px; padding-bottom: 12px; }
  .range-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 12px; }
  .range-item, .qc-card, .spec-table, .cat-facts { break-inside: avoid; }
  .cat-facts { grid-template-columns: repeat(4, 1fr) !important; }
  a { text-decoration: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* motion off for anyone who has asked their device for less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =================================================================
   Quality & Compliance page (17 Oct 2026) — /quality/, /es/quality/, /pt/quality/
   ================================================================= */

/* "how we test" links on the home and category dark bands */
.comp-link {
  display: inline-block; margin-top: 26px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  color: var(--acc-bright); text-decoration: none;
}
.comp-link:hover { text-decoration: underline; }

/* page header: four test photos as a mosaic */
.q-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-tile img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px;
}

/* tests, in pictures */
/* flex, not grid, so a short last row (5 tests = 3 + 2) sits centred */
.q-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.q-test {
  flex: 0 0 calc((100% - (var(--q-cols, 3) - 1) * 26px) / var(--q-cols, 3));
  margin: 0; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
.q-pic img { display: block; width: 100%; height: auto; }
.q-test figcaption { padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; }
.q-cat {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--acc-deep); text-decoration: none;
}
.q-cat:hover { text-decoration: underline; }
.q-test h3 { font-size: 1.06rem; }
.q-std {
  justify-self: start;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 600;
  color: var(--acc-deep); background: var(--acc-soft);
  border-radius: 6px; padding: 3px 9px;
}
.q-test p { color: var(--slate); font-size: 0.92rem; }

/* container security band */
.q-list-h { color: var(--deep-ink); font-size: 1rem; margin: 26px 0 16px; }
.q-points li { font-size: 0.95rem; }
.q-sec-pic img { display: block; width: 100%; height: auto; border-radius: var(--radius); }

/* standards by category */
.std-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.std-table th, .std-table td {
  text-align: left; vertical-align: top;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.std-table thead th {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--t-slate); background: var(--bg-alt); border-bottom: 2px solid var(--line);
}
.std-table tbody th { width: 24%; font-family: var(--font-head); font-weight: 600; }
.std-table tbody th a { color: var(--t-ink); text-decoration: none; }
.std-table tbody th a:hover { color: var(--acc-deep); }
.std-codes { width: 38%; font-family: var(--font-head); font-weight: 500; color: var(--t-ink); }
.std-table td:last-child { color: var(--slate); }
.std-table tr:target { background: var(--acc-soft); }
.std-note { margin-top: 16px; font-size: 0.85rem; color: var(--slate); }
.cat-cta .q-guarantee { margin: 22px auto 0; color: var(--deep-ink); font-weight: 600; font-size: 0.95rem; }

@media (max-width: 1000px) {
  .q-gallery { --q-cols: 2 !important; }  /* beats the page's inline --q-cols */
  .q-mosaic { max-width: 520px; }
}
@media (max-width: 720px) {
  .q-gallery { --q-cols: 1 !important; }
  .std-table thead { display: none; }
  .std-table, .std-table tbody, .std-table tr, .std-table th, .std-table td { display: block; width: 100%; }
  .std-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .std-table th, .std-table td { padding: 2px 0; border: 0; }
  .std-table tbody th { width: auto; font-size: 1rem; margin-bottom: 4px; }
  .std-codes { width: auto; }
}

/* =================================================================
   Print / Save as PDF, round 2 (17 Oct 2026). Sairam's saved Striking Tools PDF
   showed (1) a browser extension's floating button printed onto page 1,
   (2) the logo, check marks and step numbers lost with "Background graphics"
   unticked, (3) half-empty pages: whole blocks jumped to the next page and
   "Commercial terms" landed on a different page from its table.
   ================================================================= */
@media print {
  /* colours print whatever the "Background graphics" setting */
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Only our own top-level blocks reach paper, so an extension's floating
     button or toolbar never does. Every page's direct <body> children are
     listed here (check_site-built templates + 404's <main>): add a new one if a
     template gains a new top-level element, or it will not print. */
  html > :not(head):not(body),
  body > :not(.skip):not(.langbar):not(.nav):not(section):not(main):not(.print-only):not(.lb):not(.footer):not(.search):not(.mbar):not(script) {
    display: none !important;
  }

  /* links that only work on screen */
  .comp-link { display: none !important; }

  /* section headings stay with what follows them. Not h3: product names inside
     the cards are h3, and break-after there pushed the whole grid to the next
     page in A4 (tested 17 Oct with headless Chrome, A4 + Letter). */
  h1, h2, .section-head { break-after: avoid; }
  .section-head { margin-bottom: 18px !important; break-inside: avoid; }
  .spec-table tr:first-child { break-before: avoid; }   /* terms heading + intro + first row together */
  p { orphans: 3; widows: 3; }

  /* product lines: flex rows break cleanly between rows (the grid version
     jumped to the next page whole on A4) */
  .range-grid { display: flex !important; flex-wrap: wrap; gap: 14px 12px !important; }
  .range-item { flex: 0 0 calc((100% - 36px) / 4); break-inside: avoid; }

  /* standards text, then the quality card below it with its steps in two
     columns. Side by side looked like the screen but Chrome will not split a
     side-by-side row across pages, so the whole block jumped a page and left
     half of one empty (tested 17 Oct: 19 categories x en/es/pt x A4/Letter). */
  .compliance-inner { display: block !important; }
  .compliance-visual { max-width: none !important; margin-top: 14px; }
  .qc-list { grid-template-columns: 1fr 1fr !important; column-gap: 22px !important; }
  .qc-card { padding: 18px 20px !important; break-inside: auto !important; }
  .qc-list { gap: 8px !important; }
  .qc-list li, .qc-guarantee, .check-list li { break-inside: avoid; }
  .qc-guarantee { margin-top: 12px !important; padding-top: 10px !important; }
  .section-sub { margin-top: 8px !important; }

  /* commercial terms: a compact two-column table that may break between rows */
  .spec-table { break-inside: auto !important; }
  .spec-table tr { break-inside: avoid; }
  .spec-table th, .spec-table td { display: table-cell !important; width: auto !important; padding: 9px 12px !important; }
  .spec-table th { width: 34% !important; border-bottom: 1px solid var(--line) !important; }

  /* quality page: test cards side by side, three to a row */
  .q-gallery { --q-cols: 3 !important; }
  .q-test { break-inside: avoid; }
  .std-table tr { break-inside: avoid; }
}
