/* Shared public header material: React public pages and static marketing. */
.old6PortalTheme {
  --site-header-bg: #173e65;
  --site-header-glass: rgb(18 50 83 / 83%);
  --site-header-ink: #f1f6fc;
  --site-header-muted: #c6d5e6;
  --site-header-control: #2a5076;
  --site-header-hover: #365f87;
  --site-header-accent: #d6e9fb;
  --site-header-action: #dbe8f2;
  --site-header-focus: #b9dfff;
  --portal-frame-radius: 12px;
  --portal-control-radius: 8px;
  --portal-control-shadow: inset 0 1px 0 rgb(255 255 255 / 16%), 0 2px 6px rgb(4 23 44 / 16%);
  --portal-control-pressed-shadow: inset 0 2px 4px rgb(3 22 42 / 24%), 0 1px 3px rgb(4 23 44 / 12%);
  color: var(--site-header-ink);
  color-scheme: dark;
  font-family: var(--font-body, system-ui, sans-serif);
}
.old6PortalBar {
  position: fixed; inset: 0 0 auto; z-index: 200;
  padding-top: env(safe-area-inset-top);
  background: var(--site-header-bg); color: var(--site-header-ink);
  border: 1px solid rgb(224 239 255 / 20%); border-radius: var(--portal-frame-radius);
  box-shadow: 0 4px 14px rgb(8 30 55 / 10%);
}
.old6PortalBrand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: inherit; text-decoration: none; }
.old6PortalBrand img { display: block; width: 44px; height: 44px; object-fit: contain; flex: none; }
.old6PortalBrand [data-header-brand-label] { max-width: 240px; font-size: 18px; font-weight: 650; line-height: 1.35; letter-spacing: -.02em; }
.old6PortalControl {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 44px; min-height: 44px; padding: 9px 12px;
  border: 1px solid rgb(224 240 255 / 13%); border-radius: var(--portal-control-radius);
  background: rgb(207 228 248 / 6%); color: var(--site-header-ink);
  box-shadow: var(--portal-control-shadow);
  font: inherit; font-size: 14px; line-height: 1.5; cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}
.old6PortalControl:hover { background: var(--site-header-hover); }
.old6PortalControl:active { transform: translateY(2px) scale(.98); box-shadow: var(--portal-control-pressed-shadow); }
.old6PortalTheme :is(a,button,select):focus-visible { outline: 2px solid var(--site-header-focus); outline-offset: 3px; }
@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .old6PortalBar { background: var(--site-header-glass); -webkit-backdrop-filter: blur(16px) saturate(120%); backdrop-filter: blur(16px) saturate(120%); }
}
@media (max-width: 767px) {
  .old6PortalBrand { gap: 8px; }
  .old6PortalBrand img { width: 36px; height: 36px; }
  .old6PortalBrand [data-header-brand-label] { max-width: calc(100vw - 92px); font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .old6PortalControl { transition: none; } .old6PortalControl:active { transform: none; } }
@media (forced-colors: active) { .old6PortalBar { background: Canvas; color: CanvasText; backdrop-filter: none; } .old6PortalControl { border: 1px solid ButtonText; background: ButtonFace; color: ButtonText; } }

/* Module entry headers share the hub's geometry with a lighter blue surface. */
.old6PortalBar:is([data-portal-module='marketing'], [data-portal-module='agents'], [data-portal-module='tokens'], [data-portal-module='community']) {
  --site-header-bg: #325d7e;
  --site-header-glass: rgb(35 76 111 / 84%);
}

.old6PortalBar:not([data-portal-module='home']) .old6PortalBrand img[src*='old6-mark-purple'] {
  padding: 5px; border-radius: var(--portal-control-radius); background: #f2f7fc;
}

.old6PortalBar[data-portal-module='marketing'] {
  --site-header-bg: #4b5e88;
  --site-header-glass: rgb(56 71 113 / 87%);
  --site-header-hover: #5b6e9b;
}

.old6PortalTheme .old6LocalePicker > .old6LocaleTrigger {
  border: 1px solid rgb(224 240 255 / 13%); border-radius: var(--portal-control-radius);
  background: rgb(207 228 248 / 6%); box-shadow: var(--portal-control-shadow);
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}
.old6PortalTheme .old6LocalePicker > .old6LocaleTrigger:hover { background: var(--site-header-hover); }
.old6PortalTheme .old6LocalePicker > .old6LocaleTrigger:active { transform: translateY(2px) scale(.98); box-shadow: var(--portal-control-pressed-shadow); }
.old6PortalTheme .old6LocalePicker > .old6LocaleTrigger:focus-visible { outline: 2px solid var(--site-header-focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .old6PortalTheme .old6LocalePicker > .old6LocaleTrigger { transition: none; } .old6PortalTheme .old6LocalePicker > .old6LocaleTrigger:active { transform: none; } }
