/* SARION manual. Loaded after /site.css; uses its tokens (--bg, --ink, --muted, --gold, --line, --hair, --serif, --sans). */
body.manual { background: var(--bg); color: var(--ink); font-family: var(--sans); }
.manual main { min-height: 60vh; padding-bottom: clamp(3rem, 8vw, 6rem); }
.manual .man-wrap { padding-top: clamp(0.5rem, 2vw, 1.5rem); }
.manual h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.08; }
.manual h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); line-height: 1.15; margin: 0 0 0.8rem; }
.manual h3 { font-size: clamp(1.15rem, 2.6vw, 1.4rem); line-height: 1.25; margin: 1.6rem 0 0.4rem; color: var(--gold-strong); }
.manual a { color: var(--gold-strong); text-underline-offset: 3px; }
.manual a:hover { color: var(--ink); }
.manual :focus-visible { outline: 2px solid var(--gold-strong); outline-offset: 3px; border-radius: 4px; }
.man-crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.2rem; }
.man-crumbs a { color: var(--muted); text-decoration: none; }
.man-crumbs a:hover { color: var(--ink); }
.man-layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
.man-main { min-width: 0; max-width: 46rem; }
.man-head { margin-bottom: 1.6rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.man-lead { font-size: clamp(1.02rem, 2.4vw, 1.2rem); color: var(--muted); line-height: 1.6; margin: 0.9rem 0 0; }
.man-where { margin: 0.9rem 0 0; font-size: 0.92rem; color: var(--ink); }
.man-where span { display: inline-block; margin-right: 0.5rem; padding: 0.12rem 0.55rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.man-badge { display: inline-block; margin-top: 0.9rem; padding: 0.25rem 0.8rem; border-radius: 999px; font-size: 0.78rem; border: 1px solid var(--gold); color: var(--gold-strong); background: rgba(212, 175, 55, 0.1); }
.man-card .man-badge { margin-top: 0.1rem; align-self: flex-start; }
.man-body { font-size: 1.02rem; line-height: 1.75; }
.man-body p { margin: 0 0 1rem; }
.man-body ul, .man-body ol { margin: 0 0 1.1rem; padding-left: 1.35rem; }
.man-body li { margin-bottom: 0.45rem; }
.man-body li::marker { color: var(--gold); }
.man-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; padding: 0.08em 0.4em; border-radius: 4px; background: rgba(238, 243, 247, 0.07); overflow-wrap: anywhere; }
.man-sec, .man-related { padding-block: 0; }
.man-sec { margin-bottom: 2.2rem; scroll-margin-top: 1rem; }
.man-sec h2 { scroll-margin-top: 1rem; }
.man-note { margin: 0 0 1.2rem; padding: 0.9rem 1.1rem; border-left: 2px solid var(--gold); background: rgba(212, 175, 55, 0.06); border-radius: 0 8px 8px 0; font-size: 0.97rem; line-height: 1.6; }
.man-toc { border: 1px solid var(--line); border-radius: 12px; padding: 0.2rem 1rem; background: rgba(18, 20, 23, 0.7); font-size: 0.92rem; }
.man-toc summary { cursor: pointer; padding: 0.8rem 0; font-weight: 500; color: var(--gold-strong); letter-spacing: 0.04em; }
.man-toc ol { list-style: none; margin: 0 0 0.8rem; padding: 0; }
.man-toc li { margin: 0; }
.man-toc a { display: block; padding: 0.4rem 0; color: var(--muted); text-decoration: none; line-height: 1.35; }
.man-toc a:hover { color: var(--ink); }
.man-side { order: -1; }
.man-cards { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
.man-card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(18, 20, 23, 0.7); text-decoration: none; color: var(--ink) !important; transition: border-color 0.2s, transform 0.2s, background 0.2s; }
.man-card:hover { border-color: var(--gold); background: rgba(212, 175, 55, 0.07); transform: translateY(-2px); }
.man-card-title { font-family: var(--serif); font-size: 1.35rem; line-height: 1.15; color: var(--gold-strong); }
.man-card-sum { font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
.man-card-meta { margin-top: auto; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.man-related { margin: 2.4rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.man-pager { display: grid; gap: 0.9rem; grid-template-columns: 1fr 1fr; margin-top: 2.4rem; }
.man-pager a { display: block; padding: 0.9rem 1.1rem; border: 1px solid var(--hair); border-radius: 12px; text-decoration: none; line-height: 1.3; }
.man-pager a:hover { border-color: var(--gold); }
.man-pager span { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.man-next { text-align: right; }
.man-hero { padding: clamp(1rem, 4vw, 2.5rem) 0 clamp(1.4rem, 4vw, 2.4rem); max-width: 50rem; }
.man-eyebrow { margin: 0 0 0.8rem; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.man-search { margin-top: 1.6rem; }
.man-search label { display: block; margin-bottom: 0.4rem; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.man-search input { width: 100%; padding: 0.95rem 1.1rem; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; }
.man-search input:focus { border-color: var(--gold); outline: 2px solid var(--gold-strong); outline-offset: 2px; }
.man-results { margin-top: 1rem; }
.man-results ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.man-results a { display: block; padding: 0.8rem 1rem; border: 1px solid var(--hair); border-radius: 10px; text-decoration: none; }
.man-results a:hover { border-color: var(--gold); }
.man-results strong { color: var(--gold-strong); font-weight: 500; }
.man-results small { display: block; color: var(--muted); line-height: 1.45; margin-top: 0.15rem; }
.man-results .man-none, .man-results .man-count { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.6rem; }
.man-path { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; counter-reset: s; }
.man-path a { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(18, 20, 23, 0.7); text-decoration: none; color: var(--muted) !important; line-height: 1.5; font-size: 0.95rem; }
.man-path a:hover { border-color: var(--gold); }
.man-path strong { color: var(--ink); font-weight: 500; font-size: 1.02rem; }
.man-step { flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-strong); font-family: var(--serif); font-size: 1.1rem; }
.man-home .man-sec { margin-bottom: 2.6rem; }
@media (min-width: 62rem) {
  .man-layout { grid-template-columns: minmax(0, 1fr) 15rem; gap: 3rem; }
  .man-side { order: 0; }
  .man-side .man-toc { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow: auto; }
  .man-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 30rem) { .man-pager { grid-template-columns: 1fr; } .man-next { text-align: left; } }
@media (prefers-reduced-motion: reduce) { .man-card, .man-card:hover { transition: none; transform: none; } }
@media print { .top, .site-footer, .man-pager, .man-side, .man-search { display: none; } body.manual { background: #fff; color: #000; } .man-body a { color: #000; } }

/* Narrow screens: the shared header (menu, Request Enclave, language) must not push the page wider than the screen. */
@media (max-width: 34rem) {
  .manual .top { flex-wrap: wrap; row-gap: 0.6rem; padding-block: 1rem; }
  .manual .word { font-size: 1.25rem; letter-spacing: 0.26em; padding-left: 0.26em; }
  .manual .nav { gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; font-size: 0.85rem; }
  .manual .btn-nav-apply { padding: 0.3rem 0.7rem; font-size: 0.75rem; }
  .manual .site-menu > ul { max-width: calc(100vw - 2 * var(--gutter)); }
}

/* landing: last-updated line, and code blocks (install commands) */
.man-stamp { margin: 0.2rem 0 1.2rem; font-size: 0.85rem; letter-spacing: 0.02em; opacity: 0.72; }
.man-code { margin: 1rem 0; padding: 0.9rem 1rem; overflow-x: auto; border: 1px solid rgba(238, 243, 247, 0.12); border-radius: 8px; background: rgba(238, 243, 247, 0.05); font-size: 0.85rem; line-height: 1.55; }
.man-code code { padding: 0; background: none; white-space: pre; overflow-wrap: normal; }
