:root {
  color-scheme: light;
  --bg: #f6f7f8;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --border: #e3e3e3;
  --accent: #008060;
  --accent-hover: #006e52;
  --max-width: 760px;
  --header-height: 64px;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

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

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, 1080px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-height);
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  flex: 1;
}

.site-nav a.active {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.lang-switch a.active {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.lang-sep {
  color: var(--text-muted);
}

.main-content {
  padding: 2rem 0 3rem;
}

.doc-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 2.25rem;
  max-width: var(--max-width);
}

.doc-article h1 {
  margin: 0 0 0.5rem;
  font-size: 1.85rem;
  line-height: 1.25;
}

.meta-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.doc-section {
  margin-bottom: 2rem;
}

.doc-section:last-child {
  margin-bottom: 0;
}

.doc-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.doc-section p {
  margin: 0 0 0.75rem;
}

.doc-section ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.doc-section li {
  margin-bottom: 0.35rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

@media (max-width: 720px) {
  .doc-article {
    padding: 1.5rem 1.25rem;
  }

  .header-inner {
    align-items: flex-start;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}
