/* Read-mode pages of the marketing site: docs, changelog, community, roadmap, legal (Mono + signal orange, see tokens.css and DESIGN.md).
   Comprehension and wayfinding first: generous measure, sticky indexes, no entrance animations. Builds on the grammar in site.css
   (.s-wrap, .s-h2, .s-lede, .panel, .frame, .chip, .s-link). Orange appears only as the focus ring, the current-section line on the
   indexes, the in-progress dot on the roadmap and a pressed vote. Every rule is scoped to classes that exist only in these views. */

/* ───────── 1. Page head ───────── */
.rd-head { display: grid; gap: 20px; justify-items: start; padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 56px); }
.rd-head .s-lede { max-width: 60ch; }
.rd-head-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.rd-head-foot .btn .icon { width: 16px; height: 16px; }
.rd-head-meta { color: var(--muted); font-size: .875rem; }
.rd-head-meta time { color: var(--text-2); }
.rd-head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: 32px clamp(32px, 5vw, 80px); justify-items: stretch; }
.rd-head-copy { display: grid; gap: 20px; justify-items: start; }
.rd-title { color: var(--text); font-size: clamp(2rem, 1.4vw + 1.4rem, 2.75rem); font-weight: 500; line-height: 1.08; letter-spacing: var(--tracking-display); text-wrap: balance; }
@media (max-width: 860px) { .rd-head--split { grid-template-columns: minmax(0, 1fr); } }

/* ───────── 2. Docs search (docs.js renders the results) ───────── */
html:not(.js) .docs-search { display: none; }
.docs-search { position: relative; width: 100%; }
.rd-find--big { max-width: 640px; margin-top: 8px; }
.rd-find-row { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 8px 0 12px; border-radius: var(--radius-inner); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted);
  transition-property: border-color, box-shadow, background-color; transition-duration: var(--dur); transition-timing-function: var(--ease); }
.rd-find--big .rd-find-row { min-height: 56px; padding-inline: 18px 12px; }
.rd-find-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--panel); }
.rd-find-row > .icon { flex: none; width: 17px; height: 17px; }
.rd-find--big .rd-find-row > .icon { width: 19px; height: 19px; }
.rd-find-in { flex: 1; min-width: 0; height: 40px; padding: 0; border: 0; background: none; color: var(--text); font: 400 .9375rem/1 var(--font-sans); outline: none; }
.rd-find--big .rd-find-in { height: 54px; font-size: 1.0625rem; }
.rd-find-in::placeholder { color: var(--muted); opacity: 1; }
body.site .rd-find-in:focus-visible { outline: none; }   /* the row carries the focus ring */
.rd-find-in::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.rd-kbd { flex: none; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); font: 500 .75rem/1 var(--font-mono); transition: opacity var(--dur-fast) var(--ease); }
.rd-find-row:focus-within .rd-kbd { opacity: 0; }
@media (hover: none) { .rd-kbd { display: none; } }
/* results: a floating list that grows from the field */
.docs-results { position: absolute; z-index: 30; inset: calc(100% + 6px) 0 auto; max-height: min(60vh, 440px); overflow: auto; overscroll-behavior: contain; padding: 6px; border-radius: var(--radius-panel); border: 1px solid var(--line-2); background: var(--panel); box-shadow: var(--shadow-float); transform-origin: top center; }
.docs-results:not([hidden]) { animation: rd-pop 180ms var(--ease); }
@keyframes rd-pop { from { opacity: 0; transform: translateY(-4px) scale(.985); } }
.docs-results a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 12px; border-radius: var(--radius-inner); color: var(--text); text-decoration: none; transition: background-color var(--dur-fast) var(--ease); }
.docs-results b { min-width: 0; font-weight: 500; font-size: .9375rem; letter-spacing: -.01em; }
.docs-results small { color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.docs-results span { grid-column: 1 / -1; min-width: 0; overflow: hidden; color: var(--text-2); font-size: .8125rem; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.docs-results a[aria-selected='true'] { background: var(--panel-2); }
.docs-results a:focus-visible { outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .docs-results a:hover { background: var(--panel-2); } }
.docs-none { padding: 14px 12px; color: var(--text-2); font-size: .875rem; }
@media (max-width: 480px) { .docs-results small { grid-column: 1 / -1; grid-row: 2; } }

/* ───────── 3. Docs home: one ruled row per topic ───────── */
.rd-topics { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rd-topic { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 14px clamp(24px, 4vw, 64px); padding-block: 28px; border-bottom: 1px solid var(--line); }
.rd-topic-t { font-size: 1.25rem; font-weight: 500; line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.rd-topic-t a { color: var(--text); text-decoration: none; text-decoration-color: var(--link-line); text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .rd-topic-t a:hover { text-decoration-line: underline; } }
.rd-count { margin-top: 6px; color: var(--muted); font-size: .875rem; }
.rd-topic-d { max-width: 62ch; margin-bottom: 12px; color: var(--text-2); }
.rd-topic-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; margin: 0; padding: 0; list-style: none; }
.rd-topic-docs a { display: flex; align-items: flex-start; gap: 10px; margin-inline: -8px; padding: 7px 8px; border-radius: var(--radius-control); color: var(--text); font-size: .9375rem; line-height: 1.4; text-decoration: none; transition: background-color var(--dur-fast) var(--ease); }
.rd-topic-docs .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--muted); transition: color var(--dur-fast) var(--ease); }
@media (hover: hover) and (pointer: fine) { .rd-topic-docs a:hover { background: var(--panel-2); } .rd-topic-docs a:hover .icon { color: var(--text); } }
@media (max-width: 760px) { .rd-topic { grid-template-columns: minmax(0, 1fr); padding-block: 24px; } .rd-topic-docs { grid-template-columns: minmax(0, 1fr); } }

/* ───────── 4. Docs article: index | article | on this page ───────── */
.rd-doc { display: grid; grid-template-columns: 232px minmax(0, 1fr) 208px; grid-template-areas: 'side article toc'; gap: 0 clamp(32px, 4vw, 64px); align-items: start; padding-top: clamp(28px, 4vw, 48px); }
.rd-side { grid-area: side; position: sticky; top: calc(var(--head-h) + 24px); display: grid; gap: 14px; }
.rd-side .docs-results { right: auto; width: min(440px, calc(100vw - 2 * var(--pad))); }
.rd-index { display: grid; align-content: start; gap: 2px; max-height: calc(100dvh - var(--head-h) - 120px); overflow: auto; overscroll-behavior: contain; padding: 2px 4px 24px 0; scrollbar-width: thin; }
.rd-index-all { display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-bottom: 6px; padding: 6px 0; color: var(--text-2); font-size: .875rem; font-weight: 500; text-decoration: none; transition: color var(--dur-fast) var(--ease); }
.rd-index-all .icon { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.rd-index-cat > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px; border-radius: var(--radius-control); color: var(--text); font-size: .875rem; font-weight: 500; letter-spacing: -.005em; cursor: pointer; list-style: none; transition: background-color var(--dur-fast) var(--ease); }
.rd-index-cat > summary::-webkit-details-marker { display: none; }
.rd-index-cat > summary .icon { flex: none; width: 14px; height: 14px; color: var(--muted); transform: rotate(-90deg); transition: transform var(--dur) var(--ease); }
.rd-index-cat[open] > summary .icon { transform: none; }
.rd-index-cat > summary:focus-visible { outline-offset: -2px; }
/* the article list hangs off a 1px rail; the current article lights its piece of the rail */
.rd-index-cat ul { margin: 2px 0 10px 8px; padding: 0; list-style: none; border-inline-start: 1px solid var(--line); }
.rd-index-cat a, .rd-toc li a { display: block; margin-inline-start: -1px; padding: 6px 8px 6px 14px; border-inline-start: 1px solid transparent; color: var(--text-2); font-size: .875rem; line-height: 1.4; text-decoration: none;
  transition-property: color, border-color; transition-duration: var(--dur-fast); transition-timing-function: var(--ease); }
.rd-index-cat a[aria-current='page'], .rd-toc li a[aria-current='true'] { border-inline-start-color: var(--accent); color: var(--text); font-weight: 500; }
.rd-index-cat a:focus-visible, .rd-toc li a:focus-visible { outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) {
  .rd-index-all:hover { color: var(--text); } .rd-index-all:hover .icon { transform: translateX(-2px); }
  .rd-index-cat > summary:hover { background: var(--panel-2); }
  .rd-index-cat a:hover, .rd-toc li a:hover { color: var(--text); }
}

.rd-article { grid-area: article; min-width: 0; padding-bottom: 8px; }
.rd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 16px; color: var(--muted); font-size: .875rem; }
.rd-crumbs a { color: var(--text-2); text-decoration: none; text-underline-offset: 3px; text-decoration-color: var(--link-line); }
.rd-crumbs .icon { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) { .rd-crumbs a:hover { color: var(--text); text-decoration-line: underline; } }
.rd-doc-lede { margin-top: 14px; max-width: 62ch; }
.rd-article .rd-prose { margin-top: 32px; }
.rd-updated { color: var(--muted); font-size: .875rem; }
.rd-updated time { color: var(--text-2); }
.rd-article .rd-updated { max-width: 70ch; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); }

/* On this page: a sticky list beside the article; a closed disclosure above it on smaller screens */
.rd-doc .rd-toc { grid-area: toc; position: sticky; top: calc(var(--head-h) + 24px); min-width: 0; }
.rd-toc-d { border-radius: var(--radius-inner); border: 1px solid var(--line); background: var(--panel); }
.rd-toc-d > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; color: var(--text); font-size: .875rem; font-weight: 500; cursor: pointer; list-style: none; }
.rd-toc-d > summary::-webkit-details-marker { display: none; }
.rd-toc-d > summary .icon { width: 15px; height: 15px; color: var(--muted); transition: transform var(--dur) var(--ease); }
.rd-toc-d[open] > summary .icon { transform: rotate(180deg); }
.rd-toc-d > summary:focus-visible { outline-offset: -2px; border-radius: var(--radius-inner); }
.rd-toc ul, .rd-toc ol { margin: 0 14px 14px; padding: 0; list-style: none; border-inline-start: 1px solid var(--line); }
.rd-toc li.l3 a { padding-inline-start: 26px; font-size: .8125rem; }
/* wide screens: always open, no box (only where ::details-content can force it open; elsewhere the disclosure stays usable) */
@supports selector(::details-content) {
  @media (min-width: 1200px) {
    .rd-doc .rd-toc-d { border: 0; border-radius: 0; background: none; }
    .rd-doc .rd-toc-d::details-content { content-visibility: visible; block-size: auto; }
    .rd-doc .rd-toc-d > summary { padding: 0 0 10px; pointer-events: none; color: var(--muted); font-size: .8125rem; font-weight: 500; }
    .rd-doc .rd-toc-d > summary .icon { display: none; }
    .rd-doc .rd-toc ul { margin: 0; }
  }
  @media (min-width: 1000px) {
    .rd-legal .rd-toc-d { border: 0; border-radius: 0; background: none; }
    .rd-legal .rd-toc-d::details-content { content-visibility: visible; block-size: auto; }
    .rd-legal .rd-toc-d > summary { padding: 0 0 10px; pointer-events: none; color: var(--muted); font-size: .8125rem; font-weight: 500; }
    .rd-legal .rd-toc-d > summary .icon { display: none; }
    .rd-legal .rd-toc ol { margin: 0; }
  }
}
@media (max-width: 1199px) {
  .rd-doc { grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: 'side toc' 'side article'; }
  .rd-doc .rd-toc { position: static; max-width: 70ch; margin-bottom: 28px; }
}
@media (max-width: 899px) {
  .rd-doc { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'search' 'toc' 'article' 'index'; padding-top: 24px; }
  .rd-side { display: contents; }
  .rd-side > .docs-search { grid-area: search; margin-bottom: 24px; }
  .rd-side .docs-results { right: 0; width: auto; }
  .rd-index { grid-area: index; max-height: none; overflow: visible; margin-top: 48px; padding: 24px 0 0; border-top: 1px solid var(--line); }
}

/* Previous / next */
.rd-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 70ch; margin-top: 24px; }
.rd-pg { display: grid; align-content: start; gap: 4px; padding: 16px 18px; border-radius: var(--radius-panel); border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none;
  transition-property: border-color, background-color, transform; transition-duration: var(--dur-fast); transition-timing-function: var(--ease); }
.rd-pg:active { transform: scale(.985); }
.rd-pg--next { grid-column: 2; justify-items: end; text-align: end; }
.rd-pg-l { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8125rem; }
.rd-pg-l .icon { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.rd-pg-t { font-weight: 500; letter-spacing: -.01em; line-height: 1.35; }
.rd-pg-c { color: var(--text-2); font-size: .8125rem; }
@media (hover: hover) and (pointer: fine) {
  .rd-pg:hover { border-color: var(--line-2); background: var(--panel-2); }
  .rd-pg:hover .rd-pg-l .icon { transform: translateX(-3px); } .rd-pg--next:hover .rd-pg-l .icon { transform: translateX(3px); }
}
@media (max-width: 560px) { .rd-pager { grid-template-columns: minmax(0, 1fr); } .rd-pg--next { grid-column: auto; } }

/* ───────── 5. Rendered Markdown (app/Services/Markdown.php) ───────── */
.rd-prose { --prose: color-mix(in oklab, var(--text) 84%, var(--bg)); max-width: 70ch; color: var(--prose); font-size: 1.0625rem; line-height: 1.7; overflow-wrap: break-word; }
.rd-prose > * + * { margin-top: 1.1em; }
.rd-prose :is(h1, h2, h3, h4) { color: var(--text); font-weight: 500; text-wrap: balance; scroll-margin-top: calc(var(--head-h) + 24px); }
.rd-prose h1 { margin-top: 2em; font-size: 1.5rem; font-weight: 500; line-height: 1.2; letter-spacing: var(--tracking-heading); }
.rd-prose h2 { margin-top: 2.2em; font-size: 1.5rem; line-height: 1.25; letter-spacing: -.02em; }
.rd-prose h3 { margin-top: 1.8em; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -.015em; }
.rd-prose h4 { margin-top: 1.6em; font-size: 1rem; line-height: 1.4; }
.rd-prose > :first-child { margin-top: 0; }
.rd-prose :is(h1, h2, h3, h4) + * { margin-top: .6em; }
.rd-prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: text-decoration-color var(--dur) var(--ease); }
@media (hover: hover) and (pointer: fine) { .rd-prose a:hover { text-decoration-color: currentColor; } }
.rd-prose strong { color: var(--text); font-weight: 500; }
.rd-prose :is(ul, ol) { padding-inline-start: 1.35em; }
.rd-prose li + li, .rd-prose li > :is(ul, ol) { margin-top: .4em; }
.rd-prose li::marker { color: var(--muted); }
.rd-prose ol > li::marker { font-family: var(--font-mono); font-size: .875em; }
.rd-prose :not(pre) > code { padding: .1em .38em; border-radius: 5px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: 400 .85em/1.4 var(--font-mono); overflow-wrap: anywhere; }
.rd-prose pre { max-width: 100%; margin-block: 1.4em; padding: 16px 18px; border-radius: var(--radius-inner); border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: 400 .875rem/1.65 var(--font-mono); tab-size: 2; overflow-x: auto; overscroll-behavior-x: contain; }
.rd-prose pre code { font: inherit; }
.rd-prose .md-table { max-width: 100%; margin-block: 1.4em; overflow-x: auto; overscroll-behavior-x: contain; border-radius: var(--radius-inner); border: 1px solid var(--line); background: var(--panel); }
.rd-prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.rd-prose :is(th, td) { min-width: 9ch; padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.rd-prose td code { white-space: nowrap; overflow-wrap: normal; }   /* the table scrolls instead of breaking identifiers */
.rd-prose th { background: var(--panel-2); color: var(--text); font-size: .8125rem; font-weight: 500; white-space: nowrap; }
.rd-prose tbody tr:last-child > * { border-bottom: 0; }
.rd-prose blockquote { margin-inline: 0; padding: 14px 18px; border-radius: var(--radius-inner); border: 1px solid var(--line); background: var(--panel); color: var(--text-2); }
.rd-prose blockquote > * + * { margin-top: .6em; }
.rd-prose img { display: block; max-width: 100%; border-radius: var(--radius-inner); outline: 1px solid var(--line); outline-offset: -1px; }
.rd-prose hr { margin-block: 2.4em; border: 0; border-top: 1px solid var(--line); }

/* ───────── 6. Changelog: date and version beside the notes ───────── */
.rd-log { display: grid; }
.rd-entry { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px clamp(24px, 4vw, 64px); padding-block: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.rd-entry-meta { position: sticky; top: calc(var(--head-h) + 24px); align-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rd-entry-meta > time { flex-basis: 100%; color: var(--text-2); font-size: .875rem; }
.rd-entry:target .rd-entry-meta > time { color: var(--accent-text); }
.rd-ver { color: var(--text); }
.rd-ver .tnum { font-size: .8125rem; }
.rd-entry-body { min-width: 0; }
.rd-entry-h { max-width: 34ch; font-size: clamp(1.25rem, .6vw + 1rem, 1.5rem); font-weight: 500; line-height: 1.2; letter-spacing: var(--tracking-heading); text-wrap: balance; }
.rd-entry-h a { color: var(--text); text-decoration: none; }
.rd-entry-h .icon { width: 18px; height: 18px; margin-inline-start: 8px; color: var(--muted); vertical-align: -1px; opacity: 0; transition: opacity var(--dur-fast) var(--ease); }
.rd-entry-h a:focus-visible .icon { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .rd-entry-h a:hover .icon { opacity: 1; } }
.rd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rd-shot { max-width: 720px; margin-top: 24px; }
.rd-entry .rd-prose { margin-top: 20px; }
.rd-pager--log { margin-top: 8px; max-width: none; }
@media (max-width: 760px) { .rd-entry { grid-template-columns: minmax(0, 1fr); } .rd-entry-meta { position: static; } .rd-entry-meta > time { flex-basis: auto; margin-inline-end: 4px; } }

/* ───────── 7. Empty states and link lists (community, docs, changelog) ───────── */
.rd-blank { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border-radius: var(--radius-panel); border: 1px dashed var(--line-2); color: var(--text-2); }
.rd-blank > .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--muted); }
.rd-blank p { max-width: 62ch; }
.rd-blank b { color: var(--text); font-weight: 500; }
.rd-blank a, .rd-ask-gate a:not(.btn) { color: var(--text); text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.rd-links { display: grid; margin: 0; padding: 6px; list-style: none; }
.rd-links a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px; border-radius: var(--radius-inner); color: var(--text); text-decoration: none; transition: background-color var(--dur-fast) var(--ease); }
.rd-links a:focus-visible { outline-offset: -2px; }
.rd-links-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-control); border: 1px solid var(--line); background: var(--bg-2); color: var(--text-2); }
.rd-links-ic .icon { width: 17px; height: 17px; }
.rd-links b { display: block; font-size: .9375rem; font-weight: 500; letter-spacing: -.01em; }
.rd-links small { display: block; margin-top: 2px; color: var(--text-2); font-size: .8125rem; line-height: 1.4; }
.rd-links a > .icon { width: 16px; height: 16px; color: var(--muted); transition-property: transform, color; transition-duration: var(--dur); transition-timing-function: var(--ease); }
@media (hover: hover) and (pointer: fine) { .rd-links a:hover { background: var(--panel-2); } .rd-links a:hover > .icon { color: var(--text); transform: translateX(3px); } }

/* Community rows: heading left, content right */
.rd-rows { display: grid; }
.rd-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px clamp(24px, 4vw, 64px); padding-block: 40px; border-top: 1px solid var(--line); }
.rd-row-h { font-size: 1.25rem; font-weight: 500; line-height: 1.25; letter-spacing: -.02em; }
.rd-row-v { min-width: 0; }
.rd-events { display: grid; margin: 0; padding: 0; list-style: none; }
.rd-events li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 8px 20px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.rd-events li:first-child { padding-top: 0; }
.rd-ev-when { display: grid; gap: 2px; color: var(--text); font-size: .875rem; }
.rd-ev-when span { color: var(--muted); }
.rd-ev-t { font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em; }
.rd-ev-t a { color: var(--text); text-decoration-color: var(--link-line); text-underline-offset: 3px; }
.rd-ev-t .icon { width: 15px; height: 15px; margin-inline-start: 4px; color: var(--muted); }
.rd-events p { margin-top: 4px; color: var(--text-2); }
@media (max-width: 760px) { .rd-row { grid-template-columns: minmax(0, 1fr); padding-block: 32px; } .rd-events li { grid-template-columns: minmax(0, 1fr); } }

/* ───────── 8. Roadmap: three lanes, request cards, the request form ───────── */
.rd-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(16px, 2vw, 24px); align-items: start; }
.rd-lane { display: grid; gap: 10px; min-width: 0; }
.rd-lane-h { display: flex; align-items: center; gap: 10px; padding: 0 4px 12px; border-bottom: 1px solid var(--line); font-size: 1rem; font-weight: 500; letter-spacing: -.01em; }
.rd-lane-h .tnum { margin-inline-start: auto; color: var(--muted); font-size: .875rem; font-weight: 500; }
/* lane dots borrow the version rail: hollow = not started, orange = live work, grey = done */
.rd-lane-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); }
.rd-lane[data-status='building'] .rd-lane-dot { background: var(--accent); box-shadow: none; }
.rd-lane[data-status='shipped'] .rd-lane-dot { background: var(--muted); box-shadow: none; }
.rd-lane-empty { padding: 18px 16px; border-radius: var(--radius-panel); border: 1px dashed var(--line-2); color: var(--muted); font-size: .875rem; text-align: center; }
.rd-req { display: grid; gap: 10px; padding: 16px 16px 12px; scroll-margin-top: calc(var(--head-h) + 24px); }
.rd-req:target { border-color: var(--line-2); }
.rd-req-h { font-size: 1rem; font-weight: 500; line-height: 1.35; letter-spacing: -.01em; text-wrap: pretty; }
.rd-req-b { color: var(--text-2); font-size: .9375rem; line-height: 1.5; }
.rd-req-note { display: grid; gap: 4px; padding: 10px 12px; border-radius: var(--radius-control); border: 1px solid var(--line); background: var(--bg-2); color: var(--text-2); font-size: .875rem; line-height: 1.5; }
.rd-req-note b { color: var(--text); font-size: .8125rem; font-weight: 500; }
.rd-req-foot { display: flex; align-items: center; gap: 10px; min-height: 34px; margin-top: 2px; }
.rd-req-when { margin-inline-start: auto; color: var(--muted); font-size: .8125rem; }
.rd-req-n, .rd-req-done { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); font-size: .8125rem; }
.rd-req-n .icon, .rd-req-done .icon { width: 14px; height: 14px; }
.rd-req-done .icon { color: var(--text); }
.vote { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px 0 9px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: 500 .875rem/1 var(--font-sans); text-decoration: none; cursor: pointer;
  transition-property: border-color, background-color, color, transform; transition-duration: var(--dur-fast); transition-timing-function: var(--ease); }
.vote .icon { width: 15px; height: 15px; color: var(--text-2); transition: transform var(--dur) var(--ease), color var(--dur-fast) var(--ease); }
.vote .tnum { font-size: .8125rem; }
.vote:active { transform: scale(.97); }
.vote[aria-pressed='true'] { border-color: var(--accent); background: var(--panel); }
.vote[aria-pressed='true'] .icon { color: var(--accent-text); }
.vote:disabled { cursor: progress; opacity: .6; }
@media (hover: hover) and (pointer: fine) { .vote:hover { border-color: var(--muted); } .vote:hover .icon { transform: translateY(-1px); color: var(--text); } .vote[aria-pressed='true']:hover .icon { color: var(--accent-text); } }
@media (max-width: 860px) { .rd-board { grid-template-columns: minmax(0, 1fr); } }

.rd-ask { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; padding-top: clamp(64px, 8vw, 112px); }
.rd-ask-copy { display: grid; gap: 14px; align-content: start; position: sticky; top: calc(var(--head-h) + 32px); }
.rd-ask-lede { max-width: 46ch; color: var(--text-2); font-size: 1.0625rem; text-wrap: pretty; }
.rd-mine { margin-top: 14px; }
.rd-mine-h { margin-bottom: 4px; font-size: .9375rem; font-weight: 500; }
.rd-mine ul { margin: 0; padding: 0; list-style: none; }
.rd-mine li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.rd-state[data-state='building']::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.rd-ask-form { display: grid; gap: 18px; padding: clamp(20px, 3vw, 28px); }
.rd-ask-form .hint { margin-top: 2px; }
.rd-ask-err { align-items: center; padding: 10px 12px; border-radius: var(--radius-inner); background: var(--danger-soft); font-size: .875rem; }
.rd-ask-err .icon { flex: none; width: 16px; height: 16px; }
.rd-ask-act { display: flex; }
.rd-ask-gate { gap: 20px; }
.rd-ask-gate > p:first-child { max-width: 48ch; color: var(--text-2); font-size: 1.0625rem; }
@media (max-width: 860px) { .rd-ask { grid-template-columns: minmax(0, 1fr); } .rd-ask-copy { position: static; } }

/* ───────── 9. Legal: section index beside a long document ───────── */
.rd-legal { display: grid; grid-template-columns: 232px minmax(0, 1fr); grid-template-areas: 'side head' 'side body'; gap: 0 clamp(32px, 5vw, 80px); align-items: start; padding-top: clamp(40px, 6vw, 88px); }
.rd-legal-head { grid-area: head; display: grid; gap: 12px; max-width: 70ch; margin-bottom: clamp(28px, 4vw, 44px); padding-bottom: clamp(24px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.rd-legal-side { grid-area: side; position: sticky; top: calc(var(--head-h) + 24px); display: grid; gap: 28px; max-height: calc(100dvh - var(--head-h) - 48px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.rd-legal-docs { display: grid; gap: 2px; }
.rd-legal-docs a { padding: 8px 12px; border-radius: var(--radius-control); color: var(--text-2); font-size: .9375rem; font-weight: 500; text-decoration: none; transition-property: color, background-color; transition-duration: var(--dur-fast); transition-timing-function: var(--ease); }
.rd-legal-docs a[aria-current='page'] { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
.rd-legal-docs a:focus-visible { outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .rd-legal-docs a:not([aria-current]):hover { color: var(--text); background: var(--panel-2); } }
.rd-legal-body { grid-area: body; }
@media (max-width: 999px) {
  .rd-legal { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'head' 'side' 'body'; }
  .rd-legal-side { position: static; max-height: none; overflow: visible; gap: 16px; margin-bottom: 32px; }
  .rd-legal-docs { display: flex; flex-wrap: wrap; gap: 6px; }
  .rd-legal-docs a { padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-size: .875rem; }
  .rd-legal-docs a[aria-current='page'] { box-shadow: none; border-color: var(--line-2); }
  .rd-legal-head { margin-bottom: 24px; }
}

/* ───────── 10. Reduced motion: final states ───────── */
@media (prefers-reduced-motion: reduce) {
  .docs-results:not([hidden]) { animation: none; }
  .rd-index-cat > summary .icon, .rd-toc-d > summary .icon, .rd-pg-l .icon, .rd-links a > .icon, .vote .icon, .rd-index-all .icon { transition: none; }
}
