header {
  text-align: center;
  margin-bottom: 1rem;
  max-width: 800px;
  min-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.header-top {
  display: flex;
  align-items: left;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}


article {
  font-size: 1.05rem;
}

article h2, article h3, article h4 {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

article p {
  margin-bottom: 1rem;
}

article ul, article ol {
  margin: 1rem 0 1rem 1.5rem;
}

article li {
  margin-bottom: 0.5rem;
}

article code {
  background: #ffffff00;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.95em;
}


article pre {
  background: #e9e9ed;
  padding: 1rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  font-size: 0.9rem;
}

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

article a:hover {
  text-decoration: underline;
}

/* Toggle */
input[name="lang"] { display: none; }

label {
  flex: 1;
  text-align: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  user-select: none;
  display: inline-block;
  margin-bottom: 1.5rem;
}


#variant_a:checked + label[for="variant_a"],
#variant_b:checked + label[for="variant_b"] {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

article.toggle-article { display: none; }

#variant_a:checked ~ #variant_a-article,
#variant_b:checked ~ #variant_b-article { display: block; }
