

:root {
  --bg:              #08090B;
  --surface:         #13151A;
  --surface-2:       #1A1D23;
  --hairline:        rgba(255,255,255,0.08);
  --hairline-strong: rgba(255,255,255,0.16);
  --label:           #F5F6F7;
  --label-2:         rgba(245,246,247,0.62);
  --label-3:         rgba(245,246,247,0.51);
  --accent:          #FF5A1F;
  --brass:           #C9A227;

  --r-control: 12px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --measure: 700px;
  --rail: 240px;

  --ff: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, 'Segoe UI', sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--label-2);
  font-family: var(--ff);
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--label); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hairline-strong); }
a:hover { text-decoration-color: currentColor; }
strong, b { color: var(--label); font-weight: 600; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.chrome {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding: 8px max(24px, calc((100% - 1180px) / 2 + 24px));
  background: rgba(19, 21, 26, 0.62);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--hairline);
}
.chrome-logo {
  display: inline-flex;
  align-items: center;
  min-height: max(44px, 2.75rem);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--label);
  text-decoration: none;
}
.chrome-doc { font-size: 0.9375rem; letter-spacing: -0.014em; color: var(--label-3); }
.chrome-doc::before { content: '/'; margin-right: 12px; color: var(--hairline-strong); }

@media (max-width: 519px) { .chrome-doc { display: none; } }

.doc {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 96px;
}
@media (min-width: 768px) { .doc { padding-left: 40px; padding-right: 40px; } }

.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 72px; }
@media (min-width: 768px) { .doc-grid { padding-top: 96px; } }
@media (min-width: 1024px) {
  .doc-grid { grid-template-columns: var(--rail) minmax(0, 1fr); gap: 64px; align-items: start; }
}
.doc-body { max-width: var(--measure); min-width: 0; }

.masthead { padding-bottom: 40px; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label-3);
}

.doc-title {
  margin-top: 16px;
  font-size: clamp(1.8125rem, 7vw, 3.75rem);
  line-height: 1.07;
  letter-spacing: 0.011em;
  font-weight: 600;
  color: var(--label);
  text-wrap: balance;
  overflow-wrap: break-word;
}

.doc-lead {
  margin-top: 24px;
  font-size: clamp(1.1875rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.005em;
  font-weight: 300;
  color: var(--label-2);
  text-wrap: pretty;
}

.imprint {
  margin-top: 40px;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) { .imprint { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.imprint-cell { padding: 16px 0; border-bottom: 1px solid var(--hairline); }
@media (min-width: 640px) {
  .imprint-cell { padding: 20px 24px 20px 0; }
  .imprint-cell + .imprint-cell { padding-left: 24px; border-left: 1px solid var(--hairline); }
}
.imprint-key {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--label-3);
}
.imprint-val {
  display: block;
  margin-top: 6px;
  font-family: var(--ff-mono);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  color: var(--label);
}

.toc { min-width: 0; }
@media (min-width: 1024px) {
  .toc {
    position: sticky;

    top: calc(60px + 32px);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
.toc-title {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--label-3);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.toc-list { list-style: none; margin-top: 4px; }
.toc-list a {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 4px;
  padding: 8px 0;
  font-size: 0.875rem;
  line-height: 1.35;
  letter-spacing: -0.014em;
  color: var(--label-3);
  text-decoration: none;
}
.toc-list a:hover { color: var(--label-2); }

.toc-list a.is-current { color: var(--label); font-weight: 500; }
.toc-num { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; color: var(--label-3); }
.toc-list a.is-current .toc-num { color: var(--label-2); }

.toc-mobile { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.toc-mobile > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: max(52px, 3.25rem);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.014em;
  color: var(--label);
}
.toc-mobile > summary::-webkit-details-marker { display: none; }
.toc-mobile > summary::after {
  content: '';
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--label-3);
  border-bottom: 1.5px solid var(--label-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 200ms var(--ease);
}
.toc-mobile[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.toc-mobile .toc-list { padding-bottom: 12px; }
@media (min-width: 1024px) { .toc-mobile { display: none; } }
@media (max-width: 1023px) { .toc-desktop { display: none; } }

.preamble { padding: 8px 0 32px; }
.preamble p { margin-bottom: 16px; }
.preamble p:last-child { margin-bottom: 0; }

.sec {
  padding: 48px 0;
  border-top: 1px solid var(--hairline);

  scroll-margin-top: 92px;
}
.sec:first-of-type { border-top: none; }

.sec h2 {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.18;
  letter-spacing: 0.007em;
  font-weight: 600;
  color: var(--label);
}

.sec-num {
  font-family: var(--ff-mono);
  font-size: 0.875em;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--label-3);
  padding-top: 0.12em;
}
.sec h3 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.016em;
  font-weight: 600;
  color: var(--label);
}

.sec p { margin-bottom: 16px; }
.sec p:last-child { margin-bottom: 0; }
.sec ul, .sec ol { margin: 0 0 16px 1.25rem; }
.sec li { margin-bottom: 10px; padding-left: 4px; }
.sec li::marker { color: var(--label-3); }

.callout {
  margin: 28px 0;
  padding-left: 20px;
  border-left: 2px solid var(--brass);
}
.callout-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
}
.callout p { margin-bottom: 12px; }
.callout p:last-child { margin-bottom: 0; }

.defs { margin: 8px 0 0; border-top: 1px solid var(--hairline); }
.defs div { border-bottom: 1px solid var(--hairline); padding: 18px 0; }
@media (min-width: 768px) {
  .defs div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
}
.defs dt { color: var(--label); font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.014em; }
.defs dd { font-size: 0.9375rem; line-height: 1.6; }
@media (max-width: 767px) { .defs dd { margin-top: 4px; } }

.table-wrap { margin: 8px 0 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.55; min-width: 520px; }
th, td { text-align: left; padding: 14px 20px 14px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th {
  border-bottom-color: var(--hairline-strong);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--label-3);
  white-space: nowrap;
}
td { color: var(--label-2); }
td:first-child { color: var(--label); }

.contacts { margin-top: 8px; border-top: 1px solid var(--hairline); }
.contacts div { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
@media (min-width: 768px) {
  .contacts div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: baseline; }
}
.contacts dt { color: var(--label-3); font-size: 0.9375rem; }
.contacts dd { color: var(--label); font-size: 0.9375rem; }
@media (max-width: 767px) { .contacts dd { margin-top: 4px; } }

code { font-family: var(--ff-mono); font-size: 0.92em; color: var(--label); overflow-wrap: anywhere; }

.doc-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 24px;
}
@media (min-width: 768px) { .doc-footer { padding-left: 40px; padding-right: 40px; } }
.doc-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: -0.018em;
  color: var(--label-3);
}
.doc-footer a { color: var(--label-2); }
.doc-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .chrome { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root {
    --label-2: rgba(245,246,247,0.84);
    --label-3: rgba(245,246,247,0.64);
    --hairline: rgba(255,255,255,0.26);
    --hairline-strong: rgba(255,255,255,0.4);
  }
}

@media print {
  :root {
    --bg: #fff; --surface: #fff; --surface-2: #fff;
    --label: #000; --label-2: #1a1a1a; --label-3: #555;
    --hairline: #ccc; --hairline-strong: #999; --brass: #6b5410;
  }
  html, body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.5; }
  .chrome, .toc, .doc-footer nav { display: none; }
  .doc { max-width: none; padding: 0; }
  .doc-grid { display: block; }
  .doc-body, .masthead { max-width: none; }
  .masthead { padding: 0 0 16pt; }
  .doc-title { font-size: 22pt; }
  .doc-lead { font-size: 12pt; }
  a { color: #000; text-decoration: underline; }

  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 8.5pt; color: #555; word-break: break-all; }
  .sec { padding: 12pt 0; break-inside: auto; }
  .sec h2, .sec h3 { break-after: avoid; }
  table, .defs div, .contacts div, .callout { break-inside: avoid; }
  .callout { border-left: 2pt solid #6b5410; }
}
