:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-card: #ffffff;
  --border: #e3e6ea;
  --text: #1a2027;
  --text-muted: #5a6673;
  --accent: #0b5cab;
  --accent-dark: #08457e;
  --ok: #1a7f37;
  --warn: #9a6700;
  --radius: 10px;
  --maxw: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101418;
    --bg-soft: #171c22;
    --bg-card: #171c22;
    --border: #2a323b;
    --text: #e8ecf0;
    --text-muted: #9aa7b4;
    --accent: #4c9be8;
    --accent-dark: #7db8f0;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.01em;
}
.logo span { color: var(--accent); }
nav.main-nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
nav.main-nav a { color: var(--text-muted); font-size: 0.95rem; }
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] { color: var(--accent); }

main { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 1rem 3rem; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 0.5rem 0 0.6rem; }
h2 { font-size: 1.35rem; margin: 2.2rem 0 0.7rem; }
h3 { font-size: 1.1rem; margin: 1.6rem 0 0.5rem; }
p, ul, ol { margin: 0.6rem 0; }
.lead { font-size: 1.08rem; color: var(--text-muted); max-width: 46rem; }
.meta-line { color: var(--text-muted); font-size: 0.88rem; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin: 1rem 0;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; margin: 1rem 0; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
  min-width: 640px;
}
th, td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
th { background: var(--bg-soft); font-weight: 600; }
td.num { white-space: nowrap; }
caption {
  caption-side: top;
  text-align: left;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding-bottom: 0.45rem;
}
.not-reported { color: var(--text-muted); font-style: italic; }
.badge {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.1rem 0.5rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-muted);
  white-space: nowrap;
}
.badge.active { color: var(--ok); border-color: var(--ok); }
.badge.slow { color: var(--warn); border-color: var(--warn); }

.notice {
  border-left: 4px solid var(--accent);
  background: var(--bg-soft);
  padding: 0.8rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.notice.legal { border-left-color: var(--warn); }

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  margin: 0.2rem 0.5rem 0.2rem 0;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

.faq-item { border-bottom: 1px solid var(--border); padding: 0.8rem 0; }
.faq-item h3 { margin: 0 0 0.3rem; }
details summary { cursor: pointer; font-weight: 600; padding: 0.35rem 0; }

.timeline { list-style: none; padding: 0; margin: 1rem 0; }
.timeline li {
  padding: 0.5rem 0 0.5rem 1.4rem;
  border-left: 2px solid var(--border);
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.95rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline .when { color: var(--text-muted); font-size: 0.85rem; }

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}
.site-footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.4rem 1rem;
}
.site-footer nav { margin-bottom: 0.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.breadcrumb a { color: var(--text-muted); }
