/* Self-hosted fonts (latin subset, variable). Replaces the Google Fonts stylesheet: no third-party request, no render-blocking
   cross-origin CSS, and the files are preloaded from every page head. Licence: SIL OFL 1.1, see /assets/fonts/LICENSE.txt.
   Weight ranges match the axis range inside each file. The latin subset covers every character the site prints. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/inter-latin-var.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/assets/fonts/inter-tight-latin-var.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-var.woff2") format("woff2"); }
/* ==========================================================================================
   BarcoderX website: shared layer (type, nav, footer, buttons, label and code motifs). Author: P4 Software.

   Rules this file follows:
   - Every colour, space, radius, shadow and type size comes from /brand/tokens.css (--bx-*).
     The only page-level tokens are defined in :root below and are geometry, not colour.
   - Light theme only. There is deliberately no dark variant of any kind anywhere.
   - Lime is a fill, or text on ink. Never lime text or lines on a light surface.
   - Layouts are written to wrap: Spanish runs ~30% longer than English, so nothing may rely on short labels.
   ========================================================================================== */

:root {
  color-scheme: only light;
  --cut: 20px;                       /* size of the hard 45-degree chamfer, taken from the logo's cuts */
  --header-h: 4rem;
  --section-y: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  --measure-lede: 56ch;
  /* Body measure. The kit's 68ch is measured in the width of a "0", which is about 25% wider than the average Inter letter, so
     68ch printed 85 to 100 characters per line on wide screens. 54ch lands at 75 to 80. Overrides /brand/tokens.css (loaded first). */
  --bx-measure: 54ch;
  --font-display-size: clamp(2.75rem, 1.45rem + 4.6vw, 4.25rem);
  /* clip-path clips box-shadow, so paper-like objects get their shadow from a filter on a wrapper. */
  --paper-shadow: drop-shadow(0 12px 20px color-mix(in srgb, var(--bx-ink) 13%, transparent)) drop-shadow(0 2px 3px color-mix(in srgb, var(--bx-ink) 10%, transparent));
  --hair: 1px solid var(--bx-border);
  --rule: 2px solid var(--bx-ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bx-canvas);
  color: var(--bx-text);
  font: 400 var(--bx-text-md)/var(--bx-leading-body) var(--bx-font-sans);
  font-feature-settings: "cv11", "ss03";   /* Inter: single-storey a, flat-top 3 reads closer to label type */
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;                          /* belt and braces: nothing may create page-level horizontal scroll */
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--bx-font-display); line-height: var(--bx-leading-tight); letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: var(--bx-text-3xl); font-weight: 700; }
h3 { font-size: var(--bx-text-xl); font-weight: 650; letter-spacing: -0.012em; }
p { margin: 0; max-width: var(--bx-measure); text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--bx-green-600); text-underline-offset: 0.2em; }
a:hover { color: var(--bx-green-700); }
/* Glossary link: a label-printing term (raster, dpi, quiet zone ...) linked to its glossary entry at first use. It reads as body text with a dotted
   underline, so a developer who knows the word is not pulled out of the sentence and one who does not can follow it. */
a.gl { color: inherit; text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
a.gl:hover { color: var(--bx-green-700); text-decoration-style: solid; }
code, kbd, samp { font-family: var(--bx-font-mono); font-size: 0.92em; }
section[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* Focus ring is always visible; on ink it switches to lime (13.4:1). */
:focus-visible { outline: 3px solid var(--bx-focus-ring); outline-offset: 3px; border-radius: var(--bx-radius-sm); }
.on-ink :focus-visible { outline-color: var(--bx-lime-500); }

.wrap { width: 100%; max-width: var(--bx-container); margin-inline: auto; padding-inline: var(--bx-gutter); }
.skip { position: absolute; left: var(--bx-space-4); top: -5rem; z-index: 60; background: var(--bx-ink); color: var(--bx-white); padding: var(--bx-space-3) var(--bx-space-4); border-radius: var(--bx-radius-md); }
.skip:focus { top: var(--bx-space-3); color: var(--bx-white); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Surfaces: the page alternates canvas, white and one ink band ---------- */
.sec { padding-block: var(--section-y); }
.s-white { background: var(--bx-surface); }
.s-canvas { background: var(--bx-canvas); }
.s-ink { background: var(--bx-ink); color: var(--bx-white); }
.s-white + .s-canvas, .s-canvas + .s-white { border-top: var(--hair); }

/* ---------- Mono label type ---------- */
.kicker { display: flex; align-items: center; gap: var(--bx-space-3); font: 600 var(--bx-text-xs)/1.4 var(--bx-font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bx-gray-600); max-width: none; }
.kicker b { font-weight: 600; color: var(--bx-green-600); }
.kicker::before { content: ""; width: 1.5rem; height: 2px; background: var(--bx-ink); flex: none; }
.on-ink .kicker { color: var(--bx-gray-400); }
.on-ink .kicker b { color: var(--bx-lime-500); }
.on-ink .kicker::before { background: var(--bx-lime-500); }
.mono { font-family: var(--bx-font-mono); }
.cap { margin-top: var(--bx-space-3); font: 500 var(--bx-text-xs)/1.5 var(--bx-font-mono); color: var(--bx-gray-600); max-width: 62ch; }
.on-ink .cap { color: var(--bx-gray-400); }
.lede { font-size: var(--bx-text-lg); color: var(--bx-text-muted); max-width: var(--measure-lede); }
.on-ink .lede { color: var(--bx-gray-400); }

/* ---------- Section header: kicker, headline, lede. Two columns on wide screens. ---------- */
.sec-head { display: grid; gap: var(--bx-space-4); margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.sec-head .kicker { grid-column: 1 / -1; }
.sec-head h2 { max-width: 20ch; }
@media (min-width: 64rem) {
  /* First-baseline alignment: the lede opens on the same line as the headline. With "end" alignment a tall lede pushed the
     headline down and left a hole between the kicker and the headline. */
  .sec-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--bx-space-16); align-items: first baseline; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--bx-space-2); min-height: var(--bx-touch-target); padding: var(--bx-space-3) var(--bx-space-6); border-radius: var(--bx-radius-md); border: 1px solid transparent; font: 600 var(--bx-text-md)/1.25 var(--bx-font-sans); text-align: center; text-decoration: none; cursor: pointer; transition: background-color var(--bx-duration-fast) var(--bx-ease), border-color var(--bx-duration-fast) var(--bx-ease), color var(--bx-duration-fast) var(--bx-ease); }
.btn-primary { background: var(--bx-primary); color: var(--bx-white); }
.btn-primary:hover { background: var(--bx-primary-hover); color: var(--bx-white); }
.btn-ink { background: var(--bx-ink); color: var(--bx-white); }
.btn-ink:hover { background: var(--bx-gray-700); color: var(--bx-white); }
.btn-outline { background: var(--bx-surface); color: var(--bx-ink); border-color: var(--bx-border-strong); }
.btn-outline:hover { border-color: var(--bx-ink); color: var(--bx-ink); }
.btn-white { background: var(--bx-white); color: var(--bx-ink); }
.btn-white:hover { background: var(--bx-green-50); color: var(--bx-ink); }
.btn-sm { padding: var(--bx-space-2) var(--bx-space-4); font-size: var(--bx-text-sm); }
/* Pressed state: a one-pixel push. Not an animation, so it stays on under prefers-reduced-motion. */
.btn:active, .jump a:active, .nav-toggle:active { transform: translateY(1px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bx-space-3) var(--bx-space-6); }
/* Inline (not flex) so a label that wraps keeps its arrow next to the last word instead of stranding it at the right edge.
   The vertical padding brings a one-line link to the 44px touch target; the non-breaking space glues the arrow to the last word. */
.link { display: inline-block; padding-block: calc((var(--bx-touch-target) - 1.3em) / 2); font: 600 var(--bx-text-sm)/1.3 var(--bx-font-mono); color: var(--bx-green-600); text-decoration: none; }
.link::after { content: "\00a0\2192"; position: relative; left: 0; transition: left var(--bx-duration) var(--bx-ease); }
.link:hover { color: var(--bx-green-700); text-decoration: underline; text-underline-offset: 0.25em; }
.link:hover::after { left: 3px; }
.on-ink .link { color: var(--bx-lime-500); }
.on-ink .link:hover { color: var(--bx-lime-200); }

/* ---------- Badges and chips (mono, pill) ---------- */
.badge { display: inline-flex; align-items: center; gap: var(--bx-space-2); padding: 2px var(--bx-space-3); border-radius: var(--bx-radius-pill); font: 600 var(--bx-text-xs)/1.6 var(--bx-font-mono); border: 1px solid var(--bx-border); background: var(--bx-gray-100); color: var(--bx-gray-700); white-space: nowrap; }
.badge-green { background: var(--bx-green-50); border-color: var(--bx-green-200); color: var(--bx-green-600); }
.badge-ink { background: var(--bx-ink); border-color: var(--bx-ink); color: var(--bx-white); }
.badge-ink::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: var(--bx-radius-pill); background: var(--bx-lime-500); }   /* lime as a fill on ink */
.badge-plan { background: transparent; border: 1px dashed var(--bx-gray-400); color: var(--bx-gray-600); }
.badge-lime { background: var(--bx-lime-100); border-color: var(--bx-lime-200); color: var(--bx-lime-ink); }
.chips { display: flex; flex-wrap: wrap; gap: var(--bx-space-2); }
.chip { display: inline-flex; align-items: center; min-height: 1.875rem; padding: 0 var(--bx-space-3); border: 1px solid var(--bx-border-strong); border-radius: var(--bx-radius-sm); background: var(--bx-surface); font: 500 var(--bx-text-sm)/1 var(--bx-font-mono); color: var(--bx-ink); }
.chip-dim { border-color: var(--bx-border); background: var(--bx-gray-50); color: var(--bx-gray-600); }
.chip-plan { border-style: dashed; border-color: var(--bx-gray-400); background: transparent; color: var(--bx-gray-600); }

/* ---------- The 45-degree cut: hairline-bordered panel with one chamfered corner ----------
   Border trick: the outer element is the border colour and is clipped; the inner element is the fill and is
   clipped with a cut reduced by 0.59px so the diagonal edge stays a 1px hairline (1px * (sqrt 2 - 1) correction).
   Put it on decorative wrappers only: clip-path would also clip focus rings of anything touching the edge. */
.cut { padding: 1px; background: var(--cut-edge, var(--bx-border-strong)); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.cut > .cut-in { height: 100%; background: var(--cut-fill, var(--bx-surface)); clip-path: polygon(0 0, calc(100% - var(--cut) + 0.59px) 0, 100% calc(var(--cut) - 0.59px), 100% 100%, 0 100%); }

/* ---------- Code panel: ink surface, mono, syntax colours from tokens ---------- */
.code { --cut: 22px; --cut-edge: var(--bx-ink); --cut-fill: var(--bx-ink); min-width: 0; }
.code .cut-in { color: var(--bx-gray-100); }
.code-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--bx-space-3); padding: var(--bx-space-3) var(--bx-space-5); border-bottom: 1px solid var(--bx-gray-700); font: 500 var(--bx-text-xs)/1.4 var(--bx-font-mono); color: var(--bx-gray-400); letter-spacing: 0.04em; padding-right: calc(var(--cut) + var(--bx-space-4)); }
.code pre { margin: 0; padding: var(--bx-space-5); overflow-x: auto; font: 400 0.8125rem/1.75 var(--bx-font-mono); tab-size: 4; }
.code pre:focus-visible { outline-offset: -3px; }
/* Phones: one type step down and tighter padding buy about 50px of line length, so most samples fit without scrolling.
   The code itself is never reformatted to make room; what still overflows scrolls. */
@media (max-width: 39.999rem) { .code pre { font-size: 0.75rem; padding: var(--bx-space-4); } }
.code .k { color: var(--bx-lime-500); }
.code .t { color: var(--bx-green-200); }
.code .s { color: var(--bx-lime-200); }
/* Comments may wrap: a long comment line must not be the one thing that makes a whole code panel scroll sideways. */
.code .c { color: var(--bx-gray-400); white-space: pre-wrap; }
.code .n { color: var(--bx-green-300); }
.code .m { color: var(--bx-white); }

/* ---------- Printed label: white paper, ink strip on top, one cut corner, mono data ---------- */
.lbl-wrap { filter: var(--paper-shadow); }
.lbl { --cut: 22px; --cut-edge: var(--bx-gray-300); --cut-fill: var(--bx-white); color: var(--bx-ink); }   /* paper is always white, whatever surface it sits on */
.lbl .cut-in { border-top: 6px solid var(--bx-ink); padding: var(--bx-space-4); display: grid; align-content: start; gap: var(--bx-space-3); font: 500 0.7rem/1.35 var(--bx-font-mono); }
.lbl .l-row { display: flex; justify-content: space-between; align-items: center; gap: var(--bx-space-3); letter-spacing: 0.1em; }
.lbl .l-rule { border-top: 2px solid var(--bx-ink); }
.lbl .l-addr { display: grid; gap: 2px; align-content: start; }
.lbl .l-addr small { font-size: 0.6rem; letter-spacing: 0.1em; color: var(--bx-gray-600); }
.lbl .l-addr .l-name { font: 800 1.2rem/1.1 var(--bx-font-sans); letter-spacing: -0.02em; }
.lbl .l-codes { display: grid; grid-template-columns: 1fr auto; gap: var(--bx-space-3); align-items: end; }
.lbl .l-codes svg { width: 100%; height: 48px; }
.lbl .l-codes .qr { width: 4.25rem; height: 4.25rem; }
.lbl .l-hr { text-align: center; letter-spacing: 0.08em; font-size: 0.65rem; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: var(--bx-surface); border-bottom: var(--hair); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--bx-space-4); min-height: var(--header-h); }
/* Horizontal lockup at 160px wide: above the kit's 120px minimum; clear space comes from the padding. */
.nav-logo { display: inline-flex; flex: none; align-items: center; min-height: var(--bx-touch-target); }   /* flex: none keeps the lockup at 160px; the kit minimum is 120px */
.nav-logo img { width: 160px; height: auto; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: var(--bx-touch-target); height: var(--bx-touch-target); border: 1px solid var(--bx-border-strong); border-radius: var(--bx-radius-md); background: var(--bx-surface); cursor: pointer; padding: 0; }
.nav-toggle:hover { border-color: var(--bx-ink); background: var(--bx-green-50); }
.nav-toggle span { width: 18px; height: 2px; background: var(--bx-ink); transition: transform var(--bx-duration) var(--bx-ease), opacity var(--bx-duration-fast); }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bx-surface); border-bottom: var(--hair); padding: var(--bx-space-2) var(--bx-gutter) var(--bx-space-6); flex-direction: column; gap: var(--bx-space-1); box-shadow: var(--bx-shadow-md); }
.nav.is-open .nav-panel { display: flex; }
.nav-links { display: flex; flex-direction: column; }
.nav-links a { display: flex; align-items: center; white-space: nowrap; min-height: var(--bx-touch-target); padding-inline: var(--bx-space-2); font-weight: 500; color: var(--bx-gray-700); text-decoration: none; border-bottom: var(--hair); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--bx-green-600); }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-tools { display: flex; align-items: center; justify-content: space-between; gap: var(--bx-space-4); padding-top: var(--bx-space-4); }
/* EN | ES switch: each link goes to the same page in the other language, never to the home page. */
/* No overflow:hidden here: it clipped the focus ring of both links. The end links carry the rounded corners instead. */
.lang { display: inline-flex; align-items: center; border: 1px solid var(--bx-border-strong); border-radius: var(--bx-radius-md); font: 600 var(--bx-text-xs)/1 var(--bx-font-mono); }
.lang a:first-child { border-radius: calc(var(--bx-radius-md) - 1px) 0 0 calc(var(--bx-radius-md) - 1px); }
.lang a:last-child { border-radius: 0 calc(var(--bx-radius-md) - 1px) calc(var(--bx-radius-md) - 1px) 0; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--bx-touch-target); min-height: var(--bx-touch-target); padding-inline: var(--bx-space-3); color: var(--bx-gray-700); text-decoration: none; letter-spacing: 0.08em; }
.lang a[aria-current="true"] { background: var(--bx-ink); color: var(--bx-white); }
.lang a:not([aria-current="true"]):hover { background: var(--bx-green-50); color: var(--bx-green-600); }
/* The full link row needs 72rem in Spanish ("Códigos de barras", "Desarrolladores"); below that the menu button stays, so no label ever wraps. */
@media (min-width: 72rem) {
  .nav-toggle { display: none; }
  .nav-panel { display: flex; position: static; flex-direction: row; align-items: center; flex: 1; justify-content: space-between; background: none; border: 0; padding: 0; box-shadow: none; gap: var(--bx-space-6); }
  .nav-links { flex-direction: row; margin-left: var(--bx-space-8); gap: var(--bx-space-1); }
  .nav-links a { border: 0; padding-inline: var(--bx-space-3); font-size: var(--bx-text-sm); border-radius: var(--bx-radius-md); }
  .nav-links a:hover { background: var(--bx-green-50); }
  .nav-tools { padding-top: 0; gap: var(--bx-space-3); }
}

/* ---------- Final call to action (green band, white button) ---------- */
.cta { background: var(--bx-green-500); color: var(--bx-white); }
.cta .wrap { display: grid; gap: var(--bx-space-8); align-items: center; }
.cta h2 { font-size: var(--bx-text-4xl); letter-spacing: -0.03em; max-width: 14ch; }
.cta p:not(.kicker) { color: var(--bx-white); font-size: var(--bx-text-lg); max-width: 46ch; }
.cta :focus-visible { outline-color: var(--bx-white); }
.cta .kicker { color: var(--bx-white); }
.cta .kicker b { color: var(--bx-white); }
.cta .kicker::before { background: var(--bx-lime-500); }
.cta-copy { display: grid; gap: var(--bx-space-5); }
@media (min-width: 64rem) { .cta .wrap { grid-template-columns: minmax(0, 1fr) auto; gap: var(--bx-space-16); } }

/* ---------- Footer: ink surface, white mark (the kit's own footer pattern; no white lockup exists) ---------- */
.foot { background: var(--bx-ink); color: var(--bx-white); padding-block: var(--bx-space-16) var(--bx-space-8); }
.foot .wrap { display: grid; gap: var(--bx-space-10); }
.foot-brand { display: grid; gap: var(--bx-space-4); align-content: start; }
.foot-brand .who { display: flex; align-items: center; gap: var(--bx-space-4); font: 600 var(--bx-text-lg)/1.2 var(--bx-font-display); letter-spacing: -0.01em; }
.foot-brand p { color: var(--bx-gray-400); font-size: var(--bx-text-sm); max-width: 38ch; }
.foot nav { display: grid; gap: var(--bx-space-8) var(--bx-space-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot h2 { font: 600 var(--bx-text-xs)/1.4 var(--bx-font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bx-gray-400); margin-bottom: var(--bx-space-2); }
.foot nav a { display: flex; align-items: center; min-height: var(--bx-touch-target); color: var(--bx-white); text-decoration: none; font-size: var(--bx-text-sm); }
.foot nav a:hover { color: var(--bx-lime-500); text-decoration: underline; text-underline-offset: 0.25em; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--bx-space-2) var(--bx-space-6); padding-top: var(--bx-space-6); border-top: 1px solid var(--bx-gray-700); font: 500 var(--bx-text-xs)/1.5 var(--bx-font-mono); color: var(--bx-gray-400); }
.foot-base a { display: inline-flex; align-items: center; min-height: var(--bx-touch-target); color: var(--bx-white); }
/* "BarcoderX is a product of P4 Software.": the one small mention of the parent company. The link sits inside a sentence, so it stays inline
   and muted (same colour as the row) instead of taking the 44px flex box above, which would push the sentence out of line with its neighbours.
   The block padding widens the tap area without changing the line height. */
.foot-base .foot-owner { margin-inline-end: auto; }   /* keeps the sentence next to the copyright and the domain at the far edge */
.foot-base .foot-owner a { display: inline; min-height: 0; padding-block: 0.6em; color: inherit; text-decoration: underline; text-underline-offset: 0.25em; }
.foot-base .foot-owner a:hover { color: var(--bx-lime-500); }
/* Legal row (Privacy, Cookies, Terms, Cookie settings): the first row inside .foot-base, above the copyright line. It is a nav, so it
   must undo the column grid that ".foot nav" gives the three link columns. The "Cookie settings" button is a button that looks like
   the links; it ships with the hidden attribute and /assets/consent.js shows it only when analytics is configured. */
.foot .foot-legal { display: flex; flex-wrap: wrap; gap: 0 var(--bx-space-6); order: -1; flex: 1 0 100%; grid-template-columns: none; }
.foot .foot-legal a, .foot .foot-legal button { display: inline-flex; align-items: center; min-height: var(--bx-touch-target); margin: 0; padding: 0; border: 0; background: none; color: var(--bx-white); font: 400 var(--bx-text-sm)/1.4 var(--bx-font-sans); text-decoration: none; cursor: pointer; }
.foot .foot-legal a:hover, .foot .foot-legal button:hover { color: var(--bx-lime-500); text-decoration: underline; text-underline-offset: 0.25em; }
.foot .foot-legal [hidden] { display: none; }   /* the display rule above would otherwise override the hidden attribute */
/* The link columns auto-fit: the footer now has four groups (Product, Explore, Learn, Company) on the pages that have been updated and
   three on the newer pages that still carry the old block. auto-fit collapses an empty track, so both read as a full, even row.
   Below 48rem the fixed two-column grid above gives a 2 x 2 block for four groups. */
@media (min-width: 48rem) { .foot nav { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); } }
/* Brand and links sit side by side only from 72rem. Between 48rem and 72rem the brand line stacks above a full-width link row, so four columns fit
   without a stranded fourth group. The brand column is narrow (4fr) so the longest Spanish link ("Impresión desde el servidor") wraps to two lines at most. */
@media (min-width: 72rem) { .foot .wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--bx-space-16); } .foot-base { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Print (shared layer) ----------
   Goal: a page printed from the browser reads like a document. Chrome and Safari drop background colours unless asked to keep
   them, so anything that is white text on an ink or green fill is either forced to print its fill (small, deliberate objects)
   or restyled to dark on white (large code panels, in zpl.css). Navigation, footer links and the closing call to action are
   chrome that has no use on paper. */
@media print {
  @page { margin: 14mm; }
  html { scroll-behavior: auto; }
  body { background: var(--bx-white); font-size: 11pt; overflow: visible; }
  .skip, .nav, .cta, .foot nav, .foot-brand, .nav-toggle { display: none !important; }
  /* Footer keeps only its copyright line, as plain text. */
  .foot { background: none; color: var(--bx-ink); padding-block: var(--bx-space-4) 0; }
  .foot .wrap { display: block; }
  .foot-base { border-top: 1px solid var(--bx-gray-400); color: var(--bx-gray-700); }
  .foot-base a { color: var(--bx-ink); }
  .consent { display: none !important; }
  /* Sections keep their order but lose the screen-sized padding and surface bands. */
  .sec { padding-block: var(--bx-space-8); }
  .s-canvas, .s-white { background: none; }
  .s-white + .s-canvas, .s-canvas + .s-white { border-top: 0; }
  /* Fills that must survive printing because the text on them is white. */
  .btn-primary, .btn-ink, .badge-ink, .s-ink, .code, .mark::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .mark::before { animation: none; }
  /* Never split a heading from what follows it, or a small object across two pages. */
  h1, h2, h3, h4 { break-after: avoid; }
  .code, .lbl-wrap, .fam, .note, figure, tr { break-inside: avoid; }
}

/* ---------- Accent: a word on a lime fill with the 45-degree cut (home hero and every page header) ----------
   Fill only: ink text on lime is 13.4:1. Lime is never text or a line on a light surface. */
.h-line { display: block; }
/* "Exactly." sits on a lime fill with the brand's 45-degree cut in its top-right corner. Fill only: ink text on lime is 13.4:1. */
.mark { position: relative; display: inline-block; padding-inline: 0.1em; isolation: isolate; }
.mark::before { content: ""; position: absolute; inset: 0.1em -0.02em 0.01em; z-index: -1; background: var(--bx-lime-500); clip-path: polygon(0 0, calc(100% - 0.3em) 0, 100% 0.3em, 100% 100%, 0 100%); transform-origin: left center; animation: wipe 700ms var(--bx-ease) 450ms both; }
@keyframes wipe { from { transform: scaleX(0); } }

/* ---------- Facts strip: ruled row of short hard facts (home, barcodes, printing, API) ---------- */
/* ============================== FACTS ============================== */
.facts { padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.facts-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: var(--rule); }
/* Each item spans two rows of the strip and borrows them (subgrid), so figures and captions line up across a row even when
   one figure wraps to two lines ("10 element kinds" next to "Physical units"). */
.facts-row li { display: grid; grid-row: span 2; grid-template-rows: subgrid; gap: var(--bx-space-1); align-content: start; padding: var(--bx-space-5) var(--bx-space-4) var(--bx-space-5) 0; }
.facts-row li:nth-child(n+3) { border-top: var(--hair); }
.facts-row strong { font: 700 var(--bx-text-2xl)/1.1 var(--bx-font-display); letter-spacing: -0.025em; }
.facts-row span { font-size: var(--bx-text-sm); color: var(--bx-text-muted); max-width: 30ch; }
@media (min-width: 56rem) {
  /* One row of four: each caption sits right under its own figure; borrowed rows would open a hole under short figures. */
  .facts-row li { grid-row: auto; grid-template-rows: none; }
  .facts-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts-row li:nth-child(n+3) { border-top: 0; }
  .facts-row li + li { border-left: var(--hair); padding-left: var(--bx-space-6); }
}

/* ---------- Labelled call-out (moved here from inner.css so the home page can use it) ----------
   The label sits beside the text on wide screens and above it on phones, so the text keeps a readable measure. */
.note { display: flex; gap: var(--bx-space-3); align-items: flex-start; padding: var(--bx-space-4) var(--bx-space-5); background: var(--bx-green-50); border-left: 4px solid var(--bx-green-500); font-size: var(--bx-text-sm); color: var(--bx-gray-700); }
.note b { color: var(--bx-green-600); font-family: var(--bx-font-mono); font-weight: 600; white-space: nowrap; }
@media (max-width: 39.999rem) { .note { flex-direction: column; gap: var(--bx-space-1); } }

/* ---------- Small shared atoms ---------- */
.mini-h { font: 600 var(--bx-text-xs)/1.4 var(--bx-font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bx-gray-600); margin-top: var(--bx-space-2); }
.mono-tag { font: 600 var(--bx-text-xs)/1.4 var(--bx-font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bx-green-600); }
/* Product-illustration atoms shared by the registry browser and the editor illustration. */
.ed-h { display: flex; align-items: center; justify-content: space-between; gap: var(--bx-space-2); margin: 0 0 var(--bx-space-2); font: 600 0.6875rem/1.4 var(--bx-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--bx-gray-600); }
.ed-h .badge { font-size: 0.6875rem; letter-spacing: 0; text-transform: none; }
.fields { display: grid; gap: 2px; }
.ed-h2 { margin-top: var(--bx-space-5); }
.fields li { padding: 2px var(--bx-space-2); border-left: 2px solid var(--bx-green-400); font: 500 var(--bx-text-xs)/1.5 var(--bx-font-mono); color: var(--bx-gray-700); }

/* Three-up statement list (home editor teaser and the editor page). */
.ed-points { display: grid; gap: var(--bx-space-8); margin-top: var(--bx-space-12); }
.ed-points li { display: grid; gap: var(--bx-space-3); align-content: start; border-top: var(--rule); padding-top: var(--bx-space-5); }
.ed-points p { color: var(--bx-text-muted); }
@media (min-width: 56rem) { .ed-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--bx-space-10); } }

/* ---------- Spacing utilities (replace inline style attributes) ---------- */
.mt-4 { margin-top: var(--bx-space-4); }
.mt-5 { margin-top: var(--bx-space-5); }
.mt-6 { margin-top: var(--bx-space-6); }
.mt-10 { margin-top: var(--bx-space-10); }

/* ---------- Teaser links under a section (home, barcodes, printing) ---------- */
.teaser-link, .proof-link { margin-top: var(--bx-space-8); max-width: none; }

/* ---------- Symbology families: three ruled cards (home teaser and barcodes page) ----------
   Family 1 is solid and Stable at 1.0; families 2 and 3 are dashed, matching every "planned" treatment on the site. */
.fams { display: grid; gap: var(--bx-space-4); }
.fam { display: grid; gap: var(--bx-space-3); align-content: start; padding: var(--bx-space-5) var(--bx-space-6) var(--bx-space-6); background: var(--bx-surface); border: 1px solid var(--bx-border-strong); border-top: var(--rule); min-width: 0; }
.fam.fam-plan { border-style: dashed; border-color: var(--bx-gray-400); border-top-style: solid; border-top-color: var(--bx-gray-400); background: var(--bx-gray-50); }
.fam-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--bx-space-2) var(--bx-space-4); max-width: none; }
.fam .way-tag { font: 600 var(--bx-text-xs)/1.4 var(--bx-font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bx-green-600); }
.fam h3 { font-size: var(--bx-text-xl); }
.fam .chips { gap: var(--bx-space-2); }
.fam .chip { font-size: var(--bx-text-xs); min-height: 1.75rem; }
.fam + .cap, .fams + .cap { margin-top: var(--bx-space-4); }
@media (min-width: 56rem) { .fams { grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--bx-space-5); } }

/* ---------- CTA band: button plus an optional text link ---------- */
.cta-act { display: grid; gap: var(--bx-space-3); justify-items: start; }
.cta .link { color: var(--bx-white); }
.cta .link:hover { color: var(--bx-white); text-decoration: underline; }
@media (min-width: 64rem) { .cta-act { justify-items: end; } }

/* ==========================================================================================
   LEGAL PAGES: privacy, cookies and terms (/privacy, /cookies, /terms and their /es/ twins).
   Long-form reading text: one column, a 70ch line, hairline-ruled sections, a sticky contents list on wide screens.
   Appended at the end of the shared layer, so it does not change any rule above. Tokens only; light theme only.
   ========================================================================================== */
.legal { display: grid; min-width: 0; max-width: 46rem; }
.legal > section { padding-block: var(--bx-space-8); border-top: var(--hair); }
.legal > section:first-child { padding-top: var(--bx-space-5); border-top: var(--rule); }
.legal h2 { font-size: var(--bx-text-2xl); margin-bottom: var(--bx-space-4); }
.legal h3 { font-size: var(--bx-text-lg); margin-top: var(--bx-space-6); margin-bottom: var(--bx-space-2); }
.legal h3:first-child { margin-top: 0; }
.legal p, .legal li { max-width: 54ch; }
.legal :is(p, ul, dl, .note) + :is(p, ul, dl, .note) { margin-top: var(--bx-space-3); }
/* Bullets share the dash used by .mini-list, at body size. */
.legal ul { display: grid; gap: var(--bx-space-2); }
.legal li { position: relative; padding-left: var(--bx-space-5); }
.legal li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.5rem; height: 2px; background: var(--bx-ink); }
/* Email addresses and long words must wrap on a 360px screen instead of widening the page. */
.legal a { overflow-wrap: anywhere; }
.legal .spec dt { overflow-wrap: anywhere; }
@media (min-width: 48rem) { .legal .spec div { grid-template-columns: 15rem minmax(0, 1fr); } }
/* "Last updated" line under the page header. */
.legal-updated { max-width: none; font: 500 var(--bx-text-xs)/1.5 var(--bx-font-mono); letter-spacing: 0.04em; color: var(--bx-gray-600); }
/* Contents list: wide screens only (the headings are enough on a phone). The doubled class beats .split-side in inner.css. */
.legal-toc.split-side { display: none; }
.legal-toc .mini-h { margin-top: 0; }
@media (min-width: 64rem) { .legal-toc.split-side { display: grid; padding-top: var(--bx-space-5); border-top: var(--rule); } }
/* Cookie table: a real table on wide screens; on phones each row stacks into label/value pairs (every cell has a data-label
   with its column name). The caption is visually hidden (.vh); the section heading above it names the table for sighted users. */
.legal-table { width: 100%; margin-top: var(--bx-space-4); border-collapse: collapse; border-top: var(--rule); font-size: var(--bx-text-sm); }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: var(--bx-space-3) var(--bx-space-4) var(--bx-space-3) 0; border-bottom: var(--hair); }
.legal-table th { font: 600 var(--bx-text-xs)/1.5 var(--bx-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--bx-gray-600); }
.legal-table code { font-weight: 600; color: var(--bx-ink); white-space: nowrap; }   /* names such as _ga_<container-id> must not break mid-word */
.legal-table + p { margin-top: var(--bx-space-4); }
@media (max-width: 47.999rem) {
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; }
  .legal-table tr { padding-block: var(--bx-space-4); border-bottom: var(--hair); }
  .legal-table td { padding: var(--bx-space-1) 0; border: 0; }
  .legal-table td::before { content: attr(data-label); display: block; font: 600 var(--bx-text-xs)/1.5 var(--bx-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--bx-gray-600); }
  .legal-table td:first-child::before { display: none; }
}

/* ---------- Analytics notice (built by /assets/consent.js, only when analytics is configured) ----------
   Fixed to the bottom edge, so showing or hiding it never moves the page (no layout shift). z-index 35 sits under the sticky nav (40):
   an open mobile menu is drawn over the banner, and the banner never covers the menu button, which lives at the top. "OK" and "Turn off analytics"
   are the same .btn-outline button on purpose, so neither is favoured. Light theme only, like everything else. */
.consent { position: fixed; z-index: 35; left: var(--bx-gutter); right: var(--bx-gutter); bottom: var(--bx-gutter); display: grid; gap: var(--bx-space-4); padding: var(--bx-space-5); background: var(--bx-surface); color: var(--bx-text); border: var(--rule); border-radius: var(--bx-radius-md); box-shadow: var(--bx-shadow-lg); animation: consent-in var(--bx-duration) var(--bx-ease) both; }
.consent[hidden] { display: none; }
.consent-text { max-width: none; font-size: var(--bx-text-sm); line-height: var(--bx-leading-snug); }
.consent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bx-space-3); }
@media (min-width: 48rem) { .consent { right: auto; width: min(34rem, calc(100% - 2 * var(--bx-gutter))); } }
@keyframes consent-in { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: none; } }   /* reduced motion: the global rule above removes it */