:root{
  --bg:#0f1724;
  --card:#0b1220;
  --text:#e6eef8;
  --muted:#9fb3d1;
  --accent:#7dd3fc;
}
*{box-sizing:border-box}
html,body{height:100%;font-family: "Segoe UI", system-ui, -apple-system, "Segoe UI Emoji", "Segoe UI Symbol", Arial, sans-serif}
body{
  margin:0;
  background:#f3f5f7;
  color:#0f1724;
  -webkit-font-smoothing:antialiased;
  display:flex;
  flex-direction:column;
  min-height:100vh;
}
.container{max-width:980px;margin:0 auto;padding:24px}
header{
  background:linear-gradient(180deg,#0b3d91,#08306b);
  color:#fff;
  padding:6px 0 0 0;
  position:relative;
}
.header-inner{display:flex;align-items:flex-end;justify-content:space-between}
.brand{display:flex;align-items:center;gap:12px}
.logo{width:320px;max-width:100%;height:auto;display:block}
/* Removed .brand-text since wordmark SVG includes text */

/* New nav bar styling */
.site-nav{background:transparent;gap:24px;height:auto;align-self:auto;margin-left:auto}
.nav-btn{
  background:transparent;
  border:0;
  /* reduced horizontal padding by ~40% (28px -> 16px) */
  padding:8px 16px;
  height:auto;
  display:inline-flex;
  align-items:center;
  color:#d6e2f3;
  font-weight:500;
  border-radius:0;
  box-shadow:none;
  transition:color .18s;
  text-decoration:none;
}
.nav-btn + .nav-btn{border-left:none}
.nav-btn.active-root{color:#ffffff;font-weight:600}
.nav-btn:not(.active-root):hover{color:#f0f6ff}

/* Main content area */
main.container{
  background:#ffffff;
  color:#0f1724;
  border-radius:0;
  box-shadow:none;
  padding:40px 32px;
  margin-top:0;
  flex:1;
}

/* Restored card styling: rounded + shadow, no internal border */
.card{
  background:#ffffff;
  padding:20px;
  border:none;
  border-radius:10px;
  box-shadow:none;
}

/* Footer */
footer{color:rgba(15,23,36,0.6);border-top:none;margin-top:24px}

/* Docs layout grid (keep) */
.docs-layout{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:24px;
  align-items:start;
}
.docs-sidebar{position:sticky;top:24px;padding:8px}
.docs-sidebar nav ul{list-style:none;padding-left:0;margin:0}
.docs-sidebar nav ul ul{padding-left:12px}
.docs-sidebar h3{color:#000;margin-top:0;font-weight:600;font-family:"Segoe UI Semibold","Segoe UI",system-ui,-apple-system,sans-serif}
.docs-sidebar a{color:#000;text-decoration:none;display:block;padding:0;margin:5px 0;line-height:1.25;font-weight:400;}
/* Hover state for sidebar links */
.docs-sidebar a:hover{color:#00bcd4;}
.docs-sidebar a:focus{color:#00bcd4;outline:none;text-decoration:underline;}
/* Default list items normal weight; only category labels (those owning a nested UL) are semibold */
.docs-sidebar li{font-weight:400;}
.docs-sidebar li:has(> ul){font-weight:600;margin-top:12px;}
.docs-content{min-width:0}

/* Active link styling for docs sidebar */
.docs-sidebar a.active{color:#0b3d91;font-weight:600}
.docs-sidebar li.active-parent > a{color:#0b3d91;font-weight:600}

header nav a.active-root{color:var(--accent);font-weight:600}

/* Permission/reference tables */
.perm-table{width:100%;border-collapse:collapse;margin-top:16px;font-size:14px}
.perm-table th,.perm-table td{padding:8px 10px;vertical-align:top;text-align:left;border:1px solid rgba(15,23,36,0.1)}
.perm-table thead th{background:#f1f4f7;font-weight:600}
.perm-table code{font-family:Consolas, 'Courier New', monospace;background:#f5f7fa;padding:2px 4px;border-radius:4px;font-size:12px;color:#0b3d91}

/* Permission table first column: keep names on one line and allow natural width */
.perm-table th:first-child,.perm-table td:first-child{white-space:nowrap;width:1%;}

/* Inline code general styling */
code{font-family:Consolas, 'Courier New', monospace;background:#f5f7fa;padding:2px 4px;border-radius:4px;font-size:90%}

/* Increase vertical spacing between instructional list items */
ol li{margin-bottom:8px}
ol li:last-child{margin-bottom:0}

strong{font-weight:600;}

/* Screen-reader only utility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width:900px){
  .docs-layout{grid-template-columns:1fr}
  .docs-sidebar{position:relative;top:auto;padding-bottom:12px}
  header .header-inner{flex-direction:column;align-items:flex-start}
}
