/* Shared guide styling. The main website retains its own navigation and theme. */
body { margin: 0; background: var(--bg, #05080d); color: var(--ink, #f5f8fb); font-family: var(--sans, system-ui, sans-serif); }
* { box-sizing: border-box; }
.docs-main { max-width: 1240px; padding: 128px 24px 70px; margin: 0 auto; }
.docs-main a { color: var(--cyan, #25c8ff); text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.docs-main a:hover { color: #fff; }
.docs-main :focus-visible, .docs-header :focus-visible { outline: 2px solid #25c8ff; outline-offset: 5px; }
.docs-kicker, .docs-meta { color: var(--ink-muted, #9aa8b8); font-size: .95rem; line-height: 1.6; }
.docs-main h1 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.15; letter-spacing: -.035em; }
.docs-main h2 { font-size: 1.75rem; line-height: 1.3; margin-top: 2.5rem; }
.docs-main h3 { font-size: 1.35rem; line-height: 1.35; margin-top: 2.4rem; }
.docs-main h4 { font-size: 1.1rem; margin-top: 2rem; }
.docs-main [id] { scroll-margin-top: 100px; }
.docs-main p, .docs-main li { line-height: 1.8; }
.docs-main li { margin: .5rem 0; }
.docs-main strong { color: #fff; }
.docs-main code { background: #142131; padding: .15em .35em; border-radius: 4px; font-size: .88em; overflow-wrap: anywhere; }
.docs-main pre { overflow: auto; padding: 1rem; }
.docs-intro { max-width: 78ch; }
.docs-about { padding: 24px 0; margin-top: 24px; border-top: 1px solid #284359; }
.docs-about summary { cursor: pointer; font-weight: 650; margin-bottom: 20px; }
.docs-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: 1.5rem 0 2.5rem; }
.docs-actions a { display: inline-block; padding: 12px 18px; border: 1px solid #284359; border-radius: 10px; }
.docs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; }
.docs-grid li { margin: 0; }
.docs-grid a { display: block; height: 100%; padding: 24px; background: #0b111a; border: 1px solid #284359; border-radius: 14px; text-decoration: none; }
.docs-grid a:hover { border-color: #25c8ff; }
.docs-grid small { display: block; margin-bottom: .6rem; color: #9aa8b8; }
.docs-layout { display: grid; grid-template-columns: 265px minmax(0, 1fr); gap: 48px; }
.docs-contents { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 125px); overflow: auto; padding: 16px; border: 1px solid #284359; border-radius: 12px; }
.docs-contents summary { cursor: pointer; font-weight: 650; padding: .5rem 0; }
.docs-contents ol { padding-left: 1.5rem; font-size: .88rem; }
.docs-contents a[aria-current="page"] { color: #fff; font-weight: 700; }
.docs-article { min-width: 0; font-size: 1.04rem; }
.docs-article > :first-child { margin-top: 0; }
.docs-article figure { padding: 22px; margin: 30px 0; background: #0b111a; border: 1px solid #284359; border-radius: 14px; }
.docs-article figure img { display: block; width: min(100%, 360px); height: auto; margin: 0 auto; }
.docs-article figure.landscape img { width: 100%; }
.docs-article figcaption { margin-top: 20px; color: #b6c5d3; line-height: 1.6; }
.docs-table { max-width: 100%; overflow-x: auto; margin: 1.5rem 0; }
.docs-table table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.docs-table th, .docs-table td { padding: 12px 14px; border: 1px solid #284359; text-align: left; vertical-align: top; line-height: 1.6; min-width: 130px; }
.docs-table th { background: #132234; color: #fff; }
.docs-table tr:nth-child(even) td { background: #0b111a; }
.docs-pager { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; margin-top: 50px; padding-top: 24px; border-top: 1px solid #284359; }
.docs-footer { color: #9aa8b8; padding: 36px 24px; text-align: center; }
.docs-header { padding: 20px 24px; border-bottom: 1px solid #284359; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.docs-header a { color: #f5f8fb; text-decoration: none; }
.docs-header .docs-brand { font-size: 1.2rem; font-weight: 700; margin-right: auto; }
.docs-skip { position: absolute; top: -100px; left: 16px; padding: 12px; background: #fff; color: #000; z-index: 1000; }
.docs-skip:focus { top: 16px; }
.docs-learn-links { padding: 80px 0; }
.docs-learn-links .docs-grid { margin-top: 24px; }
@media (max-width: 800px) {
  .docs-main { padding: 105px 20px 48px; }
  .docs-layout { display: block; }
  .docs-contents { position: static; max-height: none; margin-bottom: 32px; }
  .docs-grid { grid-template-columns: 1fr; }
  .docs-article figure { padding: 14px; }
  .docs-article ol, .docs-article ul { padding-left: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
