/* NIGHT3 (owner 2026-11-27): /docs on phones - a wide table, a long code line or a long name scrolls inside its own box,
   so the page itself never scrolls sideways. Presentation only: the documentation's text, addresses and diagrams are
   unchanged (frontend/docs/index.html = the owner's file). */
@media (max-width: 700px) {
  #content table { display: block; max-width: 100%; overflow-x: auto; }
  #content pre { max-width: 100%; overflow-x: auto; }
  #content :not(pre) > code { overflow-wrap: anywhere; word-break: break-word; }
}

/* AWAY4 S1a (1.5, owner 2026-11-28) ONE LOGO IN EVERY HEADER: the docs headers (the sidebar brand on wide screens, the top bar
   on phones) show the site header's logo at its size - the same mark (inline, no request) 30 px and "LNT.FUN" 14 px (13 px at
   480 px and narrower), ".FUN" in the muted ink; the "Developer Docs" line under it is 12 px. Presentation only: the page's
   text is unchanged (frontend/docs/index.html = the owner's file). */
.brand { gap: 9px; }
.brand .logo { width: 30px; height: 30px; border-radius: 0; box-shadow: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Crect width='200' height='200' rx='44' fill='%23F2EFE6'/%3E%3Cg transform='translate%28-5 -2%29' fill='%230B0C10'%3E%3Cpath d='M54 40 H90 V128 H150 V164 H54 Z'/%3E%3Crect x='127' y='56' width='14' height='44' rx='3'/%3E%3Crect x='112' y='71' width='44' height='14' rx='3'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat !important; }
.brand .wordmark, .topbar .wordmark { font-family: 'Unbounded', 'Space Grotesk', system-ui, sans-serif; font-size: 14px !important; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.brand .wordmark b, .topbar .wordmark b { color: #9AA0AE; }
.brand .wordmark small, .topbar .wordmark small { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 12px; letter-spacing: .08em; }
.topbar .wordmark { display: inline-flex; align-items: center; gap: 0; }
.topbar .wordmark::before { content: ""; flex: 0 0 auto; width: 30px; height: 30px; margin-right: 9px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Crect width='200' height='200' rx='44' fill='%23F2EFE6'/%3E%3Cg transform='translate%28-5 -2%29' fill='%230B0C10'%3E%3Cpath d='M54 40 H90 V128 H150 V164 H54 Z'/%3E%3Crect x='127' y='56' width='14' height='44' rx='3'/%3E%3Crect x='112' y='71' width='44' height='14' rx='3'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 480px) {
  .topbar .wordmark { font-size: 13px !important; }
  .topbar .wordmark::before { margin-right: 6px; }
}

/* AWAY4 S1a: no text under 12 px on /docs (site rule): the sidebar group and sub-group labels, the page pill, the code
   language tag, the "On this page" heading and the previous / next labels were 10-11 px. Size only, wording unchanged. */
.group > .ghead, .subhdr, .crumb .pill, .toc .tochdr, .pagenav a .lbl { font-size: 12px; }
.content pre::before { font-size: 12px; }
.content table :not(pre) > code { font-size: max(12px, .86em); }

/* AWAY4 S1e (item 1.6): /docs diagrams. Each diagram is a drawing with 16-unit labels scaled to the column width, so its labels
   were drawn ~9 px at 1440 px and ~4 px on a phone, and the box labels were cut ("1B supply mintec", "Graduatior") because the
   page font is wider than the font the boxes were measured with. Now: the labels use the measured font and are never cut,
   and every diagram is at least 3/4 of its own size (labels >= 12 px); a wider diagram scrolls sideways inside its card
   (the card already scrolls; the page never does). Presentation only: frontend/docs/index.html is unchanged. */
.mermaid-card svg { max-height: none; }
.mermaid-card svg foreignObject { overflow: visible; }
.mermaid-card svg foreignObject div, .mermaid-card svg foreignObject span, .mermaid-card svg foreignObject p { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important; }
.mermaid-card svg#d1 { min-width: 957px; } .mermaid-card svg#d2 { min-width: 1207px; } .mermaid-card svg#d3 { min-width: 935px; } .mermaid-card svg#d4 { min-width: 521px; } .mermaid-card svg#d5 { min-width: 210px; } .mermaid-card svg#d6 { min-width: 661px; } .mermaid-card svg#d7 { min-width: 852px; } .mermaid-card svg#d8 { min-width: 871px; } .mermaid-card svg#d9 { min-width: 1429px; } .mermaid-card svg#d10 { min-width: 952px; } .mermaid-card svg#d11 { min-width: 921px; } .mermaid-card svg#d12 { min-width: 274px; } .mermaid-card svg#d13 { min-width: 636px; } .mermaid-card svg#d14 { min-width: 561px; } .mermaid-card svg#d15 { min-width: 869px; } .mermaid-card svg#d16 { min-width: 1147px; } .mermaid-card svg#d17 { min-width: 1175px; } .mermaid-card svg#d18 { min-width: 579px; } .mermaid-card svg#d19 { min-width: 530px; }

/* APPLY2 step 4 (owner 2026-11-28): ONE page width - on wide screens the documentation sits inside the shared page frame
   (content up to 1536 px, 32 px gutters), so its logo (22 px inside the sidebar) is exactly where every other page's logo
   is. The text column keeps its width (max 920 px). Phones (860 px and below) are unchanged: the top bar's 16 px gutter
   already matches. */
@media (min-width: 861px) {
  .shell { width: calc(min(1536px, 100% - 64px) + 44px); margin-left: auto; margin-right: auto; }
}
