/* Shared XRBitcoinCash header for the exchange and developer documentation. */
body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header {
  --header-panel:#111a27; --header-raised:#172334; --header-ink:#edf2fa;
  --header-muted:#a6b5c9; --header-line:#35465d; --header-link:#90baff;
  width:100%; margin:0; border-bottom:1px solid var(--header-line);
  background:var(--header-panel); color:var(--header-ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
html[data-theme="light"] body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header {
  --header-panel:#fff; --header-raised:#edf2f8; --header-ink:#142238;
  --header-muted:#526278; --header-line:#b7c3d3; --header-link:#1d55ba;
}
body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header * {box-sizing:border-box}
body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header-inner {
  width:100%; max-width:1440px; margin:auto; padding:16px 32px;
  display:grid; grid-template-columns:minmax(230px,1fr) auto minmax(110px,1fr);
  align-items:center; gap:24px;
}
body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header-inner > * {min-width:0}
body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header .xrbc-app-brand {
  display:flex; align-items:center; gap:12px; min-height:44px;
  color:var(--header-ink); text-decoration:none; font-size:18px; font-weight:700;
  letter-spacing:-.03em; line-height:1.45;
}
body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-brand img {width:36px;height:36px;flex:none}
body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-brand span {min-width:0;overflow-wrap:anywhere}
body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-brand small {
  display:block; color:var(--header-muted); font-size:12px; font-weight:450; letter-spacing:0;
}
body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header .xrbc-app-nav {
  display:flex; align-items:center; flex-wrap:wrap; gap:8px; min-width:0;
}
body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header .xrbc-app-nav a {
  display:inline-flex; align-items:center; justify-content:center; min-height:44px;
  padding:10px 12px; border-radius:8px; color:var(--header-muted);
  background:transparent; font-size:14px; font-weight:600; text-decoration:none; line-height:1.5;
}
body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header .xrbc-app-nav a[aria-current] {
  color:var(--header-ink); background:var(--header-raised);
}
body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header a:hover {text-decoration:underline;text-underline-offset:4px}
body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header .xrbc-app-utilities {
  display:flex; flex-direction:column; align-items:flex-end; gap:6px;
}
body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header .xrbcv3-tools-fab {
  display:inline-flex; align-items:center; justify-content:center; position:static!important;
  width:auto!important; min-width:100px; min-height:44px; padding:8px 12px!important;
  border:1px solid var(--header-line)!important; border-radius:8px!important;
  background:var(--header-raised)!important; color:var(--header-ink)!important;
  box-shadow:none!important; transform:none!important; gap:8px; font-size:12px; font-weight:700;
  line-height:1.5; text-decoration:none;
}
body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header .xrbcv3-tools-icon {display:none}
body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header #themeToggle {
  position:static!important; display:grid; place-items:center; width:44px!important;
  height:44px!important; min-width:44px; min-height:44px!important; padding:4px!important;
  border:1px solid var(--header-line)!important; border-radius:8px!important;
  background:var(--header-panel)!important; color:var(--header-ink)!important;
  box-shadow:none!important; transform:none!important; font-size:20px!important; line-height:1; cursor:pointer;
}
.xrbc-app-header #themeToggle .xrbc-theme-sun {display:inline}
.xrbc-app-header #themeToggle .xrbc-theme-moon {display:none}
html[data-theme="light"] .xrbc-app-header #themeToggle .xrbc-theme-sun {display:none}
html[data-theme="light"] .xrbc-app-header #themeToggle .xrbc-theme-moon {display:inline}
body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header :is(a,button):focus-visible {
  outline:3px solid var(--header-link)!important; outline-offset:4px!important;
}
@media(max-width:1150px) {
  body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header-inner {grid-template-columns:minmax(0,1fr) auto;gap:12px}
  body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header .xrbc-app-nav {grid-column:1/-1;grid-row:2}
  body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header .xrbc-app-utilities {grid-column:2;grid-row:1}
}
@media(max-width:900px) {
  body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header-inner {padding:14px 20px}
}
@media(max-width:600px) {
  body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header-inner {padding:12px 14px}
  body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header .xrbc-app-brand {font-size:16px;gap:8px}
  body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header .xrbc-app-nav {gap:4px;justify-content:flex-start}
  body:is(.xrbc-institutional,.xrbc-developers) .xrbc-app-header .xrbc-app-nav a {padding:10px 12px}
}
