/* ==========================================================================================
   BarcoderX website: barcodes page layer. Author: P4 Software.
   The symbology registry browser illustration and the notes under it.
   Tokens only: every colour, space, radius and type size comes from /brand/tokens.css through site.css.
   Light theme only. Mobile first. Breakpoints: 40rem (640), 48rem (768), 56rem (896), 64rem (1024).
   ========================================================================================== */

/* ============================== SYMBOLOGIES: registry browser ============================== */
.reg-fig { margin: 0; }
.reg-frame { filter: var(--paper-shadow); }
.reg { --cut: 24px; --cut-edge: var(--bx-gray-300); }
.reg .cut-in { background: var(--bx-surface); color: var(--bx-ink); }
.reg-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--bx-space-2) var(--bx-space-4); padding: var(--bx-space-3) calc(var(--cut) + var(--bx-space-4)) var(--bx-space-3) var(--bx-space-5); border-bottom: var(--hair); }
.reg-title { font: 650 var(--bx-text-md)/1.3 var(--bx-font-display); letter-spacing: -0.01em; }
.reg-ep { padding: 2px var(--bx-space-3); border-radius: var(--bx-radius-sm); background: var(--bx-gray-100); font: 500 var(--bx-text-xs)/1.6 var(--bx-font-mono); color: var(--bx-gray-700); overflow-wrap: anywhere; }
.reg-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bx-space-3); padding: var(--bx-space-3) var(--bx-space-5); background: var(--bx-gray-50); border-bottom: var(--hair); }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--bx-border-strong); border-radius: var(--bx-radius-md); overflow: hidden; background: var(--bx-surface); }
.seg b { padding: 6px var(--bx-space-3); border-right: var(--hair); font: 600 var(--bx-text-xs)/1.4 var(--bx-font-mono); color: var(--bx-gray-700); }
.seg b:last-child { border-right: 0; }
.seg b.on { background: var(--bx-ink); color: var(--bx-white); }
.search { flex: 1; min-width: 10rem; max-width: 18rem; padding: 6px var(--bx-space-3); border: 1px solid var(--bx-border-strong); border-radius: var(--bx-radius-md); background: var(--bx-surface); font-size: var(--bx-text-sm); color: var(--bx-gray-600); }
.reg-body { display: grid; }
.reg-list { max-height: 30rem; overflow: auto; }
.reg-list:focus-visible { outline-offset: -3px; }
.reg-list table { width: 100%; border-collapse: collapse; font-size: var(--bx-text-sm); }
.reg-list thead th { position: sticky; top: 0; z-index: 1; padding: var(--bx-space-2) var(--bx-space-4); background: var(--bx-surface); border-bottom: 2px solid var(--bx-ink); text-align: left; font: 600 var(--bx-text-xs)/1.4 var(--bx-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--bx-gray-600); }
.reg-list tbody tr:not(.grp) { border-bottom: var(--hair); }
.reg-list tbody th[scope="row"] { padding: var(--bx-space-3) var(--bx-space-4); text-align: left; font-weight: 600; }
.reg-list tbody th[scope="row"] code { margin-left: var(--bx-space-2); font-weight: 400; font-size: var(--bx-text-xs); color: var(--bx-gray-600); white-space: nowrap; }
.reg-list td { padding: var(--bx-space-3) var(--bx-space-4); color: var(--bx-gray-700); white-space: nowrap; }
.reg-list tr.sel { background: var(--bx-green-50); box-shadow: inset 3px 0 0 var(--bx-green-500); }
.reg-list .grp th { padding: var(--bx-space-2) var(--bx-space-4); background: var(--bx-gray-100); text-align: left; font: 600 var(--bx-text-xs)/1.5 var(--bx-font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--bx-gray-700); }
.grp span { color: var(--bx-green-600); margin-right: var(--bx-space-2); }
.grp em { margin-left: var(--bx-space-2); font-style: normal; text-transform: none; letter-spacing: 0; color: var(--bx-gray-600); }
.reg-detail { display: grid; gap: var(--bx-space-3); align-content: start; padding: var(--bx-space-5); background: var(--bx-gray-50); border-top: var(--hair); }
.rd-top { display: flex; align-items: center; justify-content: space-between; gap: var(--bx-space-3); max-width: none; }
.rd-top code { font-size: var(--bx-text-xs); color: var(--bx-gray-600); }
.rd-sym { height: 5.5rem; padding: var(--bx-space-3) var(--bx-space-4); background: var(--bx-white); border: 1px solid var(--bx-gray-300); color: var(--bx-ink); }
.rd-sym svg { width: 100%; height: 100%; }
.rd-cap { font: 500 var(--bx-text-xs)/1.4 var(--bx-font-mono); color: var(--bx-gray-600); }
.rd-facts { display: grid; gap: var(--bx-space-3); margin: var(--bx-space-2) 0 0; }
.rd-facts dt { font: 600 0.6875rem/1.4 var(--bx-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--bx-gray-600); }
.rd-facts dd { margin: 0; font-size: var(--bx-text-sm); color: var(--bx-ink); }
@media (min-width: 56rem) {
  .reg-body { grid-template-columns: minmax(0, 1fr) 19rem; }
  /* The detail panel sets the height of the browser; the list fills it and scrolls. Size containment keeps the list's own
     rows out of the height calculation, so no half row is left hanging above an empty strip at the bottom of the frame. */
  .reg-list { max-height: none; min-height: 24rem; contain: size; }
  .reg-detail { border-top: 0; border-left: var(--hair); }
}

/* Phones: put the id under the name and tighten the cells, so the three columns fit a 360px screen instead of scrolling. */
@media (max-width: 39.999rem) {
  .reg-list thead th, .reg-list tbody th[scope="row"], .reg-list td, .reg-list .grp th { padding-inline: var(--bx-space-3); }
  .reg-list tbody th[scope="row"] code { display: block; margin: 2px 0 0; }
  .reg-list td { font-size: var(--bx-text-xs); }
  .reg-list .badge { padding-inline: var(--bx-space-2); }
  /* "Después de 1.0" is the longest release label; let it break onto two lines inside a squarer pill. */
  .reg-list .badge-plan { max-width: 4.5rem; white-space: normal; text-align: center; line-height: 1.3; padding-block: 2px; border-radius: var(--bx-radius-md); }
}

.sym-notes { display: grid; gap: var(--bx-space-8); margin-top: var(--bx-space-12); }
.sym-notes > div { display: grid; gap: var(--bx-space-3); align-content: start; border-top: var(--hair); padding-top: var(--bx-space-5); }
.sym-notes h3 { font-size: var(--bx-text-lg); }
.sym-notes p { color: var(--bx-text-muted); font-size: var(--bx-text-sm); }
.sym-notes .mono-note { font: 500 var(--bx-text-sm)/1.5 var(--bx-font-mono); color: var(--bx-ink); }
@media (min-width: 56rem) { .sym-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--bx-space-10); } }

/* ---------- Four-up note grid (barcodes details) ---------- */
@media (min-width: 56rem) { .sym-notes.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bx-space-10) var(--bx-space-12); } }

/* ============================== WHICH SYMBOLOGY FOR WHICH LABEL ==============================
   A two-column table: the kind of label on the left, the symbology and the reason on the right. Every row restates something the GS1 guide or
   the ZPL guides on this site already say. Two columns keep it readable at 375px with no scrolling. */
.use { min-width: 0; }
.use-h { font-size: var(--bx-text-xl); margin-bottom: var(--bx-space-4); }
.use-table { width: 100%; border-collapse: collapse; border-top: var(--rule); font-size: var(--bx-text-sm); }
.use-table th, .use-table td { padding: var(--bx-space-4) var(--bx-space-4) var(--bx-space-4) 0; vertical-align: top; text-align: left; border-bottom: var(--hair); }
.use-table tbody th { width: 38%; font: 650 var(--bx-text-sm)/1.4 var(--bx-font-display); color: var(--bx-ink); }
.use-table td { color: var(--bx-text-muted); }
.use-table td b { color: var(--bx-ink); font-weight: 600; }
@media (min-width: 48rem) { .use-table { font-size: var(--bx-text-md); } .use-table tbody th { width: 30%; font-size: var(--bx-text-md); } }
