/* Document-page overrides. Above 900px the homepage's own header (a plain
   three-column grid: logo | nav | actions) already works with no JavaScript
   at all -- JS is only load-bearing for the hamburger drawer below 900px. So
   this file only has to replace *that* breakpoint's behaviour: instead of a
   hidden nav a JS-driven `.is-open` class reveals, the nav becomes a second,
   always-visible row. The header also keeps a permanent background here
   (rather than the homepage's scroll-triggered `.is-scrolled` class) since
   these are plain dark pages with no hero image for it to sit over. */
body.doc-page .site-header {
  position: fixed;
  background: rgba(23, 20, 17, 0.94);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

.doc-main { padding: 168px 0 120px; background: var(--ink); color: var(--paper); }
.doc-content { max-width: 760px; }
.doc-content .eyebrow { margin-bottom: 18px; }
.doc-content h1 { margin: 0 0 28px; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; }
.doc-intro { max-width: 620px; margin: 0 0 56px; color: var(--muted-dark); font-family: var(--serif); font-size: 1.15rem; font-style: italic; line-height: 1.5; }
.doc-content section { padding: 28px 0; border-top: 1px solid var(--line-dark); }
.doc-content h2 { margin: 0 0 14px; color: var(--ember-surface); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.doc-content p { margin: 0 0 12px; color: var(--muted-dark); font-size: 0.96rem; line-height: 1.65; }
.doc-content p:last-child { margin-bottom: 0; }
.doc-content a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.doc-content a:hover { color: var(--ember-surface); }
.doc-content ul { margin: 0; padding-left: 22px; color: var(--muted-dark); font-size: 0.96rem; line-height: 1.75; }
.doc-updated { margin: 40px 0 0; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }

@media (max-width: 900px) {
  body.doc-page .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo actions" "nav nav";
    row-gap: 14px;
  }
  body.doc-page .site-header .wordmark { grid-area: logo; }
  body.doc-page .site-header .header-actions { grid-area: actions; }
  body.doc-page .main-nav {
    grid-area: nav;
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  body.doc-page .main-nav a { padding: 0; }
  body.doc-page .menu-toggle { display: none; }
  body.doc-page .header-actions .button-small { display: inline-flex; }
  .doc-main { padding: 196px 0 92px; }
}

@media (max-width: 620px) {
  .doc-main { padding: 208px 0 76px; }
  .doc-content h1 { margin-bottom: 20px; }
  .doc-intro { margin-bottom: 40px; font-size: 1.05rem; }
}
