:root{--bg:#f8fafc;--text:#0f172a;--muted:#475569;--border:#e2e8f0;--card:#ffffff;--accent:#16a34a}
*{box-sizing:border-box}html{color-scheme:light}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.75 ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"Noto Sans",sans-serif}
a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;height:auto}
.skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden}.skip-link:focus{left:16px;top:16px;width:auto;height:auto;padding:8px 12px;background:#fff;border:1px solid var(--border);border-radius:10px;z-index:10}
.doc{display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr;min-height:100vh}
@media(min-width:960px){.doc{grid-template-columns:300px 1fr}}
.sidebar{border-bottom:1px solid var(--border);background:var(--card)}
@media(min-width:960px){.sidebar{border-bottom:none;border-right:1px solid var(--border);position:sticky;top:0;align-self:start;height:100vh;overflow:auto}}
.sidebar{padding:14px}
.brand a{font-weight:900;color:var(--text)}
.search{margin:12px 0}.search input{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:#f1f5f9}
.toc{display:flex;flex-direction:column;gap:6px}.toc a{padding:8px 10px;border-radius:12px;color:var(--text)}.toc a:hover{background:rgba(22,163,74,.08);text-decoration:none}
.keys{margin-top:14px;border:1px dashed var(--border);border-radius:14px;padding:12px;color:var(--muted)}.keys-title{font-weight:700;margin-bottom:8px;color:var(--text)}.keys-row{display:flex;justify-content:space-between;gap:10px}
.doc-main{padding:16px}
.doc-header{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:.92rem;margin-bottom:10px}.doc-header .home{color:var(--muted)}
.h1{margin:0 0 10px;font-size:1.55rem;line-height:1.25}
.muted{color:var(--muted);margin:0}
.callouts{display:grid;grid-template-columns:1fr;gap:10px;margin:10px 0 16px}
@media(min-width:700px){.callouts{grid-template-columns:repeat(3,1fr)}}
.callout{border:1px solid var(--border);border-radius:14px;background:var(--card);padding:12px}
.infobox{display:grid;grid-template-columns:1fr;gap:10px;border:1px solid var(--border);border-radius:14px;background:var(--card);padding:12px;margin:12px 0}
@media(min-width:700px){.infobox{grid-template-columns:1fr 1fr}}
.content{padding:6px 0 24px}.content :is(p,ul,ol){max-width:74ch}.content pre{overflow:auto;padding:12px;border:1px solid var(--border);border-radius:12px;background:#f1f5f9}
.news-list{display:flex;flex-direction:column;gap:10px;padding:10px 0 24px}
.news-item{display:grid;grid-template-columns:1fr;gap:10px;border:1px solid var(--border);border-radius:14px;background:var(--card);padding:12px}
@media(min-width:820px){.news-item{grid-template-columns:180px 1fr;align-items:start}}
.thumb{display:block;overflow:hidden;border-radius:12px;background:#e2e8f0}.thumb img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.title{margin:0;font-size:1.05rem;line-height:1.35}.title a{color:var(--text)}
.date{display:inline-block;margin-top:4px;color:var(--muted);font-size:.92rem}
.excerpt{margin:8px 0 0;color:var(--muted)}
.news-item--pagination{border-style:dashed}.news-item--pagination .thumb{display:none}
.pagination{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap}
.pagination a{display:inline-block;padding:8px 12px;border:1px solid var(--border);border-radius:12px;color:var(--text);background:var(--card)}
.pagination a:hover{text-decoration:none;background:rgba(22,163,74,.08)}.pagination .info{color:var(--muted)}
.doc-footer{margin-top:18px;color:var(--muted)}

/* sticky footer */
.site{min-height:100vh;display:flex;flex-direction:column}
.site-main{flex:1 0 auto;display:flex;flex-direction:column}
.site-footer{margin-top:auto}
