/* Header 2026: navy Homepage 2026 header and the white compact bar used on every page */

@font-face {
  font-family: "TiemposHeadline";
  src: url("../fonts/TiemposHeadline/TiemposHeadline-Medium.woff2") format("woff2"),
    url("../fonts/TiemposHeadline/TiemposHeadline-Medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}

/* Pages pad their content by the white bar's height */
:root {
  --compact-header-height: 61px;
}

@media (max-width: 1199px) {
  :root {
    --compact-header-height: 53px;
  }
}

@media (max-width: 599px) {
  :root {
    --compact-header-height: 48px;
  }
}

.hp26-header-wrap {
  --hp26-header-h: 153px;
  height: var(--hp26-header-h);
}

@media (max-width: 1199px) {
  .hp26-header-wrap {
    --hp26-header-h: 130px;
  }
}

@media (max-width: 599px) {
  .hp26-header-wrap {
    --hp26-header-h: 117px;
  }
}

.hp26-header {
  --hp26-heading: "ABCMonumentGrotesk", Tahoma, sans-serif;
  --hp26-body: "TiemposHeadline", Georgia, serif;
  --hp26-pad: 50px;
  --text-primary: #fff;
  --text-secondary: #c0c0c0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  height: 100%;
  padding: 0 var(--hp26-pad);
  background: var(--hp26-header-bg, #1a0e38);
  color: var(--text-primary);
}

@media (max-width: 599px) {
  .hp26-header {
    --hp26-pad: 25px;
  }
}

/* White bar: the compact header on every page, and the sticky copy on Homepage 2026 */
.hp26-header--sticky {
  --text-primary: #000;
  --text-secondary: #666;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: auto;
  padding-top: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #c0c0c0;
  background: #fff;
  transition: transform 0.3s cubic-bezier(0.5, 0, 0.2, 1);
}

/* Slid off the top until the navy header (Homepage 2026) or the old full header (home, about) scrolls away */
.hp26-header--hidden,
body:not(.show-compact) .hp26-header--reveal {
  visibility: hidden;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.5, 0, 0.2, 1), visibility 0s 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .hp26-header--sticky,
  .hp26-header--hidden,
  body:not(.show-compact) .hp26-header--reveal {
    transition: none;
  }
}

.hp26-header__brand {
  flex-shrink: 0;
}

.hp26-header__brand svg {
  display: block;
  width: 175px;
  height: auto;
  fill: currentColor;
}

.hp26-header--sticky .hp26-header__brand svg {
  width: 250px;
}

@media (max-width: 1199px) {
  .hp26-header__brand svg {
    width: 140.76px;
  }
}

@media (max-width: 599px) {
  .hp26-header__brand {
    flex-shrink: 1;
    min-width: 0;
  }

  .hp26-header__brand svg {
    width: 120px;
  }

  .hp26-header--sticky .hp26-header__brand svg {
    width: 195px;
    max-width: 100%;
  }

  .hp26-header--sticky .search-icon,
  .hp26-header--sticky .hamburger-icon {
    width: 15px;
    height: auto;
  }
}

/* Edition date sits above the links and search icon, its border spanning both */
.hp26-header__end {
  margin-left: auto;
}

.hp26-header__row {
  display: flex;
  align-items: center;
  gap: 30px;
}

.hp26-header__items {
  display: flex;
  gap: 50px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--hp26-heading);
  font-size: 18px;
  line-height: 30px;
}

.hp26-header__items a {
  color: inherit;
  text-decoration: none;
}

.hp26-header__items a:hover {
  text-decoration: underline solid;
  text-decoration-thickness: .09375rem;
  text-underline-offset: 0.155em;
  text-decoration-skip-ink: auto;
}

.hp26-header__items {
  white-space: nowrap;
}

@media (max-width: 1599px) {
  .hp26-header__items {
    gap: 25px;
  }
}

.hp26-header__issue {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid color-mix(in srgb, currentColor 8%, transparent);
  font-family: "TiemposText", Georgia, serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.5px;
  text-align: right;
}

.hp26-header .menu-search {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.hp26-header .search-button,
.hp26-header .hamburger-button {
  cursor: pointer;
}

.hp26-header .menu-search svg {
  display: block;
}

.hp26-header .hamburger-button {
  display: none;
}

@media (max-width: 1199px) {
  .hp26-header__nav,
  .hp26-header__issue {
    display: none;
  }

  .hp26-header .hamburger-button {
    display: block;
  }
}
