/* One header layout for the homepage, editorial pages, guide, and 404. */
html {
  scrollbar-gutter: stable;
  scroll-padding-top: 100px;
}
.eg-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #dce1e6;
  color: #101d36;
  font-family: Instrument, Arial, sans-serif;
}
.eg-header-inner {
  width: min(1240px, calc(100% - 80px));
  height: 80px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.eg-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  white-space: nowrap;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.7px;
  line-height: 1.5;
}
.eg-header-brand img { width: 32px; height: 25px; }
.eg-header-desktop { display: flex; align-items: center; gap: 22px; }
.eg-header nav a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
  border: 0;
}
.eg-header nav a:not(.eg-header-cta):hover { color: #244dc1; }
.eg-header nav a[aria-current="page"]:not(.eg-header-cta) > span {
  text-decoration: underline;
  text-decoration-color: #718198;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}
.eg-header nav a.eg-header-cta {
  padding: 10px 16px;
  border-radius: 5px;
  background: #101d36;
  color: #fff;
  font-weight: 600;
}
.eg-header nav a.eg-header-cta:hover { background: #233b60; }
.eg-header :is(a, summary):focus-visible {
  outline: 3px solid #b77516;
  outline-offset: 5px;
}
.eg-header-mobile { display: none; }
@media (max-width: 1100px) {
  .eg-header-inner { width: calc(100% - 60px); }
  .eg-header-desktop { gap: 16px; }
  .eg-header nav a { font-size: 12px; }
}
@media (max-width: 1000px) {
  .eg-header-desktop { display: none; }
  .eg-header-mobile { display: block; }
  .eg-header-mobile summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    line-height: 1.5;
  }
  .eg-header-mobile summary::-webkit-details-marker { display: none; }
  .eg-header-mobile nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px 30px 24px;
    border-bottom: 1px solid #dce1e6;
    background: #fff;
    box-shadow: 0 15px 20px #101d3610;
  }
  .eg-header-mobile nav a { font-size: 14px; }
  .eg-header-mobile nav a.eg-header-cta { align-self: flex-start; margin-top: 6px; }
}
@media (max-width: 600px) {
  .eg-header-inner { width: calc(100% - 40px); gap: 12px; }
  .eg-header-brand { font-size: 16px; gap: 8px; }
  .eg-header-mobile nav { padding-inline: 20px; }
}
@media print { .eg-header { display: none; } }
