:root {
  --bg: #faf9f7;
  --card: #ffffff;
  --text: #2b2926;
  --text-muted: #6b6660;
  --accent: #e07a5f;
  --accent-soft: #fde8e0;
  --border: #ece8e3;
  --max-width: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

body {
  padding: 32px 20px 80px;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
}

header.page-header {
  max-width: var(--max-width);
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.back-link:hover { color: var(--accent); }

h1 {
  font-size: 1.7rem;
  margin: 0 0 4px;
}

h2 {
  font-size: 1.15rem;
  margin: 32px 0 8px;
}

p, li {
  color: var(--text);
}

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

.lang-switch {
  display: inline-flex;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 28px;
}

.lang-switch button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.lang-switch button.active {
  background: var(--accent);
  color: white;
}

.lang-block { display: none; }
.lang-block.active { display: block; }

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

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

ul { padding-left: 22px; }
li { margin-bottom: 6px; }

.doc-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.doc-link {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.doc-link span {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

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

footer {
  max-width: var(--max-width);
  margin: 48px auto 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}
