/* Script-free draft publication pages. System fonts and same-origin stylesheet only. */
:root {
  color-scheme: light dark;
  --page: #ffffff;
  --surface: #f5f6f8;
  --text: #15171b;
  --muted: #51545c;
  --line: #d6d9df;
  --accent: #0759c7;
  --accent-surface: #edf4ff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --surface: #17191e;
    --text: #f5f6f8;
    --muted: #b2b4bd;
    --line: #424650;
    --accent: #8db6ff;
    --accent-surface: #101f38;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font: 1.0625rem/1.7 -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: .08em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
::selection { background: var(--accent); color: var(--page); }
.skip-link {
  position: fixed;
  z-index: 10;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--page);
  border: 2px solid var(--accent);
  border-radius: 10px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  border-block-end: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.025em;
  text-decoration: none;
}
.dot-mark { display: grid; grid-template-columns: repeat(3, 4px); gap: 4px; padding: 4px; flex: 0 0 auto; }
.dot-mark i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.dot-mark i:nth-child(5) { background: var(--accent); }
.secondary-nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.secondary-nav a, .site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px;
  color: var(--muted);
}
.secondary-nav a[aria-current="page"], .site-footer a[aria-current="page"] { color: var(--text); font-weight: 650; }

.document-shell { max-width: 1120px; margin: 0 auto; padding: 32px 24px 72px; }
.doc-heading { max-width: 720px; margin: 0 0 40px 268px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: .8rem; font-weight: 650; letter-spacing: .055em; }
h1, h2, h3 { color: var(--text); line-height: 1.2; text-wrap: balance; }
h1 { margin: 0 0 20px; font-size: clamp(2.25rem, 6vw, 3.5rem); letter-spacing: -.04em; }
h2 { margin: 36px 0 16px; font-size: 1.5rem; letter-spacing: -.025em; }
h3 { margin: 28px 0 12px; font-size: 1.125rem; letter-spacing: -.015em; }
p { margin: 0 0 16px; }
.version { display: inline-block; margin: 0 0 16px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .8rem; }
.lead { margin: 0 0 24px; color: var(--muted); font-size: 1.125rem; line-height: 1.65; }
.review-notice { margin: 0 0 36px; padding: 16px 20px; border-inline-start: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--accent-surface); }
.review-notice > :last-child, .callout > :last-child, .contact-card > :last-child { margin-block-end: 0; }

.document-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); align-items: start; gap: 48px; }
.toc { position: sticky; top: 24px; min-width: 0; max-height: calc(100vh - 48px); overflow-y: auto; padding: 0 4px 12px 0; font-size: .9rem; }
.toc h2, .toc h3 { margin: 0 0 8px; font-size: .9rem; letter-spacing: 0; }
.toc ul, .toc ol { margin: 0; padding: 0; list-style: none; }
.toc ul ul, .toc ol ol { padding-inline-start: 12px; }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 8px 6px; color: var(--muted); border-radius: 6px; }
.toc a:hover, .toc a:focus-visible { color: var(--accent); }
.document-copy { min-width: 0; max-width: 720px; overflow-wrap: anywhere; }
.document-copy > :first-child, .document-copy section:first-child > h2:first-child { margin-block-start: 0; }
.document-copy section + section { margin-block-start: 44px; }
.document-copy [id] { scroll-margin-block-start: 24px; }
.document-copy ul, .document-copy ol { margin: 0 0 20px; padding-inline-start: 24px; }
.document-copy li { padding-inline-start: 4px; margin-block-end: 8px; }
.document-copy li > p { margin-block-end: 8px; }
.document-copy li > ul, .document-copy li > ol { margin-block: 8px; }
.metadata { margin: 24px 0; color: var(--muted); font-size: .95rem; }
dl.metadata { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; }
.metadata dt { color: var(--text); font-weight: 600; }
.metadata dd { margin: 0; overflow-wrap: anywhere; }
.callout, .contact-card { margin: 24px 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.callout h2:first-child, .callout h3:first-child, .contact-card h2:first-child, .contact-card h3:first-child { margin-block-start: 0; }
.contact-card a { display: inline-block; min-height: 44px; max-width: 100%; padding-block: 7px; overflow-wrap: anywhere; }
.contact-card p, .contact-card dd { overflow-wrap: anywhere; }
details { margin: 20px 0; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 600; }
details[open] { padding-block-end: 16px; }
details[open] summary { margin-block-end: 8px; }
.table-wrap { max-width: 100%; margin: 24px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; min-width: 36rem; border-collapse: collapse; text-align: start; font-size: .95rem; }
caption { padding: 14px 16px; text-align: start; font-weight: 600; }
th, td { padding: 12px 16px; vertical-align: top; border-block-end: 1px solid var(--line); }
th { background: var(--surface); font-weight: 600; }
tr:last-child td { border-block-end: 0; }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .9em; overflow-wrap: anywhere; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; max-width: 1120px; margin: 0 auto; padding: 24px 24px 40px; border-block-start: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 0; }

@media (max-width: 959px) {
  .doc-heading { margin-inline-start: 0; }
  .document-shell { max-width: 768px; }
  .document-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; max-height: none; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
}
@media (max-width: 480px) {
  .site-header { padding-inline: 20px; }
  .document-shell { padding: 28px 20px 48px; }
  .site-footer { padding-inline: 20px; }
  .secondary-nav { gap: 0 4px; }
  .secondary-nav a { padding-inline: 6px; }
  dl.metadata { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .metadata dd + dt { margin-block-start: 12px; }
  .review-notice, .callout, .contact-card { padding: 16px; }
}
@media (prefers-contrast: more) {
  :root { --muted: var(--text); --line: var(--text); }
  a { text-decoration-thickness: .12em; }
}
@media (forced-colors: active) {
  .dot-mark i { background: CanvasText; }
  .review-notice, .callout, .contact-card, .toc, details, .table-wrap { border: 1px solid CanvasText; }
}
@media print {
  :root {
    color-scheme: light;
    --page: #ffffff;
    --surface: #f5f6f8;
    --text: #15171b;
    --muted: #51545c;
    --line: #d6d9df;
    --accent: #0759c7;
    --accent-surface: #edf4ff;
  }
  body { background: #fff; color: #000; font-size: 11pt; }
  .secondary-nav, .toc, .skip-link { display: none; }
  .document-shell, .site-header, .site-footer { max-width: none; padding-inline: 0; }
  .doc-heading { margin-inline-start: 0; }
  .document-layout { display: block; }
  .document-copy { max-width: none; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; }
  h2, h3 { break-after: avoid; }
  a { color: inherit; }
}
