
:root{
  --bg:#f8fafc;
  --surface:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line:rgba(15,23,42,0.08);
  --blue:#2563eb;
  --blue-dark:#1d4ed8;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter, Arial, sans-serif;
}
.wrap{
  width:min(calc(100% - 32px), 1200px);
  margin:0 auto;
}
.header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,0.96);
  border-bottom:1px solid rgba(15,23,42,0.08);
}
.header-row{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#0f172a;
  font-weight:700;
}
.brand-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:12px;
  background:linear-gradient(135deg,#2563eb,#0ea5e9);
  color:#fff;
  font-size:14px;
  font-weight:800;
}
.navlinks{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
}
.navlinks a,
.theme-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 14px;
  border-radius:999px;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  border:1px solid rgba(15,23,42,0.08);
  background:#fff;
  color:#334155;
  white-space:nowrap;
}
.navlinks a:hover,
.theme-btn:hover{
  background:#f8fafc;
}
.theme-btn{
  cursor:pointer;
  appearance:none;
}
.footer{
  text-align:center;
  color:#64748b;
  font-size:14px;
  padding:18px 0 44px;
  white-space:nowrap;
}
body.theme-dark{
  --bg:#111827;
  --surface:#172554;
  --text:#eef4ff;
  --muted:rgba(238,244,255,0.82);
  --line:rgba(255,255,255,0.12);
  background:#111827 !important;
  color:var(--text) !important;
}
body.theme-dark .header{
  background:rgba(17,24,39,0.94) !important;
  border-bottom:1px solid rgba(255,255,255,0.10) !important;
}
body.theme-dark .brand,
body.theme-dark .navlinks a,
body.theme-dark .theme-btn{
  color:#e5eefc !important;
}
body.theme-dark .navlinks a,
body.theme-dark .theme-btn{
  background:rgba(255,255,255,0.04) !important;
  border:1px solid rgba(255,255,255,0.10) !important;
}
body.theme-dark .navlinks a:hover,
body.theme-dark .theme-btn:hover{
  background:rgba(255,255,255,0.08) !important;
}
@media (max-width: 768px){
  .header-row{
    flex-direction:column;
    align-items:flex-start;
    padding:12px 0;
  }
  .navlinks{
    flex-wrap:wrap;
  }
  .footer{
    white-space:normal;
  }
}


/* v123 domination UI */
.breadcrumb{
  font-size:12px;
  margin-bottom:10px;
  opacity:0.7;
}
.pillar-section{
  margin-top:24px;
  padding:16px;
  border-radius:12px;
  background:rgba(255,255,255,0.03);
}
.related-advanced{
  margin-top:16px;
}
