/* MoonBite design system: the component kit shared by the homepage and every
   redesigned inner page. Built to docs/moonbite-guidelines.html.
   Every class is ds- prefixed so it never collides with the legacy mb-* layer.
   Put class="ds" on the page's outermost content element.

   d03 Void/Bone carry it, Moongold on ~5% of a screen, red/green as data only.
   d04 display face twice per page (wordmark in the header + .ds-title);
       every number, hash, address and height in mono with tabular figures.
   d06 one easing, durations 120 / 240 / 600 ms, reduced motion respected.
   d14 radius 6 controls / 10 cards / 20 tiles; spacing 4..96;
       one gold action per view (.ds-btn.gold), everything else ghost.
   d15 content max-width 1140; no modal, no countdown. d17 4.5:1 text. */

:root {
  --ds-void: #0B0D12; --ds-slate: #161A22; --ds-raise: #1D222C; --ds-ink: #0F1218;
  --ds-bone: #F5F2EA; --ds-ash: #8A8580; --ds-gold: #D9A441; --ds-gold-hi: #E3B259;
  --ds-gain: #2E9E6B; --ds-loss: #C8402F; --ds-on-bone-2: #4A4741;
  --ds-line: rgba(245, 242, 234, .08); --ds-line-2: rgba(245, 242, 234, .16);
  --ds-display: 'Archivo Black', 'Helvetica Neue', 'Arial Black', sans-serif;
  --ds-sans: Inter, -apple-system, 'Segoe UI', system-ui, sans-serif;
  --ds-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ds-ease: cubic-bezier(.22, 1, .36, 1); --ds-t1: 120ms; --ds-t2: 240ms; --ds-t3: 600ms;
}

/* ------------------------------------------------------------------ base */
.ds { color: var(--ds-bone); font-family: var(--ds-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.ds *, .ds *::before, .ds *::after { box-sizing: border-box; }
.ds a { color: inherit; text-decoration: none; }
.ds :focus-visible { outline: 2px solid var(--ds-gold); outline-offset: 2px; border-radius: 6px; }
.ds .mono, .ds-mono { font-family: var(--ds-mono); font-variant-numeric: tabular-nums; }
.ds .dim { color: var(--ds-ash); }
body.mbs-page .ds code { color: var(--ds-bone); font-family: var(--ds-mono); }
.ds .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ds-wrap { max-width: 1188px; margin: 0 auto; padding: 0 24px; }
.ds-section { padding: 96px 0; }
.ds-section.tight { padding-top: 0; }
.ds-section.alt { background: var(--ds-slate); border-top: 1px solid var(--ds-line); border-bottom: 1px solid var(--ds-line); }
.ds-rule-top { border-top: 1px solid var(--ds-line); }

/* ------------------------------------------------------------------ type */
.ds-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-family: var(--ds-mono); font-size: 12px; color: var(--ds-ash); }
.ds-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--ds-line-2); }
.ds-crumbs a:hover { color: var(--ds-bone); }
/* the legacy content layer underlines every unclassed link in gold; inside the
   kit, navigation lists carry no underline and in-text links a Bone one */
body.mbs-page .ds .ds-crumbs a, body.mbs-page .ds .ds-toc a { text-decoration: none; }
body.mbs-page .ds a:not([class]) { text-decoration-color: var(--ds-line-2); }
body.mbs-page .ds a:not([class]):hover { text-decoration-color: var(--ds-bone); }
.ds-crumbs [aria-current] { color: var(--ds-bone); }
.ds-eyebrow { margin: 0; font-family: var(--ds-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ds-ash); }
.ds-title { font-family: var(--ds-display); font-weight: 400; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.025em; margin: 24px 0 0; color: var(--ds-bone); text-wrap: balance; }
.ds-title .g { color: var(--ds-gold); }
.ds-lede { font-size: 19px; color: var(--ds-ash); max-width: 620px; margin: 24px 0 0; text-wrap: pretty; }
.ds-lede b, .ds-lede strong { color: var(--ds-bone); font-weight: 400; }
.ds-h2 { font-family: var(--ds-sans); font-weight: 800; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -.02em; margin: 16px 0 0; color: var(--ds-bone); text-wrap: balance; }
.ds-h2 .dim { color: var(--ds-ash); }
.ds-h3 { font-family: var(--ds-sans); font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; margin: 0; color: var(--ds-bone); }
.ds-sub { color: var(--ds-ash); font-size: 18px; max-width: 620px; margin: 16px 0 0; }
.ds-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.ds-textlink { color: var(--ds-bone); font-size: 15px; border-bottom: 1px solid var(--ds-line-2); padding-bottom: 2px; transition: border-color var(--ds-t1) var(--ds-ease); }
.ds-textlink:hover { border-color: var(--ds-bone); }

/* ------------------------------------------------------------------ page head (after Linear's inner pages) */
.ds-pagehead { padding: 64px 0 96px; border-bottom: 1px solid var(--ds-line); }
.ds-pagehead .ds-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: end; }
.ds-pagehead.split .ds-wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
.ds-pagehead .ds-eyebrow { margin-top: 32px; }

/* ------------------------------------------------------------------ controls */
.ds-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ds-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 6px;
  font: 700 15px/1.2 var(--ds-sans); border: 1px solid var(--ds-line-2); color: var(--ds-bone); background: transparent; cursor: pointer;
  transition: background var(--ds-t1) var(--ds-ease), border-color var(--ds-t1) var(--ds-ease); }
.ds-btn:hover { border-color: rgba(245, 242, 234, .36); background: rgba(245, 242, 234, .04); }
.ds-btn.gold { background: var(--ds-gold); border-color: var(--ds-gold); color: var(--ds-void); }
.ds-btn.gold:hover { background: var(--ds-gold-hi); border-color: var(--ds-gold-hi); }
.ds-btn.sm { min-height: 44px; padding: 8px 16px; font-size: 14px; }
.ds-btn[disabled], .ds-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.ds-btn svg { flex: none; }
.ds-chip { display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px 6px 8px; border: 1px solid var(--ds-line-2); border-radius: 999px;
  background: var(--ds-slate); font-family: var(--ds-mono); font-size: 13px; color: var(--ds-ash); margin: 0; }
.ds-chip .tag { display: inline-flex; align-items: center; gap: 8px; padding: 2px 12px; border-radius: 999px; background: var(--ds-raise); color: var(--ds-bone); font-weight: 700; }
.ds-chip b { color: var(--ds-bone); font-weight: 400; }
.ds-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ds-ash); flex: none; display: inline-block; }
.ds-dot.on { background: var(--ds-gain); }
.ds-checks { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 32px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ds-ash); }
.ds-checks li { display: flex; align-items: center; gap: 8px; }
.ds-checks li::before { content: ""; width: 16px; height: 16px; flex: none;
  background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23F5F2EA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* form fields */
.ds-field { display: flex; flex-direction: column; gap: 8px; }
.ds-field label { font-size: 13px; color: var(--ds-ash); }
.ds-input { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 6px; border: 1px solid var(--ds-line-2); background: var(--ds-ink);
  color: var(--ds-bone); font: 400 15px/1.4 var(--ds-sans); transition: border-color var(--ds-t1) var(--ds-ease); }
.ds-input.mono { font-family: var(--ds-mono); }
.ds-input:focus { border-color: var(--ds-gold); outline: none; }
.ds-input::placeholder { color: var(--ds-ash); }
.ds-search { display: flex; gap: 8px; }
.ds-search .ds-input { flex: 1; min-width: 0; }

/* ------------------------------------------------------------------ rules strip (after Linear's numbered columns) */
.ds-rules { border-top: 1px solid var(--ds-line); border-bottom: 1px solid var(--ds-line); }
.ds-rules .ds-wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ds-rules.three .ds-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ds-rule { padding: 32px 24px 48px; border-right: 1px solid var(--ds-line); }
.ds-rule:first-child { padding-left: 0; }
.ds-rule:last-child { border-right: 0; }
.ds-rule .n { font-family: var(--ds-mono); font-size: 12px; color: var(--ds-ash); }
.ds-rule .v { font-family: var(--ds-mono); font-variant-numeric: tabular-nums; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; margin-top: 24px; white-space: nowrap; color: var(--ds-bone); }
.ds-rule p { font-size: 14px; color: var(--ds-ash); margin: 8px 0 0; }

/* ------------------------------------------------------------------ grids, tiles, cards */
.ds-grid { display: grid; gap: 16px; margin-top: 48px; }
.ds-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ds-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ds-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ds-span2 { grid-column: span 2; }
.ds-tile { border-radius: 20px; background: var(--ds-slate); border: 1px solid var(--ds-line); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.ds-tile p { color: var(--ds-ash); margin: 8px 0 0; }
.ds-tile.bone { background: var(--ds-bone); color: var(--ds-void); border-color: var(--ds-bone); }
.ds-tile.bone .ds-h3, .ds-tile.bone .big { color: var(--ds-void); }
.ds-tile.bone p { color: var(--ds-on-bone-2); }
.ds-tile .big { font-family: var(--ds-sans); font-weight: 800; font-size: clamp(36px, 4.2vw, 56px); line-height: 1; letter-spacing: -.03em; }
.ds-tile .art { display: block; width: 100%; }
.ds-card { display: flex; flex-direction: column; border-radius: 10px; background: var(--ds-void); border: 1px solid var(--ds-line); overflow: hidden;
  transition: border-color var(--ds-t2) var(--ds-ease), transform var(--ds-t2) var(--ds-ease); }
.ds-section:not(.alt) .ds-card { background: var(--ds-slate); }
a.ds-card:hover { border-color: var(--ds-line-2); transform: translateY(-4px); }
.ds-card .art { height: 168px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--ds-line); background: var(--ds-void); }
.ds-card .body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ds-card .t { font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--ds-bone); }
.ds-card .d { font-size: 14px; color: var(--ds-ash); }
.ds-card .go { margin-top: auto; padding-top: 16px; font-size: 14px; color: var(--ds-bone); }
.ds-card .n { font-family: var(--ds-mono); font-size: 12px; color: var(--ds-ash); }

/* framed product panel with a hairline grid (after Coinbase Wallet / Attio) */
.ds-stage { position: relative; border-radius: 20px; background: var(--ds-slate); border: 1px solid var(--ds-line); overflow: hidden; padding: 32px; }
.ds-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--ds-line) 1px, transparent 1px), linear-gradient(90deg, var(--ds-line) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 70%); }
.ds-stage > * { position: relative; }

/* ------------------------------------------------------------------ live board (after Railway's stats) */
.ds-board { margin-top: 48px; border-radius: 20px; border: 1px solid var(--ds-line); overflow: hidden;
  background: repeating-linear-gradient(90deg, transparent 0 47px, rgba(245, 242, 234, .035) 47px 48px), var(--ds-slate); }
.ds-brow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 24px; padding: 24px 32px; border-bottom: 1px solid var(--ds-line); }
.ds-brow:last-child { border-bottom: 0; }
.ds-brow .k { font-family: var(--ds-mono); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--ds-ash); }
.ds-brow .val { font-family: var(--ds-mono); font-variant-numeric: tabular-nums; font-size: clamp(20px, 3vw, 34px); letter-spacing: .02em; text-align: right; color: var(--ds-bone); transition: color var(--ds-t3) var(--ds-ease); overflow-wrap: anywhere; }
.ds-brow .val small { display: block; font-size: 12px; letter-spacing: 0; color: var(--ds-ash); margin-top: 4px; }
.ds-brow .val.flash { color: var(--ds-gold); }
.ds-note { font-size: 14px; color: var(--ds-ash); margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* key / value list */
.ds-kv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); margin: 0; border-top: 1px solid var(--ds-line); }
.ds-kv dt, .ds-kv dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--ds-line); }
.ds-kv dt { font-family: var(--ds-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ds-ash); padding-right: 24px; }
.ds-kv dd { font-family: var(--ds-mono); font-variant-numeric: tabular-nums; color: var(--ds-bone); overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ steps */
.ds-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; counter-reset: ds-step; }
.ds-step { border-radius: 20px; background: var(--ds-slate); border: 1px solid var(--ds-line); padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.ds-step .pic { height: 216px; border-radius: 10px; background: var(--ds-void); border: 1px solid var(--ds-line); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 16px; }
.ds-step .n { font-family: var(--ds-mono); font-size: 13px; color: var(--ds-ash); }
.ds-step .ds-h3 { margin-top: 8px; }
.ds-step p { color: var(--ds-ash); margin: 8px 0 0; }
.ds-step .txt { padding: 0 8px 8px; }

/* numbered vertical steps (how-to) */
.ds-howto { list-style: none; margin: 48px 0 0; padding: 0; counter-reset: ds-how; border-top: 1px solid var(--ds-line); }
.ds-howto > li { counter-increment: ds-how; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--ds-line); }
.ds-howto > li::before { content: counter(ds-how, decimal-leading-zero); font-family: var(--ds-mono); font-size: 13px; color: var(--ds-ash); padding-top: 4px; }
.ds-howto p { color: var(--ds-ash); margin: 8px 0 0; }

/* ------------------------------------------------------------------ rows (decision log, release list, link index) */
.ds-rows { margin-top: 48px; border-top: 1px solid var(--ds-line); }
.ds-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--ds-line);
  transition: background var(--ds-t1) var(--ds-ease); }
a.ds-row:hover { background: rgba(245, 242, 234, .025); }
.ds-row .id { font-family: var(--ds-mono); font-size: 13px; color: var(--ds-ash); }
.ds-row .t { font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--ds-bone); }
.ds-row .d { display: block; font-size: 14px; font-weight: 400; color: var(--ds-ash); margin-top: 4px; letter-spacing: 0; }
.ds-row .meta { font-family: var(--ds-mono); font-size: 12px; color: var(--ds-ash); white-space: nowrap; }
.ds-tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--ds-line-2); font-family: var(--ds-mono); font-size: 11px; color: var(--ds-ash); white-space: nowrap; }
.ds-tag.ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ds-gain); }

/* ------------------------------------------------------------------ tables */
.ds-table-wrap { margin-top: 32px; border: 1px solid var(--ds-line); border-radius: 10px; overflow-x: auto; background: var(--ds-slate); }
.ds-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ds-table th { text-align: left; font: 400 11px/1.4 var(--ds-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ds-ash); padding: 12px 16px; border-bottom: 1px solid var(--ds-line); background: none; white-space: nowrap; }
.ds-table td { padding: 12px 16px; border-bottom: 1px solid var(--ds-line); color: var(--ds-bone); background: none; vertical-align: top; }
.ds-table tr:last-child td { border-bottom: 0; }
.ds-table tbody tr:hover td { background: rgba(245, 242, 234, .025); }
.ds-table td.num, .ds-table th.num { text-align: right; font-family: var(--ds-mono); }
.ds-table .mono { font-family: var(--ds-mono); }

/* ------------------------------------------------------------------ code */
.ds-code { margin-top: 16px; border-radius: 10px; border: 1px solid var(--ds-line); background: var(--ds-ink); overflow: hidden; }
.ds-code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--ds-line); font-family: var(--ds-mono); font-size: 12px; color: var(--ds-ash); }
.ds-copy { min-height: 44px; padding: 8px 16px; border-radius: 6px; border: 1px solid var(--ds-line-2); background: transparent; color: var(--ds-bone); font: 400 12px var(--ds-mono); cursor: pointer; transition: border-color var(--ds-t1) var(--ds-ease); }
.ds-copy:hover { border-color: rgba(245, 242, 234, .36); }
.ds-code pre { margin: 0; padding: 16px; overflow-x: auto; font-family: var(--ds-mono); font-size: 13px; line-height: 1.7; color: var(--ds-bone); background: none; border: 0; border-radius: 0; }
.ds-code pre .c { color: var(--ds-ash); }
.ds-term { background: var(--ds-void); border: 1px solid var(--ds-line); border-radius: 10px; overflow: hidden; }
.ds-term .bar { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--ds-line); }
.ds-term .bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--ds-raise); }
.ds-term pre { margin: 0; padding: 16px; font-family: var(--ds-mono); font-size: 12px; line-height: 1.9; color: var(--ds-ash); white-space: pre-wrap; background: none; border: 0; }
.ds-term pre b { color: var(--ds-bone); font-weight: 400; }

/* ------------------------------------------------------------------ callouts */
.ds-callout { border-radius: 10px; border: 1px solid var(--ds-line-2); background: var(--ds-slate); padding: 24px; display: grid; gap: 8px; }
.ds-callout .label { font-family: var(--ds-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ds-ash); display: flex; align-items: center; gap: 8px; }
.ds-callout.warn .label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ds-loss); }
.ds-callout p { margin: 0; color: var(--ds-ash); }
.ds-callout strong { color: var(--ds-bone); }

/* ------------------------------------------------------------------ split layout with a sticky index (docs, long reads) */
.ds-split { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
.ds-toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.ds-toc .ds-eyebrow { margin-bottom: 12px; }
.ds-toc a { color: var(--ds-ash); padding: 6px 0 6px 12px; border-left: 1px solid var(--ds-line); transition: color var(--ds-t1) var(--ds-ease), border-color var(--ds-t1) var(--ds-ease); }
.ds-toc a:hover, .ds-toc a[aria-current] { color: var(--ds-bone); border-color: var(--ds-bone); }

/* ------------------------------------------------------------------ long-form text */
.ds-prose { max-width: 68ch; color: var(--ds-ash); font-size: 17px; line-height: 1.7; }
.ds-prose > * + * { margin-top: 16px; }
.ds-prose h2 { font-family: var(--ds-sans); font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--ds-bone); margin-top: 48px; scroll-margin-top: 96px; }
.ds-prose h3 { font-family: var(--ds-sans); font-size: 20px; font-weight: 700; color: var(--ds-bone); margin-top: 32px; scroll-margin-top: 96px; }
.ds-prose p, .ds-prose li { color: var(--ds-ash); }
.ds-prose strong, .ds-prose b { color: var(--ds-bone); }
.ds-prose a { color: var(--ds-bone); text-decoration: underline; text-decoration-color: var(--ds-line-2); text-underline-offset: 3px; }
.ds-prose a:hover { text-decoration-color: var(--ds-bone); }
.ds-prose ul, .ds-prose ol { padding-left: 24px; }
.ds-prose li + li { margin-top: 8px; }
.ds-prose code { font-family: var(--ds-mono); font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--ds-slate); color: var(--ds-bone); }
.ds-prose blockquote { margin-left: 0; padding: 16px 24px; border-radius: 10px; background: var(--ds-slate); color: var(--ds-bone); }

/* ------------------------------------------------------------------ faq */
.ds-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; }
.ds-qa { border-top: 1px solid var(--ds-line); }
.ds-qa details { border-bottom: 1px solid var(--ds-line); padding: 16px 0; }
.ds-qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; font-size: 19px; font-weight: 700; color: var(--ds-bone); cursor: pointer; list-style: none; }
.ds-qa summary::-webkit-details-marker { display: none; }
.ds-qa summary::after { content: ""; width: 20px; height: 20px; flex: none; transition: transform var(--ds-t2) var(--ds-ease);
  background: no-repeat center / 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%23F5F2EA' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ds-qa details[open] summary::after { transform: rotate(45deg); }
.ds-qa p { color: var(--ds-ash); margin: 8px 0 16px; max-width: 620px; }
.ds-qa p a { color: var(--ds-bone); border-bottom: 1px solid var(--ds-line-2); }

/* ------------------------------------------------------------------ closing band */
.ds-band { border-radius: 20px; border: 1px solid var(--ds-line); background: var(--ds-slate); padding: 96px 32px; text-align: center; position: relative; overflow: hidden; }
.ds-band::before, .ds-band::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid var(--ds-line); pointer-events: none; }
.ds-band::before { width: 720px; height: 720px; }
.ds-band::after { width: 480px; height: 480px; }
.ds-band > * { position: relative; z-index: 1; }
.ds-band .mk { width: 96px; height: 96px; }
.ds-band .ds-h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.03em; margin-top: 24px; }
.ds-band .ds-sub { margin-left: auto; margin-right: auto; }
.ds-band .ds-actions { justify-content: center; }
.ds-band .fine { font-size: 13px; color: var(--ds-ash); margin-top: 24px; }

/* ------------------------------------------------------------------ breakpoints (d15: 480 / 768 / 1024 / 1440) */
@media (max-width: 1023px) {
  .ds-pagehead.split .ds-wrap { grid-template-columns: minmax(0, 1fr); }
  .ds-rules .ds-wrap, .ds-rules.three .ds-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-rule:nth-child(2n) { border-right: 0; }
  .ds-rule:nth-child(2n+1) { padding-left: 0; }
  .ds-rule:nth-child(-n+2) { border-bottom: 1px solid var(--ds-line); }
  .ds-grid.c3, .ds-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-steps { grid-template-columns: minmax(0, 1fr); }
  .ds-faq { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ds-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ds-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .ds-toc .ds-eyebrow { width: 100%; margin-bottom: 0; }
  .ds-toc a { border: 1px solid var(--ds-line-2); border-radius: 6px; padding: 8px 12px; }
}
@media (max-width: 767px) {
  .ds-section { padding: 64px 0; }
  .ds-pagehead { padding: 48px 0 64px; }
  .ds-rules .ds-wrap, .ds-rules.three .ds-wrap { grid-template-columns: minmax(0, 1fr); }
  .ds-rule { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--ds-line); }
  .ds-rule:last-child { border-bottom: 0; }
  .ds-grid.c2, .ds-grid.c3, .ds-grid.c4 { grid-template-columns: minmax(0, 1fr); }
  .ds-span2 { grid-column: auto; }
  .ds-tile { padding: 24px; }
  .ds-brow { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 20px 24px; }
  .ds-brow .val { text-align: left; }
  .ds-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ds-kv { grid-template-columns: minmax(0, 1fr); }
  .ds-kv dt { border-bottom: 0; padding-bottom: 0; }
  .ds-howto > li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ds-band { padding: 64px 24px; }
  .ds-search { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .ds *, .ds *::before, .ds *::after { transition: none !important; animation: none !important; }
}
