:root {
  --bg: #f3f7fa;
  --card: #ffffff;
  --text: #0b1f2a;
  --muted: #4e6878;
  --border: #d8e4ea;
  --accent: #0a7fa0;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #141414;
    --text: #f5f5f5;
    --muted: #a3a3a3;
    --border: #2b2b2b;
    --accent: #5fe3f0;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "DM Sans", system-ui, -apple-system, sans-serif;
}
main { max-width: 680px; margin: 0 auto; padding: 48px 20px 80px; }
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 40px; }
nav { display: flex; gap: 4px 16px; }
.mark { font: 600 13px "DM Mono", ui-monospace, monospace; letter-spacing: 4px; color: var(--text); text-decoration: none; }
nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
nav a:hover, a { color: var(--accent); }
h1 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 19px; margin: 36px 0 8px; }
.meta { color: var(--muted); font: 13px "DM Mono", ui-monospace, monospace; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin: 16px 0; }
footer { margin-top: 56px; color: var(--muted); font-size: 13px; }

/* Phones: each table row becomes a stacked card so nothing scrolls sideways. */
@media (max-width: 560px) {
  table, tbody, tr, td { display: block; width: 100%; }
  tr:first-child { display: none; }
  tr { padding: 12px 0; border-bottom: 1px solid var(--border); }
  td { border: 0; padding: 2px 0; }
  td:first-child { font-weight: 700; }
  td:nth-child(2) { color: var(--muted); }
}
footer p { margin: 4px 0; }
nav { flex-wrap: wrap; }
details.card { padding: 0; }
details summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 48px 18px 20px;
  font-weight: 700;
  position: relative;
  min-height: 44px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.2s;
}
details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 16px; }
details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { details summary::after { transition: none; } }
