/* CViser public pages: one stylesheet, no build step. */
:root {
  --bg: #ffffff;
  --surface: #f5f6f8;
  --text: #1b1d21;
  --muted: #5d636e;
  --border: #e1e4e9;
  --accent: #2f5bea;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #1b1e24;
    --text: #e8eaee;
    --muted: #a0a6b1;
    --border: #2c3038;
    --accent: #7d9bff;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

nav.lang a {
  margin-left: 10px;
  font-size: 0.9rem;
}

nav.lang a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

main { padding: 24px 0 48px; }

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0.4em 0 0.3em; }
h2 { font-size: 1.25rem; margin: 1.8em 0 0.5em; }
h3 { font-size: 1.05rem; margin: 1.4em 0 0.4em; }

p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.35em; }

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

.updated { color: var(--muted); font-size: 0.9rem; }

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 1.2em;
}

.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }

table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }

th, td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

th { background: var(--surface); }

.cards { list-style: none; padding: 0; display: grid; gap: 12px; }

.cards a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
}

.cards a span { display: block; color: var(--muted); font-size: 0.9rem; }

details {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

summary { cursor: pointer; font-weight: 600; }

details p { margin-top: 0.6em; }

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

footer.site a { margin-right: 14px; }

code { overflow-wrap: anywhere; }
