/* ==========================================================================
   Developer & embed pages — /developers, /embed (+ badge previews).
   Loaded via PageMeta.styles = ['dev']; site.css tokens are available.
   Mono here is sanctioned: these blocks are code, not prose.
   ========================================================================== */

/* ---- code boxes ---- */
.codeblock {
  display: block;
  font-family: var(--font-num);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin: 0 0 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: pre;
  tab-size: 2;
}

.dev-code {
  font-family: var(--font-num);
  font-size: 0.86em;
  color: var(--accent-deep);
  background: var(--accent-wash);
  border-radius: 6px;
  padding: 1px 6px;
  white-space: nowrap;
}

/* ---- audience grid (/developers) ---- */
.dev-audience {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.dev-audience > div {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.dev-audience .t {
  display: block;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ---- endpoint table ---- */
.dev-endpoints td:first-child { white-space: nowrap; }
.dev-endpoints td:nth-child(2) {
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---- tier table ---- */
.dev-tiers .tier-name { font-weight: 700; color: var(--ink); white-space: nowrap; }
.dev-tiers td { font-size: 0.95rem; }
.dev-tiers td:nth-child(2) { white-space: nowrap; }

/* ---- badge previews (/embed) ---- */
/* A faint checker shows the badge is an image sitting on the host page. */
.badge-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-md);
  background-color: #fff;
  background-image:
    linear-gradient(45deg, rgba(20, 51, 61, 0.045) 25%, transparent 25%, transparent 75%, rgba(20, 51, 61, 0.045) 75%),
    linear-gradient(45deg, rgba(20, 51, 61, 0.045) 25%, transparent 25%, transparent 75%, rgba(20, 51, 61, 0.045) 75%);
  background-size: 22px 22px;
  background-position: 0 0, 11px 11px;
}
.badge-preview figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.badge-preview img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px -14px rgba(20, 51, 61, 0.35);
}
.badge-preview figcaption {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .codeblock { font-size: 0.8rem; padding: 14px; }
  .badge-preview { gap: 20px; padding: 16px; }
}
