/* site.css — base theme and the shared shell of every page (web/event/layout.py). */
*{box-sizing:border-box}
body{margin:0;background:#fff;color:#1c2128;line-height:1.6;
 font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif}
a{color:#0969da;text-decoration:none}a:hover{text-decoration:underline}
code,.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em}
/* top bar; --sitebar-h = its sticky height, for in-page jumps (scroll-margin-top) */
:root{--sitebar-h:64px}
.sitebar{position:sticky;top:0;z-index:30;background:#ffffffeb;backdrop-filter:blur(8px);
 display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:9px 22px;border-bottom:1px solid #e3e6ea}
.sitebar .brand{font-weight:700;color:#1f2328;font-size:15px}
.sitebar .nav{display:flex;gap:4px;flex-wrap:wrap}
.sitebar .nav a{color:#57606a;font-size:13.5px;padding:3px 10px;border-radius:7px}
.sitebar .nav a:hover{background:#f3f5f8;text-decoration:none}
.sitebar .nav a.on{background:#eef4ff;color:#0550ae;font-weight:600}
.sitebar .fresh{flex:1;text-align:right;font-size:12px;color:#6b7280}
.sitebar .who{font-size:12.5px;color:#57606a}
.linkbtn{font:inherit;background:none;border:0;padding:0;color:#0969da;cursor:pointer}
.wrap{max-width:1180px;margin:0 auto;padding:14px 22px 70px}
/* shared components (calendar, lessons, sources, messages) */
.muted,.quiet{color:#6b7280}.small{font-size:13px}
.hero{padding:22px 0 16px;border-bottom:1px solid #e9edf1;margin-bottom:6px}
.hero .in{max-width:1120px}
.eyebrow{display:inline-block;color:#0969da;font-size:12px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;margin-bottom:8px}
.hero h1{font-size:26px;line-height:1.2;margin:0 0 10px}
.hero p.lead{font-size:14.5px;color:#57606a;max-width:900px;margin:0 0 16px}
.stats{display:flex;gap:30px;flex-wrap:wrap}
.stat .n{font-size:22px;font-weight:700;color:#1f2328}.stat .l{font-size:12px;color:#66707c}
.sec{padding:18px 0 4px}.sec.tight{padding-top:10px}
.sec h2{font-size:19px;margin:0 0 6px}
.lab{display:inline-block;color:#1f6feb;font-size:12px;letter-spacing:.1em;font-weight:700;margin:12px 0 6px}
.tbl{width:100%;border-collapse:collapse;font-size:13px;margin:4px 0 12px;border:1px solid #e3e6ea}
.tbl th{background:#f3f6fa;text-align:left;padding:7px 10px;font-size:12px;color:#475059;border-bottom:1px solid #e3e6ea}
.tbl td{padding:7px 10px;border-bottom:1px solid #eef1f4;vertical-align:top}
.callout{background:#f7faff;border:1px solid #cfe0fb;border-radius:10px;padding:11px 14px;font-size:13.5px;margin:12px 0}
.callout.warn{background:#fff8ef;border-color:#fbe2bf;color:#5b3a00}
details.d{border:1px solid #e3e6ea;border-radius:10px;margin:10px 0;padding:0 14px}
details.d>summary{cursor:pointer;padding:10px 0;font-weight:600}
details.d .dc{padding:0 0 12px}
.foot{padding:26px 0 0;color:#8a929c;font-size:12px}
.empty{max-width:720px;margin:40px auto;text-align:center}
.empty h1{font-size:22px}.empty p{color:#57606a}
.empty-note{color:#6b7280;font-size:13.5px;padding:10px 0}
.note{font-size:12.5px;color:#9a6700;margin:6px 0}
@media(max-width:720px){:root{--sitebar-h:160px}.sitebar{padding:8px 14px;gap:8px}.sitebar .fresh{flex-basis:100%;text-align:left}.wrap{padding:10px 14px 50px}}
