/* ============================================================
   ARPIA Docs (/docs/), rendered by tools/build_docs.py.
   Loaded after arpia-v2.css: the site's tokens, fonts, header and footer
   are reused; everything here is the documentation shell and the prose.
   Layout: fixed site header, then sidebar | article | "on this page".
   ============================================================ */

.docs-body { background: var(--paper); }
.docs-body header .cta-btn { display: none; }                 /* the docs are not a sales page */
.docs-body header .mobile-menu-cta { display: none !important; }

/* ---------- shell ---------- */
.docs-shell { display: grid; grid-template-columns: 272px minmax(0, 1fr) 232px; gap: 0 2.5rem; max-width: 1440px; margin: 0 auto; padding: 5.2rem 2rem 4rem; min-height: 80vh; }
.docs-main { min-width: 0; padding-top: 1.6rem; }
.docs-is-home .docs-shell { grid-template-columns: 272px minmax(0, 1fr); }
.docs-is-home .docs-toc { display: none; }

/* ---------- sidebar ---------- */
.docs-side { position: sticky; top: 4.6rem; align-self: start; max-height: calc(100vh - 4.6rem); overflow-y: auto; overscroll-behavior: contain; padding: 1.6rem 1rem 2rem 0; border-right: 1px solid var(--line-light); scrollbar-width: thin; }
.docs-search-btn { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--line-light); border-radius: 8px; background: var(--white); color: var(--ink-soft); font-size: 0.9rem; text-align: left; transition: border-color 0.2s; }
.docs-search-btn:hover, .docs-search-btn:focus-visible { border-color: var(--gold); outline: none; }
.docs-search-btn svg, .docs-topbar-search svg, .docs-dialog-form svg, .docs-home-search svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.docs-search-btn span { flex: 1; }
.docs-search-btn kbd, .docs-home-search kbd, .docs-dialog-foot kbd { font-family: inherit; font-size: 0.72rem; color: var(--ink-soft); border: 1px solid var(--line-light); border-bottom-width: 2px; border-radius: 4px; padding: 0.05rem 0.4rem; background: var(--paper); }
.docs-nav { margin-top: 1.2rem; }
.docs-sec + .docs-sec { margin-top: 0.35rem; }
.docs-sec-h { display: flex; align-items: center; width: 100%; gap: 0.5rem; padding: 0.5rem 0.4rem; color: var(--ink); font-size: 0.84rem; font-weight: 600; letter-spacing: 0.02em; text-align: left; border-radius: 6px; }
.docs-sec-h::after { content: ""; width: 0.4rem; height: 0.4rem; border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft); transform: rotate(-45deg); transition: transform 0.2s; flex: none; margin: 0 0.3rem 0 0.2rem; }
.docs-sec.is-open .docs-sec-h::after { transform: rotate(45deg); }
.docs-sec-h:hover { background: var(--paper-2); }
.docs-sec-h:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.docs-sec-n { margin-left: auto; color: var(--mist); font-weight: 400; font-size: 0.74rem; font-variant-numeric: tabular-nums; }
.docs-sec-h { flex-wrap: nowrap; }
.docs-sec > ul { display: none; margin: 0.15rem 0 0.4rem; padding: 0; list-style: none; }
.docs-sec.is-open > ul { display: block; }
.docs-nav li { position: relative; }
.docs-nav a { display: block; padding: 0.38rem 0.6rem 0.38rem 1.25rem; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.4; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; }
.docs-nav li.has-children > a { padding-right: 2rem; }
.docs-nav a:hover { color: var(--ink); background: var(--paper-2); }
.docs-nav a.is-current { color: var(--ink); font-weight: 600; border-left-color: var(--gold); background: var(--white); }
.docs-twisty { position: absolute; right: 0.3rem; top: 0.3rem; width: 1.5rem; height: 1.5rem; border-radius: 4px; display: grid; place-items: center; }
.docs-twisty::before { content: ""; width: 0.35rem; height: 0.35rem; border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft); transform: rotate(-45deg); transition: transform 0.2s; }
.docs-nav li.is-open > .docs-twisty::before { transform: rotate(45deg); }
.docs-twisty:hover { background: var(--line-light); }
.docs-twisty:focus-visible { outline: 2px solid var(--gold); }
.docs-sub { display: none; list-style: none; margin: 0 0 0.2rem; padding: 0 0 0 0.9rem; }
.docs-nav li.is-open > .docs-sub { display: block; }
.docs-sub a { font-size: 0.84rem; padding-top: 0.3rem; padding-bottom: 0.3rem; }

/* ---------- top bar (phones) and breadcrumbs ---------- */
.docs-topbar { display: none; }
.docs-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; color: var(--ink-soft); font-size: 0.82rem; margin-bottom: 1.4rem; }
.docs-crumbs a { color: var(--ink-soft); }
.docs-crumbs a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.docs-crumbs [aria-current] { color: var(--ink); }
.docs-crumb-sep { color: var(--line-light); }

/* ---------- article ---------- */
.docs-article { max-width: 800px; }
.docs-head { padding-bottom: 1.6rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--line-light); }
.docs-head h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.12; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 0.7rem; text-wrap: balance; }
.docs-excerpt { color: var(--ink-soft); font-size: 1.1rem; line-height: 1.6; margin: 0 0 0.6rem; }
.docs-meta { color: var(--mist); font-size: 0.82rem; margin: 0; }
.docs-kicker { color: var(--gold); font-size: 0.74rem; letter-spacing: 0.2em; font-weight: 600; margin-bottom: 0.9rem; }

/* prose */
.docs-prose { color: var(--ink); font-size: 1.02rem; line-height: 1.72; }
.docs-prose > * + * { margin-top: 1rem; }
.docs-prose h2, .docs-prose h3, .docs-prose h4 { position: relative; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; scroll-margin-top: 5.6rem; text-wrap: balance; }
.docs-prose h2 { font-size: 1.55rem; line-height: 1.25; margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line-light); }
.docs-prose h3 { font-size: 1.22rem; line-height: 1.3; margin-top: 2rem; }
.docs-prose h4 { font-size: 1.02rem; margin-top: 1.6rem; }
.docs-prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-anchor { margin-left: 0.4rem; color: var(--mist); font-weight: 400; opacity: 0; text-decoration: none; transition: opacity 0.15s; }
.docs-prose h2:hover .doc-anchor, .docs-prose h3:hover .doc-anchor, .docs-prose h4:hover .doc-anchor, .doc-anchor:focus-visible { opacity: 1; }
.doc-anchor:hover { color: var(--gold); }
.docs-prose p { margin-top: 1rem; }
.docs-prose a:not(.doc-anchor) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.docs-prose a:not(.doc-anchor):hover { color: #8a6417; text-decoration-thickness: 2px; }
.docs-prose ul, .docs-prose ol { padding-left: 1.5rem; margin-top: 0.8rem; }
.docs-prose ul { list-style: disc; }
.docs-prose ol { list-style: decimal; }
.docs-prose li { margin: 0.35rem 0; }
.docs-prose li > ul, .docs-prose li > ol { margin-top: 0.3rem; }
.docs-prose li::marker { color: var(--ink-soft); }
.docs-prose hr { border: 0; border-top: 1px solid var(--line-light); margin: 2.4rem 0; }
.docs-prose strong { font-weight: 600; }
.docs-prose blockquote { margin: 1.2rem 0; padding: 0.2rem 0 0.2rem 1.2rem; border-left: 3px solid var(--line-light); color: var(--ink-soft); }
.docs-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; background: #ECE8DF; border-radius: 4px; padding: 0.12em 0.4em; color: #3b2f12; }
.docs-prose pre { position: relative; background: #F1EEE7; border: 1px solid var(--line-light); border-radius: 10px; padding: 1rem 1.1rem; overflow-x: auto; font-size: 0.86rem; line-height: 1.6; }
.docs-prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.docs-prose .hl { background: transparent; }
.docs-prose .hl pre { margin: 0; }
.doc-copy { position: absolute; top: 0.55rem; right: 0.55rem; padding: 0.25rem 0.6rem; border: 1px solid var(--line-light); border-radius: 6px; background: var(--white); color: var(--ink-soft); font-size: 0.74rem; opacity: 0; transition: opacity 0.15s; }
.docs-prose pre:hover .doc-copy, .doc-copy:focus-visible, .doc-copy.is-done { opacity: 1; }
.doc-copy:hover { color: var(--ink); border-color: var(--gold); }
.doc-copy.is-done { color: #1f7a3a; border-color: #1f7a3a; }
.doc-table { overflow-x: auto; margin-top: 1.2rem; border: 1px solid var(--line-light); border-radius: 10px; }
.docs-prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.5; }
.docs-prose th, .docs-prose td { padding: 0.65rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-light); }
.docs-prose th { background: var(--paper-2); font-weight: 600; color: var(--ink); white-space: nowrap; }
.docs-prose tr:last-child td { border-bottom: 0; }
.docs-prose img { max-width: 100%; height: auto; }

/* figures: screenshots and screen recordings */
.doc-fig { margin: 1.6rem auto; text-align: center; }
.doc-fig img, .doc-fig video { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 10px; border: 1px solid var(--line-light); background: var(--white); cursor: zoom-in; }
.doc-fig video { cursor: default; }
.doc-fig.is-border img { border-color: #cfc9ba; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.doc-fig.is-left { float: left; margin: 0.4rem 1.4rem 1rem 0; max-width: 46%; }
.doc-fig.is-right { float: right; margin: 0.4rem 0 1rem 1.4rem; max-width: 46%; }
.doc-fig figcaption { margin-top: 0.6rem; color: var(--ink-soft); font-size: 0.86rem; line-height: 1.5; }
.doc-fig-missing { display: inline-block; padding: 0.8rem 1rem; border: 1px dashed var(--line-light); border-radius: 8px; color: var(--mist); font-size: 0.85rem; }
.mobile-image { display: inline-block; max-width: 48%; margin: 0.6rem 0.4%; border-radius: 10px; border: 1px solid var(--line-light); vertical-align: top; }

/* callouts: ReadMe's emoji blockquotes */
.doc-callout { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.9rem; margin: 1.4rem 0; padding: 0.9rem 1.1rem; border-radius: 10px; border: 1px solid var(--line-light); border-left-width: 4px; background: var(--white); }
.doc-callout-k { grid-column: 1; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 0.25rem; }
.doc-callout-b { grid-column: 2; color: var(--ink); font-size: 0.96rem; line-height: 1.6; }
.doc-callout-b > p:first-child { margin-top: 0; }
.doc-callout-b > :last-child { margin-bottom: 0; }
.doc-callout.is-info { border-left-color: #3b6fb6; } .doc-callout.is-info .doc-callout-k { color: #3b6fb6; }
.doc-callout.is-tip { border-left-color: var(--green); } .doc-callout.is-tip .doc-callout-k { color: #1f7a3a; }
.doc-callout.is-warn { border-left-color: var(--gold); background: #FBF6EA; } .doc-callout.is-warn .doc-callout-k { color: #8a6417; }
.doc-callout.is-danger { border-left-color: var(--red); background: #FBF0EE; } .doc-callout.is-danger .doc-callout-k { color: #a83a3a; }
.doc-callout.is-note { border-left-color: var(--ink-soft); } .doc-callout.is-note .doc-callout-k { color: var(--ink-soft); }

/* previous / next */
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 800px; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-light); }
.docs-pager a { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 1.1rem; border: 1px solid var(--line-light); border-radius: 10px; background: var(--white); color: var(--ink); transition: border-color 0.2s; }
.docs-pager a:hover { border-color: var(--gold); }
.docs-pager a span { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.docs-pager a strong { font-weight: 500; font-size: 0.95rem; line-height: 1.35; }
.docs-pager-next { text-align: right; align-items: flex-end; }

/* ---------- on this page ---------- */
.docs-toc { position: sticky; top: 4.6rem; align-self: start; max-height: calc(100vh - 4.6rem); overflow-y: auto; padding: 1.8rem 0 2rem 0.2rem; font-size: 0.84rem; }
.docs-toc-h { color: var(--ink); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.7rem; }
.docs-toc-list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-light); }
.docs-toc-list a { display: block; padding: 0.3rem 0 0.3rem 0.9rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-soft); line-height: 1.4; }
.docs-toc-list li.l3 a { padding-left: 1.7rem; font-size: 0.8rem; }
.docs-toc-list a:hover { color: var(--ink); }
.docs-toc-list a.is-active { color: var(--ink); border-left-color: var(--gold); font-weight: 500; }

/* ---------- front door ---------- */
.docs-home .docs-head { border-bottom: 0; padding-bottom: 0.4rem; }
.docs-home .docs-head h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 400; }
.docs-home-search { display: flex; align-items: center; gap: 0.7rem; width: 100%; max-width: 560px; padding: 0.85rem 1rem; margin: 1.4rem 0 1.2rem; border: 1px solid var(--line-light); border-radius: 10px; background: var(--white); color: var(--ink-soft); font-size: 1rem; text-align: left; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.docs-home-search:hover, .docs-home-search:focus-visible { border-color: var(--gold); outline: none; }
.docs-home-search span { flex: 1; }
.docs-start { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.docs-start a { display: inline-block; padding: 0.4rem 0.9rem; border: 1px solid var(--line-light); border-radius: 999px; color: var(--ink); font-size: 0.86rem; background: var(--white); }
.docs-start a:hover { border-color: var(--gold); }
.docs-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 2.2rem; }
.docs-card { background: var(--white); border: 1px solid var(--line-light); border-radius: 14px; padding: 1.3rem 1.4rem 1.1rem; }
.docs-card h2 { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 0.8rem; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.docs-ico { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.docs-card h2 .docs-ico { width: 2.1rem; height: 2.1rem; padding: 0.42rem; box-sizing: border-box; border-radius: 9px; background: #FBF4E4; color: #8a6417; }
.docs-sec-h .docs-ico { width: 1rem; height: 1rem; color: var(--ink-soft); }
.docs-card h2 a { color: var(--ink); }
.docs-card h2 a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.docs-card-n { margin-left: auto; color: var(--mist); font-size: 0.76rem; font-weight: 400; white-space: nowrap; }
.docs-card ul { list-style: none; margin: 0; padding: 0; columns: 1; }
.docs-card li { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.3rem 0; border-top: 1px solid var(--paper-2); font-size: 0.9rem; }
.docs-card li a { color: var(--ink-soft); }
.docs-card li a:hover { color: var(--ink); }
.docs-card li span { color: var(--mist); font-size: 0.76rem; font-variant-numeric: tabular-nums; }
.docs-card-more { display: inline-block; margin-top: 0.7rem; color: var(--ink); font-size: 0.86rem; font-weight: 500; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* ---------- search dialog ---------- */
.docs-dialog { width: min(680px, calc(100vw - 2rem)); margin: 8vh auto 0; padding: 0; border: 1px solid var(--line-light); border-radius: 14px; background: var(--white); color: var(--ink); box-shadow: 0 40px 100px rgba(0,0,0,0.35); }
.docs-dialog::backdrop { background: rgba(10,10,10,0.55); backdrop-filter: blur(3px); }
.docs-dialog-form { display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line-light); color: var(--ink-soft); }
.docs-dialog-form input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-family: inherit; font-size: 1.05rem; color: var(--ink); }
.docs-dialog-form input::-webkit-search-cancel-button { display: none; }
.docs-dialog-x { font-size: 0.72rem; color: var(--ink-soft); border: 1px solid var(--line-light); border-radius: 4px; padding: 0.15rem 0.45rem; }
.docs-results { max-height: min(60vh, 520px); overflow-y: auto; padding: 0.4rem; }
.docs-results:empty { display: none; }
.docs-result { display: block; padding: 0.7rem 0.8rem; border-radius: 8px; color: var(--ink); }
.docs-result:hover, .docs-result.is-active { background: var(--paper); }
.docs-result-s { display: block; color: var(--mist); font-size: 0.74rem; letter-spacing: 0.04em; margin-bottom: 0.1rem; }
.docs-result-t { display: block; font-weight: 600; font-size: 0.98rem; }
.docs-result-h { display: block; color: var(--ink-soft); font-size: 0.84rem; }
.docs-result-b { display: block; color: var(--ink-soft); font-size: 0.84rem; line-height: 1.45; margin-top: 0.2rem; }
.docs-result mark { background: rgba(217,164,65,0.35); color: inherit; border-radius: 2px; padding: 0 0.1em; }
.docs-results-empty, .docs-results-hint { padding: 1.2rem 1rem; color: var(--ink-soft); font-size: 0.92rem; }
.docs-dialog-foot { display: flex; gap: 1.2rem; padding: 0.55rem 1rem; border-top: 1px solid var(--line-light); color: var(--mist); font-size: 0.74rem; }
.docs-dialog-foot kbd { margin-right: 0.15rem; }

/* ---------- lightbox ---------- */
.docs-lightbox[hidden] { display: none; }
.docs-lightbox { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 2rem; background: rgba(10,10,10,0.88); cursor: zoom-out; }
.docs-lightbox img:not([src]) { display: none; }
.docs-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.docs-lightbox-x { position: absolute; top: 1rem; right: 1.2rem; color: var(--white); font-size: 2rem; line-height: 1; }

/* ---------- phones and tablets ---------- */
.docs-backdrop { display: none; }
@media (max-width: 1180px) {
    .docs-shell { grid-template-columns: 250px minmax(0, 1fr); gap: 0 2rem; }
    .docs-toc { display: none; }
}
@media (max-width: 900px) {
    .docs-shell { display: block; padding: 4.4rem 1rem 3rem; }
    .docs-topbar { position: sticky; top: 3.95rem; z-index: 50; display: flex; align-items: center; gap: 0.8rem; margin: 0 -1rem 1.2rem; padding: 0.55rem 1rem; background: rgba(246,244,239,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-light); }
    .docs-menu-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.7rem 0.4rem 0.5rem; border: 1px solid var(--line-light); border-radius: 8px; background: var(--white); color: var(--ink); font-size: 0.84rem; font-weight: 500; }
    .docs-menu-btn span { display: block; width: 14px; height: 1.5px; background: var(--ink); margin: 1.5px 0; }
    .docs-menu-btn span + span { margin-left: 0; }
    .docs-menu-btn span:first-child { margin-right: -14px; }
    .docs-menu-btn span:nth-child(2) { position: relative; top: 0; margin-left: 0; }
    .docs-topbar-title { color: var(--ink); font-size: 0.9rem; font-weight: 600; margin-left: auto; }
    .docs-topbar-search { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 1px solid var(--line-light); border-radius: 8px; background: var(--white); color: var(--ink); }
    .docs-side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 9100; width: min(320px, 86vw); max-height: none; padding: 1.2rem 1rem 2rem; background: var(--paper); border-right: 1px solid var(--line-light); transform: translateX(-104%); transition: transform 0.25s var(--ease); box-shadow: 0 0 60px rgba(0,0,0,0.3); }
    body.docs-side-open .docs-side { transform: none; }
    body.docs-side-open .docs-backdrop { display: block; position: fixed; inset: 0; z-index: 9000; background: rgba(10,10,10,0.5); }
    body.docs-side-open { overflow: hidden; }
    .docs-main { padding-top: 0; }
    .docs-pager { grid-template-columns: 1fr; }
    .docs-pager-next { align-items: flex-start; text-align: left; }
    .docs-cards { grid-template-columns: 1fr; }
    .doc-fig.is-left, .doc-fig.is-right { float: none; max-width: 100%; margin: 1.4rem auto; }
    .docs-prose h2 { font-size: 1.4rem; }
    .docs-dialog { margin-top: 3vh; }
}
@media (max-width: 480px) {
    .docs-prose { font-size: 0.98rem; }
    .docs-head h1 { font-size: 1.7rem; }
    .mobile-image { max-width: 100%; }
}

/* the menu button's three bars, drawn simply */
.docs-menu-btn span { display: none; }
.docs-menu-btn::before { content: ""; width: 14px; height: 10px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat; }

@media (prefers-reduced-motion: reduce) {
    .docs-side, .doc-anchor, .doc-copy, .docs-sec-h::after, .docs-twisty::before { transition: none; }
    html { scroll-behavior: auto; }
    .doc-fig video { animation: none; }
}
@media print {
    header, footer, .docs-side, .docs-toc, .docs-topbar, .docs-pager, .cookie-consent-banner, .doc-copy, .doc-anchor { display: none !important; }
    .docs-shell { display: block; padding: 0; }
    .docs-article { max-width: none; }
}

/* review preview of a draft (tools/docs_publisher.py): a banner the reviewer cannot miss */
.docs-preview-banner { margin: 0 0 1.2rem; padding: 0.8rem 1rem; border-radius: 10px; background: #FBF4E4; border: 1px solid #E8D4A8; color: #6b4d0f; font-size: 0.9rem; line-height: 1.5; }
.docs-preview-banner strong { color: #3b2f12; }
.docs-preview-banner a { color: #3b2f12; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
