/* Site chrome: BAM-style header + footer (self-contained)
   Scoped + !important where River/trade global select/a rules leak in. */
.site-chrome-header {
  width: 100%;
  background-color: #00193c !important;
  color: #fff !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 3rem;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 640px) { .site-chrome-header { height: 4rem; } }
@media (min-width: 768px) { .site-chrome-header { height: 6rem; } }
@media (min-width: 1024px) { .site-chrome-header { height: 8rem; } }
.site-chrome-header.menu-open { z-index: 50; }
.site-chrome-header *,
.site-chrome-header *::before,
.site-chrome-header *::after {
  box-sizing: border-box;
}

.site-chrome-spacer {
  width: 100%;
  height: 3rem;
  flex-shrink: 0;
}
@media (min-width: 640px) { .site-chrome-spacer { height: 4rem; } }
@media (min-width: 768px) { .site-chrome-spacer { height: 6rem; } }
@media (min-width: 1024px) { .site-chrome-spacer { height: 8rem; } }

.site-chrome-header .home-bam-logo {
  display: block !important;
  height: 1.5rem !important;
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
}
@media (min-width: 640px) { .site-chrome-header .home-bam-logo { height: 2rem !important; } }
@media (min-width: 1024px) { .site-chrome-header .home-bam-logo { height: 2.5rem !important; } }
@media (min-width: 1280px) { .site-chrome-header .home-bam-logo { height: 2.75rem !important; } }

.home-bam-footer-logo { height: 3rem; width: auto; object-fit: contain; }
@media (min-width: 640px) { .home-bam-footer-logo { height: 3.5rem; } }

.home-bam-header-inner {
  width: 100%;
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 768px) {
  .home-bam-header-inner { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1024px) {
  .home-bam-header-inner { padding-left: 2.5rem; padding-right: 2.5rem; }
}
@media (min-width: 1280px) {
  .home-bam-header-inner { padding-left: 3.5rem; padding-right: 3.5rem; }
}

.home-bam-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.home-bam-nav-desktop {
  display: none;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  gap: 1rem;
  margin-left: 1.5rem;
}
@media (min-width: 1024px) {
  .home-bam-nav-desktop { display: flex; }
}

.home-bam-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.25rem;
}

.home-bam-nav-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 0.75rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255,255,255,0.2);
}

.site-chrome-header .home-bam-nav-link {
  display: inline-block !important;
  padding: 0.55rem 0.85rem !important;
  margin: 0 !important;
  font-weight: 600 !important;
  border: 2px solid transparent !important;
  transition: color 0.2s;
  white-space: nowrap !important;
  font-size: 0.95rem !important;
  line-height: 1.25 !important;
  color: #fff !important;
  text-decoration: none !important;
  background: transparent !important;
}
.site-chrome-header .home-bam-nav-link:hover { color: #60a5fa !important; }

.home-bam-nav-dropdown { position: relative; }
.site-chrome-header .home-bam-nav-link.home-bam-nav-dropdown-trigger,
.home-bam-nav-dropdown-trigger {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  cursor: pointer;
  white-space: nowrap !important;
}
.site-chrome-header .home-bam-nav-dropdown-trigger svg {
  display: inline-block !important;
  width: 1rem !important;
  height: 1rem !important;
  flex-shrink: 0 !important;
  vertical-align: middle;
}
.home-bam-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 11rem;
  padding: 0.4rem 0;
  margin-top: 0.15rem;
  background: #00193c;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 0.35rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  z-index: 60;
}
.home-bam-nav-dropdown:hover .home-bam-nav-dropdown-menu,
.home-bam-nav-dropdown:focus-within .home-bam-nav-dropdown-menu {
  display: block;
}
.home-bam-nav-dropdown-menu a {
  display: block;
  padding: 0.7rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.home-bam-nav-dropdown-menu a:hover,
.home-bam-nav-dropdown-menu a:active {
  color: #60a5fa;
  background: rgba(255,255,255,0.06);
}

.site-chrome-header .home-bam-nav-cta {
  display: inline-block !important;
  padding: 0.55rem 1.1rem !important;
  margin: 0 !important;
  border: 2px solid #fff !important;
  font-weight: 600 !important;
  border-radius: 0.25rem !important;
  white-space: nowrap !important;
  font-size: 0.95rem !important;
  line-height: 1.25 !important;
  flex-shrink: 0;
  color: #fff !important;
  text-decoration: none !important;
  background: transparent !important;
}
.site-chrome-header .home-bam-nav-cta:hover {
  background: #fff !important;
  color: #000 !important;
}

@media (min-width: 1280px) {
  .home-bam-nav-links { gap: 0.35rem; }
  .site-chrome-header .home-bam-nav-link { padding: 0.7rem 1.15rem !important; font-size: 1rem !important; }
  .site-chrome-header .home-bam-nav-cta { padding: 0.7rem 1.35rem !important; font-size: 1rem !important; }
  .home-bam-nav-desktop { gap: 1.25rem; }
  .home-bam-nav-actions { gap: 0.9rem; margin-left: 1.25rem; padding-left: 1.25rem; }
}

/* Fixed metrics so homepage (BAM font) and other pages (River) match to the pixel */
.site-chrome-header select.home-bam-lang,
.home-bam-mobile-bar select.home-bam-lang,
select.home-bam-lang {
  display: inline-block !important;
  box-sizing: border-box !important;
  width: 6.5rem !important;
  min-width: 6.5rem !important;
  max-width: 6.5rem !important;
  height: 2rem !important;
  margin: 0 !important;
  padding: 0 1.5rem 0 0.5rem !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 2rem !important;
  letter-spacing: 0 !important;
  color: #fff !important;
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.35rem center !important;
  background-size: 0.9rem 0.9rem !important;
  border: 1px solid rgba(255,255,255,0.55) !important;
  border-radius: 0.25rem !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer !important;
  flex: 0 0 6.5rem !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  vertical-align: middle !important;
  text-transform: none !important;
  text-indent: 0 !important;
}
.site-chrome-header select.home-bam-lang option,
select.home-bam-lang option {
  color: #000 !important;
  background: #fff !important;
}

.home-bam-mobile-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 1024px) {
  .home-bam-mobile-bar { display: none; }
}

.home-bam-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: color 0.2s, background-color 0.2s;
}
.home-bam-icon-btn:hover,
.home-bam-icon-btn:active { color: #60a5fa; background: rgba(255,255,255,0.08); }
.home-bam-icon-btn .icon-close { display: none; }
.home-bam-icon-btn.is-open .icon-menu { display: none; }
.home-bam-icon-btn.is-open .icon-close { display: block; }
.home-bam-icon-btn svg { width: 1.75rem; height: 1.75rem; }

#home-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background-color: #00193c;
  color: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#home-mobile-menu.is-open { display: block; }
@media (min-width: 1024px) {
  #home-mobile-menu { display: none !important; }
}

.home-mobile-panel {
  min-height: 100%;
  padding: 4.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) {
  .home-mobile-panel { padding-top: 5.5rem; }
}
@media (min-width: 768px) {
  .home-mobile-panel { padding-top: 7rem; }
}

.home-mobile-link {
  display: block;
  padding: 0.95rem 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s, background-color 0.2s;
}
.home-mobile-link:hover,
.home-mobile-link:active {
  color: #60a5fa;
  padding-left: 0.5rem;
  background-color: rgba(255,255,255,0.04);
}

.home-mobile-sub {
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.home-mobile-sub-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.home-mobile-sub-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.2s;
}
.home-mobile-sub.is-open .home-mobile-sub-toggle svg {
  transform: rotate(180deg);
}
.home-mobile-sub-list {
  display: none;
  padding: 0 0 0.5rem 0.75rem;
}
.home-mobile-sub.is-open .home-mobile-sub-list {
  display: block;
}
.home-mobile-sub-list a {
  display: block;
  padding: 0.7rem 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
}
.home-mobile-sub-list a:last-child { border-bottom: 0; }
.home-mobile-sub-list a:hover,
.home-mobile-sub-list a:active { color: #60a5fa; }

.home-mobile-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.home-mobile-btn {
  display: block;
  text-align: center;
  padding: 0.85rem 1rem;
  font-weight: 600;
  border: 2px solid #fff;
  border-radius: 0.35rem;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.home-mobile-btn:hover,
.home-mobile-btn:active {
  background-color: #fff;
  color: #00193c;
}
.home-mobile-btn-solid {
  background-color: #0054cc;
  border-color: #0054cc;
}
.home-mobile-btn-solid:hover,
.home-mobile-btn-solid:active {
  background-color: #fff;
  border-color: #fff;
  color: #00193c;
}

/* Footer */
.site-chrome-footer {
  width: 100%;
  background-color: #00193c;
  color: #fff;
}
.site-chrome-footer a {
  color: #fff;
  text-decoration: none;
}
.site-chrome-footer a:hover { color: #60a5fa; }
.site-chrome-footer-inner {
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem 1.25rem 1.5rem;
}
@media (min-width: 768px) {
  .site-chrome-footer-inner { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1024px) {
  .site-chrome-footer-inner { padding: 3rem 2.5rem 1.5rem; }
}
@media (min-width: 1280px) {
  .site-chrome-footer-inner { padding: 4rem 3.5rem 2rem; }
}
.site-chrome-footer-grid {
  display: block;
}
@media (min-width: 1280px) {
  .site-chrome-footer-grid {
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 3.5rem;
  }
}
.site-chrome-footer-cols {
  display: none;
}
@media (min-width: 1024px) {
  .site-chrome-footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding-bottom: 1rem;
  }
}
@media (min-width: 1280px) {
  .site-chrome-footer-cols { margin-top: -1rem; }
}
.site-chrome-footer-cols .col {
  display: flex;
  flex-direction: column;
}
.site-chrome-footer-cols a {
  padding: 0.75rem 0;
  font-weight: 400;
}
.site-chrome-footer-cols a.is-title {
  padding-top: 1rem;
  font-weight: 600;
}
.site-chrome-footer-mobile {
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.25);
}
.site-chrome-footer-mobile a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}
.site-chrome-footer-mobile a:last-child { border-bottom: 0; }
@media (min-width: 1024px) {
  .site-chrome-footer-mobile { display: none; }
}
.site-chrome-footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.25);
}
@media (min-width: 768px) {
  .site-chrome-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
.site-chrome-footer-copy {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #d1d5db;
}
@media (min-width: 768px) {
  .site-chrome-footer-copy { font-size: 0.875rem; }
}
.site-chrome-footer-bottom a {
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.75rem;
  font-weight: 400;
}
@media (min-width: 640px) {
  .site-chrome-footer-bottom a { font-size: 0.875rem; }
}
@media (min-width: 768px) {
  .site-chrome-footer-bottom a { padding: 0; }
}
.site-chrome-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.shrink-0 { flex-shrink: 0; }
