:root { color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "Noto Sans", "Noto Naskh Arabic", "Noto Sans Arabic", "Apple SD Gothic Neo", "Malgun Gothic", "Hiragino Sans", "Yu Gothic", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans CJK JP", "Noto Sans CJK KR", sans-serif;
  color: #111827;
  background: #f8fafc;
  line-height: 1.65;
  font-size: 17px;
}
a { color: #1d4ed8; }
a:hover { text-decoration: none; }
.wrap { max-width: 820px; margin: 0 auto; padding: 20px 18px 64px; }
header.top {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
header.top .bar, footer .bar, .langs {
  max-width: 820px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}
.brand { color: #111827; text-decoration: none; font-weight: 800; letter-spacing: .04em; }
.brand small { display: block; font-weight: 500; letter-spacing: 0; color: #6b7280; font-size: 12px; }
nav.main { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-inline-start: auto; }
nav.main a { color: #111827; text-decoration: none; font-size: 14px; font-weight: 650; }
.langs { background: #fff; border-bottom: 1px solid #e5e7eb; font-size: 14px; }
.lang-label { font-weight: 800; color: #111827; margin-inline-end: 4px; }
.langs a { text-decoration: none; color: #1f2937; border: 1px solid #d1d5db; border-radius: 999px; padding: 4px 10px; background: #fff; }
.langs a[aria-current="page"] { background: #111827; color: #fff; border-color: #111827; }
h1 { font-size: 1.8rem; line-height: 1.25; margin: 18px 0 10px; }
h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.card, .note, table { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; }
.card, .note { padding: 14px 16px; }
table { width: 100%; border-collapse: collapse; overflow: hidden; margin: 14px 0 18px; }
th, td { text-align: start; padding: 8px 12px; border-bottom: 1px solid #e5e7eb; }
th { background: #f3f4f6; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.actions a { background: #111827; color: #fff; text-decoration: none; border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 700; }
.actions a.alt { background: #fff; color: #111827; border: 1px solid #e5e7eb; }
footer { border-top: 1px solid #e5e7eb; background: #fff; color: #4b5563; font-size: 14px; }
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] nav.main { margin-inline-start: 0; margin-inline-end: auto; }
