:root {
  --ink: #17396b; --text: #1d2733; --muted: #5a6675; --line: #e3e0d8; --bg: #fffdf8; --card: #ffffff; --accent: #0f7a8a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #b9d3f5; --text: #e6e9ee; --muted: #a3adba; --line: #2f3a47; --bg: #10161d; --card: #17202a; --accent: #5ec8d6; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
  "Helvetica Neue", Arial, sans-serif; }
header, main, footer { max-width: 46rem; margin: 0 auto; padding: 0 16px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 6px; }
header a.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
header a.brand img { width: 36px; height: 36px; border-radius: 9px; }
header nav a { color: var(--accent); font-size: .95rem; }
h1 { color: var(--ink); font-size: 1.7rem; line-height: 1.25; margin: 1.2rem 0 .6rem; }
h2 { color: var(--ink); font-size: 1.25rem; margin: 2rem 0 .5rem; padding-top: .6rem; border-top: 1px solid var(--line); }
h3 { color: var(--ink); font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
p, li { overflow-wrap: anywhere; }
a { color: var(--accent); }
ul, ol { padding-left: 1.3rem; }
li { margin: .25rem 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--line); padding: 0 .25em; border-radius: 4px; }
.table { overflow-x: auto; margin: .8rem 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--line); min-width: 8rem; }
tr:last-child td { border-bottom: 0; }
th { color: var(--ink); background: color-mix(in srgb, var(--line) 45%, transparent); }
@media (max-width: 560px) {
  .table.stack { border: 0; background: none; overflow: visible; }
  .table.stack thead { display: none; }
  .table.stack tr { display: block; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
  .table.stack td { display: block; min-width: 0; border-bottom: 1px solid var(--line); }
  .table.stack td:last-child { border-bottom: 0; }
  .table.stack td::before { content: attr(data-label); display: block; color: var(--ink); font-weight: 600; font-size: .85rem; }
  .table.stack td[data-label=""]::before { display: none; }
}
.lead { color: var(--muted); }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 1.2rem 0 2rem; }
.cards a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  color: var(--ink); text-decoration: none; font-weight: 600; }
.cards a span { display: block; color: var(--muted); font-weight: 400; font-size: .92rem; margin-top: 2px; }
.hero { display: flex; align-items: center; gap: 16px; margin-top: 1.5rem; }
.hero img { width: 88px; height: 88px; border-radius: 20px; }
footer { color: var(--muted); font-size: .88rem; padding-top: 18px; padding-bottom: 36px; margin-top: 2.5rem; border-top: 1px solid var(--line); }
footer a { color: var(--muted); }
