:root {
  --ground: #ffffff;
  --surface: #f3f6f7;
  --hairline: #e2e8ea;
  --text: #0f1720;
  --text-2: #5b6672;
  --text-3: #8e97a1;
  --brand: #0338d6;
  --lime: #c8f135;
  --ink: #0b5a78;
  --todo: rgba(224, 145, 47, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0b1220;
    --surface: #16233a;
    --hairline: #26344c;
    --text: #f3f6f7;
    --text-2: #a9b4bf;
    --text-3: #7f8a96;
    --ink: #4fb8de;
    --todo: rgba(224, 145, 47, 0.28);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

header img { height: 30px; width: auto; display: block; }

.langs { display: flex; gap: 6px; }

.langs button {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}

.langs button[aria-pressed='true'] {
  background: var(--lime);
  border-color: var(--lime);
  color: #0f1720;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.updated { color: var(--text-3); font-size: 14px; margin: 0 0 32px; }

h2 {
  font-size: 19px;
  margin: 36px 0 10px;
  letter-spacing: -0.01em;
}

h3 { font-size: 16px; margin: 22px 0 6px; }

p, li { color: var(--text-2); font-size: 15.5px; }

li { margin-bottom: 6px; }

strong { color: var(--text); font-weight: 600; }

a { color: var(--ink); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14.5px;
  display: block;
  overflow-x: auto;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  color: var(--text-2);
}

th { color: var(--text); font-weight: 600; white-space: nowrap; }

.note {
  background: var(--surface);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 20px 0;
}

.note p:last-child { margin-bottom: 0; }
.note p:first-child { margin-top: 0; }

.fill {
  background: var(--todo);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  color: var(--text-3);
  font-size: 13.5px;
}

[hidden] { display: none !important; }
