:root {
  --ink: #0b1219;
  --muted: #59636d;
  --blue: #2195f1;
  --blue-soft: #eef7ff;
  --green: #14804a;
  --green-soft: #eaf8f0;
  --amber: #9a5b00;
  --amber-soft: #fff8e8;
  --red: #a63232;
  --red-soft: #fff2f1;
  --bg: #f3f2f8;
  --surface: #ffffff;
  --line: rgba(11, 18, 25, 0.11);
  --shadow: 0 18px 56px rgba(11, 18, 25, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: #0b72c6;
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

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

.brand img {
  width: 34px;
  height: 34px;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.9rem;
  text-decoration: none;
}

.document {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(28px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 95% 0%, rgba(33, 149, 241, 0.17), transparent 34%),
    linear-gradient(180deg, #fff, #fbfdff);
}

.eyebrow {
  margin: 0 0 8px;
  color: #116eb8;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: #34404a;
  font-size: 1.08rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.82rem;
}

.content {
  padding: clamp(24px, 5vw, 52px);
}

.summary,
.toc,
.callout {
  border: 1px solid var(--line);
  border-radius: 16px;
}

.summary {
  padding: 20px 22px;
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
}

.summary strong,
.toc strong {
  display: block;
  margin-bottom: 8px;
}

.summary ul,
.compact {
  margin: 0;
  padding-left: 20px;
}

.summary li + li,
.compact li + li {
  margin-top: 6px;
}

.toc {
  margin-top: 18px;
  padding: 20px 22px;
  background: #fbfcfd;
}

.toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 28px;
  margin: 0;
  padding-left: 22px;
}

.toc a {
  color: #34404a;
}

section {
  scroll-margin-top: 20px;
  padding-top: 34px;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.018em;
}

h3 {
  margin: 22px 0 7px;
  font-size: 1.02rem;
}

p,
li,
dd,
dt {
  font-size: 0.98rem;
}

p {
  margin: 9px 0;
}

ul,
ol {
  padding-left: 23px;
}

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

.definitions {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 0;
  margin: 14px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.definitions dt,
.definitions dd {
  margin: 0;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.definitions dt {
  background: #f6f8f9;
  font-weight: 650;
}

.definitions dd {
  border-left: 1px solid var(--line);
}

.definitions dt:last-of-type,
.definitions dd:last-of-type {
  border-bottom: 0;
}

.callout {
  margin: 16px 0;
  padding: 14px 16px;
  background: #f7f9fa;
}

.callout.info {
  border-color: #b9dcf6;
  background: var(--blue-soft);
}

.callout.good {
  border-color: #b9dfca;
  background: var(--green-soft);
  color: #155d39;
}

.callout.warn {
  border-color: #ead29d;
  background: var(--amber-soft);
  color: #704300;
}

.callout.danger {
  border-color: #edc2bf;
  background: var(--red-soft);
  color: #7c2929;
}

.callout strong {
  color: inherit;
}

.contact-card {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfd;
}

.contact-card p {
  margin: 0;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 680px) {
  .page {
    width: min(100% - 20px, 920px);
    padding-top: 14px;
  }

  .document {
    border-radius: 18px;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

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

  .definitions dd {
    border-left: 0;
  }

  .definitions dt:not(:first-of-type) {
    border-top: 1px solid var(--line);
  }
}

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

  .page {
    width: 100%;
    padding: 0;
  }

  .topbar,
  .toc,
  .skip-link {
    display: none;
  }

  .document {
    border: 0;
    box-shadow: none;
  }

  .hero,
  .content {
    padding: 24px 0;
  }

  a {
    color: inherit;
  }
}
