:root { color-scheme: light; --ink: #1b1f3b; --muted: #5b6283; --accent: #4f4ce8; --accent-2: #2fb8f5; --violet: #8b7bff; --line: #e3e7f5; --wash: #f2f6ff; --card: #ffffff; --grad: linear-gradient(135deg, #2fb8f5 0%, #4f6bff 50%, #8b7bff 100%); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; background: radial-gradient(1200px 600px at 10% -10%, #c9efff 0%, transparent 60%), radial-gradient(1000px 600px at 100% 0%, #e4dcff 0%, transparent 55%), #f5f8ff; background-attachment: fixed; min-height: 100vh; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: #3530b8; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: -80px; background: #fff; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { top: 12px; z-index: 30; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .72); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(79, 76, 232, .08); }
.topbar-inner { max-width: 1040px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 14px rgba(79, 107, 255, .3); }
.document-nav { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.document-nav a { padding: 7px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; transition: background .2s, color .2s; }
.document-nav a:hover { background: rgba(79, 76, 232, .08); color: var(--accent); }
.document-nav [aria-current="page"] { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(79, 107, 255, .3); }
.document-nav [aria-current="page"]:hover { color: #fff; }
.page { max-width: 920px; margin: 0 auto; padding: 44px 24px 56px; }
.doc-hero { text-align: center; margin: 0 0 30px; }
.doc-badge { display: inline-block; margin: 0 0 14px; padding: 5px 14px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid rgba(79, 76, 232, .15); color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0 0 14px; font-size: clamp(32px, 5.5vw, 48px); letter-spacing: -.03em; line-height: 1.15; font-weight: 850; background: linear-gradient(90deg, #3a8dff, #4f4ce8 55%, #8b7bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.meta { margin: 4px 0; color: var(--muted); font-size: 14px; }
main { background: var(--card); border-radius: 24px; padding: 36px 44px 20px; box-shadow: 0 20px 60px rgba(60, 80, 180, .10), 0 2px 6px rgba(60, 80, 180, .05); border: 1px solid rgba(255, 255, 255, .9); }
.intro { margin: 0 0 26px; padding: 18px 22px; border-radius: 16px; background: linear-gradient(135deg, #e8f7ff, #efeaff); border: 1px solid #dde6ff; }
.intro p { margin: 0; }
.toc { margin: 0 0 36px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--wash); }
.toc summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.toc ol { columns: 2; column-gap: 36px; padding-left: 23px; margin: 15px 0 0; font-size: 14px; line-height: 1.55; }
.toc li { break-inside: avoid; padding: 0 0 9px 2px; }
.toc li::marker { color: var(--violet); font-weight: 700; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
section { margin: 0 0 30px; }
h2 { position: relative; margin: 0 0 16px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 22px; line-height: 1.35; letter-spacing: -.015em; }
h2::before { content: ""; display: inline-block; width: 6px; height: 20px; margin-right: 12px; border-radius: 3px; background: var(--grad); vertical-align: -3px; }
h3 { margin: 20px 0 6px; font-size: 16px; line-height: 1.5; font-weight: 700; color: #2b2f5a; }
p { margin: 0 0 12px; overflow-wrap: break-word; color: #343a5e; }
footer { margin-top: 32px; text-align: center; font-size: 14px; color: var(--muted); }
footer p { margin-bottom: 8px; color: var(--muted); }
.back-top a { display: inline-block; margin-top: 6px; padding: 8px 18px; border-radius: 999px; background: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 4px 14px rgba(60, 80, 180, .1); }
.publication-note { margin: 0 0 22px; border: 1px solid #f2dfb0; border-radius: 14px; padding: 13px 17px; color: #6b5420; background: #fffaf0; font-size: 14px; line-height: 1.6; }
.publication-note p { color: inherit; }
.publication-note p:last-child { margin-bottom: 0; }
.placeholder { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; background: #fff3da; color: #684a12; overflow-wrap: anywhere; padding: 1px 4px; border-radius: 4px; }
.table-wrap { width: 100%; overflow-x: auto; margin: 0 0 25px; border-radius: 14px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { text-align: left; font-weight: 700; padding: 12px 14px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { background: var(--wash); color: var(--accent); }
tbody th { width: 23%; font-weight: 650; }
.copy { padding: 17px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; user-select: text; }
.copy p:last-child { margin-bottom: 0; }
.description-copy { white-space: pre-wrap; overflow-wrap: break-word; }
.permission { margin-bottom: 25px; }
.permission-key { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; background: var(--wash); padding: 1px 5px; border-radius: 4px; }
.note { font-size: 14px; color: var(--muted); margin-top: 10px; }
.reference-list, .review-list { padding-left: 22px; }
.reference-list li, .review-list li { margin-bottom: 8px; }
@media (max-width: 680px) {
  .topbar-inner { padding: 10px 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .document-nav a { padding: 6px 11px; font-size: 13px; }
  .page { padding: 28px 12px 40px; }
  main { padding: 22px 18px 10px; border-radius: 18px; }
  .toc ol { columns: 1; }
  h2 { font-size: 20px; }
  .intro { padding: 15px 16px; }
  body { line-height: 1.7; }
  th, td { padding: 9px 10px; }
  table { font-size: 14px; }
  .copy { padding: 14px 15px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  @page { size: A4; margin: 18mm; }
  body { background: #fff; font-size: 10.5pt; line-height: 1.5; }
  .topbar, .skip-link, .toc, .back-top, .doc-badge { display: none; }
  .page { max-width: none; margin: 0; padding: 0; }
  main { box-shadow: none; border: 0; padding: 0; border-radius: 0; }
  h1 { font-size: 25pt; color: #000; background: none; }
  h2 { font-size: 15pt; padding-top: 14px; }
  h2::before { display: none; }
  h3 { font-size: 10.5pt; }
  h2, h3 { break-after: avoid; }
  p { orphans: 3; widows: 3; }
  a { color: inherit; }
  .intro { background: none; }
}
