/* Accurate Step Counter with Cal public pages. No external fonts, scripts or trackers. Colours match the app tokens. */
:root {
  color-scheme: light dark;
  --bg: #f8fbfa;
  --card: #ffffff;
  --ink: #12201b;
  --muted: #4c5b55;
  --line: #dce5e1;
  --accent: #0b6b58;
  --accent-soft: #bfe3d8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121a17;
    --card: #1b2522;
    --ink: #e4eeea;
    --muted: #a5b5ae;
    --line: #2a3632;
    --accent: #3cc9a6;
    --accent-soft: #1f5246;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

header.site { border-bottom: 1px solid var(--line); background: var(--card); }
header.site .wrap { padding-top: 0.9rem; padding-bottom: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; }
header.site .brand { font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; margin-right: auto; }
header.site nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }

a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
nav a { display: inline-block; padding: 0.35rem 0; font-weight: 600; }

h1 { font-size: 2rem; line-height: 1.2; margin: 1rem 0 0.25rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 0.25rem; }
p, ul, ol { margin: 0.5rem 0 1rem; }
li { margin: 0.25rem 0; }

.meta { color: var(--muted); margin-top: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.75rem 1.1rem;
  margin: 1rem 0;
}
.note { background: var(--accent-soft); border-color: transparent; }

table { width: 100%; border-collapse: collapse; margin: 0.75rem 0 1.25rem; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--line); }
th { font-weight: 700; }
.table-scroll { overflow-x: auto; }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
footer.site .wrap { padding-top: 1rem; padding-bottom: 2rem; }
