:root {
  color-scheme: light;
  --navy-950: #041226;
  --navy-900: #071a33;
  --navy-800: #0d294c;
  --navy-700: #153b68;
  --blue: #2f78c4;
  --yellow: #f7c948;
  --yellow-soft: #fff5cf;
  --paper: #ffffff;
  --mist: #f4f7fb;
  --ink: #10233a;
  --muted: #5b6d80;
  --line: #dce5ef;
  --green: #16735c;
  --green-soft: #e8f7f2;
  --warning-soft: #fff5d8;
  --shadow: 0 18px 55px rgba(4,18,38,.09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--mist); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.7; text-rendering: optimizeLegibility; }
body.toc-open { overflow: hidden; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: -5rem; padding: .75rem 1rem; border-radius: .6rem; background: var(--yellow); color: var(--navy-950); font-weight: 850; }
.skip-link:focus { top: 1rem; }
.reading-progress { position: fixed; z-index: 500; top: 0; left: 0; right: 0; height: 3px; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--yellow); }
.wiki-nav { position: sticky; z-index: 100; top: 0; min-height: 74px; padding: 0 max(1rem, calc((100% - 1320px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(4,18,38,.95); color: #fff; backdrop-filter: blur(18px); }
.wiki-brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; line-height: 1.05; }
.wiki-brand img { width: 46px; height: 46px; }
.wiki-brand span { display: grid; }
.wiki-brand strong { letter-spacing: -.02em; }
.wiki-brand small { margin-top: .25rem; color: #8fa7bd; font-size: .63rem; font-weight: 850; letter-spacing: .16em; }
.wiki-actions { display: flex; align-items: center; gap: .2rem; }
.wiki-actions a, .toc-button { padding: .65rem .8rem; border: 0; border-radius: .6rem; background: transparent; color: #bdcad8; font: inherit; font-size: .88rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.wiki-actions a:hover, .toc-button:hover { background: rgba(255,255,255,.08); color: #fff; }
.toc-button { display: none; background: var(--yellow); color: var(--navy-950); }
.topbar { position: relative; overflow: hidden; min-height: 430px; padding: clamp(4rem, 8vw, 7rem) max(1rem, calc((100% - 1160px) / 2)); display: grid; align-content: center; color: #fff; background: radial-gradient(circle at 85% 25%, rgba(47,120,196,.28), transparent 30%), var(--navy-950); }
.topbar::after { content: ""; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to right, transparent, #000 45%); pointer-events: none; }
.topbar-copy, .search, .quick-links { position: relative; z-index: 1; }
.topbar-copy { max-width: 850px; }
.eyebrow { display: block; margin-bottom: .9rem; color: var(--yellow); font-size: .72rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.topbar h1 { max-width: 14ch; margin: 0; font-size: clamp(2.8rem, 7vw, 5.7rem); line-height: 1.02; letter-spacing: -.055em; }
.topbar h1 span { color: var(--yellow); }
.topbar-copy p { max-width: 68ch; margin: 1.2rem 0 2rem; color: #b4c4d4; font-size: 1.08rem; }
.search { width: min(680px, 100%); display: flex; align-items: center; gap: .7rem; padding: .45rem .6rem .45rem 1rem; border: 1px solid rgba(255,255,255,.2); border-radius: .9rem; background: #fff; box-shadow: 0 22px 50px rgba(0,0,0,.2); }
.search-icon { color: var(--navy-700); font-size: 1.45rem; }
.search input { min-width: 0; flex: 1; padding: .65rem .2rem; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.02rem; }
.search kbd { padding: .35rem .5rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--mist); color: var(--muted); font-family: inherit; font-size: .7rem; font-weight: 700; }
.quick-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .55rem; }
.quick-links a { padding: .36rem .7rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #c9d5e1; font-size: .78rem; font-weight: 700; text-decoration: none; }
.quick-links a:hover { border-color: var(--yellow); color: var(--yellow); }
.layout { width: min(calc(100% - 2rem), 1320px); margin: 0 auto; padding: 2rem 0 5rem; display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 2rem; }
.sidebar { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; padding: 1rem; border: 1px solid var(--line); border-radius: 1.1rem; background: var(--paper); box-shadow: var(--shadow); scrollbar-width: thin; }
.sidebar-head { margin-bottom: .7rem; padding: .45rem .6rem .75rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.sidebar-head span { display: grid; }
.sidebar-head strong { color: var(--navy-900); }
.sidebar-head small { color: var(--muted); font-size: .72rem; }
.sidebar-head button { display: none; border: 0; background: transparent; color: var(--ink); font-size: 1.6rem; }
.sidebar a { display: block; margin: .1rem 0; padding: .48rem .65rem; border-left: 3px solid transparent; border-radius: .4rem; color: #53677b; font-size: .875rem; font-weight: 650; line-height: 1.35; text-decoration: none; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.sidebar a:hover { background: var(--mist); color: var(--navy-800); }
.sidebar a.active { border-left-color: var(--yellow); background: var(--yellow-soft); color: var(--navy-900); font-weight: 800; }
main { min-width: 0; }
.manual-section { margin-bottom: 1.2rem; padding: clamp(1.35rem, 4vw, 2.7rem); border: 1px solid var(--line); border-radius: 1.2rem; background: var(--paper); box-shadow: var(--shadow); scroll-margin-top: 92px; }
.manual-section[hidden] { display: none; }
.manual-section:not(.hero) { position: relative; overflow: hidden; }
.manual-section:not(.hero)::before { content: ""; position: absolute; top: 0; left: 0; width: 5px; height: 72px; border-radius: 0 0 8px; background: var(--yellow); }
.hero { min-height: 320px; display: grid; grid-template-columns: 1.35fr .8fr; gap: 2rem; align-items: center; background: linear-gradient(135deg, #fff, #edf4fb); }
.badge { display: inline-flex; margin-bottom: .9rem; padding: .28rem .65rem; border-radius: 999px; background: var(--yellow); color: var(--navy-950); font-size: .76rem; font-weight: 850; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: .65rem; }
.download { display: inline-flex; align-items: center; justify-content: center; padding: .68rem .9rem; border-radius: .62rem; background: var(--navy-900); color: #fff; font-weight: 800; text-decoration: none; }
.download:hover { background: var(--navy-700); }
.download.secondary { border: 1px solid var(--navy-900); background: transparent; color: var(--navy-900); }
h2 { margin: 0 0 1rem; color: var(--navy-900); font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.17; letter-spacing: -.035em; }
h3 { margin: 1.8rem 0 .65rem; color: var(--navy-700); line-height: 1.3; letter-spacing: -.015em; }
p, li { max-width: 80ch; }
li + li { margin-top: .38rem; }
em { font-style: normal; font-weight: 750; color: var(--navy-700); }
.notice, .tip, .warning { padding: 1rem 1.1rem; border-left: 5px solid; border-radius: .65rem; }
.notice, .warning { background: var(--warning-soft); border-color: var(--yellow); color: #644411; }
.tip { margin-top: 1rem; background: var(--green-soft); border-color: var(--green); color: #0e503f; }
table { width: 100%; margin: 1rem 0; border-collapse: collapse; font-size: .94rem; }
th, td { padding: .78rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #edf3f9; color: var(--navy-900); }
dt { margin-top: 1rem; font-weight: 850; color: var(--navy-700); }
dd { margin-left: 0; }
.footer-note { color: var(--muted); font-size: .92rem; }
#no-results { padding: 3rem; border: 1px dashed #a9bacb; border-radius: 1rem; background: var(--paper); color: var(--muted); text-align: center; font-weight: 750; }
.wiki-footer { padding: 1.5rem max(1rem, calc((100% - 1320px) / 2)); display: flex; justify-content: space-between; gap: 1rem; background: var(--navy-950); color: #8fa5ba; font-size: .82rem; }
.wiki-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.wiki-footer a { text-decoration: none; }
.wiki-footer a:hover { color: var(--yellow); }
@media (max-width: 900px) {
  .toc-button { display: inline-flex; }
  .wiki-actions > a:first-child { display: none; }
  .layout { display: block; }
  .sidebar { position: fixed; z-index: 300; inset: 0 0 0 auto; width: min(88vw, 360px); max-height: none; border: 0; border-radius: 0; transform: translateX(105%); transition: transform .2s ease; }
  .sidebar[data-open="true"] { transform: translateX(0); box-shadow: -30px 0 90px rgba(0,0,0,.35); }
  .sidebar-head button { display: block; }
  main { padding-top: 1rem; }
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wiki-brand small { display: none; }
  .wiki-actions > a { display: none; }
  .topbar { min-height: 390px; }
  .search kbd { display: none; }
  .quick-links { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; }
  .quick-links a { flex: none; }
  .layout { width: min(calc(100% - 1rem), 1320px); }
  .manual-section { border-radius: .85rem; }
  table { display: block; overflow-x: auto; }
  .wiki-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
@media print {
  .wiki-nav, .topbar, .sidebar, .skip-link, .reading-progress, .wiki-footer, #no-results { display: none !important; }
  body { background: #fff; }
  .layout { display: block; width: 100%; padding: 0; }
  .manual-section { box-shadow: none; border: 0; page-break-inside: auto; }
  .manual-section::before { display: none; }
  h2, h3 { page-break-after: avoid; }
  table, .notice, .tip, .warning { page-break-inside: avoid; }
}
