:root {
  --ink: #111827;
  --muted: #4b586c;
  --navy: #08101f;
  --navy-2: #0f1b31;
  --teal: #4f70ed;
  --teal-soft: #e9efff;
  --blue-soft: #eef2fb;
  --orange: #ffad66;
  --line: #dbe1eb;
  --paper: #ffffff;
  --canvas: #f5f7fb;
  --mono: "DM Mono", monospace;
  --font: "Manrope", system-ui, sans-serif;
  --danger: #9b2c2c;
  --shadow: 0 16px 46px rgba(16, 32, 56, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 16px/1.65 var(--font); }
.skip { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: #fff; color: var(--navy); border-radius: .5rem; }
.skip:focus { top: .75rem; }
.progress { position: fixed; inset: 0 auto auto 0; z-index: 90; height: 3px; width: 0; background: var(--orange); }
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1rem; height: 74px; padding: 0 max(24px,calc((100vw - 1240px)/2)); color: #fff; background: rgba(8,16,31,.96); border-bottom: 1px solid #22304a; backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 270px; color: #fff; line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
.brand span:last-child { display: grid; gap: .18rem; }
.brand small { color: #b9c5d6; font: 500 9px var(--mono); letter-spacing: .16em; }
.brand-logo-tile { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; padding: 4px; background: #f7fbff; border: 1px solid #d9e3ee; border-radius: 9px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.brand-logo { width: 30px; height: 30px; display: block; object-fit: contain; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; width: 100%; }
.search { display: flex; align-items: center; width: min(470px, 50vw); padding: 0 .75rem; border: 1px solid #3b506d; border-radius: 10px; background: #13243c; }
.search:focus-within { outline: 2px solid #7e96ff; outline-offset: 2px; }
.search input { width: 100%; min-width: 0; padding: .65rem .2rem; color: #fff; background: transparent; border: 0; outline: 0; font: inherit; }
.search input::placeholder { color: #aebbd0; }
kbd { color: #aebbd0; font: 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
button { font: inherit; }
.quiet, .menu { padding: .58rem .8rem; color: #e5edf8; background: transparent; border: 1px solid #34435e; border-radius: 9px; cursor: pointer; text-decoration: none; }
.quiet:hover, .menu:hover { background: #19304e; }
.menu { display: none; }
.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); max-width: 1500px; min-height: calc(100vh - 76px); margin: 0 auto; }
.sidebar { position: sticky; top: 76px; height: calc(100vh - 76px); overflow: auto; padding: 2rem 1.4rem; border-right: 1px solid var(--line); background: #f9fbfe; }
.eyebrow { margin: 0 0 .75rem; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.library-title { display: grid; gap: .12rem; margin: 0 0 1.15rem; padding: .82rem .9rem; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 5px 16px rgba(11, 23, 42, .05); cursor: default; }
.library-title span { font-size: .98rem; font-weight: 800; }
.library-title small { color: var(--muted); font-size: .69rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sidebar nav { display: grid; gap: .18rem; }
.sidebar nav a { padding: .62rem .72rem; color: #334058; border-radius: 8px; text-decoration: none; }
.sidebar nav a:hover { background: var(--blue-soft); }
.sidebar nav a.active { color: #2647bb; background: var(--teal-soft); font-weight: 700; }
.sidebar nav .nav-group { display: grid; gap: .18rem; margin: 1.05rem 0 .3rem; padding: .72rem .78rem; color: var(--navy); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 9px; box-shadow: 0 4px 14px rgba(11, 23, 42, .04); cursor: default; }
.sidebar nav .nav-group span { font-size: .79rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.sidebar nav .nav-group small { color: var(--muted); font-size: .7rem; font-weight: 550; line-height: 1.35; }
.sidebar nav .nav-group.active-group { color: #2647bb; background: var(--blue-soft); border-color: #b8c5fb; border-left-color: #4f70ed; }
.sidebar nav .nav-group.active-group small { color: #4c61a8; }
.sidebar-note { display: grid; gap: .35rem; margin-top: 2rem; padding: 1rem; color: #263b78; background: #eef2ff; border: 1px solid #cfd8ff; border-radius: 10px; }
.sidebar-note span { font-size: .88rem; font-weight: 650; }
.sidebar-note small { color: #5c6790; line-height: 1.45; }
.main { display: grid; grid-template-columns: minmax(0, 850px) minmax(230px, 260px); justify-content: center; gap: clamp(2rem, 3vw, 3rem); padding: clamp(2rem, 5vw, 4.5rem); background: var(--paper); }
#article { min-width: 0; outline: none; }
#article > :first-child { margin-top: 0; }
.hero { padding: clamp(1.8rem, 5vw, 3.2rem); color: #fff; background: linear-gradient(145deg, #0b172a, #203757); border-radius: 18px; box-shadow: var(--shadow); }
.hero .eyebrow { color: #98e4d6; }
.hero h1 { max-width: 800px; margin: .2rem 0 1rem; color: #fff; font-size: clamp(2.35rem, 6vw, 4.3rem); line-height: 1.02; letter-spacing: -.04em; }
.hero p { max-width: 680px; color: #dbe5f3; font-size: 1.08rem; }
.status-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.pill { padding: .38rem .65rem; color: #123f39; background: #c9f2e9; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin: 1.5rem 0 2.5rem; }
.fact { padding: 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(23,32,51,.04); }
.fact strong { display: block; margin-bottom: .35rem; color: var(--navy); }
#article h1 { margin: 0 0 1.25rem; color: var(--navy); font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -.055em; }
#article h2 { margin: 2.8rem 0 .8rem; padding-top: .4rem; color: var(--navy); font-size: 1.75rem; line-height: 1.25; letter-spacing: -.02em; scroll-margin-top: 96px; }
#article h3 { margin: 2rem 0 .6rem; color: #263955; font-size: 1.25rem; line-height: 1.35; scroll-margin-top: 96px; }
#article p { margin: .7rem 0 1rem; }
#article ul, #article ol { padding-left: 1.45rem; }
#article li { margin: .42rem 0; }
#article blockquote { margin: 1.4rem 0; padding: .9rem 1.2rem; color: #37445c; background: #f0f4fa; border-left: 4px solid var(--orange); }
#article code { padding: .1rem .3rem; font: .9em ui-monospace, SFMono-Regular, Consolas, monospace; background: #eef1f5; border-radius: 4px; overflow-wrap: anywhere; }
#article a { color: #3658d4; text-underline-offset: 2px; }
.doc-figure { margin: 1.25rem 0 2rem; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 28px rgba(15, 29, 52, .09); }
.doc-figure a { display: block; color: inherit !important; text-decoration: none; }
.doc-figure img { display: block; width: 100%; height: auto; background: #eef2f8; }
.doc-figure figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; color: #334158; border-top: 1px solid var(--line); font-size: .88rem; font-weight: 650; }
.doc-figure figcaption span { flex: 0 0 auto; color: #3658d4; font-size: .78rem; }
.image-viewer { width: min(96vw, 1680px); height: min(94vh, 1080px); max-width: none; max-height: none; padding: 0; color: #fff; background: #07101f; border: 1px solid #43536d; border-radius: 14px; box-shadow: 0 30px 100px rgba(0,0,0,.45); }
.image-viewer::backdrop { background: rgba(2,7,16,.84); backdrop-filter: blur(4px); }
.image-viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 58px; padding: .7rem .9rem .7rem 1.2rem; border-bottom: 1px solid #2a3952; }
.image-viewer-bar strong { font-size: .9rem; }
.image-viewer-bar button { padding: .65rem .9rem; color: #08101f; background: #fff; border: 0; border-radius: 8px; cursor: pointer; font-weight: 750; }
.image-viewer-stage { display: grid; grid-template-rows: minmax(0,1fr) auto; height: calc(100% - 58px); padding: 1rem; }
.image-viewer-stage img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.image-viewer-stage p { margin: .65rem 0 0; color: #c7d2e1; text-align: center; font-size: .84rem; }
body.viewer-open { overflow: hidden; }
.table-wrap { width: 100%; overflow-x: auto; margin: 1rem 0 1.7rem; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { padding: .75rem .85rem; color: #fff; background: var(--navy-2); text-align: left; }
td { padding: .72rem .85rem; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) { background: #f5f8fc; }
.on-this-page { position: sticky; top: 98px; align-self: start; max-height: calc(100vh - 122px); overflow: auto; padding: .9rem; background: #f9fbfe; border: 1px solid var(--line); border-radius: 12px; font-size: .82rem; scrollbar-width: thin; }
.on-this-page > .eyebrow { margin-bottom: .55rem; }
.on-this-page nav { display: grid; gap: .18rem; }
.toc-group { border-top: 1px solid #e6eaf1; }
.toc-group:first-child { border-top: 0; }
.on-this-page a { display: block; color: var(--muted); text-decoration: none; line-height: 1.35; border-radius: 7px; }
.on-this-page a[data-level="2"] { padding: .55rem .55rem; color: #344158; font-weight: 700; }
.toc-children { display: none; gap: .12rem; padding: 0 0 .45rem .5rem; }
.toc-group.open .toc-children { display: grid; }
.on-this-page a[data-level="3"] { padding: .38rem .55rem; border-left: 2px solid #d7def0; }
.on-this-page a:hover { color: #2647bb; background: var(--blue-soft); }
.on-this-page a.is-active { color: #2647bb; background: var(--teal-soft); }
.on-this-page a[data-level="3"].is-active { border-left-color: var(--blue); font-weight: 700; }
.search-panel { position: fixed; z-index: 70; top: 68px; right: clamp(1rem, 3vw, 2.5rem); width: min(620px, calc(100vw - 2rem)); max-height: 70vh; overflow: auto; padding: .75rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.search-panel button { display: grid; gap: .2rem; width: 100%; padding: .8rem; color: var(--ink); background: #fff; border: 0; border-radius: 8px; text-align: left; cursor: pointer; }
.search-panel button:hover, .search-panel button:focus { background: var(--blue-soft); outline: none; }
.search-panel span { color: #354767; font-size: .82rem; font-weight: 650; }
.search-panel small { color: var(--muted); }
.search-empty { padding: 1rem; color: var(--muted); }
.legal-warning { margin: 1.4rem 0; padding: 1rem 1.1rem; color: #6f2323; background: #fff4f4; border: 1px solid #f0caca; border-radius: 10px; }
.download-list { display: grid; gap: .6rem; margin: 1rem 0 2rem; }
.download-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; text-decoration: none; }
.download-list a:hover { border-color: #73aa9e; background: #f2faf8; }
footer { display: flex; justify-content: space-between; gap: 1rem; max-width: none; margin: 0; padding: 1.4rem max(24px,calc((100vw - 1240px)/2)); color: #aeb8c8; border-top: 1px solid #253249; background: var(--navy); font-size: .85rem; }
footer a { color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1100px) { .main { grid-template-columns: minmax(0, 850px); } .on-this-page { display: none; } }
@media (max-width: 780px) {
  .topbar { height: 68px; gap: .6rem; padding: 0 .75rem; } .menu { display: inline-block; } .brand { min-width: 38px; gap: 0; } .brand span:last-child { display: none; } .quiet, kbd { display: none; }
  .top-actions { min-width: 0; flex: 1; } .search { width: 100%; min-width: 0; padding: 0 .55rem; } .layout { display: block; } .sidebar { position: fixed; z-index: 45; inset: 68px auto 0 0; width: 290px; height: auto; transform: translateX(-105%); transition: transform .2s ease; box-shadow: var(--shadow); } .sidebar.open { transform: translateX(0); }
  .main { padding: 1.3rem; } #article h1 { font-size: clamp(1.85rem, 9vw, 2.3rem); overflow-wrap: anywhere; } #article h2 { font-size: 1.5rem; overflow-wrap: anywhere; } th, td { padding: .65rem .7rem; overflow-wrap: anywhere; } .hero { border-radius: 12px; } .fact-grid { grid-template-columns: 1fr; } footer { flex-direction: column; }
}
@media print { .topbar, .sidebar, .on-this-page, .progress, .search-panel, .image-viewer, footer { display: none !important; } .layout, .main { display: block; max-width: none; padding: 0; } body { background: #fff; font-size: 11pt; } #article h2 { break-after: avoid; } .table-wrap { overflow: visible; } }
