@import url("section-colors.css");

:root {
  color-scheme: light;
  --plane: #ffffff;
  --surface: #fafafa;
  --ink: #181925;
  --ink-2: #666666;
  --muted: #707070;
  --grid: #e8e8e8;
  --border: rgba(11,11,11,.10);
  --accent: #184f95;
  --warning: #fab219;
  --critical: #d03b3b;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --plane: #0d0d0d;
    --surface: #1a1a19;
    --ink: #fff;
    --ink-2: #c3c2b7;
    --muted: #9b9a93;
    --grid: #2c2c2a;
    --border: rgba(255,255,255,.10);
    --accent: #3987e5;
  }
}
* { box-sizing: border-box; letter-spacing: 0 !important; }
body {
  margin: 0;
  background: var(--plane);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}
.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 26px 20px;
}
.masthead .inner { max-width: 1180px; margin: 0 auto; }
.masthead h1 { margin: 0; font-size: 27px; letter-spacing: -.02em; }
.masthead .sub { color: var(--muted); font-size: 15px; margin-top: 2px; }
.url {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 15px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}
.layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  display: flex;
  gap: 34px;
  align-items: flex-start;
}
nav.toc {
  position: sticky;
  top: 24px;
  flex: 0 0 232px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
}
nav.toc b {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
nav.toc ol { margin: 0; padding-left: 20px; }
nav.toc li { margin-bottom: 6px; }
nav.toc a { color: var(--ink-2); text-decoration: none; }
nav.toc a:hover { color: var(--accent); text-decoration: underline; }
main { flex: 1; min-width: 0; }
section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 20px;
}
section > h2 {
  margin: 0 0 14px;
  font-size: 21px;
  letter-spacing: -.01em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--grid);
}
section > h2 .n {
  display: inline-block;
  min-width: 27px;
  height: 27px;
  line-height: 27px;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: 7px;
  font-size: 15px;
  margin-right: 10px;
}
h3 { font-size: 16px; margin: 22px 0 8px; }
p { margin: 0 0 12px; }
table { border-collapse: collapse; width: 100%; margin: 12px 0 16px; font-size: 15px; }
th, td { text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--grid); vertical-align: top; }
th { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); background: var(--plane); }
.callout {
  display: flex;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 9px;
  border: 1px solid var(--border);
  margin: 14px 0;
  font-size: 15px;
}
.callout .ico { font-size: 18px; line-height: 1.4; font-weight: 800; }
.callout p:last-child { margin-bottom: 0; }
.c-note { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-color: var(--accent); }
.c-warn { background: color-mix(in srgb, var(--warning) 16%, var(--surface)); border-color: var(--warning); }
footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 50px;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 900px) {
  .layout { flex-direction: column; }
  nav.toc { position: static; width: 100%; flex: none; }
  section { padding: 18px 16px; }
}
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .masthead { border-bottom: 2px solid #000; padding: 0 0 10px; }
  .url { background: none; color: #000; padding: 0; font-size: 13pt; }
  nav.toc, .layout { display: block; }
  .layout { padding: 0; max-width: none; }
  section { border: none; border-radius: 0; padding: 0; margin: 0 0 14pt; break-inside: avoid; }
  section > h2 { font-size: 14pt; border-bottom: 1px solid #000; }
  section > h2 .n { background: none; color: #000; min-width: 0; margin-right: 4px; }
  th { background: #eee !important; }
  table, .callout { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
