/* Shared horizontal navigation for Market View and all financial pages. */
.site-header.rs-unified-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  height: 64px;
  min-width: 0;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1600px) / 2));
  border-bottom: 1px solid var(--line, #263848);
  background: #080e15;
}
.rs-unified-header > .brand {
  flex: 0 0 auto;
  font: 800 19px/1.4 Inter, system-ui, sans-serif;
  white-space: nowrap;
}
.rs-unified-header > nav.rs-page-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  gap: 8px;
  margin: 0 0 0 auto;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.rs-unified-header > nav.rs-page-nav::-webkit-scrollbar { display: none; }
.rs-unified-header > nav.rs-page-nav > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-height: 38px;
  margin: 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  color: #92a6ba;
  background: transparent;
  font: 400 13px/20px Inter, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.rs-unified-header > nav.rs-page-nav > a:hover,
.rs-unified-header > nav.rs-page-nav > a:focus-visible,
.rs-unified-header > nav.rs-page-nav > a[aria-current="page"] {
  color: #e9f1f9;
  background: #192634;
}
.rs-unified-header > nav.rs-page-nav > a:focus-visible {
  outline: 2px solid var(--green, #29dba4);
  outline-offset: -2px;
}
.rs-unified-header > #themeToggle { display: inline-grid; place-items: center; box-sizing: border-box; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; margin: 0; border: 1px solid #263848; border-radius: 8px; background: #172634; color: #e9f1f9; font: 18px/1 system-ui, sans-serif; cursor: pointer; }
.rs-unified-header > #themeToggle:hover { border-color: #29dba4; }
.rs-unified-header > #themeToggle { margin-left: auto; }
.rs-unified-header > #themeToggle:focus-visible { outline: 2px solid #29dba4; outline-offset: 2px; }
body.light .rs-unified-header { background: #f4f7fa; border-color: #d7e1e8; }
body.light .rs-unified-header > nav.rs-page-nav > a { color: #586f82; }
body.light .rs-unified-header > nav.rs-page-nav > a:hover,
body.light .rs-unified-header > nav.rs-page-nav > a:focus-visible,
body.light .rs-unified-header > nav.rs-page-nav > a[aria-current="page"] { color: #172b3b; background: #eaf0f5; }
body.light .rs-unified-header > #themeToggle { color: #172b3b; background: #eaf0f5; border-color: #d7e1e8; }
@media (max-width: 1000px) {
  .site-header.rs-unified-header { gap: 12px; padding-inline: 15px; }
  .rs-unified-header > nav.rs-page-nav { gap: 4px; }
  .rs-unified-header > nav.rs-page-nav > a { padding-inline: 10px; }
}
@media (max-width: 680px) {
  .site-header.rs-unified-header {
    height: 58px;
    min-height: 58px;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 10px;
  }
  .rs-unified-header > nav.rs-page-nav {
    order: 0;
    flex: 1 1 0;
    width: auto;
    max-width: none;
    margin: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .rs-unified-header > nav.rs-page-nav > a {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 13px;
  }
  .rs-unified-header > #themeToggle { flex-basis: 36px; margin-left: auto; width: 36px; height: 36px; padding: 0; }
}
@media (max-width: 680px) and (pointer: coarse) {
  .rs-unified-header > nav.rs-page-nav > a { min-height: 44px; }
}
