/* ==========================================================================================
   BarcoderX website: API page layer. Author: P4 Software.
   Endpoint table and the multi-tenant isolation illustration.
   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).
   ========================================================================================== */

/* ============================== API TABLE ============================== */
.ep { width: 100%; border-collapse: collapse; font-size: var(--bx-text-sm); }
.ep thead { display: none; }
.ep tr { display: grid; gap: var(--bx-space-1); padding-block: var(--bx-space-4); border-bottom: var(--hair); }
.ep tbody tr:first-child { border-top: var(--rule); }
.ep td { display: block; padding: 0; color: var(--bx-text-muted); }
.ep td:first-child { font: 600 var(--bx-text-md)/1.3 var(--bx-font-display); color: var(--bx-ink); letter-spacing: -0.01em; }
.ep code { display: block; font-size: var(--bx-text-xs); line-height: 1.8; color: var(--bx-ink); overflow-wrap: anywhere; }
.ep .scope { font: 500 var(--bx-text-xs)/1.4 var(--bx-font-mono); color: var(--bx-gray-600); }
@media (min-width: 48rem) {
  .ep thead { display: table-header-group; }
  .ep th { text-align: left; padding: 0 var(--bx-space-4) var(--bx-space-2) 0; font: 600 var(--bx-text-xs)/1.4 var(--bx-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--bx-gray-600); }
  .ep tr { display: table-row; }
  .ep td { display: table-cell; padding: var(--bx-space-4) var(--bx-space-4) var(--bx-space-4) 0; border-bottom: var(--hair); vertical-align: top; }
  .ep tbody tr:first-child td { border-top: var(--rule); }
  .ep td:first-child { width: 9.5rem; }
  .ep td:last-child { width: 9rem; }
}

/* ============================== TENANCY ============================== */
.ten { display: grid; gap: var(--bx-space-10); }
.iso { --cut: 22px; --cut-edge: var(--bx-gray-300); margin: 0; align-self: start; }
.iso .cut-in { padding: var(--bx-space-5); }
.iso-h { font: 500 var(--bx-text-sm)/1.4 var(--bx-font-mono); padding-right: var(--cut); }
.iso-h b { color: var(--bx-green-600); }
.iso table { width: 100%; border-collapse: collapse; margin-top: var(--bx-space-4); font-size: var(--bx-text-sm); }
.iso th { text-align: left; padding: var(--bx-space-2); border-bottom: 2px solid var(--bx-ink); font: 600 var(--bx-text-xs)/1.4 var(--bx-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--bx-gray-600); }
.iso td { padding: var(--bx-space-3) var(--bx-space-2); border-bottom: var(--hair); }
.iso td.ok { color: var(--bx-green-600); font-weight: 600; }
.iso tr.hid td { color: var(--bx-gray-600); background: repeating-linear-gradient(135deg, var(--bx-gray-100) 0 6px, transparent 6px 12px); }
.tn { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 2px; font: 700 var(--bx-text-xs)/1 var(--bx-font-mono); color: var(--bx-white); }
.tn-a { background: var(--bx-green-500); } .tn-b { background: var(--bx-ink); }
.iso figcaption { margin-top: var(--bx-space-4); font: 500 var(--bx-text-xs)/1.5 var(--bx-font-mono); color: var(--bx-gray-600); }
.controls { border-top: var(--rule); }
.controls li { display: grid; gap: var(--bx-space-2); padding-block: var(--bx-space-5); border-bottom: var(--hair); }
.controls h3 { font-size: var(--bx-text-lg); }
.controls p { color: var(--bx-text-muted); font-size: var(--bx-text-sm); max-width: 60ch; }
.soc { --cut: 18px; --cut-edge: var(--bx-green-200); --cut-fill: var(--bx-green-50); margin-top: var(--bx-space-12); }
.soc .cut-in { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bx-space-3) var(--bx-space-5); padding: var(--bx-space-5) calc(var(--cut) + var(--bx-space-4)) var(--bx-space-5) var(--bx-space-6); }
.soc p { color: var(--bx-gray-700); max-width: 54ch; }
@media (min-width: 64rem) {
  .ten { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--bx-space-16); }
  .iso { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ============================== ONE REQUEST, ANNOTATED ==============================
   The render request and the error response from the developers page, with a small numbered marker at the end of each annotated line and a
   numbered list below that explains every marker. The markers are decorative (aria-hidden): the list names each token itself, so the
   mapping does not depend on seeing the numbers. */
.annot .code { margin-top: var(--bx-space-5); }
.annot .mk { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; margin-left: var(--bx-space-2); border-radius: var(--bx-radius-pill); background: var(--bx-lime-500); color: var(--bx-ink); font: 700 0.6875rem/1 var(--bx-font-mono); vertical-align: 1px; user-select: none; }
.annot-list { counter-reset: an; display: grid; margin-top: var(--bx-space-5); border-top: var(--rule); }
.annot-list li { counter-increment: an; display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: var(--bx-space-1) var(--bx-space-3); padding-block: var(--bx-space-3); border-bottom: var(--hair); }
.annot-list li::before { content: counter(an); grid-row: span 2; align-self: start; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; border-radius: var(--bx-radius-pill); background: var(--bx-lime-500); color: var(--bx-ink); font: 700 0.6875rem/1 var(--bx-font-mono); }
.annot-list code { font-weight: 600; font-size: var(--bx-text-sm); color: var(--bx-ink); overflow-wrap: anywhere; }
.annot-list span { font-size: var(--bx-text-sm); color: var(--bx-text-muted); }
