/* Colours follow the Android app theme (HomeDbTheme.kt). */
:root {
  --bg: #eceFed;
  --surface: #f4f6f5;
  --text: #151c19;
  --muted: #444f49;
  --primary: #1f5d50;
  --primary-container: #d6e8dd;
  --outline: #ccd4cf;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101513;
    --surface: #1a211e;
    --text: #e0e5e2;
    --muted: #b0bab4;
    --primary: #8fd0bd;
    --primary-container: #1f3a33;
    --outline: #3a4540;
  }
}

* { box-sizing: border-box; }

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

header, main, footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

header { padding-top: 32px; }

header a.brand {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

main {
  margin-top: 24px;
  margin-bottom: 32px;
  padding-top: 8px;
  padding-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 16px;
}

h1 { font-size: 1.75rem; line-height: 1.25; margin: 24px 0 4px; }
h2 { font-size: 1.2rem; margin: 32px 0 8px; }
p.updated { color: var(--muted); margin-top: 0; }
a { color: var(--primary); }
li { margin: 4px 0; }

.note {
  background: var(--primary-container);
  border-radius: 12px;
  padding: 12px 16px;
}

table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--outline); }

footer { color: var(--muted); font-size: 0.9rem; padding-bottom: 32px; }
