:root {
  color-scheme: light;
  --paper: #edf1ee;
  --ink: #222922;
  --muted: #4e5b52;
  --accent: #345445;
  --line: #b7beb1;
  --body: "Golos Text", Arial, sans-serif;
  --title: "PT Serif", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--paper); }
.page { width: min(100% - 72px, 1240px); margin-inline: auto; }
.top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 74px; border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  font-size: 20px; font-weight: 650; text-decoration: none;
}
.brand img { width: 29px; height: 29px; }
.top nav { display: flex; align-items: center; gap: clamp(12px, 2.6vw, 34px); }
.top nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--muted); font-size: 15px; text-decoration: none;
}
.top nav a:hover, .foot a:hover { color: var(--accent); text-decoration: underline; }
h1, h2 { margin: 0; font-family: var(--title); font-weight: 400; }
h1 {
  max-width: 28ch; font-size: clamp(26px, 6.5vw, 56px);
  line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere;
}
.intro { padding-block: 54px 44px; }
.revision { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.lead { max-width: 65ch; margin: 18px 0 0; color: var(--muted); font-size: 18px; text-wrap: pretty; }
.document-layout {
  display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 800px);
  gap: clamp(44px, 7vw, 104px); padding-top: 32px; padding-bottom: 54px; border-top: 1px solid var(--line);
}
.contents { align-self: start; }
.contents-title { margin: 0 0 6px; font-size: 15px; font-weight: 650; }
.contents ol { margin: 0; padding: 0; list-style: none; }
.contents a {
  display: flex; align-items: center; width: fit-content; min-height: 40px; padding-block: 4px;
  color: var(--muted); font-size: 15px; text-decoration: none;
}
.contents a:hover { color: var(--accent); text-decoration: underline; }
@media (min-width: 821px) and (min-height: 560px) {
  .contents { position: sticky; top: 24px; }
}
.document-section + .document-section { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.document-section h2 { margin-bottom: 14px; font-size: clamp(23px, 3vw, 31px); line-height: 1.18; letter-spacing: -.02em; }
.document-section p { max-width: 70ch; margin: 0 0 12px; overflow-wrap: anywhere; }
.document-section p:last-child { margin-bottom: 0; }
.data-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th, .data-table td {
  padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top; overflow-wrap: anywhere;
}
.data-table tr > :last-child { padding-right: 0; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table thead th, .table-label { color: var(--muted); font-size: 14px; font-weight: 600; }
.data-table tbody th { font-weight: 600; }
.data-table tbody td { color: var(--muted); }
.collection-table thead th:first-child { width: 36%; }
.collection-table thead th:nth-child(2) { width: 24%; }
.table-label { display: none; }
.foot {
  display: flex; flex-wrap: wrap; gap: 10px 26px; padding-block: 26px 36px;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
@media (max-width: 820px) {
  .page { width: min(100% - 36px, 620px); }
  .top { min-height: 61px; }
  .intro { padding-block: 31px; }
  .lead { margin-top: 13px; font-size: 16px; }
  .document-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; padding-bottom: 38px; }
  .contents { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .contents ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .contents a { min-height: 44px; }
  .document-section + .document-section { margin-top: 24px; padding-top: 24px; }
}
@media (max-width: 540px) {
  .collection-table, .collection-table tbody { display: block; }
  .collection-table thead {
    position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .collection-table tbody tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 16px; padding-block: 12px; border-bottom: 1px solid var(--line);
  }
  .collection-table tbody tr:first-child { padding-top: 0; }
  .collection-table tbody tr:last-child { padding-bottom: 0; border-bottom: 0; }
  .collection-table tbody th { grid-column: 1 / -1; }
  .collection-table tbody th, .collection-table tbody td { padding: 0; border: 0; }
  .table-label { display: block; margin-bottom: 2px; }
}
@media (max-width: 420px) {
  .top nav { gap: 13px; }
  .top nav a { font-size: 14px; }
  .top nav a[href="/#start"] { display: none; }
}
