/* ==========================================================================
   docs.css — Docs page (v4, LOCK3), mirrors the reference /docs:
   mono label · one regular-weight title · two short paragraphs · four numbered
   cards with thin borders · a row of section links · then quiet sections.
   Builds on nett.css (.nt-doc, .nt-stepcards, .nt-code, .nt-faq). Prefix dc-.
   ========================================================================== */

/* ---- Head (the reference: 11px mono label, ~42px/400 title, 17px body) --------- */
/* The label and title sit in a head card with the page art on its right (nett.css .nt-art). */
.dc { padding-top: 0; }
.dc-head { --nt-art-text: 60%; }
.dc-head .nt-label { font-size: 12px; letter-spacing: 0.12em; color: #CFCFCF; }
.dc .dc-title { margin-top: 18px; font-size: clamp(30px, 3.1vw, 42px); line-height: 1.12; letter-spacing: -0.022em; font-weight: var(--nt-w-regular); }
.dc .dc-body { margin-top: 32px; font-size: 17px; line-height: 1.72; color: #D4D4D4; }
.dc .dc-body > * + * { margin-top: 12px; }

/* ---- Step cards: the reference numbered cards + one small data row each ------- */
.dc .dc-steps { margin-top: 34px; }
.dc-step { display: flex; flex-direction: column; padding: 40px 24px 28px; }
.dc-step .nt-stepcard__text { font-size: 16.5px; line-height: 1.75; }
.dc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 28px; }
.dc-tags > li { display: flex; min-width: 0; }
.dc-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 36px;
  padding: 0 14px 0 6px;
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-r-pill);
  background: var(--nt-surface);
  font-size: var(--nt-fs-ui);
  line-height: 1;
  font-weight: var(--nt-w-medium);
  color: var(--nt-text-strong);
  white-space: nowrap;
  text-decoration: none;
  --nt-coin-ring: var(--nt-surface);
}
.dc-tag > .nt-lg, .dc-tag > .nt-coin { --s: 24px; }
.dc-tag > .nt-avatar { --nt-av-size: 24px; }
.dc-tag__sym { margin-left: -3px; font-family: var(--nt-font-mono); font-size: var(--nt-fs-micro); font-weight: var(--nt-w-regular); color: var(--nt-muted); }
.dc-tag--plain { padding: 0 8px 0 6px; border-color: transparent; background: transparent; color: var(--nt-muted); font-weight: var(--nt-w-regular); }
.dc-tag--plain { gap: 5px; }
.dc-tag--plain .dc-num { color: var(--nt-text-strong); font-weight: var(--nt-w-medium); }
.dc-sep { padding: 0 3px; color: var(--nt-disabled); }
.dc-tag .nt-lg--nett .nt-mark { width: 50%; height: 50%; }
.dc-num { font-variant-numeric: tabular-nums; }
.dc-ok { width: 8px; height: 8px; border-radius: 50%; background: var(--nt-good); }
.dc-tag--flow { gap: 5px; padding-left: 6px; }
.dc-arr { font-size: 12px; line-height: 1; color: var(--nt-muted); }
.dc-flow__text { margin-left: 5px; }
.dc-flow__to { font-weight: var(--nt-w-regular); color: var(--nt-muted); }
/* Not live yet (USDC on Solana): the coin and label step back, a "Soon" tag follows. */
.dc-tag--soon { color: var(--nt-muted); font-weight: var(--nt-w-regular); }
.dc-tag--soon > .nt-coin { opacity: 0.5; filter: grayscale(0.6); }
.dc-tag--soon > .nt-tag { margin-left: 2px; }

/* ---- On this page: one quiet row of section links ------------------------- */
.dc-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.dc-toc > a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-r-pill);
  font-size: var(--nt-fs-small);
  line-height: 1;
  color: var(--nt-text-2);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--nt-d-hover) var(--nt-ease), color var(--nt-d-hover) var(--nt-ease), background-color var(--nt-d-hover) var(--nt-ease);
}
.dc-toc > a:hover { border-color: var(--nt-border-strong); background: var(--nt-surface); color: var(--nt-text-strong); }

/* ---- Lower block: one calm column, aligned with the step cards ---------- */
.dc-more { margin-top: 72px; }
@media (max-width: 1023px) { .dc-more { margin-top: 64px; } }
.dc-sec { scroll-margin-top: 24px; }

.dc-sec + .dc-sec { margin-top: 72px; }
.dc-h { font-size: 24px; line-height: 1.3; letter-spacing: -0.01em; font-weight: var(--nt-w-medium); color: var(--nt-text-strong); }
.dc-h3 { margin-top: 36px; font-size: 18px; line-height: 1.35; font-weight: var(--nt-w-bold); color: var(--nt-text-strong); }
.dc-p { margin-top: 10px; font-size: 16.5px; line-height: 1.7; color: #D4D4D4; text-wrap: pretty; }
.dc-p code, .dc-rows code, .dc-fine code { font-size: 0.86em; color: var(--nt-text-strong); }
.dc-fine { margin-top: 14px; font-size: var(--nt-fs-small); line-height: 1.6; color: var(--nt-muted); text-wrap: pretty; }
.dc-cta { margin-top: 24px; }
.dc-sub { margin-left: 6px; font-weight: var(--nt-w-regular); color: var(--nt-muted); }
.dc-h3 > .nt-tag { margin-left: 8px; vertical-align: 2px; }

/* A thin-bordered card, like the reference docs cards. */
.dc-card { margin-top: 20px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--nt-r-row); background: var(--nt-canvas); }
.dc-h3 + .dc-card { margin-top: 14px; }

/* Key/value rows (launch preview: label left, value right, hairlines). */
.dc-rows { margin: 0; }
.dc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding: 13px 24px; border-bottom: 1px solid var(--nt-border); }
.dc-row:last-child { border-bottom: 0; }
.dc-row > dt { flex: none; font-size: 15px; line-height: 1.5; color: #B5B5B5; }
.dc-row > dd { min-width: 0; margin: 0; font-size: 15px; line-height: 1.5; font-weight: var(--nt-w-medium); color: var(--nt-text-strong); text-align: right; text-wrap: pretty; }
/* "What if": the answer is a sentence, so both columns start left. */
.dc-rows--if .dc-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding-block: 16px; }
.dc-rows--if .dc-row > dt { color: var(--nt-text-strong); font-weight: var(--nt-w-medium); }
.dc-rows--if .dc-row > dd { text-align: left; font-weight: var(--nt-w-regular); color: #B5B5B5; }

/* ---- Contract: address row + calls ------------------------------------- */
.dc-addr { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 12px; }
.dc-addr > b { font-weight: var(--nt-w-medium); }
.dc-addr > .dc-sub { margin-left: 0; }
.dc-addr__link { font-family: var(--nt-font-mono); font-size: 14px; font-weight: var(--nt-w-regular); }
.dc-addr__link > .nt-arrow { margin-left: 4px; }
.dc-code { margin-top: 12px; }
.dc-code .nt-code__bar { padding: 8px 12px; }

/* ---- FAQ (nett.faqs markup) ---------------------------------------------- */
.dc-faq { margin-top: 12px; }
.dc-faq .nt-faq { border-top: 0; }
.dc-faq .nt-faq__q { font-size: 16.5px; font-weight: var(--nt-w-regular); min-height: 64px; }
.dc-faq .nt-faq__a { max-width: 64ch; font-size: 15.5px; color: #B5B5B5; }
.dc-faq .nt-faq__group { margin-top: 36px; }
.dc-faq .nt-faq__group:first-child { margin-top: 8px; }
.dc-faq__more { margin-top: 24px; }
.dc-faq__more:has(> [hidden]) { display: none; }
/* docs.js fills the FAQ after first paint: hold the short list's height (6 rows x 65px) plus the
   "All questions" row (24 + 36px), so a docs.html#faq landing does not shift Legal and the footer. */
@media (scripting: enabled) { .dc-faq:empty { min-height: 450px; } }

/* ---- Legal (claim notice: bold lead, muted text) ---------------- */
.dc-notes { background: var(--nt-surface); border-color: var(--nt-border); }
.dc-note { padding: 18px 24px; font-size: 15px; line-height: 1.65; color: var(--nt-muted); border-bottom: 1px solid var(--nt-border); text-wrap: pretty; }
.dc-note:last-child { border-bottom: 0; }
.dc-note > b { color: var(--nt-text-strong); font-weight: var(--nt-w-bold); }

/* ---- Phones ------------------------------------------------------------ */
@media (max-width: 767px) {
  .dc { padding-top: 0; }
  .dc .dc-title { margin-top: 12px; font-size: 28px; line-height: 1.15; }
  .dc .dc-body { margin-top: 20px; font-size: 16px; line-height: 1.7; }
  .dc .dc-steps { margin-top: 28px; gap: 12px; }
  .dc-step { padding: 28px 20px 22px; }
  .dc-step .nt-stepcard__text { font-size: 16px; }
  .dc-tags { gap: 6px; padding-top: 22px; }
  .dc-tag { height: 32px; gap: 7px; padding-right: 12px; font-size: 13px; }
  .dc-tag > .nt-lg, .dc-tag > .nt-coin { --s: 20px; }
  .dc-tag > .nt-avatar { --nt-av-size: 20px; }
  .dc-tag--flow { gap: 4px; }
  .dc-tag--plain { gap: 4px; }
  .dc-more { margin-top: 56px; }
  .dc-sec + .dc-sec { margin-top: 56px; }
  .dc-h { font-size: 22px; }
  .dc-p { font-size: 16px; }
  .dc-row { flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 18px; }
  .dc-row > dt { font-size: 13px; color: var(--nt-muted); }
  .dc-row > dd { text-align: left; }
  .dc-rows--if .dc-row { display: flex; }
  .dc-rows--if .dc-row > dt { font-size: 15px; color: var(--nt-text-strong); }
  .dc-toc { gap: 6px; margin-top: 40px; }
  .dc-toc > a { height: 32px; padding: 0 12px; font-size: 13px; }
  .dc-addr { justify-content: flex-start; }
  .dc-sub { margin-left: 4px; }
  .dc-note { padding: 16px 18px; }
  .dc-faq .nt-faq__q { font-size: 16px; }
  .dc-faq .nt-faq__a { padding-right: 8px; }
}
@media (max-width: 380px) {
  .dc .dc-title { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .dc-toc > a { transition: none; }
}

/* ---- API (docs.html#api) and api-docs.html --------------------------------- */
.dc-ctas { display: flex; flex-wrap: wrap; gap: 8px; }
/* Field names and status codes in the left column read as code. */
.dc-rows--if .dc-row > dt > code { font-size: 0.9em; font-weight: var(--nt-w-medium); }
.dc-rows dd code { overflow-wrap: anywhere; }
/* A code card right under a paragraph or a card. */
.dc-card + .dc-code, .dc-code + .dc-card { margin-top: 16px; }
.dc-code + .dc-fine { margin-top: 12px; }
.dc-fine a { color: var(--nt-text-2); text-underline-offset: 3px; }
.dc-fine a:hover { color: var(--nt-text-strong); }
