/* 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 { background: var(--ink); color: var(--paper); }
.order-main { padding: 150px 0 110px; }
.order-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.order-copy-block .eyebrow { margin-bottom: 18px; }
.order-copy-block h1 { margin: 0; font-size: clamp(2.8rem, 6vw, 5.4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 0.97; }
.order-copy-block h1 em { color: var(--ember-surface); font-family: var(--serif); font-weight: 500; }
.order-copy-block .doc-intro { max-width: 460px; margin: 28px 0 0; color: var(--muted-dark); font-family: var(--serif); font-size: 1.15rem; font-style: italic; line-height: 1.5; }
.order-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.order-note { margin: 18px 0 0; color: var(--muted); font-size: 0.74rem; }
.order-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-soft); }
.order-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 55%; }
.order-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 44px; margin-top: 96px; }
.order-facts .detail-block { padding-top: 14px; border-top: 1px solid var(--line-dark); }
.order-facts .detail-label { color: var(--ember-surface); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.order-facts p { margin: 14px 0 0; color: var(--muted-dark); font-family: var(--serif); font-size: 1.05rem; line-height: 1.55; }
.order-facts a { color: inherit; text-decoration: none; }
.order-facts a:hover { color: var(--ember-surface); }
.order-mosaic { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 14px; margin-top: 96px; }
.order-tile { position: relative; margin: 0; height: clamp(220px, 24vw, 360px); overflow: hidden; background: var(--ink-soft); }
.order-tile img { width: 100%; height: 100%; display: block; object-fit: cover; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@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; }
  .order-main { padding: 186px 0 88px; }
  .order-hero { grid-template-columns: 1fr; gap: 36px; }
  .order-facts { grid-template-columns: 1fr 1fr; gap: 28px 24px; margin-top: 64px; }
  .order-mosaic { grid-template-columns: 1fr 1fr; margin-top: 64px; }
  .order-tile { height: auto; aspect-ratio: 4 / 3; }
  .order-tile:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
}
@media (max-width: 620px) {
  .order-main { padding: 200px 0 72px; }
  .order-copy-block h1 { font-size: 2.6rem; }
  .order-facts { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .order-mosaic { gap: 8px; }
}
