/* G7OS Wiki — scoped reading layout. */
.g7wiki-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:24px}
.g7wiki-search{display:grid;gap:8px;flex:1;min-width:0;max-width:640px}
.g7wiki-search-label{font-size:13px;font-weight:650;color:#566170}
.g7wiki-search input{width:100%;min-width:0;border:1px solid var(--line,#e2e6ec);border-radius:12px;background:#fff;padding:13px 15px;font:inherit;font-size:15px;color:#20242a}
.g7wiki-search input:focus-visible{outline:2px solid var(--accent,#ff253b);outline-offset:2px}
.g7wiki-meta{display:grid;gap:6px;font-size:12px;color:#718090}
.g7wiki-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:24px;align-items:start}
.g7wiki-toc{position:sticky;top:calc(var(--header,76px) + 18px);border:1px solid var(--line,#e2e6ec);border-radius:15px;background:#fff;max-height:calc(100dvh - var(--header,76px) - 54px);overflow:auto;scrollbar-width:thin}
.g7wiki-toc summary{padding:17px 16px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px}
.g7wiki-toc summary span{font-size:12px;font-weight:500;color:#7a8593}
.g7wiki-toc nav{padding:0 8px 10px;display:grid;gap:2px}
.g7wiki-toc-item{border:0;background:transparent;border-radius:9px;padding:10px 9px;text-align:left;font:inherit;font-size:12.5px;line-height:1.5;color:#5a6573;cursor:pointer;width:100%}
.g7wiki-toc-item:hover{background:#f6f7f9;color:#20242a}
.g7wiki-toc-item[aria-current="location"]{background:#fff0f1;color:#df2137}
.g7wiki-article{min-width:0;background:#fff;border:1px solid var(--line,#e2e6ec);border-radius:16px;padding:0 32px}
.g7wiki-section{padding:30px 0;border-bottom:1px solid var(--line,#e2e6ec);scroll-margin-top:calc(var(--header,76px) + 20px)}
.g7wiki-section:last-child{border-bottom:0}
.g7wiki-section>h2{font-size:24px;line-height:1.3;letter-spacing:-.45px;margin:0 0 18px;overflow-wrap:anywhere}
.g7wiki-prose{font-size:15px;line-height:1.8;color:#353e49;overflow-wrap:anywhere}
.g7wiki-prose p{margin:0 0 16px}
.g7wiki-prose p:last-child{margin-bottom:0}
.g7wiki-prose h3,.g7wiki-prose h4{font-size:18px;line-height:1.4;color:#20242a;margin:24px 0 12px}
.g7wiki-prose ul,.g7wiki-prose ol{margin:0 0 18px;padding-left:23px}
.g7wiki-prose li{padding-left:3px;margin:5px 0}
.g7wiki-prose li>p{margin:0}
.g7wiki-prose strong{font-weight:720;color:#20242a}
.g7wiki-prose code{font-size:.88em;background:#f3f5f7;padding:3px 6px;border-radius:5px;color:#303b47;white-space:pre-wrap;overflow-wrap:anywhere}
.g7wiki-prose pre{background:#f3f5f7;border-radius:10px;padding:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.g7wiki-prose pre code{padding:0;background:none}
.g7wiki-prose a{color:#d7223c;text-underline-offset:3px}
.g7wiki-prose blockquote{margin:18px 0;border-left:3px solid #ffb5bf;padding:10px 16px;background:#fff7f8;color:#535e6b}
.g7wiki-state{border:1px solid var(--line,#e2e6ec);border-radius:14px;padding:28px;background:#fff;color:#687586}
.g7wiki-state h2{font-size:20px;color:#20242a;margin-top:0}
.g7wiki-state p{margin:12px 0 20px}
.g7wiki-layout [hidden]{display:none!important}
/* Let the Wiki TOC stick to the viewport instead of the non-scrolling page root. */
@media(min-width:1080px){
  #page-root:has(.g7wiki-layout){overflow:visible}
  .g7wiki-toc{align-self:start;z-index:2}
  .g7wiki-toc summary{position:sticky;top:0;z-index:1;background:#fff;border-bottom:1px solid var(--line,#e2e6ec)}
}
@media(min-width:760px){.desktop-nav{min-height:0;overflow-y:auto;flex:1;align-content:start;scrollbar-width:thin;margin-bottom:10px}.desktop-brand,.sidebar-bottom{flex-shrink:0}}
@media(max-width:1079px){.g7wiki-layout{grid-template-columns:minmax(0,1fr);gap:16px}.g7wiki-toc{position:static;max-height:none}.g7wiki-toc nav{grid-template-columns:repeat(2,minmax(0,1fr))}.g7wiki-article{padding:0 24px}}
@media(max-width:759px){.g7wiki-toolbar{gap:12px;margin-bottom:16px}.g7wiki-search{flex-basis:100%}.g7wiki-search input{font-size:16px}.g7wiki-meta{display:flex;flex-wrap:wrap;gap:6px 16px}.g7wiki-toc nav{grid-template-columns:minmax(0,1fr)}.g7wiki-toc-item{font-size:14px;padding:12px}.g7wiki-article{padding:0 18px}.g7wiki-section{padding:24px 0}.g7wiki-section>h2{font-size:21px}.g7wiki-prose{font-size:15px;line-height:1.75}}
