:root{--fg:#1d2329;--muted:#5b6670;--bg:#fbfaf7;--card:#fff;--line:#e3e0d8;--accent:#8a2b2b;--accent2:#244e73}
*{box-sizing:border-box}
html{font-size:17px}
body{margin:0;background:var(--bg);color:var(--fg);font:1rem/1.65 Georgia,"Iowan Old Style","Times New Roman",serif}
a{color:var(--accent2)}
header.site{background:#1f2a36;color:#fff;padding:.9rem 1.2rem}
header.site a{color:#fff;text-decoration:none}
header.site .brand{font-weight:bold;font-size:1.15rem;letter-spacing:.02em}
header.site .tag{color:#c9d3dc;font-size:.85rem;font-family:system-ui,sans-serif}
nav.top{background:#263443;padding:.35rem 1.2rem;font-family:system-ui,sans-serif;font-size:.85rem;overflow-x:auto;white-space:nowrap}
nav.top a{color:#dfe7ee;text-decoration:none;margin-right:1rem}
nav.top a.on{color:#fff;border-bottom:2px solid #e0b25b}
main{max-width:52rem;margin:0 auto;padding:1.5rem 1.2rem 3rem}
h1{font-size:1.9rem;line-height:1.25;margin:.4rem 0 1rem;color:var(--accent)}
h2{font-size:1.35rem;margin:2rem 0 .6rem;border-bottom:1px solid var(--line);padding-bottom:.25rem}
h3{font-size:1.1rem;margin:1.4rem 0 .4rem}
p,li{max-width:46rem}
.lead{font-size:1.08rem;color:#333}
.box{background:var(--card);border:1px solid var(--line);border-left:4px solid var(--accent2);padding:.8rem 1rem;margin:1rem 0;border-radius:4px}
.box.warn{border-left-color:#b7791f}
.box h3{margin-top:0}
blockquote{margin:1rem 0;padding:.6rem 1rem;border-left:3px solid var(--line);color:#333;background:#f4f2ec}
blockquote cite{display:block;font-size:.85rem;color:var(--muted);margin-top:.3rem;font-style:normal}
.tablewrap{overflow-x:auto;margin:1rem 0}
table{border-collapse:collapse;width:100%;font-family:system-ui,sans-serif;font-size:.84rem;background:var(--card)}
th,td{border:1px solid var(--line);padding:.5rem .6rem;vertical-align:top;text-align:left}
th{background:#eef1f4}
td:first-child{font-weight:600;white-space:nowrap}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:.9rem;margin:1rem 0}
.card{background:var(--card);border:1px solid var(--line);border-radius:6px;padding:.8rem 1rem}
.card a{font-weight:bold;text-decoration:none}
.card p{font-size:.92rem;margin:.3rem 0 0;color:#444}
dl.gloss dt{font-weight:bold;margin-top:.9rem}
dl.gloss dd{margin:.15rem 0 0 1rem}
.src{font-size:.85rem;color:var(--muted)}
code{font-size:.9em;background:#efece4;padding:0 .2em;border-radius:3px}
footer{border-top:1px solid var(--line);background:#f1efe9;font-family:system-ui,sans-serif;font-size:.82rem;color:var(--muted);padding:1.2rem}
footer div{max-width:52rem;margin:0 auto}
.pager{display:flex;justify-content:space-between;gap:1rem;margin-top:2.5rem;font-family:system-ui,sans-serif;font-size:.9rem}
@media (max-width:600px){html{font-size:16px}h1{font-size:1.55rem}td:first-child{white-space:normal}}
@media print{nav.top,header.site,.pager{display:none}body{background:#fff}}
