/* Kryphe · docs shell. Loads after style.css and reuses its tokens and components. */

:root {
  --dtop-h: 60px;
  --dside-w: 264px;
  --dtoc-w: 224px;
  --dshell-w: 1440px;
  --prose-w: 68ch;
  --z-drawer: 62;
}

html { scroll-padding-top: calc(var(--dtop-h) + 24px); }
body.docs { font-size: 1.0625rem; line-height: 1.7; }
html.drawer-open { overflow: hidden; }

/* ---------- top bar ---------- */
.dtop {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: var(--night); border-bottom: 1px solid var(--line);
}
.dtop__inner {
  max-width: var(--dshell-w); margin-inline: auto; padding-inline: var(--gutter);
  height: var(--dtop-h); display: flex; align-items: center; gap: 16px;
}
.dtop__brand { display: flex; align-items: center; gap: 12px; flex: none; }
.dtop__brand .brand__word { font-size: 1.6rem; }
.dtop__docs {
  color: var(--ink-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 4px 0 4px 12px; border-left: 1px solid var(--line-strong);
  transition: color .2s var(--ease-out);
}
.dtop__docs:hover { color: var(--ink); }
.dtop__end { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }

.dtop__menu, .dtop__find {
  display: none; place-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer;
  transition: border-color .2s var(--ease-out);
}
.dtop__menu:hover, .dtop__find:hover { border-color: var(--cream); }
.dtop__menu { gap: 6px; }
.dtop__menu span { display: block; width: 18px; height: 1.5px; background: var(--cream); transition: transform .25s var(--ease-out); }
.dtop__menu[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.dtop__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- search ---------- */
.dsearch { position: relative; flex: 0 1 420px; margin-inline: auto; }
.dsearch__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); pointer-events: none; }
.dsearch__input {
  width: 100%; height: 40px; padding: 0 40px 0 38px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--night-raise); color: var(--ink);
  font: inherit; font-size: 0.92rem;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out);
  -webkit-appearance: none; appearance: none;
}
.dsearch__input::placeholder { color: var(--ink-muted); opacity: 1; }
.dsearch__input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.dsearch__input:hover { border-color: rgba(233, 216, 170, 0.4); }
.dsearch__input:focus { border-color: var(--cream); background: var(--panel); }
.dsearch__input:focus-visible { outline-offset: 1px; border-radius: 10px; }
.dsearch__kbd {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 5px;
  font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-muted);
  border: 1px solid var(--line-strong); border-radius: 6px; pointer-events: none;
}
.dsearch__input:focus ~ .dsearch__kbd { opacity: 0; }

.dsearch__panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: var(--z-menu);
  max-height: min(70vh, 480px); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--night-raise); box-shadow: 0 30px 60px -24px #000;
}
.dsearch__panel[hidden] { display: none; }
.dsearch__opt {
  display: grid; gap: 2px; padding: 9px 12px; border-radius: 8px; cursor: pointer;
  color: var(--ink-body); transition: background-color .15s var(--ease-out);
}
.dsearch__opt + .dsearch__opt { margin-top: 2px; }
.dsearch__opt:hover { background: var(--cream-wash); }
.dsearch__opt[aria-selected="true"] { background: rgba(233, 216, 170, 0.12); box-shadow: inset 0 0 0 1px var(--line-strong); }
.dsearch__t { color: var(--ink); font-weight: 500; font-size: 0.93rem; line-height: 1.35; }
.dsearch__p { font-family: var(--f-mono); font-size: 0.7rem; color: var(--ink-muted); line-height: 1.4; }
.dsearch__t mark { background: none; color: var(--amber); }
.dsearch__empty { padding: 12px; font-size: 0.9rem; color: var(--ink-body); }
.dsearch__empty[hidden] { display: none; }
.dsearch__foot { padding: 8px 12px 4px; border-top: 1px solid var(--line); margin-top: 6px; font-family: var(--f-mono); font-size: 0.68rem; color: var(--ink-muted); }

/* ---------- shell ---------- */
.dshell {
  max-width: var(--dshell-w); margin-inline: auto;
  display: grid; grid-template-columns: var(--dside-w) minmax(0, 1fr) var(--dtoc-w);
  align-items: start;
}

/* sidebar */
.dside {
  position: sticky; top: var(--dtop-h);
  height: calc(100vh - var(--dtop-h)); height: calc(100dvh - var(--dtop-h));
  overflow-y: auto; overscroll-behavior: contain;
  padding: 28px 16px 28px var(--gutter);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 28px;
}
.dnav__group + .dnav__group { margin-top: 22px; }
.dnav__h { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-muted); padding: 0 10px 6px; }
.dnav__list a {
  display: block; padding: 6px 10px; border-radius: 8px;
  color: var(--ink-body); text-decoration: none; font-size: 0.93rem; line-height: 1.45;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.dnav__list li + li { margin-top: 1px; }
.dnav__list a:hover { color: var(--ink); background: var(--cream-wash); }
.dnav__list a[aria-current="page"] { color: var(--night); background: var(--cream); font-weight: 600; }
.dnav__fallback { font-size: 0.9rem; padding: 0 10px; }
.dnav__fallback a { color: var(--ink); }
.dside__foot { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 0.88rem; }
.dside__foot a { color: var(--ink-muted); text-decoration: none; transition: color .2s; }
.dside__foot a:hover { color: var(--ink); }

/* main column */
.dmain { min-width: 0; padding: 30px clamp(20px, 4.5vw, 64px) 72px; }
.dmain:focus { outline: none; }
.dart { max-width: 46rem; }
.dart__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; min-height: 34px; }

.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; padding: 0; list-style: none; font-size: 0.88rem; color: var(--ink-muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); color: rgba(233, 216, 170, 0.35); }
.crumbs a { color: var(--ink-muted); text-decoration: none; transition: color .2s; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.dcopylink {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; color: var(--ink);
  font-size: 0.84rem; font-weight: 500; cursor: pointer;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.dcopylink:hover { border-color: var(--cream); }
.dcopylink.is-done { background: var(--cream); border-color: var(--cream); color: var(--night); }

.dart__title {
  margin-top: 22px;
  font-family: var(--f-display); font-weight: 500;
  font-size: 3rem; line-height: 1.04; letter-spacing: -0.01em;
}
.dlede { margin-top: 14px; max-width: 40em; font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.dmeta { margin-top: 18px; color: var(--ink-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }

/* mobile TOC (shown below the wide breakpoint) */
.toc-m { margin-top: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--night-raise); }
.toc-m summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; font-size: 0.92rem; font-weight: 500; color: var(--ink); border-radius: var(--radius-sm);
}
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary::after {
  content: ""; width: 8px; height: 8px; flex: none;
  border-right: 1.5px solid var(--tan); border-bottom: 1.5px solid var(--tan);
  transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease-out);
}
.toc-m[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.toc-m ol { margin: 0; padding: 4px 14px 12px; list-style: none; border-top: 1px solid var(--line); }
.toc-m[hidden] { display: none; }

/* TOC (shared list styling) */
.toc__list { margin: 0; padding: 0; list-style: none; }
.toc__list li { margin-top: 2px; }
.toc__list a {
  position: relative; display: block; padding: 5px 0 5px 16px;
  color: var(--ink-muted); text-decoration: none; font-size: 0.88rem; line-height: 1.4;
  transition: color .2s var(--ease-out);
}
.toc__list a::before {
  content: ""; position: absolute; left: 2px; top: 0.85em; width: 5px; height: 5px; border-radius: 50%;
  background: var(--line-strong); transition: background-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.toc__list a:hover { color: var(--ink); }
.toc__list a.is-active { color: var(--ink); font-weight: 500; }
.toc__list a.is-active::before { background: var(--amber); transform: scale(1.3); }

/* right column */
.dtoc { position: sticky; top: var(--dtop-h); max-height: calc(100vh - var(--dtop-h)); overflow-y: auto; padding: 34px var(--gutter) 32px 8px; }
.dtoc__h { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-muted); margin-bottom: 10px; }
.dtoc[hidden] { display: none; }
.dtoc__top { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.dtoc__top a { font-size: 0.85rem; color: var(--ink-muted); text-decoration: none; }
.dtoc__top a:hover { color: var(--ink); }

/* ---------- prose ---------- */
.prose { margin-top: 32px; padding-top: 30px; border-top: 1px solid var(--line); counter-reset: step; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose li { max-width: var(--prose-w); }
.prose h2 {
  position: relative; margin-top: 2em;
  font-family: var(--f-display); font-weight: 500; font-size: 2rem; line-height: 1.12; letter-spacing: -0.005em;
}
.prose > h2:first-child { margin-top: 0; }
.prose h2 + * { margin-top: 0.7em; }
.prose h3 { margin-top: 1.8em; font-family: var(--f-ui); font-size: 1.08rem; font-weight: 600; line-height: 1.4; }
.prose h3 + * { margin-top: 0.5em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a:not([class]) {
  color: var(--ink); text-decoration: underline; text-decoration-color: rgba(233, 216, 170, 0.4);
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: text-decoration-color .2s var(--ease-out), color .2s var(--ease-out);
}
.prose a:not([class]):hover { color: #F4E7C2; text-decoration-color: currentColor; }
.prose ul, .prose ol:not([class]) { padding: 0; }
.prose ul:not([class]) > li { position: relative; padding-left: 22px; }
.prose ul:not([class]) > li::before { content: ""; position: absolute; left: 4px; top: 0.78em; width: 8px; height: 1px; background: var(--tan); }
.prose ol:not([class]) { list-style: none; counter-reset: li; }
.prose ol:not([class]) > li { position: relative; padding-left: 30px; counter-increment: li; }
.prose ol:not([class]) > li::before { content: counter(li) "."; position: absolute; left: 0; top: 0; font-family: var(--f-mono); font-size: 0.8rem; line-height: 2.1; color: var(--tan); }
.prose li + li { margin-top: 0.55em; }
.prose code:not([class]) { font-size: 0.86em; padding: 0.1em 0.35em; border-radius: 5px; background: var(--cream-wash); color: var(--ink); }

/* numbered step headings: a real sequence, so the numbers carry information */
.prose h2.step { counter-increment: step; display: flex; align-items: baseline; gap: 14px; }
.prose h2.step::before {
  content: counter(step); flex: none; align-self: center;
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-strong); font-family: var(--f-mono); font-size: 0.8rem; color: var(--cream);
}

/* heading anchors */
.hanchor {
  margin-left: 10px; font-family: var(--f-mono); font-size: 0.9rem; color: var(--ink-muted);
  text-decoration: none; opacity: 0; transition: opacity .2s var(--ease-out), color .2s;
  vertical-align: 0.3em;
}
.prose h2:hover .hanchor, .hanchor:focus-visible { opacity: 1; }
.hanchor:hover { color: var(--ink); }
@media (hover: none) { .hanchor { display: none; } }

/* callouts: full border + tint, never a side stripe */
.callout { padding: 16px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--cream-wash); max-width: var(--prose-w); }
.callout__t { color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.callout p + p { margin-top: 0.6em; }
.callout--caution { border-color: rgba(242, 180, 90, 0.4); background: var(--amber-wash); }
.callout--caution .callout__t { color: var(--amber); }

/* facts list */
.facts { margin: 0; max-width: var(--prose-w); border-top: 1px solid var(--line-strong); }
.facts > div { display: grid; grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 2fr); gap: 4px 20px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line-strong); }
.facts dt { color: var(--ink-muted); font-size: 0.93rem; }
.facts dd { margin: 0; color: var(--ink); font-size: 0.95rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.facts .mono { color: var(--ink-muted); }
.facts dd { min-width: 0; }
.facts__addr { font-family: var(--f-mono); font-size: 0.85rem; overflow-wrap: anywhere; word-break: break-all; min-width: 0; }

/* tables */
.dtable { max-width: 100%; overflow-x: auto; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.dtable:focus-visible { outline-offset: 2px; }
.dtable table { width: 100%; border-collapse: collapse; font-size: 0.93rem; line-height: 1.5; }
.dtable th, .dtable td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.dtable thead th { background: var(--night-raise); color: var(--ink); font-weight: 600; font-size: 0.86rem; white-space: nowrap; }
.dtable tbody th { color: var(--ink); font-weight: 500; }
.dtable tbody tr:last-child > * { border-bottom: 0; }
.dtable td { color: var(--ink-body); }
.dtable .tag { white-space: nowrap; }

/* deposit → prove → withdraw diagram */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 17px; right: calc(100% / 3 - 17px); top: 17px; height: 1px; background: var(--line-strong); }
.flow__step { position: relative; padding: 0 18px 0 0; display: grid; align-content: start; gap: 6px; }
.flow__n {
  position: relative; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--night); color: var(--cream);
  font-family: var(--f-mono); font-size: 0.8rem; margin-bottom: 10px;
}
.flow__step:nth-child(2) .flow__n { border-color: var(--cream); }
.flow__step:last-child .flow__n { background: var(--cream); color: var(--night); border-color: var(--cream); }
.flow__k { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-muted); }
.flow__t { color: var(--ink); font-weight: 600; font-size: 1rem; line-height: 1.35; }
.flow__d { font-size: 0.92rem; line-height: 1.55; color: var(--ink-body); }
.flow-wrap { padding: 22px 22px 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--night-raise); }
.prose .flow > li + li, .prose .onward > li + li { margin-top: 0; }
.prose .flow > li, .prose .onward > li, .prose .flow-cap { max-width: none; }
.flow-cap { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-muted); }

/* onward links */
.onward { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.onward a {
  height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start;
  padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  text-decoration: none; color: var(--ink-body); background: transparent;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.prose .onward a { text-decoration: none; color: var(--ink-body); }
.onward a:hover { border-color: var(--cream); background: var(--cream-wash); }
.onward__g { grid-column: 1; font-family: var(--f-mono); font-size: 0.7rem; color: var(--ink-muted); }
.onward__t { grid-column: 1; color: var(--ink); font-weight: 600; font-size: 1rem; }
.onward__d { grid-column: 1; font-size: 0.9rem; line-height: 1.5; }
.onward__a { grid-column: 2; grid-row: 1 / span 3; align-self: center; color: var(--tan); transition: transform .25s var(--ease-out), color .2s; }
.onward a:hover .onward__a { transform: translateX(3px); color: var(--cream); }
.onward li:first-child { grid-column: 1 / -1; }
.onward li:first-child a { background: var(--amber-wash); border-color: rgba(242, 180, 90, 0.4); }
.onward li:first-child a:hover { border-color: var(--amber); }

/* faq inside prose: reuse .faq__list, tighten for the docs column */
.prose .faq__list { max-width: var(--prose-w); }
.prose .faq__list summary { font-size: 1.02rem; padding: 16px 2px; }
.prose .faq__a { padding-bottom: 18px; }
.prose .faq__a p + p { margin-top: 0.7em; }

/* contracts table inside prose */
.prose .ctable { margin-top: 1.1em; }

/* glossary */
.gloss-see { font-size: 0.9rem; color: var(--ink-muted); }
.gloss-see a { color: var(--ink-muted) !important; }

/* prev / next */
.pager { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pager:empty { display: none; }
.pager a {
  display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  text-decoration: none; transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.pager a:hover { border-color: var(--cream); background: var(--cream-wash); }
.pager__k { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-muted); }
.pager__t { color: var(--ink); font-weight: 600; }
.pager__next { grid-column: 2; text-align: right; }

/* footer */
.dfoot { border-top: 1px solid var(--line); background: var(--night-deep); }
.dfoot__inner { max-width: var(--dshell-w); margin-inline: auto; padding: 28px var(--gutter) 36px; display: grid; gap: 10px; font-size: 0.86rem; color: var(--ink-muted); }
.dfoot__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.dfoot__row a { color: var(--ink-muted); text-decoration: none; }
.dfoot__row a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.dfoot__risk { max-width: 70em; font-size: 0.82rem; }

/* drawer veil */
.dveil {
  position: fixed; inset: var(--dtop-h) 0 0 0; z-index: var(--z-veil);
  background: rgba(9, 23, 25, 0.72); opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease-out), visibility 0s .2s;
}
html.drawer-open .dveil { opacity: 1; visibility: visible; transition: opacity .2s var(--ease-out), visibility 0s; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .dshell { grid-template-columns: var(--dside-w) minmax(0, 1fr); }
  .dtoc { display: none; }
}
@media (min-width: 1200px) {
  .toc-m { display: none; }
}
@media (max-width: 959px) {
  .dshell { grid-template-columns: minmax(0, 1fr); }
  .dtop__menu { display: grid; }
  .dside {
    position: fixed; top: var(--dtop-h); left: 0; bottom: 0; z-index: var(--z-drawer);
    width: min(320px, 86vw); height: auto;
    padding: 22px 16px 24px; background: var(--night-deep);
    border-right: 1px solid var(--line-strong); box-shadow: 30px 0 60px -30px #000;
    transform: translateX(-100%); visibility: hidden;
    transition: transform .25s var(--ease-out), visibility 0s .25s;
  }
  html.drawer-open .dside { transform: none; visibility: visible; transition: transform .25s var(--ease-out), visibility 0s; }
  .dmain { padding-inline: var(--gutter); }
  .dart { margin-inline: auto; }
}
@media (min-width: 960px) { .dveil { display: none; } }
@media (max-width: 719px) {
  .dtop__inner { gap: 10px; }
  .dtop__find { display: grid; }
  .dsearch {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    padding: 10px var(--gutter) 12px; background: var(--night); border-bottom: 1px solid var(--line-strong);
  }
  html.search-open .dsearch { display: block; }
  .dsearch__icon { left: calc(var(--gutter) + 12px); }
  .dsearch__kbd { display: none; }
  .dsearch__panel { left: var(--gutter); right: var(--gutter); max-height: 60vh; }
  .dart__title { font-size: 2.4rem; }
  .dlede { font-size: 1.1rem; }
  .prose h2 { font-size: 1.7rem; }
  .flow { grid-template-columns: 1fr; gap: 18px; }
  .flow::before { display: none; }
  .flow__step:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 34px; bottom: -18px; width: 1px; background: var(--line-strong); }
  .flow__step { grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; padding: 0; }
  .flow__n { grid-row: 1 / span 3; margin-bottom: 0; }
  .onward { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; }
  .dtable th, .dtable td { padding: 10px 12px; }
  .dtable table { font-size: 0.9rem; }
  .pager { grid-template-columns: 1fr; }
  .pager__next { grid-column: 1; }
}
@media (max-width: 479px) {
  .dtop__inner { gap: 8px; }
  .dtop .nav__x { display: none; }
  .dtop__brand { gap: 10px; }
  .dtop__brand .brand__mark { width: 24px; height: 24px; }
  .dtop__brand .brand__word { font-size: 1.4rem; }
  .dtop__docs { padding-left: 10px; font-size: 0.9rem; }
  .dtop .pill--app { height: 34px; padding: 0 11px; font-size: 0.8rem; gap: 6px; }
  .dtop__menu, .dtop__find { width: 36px; height: 36px; }
  .prose h2.step { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .dside, .dveil, .dtop__menu span, .toc-m summary::after { transition: none !important; }
}

/* smallest phones: keep the top bar inside 320px */
@media (max-width: 359px) {
  .dtop__docs { display: none; }
  .dtop .pill--app .pill__dot { display: none; }
}
