
:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --paper: #ffffff;
  --ink: #142033;
  --muted: #5c6b7a;
  --line: #d8e2ee;
  --accent: #176b5c;
  --accent-2: #1b75d0;
  --warm: #f6a531;
  --danger: #d7375f;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(21, 35, 58, 0.1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.62; }
a { color: var(--accent-2); }
img { max-width: 100%; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; background: #fff; color: #111827; padding: 10px 12px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.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; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px clamp(16px, 3vw, 42px); border-bottom: 1px solid rgba(216,226,238,.8); background: rgba(255,255,255,.9); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.topbar nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a { border-radius: 999px; padding: 8px 11px; color: #344256; text-decoration: none; font-size: 13px; font-weight: 700; }
.topbar nav a:hover, .topbar nav a:focus-visible, .topbar nav a[aria-current="page"] { background: #eaf6f3; color: #0b5548; outline: none; }
.nav-more { display: none; position: relative; }
.nav-more summary { list-style: none; border-radius: 999px; padding: 8px 12px; color: #344256; font-size: 13px; font-weight: 900; cursor: pointer; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more[open] summary, .nav-more summary:hover, .nav-more summary:focus-visible { background: #eaf6f3; color: #0b5548; outline: none; }
.nav-more div { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; display: grid; gap: 6px; width: min(260px, 80vw); padding: 10px; border: 1px solid #cbd8e6; border-radius: 16px; background: #fff; box-shadow: 0 18px 45px rgba(21,35,58,.18); }
.nav-more div a { display: block; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 72px; }
.doc-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: clamp(22px, 4vw, 54px); align-items: center; margin: 26px 0 18px; padding: clamp(22px, 4vw, 46px); border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(135deg, #fff 0%, #edf8f5 45%, #eef4ff 100%); box-shadow: var(--shadow); }
.doc-hero img { width: 100%; max-height: 420px; object-fit: contain; border-radius: 20px; background: rgba(255,255,255,.7); }
.eyebrow, .section-kicker { color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 8px 0 14px; font-size: clamp(2.2rem, 6vw, 5.2rem); line-height: .98; letter-spacing: 0; }
h2 { margin: 0 0 12px; font-size: clamp(1.45rem, 3vw, 2.35rem); line-height: 1.05; }
h3 { margin: 0 0 8px; }
p { color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-actions a, .hero-actions button, .download-grid a, .run-actions button, .policy-footer button { border: 0; border-radius: 999px; padding: 10px 14px; background: #122033; color: #fff; text-decoration: none; font-weight: 800; cursor: pointer; }
.hero-actions a:nth-child(2), .hero-actions button, .download-grid a:nth-of-type(2) { background: #e8eef7; color: #16324f; }
.toc { position: sticky; top: 68px; z-index: 10; display: flex; gap: 8px; overflow-x: auto; padding: 10px; margin: 18px 0 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); }
.toc a { flex: 0 0 auto; border-radius: 999px; padding: 8px 12px; color: #344256; text-decoration: none; font-weight: 800; font-size: 13px; }
.toc a:hover, .toc a:focus-visible { background: #eaf6f3; outline: none; }
.doc-section, .policy-card { margin: 22px 0; padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 10px 26px rgba(21,35,58,.05); }
.feature-grid, .formula-grid, .download-grid, .method-card-grid, .shot-grid, .coverage-grid, .credit-list { display: grid; gap: 14px; }
.feature-grid, .formula-grid, .download-grid, .method-card-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature-grid article, .formula-grid article, .download-grid article, .method-card, .coverage-grid article, .credit-list article { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fbfdff; }
.method-card { color: inherit; text-decoration: none; }
.method-card img { height: 180px; width: 100%; object-fit: contain; border-radius: 12px; background: #eef4f0; }
.method-card span, .download-grid span { color: var(--accent); font-weight: 900; font-size: 12px; text-transform: uppercase; }
.shot-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
figure { margin: 0; }
figure img { width: 100%; height: 260px; object-fit: contain; border: 1px solid var(--line); border-radius: 14px; background: #edf2f7; }
figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.coverage-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.coverage-grid article { display: grid; gap: 4px; }
.coverage-grid b { font-size: 1.4rem; }
.source-summary { border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; overflow-y: visible; margin: 16px 0; background: #fff; }
.source-summary > div { display: grid; grid-template-columns: minmax(320px, 1fr) 78px 96px 56px; gap: 12px; min-width: 620px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: start; position: relative; }
.source-summary > div:first-child { border-top: 0; }
.source-summary-head { background: #eef4f8; font-weight: 900; }
.source-summary [role="cell"], .source-summary [role="columnheader"] { min-width: 0; }
.source-summary code { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.symbol-cell { position: relative; display: inline-flex; align-items: flex-start; justify-content: flex-start; }
.symbol-trigger { border: 1px solid #c8d6e5; border-radius: 999px; background: #f4f8fb; color: #1f3146; width: 42px; min-height: 30px; font-weight: 900; cursor: pointer; }
.symbol-trigger:hover, .symbol-trigger:focus-visible { background: #14304a; color: #fff; outline: 3px solid rgba(27,117,208,.18); }
.symbol-popover { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: min(420px, 76vw); max-height: 320px; overflow-y: auto; z-index: 35; padding: 12px; border: 1px solid #cbd8e6; border-radius: 14px; background: #fff; box-shadow: 0 18px 45px rgba(21,35,58,.18); }
.symbol-cell:hover .symbol-popover, .symbol-trigger:focus + .symbol-popover, .symbol-trigger:focus-visible + .symbol-popover { display: grid; gap: 6px; }
.symbol-popover strong { color: #142033; }
.symbol-popover a { display: block; padding: 6px 8px; border-radius: 9px; background: #f5f8fb; text-decoration: none; font-size: 12px; font-weight: 800; }
code, pre { font-family: "Cascadia Code", Consolas, monospace; }
.source-file { margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow-x: auto; overflow-y: visible; }
.source-file summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; font-weight: 900; background: #f4f8fb; }
.source-load-panel { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border-top: 1px solid var(--line); background: #fbfdff; }
.source-load-panel > div { display: grid; gap: 3px; }
.source-status { color: var(--muted); font-size: 12px; font-weight: 800; }
.source-load { flex: 0 0 auto; min-height: 40px; border: 1px solid #b9cde0; border-radius: 11px; padding: 9px 13px; background: #14304a; color: #fff; font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; }
.source-load:hover, .source-load:focus-visible { background: var(--accent); outline: 3px solid rgba(27,117,208,.18); }
.source-load:disabled { cursor: wait; opacity: .68; }
.source-file[data-source-state="loading"] .source-load-panel { background: #f0f7ff; }
.source-file[data-source-state="error"] .source-load-panel { background: #fff7f4; }
.source-file[data-source-state="error"] .source-status { color: #a12c1d; }
.source-load-panel noscript { font-size: 12px; }
.symbol-list { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border-top: 1px solid var(--line); }
.symbol-list a { border-radius: 999px; padding: 6px 9px; background: #edf6ff; text-decoration: none; font-size: 12px; font-weight: 800; }
.code-table { display: grid; width: 100%; min-width: 920px; font-size: 12px; }
.code-table > div { display: grid; grid-template-columns: 72px minmax(360px, 1.35fr) minmax(320px, 1fr); border-top: 1px solid #e8eef4; }
.code-table > div > * { padding: 7px 8px; min-width: 0; }
.code-table code { overflow-wrap: anywhere; white-space: pre-wrap; color: #172033; background: #fbfcfe; }
.line-no { color: #6b7785; font-weight: 800; text-align: right; background: #f6f8fb; }
.code-head { position: static; background: #132033; color: #fff; font-weight: 900; }
.code-head code { background: transparent; color: #fff; }
.math { overflow-x: auto; padding: 8px; border-radius: 10px; background: #f6fafc; }
.run-panel { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #f8fbff; }
.run-panel pre, .license-block, .mermaid { overflow-x: auto; padding: 14px; border-radius: 12px; background: #101828; color: #e5edf7; }
.run-actions { display: flex; gap: 8px; flex-wrap: wrap; }
output { display: block; margin-top: 12px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: #122033; font-weight: 800; }
.download-grid article { display: grid; gap: 8px; align-content: start; }
.download-grid a { display: inline-flex; justify-content: center; width: fit-content; }
.qr-card { display: grid; place-items: center; gap: 6px; width: 148px; min-height: 174px; padding: 10px; border: 1px solid #d8e2ee; border-radius: 18px; background: linear-gradient(180deg, #fff, #f6fbff); color: #334155; font-size: 12px; font-weight: 900; text-align: center; }
.qr-stack { position: relative; display: inline-grid; place-items: center; width: 124px; height: 124px; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 24px rgba(21,35,58,.1); background: #fff; }
.qr-image { width: 124px; height: 124px; object-fit: contain; }
.qr-logo { position: absolute; width: 34px; height: 34px; object-fit: contain; padding: 5px; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(15,23,42,.18); }
.credit-list { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.credit-list article { display: grid; gap: 6px; }
.credit-list span { color: var(--muted); }
.credit-list a { font-weight: 900; text-decoration: none; }
.print-cover, .print-header, .print-footer { display: none; }
.pdf-source-mode { background: #d9dde7; }
.pdf-source-mode .topbar, .pdf-source-mode .toc, .pdf-source-mode .hero-actions, .pdf-source-mode .skip-link { display: none !important; }
.pdf-source-mode main { width: 210mm; max-width: 210mm; padding: 0; margin: 0 auto; }
.pdf-source-mode .print-cover { display: grid; min-height: 297mm; align-content: center; gap: 10mm; text-align: center; padding: 22mm; margin: 0 auto 18px; background: #fff; border: 1px solid #cbd5e1; box-shadow: 0 12px 35px rgba(15,23,42,.16); }
.pdf-source-mode .print-cover img { width: 34mm; margin: 0 auto; }
.pdf-source-mode .print-cover h1 { font-size: 34pt; line-height: 1.05; }
.pdf-source-mode .print-cover dl { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; text-align: left; }
.pdf-source-mode .print-cover div { border: 1px solid #cbd5e1; border-radius: 4mm; padding: 4mm; }
.pdf-source-mode .doc-hero, .pdf-source-mode .doc-section, .pdf-source-mode .policy-card { width: 210mm; margin: 0 auto 18px; padding: 18mm; border-radius: 0; background: #fff; box-shadow: 0 12px 35px rgba(15,23,42,.12); border: 1px solid #cbd5e1; }
.pdf-source-mode .doc-hero { display: block; }
.pdf-source-mode .doc-hero img { max-height: 82mm; object-fit: contain; }
.pdf-source-mode .source-file { break-before: page; }
.pdf-source-mode .source-file:not([open]) .code-table, .pdf-source-mode .source-file:not([open]) .symbol-list { display: grid; }
.pdf-source-mode h1 { font-size: 28pt; }
.pdf-source-mode h2 { font-size: 18pt; }
.pdf-source-mode .code-table { font-size: 7.5pt; min-width: 0; }
.pdf-source-mode .code-table > div { grid-template-columns: 12mm 78mm 74mm; }
.pdf-preview-page { margin: 0; overflow: hidden; background: #292934; color: #f8fafc; font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; }
.pdf-app { --pdf-zoom: 1; --pdf-columns: 1; --pdf-page-w: 794px; --pdf-page-h: 1123px; --pdf-doc-h: 1123px; --pdf-gap: 28px; display: grid; grid-template-columns: 420px minmax(0, 1fr); grid-template-rows: 68px minmax(0, calc(100vh - 68px)); height: 100vh; background: #d9dbe5; }
.pdf-toolbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 0 18px; background: #2a2a35; border-bottom: 1px solid rgba(255,255,255,.12); color: #cfd3df; overflow-x: auto; scrollbar-width: thin; }
.pdf-toolbar a, .pdf-toolbar button, .pdf-toolbar select { border: 0; border-radius: 10px; min-height: 34px; background: transparent; color: #cfd3df; font-weight: 900; text-decoration: none; cursor: pointer; white-space: nowrap; }
.pdf-toolbar button, .pdf-toolbar a { min-width: 34px; display: inline-grid; place-items: center; }
.pdf-toolbar button:hover, .pdf-toolbar a:hover, .pdf-toolbar select:hover, .pdf-toolbar button:focus-visible, .pdf-toolbar a:focus-visible, .pdf-toolbar select:focus-visible { background: rgba(255,255,255,.1); outline: 2px solid rgba(83,223,245,.36); }
.pdf-toolbar select { max-width: min(260px, 46vw); padding: 0 10px; background: #3a3a48; }
.pdf-page-count { padding-left: 10px; border-left: 1px solid rgba(255,255,255,.18); font-weight: 800; white-space: nowrap; }
.pdf-toolbar-spacer { flex: 1; }
.pdf-sidebar { grid-row: 2; min-height: 0; overflow-y: auto; padding: 26px 30px 34px; background: #2b2b36; color: #f7f8fb; border-right: 1px solid rgba(255,255,255,.12); transition: transform .22s ease, opacity .18s ease; }
.pdf-app.is-sidebar-closed { grid-template-columns: 0 minmax(0, 1fr); }
.pdf-app.is-sidebar-closed .pdf-sidebar { transform: translateX(-100%); opacity: 0; pointer-events: none; }
.pdf-sidebar-scrim { display: none; }
.pdf-sheet-handle { display: none; }
.pdf-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 24px; border: 1px solid rgba(255,255,255,.7); }
.pdf-tabs button { min-height: 48px; border: 0; padding: 14px; background: transparent; color: #aeb4c3; font-weight: 900; cursor: pointer; }
.pdf-tabs button[aria-selected="true"] { background: #fff; color: #303240; }
.pdf-panel { display: none; }
.pdf-panel.is-active { display: grid; gap: 14px; }
.pdf-cover-wrap { position: relative; width: 132px; aspect-ratio: 210 / 297; border-radius: 8px; overflow: hidden; background: #eef2f7; box-shadow: 0 14px 30px rgba(0,0,0,.22); }
.pdf-cover-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.pdf-cover-page { display: none; width: 100%; height: 100%; background: #fff; }
.pdf-cover-page iframe { width: 794px; height: 1123px; border: 0; transform: scale(.166); transform-origin: top left; pointer-events: none; }
.pdf-kicker { color: #aeb4c3; margin: 16px 0 0; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.pdf-sidebar h1 { margin: 0; font-size: 20px; line-height: 1.35; }
.pdf-sidebar p { color: #c7cad6; margin: 0; }
.pdf-sidebar a { color: #61e2f6; font-weight: 900; }
.pdf-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pdf-actions button { border: 0; border-radius: 3px; padding: 8px 12px; background: #eff3f7; color: #2b2d38; font-weight: 900; cursor: pointer; }
.pdf-meta { display: grid; gap: 10px; margin: 14px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.pdf-meta div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; }
.pdf-meta dt { color: #aeb4c3; font-weight: 800; }
.pdf-meta dd { margin: 0; color: #f7f8fb; font-weight: 900; overflow-wrap: anywhere; }
.pdf-qr { background: #353543; color: #eef2f7; border-color: rgba(255,255,255,.2); }
.pdf-agent-tools { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.pdf-agent-tools h2 { margin: 0; font-size: 14px; }
.pdf-agent-tools p { margin: 4px 0 10px; color: #cbd5e1; font-size: 12px; line-height: 1.45; }
.pdf-agent-tools form { display: grid; gap: 8px; margin-top: 10px; }
.pdf-agent-tools label { display: grid; gap: 5px; font-size: 12px; font-weight: 900; color: #e2e8f0; }
.pdf-agent-tools input, .pdf-agent-tools select { min-height: 44px; border: 1px solid rgba(255,255,255,.24); border-radius: 10px; padding: 0 10px; background: #111827; color: #fff; }
.pdf-agent-tools button { min-height: 44px; border: 0; border-radius: 10px; background: #f8fafc; color: #111827; font-weight: 900; cursor: pointer; }
.pdf-stage { position: relative; grid-row: 2; min-width: 0; min-height: 0; overflow: auto; padding: 30px 48px 64px; background: #d9dbe5; }
.pdf-source-frame { position: absolute; left: -10000px; top: 0; width: var(--pdf-page-w); height: var(--pdf-page-h); border: 0; opacity: 0; pointer-events: none; }
.pdf-paper-shell { width: 100%; min-height: 100%; display: grid; justify-items: center; align-items: start; }
.pdf-page-grid { display: grid; grid-template-columns: repeat(var(--pdf-columns), calc(var(--pdf-page-w) * var(--pdf-zoom))); gap: calc(var(--pdf-gap) * var(--pdf-zoom)); justify-content: center; align-items: start; transition: grid-template-columns .18s ease, gap .18s ease; }
.pdf-page-grid:empty::before { content: "Loading document pages..."; display: grid; place-items: center; width: min(720px, 70vw); height: min(420px, 60vh); color: #536174; background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.18); font-weight: 900; }
.pdf-page { position: relative; width: calc(var(--pdf-page-w) * var(--pdf-zoom)); height: calc(var(--pdf-page-h) * var(--pdf-zoom)); overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.24); outline: 1px solid rgba(15,23,42,.12); }
.pdf-page.is-loading::before { content: "Loading page"; position: absolute; inset: 0; display: grid; place-items: center; color: #64748b; font-weight: 800; background: linear-gradient(180deg,#fff,#f8fafc); }
.pdf-page.is-print-queued::before { content: "Preparing page"; }
.pdf-page-viewport { position: relative; width: var(--pdf-page-w); height: var(--pdf-page-h); overflow: hidden; transform: scale(var(--pdf-zoom)); transform-origin: top left; }
.pdf-page-viewport iframe { position: absolute; left: 0; top: 0; width: var(--pdf-page-w); height: var(--pdf-page-h); border: 0; background: #fff; pointer-events: none; transform-origin: top left; }
.pdf-paper-shell.is-rotated .pdf-page { width: calc(var(--pdf-page-h) * var(--pdf-zoom)); height: calc(var(--pdf-page-w) * var(--pdf-zoom)); }
.pdf-paper-shell.is-rotated .pdf-page-viewport { transform: scale(var(--pdf-zoom)) rotate(90deg) translateY(-100%); transform-origin: top left; }
.pdf-page-label { position: absolute; right: 10px; bottom: 8px; z-index: 2; padding: 2px 7px; border-radius: 999px; background: rgba(15,23,42,.7); color: #fff; font-size: 11px; font-weight: 900; opacity: 0; transition: opacity .15s ease; }
.pdf-page:hover .pdf-page-label, .pdf-page.is-current .pdf-page-label { opacity: 1; }
.pdf-page.is-current { outline: 3px solid rgba(13,143,165,.42); }
.pdf-rail { position: sticky; top: 16px; z-index: 4; display: grid; gap: 10px; width: max-content; margin-left: -32px; float: left; }
.pdf-rail button { width: 44px; height: 44px; border: 0; border-radius: 999px; background: #fff; color: #506070; box-shadow: 0 6px 18px rgba(15,23,42,.18); font-weight: 900; cursor: pointer; }
.pdf-rail button:hover, .pdf-rail button:focus-visible { background: #0d8fa5; color: #fff; outline: none; }
.pdf-panel[data-pdf-panel="relations"] a { display: block; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); text-decoration: none; }
.pdf-search-panel { position: fixed; top: 82px; right: 22px; z-index: 70; display: grid; gap: 10px; width: min(360px, calc(100vw - 32px)); padding: 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; background: #20202a; color: #f8fafc; box-shadow: 0 22px 60px rgba(0,0,0,.35); }
.pdf-search-panel[hidden] { display: none; }
.pdf-search-panel label { display: grid; gap: 6px; font-weight: 900; }
.pdf-search-panel input { min-height: 44px; border: 1px solid #465063; border-radius: 10px; padding: 0 10px; background: #111827; color: #fff; }
.pdf-search-panel output { margin: 0; padding: 0; border: 0; background: transparent; color: #cbd5e1; font-weight: 900; }
.pdf-search-panel div { display: flex; gap: 8px; flex-wrap: wrap; }
.pdf-search-panel button { min-height: 44px; border: 0; border-radius: 9px; padding: 8px 10px; background: #eff3f7; color: #20202a; font-weight: 900; cursor: pointer; }
.policy-page { background: #fff; }
.policy-top { background: linear-gradient(180deg, #eef7ff 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.policy-top nav { display: flex; justify-content: space-between; gap: 18px; align-items: center; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0; }
.policy-top nav div { display: flex; gap: 10px; flex-wrap: wrap; }
.policy-top nav a { font-weight: 800; text-decoration: none; }
.policy-hero { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 58px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); gap: 42px; align-items: center; }
.policy-hero h1 { font-size: clamp(2.4rem, 7vw, 5.8rem); }
.policy-art { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.policy-art img { border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; background: #eef3f8; }
.policy-art img:first-child { grid-column: 1 / -1; }
.policy-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 24px 0 0; }
.policy-meta div { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: rgba(255,255,255,.85); }
.policy-meta dt { font-weight: 900; }
.policy-meta dd { margin: 2px 0 0; color: var(--muted); }
.policy-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; align-items: start; }
.policy-toc { position: sticky; top: 18px; display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #f8fbff; }
.policy-toc a { padding: 8px 10px; border-radius: 10px; text-decoration: none; font-weight: 800; color: #344256; }
.policy-toc a:hover, .policy-toc a:focus-visible { background: #eaf6f3; outline: none; }
.policy-content { min-width: 0; }
.policy-card h2 { font-size: 1.35rem; }
.policy-footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto 40px; padding: 20px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 820px) {
  .doc-hero, .policy-hero, .policy-layout { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .toc { top: 118px; }
  .topbar nav > a:nth-of-type(n+5) { display: none; }
  .nav-more { display: block; }
  .nav-more div { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-height: min(70vh, 520px); overflow-y: auto; border-radius: 22px; padding: 18px 14px 14px; transition: transform .2s ease; touch-action: pan-y; }
  .nav-more div::before { content: ""; width: 44px; height: 5px; border-radius: 999px; background: #91a0b2; justify-self: center; margin-bottom: 4px; }
  .nav-more div.is-dragging { transition: none; }
  .policy-toc { position: relative; top: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-summary > div, .code-table > div { grid-template-columns: 1fr; }
  .source-load-panel { align-items: stretch; flex-direction: column; }
  .source-load { width: 100%; }
  .symbol-popover { position: fixed; left: 16px; right: 16px; bottom: 14px; top: auto; width: auto; max-height: 72vh; border-radius: 20px 20px 8px 8px; }
  .line-no { text-align: left; }
  .pdf-app { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
  .pdf-toolbar { flex-wrap: wrap; gap: 8px; padding: 10px; }
  .pdf-toolbar-spacer { display: none; }
  .pdf-sidebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 86vh; border-radius: 22px 22px 0 0; border-right: 0; border-top: 1px solid rgba(255,255,255,.12); box-shadow: 0 -20px 60px rgba(0,0,0,.36); transform: translateY(calc(100% - 34px)); opacity: 1; padding: 10px 24px max(28px, env(safe-area-inset-bottom)); touch-action: none; }
.pdf-app:not(.is-sidebar-closed) .pdf-sidebar { transform: translateY(0); }
.pdf-app.is-sidebar-closed { grid-template-columns: 1fr; }
.pdf-app.is-sidebar-closed .pdf-sidebar { display: block; transform: translateY(calc(100% - 34px)); opacity: 1; pointer-events: auto; }
.pdf-sidebar.is-dragging { transition: none; }
  .pdf-app:not(.is-sidebar-closed) .pdf-sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(15,23,42,.42); }
  .pdf-sheet-handle { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 44px; border: 0; background: transparent; padding: 0 0 12px; cursor: grab; }
  .pdf-sheet-handle span { display: block; width: 46px; height: 5px; border-radius: 999px; background: #8f98aa; }
  .pdf-stage { grid-row: 2; padding: 18px 12px 52px; }
  .pdf-rail { top: 12px; margin-left: 0; float: none; position: fixed; left: 10px; z-index: 5; }
  .pdf-rail button { width: 44px; height: 44px; font-size: 11px; }
  .pdf-page-grid { gap: 16px; }
  .pdf-search-panel { left: 10px; right: 10px; top: 76px; width: auto; }
}
@media print {
  @page { size: A4; margin: 22mm 14mm 22mm; }
  :root { --bg: #fff; --shadow: none; }
  body { background: #fff !important; color: #111827; font-size: 10.5pt; }
  .topbar, .toc, .hero-actions, .skip-link, .policy-toc, .policy-footer, .run-actions, .print-header, .print-footer, .nav-more, .symbol-trigger, .source-load-panel { display: none !important; }
  main, .policy-layout, .policy-top nav, .policy-hero { width: auto; margin: 0; padding: 0; display: block; }
  .doc-hero, .doc-section, .policy-card { box-shadow: none; border-color: #cbd5e1; break-inside: auto; page-break-inside: auto; }
  .feature-grid article, .formula-grid article, .download-grid article, .method-card, .coverage-grid article, .credit-list article, figure { break-inside: avoid; page-break-inside: avoid; }
  .print-cover { display: grid; min-height: 245mm; align-content: center; gap: 10mm; text-align: center; break-after: page; }
  .print-cover img { width: 34mm; margin: 0 auto; }
  .print-cover h1 { font-size: 34pt; }
  .print-cover dl { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; text-align: left; }
  .print-cover div { border: 1px solid #cbd5e1; border-radius: 4mm; padding: 4mm; }
  .doc-hero { display: block; padding: 0 0 6mm; border: 0; background: #fff; break-after: avoid; }
  .doc-hero img, .policy-art { display: none; }
  h1 { font-size: 24pt; }
  h2 { font-size: 16pt; }
  h3 { font-size: 12pt; }
  a { color: #111827; text-decoration: none; }
  .source-file { break-before: page; page-break-before: always; overflow: visible; border-radius: 0; }
  .source-file summary { background: #fff; padding-top: 6mm; break-after: avoid; page-break-after: avoid; }
  .source-file[open] .code-table { display: grid; }
  .source-file[open] .symbol-list { display: flex; }
  .symbol-popover { display: grid !important; position: static; width: auto; max-height: none; overflow: visible; box-shadow: none; border: 0; padding: 0; }
  .code-table { font-size: 7.2pt; min-width: 0; }
  .code-table > div { grid-template-columns: 12mm 78mm 74mm; break-inside: avoid; }
  .code-head { position: static; background: #111827 !important; color: #fff !important; }
  pre, code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .pdf-preview-page { overflow: visible; background: #fff !important; }
  .pdf-preview-page .pdf-app { display: block; height: auto; background: #fff; --pdf-zoom: 1 !important; --pdf-columns: 1 !important; }
  .pdf-preview-page .pdf-toolbar, .pdf-preview-page .pdf-sidebar, .pdf-preview-page .pdf-sidebar-scrim, .pdf-preview-page .pdf-search-panel, .pdf-preview-page .pdf-rail, .pdf-preview-page .pdf-source-frame { display: none !important; }
  .pdf-preview-page .pdf-stage { display: block; overflow: visible; padding: 0; background: #fff; }
  .pdf-preview-page .pdf-paper-shell { display: block; width: auto; min-height: 0; }
  .pdf-preview-page .pdf-page-grid { display: block; }
  .pdf-preview-page .pdf-page { width: 210mm !important; height: 297mm !important; margin: 0 !important; box-shadow: none; outline: 0; break-after: page; page-break-after: always; overflow: hidden; }
  .pdf-preview-page .pdf-page:last-child { break-after: auto; page-break-after: auto; }
  .pdf-preview-page .pdf-page-viewport { position: relative; width: 794px; height: 1123px; overflow: hidden; transform: scale(1) !important; transform-origin: top left; }
  .pdf-preview-page .pdf-page-viewport iframe { width: 794px; }
  .pdf-preview-page .pdf-page-label { display: none; }
  .pdf-preview-page .pdf-page:not(.is-rendered)::before { content: none; }
}
