:root { --bg: #f4f6fb; --card: #fff; --text: #14172b; --muted: #5b6078; --brand: #3b5cd9; }
@media (prefers-color-scheme: dark) { :root { --bg: #0d0f1a; --card: #171a2b; --text: #eef0fa; --muted: #a2a7c2; --brand: #7a9eff; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
main { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
.hero { background: linear-gradient(135deg, #29339e, #5b8cf2); color: #fff; border-radius: 24px; padding: 32px; }
.hero h1 { margin: 0 0 8px; font-size: 34px; }
.hero p { margin: 0; opacity: .9; }
section { background: var(--card); border-radius: 18px; padding: 20px 24px; margin-top: 16px; }
h2 { font-size: 20px; margin: 0 0 8px; }
p, li { color: var(--muted); }
a { color: var(--brand); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 6px; border-top: 1px solid rgba(127,127,127,.2); }
th { color: var(--text); }
footer { margin-top: 24px; font-size: 14px; color: var(--muted); }
nav.toc { font-size: 15px; }
nav.toc ol { margin: 8px 0 0; padding-left: 20px; }
h3 { font-size: 17px; margin: 16px 0 4px; }
.summary li { margin-bottom: 6px; }
/* Keep wide content (tables, long URLs) inside a phone-width screen. */
section { overflow-wrap: anywhere; }
table { table-layout: fixed; }
th:nth-child(1), td:nth-child(1) { width: 34%; }
@media (max-width: 480px) { section { padding: 18px 16px; } .hero { padding: 24px 20px; } th, td { font-size: 14px; } }

.hero p { color: rgba(255,255,255,.88); opacity: 1; }
