/* Preserve the existing site palette and shell; accessible documentation additions. */
:root { --ink-mute: #725438; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: #2c1810; color: #fffdf8; padding: 12px 20px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #a0522d; outline-offset: 5px; }
.documentation .nav-cta { background: #a0522d; color: #fffdf8 !important; }
.documentation .nav-brand-rest { background: none; -webkit-text-fill-color: currentColor; color: #a0522d; }
.menu-toggle { display: none; border: 1px solid #a0522d; background: #fffdf8; color: #5c3317; border-radius: 6px; padding: 9px 12px; font: 600 14px var(--font-body); cursor: pointer; }
.nav-brand { flex-shrink: 0; }
.doc-hero { padding-top: clamp(32px, 5vw, 64px); }
.breadcrumb, .doc-hero > span { font-size: 13px; color: #725438; }
.breadcrumb { text-decoration: underline; text-underline-offset: 4px; }
.doc-intro { padding: 32px 0 36px; max-width: 850px; }
.doc-intro h1 { font: 400 clamp(34px, 5vw, 54px)/1.12 var(--font-display); letter-spacing: -.025em; margin: 18px 0; }
.doc-lede { color: #5c3317; font-size: 18px; line-height: 1.65; max-width: 65ch; }
.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 780px); gap: clamp(28px, 5vw, 80px); padding-top: 12px; padding-bottom: 80px; align-items: start; }
.doc-toc { position: sticky; top: 96px; padding: 24px 0; border-top: 1px solid #efe4d3; }
.toc-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #725438; margin-bottom: 14px; }
.doc-toc a { display: block; padding: 7px 0; font-size: 14px; color: #5c3317; line-height: 1.5; }
.doc-toc a:hover { color: #a0522d; text-decoration: underline; }
.doc-section { padding: 28px 0 30px; border-top: 1px solid #efe4d3; scroll-margin-top: 92px; }
.doc-section h2 { font: 400 clamp(25px, 3vw, 30px)/1.25 var(--font-display); color: #2c1810; margin-bottom: 18px; }
.doc-section h3 { font-size: 17px; margin: 26px 0 10px; color: #2c1810; }
.doc-section p, .doc-section ul, .doc-section ol, .doc-section dl { margin: 0 0 18px; color: #5c3317; font-size: 16px; line-height: 1.8; }
.doc-section ul, .doc-section ol { padding-left: 24px; }
.doc-section li { padding-left: 5px; margin-bottom: 10px; }
.doc-section a, .public-links a, .security-more a { color: #904321; text-decoration: underline; text-underline-offset: 4px; }
.doc-section a:hover { text-decoration-thickness: 2px; }
.doc-section code { font: 13px/1.8 var(--font-mono); font-variant-ligatures: none; padding: 2px 5px; background: #fbf1e0; border-radius: 4px; overflow-wrap: anywhere; }
.doc-section dt { font-weight: 600; margin-top: 14px; }
.doc-section dd { margin: 4px 0 14px; }
.launch-flow li { padding: 4px 0 14px 8px; border-bottom: 1px solid #efe4d3; }
.launch-flow li::marker { color: #a0522d; font-weight: 700; }
.confirm { background: #fff1cc; color: #623b10; border-bottom: 1px dashed #94601d; padding: 1px 3px; overflow-wrap: anywhere; }
.draft-banner, .notice { background: #fff1cc; color: #623b10; border: 1px solid #94601d; border-left-width: 4px; border-radius: 8px; padding: 20px 24px; margin: 0 0 28px; }
.draft-banner p { margin-top: 6px; font-size: 14px; }
.public-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 0 0 24px; font-size: 14px; }
.footer-heading { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #725438; margin-bottom: 16px; }
.security-more { padding: 24px 0; }
@media (max-width: 1180px) {
  .menu-toggle { display: block; margin-left: auto; }
  .nav-inner { position: relative; gap: 12px; }
  .nav-links { display: none; }
  .nav-links.is-open { display: flex; position: absolute; top: 68px; right: 0; left: 0; background: #fffdf8; padding: 20px; border: 1px solid #efe4d3; flex-direction: column; align-items: stretch; gap: 8px; max-height: calc(100dvh - 80px); overflow-y: auto; box-shadow: var(--shadow-md); }
  .nav-links.is-open a:not(.nav-cta) { display: block; padding: 9px; }
  .nav-links.is-open .nav-cta { justify-content: center; }
  .doc-layout { grid-template-columns: 1fr; gap: 12px; }
  .doc-toc { position: static; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 20px 0; }
  .toc-title { flex-basis: 100%; margin-bottom: 4px; }
  .doc-toc a { padding: 5px 0; }
}
@media (max-width: 420px) { .nav-brand img { width: 165px; } .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .nav, .doc-toc, .footer, .skip-link { display: none; } .doc-layout { display: block; } .doc-section { break-inside: avoid; } }
