/* One header for every page of research.wwtf.at: logo and wordmark left, four links, one action.
   On phones the links fold into the menu (radar-menu.js); the dataset page adds its Filters button. */
.rh {
  position: sticky; top: 0; z-index: 200; height: 64px; box-sizing: border-box;
  display: flex; align-items: center; gap: 28px; padding: 0 48px;
  background: #ffffff; border-bottom: 1px solid #e4e4e3; transform: none;
  font-family: "Source Sans 3", "Source Sans Pro", Arial, Calibri, system-ui, sans-serif;
  transition: box-shadow 120ms cubic-bezier(0.4, 0, 0.2, 1);
}
.rh.stuck { box-shadow: 0 2px 8px rgba(24, 23, 21, 0.08); }
.rh-brand { display: flex; align-items: center; gap: 14px; color: #181715; font-size: 16px; font-weight: 700; text-decoration: none; flex-shrink: 0; letter-spacing: 0; text-transform: none; }
.rh-brand:hover { color: #008fd3; text-decoration: none; }
.rh-brand img { height: 32px; width: auto; display: block; }
.rh-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.rh-nav a { color: #181715; font-size: 16px; font-weight: 400; text-decoration: none; letter-spacing: 0; text-transform: none; }
.rh-nav a:hover { color: #008fd3; text-decoration: none; }
.rh-nav a[aria-current] { color: #008fd3; font-weight: 600; }
.rh-cta { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 3px; background: #008fd3; color: #ffffff; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.rh-cta:hover { background: #005b94; color: #ffffff; text-decoration: none; }
/* issue pages: the same header in white on the cover photo, and the sticky bar that slides in after the hero */
.rh-onphoto { position: absolute; top: 0; left: 0; right: 0; z-index: 5; background: transparent; border-bottom: none; }
.rh-onphoto .rh-brand, .rh-onphoto .rh-nav a { color: #ffffff; }
.rh-onphoto .rh-nav a:hover, .rh-onphoto .rh-brand:hover { color: rgba(255, 255, 255, 0.75); }
.rh-onphoto .rh-nav a[aria-current] { color: #ffffff; font-weight: 600; }
.rh-onphoto .rh-cta { background: #ffffff; color: #008fd3; }
.rh-onphoto .rh-cta:hover { background: #e6f4fb; color: #005b94; }
.rh.sticky-nav { position: fixed; left: 0; right: 0; transform: translateY(-100%); transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 120ms; justify-content: flex-start; }
.rh.sticky-nav.visible { transform: none; }
.hero-credit { position: absolute; right: 48px; bottom: 16px; z-index: 5; font-size: 12px; color: rgba(255, 255, 255, 0.7); }
@media (max-width: 760px) {
  .rh { height: 56px; padding: 0 16px; gap: 12px; }
  .rh-nav, .rh-cta, .rh-brand span, .rh-onphoto, .hero-credit { display: none; }
  .rh-brand img { height: 26px; }
  /* issue pages: the logo bar stays pinned at the very top, the title block makes room for it */
  .rh.sticky-nav { position: fixed; top: 0; left: 0; right: 0; transform: none; }
  .hero:has(+ .rh.sticky-nav) { padding-top: 56px; }
  html:has(.rh.sticky-nav) { scroll-padding-top: 64px; }
}
/* phones: the footer keeps only Imprint and wwtf.at */
@media (max-width: 760px) {
  .footer-wide, .footer-copy { display: none; }
  .footer-links li:not(:has(a[href^="https://wwtf.at"])) { display: none; }
  .footer-links li:has(a[href*="/imprint"]) { order: -1; }
  footer nav a, .footer-links a { display: inline-block; padding: 12px 0; }
}
/* phones: tap targets and small print on the issue pages and the issue list */
@media (max-width: 760px) {
  nav.issue-nav a { min-height: 44px; }
  .radar-cite a, a.ent { padding: 6px 0; }
  .endnote-row span.country { font-size: 12px; }
  .card-meta .meta-sep:has(+ .card-pills) { display: none; }
  .card-meta .card-pills { flex-basis: 100%; }
  /* back-to-top slides away while reading down (radar-menu.js) */
  #btt { transition: translate 220ms cubic-bezier(0.4, 0, 0.2, 1); }
  #btt.btt-away { translate: 0 120px; pointer-events: none; }
}
