*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #1a1a1a; line-height: 1.5; background: #fafafa; }
header { background: #1f3a5f; color: #fff; padding: 0.6rem 1rem; position: sticky; top: 0; z-index: 50; }
header a { color: #fff; text-decoration: none; }
.brand { font-weight: 600; font-size: 1.1rem; margin-bottom: 0.3rem; }
nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; font-size: 0.9rem; }
nav a { opacity: 0.85; } nav a:hover, nav a.active { opacity: 1; text-decoration: underline; }
main { max-width: 1200px; margin: 0 auto; padding: 1rem; }
footer { text-align: center; font-size: 0.8rem; color: #777; padding: 1.5rem 1rem; }
h1 { font-size: 1.5rem; margin: 0.5rem 0; } h2 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; } h3 { font-size: 1rem; margin: 1rem 0 0.3rem; }
a { color: #1f5fa8; }
.muted { color: #666; } .small { font-size: 0.85rem; }
.controls { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; align-items: center; margin: 0.6rem 0 0.8rem; font-size: 0.9rem; }
select, input { padding: 0.3rem 0.5rem; border: 1px solid #bbb; border-radius: 4px; font-size: 0.9rem; background: #fff; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.7rem; margin: 0.8rem 0; }
.card { background: #fff; border: 1px solid #e3e3e3; border-radius: 6px; padding: 0.6rem 0.8rem; }
.card .v { font-size: 1.4rem; font-weight: 600; } .card .l { font-size: 0.8rem; color: #666; }
.box { background: #fff; border: 1px solid #e3e3e3; border-radius: 6px; padding: 0.8rem 1rem; margin: 0.8rem 0; }
.prose { max-width: 820px; } .prose p, .prose li { margin: 0.4rem 0; }
.tablewrap { overflow-x: auto; max-height: 75vh; overflow-y: auto; background: #fff; border: 1px solid #e3e3e3; border-radius: 6px; }
table { border-collapse: collapse; width: 100%; font-size: 0.85rem; }
thead th { position: sticky; top: 0; background: #f3f5f8; z-index: 2; }
th { text-align: left; padding: 0.45rem 0.5rem; border-bottom: 2px solid #ddd; cursor: pointer; white-space: nowrap; user-select: none; }
th.asc::after { content: " ▲"; } th.desc::after { content: " ▼"; }
td { padding: 0.35rem 0.5rem; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
tr:hover td { background: #f6f8ff; }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag { display: inline-block; font-size: 0.75rem; padding: 0 0.4rem; border-radius: 3px; background: #eef1f6; color: #345; margin-right: 0.2rem; }
.dot { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; margin-right: 0.3rem; vertical-align: middle; }
.plot { width: 100%; }
img.fig { max-width: 100%; border: 1px solid #e3e3e3; border-radius: 6px; background: #fff; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } @media (max-width: 800px) { .grid2 { grid-template-columns: 1fr; } }
