/* ==========================================================================================
   BarcoderX website: developers page layer. Author: P4 Software.
   Sample panels, package layers and the in-house engine note.
   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).
   ========================================================================================== */

/* ============================== HERO WITH CODE ==============================
   A developer opens this page for code, so the two samples sit in the hero instead of below a lede and a button. From 64rem the title and the
   lede share one row (title left, lede, status and buttons right) so both samples start well inside the first 800px at 1280. */
.dev-hero { padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.dev-head { display: grid; gap: var(--bx-space-6); }
.dev-hero .p-hero-copy { gap: var(--bx-space-4); }
.dev-hero h1 { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.25rem); max-width: 16ch; }
.dev-hero .dev-code { margin-top: var(--bx-space-8); }
.dev-hero .cap { margin-top: var(--bx-space-4); }
@media (min-width: 64rem) { .dev-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--bx-space-12); align-items: center; } }

/* One-line code under a quick-start step: the call named in the step, in the same illustrative spirit as the samples above. */
.steps .snip { display: block; grid-column: 2; margin-top: var(--bx-space-1); font: 500 var(--bx-text-xs)/1.6 var(--bx-font-mono); color: var(--bx-gray-700); overflow-wrap: anywhere; }

/* ============================== DEVELOPERS ============================== */
.dev-code { display: grid; gap: var(--bx-space-6); }
/* Both panels stretch to the taller one so the pair reads as one object. */
.dev-code .code > .cut, .dev-code .code > .cut > .cut-in { height: 100%; }
.dev-code .code pre { min-height: 15rem; }
.own { display: grid; gap: var(--bx-space-5); margin-top: var(--bx-space-12); padding: var(--bx-space-6); background: var(--bx-surface); border: var(--hair); border-top: var(--rule); }
.own h3 { margin-bottom: var(--bx-space-3); }
.own p { color: var(--bx-text-muted); }
.own .own-note { align-self: start; padding: var(--bx-space-3) var(--bx-space-4); background: var(--bx-green-50); color: var(--bx-green-600); font: 600 var(--bx-text-sm)/1.45 var(--bx-font-mono); border-left: 4px solid var(--bx-green-500); }
@media (min-width: 48rem) { .own { gap: var(--bx-space-8); } }
@media (min-width: 64rem) {
  .dev-code { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .own { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--bx-space-12); padding: var(--bx-space-8); align-items: center; }
}

/* In-house engine note: heading is a real h2 now, so it gets its own scale inside the card. */
.own .kicker { margin-bottom: var(--bx-space-3); }
.own h2 { font-size: var(--bx-text-2xl); margin-bottom: var(--bx-space-3); }

/* Package layers: three stacked bands, the foundation at the bottom, mirroring the dependency direction. */
.layers-stack { display: grid; gap: var(--bx-space-2); counter-reset: ly; }
.layer { display: grid; gap: var(--bx-space-3); padding: var(--bx-space-4) var(--bx-space-5); background: var(--bx-surface); border: 1px solid var(--bx-border-strong); min-width: 0; }
.layer:last-child { border-bottom: var(--rule); }
.layer-h { font: 600 var(--bx-text-xs)/1.4 var(--bx-font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bx-green-600); max-width: none; }
.layer .chip { font-size: var(--bx-text-xs); }
.layers-stack + .note { margin-top: var(--bx-space-4); }
