:root {
  color-scheme: light;
  --navy: #262e4a;
  --paper: #f4f2ec;
  --white: #ffffff;
  --muted: #667086;
  --accent: #c05f3f;
  --line: #d8d3c7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--navy) 35%, transparent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
}

.header-inner {
  width: min(960px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.back-link {
  font-size: 14px;
}

main {
  width: min(960px, calc(100% - 40px));
  margin: 56px auto 80px;
}

.hero {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.12;
}

.hero-text {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 44px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.toc a {
  font-size: 14px;
}

.document {
  max-width: 820px;
}

section + section {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 18px;
  font-size: 27px;
  line-height: 1.25;
}

h3 {
  margin: 28px 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

p {
  margin: 0 0 15px;
}

ul,
ol {
  margin: 12px 0 18px;
  padding-left: 24px;
}

li + li {
  margin-top: 7px;
}

.operator-card,
.data-item,
.note {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
}

.operator-card {
  display: grid;
  gap: 7px;
  margin: 22px 0 4px;
  padding: 22px;
}

.operator-card strong {
  font-size: 17px;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.data-item {
  padding: 18px;
}

.data-item b {
  display: block;
  margin-bottom: 5px;
}

.note {
  margin: 20px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
}

.small {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 10px;
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 76px;
  }

  .header-inner,
  main,
  .site-footer {
    width: min(100% - 32px, 960px);
  }

  .header-inner {
    min-height: 64px;
  }

  .back-link {
    font-size: 13px;
  }

  main {
    margin-top: 32px;
  }

  .hero {
    padding-bottom: 28px;
  }

  .hero-text {
    font-size: 16px;
  }

  .toc {
    margin-bottom: 34px;
  }

  .data-grid {
    grid-template-columns: 1fr;
  }

  section + section {
    margin-top: 34px;
    padding-top: 34px;
  }

  h2 {
    font-size: 24px;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .toc,
  .site-footer {
    display: none;
  }

  main {
    width: auto;
    margin: 0;
  }

  .hero {
    padding-bottom: 24px;
  }

  .document {
    max-width: none;
  }

  section {
    break-inside: avoid;
  }
}
