/* Theme alignment for the docs portal and its 41 standalone guides. */
html{color-scheme:dark}
html[data-theme="light"]{color-scheme:light;
 --bg:#f7f8f2;--bg-secondary:#eef3e9;--surface:#fffefa;
 --surface-card:#fffefa;--surface-card-hover:#f0f5ed;
 --surface-glass:rgba(255,254,250,.94);
 --line:#d6e2d5;--line-strong:#bdcfbe;--line-accent:#a3c6ab;
 --text:#1b3024;--text-secondary:#3f5847;--muted:#516657;--muted-dim:#687c6b;
 --green:#176a45;--green-hover:#115637;--green-dim:#e0f0e4;
 --green-subtle:#eef5eb;--green-glow:0 0 18px #176a4520;
 --shadow-subtle:0 4px 20px #173c2112;--shadow-card:0 10px 30px #173c2115;
 --tag-manual:#775107;--tag-manual-bg:#fff0cb;
 --tag-auto:#126080;--tag-auto-bg:#e1f1fa;
 --tag-paid:#6939a2;--tag-paid-bg:#efe5f9;
 --tag-error:#a52732;
}
html[data-theme="light"] body{background-color:var(--bg);background-image:radial-gradient(ellipse at 85% 0%,#dbe9d632,transparent 52%);color:var(--text)}
html[data-theme="light"] .header{background:#fffefa;border-bottom-color:var(--line)}
html[data-theme="light"] .docs-sidebar{background:#f7f8f2}
html[data-theme="light"] .sidebar-help-card,html[data-theme="light"] .diag-status-card,html[data-theme="light"] .diag-recommendation-box{background:#eaf2e7}
html[data-theme="light"] .sidebar-search-input,html[data-theme="light"] .widget-input,html[data-theme="light"] .props-toggles-grid,html[data-theme="light"] .lp-perm-checkboxes,html[data-theme="light"] .diag-metric-item{background:#fffefa;color:var(--text)}
html[data-theme="light"] .sidebar-search-input:focus{background:#fffefa}
html[data-theme="light"] .markdown-body blockquote{background:#eaf2e7;color:#36543e}
html[data-theme="light"] .markdown-body th{background:#e7efe3;color:#2f4936}
html[data-theme="light"] .markdown-body tr:hover td{background:#eef4e9}
html[data-theme="light"] .markdown-body code{background:#edf3e8;color:#175c3d}
html[data-theme="light"] .code-block-container,html[data-theme="light"] .props-output-box,html[data-theme="light"] .lp-tool-output,html[data-theme="light"] .result-box{background:#e9f0e5;color:#213e2b}
html[data-theme="light"] .code-block-container pre code{color:#1d3827}
html[data-theme="light"] .tool-note-box code{background:#dbe7d8;color:#165436}
html[data-theme="light"] .search-modal-box{background:#fffefa;color:var(--text);border-color:#bacfbc}
html[data-theme="light"] .search-modal-footer{background:#eef3e9}
html[data-theme="light"] .footer{background:#eaf0e6;color:#536a57}
html[data-theme="light"] .sidebar-tag-chip.active,html[data-theme="light"] .copy-btn:hover,html[data-theme="light"] .code-copy-btn:hover,html[data-theme="light"] .back-to-list-btn:hover{color:#fffefa}
html[data-theme="light"] .search-result-item:hover{background:#eff5eb}
html[data-theme="light"] .mc-server-card{background:#111;color:#eee}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);color:var(--text);font:600 12px var(--font);padding:7px 10px;cursor:pointer;transition:background .18s}
.theme-toggle svg{width:18px;height:18px;flex:none}
.theme-toggle .theme-moon{display:none}
html[data-theme="light"] .theme-toggle .theme-moon{display:block}
html[data-theme="light"] .theme-toggle .theme-sun{display:none}
.theme-toggle:hover{background:var(--green-subtle);border-color:var(--green)}
.theme-toggle:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:980px){.theme-toggle-label{display:none}}
@media(max-width:520px){.theme-toggle{min-width:36px;padding:7px}}

/* Correct colours in the documentation header, including the logo wordmark. */
html[data-theme="light"] .brand{color:#1b3024}
html[data-theme="light"] .brand-dot{color:#176a45}
html[data-theme="light"] .dashboard-btn{color:#fffefa}
html[data-theme="light"] .dashboard-btn:hover{color:#fffefa}
html[data-theme="light"] .node-bar{background:#e9f0e6}
html[data-theme="light"] .search-modal-backdrop{background:#152a204d}
html[data-theme="light"] .sidebar-tag-chip.active{color:#fffefa}

/* Static, crawlable shortcuts alongside the interactive docs directory. */
.docs-start-here { margin: 16px 0 34px; padding: 22px; border: 1px solid var(--line, #38514755); border-radius: 14px; background: color-mix(in srgb, var(--green, #4c8e66) 3%, transparent); }
.docs-start-here h2 {font-size: clamp(21px,2.5vw,27px); margin:0 0 6px;}
.docs-start-here p {margin:0 0 18px;font-size:14px;opacity:.78;}
.docs-start-here-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
.docs-start-here-grid a {display:block;min-width:0;padding:13px 15px;border:1px solid var(--line, #38514755);border-radius:9px;text-decoration:none;color:inherit;font-weight:650;font-size:14px;background:transparent;transition:border-color .2s,background .2s;}
.docs-start-here-grid a:hover,.docs-start-here-grid a:focus-visible {border-color:var(--green, #6ab784);background:color-mix(in srgb,var(--green,#4c8e66) 8%,transparent);}
.docs-start-here-grid a span {display:block;margin-top:3px;font-weight:400;opacity:.7;font-size:12px;line-height:1.5;}
@media (max-width:650px){.docs-start-here{padding:16px}.docs-start-here-grid{grid-template-columns:1fr}.docs-start-here-grid a{padding:12px 13px}}
