:root {
  color-scheme: light dark;
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --border: #ECEAE6;
  --text: #222222;
  --sub: #4A4A4A;
  --ter: #6A6A6A;
  --primary: #0B7A70;
  --tonal: #EEF8F6;
  --tonal-text: #08625A;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121416;
    --surface: #1C1F21;
    --border: #2A2E31;
    --text: #F2F2F2;
    --sub: #C4CACC;
    --ter: #A9B0B3;
    --primary: #4FC7B9;
    --tonal: #16312E;
    --tonal-text: #7FE0D3;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  line-height: 1.65;
}

a { color: var(--tonal-text); }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--primary);
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 10px;
}

.skip:focus { top: 12px; }

.topbar, main, .footer {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

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

.lang {
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--tonal);
}

.chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--tonal);
  color: var(--tonal-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 16px 0 8px;
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.updated { margin: 0 0 24px; color: var(--ter); font-size: 15px; }

.summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 22px;
  margin-bottom: 28px;
}

.summary h2 { margin-top: 0; }

.summary ul { margin-bottom: 0; }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 22px;
  margin-bottom: 32px;
}

.toc ol { margin: 8px 0 0; padding-left: 20px; }

.toc a { text-decoration: none; }

h2 {
  margin: 36px 0 10px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
  scroll-margin-top: 16px;
}

h3 { margin: 22px 0 6px; font-size: 17px; font-weight: 700; }

p, li { color: var(--sub); font-size: 16px; }

strong { color: var(--text); }

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

li { margin: 4px 0; }

.table-wrap { overflow-x: auto; margin: 12px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}

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

th { color: var(--text); font-weight: 700; background: var(--surface); }

.steps { counter-reset: step; list-style: none; padding: 0; }

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin: 14px 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 30px;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 48px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  color: var(--ter);
  font-size: 14px;
}

.footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

.footer a { color: var(--sub); }

.footer a[aria-current="page"] { color: var(--text); font-weight: 700; text-decoration: none; }

@media (max-width: 520px) {
  .lang { padding: 8px 12px; }
  .summary, .toc { padding: 16px 18px; }
}
