:root {
  color-scheme: dark;
  --bg: #151a17;
  --panel: #1d2420;
  --panel-2: #202923;
  --border: #334039;
  --text: #eef4f0;
  --muted: #a8b6ae;
  --accent: #78c4a4;
  --accent-strong: #0d6b47;
  --warning-bg: #2b2418;
  --warning-border: #7f6a34;
  --warning-text: #f3ddb1;
  --danger-bg: #301c1c;
  --danger-border: #7b3a3a;
  --danger-text: #f0b8b8;
  --max-width: 920px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: #9ad5bb;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(21, 26, 23, 0.94);
}

.site-header__inner {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand svg {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-size: 1.05rem;
  font-weight: 720;
  letter-spacing: 0.01em;
}

.brand__sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
}

.header-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.header-link:hover {
  color: var(--accent);
}

main {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.document-head {
  margin-bottom: 28px;
}

.document-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.25;
  color: var(--text);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.035em;
}

.document-meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.card h2:first-child,
.card h3:first-child {
  margin-top: 0;
}

section {
  margin: 40px 0;
}

section h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

section h3 {
  margin: 24px 0 10px;
  font-size: 1.05rem;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 10px 0 16px;
  padding-left: 1.35rem;
}

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

strong {
  color: #fff;
}

.notice {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--warning-border);
  background: var(--warning-bg);
  color: var(--warning-text);
}

.placeholder {
  display: inline-block;
  padding: 0.08em 0.4em;
  border: 1px solid var(--danger-border);
  border-radius: 6px;
  background: var(--danger-bg);
  color: var(--danger-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.94rem;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}

.data-table th {
  width: 25%;
  background: var(--panel-2);
  color: var(--text);
}

.data-table td {
  background: var(--panel);
}

.code-like {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #d9e7df;
}

.footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer__inner {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 36px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.86rem;
}

@media (max-width: 700px) {
  .site-header__inner {
    align-items: flex-start;
  }

  .header-link {
    display: none;
  }

  main {
    padding-top: 34px;
  }

  .card {
    padding: 18px;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    margin-bottom: 12px;
  }

  .data-table th {
    border-bottom: 0;
  }
}
