/*
 * css/pages/learn.css: the learn group (SPEC 12 C7): /how-it-works, /docs, /docs/api, /about, /roadmap, /privacy,
 * /terms. Tokens and every shared component come from css/site.css; this sheet only lays out the group's own parts.
 * Order: shared bits, how it works (stepper), docs frame, docs article, about, roadmap, trust pages.
 */

/* ------------------------------------------------------------------------------------------------ shared */
.learn-head { padding-block: calc(var(--section) * .75) calc(var(--section) * .45); }
.learn-head .lede { margin-top: var(--s5); }
.learn-head .kicker { margin-bottom: 14px; }
.learn-head__meta { margin-top: 18px; }
.h2 + .lede, .h2--s + .lede { margin-top: var(--s4); }
.learn-sec__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.learn-sec__head .lede { max-width: 58ch; }

/* a phrase that shows only once its live value is known (js/pages/learn/live.js); never a placeholder */
[data-live-if][hidden], [data-live-if-not][hidden] { display: none !important; }
.live-val { font-variant-numeric: tabular-nums; }

/* NEXT tag of the roadmap and the hollow status tag */
.tag {
  display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; flex: none;
  border-radius: var(--r-pill); border: 1px dashed var(--line-input);
  font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; color: var(--muted);
}

/* ------------------------------------------------------------------------------------------------ how it works */
.how-title {
  font: 800 clamp(40px, 5.2vw, 72px)/1.04 var(--font-body); letter-spacing: -0.035em; color: var(--text);
}
.how-title em {
  display: block; font-family: var(--font-display); font-style: normal; font-weight: 400; letter-spacing: 0; color: var(--accent);
}
.how-gw { margin-top: 28px; max-width: 760px; }
.how-gw .chip { margin-right: 10px; vertical-align: 1px; }

.stepper { position: relative; }
.stepper__pin { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.stepper__list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.step-row {
  border: 1px solid var(--line); border-radius: var(--r3); background: var(--panel);
  transition: border-color var(--t2) var(--ease-out), background-color var(--t2) var(--ease-out);
}
.step-row.is-active { border-color: var(--accent-line); background: var(--panel-2); }
.step-row__h { font: inherit; margin: 0; }
.step-row__btn {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) 20px; align-items: center; gap: 12px;
  width: 100%; min-height: 58px; padding: 12px 20px; text-align: left; border-radius: var(--r3);
  font: 600 17px/1.35 var(--font-body); color: var(--text);
}
.step-row__num { font: 600 12px/1 var(--font-mono); letter-spacing: .08em; color: var(--muted); }
.step-row__btn .icon { color: var(--muted); transition: transform var(--t2) var(--ease-out), color var(--t1); }
.step-row.is-active .step-row__num, .step-row.is-active .step-row__title { color: var(--accent); }
.step-row.is-active .step-row__btn .icon { transform: rotate(180deg); color: var(--accent); }
.step-row__body { padding: 0 20px 20px 66px; display: flex; flex-direction: column; gap: 14px; }
.step-row__body > p { font-size: 15.5px; line-height: 1.6; color: var(--dim); max-width: 60ch; }
.step-row__points { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.step-row__points li { font-size: 14px; line-height: 1.5; color: var(--body); }
.step-row__points li::before { content: "/"; color: var(--accent); margin-right: .55em; font-family: var(--font-mono); }
.step-row__meta { display: inline-flex; align-self: flex-start; }
.step-row__meta span { font: 500 12px/1.4 var(--font-mono); color: var(--muted); letter-spacing: .02em; }
.stepper__panel { display: none; }
.stepper__rail { display: none; }

/* pinned mode: set by js/pages/learn/stepper.js at >= 900px wide and >= 761px tall */
.stepper.is-pinned .stepper__pin {
  position: sticky; top: calc(var(--header-h) + var(--notice-h, 0px) + 28px);
  grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start;
}
.stepper.is-pinned .stepper__rail { display: block; }
.stepper.is-pinned .stepper__rail i { display: block; height: 50vh; }
.stepper.is-pinned .step-row__meta { display: none; }
.stepper.is-pinned .stepper__panel {
  display: flex; flex-direction: column; gap: 14px; min-height: 300px; padding: 32px;
  border: 1px solid var(--line-strong); border-radius: var(--r4); background: var(--panel); box-shadow: var(--shadow-card);
}
.stepper__panel-num { font: 400 72px/1 var(--font-display); color: var(--accent); letter-spacing: 0; }
.stepper__panel-title { font: 700 22px/1.25 var(--font-body); letter-spacing: -0.01em; color: var(--text); margin-top: 10px; }
.stepper__panel-meta { font: 500 12px/1.5 var(--font-mono); color: var(--muted); }
.stepper__panel-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.stepper__panel-foot .note { color: var(--faint); }
@media (min-width: 1280px) { .stepper.is-pinned .stepper__pin { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; } }
@media (max-width: 639px) {
  .step-row__btn { padding: 12px 16px; font-size: 16px; grid-template-columns: 28px minmax(0, 1fr) 20px; gap: 10px; }
  .step-row__body { padding: 0 16px 18px 54px; }
}
@media (max-width: 399px) { .step-row__body { padding-left: 16px; } }

.earn-grid .card { display: flex; flex-direction: column; gap: 12px; }
.earn-grid .card .h3 + p { margin-top: 0; }
.earn-grid .card__go { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font: 500 14px/1.4 var(--font-body); color: var(--dim); }
.earn-grid .card__go .icon { width: 16px; height: 16px; color: var(--accent); transition: transform var(--t2) var(--ease-out); }
.earn-grid .card--link:hover .card__go .icon { transform: translateX(3px); }
.earn-grid .card__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r2); background: var(--accent-tint); color: var(--accent); }

.fundband {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center;
  padding: 40px; border-radius: var(--r4); border: 1px solid var(--accent-line);
  background: linear-gradient(135deg, var(--accent-tint), var(--panel) 62%);
}
.fundband__copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.fundband__copy p { color: var(--body); max-width: 56ch; }
.fundband .slashlist { border-left-color: var(--accent-line); }
@media (max-width: 1023px) { .fundband { grid-template-columns: minmax(0, 1fr); gap: 24px; } .fundband .slashlist { border-left: 0; padding-left: 0; padding-top: 18px; border-top: 1px solid var(--accent-line); } }
@media (max-width: 639px) { .fundband { padding: 24px; } }

.outro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-block: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.outro__text { font: 700 clamp(20px, 2vw, 24px)/1.3 var(--font-body); letter-spacing: -0.015em; color: var(--text); max-width: 34ch; }

/* ------------------------------------------------------------------------------------------------ docs frame */
.docs {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0;
  padding-bottom: var(--section);
}
.docs__rail { display: contents; }
.docs__article { min-width: 0; }
.docs-nav__panel { display: flex; flex-direction: column; gap: 22px; }
.docs-nav__group { display: flex; flex-direction: column; gap: 2px; }
.docs-nav__label { padding: 0 12px 6px; }
.docs-nav__group a, .docs-toc a {
  position: relative; display: flex; align-items: center; min-height: 32px; padding: 5px 12px; border-radius: var(--r2);
  font: 400 14px/1.35 var(--font-body); color: var(--body); transition: color var(--t1), background-color var(--t1);
}
.docs-nav__group a:hover, .docs-toc a:hover { color: var(--text); background: var(--panel-2); }
.docs-nav__group a.is-page { font-weight: 600; color: var(--text); }
.docs-nav__group a[aria-current="page"] { color: var(--accent); }
.docs-nav__group a.is-current, .docs-toc a.is-current { color: var(--accent); background: var(--accent-tint); }
.docs-nav__group a.is-current::before, .docs-toc a.is-current::before {
  content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: var(--accent);
}
.docs-nav__group a .icon { width: 14px; height: 14px; margin-left: 6px; color: var(--muted); }
.docs-nav__sub a { padding-left: 24px; font-size: 13.5px; }

.docs-toc { display: none; }
.docs-toc__title { display: flex; align-items: center; gap: 8px; padding: 0 12px 10px; }
.docs-toc__title .icon { width: 14px; height: 14px; color: var(--muted); }
.docs-toc ol { list-style: none; display: flex; flex-direction: column; gap: 1px; border-left: 1px solid var(--line); }
.docs-toc a { font-size: 13.5px; min-height: 30px; border-radius: 0 var(--r2) var(--r2) 0; }
.docs-toc a.is-current::before { left: -1px; top: 4px; bottom: 4px; }

/* phones and tablets: a sticky Contents bar that opens the whole map */
.docs-bar {
  position: sticky; top: calc(var(--header-h) + var(--notice-h, 0px)); z-index: 30;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  background: var(--header-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.docs-bar__btn {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; text-align: left;
  font: 600 14px/1.3 var(--font-body); color: var(--text);
}
.docs-bar__btn .label { flex: none; color: var(--accent); }
.docs-bar__now { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); font-weight: 500; }
.docs-bar__btn .icon { color: var(--muted); transition: transform var(--t2) var(--ease-out); }
.docs-bar__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.docs-bar__panel { display: none; max-height: calc(100dvh - var(--header-h) - 48px); overflow-y: auto; overscroll-behavior: contain; padding: 8px 0 20px; border-top: 1px solid var(--line); }
.docs-bar__panel.is-open { display: flex; }
.docs-bar .docs-nav__group a { min-height: 44px; }

@media (min-width: 1024px) {
  .docs { grid-template-columns: 240px minmax(0, 72ch); gap: 0 56px; align-items: start; }
  .docs__rail { display: block; grid-column: 1; grid-row: 1; position: sticky; top: calc(var(--header-h) + var(--notice-h, 0px)); max-height: calc(100vh - var(--header-h) - var(--notice-h, 0px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-block: 36px 24px; }
  .docs__article { grid-column: 2; grid-row: 1; }
  .docs-bar { position: static; margin: 0; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; }
  .docs-bar__btn { display: none; }
  .docs-bar__panel { display: flex; max-height: none; overflow: visible; padding: 0; border: 0; }
  .docs-bar .docs-nav__group a { min-height: 32px; }
}
@media (min-width: 1280px) {
  .docs { grid-template-columns: 240px minmax(0, 72ch) 200px; gap: 0 48px; justify-content: space-between; }
  .docs__rail { display: contents; }
  .docs-nav { grid-column: 1; grid-row: 1; position: sticky; top: calc(var(--header-h) + var(--notice-h, 0px)); max-height: calc(100vh - var(--header-h) - var(--notice-h, 0px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-block: 36px 24px; }
  .docs-toc { display: block; grid-column: 3; grid-row: 1; position: sticky; top: calc(var(--header-h) + var(--notice-h, 0px)); padding-block: 36px 24px; max-height: calc(100vh - var(--header-h) - var(--notice-h, 0px)); overflow-y: auto; scrollbar-width: thin; }
  .docs-nav__sub--here { display: none; }
}

/* ------------------------------------------------------------------------------------------------ docs article */
.doc-head { padding-block: 40px 8px; }
.doc-head .kicker { margin-bottom: 14px; }
.doc-head .kicker a:hover { text-decoration: underline; text-underline-offset: 3px; }
.doc-title { font: 400 clamp(36px, 4.2vw, 56px)/1.05 var(--font-display); letter-spacing: 0; color: var(--text); }
.doc-head .lede { margin-top: 18px; font-size: 18px; max-width: 62ch; }
.doc-checked { margin-top: 16px; }
.doc-status { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r3); background: var(--panel); }
.doc-status__text { font-size: 14.5px; line-height: 1.5; color: var(--dim); flex: 1 1 280px; }

.doc { counter-reset: none; }
.doc-sec { padding-top: 56px; margin-top: 56px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-sec:first-child { margin-top: 32px; }
.doc-h2 { display: flex; align-items: baseline; gap: 10px; font: 750 28px/1.2 var(--font-body); letter-spacing: -0.02em; color: var(--text); }
.doc-h2 .anchor, .doc-h3 .anchor {
  display: inline-grid; place-items: center; min-width: 28px; min-height: 28px; border-radius: var(--r1);
  font: 500 16px/1 var(--font-mono); color: var(--muted); opacity: 0; transition: opacity var(--t1), color var(--t1);
}
.doc-h2:hover .anchor, .doc-h3:hover .anchor, .anchor:focus-visible { opacity: 1; }
.anchor:hover { color: var(--accent); }
.doc-h3 { display: flex; align-items: baseline; gap: 8px; margin-top: 36px; font: 700 19px/1.3 var(--font-body); letter-spacing: -0.01em; color: var(--text); scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-h3 code { font-size: .85em; }
.doc-sec > * + * { margin-top: 18px; }
.doc-sec > .doc-h3 { margin-top: 36px; }
.doc-sec > .spec-source, .doc-sec > .doc-band + .note { margin-top: 10px; }
:where(.doc) p:not([class]) { font-size: 16px; line-height: 1.72; color: var(--body); max-width: 72ch; }
.doc p strong, .doc li strong { color: var(--text); font-weight: 600; }
.doc :is(p, li, dd) a:not([class]) { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: color var(--t1), text-decoration-color var(--t1); }
.doc :is(p, li, dd) a:not([class]):hover { color: var(--accent); text-decoration-color: currentColor; }
.doc ul:not([class]), .doc ol:not([class]) { list-style: none; display: flex; flex-direction: column; gap: 10px; max-width: 72ch; }
.doc ul:not([class]) li, .doc ol:not([class]) li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.65; color: var(--body); }
.doc ul:not([class]) li::before { content: "/"; position: absolute; left: 0; top: 0; color: var(--accent); font-family: var(--font-mono); }
.doc ol:not([class]) { counter-reset: li; }
.doc ol:not([class]) li { padding-left: 34px; counter-increment: li; }
.doc ol:not([class]) li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: 3px; font: 600 12px/1.6 var(--font-mono); color: var(--accent); letter-spacing: .04em; }
.doc .callout { max-width: none; line-height: 1.6; }
.doc .callout strong { color: var(--text); }
.doc .callout p { font-size: 15px; color: var(--dim); margin: 0; }

/* key and value box */
.kv { border: 1px solid var(--line); border-radius: var(--r3); background: var(--panel); overflow: hidden; }
.kv > div { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 8px 20px; padding: 13px 18px; border-top: 1px solid var(--line-row); align-items: baseline; }
.kv > div:first-child { border-top: 0; }
.kv dt { font-size: 14.5px; color: var(--muted); }
.kv dd { font-size: 15px; line-height: 1.55; color: var(--dim); min-width: 0; overflow-wrap: anywhere; }
.kv dd code { overflow-wrap: anywhere; }
@media (max-width: 639px) { .kv > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 16px; } }

/* code panel: head (label, chip, copy) over a pre */
.codepanel { border: 1px solid var(--line); border-radius: var(--r3); background: var(--bg-deep); overflow: hidden; }
.codepanel__head { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px 4px 16px; border-bottom: 1px solid var(--line); }
.codepanel__head .label { margin-right: auto; }
.codepanel pre { margin: 0; border: 0; border-radius: 0; background: transparent; }
.codepanel .tabs--line { border-bottom: 0; gap: 18px; margin-right: auto; min-width: 0; }
.codepanel .tabs--line [role="tab"] { padding: 12px 0 11px; min-height: 44px; font-size: 14px; }
.codepanel .tabs--line [role="tab"][aria-selected="true"]::after { bottom: -5px; }
.codepanel [role="tabpanel"] pre { border-top: 0; }
.code-c { color: var(--muted); }
.code-s { color: var(--accent); }
@media (max-width: 479px) { .codepanel__head .chip--illustrative { display: none; } }

/* field list: name, type, meaning */
.fields { border: 1px solid var(--line); border-radius: var(--r3); background: var(--panel); }
.fields > div { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 6px 20px; padding: 12px 18px; border-top: 1px solid var(--line-row); }
.fields > div:first-child { border-top: 0; }
.fields dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
.fields dt code { background: none; padding: 0; font-size: 13.5px; color: var(--text); overflow-wrap: anywhere; }
.fields dt .type { font: 400 12px/1.4 var(--font-mono); color: var(--faint); }
.fields dd { font-size: 14.5px; line-height: 1.55; color: var(--body); min-width: 0; }
@media (max-width: 639px) { .fields > div { grid-template-columns: minmax(0, 1fr); padding: 12px 16px; } }

/* endpoint list */
.endpoints { list-style: none; border: 1px solid var(--line); border-radius: var(--r3); background: var(--panel); }
.endpoints li { display: grid; grid-template-columns: 56px minmax(0, 250px) minmax(0, 1fr); gap: 6px 16px; align-items: baseline; padding: 12px 18px; border-top: 1px solid var(--line-row); }
.endpoints li:first-child { border-top: 0; }
.endpoints .verb { font: 600 11.5px/1.4 var(--font-mono); letter-spacing: .06em; color: var(--accent); }
.endpoints a.path, .endpoints .path { font: 500 13.5px/1.45 var(--font-mono); color: var(--text); overflow-wrap: anywhere; text-decoration: none; }
.endpoints a.path:hover { color: var(--accent); }
.endpoints .what { font-size: 14.5px; line-height: 1.5; color: var(--body); }
@media (max-width: 767px) {
  .endpoints li { grid-template-columns: 48px minmax(0, 1fr); padding: 12px 16px; }
  .endpoints a.path { display: inline-block; padding-block: 13px; margin-block: -13px; }
  .endpoints .what { grid-column: 2; }
}

/* live spec table: what, now, rule */
.spec { border: 1px solid var(--line); border-radius: var(--r3); background: var(--panel); }
.spec__row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1.1fr); gap: 4px 20px; padding: 12px 18px; border-top: 1px solid var(--line-row); align-items: baseline; }
.spec__row:first-child { border-top: 0; }
.spec__row--head { padding-block: 10px; }
.spec__row--head > * { font: 600 11px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.spec__what { font-size: 14.5px; color: var(--dim); }
.spec__now { font: 500 14px/1.45 var(--font-mono); color: var(--text); font-variant-numeric: tabular-nums; }
.spec__now .sk { width: 5em; }
.spec__now small { display: block; font: 400 12px/1.5 var(--font-mono); color: var(--warn); }
.spec__rule { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.spec__group { padding: 16px 18px 8px; border-top: 1px solid var(--line); }
.spec__group:first-child { border-top: 0; }
.spec-source { margin-top: 10px; }
@media (max-width: 639px) {
  .spec__row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; }
  .spec__row--head { display: none; }
  .spec__rule { grid-column: 1 / -1; }
  .spec__now { text-align: right; }
}

/* error table */
.ctable { border: 1px solid var(--line); border-radius: var(--r3); background: var(--panel); }
.ctable > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 20px; padding: 14px 18px; border-top: 1px solid var(--line-row); }
.ctable > div:first-child { border-top: 0; }
.ctable__status { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ctable__status b { font: 600 15px/1.3 var(--font-mono); color: var(--text); }
.ctable__status span { font: 400 12px/1.4 var(--font-mono); color: var(--faint); overflow-wrap: anywhere; }
.ctable__codes { display: flex; flex-wrap: wrap; gap: 6px; }
.ctable__codes code { font-size: 12.5px; }
.ctable__what { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--body); }
@media (max-width: 639px) { .ctable > div { grid-template-columns: minmax(0, 1fr); padding: 12px 16px; } .ctable__status { flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: baseline; } }

/* contract table (docs/api only: the one page besides /protocol/agents that may show addresses) */
.addr-list { border: 1px solid var(--line); border-radius: var(--r3); background: var(--panel); }
.addr-row { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 12px 12px 12px 18px; border-top: 1px solid var(--line-row); }
.addr-row:first-child { border-top: 0; }
.addr-row__name { font-size: 14.5px; font-weight: 600; color: var(--text); }
.addr-row__name span { display: block; font: 400 12px/1.4 var(--font-mono); color: var(--faint); font-weight: 400; }
.addr-row__addr { font: 500 13px/1.45 var(--font-mono); color: var(--dim); overflow-wrap: anywhere; min-width: 0; }
.addr-row__act { display: flex; align-items: center; gap: 4px; }
.addr-row__act a.icon-btn { color: var(--muted); }
.addr-row__act a.icon-btn:hover { color: var(--text); }
@media (max-width: 639px) {
  .addr-row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 8px 12px 16px; }
  .addr-row__addr { grid-column: 1 / 2; grid-row: 2; font-size: 12.5px; }
  .addr-row__act { grid-column: 2; grid-row: 1 / 3; }
}

.doc-state { max-width: 72ch; }
.doc-band { margin-top: 20px; }
.bandstate { display: inline-flex; align-items: baseline; gap: 9px; font: 600 15px/1.3 var(--font-mono); color: var(--text); }
.bandstate .live-dot { flex: none; transform: translateY(-2px); }
.bandstate--idle { color: var(--muted); font-weight: 500; }
.bandstate--warn { color: var(--warn); }
.bandstate--warn .live-dot { background: var(--warn); }
details.doc-more { border: 1px solid var(--line); border-radius: var(--r3); background: var(--panel); }
details.doc-more summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 16px; cursor: pointer; list-style: none; font: 600 14.5px/1.4 var(--font-body); color: var(--text); }
details.doc-more summary::-webkit-details-marker { display: none; }
details.doc-more summary .icon { color: var(--muted); transition: transform var(--t2) var(--ease-out); }
details.doc-more[open] summary .icon { transform: rotate(180deg); }
details.doc-more pre { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--r3) var(--r3); max-height: 460px; overflow: auto; }
details.doc-more .doc-more__body { padding: 0 16px 16px; }

.glossary { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.glossary > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.glossary dt { font: 600 15px/1.5 var(--font-body); color: var(--text); }
.glossary dd { font-size: 15px; line-height: 1.6; color: var(--body); }
@media (max-width: 639px) { .glossary > div { grid-template-columns: minmax(0, 1fr); } }

.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 64px; }
.pager a {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; min-height: 76px; border: 1px solid var(--line); border-radius: var(--r3);
  background: var(--panel); transition: border-color var(--t2), box-shadow var(--t2), transform var(--t2) var(--ease-out);
}
.pager a:hover { border-color: var(--line-strong); box-shadow: var(--ring); transform: translateY(-2px); }
.pager .label { display: flex; align-items: center; gap: 6px; }
.pager .label .icon { width: 14px; height: 14px; color: var(--accent); }
.pager__title { font: 600 16px/1.35 var(--font-body); color: var(--text); }
.pager__next { text-align: right; align-items: flex-end; grid-column: 2; }
@media (max-width: 479px) { .pager { grid-template-columns: minmax(0, 1fr); } .pager__next { grid-column: 1; } }

/* ------------------------------------------------------------------------------------------------ about */
.about-story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 760px; }
.about-story .meander--short { margin: 0; width: 96px; }
.about-story p {
  font: 400 22px/1.6 var(--font-serif); font-variation-settings: "opsz" 24; color: var(--dim); max-width: 62ch;
}
.about-story .epigraph { color: var(--text); font-size: 26px; line-height: 1.4; }
@media (max-width: 639px) { .about-story p { font-size: 19px; } .about-story .epigraph { font-size: 22px; } }

.principles .card { display: flex; flex-direction: column; gap: 12px; }
.principles .card .h3 + p { margin-top: 0; }
.principles .slashlist { border-left: 0; padding-left: 0; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); gap: 8px; }
.principles .slashlist li { font-size: 13.5px; }

.not-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r3); overflow: hidden; }
.not-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 22px 24px; background: var(--panel); }
.not-list .icon { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.not-list h3 { font: 700 18px/1.35 var(--font-body); color: var(--text); letter-spacing: -0.01em; }
.not-list p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--body); }
@media (min-width: 820px) { .not-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .not-list li { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 20px; } }

.talk { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.talk__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.talk .learn-sec__head { margin-bottom: 0; }
@media (max-width: 819px) { .talk { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 479px) { .talk__actions .btn { width: 100%; } }

/* ------------------------------------------------------------------------------------------------ roadmap */
.road { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
@media (min-width: 1024px) { .road { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
.road__col > .label { display: block; margin-bottom: 22px; }
.tl { list-style: none; position: relative; display: flex; flex-direction: column; }
.tl::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--accent-line); border-radius: 2px; }
.tl--next::before { width: 0; border-left: 2px dashed var(--line-strong); background: none; }
.tl__item { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 20px; padding-bottom: 32px; }
.tl__item:last-child { padding-bottom: 0; }
.tl__node { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; margin-top: 2px; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--line-strong); }
.tl__node::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.tl__item[data-state="live"] .tl__node { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.tl__item[data-state="live"] .tl__node::after { background: var(--accent); }
html.motion .tl__item[data-state="live"] .tl__node::after { animation: pulse 2.4s var(--ease-out) infinite; }
.tl__item[data-state="checking"] .tl__node { border-color: var(--line); }
.tl__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tl__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tl__title { font: 700 20px/1.3 var(--font-body); letter-spacing: -0.01em; color: var(--text); }
.tl__item[data-state="next"] .tl__title { color: var(--dim); }
.tl__text { font-size: 15px; line-height: 1.6; color: var(--body); max-width: 56ch; }
.tl__fact { font: 400 12px/1.6 var(--font-mono); color: var(--faint); }
.tl__fact:empty { display: none; }
.tl__state .sk { width: 52px; height: 24px; border-radius: var(--r-pill); display: inline-block; }
.tl__num { font: 600 12px/1 var(--font-mono); color: var(--muted); letter-spacing: .06em; }
.tl--next .tl__node { background: var(--bg); border-style: dashed; border-color: var(--line-input); }
.road-note { margin-top: 40px; }

/* ------------------------------------------------------------------------------------------------ trust pages */
.trust { border-top: 1px solid var(--line); }
.trust__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.trust__h { font: 700 22px/1.3 var(--font-body); letter-spacing: -0.015em; color: var(--text); }
.trust__h .trust__n { display: block; margin-bottom: 8px; font: 600 12px/1 var(--font-mono); letter-spacing: .08em; color: var(--accent); }
.trust__text { display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 72ch; }
.trust__text p, .trust__text li { font-size: 16px; line-height: 1.72; color: var(--body); }
.trust__text strong { color: var(--text); font-weight: 600; }
.trust__text a:not(.btn) { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.trust__text a:not(.btn):hover { color: var(--accent); text-decoration-color: currentColor; }
.trust__text ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.trust__text ul li { position: relative; padding-left: 22px; }
.trust__text ul li::before { content: "/"; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono); }
.trust__text code { overflow-wrap: anywhere; }
.trust__row--summary .trust__text { padding: 24px; border: 1px solid var(--accent-line); border-radius: var(--r3); background: linear-gradient(180deg, var(--accent-tint), var(--panel) 80%); }
.trust-live { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r3); background: var(--panel); }
.trust-live p { font-size: 14.5px; line-height: 1.55; color: var(--dim); flex: 1 1 260px; }
.trust-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.trust-toc a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 14px; color: var(--body); transition: color var(--t1), border-color var(--t1); }
.trust-toc a:hover { color: var(--text); border-color: var(--line-strong); }
@media (min-width: 820px) {
  .trust__row { grid-template-columns: minmax(180px, .5fr) minmax(0, 1fr); gap: 48px; padding-block: 48px; }
}
@media (max-width: 819px) { .trust-toc a { min-height: 44px; } }

/* ------------------------------------------------------------------------------------------------ touch sizes */
@media (max-width: 819px) {
  .docs-nav__group a { min-height: 44px; }
  .doc-h2 .anchor, .doc-h3 .anchor { display: none; }
  .pager a { min-height: 76px; }
  .addr-row__act .icon-btn { width: 44px; height: 44px; }
}
