/* Unified OPC night theme. Keep readable type and blue editable surfaces in sync with the main application. */
.guide-page{--guide-ink:#f5f8ff;--guide-muted:#b6c9e2;--guide-border:#344e70;position:relative;z-index:1;color:var(--guide-ink);max-width:1500px;margin:auto}

.guide-page *{box-sizing:border-box}
.guide-page button,.guide-page input,.guide-page select{font:inherit}
.guide-page button,.guide-page a,.guide-page input,.guide-page select{touch-action:manipulation}
.guide-page :focus-visible{outline:3px solid #93d7ff;outline-offset:4px}

.guide-hero{display:flex;justify-content:space-between;align-items:center;gap:32px;min-height:228px;padding:36px 44px;background:radial-gradient(ellipse at 75% 10%,#254a71,transparent 55%),#254a71;color:#f5f8ff;border:1px solid #3a5679;border-radius:22px;overflow:hidden;box-shadow:0 16px 36px #02091940}

.guide-page .guide-eyebrow{color:#f5f8ff;font-size:11px;font-weight:700;letter-spacing:.15em}
.guide-page .guide-hero h1{font-size:clamp(27px,3vw,40px);font-weight:760;letter-spacing:-.03em;margin:13px 0;color:#f5f8ff}
.guide-page .guide-hero p{font-size:15px;line-height:1.8;max-width:700px;color:#f5f8ff;margin:0}
.guide-hero-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}
.guide-page .guide-hero-tags span{font-size:11px;color:#f5f8ff;border:1px solid #3a5679;border-radius:20px;padding:5px 11px;background:#254a71}

.guide-book{transform:rotate(8deg);width:124px;min-width:124px;height:162px;background:#162f4d;border-radius:3px 12px 12px 3px;color:#e5efff;padding:18px 16px 14px 22px;box-shadow:-5px 3px 0 #02091940,13px 18px 25px #02091940;border-left:5px solid #3a5679;display:flex;flex-direction:column;justify-content:space-between;user-select:none}
.guide-book span{font-size:10px;letter-spacing:.18em}
.guide-book b{font-size:21px;line-height:1.15;letter-spacing:.04em}
.guide-book i{font-size:10px;font-style:normal;letter-spacing:.15em}

.guide-workspace{display:grid;grid-template-columns:270px minmax(0,1fr);gap:22px;align-items:start;margin-top:24px}
.guide-sidebar{position:sticky;top:20px;background:#11243d;border:1px solid var(--guide-border);border-radius:16px;padding:20px;max-height:calc(100vh - 40px);overflow:auto;scrollbar-width:thin;scrollbar-color:#4a668a transparent}
.guide-page .guide-search-label{display:block;color:#b6c9e2;font-size:12px;font-weight:700;margin:0 0 9px}
.guide-search{position:relative;margin-bottom:18px}
.guide-search>span{position:absolute;left:11px;top:10px;color:#b6c9e2;font-size:23px;line-height:1}
.guide-page #guide-search,.guide-page #guide-category{width:100%;background:#11243d!important;color:#e5efff!important;border:1px solid #3a5679!important;border-radius:9px;box-shadow:none;font-size:13px;min-height:44px;padding:11px 10px}
.guide-page #guide-search{padding-left:36px}
.guide-page #guide-search::placeholder{color:#b6c9e2!important;opacity:1}
.guide-page #guide-category option{color:#e5efff;background:#11243d}
.guide-result-count{display:flex;justify-content:space-between;align-items:center;color:#b6c9e2;font-size:11px;margin:19px 0 10px}
.guide-page .guide-result-count button{background:none;border:0;font-size:11px;color:#9cd6ff;text-decoration:underline;padding:2px;cursor:pointer}
.guide-chapters{display:flex;flex-direction:column;gap:5px}
.guide-page .guide-chapters button{display:flex;align-items:flex-start;gap:10px;text-align:left;padding:12px 9px;border:1px solid transparent;background:transparent;color:#e5efff;border-radius:9px;cursor:pointer;transition:background .16s,border-color .16s}
.guide-page .guide-chapters button:hover{background:#11243d;border-color:#3a5679}
.guide-page .guide-chapters button.active{background:#254a71;border-color:#659bcd;color:#f5f8ff}
.guide-page .guide-chapter-number{font-size:10px;font-weight:600;padding-top:3px;color:#b6c9e2;min-width:18px}
.guide-page .guide-chapters b{display:block;font-size:12px;line-height:1.6;font-weight:600}
.guide-page .guide-chapters small{display:block;font-size:10px;margin-top:4px;color:#b6c9e2}
.guide-page .guide-chapters button.active small,.guide-page .guide-chapters button.active .guide-chapter-number{color:#f5f8ff}
.guide-page .guide-sidebar-note{font-size:11px;line-height:1.8;border-top:1px solid #3a5679;color:#b6c9e2;padding-top:15px;margin:20px 0 0}

.guide-reader{min-width:0;scroll-margin-top:20px}
.guide-article,.guide-empty{background:#11243d;border:1px solid var(--guide-border);border-radius:16px;padding:36px 40px;box-shadow:0 8px 26px #02091940}
.guide-article-meta{display:flex;justify-content:space-between;gap:15px;font-size:11px;color:#b6c9e2;margin-bottom:16px}
.guide-article-meta span:first-child{font-weight:700;color:#9cd6ff}
.guide-page .guide-article h2{font-size:clamp(23px,2.1vw,31px);color:#e5efff;letter-spacing:-.025em;line-height:1.5;font-weight:720;margin:0}
.guide-page .guide-subtitle{font-size:15px;color:#b6c9e2;margin:10px 0 22px;line-height:1.8}
.guide-section-index{display:flex;flex-wrap:wrap;gap:10px 16px;background:#11243d;border:1px solid #3a5679;border-radius:9px;padding:15px 18px;margin-bottom:28px;font-size:12px;line-height:1.6}
.guide-section-index>span{font-weight:700;color:#b6c9e2}
.guide-section-index a{color:#9cd6ff;text-decoration:underline;text-underline-offset:3px}
.guide-section{padding:8px 0 24px;scroll-margin-top:24px}
.guide-section+.guide-section{border-top:1px solid #3a5679;padding-top:26px}
.guide-page .guide-section h3{font-size:19px;color:#e5efff;margin:0 0 14px;font-weight:700}
.guide-page .guide-section p{color:#b6c9e2;font-size:15px;line-height:1.95;margin:0 0 14px;overflow-wrap:anywhere}
.guide-page .guide-section p:last-child{margin-bottom:0}
.guide-page .guide-formula{border:1px solid #3a5679;border-left:4px solid #659bcd;background:#11243d;border-radius:7px;padding:17px 20px;margin:18px 0}
.guide-page .guide-formula span{font-size:11px;color:#b6c9e2;font-weight:700;letter-spacing:.09em}
.guide-page .guide-formula p{font-size:15px;font-weight:600;color:#e5efff;margin:8px 0 0;line-height:1.8}
.guide-table-wrap{width:100%;overflow:auto;margin:20px 0;border:1px solid #3a5679;border-radius:9px}
.guide-page table{border-collapse:collapse;width:100%;font-size:13px;line-height:1.8;color:#e5efff;min-width:320px}
.guide-page th{background:#11243d;font-weight:700;color:#e5efff;text-align:left;padding:12px 16px}
.guide-page td{padding:12px 16px;border-top:1px solid #3a5679;vertical-align:top}
.guide-page td:first-child{min-width:112px;font-weight:600;color:#b6c9e2}
.guide-page tr:nth-child(even) td{background:#11243d}
.guide-page .guide-steps{list-style:none;margin:18px 0;padding:0;display:flex;flex-direction:column;gap:12px}
.guide-steps li{display:flex;gap:15px;padding:13px 15px;background:#11243d;border:1px solid #3a5679;border-radius:9px}
.guide-steps li>span{display:flex;justify-content:center;align-items:center;min-width:27px;height:27px;border-radius:7px;background:#162f4d;font-size:11px;font-weight:700;color:#b6c9e2;margin-top:2px}
.guide-page .guide-steps p{font-size:14px;line-height:1.85;margin:0}
.guide-page .guide-bullets{padding-left:22px;margin:16px 0;color:#b6c9e2;font-size:14px;line-height:1.9}
.guide-bullets li{margin-bottom:10px;padding-left:4px}
.guide-bullets li::marker{color:#9cd6ff}
.guide-page .guide-example,.guide-page .guide-note{padding:18px 20px;border-radius:9px;margin:18px 0;background:#11243d;border:1px solid #3a5679}
.guide-page .guide-example strong,.guide-page .guide-note strong{display:block;font-size:11px;color:#b6c9e2;margin-bottom:8px;letter-spacing:.06em}
.guide-page .guide-example p,.guide-page .guide-note p{font-size:14px;line-height:1.85;color:#b6c9e2}
.guide-page .guide-note{background:#11243d;border-color:#3a5679}
.guide-page .guide-note strong{color:#ffda9f}
.guide-page .guide-note p{color:#ffda9f}
.guide-sources{font-size:11px;color:#b6c9e2;line-height:1.9;margin-top:16px}
.guide-sources a{color:#9cd6ff;text-decoration:underline;overflow-wrap:anywhere;margin-right:12px}

.guide-apply{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid #3a5679;margin-top:8px;padding-top:24px}
.guide-page .guide-apply b{font-size:14px;color:#e5efff}
.guide-page .guide-apply p{font-size:12px;line-height:1.7;color:#b6c9e2;margin:6px 0 0}
.guide-page .guide-primary{background:#254a71;color:#f5f8ff;border:1px solid #659bcd;border-radius:9px;padding:12px 17px;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}
.guide-page .guide-primary:hover{background:#254a71}
.guide-pagination{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #3a5679;padding-top:22px;margin-top:24px}
.guide-page .guide-pagination button{padding:9px 13px;font-size:12px;font-weight:600;border-radius:8px;background:#11243d;border:1px solid #3a5679;color:#b6c9e2;cursor:pointer}
.guide-page .guide-pagination button:disabled{color:#b6c9e2;background:#11243d;border-color:#3a5679;cursor:default}
.guide-pagination>span{font-size:11px;color:#b6c9e2}
.guide-empty{min-height:340px;text-align:center;padding:70px 25px}
.guide-empty>span{font-size:50px;color:#b6c9e2}
.guide-page .guide-empty h2{font-size:23px;color:#e5efff;margin:15px}
.guide-page .guide-empty p{color:#b6c9e2;line-height:1.8;font-size:14px;margin:16px}

@media(max-width:1150px){.guide-workspace{grid-template-columns:235px minmax(0,1fr);gap:16px}
.guide-article{padding:29px 25px}
.guide-sidebar{padding:16px}
.guide-hero{padding:30px}
.guide-apply{align-items:flex-start;flex-direction:column}
}

@media(max-width:820px){.guide-workspace{grid-template-columns:minmax(0,1fr)}
.guide-sidebar{position:static;max-height:none;display:grid;grid-template-columns:1fr 1fr;gap:10px 16px}
.guide-sidebar>.guide-search-label{display:none}
.guide-search{margin:0}
.guide-result-count{grid-column:1/-1;margin:2px 0}
.guide-chapters{grid-column:1/-1;max-height:200px;overflow:auto;display:grid;grid-template-columns:1fr 1fr}
.guide-sidebar-note{display:none}
.guide-book{width:100px;min-width:100px;height:138px;padding-left:16px}
.guide-book b{font-size:18px}
.guide-hero{gap:20px}
.guide-article{padding:26px}
.guide-hero-tags{margin-top:16px}
}

@media(max-width:480px){.guide-hero{padding:25px 21px;min-height:0;border-radius:15px}
.guide-book{display:none}
.guide-page .guide-hero p{font-size:13px}
.guide-hero-tags span{font-size:10px}
.guide-sidebar{padding:14px;grid-template-columns:1fr}
.guide-workspace{margin-top:16px;gap:14px}
.guide-chapters{grid-template-columns:1fr;max-height:200px}
.guide-article{padding:24px 18px}
.guide-page .guide-article h2{font-size:24px}
.guide-page .guide-section h3{font-size:18px}
.guide-page .guide-section p{font-size:14px}
.guide-section-index{gap:8px;padding:12px}
.guide-page td,.guide-page th{padding:10px}
.guide-steps li{padding:12px 10px;gap:10px}
.guide-page .guide-note,.guide-page .guide-example,.guide-page .guide-formula{padding:15px}
.guide-page .guide-primary{width:100%;white-space:normal}
.guide-apply{align-items:stretch}
.guide-pagination{gap:6px}
.guide-page .guide-pagination button{padding:9px}
}

@media(prefers-reduced-motion:reduce){.guide-page *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

@media(max-width:480px){.guide-page table{min-width:0;table-layout:fixed}
.guide-page td:first-child{min-width:0;width:32%}
.guide-page td,.guide-page th{overflow-wrap:anywhere}
}


/* Semantic surfaces match the operating dashboard and integration workspace. */
.guide-page{--guide-ink:var(--text-primary,#f5f8ff);--guide-muted:#b6c9e2;--guide-border:#344e70;color-scheme:dark}
.guide-hero{background:radial-gradient(ellipse at 90% 0,rgba(58,126,210,.22),transparent 58%),linear-gradient(125deg,#142844,#101d33);border-color:#3d5d86;box-shadow:0 16px 40px rgba(2,8,23,.22)}
.guide-sidebar{background:#0f2139;border-color:#344e70}
.guide-article,.guide-empty{background:linear-gradient(145deg,#12243e,#0e1d33);border-color:#344e70;box-shadow:0 12px 30px rgba(2,8,23,.18),inset 0 1px 0 rgba(255,255,255,.035)}
.guide-page .guide-article h2,.guide-page .guide-section h3,.guide-page .guide-apply b{color:#f5f8ff}
.guide-page .guide-section p,.guide-page .guide-bullets,.guide-page .guide-example p{color:#cbdaf0}
.guide-page .guide-chapters button{color:#d9e7fa}
.guide-page .guide-chapters button:hover{background:#1c3553;border-color:#50779e}
.guide-page .guide-chapters button.active{background:linear-gradient(120deg,#214b75,#313e6c);border-color:#78adf0;box-shadow:inset 3px 0 #8fc6ff;color:#fff}
.guide-page .guide-chapters button.active small,.guide-page .guide-chapters button.active .guide-chapter-number{color:#d0e4ff}
.guide-page .guide-formula{background:#132f49;border-color:#3e729b;border-left-color:#89d1ff}
.guide-page .guide-formula p{color:#d9efff}
.guide-page .guide-note{background:#332b20;border-color:#7a6240}
.guide-page .guide-note strong{color:#ffdc9d}
.guide-page .guide-note p{color:#f5dfb9}
.guide-page .guide-primary{background:linear-gradient(120deg,#3556af,#654da9);border-color:#849dec;color:#fff;box-shadow:0 5px 18px #18315b55}
.guide-page .guide-primary:hover{background:linear-gradient(120deg,#4165c3,#775abe)}
.guide-page .guide-pagination button{color:#dceaff;background:#203650;border-color:#506d90}
.guide-page .guide-pagination button:disabled{color:#a3b7d0;background:#13243b;border-color:#344e70}
.guide-page .guide-book{background:#f1e7cc;color:#193c52;border-left-color:#d29b54;box-shadow:-5px 3px 0 #c4b58f,13px 18px 25px #08152566}
body .guide-page #guide-search,body .guide-page #guide-category{background:#0d1c32!important;color:#f5f8ff!important;border-color:#527195!important;box-shadow:inset 0 1px 3px #02091940!important}
body .guide-page #guide-search:focus,body .guide-page #guide-category:focus{background:#10243e!important;color:#fff!important;border-color:#93d7ff!important;box-shadow:0 0 0 3px #78b1ff26!important}
body .guide-page #guide-search::placeholder{color:#a6bcd8!important}
.guide-page #guide-category option{background:#0d1c32;color:#f5f8ff}
.guide-page .guide-search>span{color:#a6cfff;pointer-events:none}
.guide-page .guide-section-index a,.guide-page .guide-sources a,.guide-page .guide-result-count button{color:#9cdaff}
