/* Boxfort marketing site. "Cardboard, not chrome": kraft, tape and stamps around clean,
   readable text. Same palette as the splash page (apps/edge/src/splash.ts). */
:root {
  color-scheme: light;
  --kraft: #c69c6d;
  --kraft-dark: #a97e50;
  --kraft-light: #e6d2b5;
  --paper: #fffdf7;
  --paper-warm: #f7efe1;
  --ink: #2b2118;
  --ink-soft: #5c4a3a;
  --line: #d9ccb8;
  --stamp: #b8432f;
  --ok: #2f6f4f;
  --tape: rgba(239, 226, 196, 0.85);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--ink); background: var(--paper-warm); }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
code, .mono { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; border-radius: 4px; }

.wrap { --gutter: 24px; max-width: 1120px; margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; padding-top: env(safe-area-inset-top); background: rgba(255,253,247,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.logo svg { width: 30px; height: 30px; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--ink-soft); }
.nav nav a:hover { color: var(--ink); }
.nav nav a.signin { color: var(--ink); font-weight: 600; border: 1.5px solid var(--ink); border-radius: 8px; padding: 6px 14px; }

/* Buttons */
.btn { display: inline-block; font: 600 16px/1.2 var(--sans); padding: 14px 22px; border-radius: 8px; text-decoration: none; text-align: center; }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.btn-primary:hover { background: #3d2f22; }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); background: rgba(255,253,247,.5); }
.btn-ghost:hover { background: var(--paper); }

/* Hero. Two variants share these rules (heroes/a.html, heroes/b.html); the build picks one.
   Text never sits straight on the kraft texture: it goes on paper, where it reads easily. */
/* Kraft texture: faint crossing lines, like corrugated card. */
.hero-label, .safety-band, .crate { background-color: var(--kraft); background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(0,0,0,.035) 0 1px, transparent 1px 5px), radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.2), transparent 60%); }
.eyebrow { display: inline-block; font: 700 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--stamp); border: 2px solid var(--stamp); border-radius: 4px; padding: 6px 10px; transform: rotate(-2deg); margin-bottom: 18px; background: var(--paper); }
.hero h1 { font-size: clamp(36px, 4.8vw, 56px); font-weight: 800; letter-spacing: -.025em; max-width: 13em; }
.lede { font-size: 19px; margin-top: 14px; max-width: 34em; color: var(--ink-soft); }
.hero-copy { min-width: 0; }
.setup-title { font-size: 20px; letter-spacing: -.01em; margin: 0 0 12px; max-width: none; }
.connector-url { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #f3e9d8 !important; border-radius: 8px; padding: 13px 16px; font-size: 16px; font-weight: 600; }
.connector-addr { flex: 1; min-width: 0; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.copy-btn { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: -6px -6px -6px 0; padding: 0; color: #f3e9d8; background: transparent; border: 0; border-radius: 6px; cursor: pointer; }
.copy-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copy-btn:hover { background: rgba(243, 233, 216, 0.14); }
.copy-btn:focus-visible { outline: 2px solid #f3e9d8; outline-offset: 0; }
.copy-btn .copied-icon, .copy-btn.is-copied .copy-icon { display: none; }
.copy-btn.is-copied .copied-icon { display: block; }
.copy-btn.is-copied { color: #8fd3ad; }
.copy-btn[hidden] { display: none; }
.copy-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.setup-note { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.setup-note strong { color: var(--ink); font-weight: 600; }
.setup-note a, .upload-copy a { color: var(--ink); font-weight: 600; text-underline-offset: 2px; white-space: nowrap; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 90%; padding: 11px 15px; border-radius: 16px; font-size: 16px; line-height: 1.45; }
.bubble-you { align-self: flex-end; background: var(--kraft-light); color: var(--ink); border-bottom-right-radius: 4px; font-weight: 600; }
.bubble-claude { align-self: flex-start; background: var(--paper-warm); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.link-chip { font-size: 14px; color: var(--ok); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.label-k { display: block; font: 700 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--stamp); margin-bottom: 10px; }
.alt-path { font-size: 15px; color: var(--ink-soft); }
.alt-path a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.alt-path a::after { content: " \2192"; }

/* Hero A: one shipping label taped to the box. The steps are the label's fields. */
.hero-label { padding: 56px 0 72px; }
.label { position: relative; background: var(--paper); border-radius: 6px; padding: 44px 48px 0; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 22px 48px rgba(60,35,10,.28); }
.label > .tape { top: -12px; width: 130px; height: 32px; }
.label > .tape-l { left: -30px; transform: rotate(-30deg); }
.label > .tape-r { right: -30px; transform: rotate(30deg); }
.label-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 28px; border-bottom: 3px solid var(--ink); }
.label-head .barcode { flex: none; width: 120px; height: 40px; margin-top: 6px; }
.label-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.label-step { min-width: 0; padding: 24px 0 28px; }
.label-step:first-child { padding-right: 32px; }
.label-step + .label-step { border-left: 1px dashed var(--line); padding-left: 32px; }
.label-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding: 16px 0 20px; font-size: 14px; color: var(--ink-soft); }
.label-foot > p:first-child { flex: 1 1 28em; }
.label-foot .alt-path { font-size: 14px; }

/* Hero B: paper page; the kraft is a taped box holding the example chat. */
.hero-paper { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-paper .hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero-paper h1 em { font-style: normal; background: linear-gradient(transparent 58%, var(--kraft-light) 58%); }
.quick-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.quick-steps li { position: relative; padding-left: 46px; min-width: 0; }
.quick-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -3px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font: 800 15px/1 var(--sans); }
.quick-steps .setup-title { font-size: 18px; margin-bottom: 10px; }
.say { font-size: .85em; font-weight: 600; background: var(--paper-warm); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.hero-fine { margin-top: 22px; font-size: 14px; color: var(--ink-soft); }
.hero-paper .alt-path { margin-top: 6px; font-size: 14px; }
.crate { position: relative; aspect-ratio: 1.05; max-width: 100%; border-radius: 6px; box-shadow: 0 26px 50px rgba(60,35,10,.25); display: flex; align-items: center; justify-content: center; padding: 40px; }
.crate-flap { position: absolute; left: 0; right: 0; top: 0; height: 22%; border-bottom: 2px solid rgba(43,33,24,.2); }
.crate-tape { position: absolute; left: 0; right: 0; top: 46%; height: 54px; background: var(--tape); }
.slip { position: relative; width: 100%; max-width: 360px; background: var(--paper); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 24px rgba(60,35,10,.22); transform: rotate(-2deg); }
.slip .label-k { color: var(--ink-soft); border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 4px; }

/* The parcel label (mirrors the real splash page) */
.parcel { position: relative; margin: 0; background: var(--paper); border-radius: 6px; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 18px 40px rgba(60,35,10,.28); transform: rotate(1.5deg); max-width: 440px; justify-self: center; width: 100%; }
.tape { position: absolute; top: -14px; width: 104px; height: 32px; background: var(--tape); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tape-l { left: -26px; transform: rotate(-36deg); }
.tape-r { right: -26px; transform: rotate(36deg); }
.parcel-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 14px; border-bottom: 3px solid var(--ink); }
.parcel-head .mono { font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.barcode { width: 108px; height: 28px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); }
.parcel-row { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 22px; border-bottom: 1px dashed var(--line); }
.k { font: 700 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.from { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 19px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ok); background: #e7f2ea; border-radius: 999px; padding: 2px 8px 2px 4px; }
.badge svg { width: 14px; height: 14px; }
.contents { font-size: 24px; }
.desc { color: var(--ink-soft); }
.addr { font-size: 14px; overflow-wrap: anywhere; }
.stamp { position: absolute; right: 18px; top: 8px; width: 78px; height: 78px; border: 3px double var(--stamp); border-radius: 50%; color: var(--stamp); display: flex; align-items: center; justify-content: center; text-align: center; font: 800 10px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; transform: rotate(14deg); opacity: .72; }
.parcel-btn { margin: 16px 22px 22px; background: var(--ink); color: var(--paper); border-radius: 8px; padding: 13px; text-align: center; font-weight: 600; }

/* Sections */
.band { padding: 96px 0; }
.band-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; max-width: 22em; }
.section-lede { font-size: 19px; color: var(--ink-soft); margin-top: 14px; max-width: 40em; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 28px; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); }

.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; margin-top: 44px; }
.how .steps-stack { grid-template-columns: 1fr; margin: 0; gap: 14px; }
.steps-stack .card { padding: 22px 26px; }
.steps-stack .step-no { margin-bottom: 10px; }
.step-no { display: inline-block; font: 700 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--paper); background: var(--kraft-dark); padding: 6px 9px; border-radius: 3px; margin-bottom: 16px; }

.sdk { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 64px; }
.sdk > * { min-width: 0; }
.sdk h3 { font-size: 24px; margin-bottom: 12px; }
.sdk-copy p { color: var(--ink-soft); }
.sdk-copy p + p { margin-top: 12px; }
.sdk code { font-size: .9em; }
.sdk-copy code { background: var(--kraft-light); padding: 1px 6px; border-radius: 4px; color: var(--ink); }
.code { margin: 0; background: var(--ink); color: #f3e9d8; border-radius: 10px; padding: 24px 26px; font: 15px/1.65 var(--mono); overflow-x: auto; box-shadow: 0 14px 30px rgba(43,33,24,.18); }
.code .c { color: #a8977f; }
.code .s { color: #f0b77a; }

/* Safety */
.safety-band { padding: 104px 0; color: var(--ink); }
/* The heading sits on a paper sheet, like the hero label, so it doesn't sit on the texture. */
.safety-head { position: relative; background: var(--paper); border-radius: 6px; padding: 36px 40px; max-width: 760px; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 14px 32px rgba(60,35,10,.2); }
.safety-head h2 { max-width: 18em; }
.safety-head .section-lede { margin-top: 12px; }
.claims { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.claim { grid-column: span 2; position: relative; background: var(--paper); border-radius: 8px; padding: 28px 26px 26px; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 10px 24px rgba(60,35,10,.16); }
.claim:nth-child(4) { grid-column: 2 / span 2; }
.claim::before { content: ""; position: absolute; top: -11px; left: 50%; width: 84px; height: 22px; margin-left: -42px; background: var(--tape); transform: rotate(-3deg); }
.claim:nth-child(even)::before { transform: rotate(4deg); }
.claim-no { display: block; font: 800 13px/1 var(--mono); letter-spacing: .12em; color: var(--stamp); margin-bottom: 14px; }
.claim h3 { font-size: 19px; margin-bottom: 10px; }
.claim p { color: var(--ink-soft); font-size: 16px; }
.safety-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.notice { display: flex; gap: 14px; align-items: flex-start; background: #fbf3dc; border: 1px dashed var(--kraft-dark); border-radius: 8px; padding: 22px 24px; }
.notice svg { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.behind { background: var(--paper); border-radius: 8px; padding: 22px 24px; }
.behind h3 { font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.behind ul { margin: 0; padding-left: 20px; font-size: 16px; }
.behind li + li { margin-top: 4px; }

/* What fits */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.ticks, .crosses { list-style: none; padding: 0; margin: 4px 0 0; }
.ticks li, .crosses li { position: relative; padding-left: 30px; margin-top: 10px; }
.ticks li::before, .crosses li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.ticks li::before { content: "\2713"; color: var(--ok); }
.crosses li::before { content: "\2715"; color: var(--stamp); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.plan { position: relative; background: var(--paper-warm); }
.plan h3 { font: 700 13px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.price { font-size: 44px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 14px; color: var(--ink) !important; }
.price span { font-size: 16px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.plan ul { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px dashed var(--line); }
.plan li { margin-top: 8px; color: var(--ink-soft); }
.plan li strong { color: var(--ink); }

/* Upload: the other way in, quieter than the connector. */
.band-slim { padding: 56px 0; }
.upload-in { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.dropzone { width: 88px; height: 88px; border: 2.5px dashed var(--kraft-dark); border-radius: 12px; color: var(--kraft-dark); display: flex; align-items: center; justify-content: center; }
.dropzone svg { width: 44px; height: 44px; }
.h2-small { font-size: 24px; letter-spacing: -.01em; }
.upload-copy p { color: var(--ink-soft); margin-top: 8px; max-width: 46em; }

/* Closer + footer */
.closer { padding: 96px 0; text-align: center; }
.closer-in { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.closer h2 { max-width: 16em; }
.closer p { font-size: 19px; color: var(--ink-soft); }
.closer .connector-url { margin: 4px 0 8px; font-size: 17px; }
.alt-path-quiet { padding: 0; text-align: center; font-size: 16px !important; }
.alt-path-quiet a::after { content: none; }
.foot { border-top: 1px solid var(--line); background: var(--paper); font-size: 14px; color: var(--ink-soft); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 960px) {
  .hero-paper .hero-in { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 56px; }
  .crate { aspect-ratio: auto; padding: 48px 20px; }
  .how { grid-template-columns: 1fr; gap: 56px; }
  .label-steps { grid-template-columns: 1fr; }
  .label-step:first-child { padding-right: 0; }
  .label-step + .label-step { border-left: 0; border-top: 1px dashed var(--line); padding-left: 0; }
  .steps, .plans { grid-template-columns: 1fr; }
  .sdk, .fit, .safety-foot { grid-template-columns: 1fr; }
  .claims { grid-template-columns: 1fr 1fr; }
  .claim, .claim:nth-child(4) { grid-column: auto; }
  .claim:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { --gutter: 16px; }
  .foot-in { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .nav nav a:not(.signin) { display: none; }
  .band, .safety-band, .closer { padding: 64px 0; }
  .claims { grid-template-columns: 1fr; gap: 24px; }
  .claim:nth-child(5) { grid-column: auto; }
  .lede { font-size: 17px; margin-top: 12px; }
  .hero h1 { font-size: 34px; }
  .eyebrow { margin-bottom: 14px; }
  .hero-label { padding: 28px 0 40px; }
  .label { padding: 28px 20px 0; }
  .label > .tape { width: 90px; height: 26px; }
  .label > .tape-l { left: -18px; }
  .label > .tape-r { right: -18px; }
  .label-head { padding-bottom: 22px; }
  .label-head .barcode { display: none; }
  .hero-paper .hero-in { padding-top: 32px; padding-bottom: 40px; }
  .connector-url { font-size: 14px; padding: 12px 14px; gap: 8px; }
  .safety-head { padding: 24px 20px; }
  .upload-in { grid-template-columns: 1fr; gap: 18px; }
  .dropzone { width: 64px; height: 64px; }
  .dropzone svg { width: 32px; height: 32px; }
  .tape { width: 80px; height: 26px; }
  .tape-l { left: -14px; }
  .tape-r { right: -14px; }
  .parcel { transform: rotate(1deg); }
}

/* Rotated labels and tape can poke past the edge on narrow screens. */
.hero, .safety-band, #how { overflow-x: clip; }
.notice { align-self: start; }

/* Docs page */
.nav nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 96px; }
.docs-toc { position: sticky; top: 88px; align-self: start; font-size: 15px; }
.docs-toc ol { list-style: none; padding: 0; margin: 12px 0 0; border-left: 2px solid var(--line); }
.docs-toc li a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-soft); }
.docs-toc li a:hover { color: var(--ink); border-left-color: var(--kraft-dark); }
.docs-body { max-width: 760px; }
.docs-body h1 { font-size: clamp(34px, 4.6vw, 48px); font-weight: 800; letter-spacing: -.025em; }
.docs-body .lede { font-size: 19px; color: var(--ink-soft); }
.docs-body section { padding-top: 56px; scroll-margin-top: 72px; }
.docs-body h2 { font-size: clamp(26px, 3.2vw, 32px); padding-bottom: 12px; border-bottom: 3px solid var(--ink); }
.docs-body h3 { font-size: 20px; margin-top: 32px; }
.docs-body p, .docs-body ul, .docs-body ol, .docs-body table, .docs-body .code { margin-top: 14px; }
.docs-body ul, .docs-body ol { padding-left: 24px; }
.docs-body li + li { margin-top: 6px; }
.docs-body a { color: var(--stamp); text-underline-offset: 2px; }
.docs-body :not(pre) > code { font-size: .88em; background: var(--kraft-light); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.docs-body .code { font-size: 14px; line-height: 1.6; padding: 20px 22px; box-shadow: none; }
.docs-body .connector-url { margin-top: 10px; padding: 12px 14px; gap: 8px; font-size: 14px; }
.docs-body .note { font-size: 15px; color: var(--ink-soft); background: var(--paper); border: 1px dashed var(--kraft-dark); border-radius: 8px; padding: 12px 16px; }
.docs-body .asks { list-style: none; padding: 0; }
.docs-body .asks li { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-weight: 600; }
.docs-body .hosts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.docs-body .hosts li { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; font-size: 14px; }
.docs-body table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 15px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.docs-body th, .docs-body td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.docs-body tr:last-child td { border-bottom: 0; }
.docs-body th { font: 700 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper-warm); }
.docs-body td:first-child code { white-space: nowrap; }
@media (max-width: 960px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; }
  .docs-toc { position: static; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
  .docs-toc ol { columns: 2; column-gap: 24px; }
}
@media (max-width: 640px) {
  .docs-toc ol { columns: 1; }
  .docs-body section { padding-top: 40px; }
}
@media (max-width: 640px) {
  .docs-body table { font-size: 14px; }
  .docs-body th, .docs-body td { padding: 8px 10px; }
}
/* Keep the connector address on one line next to its copy icon on narrow phones. */
@media (max-width: 380px) {
  .connector-url, .docs-body .connector-url { font-size: 13px; padding: 12px 8px 12px 12px; gap: 4px; }
}
@media (max-width: 340px) {
  .connector-url, .docs-body .connector-url { font-size: 12px; }
}
