:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1b1b1b;
  --muted: #4a4a4a;
  --accent: #0b5cad;
  --accent-fg: #ffffff;
  --border: #767676;
  --card: #f4f6f8;
  --error: #a4000f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #eeeeee;
    --muted: #c8c8c8;
    --accent: #8ab4f8;
    --accent-fg: #0a1a2f;
    --border: #9a9a9a;
    --card: #1e1e1e;
    --error: #ff8a8a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

main, header, footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem;
}

h1 { font-size: 1.6rem; line-height: 1.2; margin: 1rem 0 0.5rem; }
h2 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 0.5rem 0; }

.lede, .hint, footer p { color: var(--muted); }
.hint { font-size: 0.9rem; margin: 0.25rem 0 0; }

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

button {
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  font: inherit;
  font-weight: 600;
  color: var(--accent-fg);
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 6px;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.offer {
  background: var(--card);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.prices {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.price {
  width: 100%;
  text-align: left;
  line-height: 1.35;
}

/* The disclosure lines: directly beside the one button, at least as large as the body text, never hidden by script. */
.offer-notice {
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 600;
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
  margin: 1rem 0;
}

.offer-columns {
  font-size: 1.05rem;
  line-height: 1.45;
  margin: 0.75rem 0;
}

.offer-free {
  font-size: 1.05rem;
  line-height: 1.45;
  margin: 0.75rem 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
  overflow-wrap: anywhere;
}

.quote {
  margin: 0.75rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--border);
}
.quote p { margin: 0.25rem 0; }
.source-line { font-size: 0.95rem; color: var(--muted); }

.examples {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
}
.examples th,
.examples td {
  text-align: left;
  vertical-align: top;
  padding: 0.3rem 0.5rem 0.3rem 0;
  border-bottom: 1px solid var(--border);
}

.status { font-weight: 600; min-height: 1.5em; }

footer {
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.corrections td, .corrections th { font-size: 0.9375rem; }

@page { size: A4; margin: 15mm; }

@media print {
  :root { --bg: #fff; --fg: #000; --muted: #000; --card: #fff; }
  body { font-size: 11pt; }
  .prices, .status, .offer { display: none; }
  a { color: #000; text-decoration: none; }
}

button:disabled { opacity: 0.6; cursor: not-allowed; }
