/* The homepage and the article pages share this header. All rules are scoped. */
.ba-site-skip {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1100;
  transform: translateY(-180%);
  padding: 12px 18px;
  border-radius: 10px;
  background: #fff;
  color: #12304a;
  font: 700 14px/1.5 "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 8px 24px rgb(17 49 87 / 14%);
  text-decoration: none;
}
.ba-site-skip:focus { transform: translateY(0); outline: 3px solid #2878cf; outline-offset: 3px; }
header.ba-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgb(17 49 87 / 9%);
  border-radius: 0;
  background: rgb(255 255 255 / 94%);
  color: #113157;
  box-shadow: 0 5px 20px rgb(17 49 87 / 2%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  text-align: left;
}
header.ba-site-header *, header.ba-site-header *::before, header.ba-site-header *::after { box-sizing: border-box; }
header.ba-site-header .ba-site-header-inner {
  width: min(calc(100% - 40px), 1160px);
  min-height: 96px;
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
header.ba-site-header .ba-site-brand {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 620px;
  margin: 0;
  color: #113157;
  text-decoration: none;
}
header.ba-site-header .ba-site-logo {
  display: grid;
  flex: 0 0 68px;
  place-items: center;
  width: 68px;
  height: 68px;
  overflow: hidden;
  padding: 6px;
  border: 1px solid #e8f0f7;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #edf6ff);
  box-shadow: 0 8px 24px rgb(17 49 87 / 8%);
}
header.ba-site-header .ba-site-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  object-fit: contain;
}
header.ba-site-header .ba-site-logo-fallback {
  display: inline-block;
  color: #185cc0;
  font: 900 31px/1 Arial, sans-serif;
  letter-spacing: -2px;
}
header.ba-site-header .ba-site-logo-fallback span { color: #16775f; font-size: 20px; letter-spacing: -1.5px; }
header.ba-site-header .ba-site-brand-copy { display: block; min-width: 0; }
header.ba-site-header .ba-site-brand-title {
  display: block;
  margin: 0;
  color: #113157;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}
header.ba-site-header .ba-site-brand-subtitle {
  display: block;
  margin-top: 3px;
  color: #4c6482;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}
header.ba-site-header .ba-site-nav {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}
header.ba-site-header .ba-site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #4c6482;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
header.ba-site-header .ba-site-nav a:hover { background: #edf5ff; color: #185cc0; }
header.ba-site-header .ba-site-nav a[aria-current="page"] { border-color: #e0eaf4; background: #edf5ff; color: #185cc0; }
header.ba-site-header a:focus-visible { outline: 3px solid #2878cf; outline-offset: 3px; }
@media (max-width: 980px) {
  header.ba-site-header .ba-site-header-inner { gap: 14px; }
  header.ba-site-header .ba-site-brand-subtitle { font-size: 12px; }
  header.ba-site-header .ba-site-nav a { padding-inline: 10px; font-size: 13px; }
}
@media (max-width: 860px) {
  header.ba-site-header { position: relative; }
  header.ba-site-header .ba-site-header-inner { flex-direction: column; align-items: stretch; gap: 12px; padding-block: 14px 12px; }
  header.ba-site-header .ba-site-brand { max-width: none; }
  header.ba-site-header .ba-site-logo { flex-basis: 56px; width: 56px; height: 56px; border-radius: 15px; }
  header.ba-site-header .ba-site-logo-fallback { font-size: 27px; }
  header.ba-site-header .ba-site-logo-fallback span { font-size: 17px; }
  header.ba-site-header .ba-site-nav { justify-content: flex-start; gap: 4px; }
  header.ba-site-header .ba-site-nav a { padding-inline: 14px; }
}
@media (max-width: 480px) {
  header.ba-site-header .ba-site-header-inner { width: calc(100% - 32px); gap: 11px; }
  header.ba-site-header .ba-site-brand { gap: 10px; }
  header.ba-site-header .ba-site-brand-title { font-size: 18px; }
  header.ba-site-header .ba-site-brand-subtitle { font-size: 11px; line-height: 1.7; }
  header.ba-site-header .ba-site-nav { justify-content: space-between; gap: 2px; }
  header.ba-site-header .ba-site-nav a { min-height: 44px; padding: 10px 8px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  header.ba-site-header .ba-site-nav a { transition: none; }
}
