/* XDSS site styles. Plain CSS, no build step. Light and dark follow the system setting. */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --fg: #16181c;
  --muted: #4a5059;
  --line: #d9dde3;
  --accent: #1f5f99;
  --accent-fg: #ffffff;
  --tag-bg: #e8eef5;
  --tag-fg: #1f4a73;
  --radius: 14px;
  --max: 960px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1114;
    --surface: #171a1f;
    --fg: #e6e8eb;
    --muted: #a9b0ba;
    --line: #2c3139;
    --accent: #8cc4f7;
    --accent-fg: #0f1114;
    --tag-bg: #1e2a37;
    --tag-fg: #b8d7f5;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand svg { width: 32px; height: 32px; flex: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--fg); background: var(--tag-bg); }
.nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }

/* Main */
main { padding: 40px 0 56px; }
h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
h2 { font-size: 22px; line-height: 1.3; margin: 40px 0 12px; }
h3 { font-size: 18px; margin: 0 0 4px; }
p { margin: 0 0 16px; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }

.hero { padding: 16px 0 8px; }
.button { display: inline-block; background: var(--accent); color: var(--accent-fg); padding: 10px 18px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.button:hover { opacity: .92; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { color: var(--muted); margin: 0 0 12px; }
.card .links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; background: var(--tag-bg); color: var(--tag-fg); border-radius: 999px; padding: 2px 10px; margin: 0 0 10px; }

.values { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.values .card h3 { margin-bottom: 6px; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  dl.facts { grid-template-columns: 1fr; gap: 2px; }
  dl.facts dd { margin-bottom: 10px; }
}

table.policies { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.policies th, table.policies td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.policies tr:last-child td { border-bottom: 0; }
table.policies th { font-size: 14px; color: var(--muted); font-weight: 600; }
@media (max-width: 520px) {
  table.policies thead { display: none; }
  table.policies tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.policies tr:last-child { border-bottom: 0; }
  table.policies td { display: block; border: 0; padding: 2px 14px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer a { color: var(--muted); }
