:root {
  --text: #1f2937;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --bg-subtle: #f9fafb;
  --accent: oklch(0.3758 0.0485 257.9);
  ;
  --note-bg: #eff6ff;
  --note-border: #3b82f6;
  --warning-bg: #fffbeb;
  --warning-border: #f59e0b;
  --tip-bg: #f0fdf4;
  --tip-border: #10b981;
  --important-bg: #fef2f2;
  --important-border: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #ffffff;
}

.page {
  min-height: 100vh;
  padding: 32px;
  max-width: 1000px;
}

h1 {
  margin: 0 0 28px 0;
  font-size: 36px;
  line-height: 1.25;
}

h2 {
  margin: 36px 0 10px 0;
  font-size: 22px;
  line-height: 1.3;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

h3 {
  margin: 24px 0 8px 0;
  font-size: 17px;
  line-height: 1.4;
}

h4 {
  margin: 16px 0 6px 0;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.4;
}

p {
  margin: 0 0 12px 0;
  line-height: 1.6;
  max-width: 78ch;
}

ul,
ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
  max-width: 78ch;
}

li {
  margin-bottom: 6px;
  line-height: 1.6;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 24px 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

th {
  background: #f3f4f6;
  text-align: left;
  font-weight: bold;
  padding: 10px 14px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 9px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
}

tr:nth-child(even) td {
  background: var(--bg-subtle);
}

strong {
  display: contents;
}

/* Callouts */
.callout {
  margin: 16px 0 20px 0;
  padding: 12px 16px;
  border-radius: 4px;
  border-left-width: 4px;
  border-left-style: solid;
  max-width: 72ch;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout-note {
  background: var(--note-bg);
  border-left-color: var(--note-border);
}

.callout-warning {
  background: var(--warning-bg);
  border-left-color: var(--warning-border);
}

.callout-tip {
  background: var(--tip-bg);
  border-left-color: var(--tip-border);
}

.callout-important {
  background: var(--important-bg);
  border-left-color: var(--important-border);
}

.callout-label {
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Step lists */
ol.steps {
  counter-reset: steps;
  list-style: none;
  padding-left: 0;
}

ol.steps li {
  counter-increment: steps;
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  align-items: flex-start;
}

ol.steps li::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Related links */
.related {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.related h2 {
  margin-top: 0;
  font-size: 13px;
  border-bottom: none;
  padding-bottom: 0;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.related ul {
  margin: 8px 0 0 0;
}

.related a {
  color: var(--accent);
  text-decoration: none;
}

.related a:hover {
  text-decoration: underline;
}

/* Inline code */
code {
  font-family: monospace;
  background: #f3f4f6;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.9em;
}

@media (max-width: 720px) {
  .page {
    padding: 20px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 19px;
  }

  ol.steps li {
    flex-direction: column;
    gap: 6px;
  }
}