/* Felles navbar for alle offentlige RS Media-sider. */
.public-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 76px;
  background: rgba(255, 250, 246, .96);
  border-bottom: 1px solid rgba(48, 68, 56, .14);
  backdrop-filter: blur(12px);
}

.public-header__inner {
  width: min(1200px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.public-header__logo {
  width: 95px;
  height: auto;
}

.public-header__menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.8vw, 42px);
  font: 600 .92rem/1 Manrope, Arial, sans-serif;
}

.public-header__menu a {
  position: relative;
  padding: 12px 0;
  white-space: nowrap;
}

.public-header__menu a:not(.public-header__book):hover,
.public-header__menu a.active {
  color: #f5a126;
}

.public-header__menu a.active {
  font-weight: 700;
}

.public-header__menu a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: #f5a126;
}

.public-header__book {
  padding: 12px 20px !important;
  color: #f5a126 !important;
  border: 1px solid #f5a126;
  border-radius: 8px;
}

.public-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(48, 68, 56, .18);
  border-radius: 8px;
  background: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

@media (max-width: 850px) {
  .public-header__inner {
    width: min(100% - 32px, 1200px);
  }

  .public-header__toggle {
    display: block;
  }

  .public-header__menu {
    display: none;
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .35rem;
    padding: 1rem 24px 1.25rem;
    background: #fff;
    border-bottom: 1px solid rgba(48, 68, 56, .14);
  }

  .public-header__menu.open {
    display: flex;
  }

  .public-header__menu a {
    padding: .65rem 0;
  }

  .public-header__book {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .public-header__logo {
    width: 78px;
  }
}

/* Same dimensions for the older shared-header markup on service pages. */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,250,246,.96); border-bottom: 1px solid rgba(48,68,56,.14); backdrop-filter: blur(12px); }
.site-header .nav-wrap { width: min(1200px, calc(100% - 48px)); min-height: 76px; margin: 0 auto; }
.site-header .brand img { width: 95px; max-height: none; }
.site-header .main-nav { gap: clamp(18px, 2.8vw, 42px); font: 600 .92rem/1 Manrope, Arial, sans-serif; }
.site-header .main-nav > a { position: relative; padding: 12px 0; }
.site-header .main-nav > a.active { color: #f5a126; font-weight: 700; }
.site-header .main-nav > a.active::after { content: ""; position: absolute; right: 0; bottom: 3px; left: 0; height: 2px; background: #f5a126; }
.site-header .main-nav > a.button { padding: 12px 20px; color: #f5a126; background: transparent; border: 1px solid #f5a126; border-radius: 8px; }
@media (max-width: 850px) {
  .site-header .nav-wrap { width: min(100% - 32px, 1200px); }
  .site-header .main-nav { display: none; position: absolute; top: 76px; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: .35rem; padding: 1rem 24px 1.25rem; background: #fff; border-bottom: 1px solid rgba(48,68,56,.14); }
  .site-header .main-nav.open { display: flex; }
  .site-header .nav-toggle { display: block; }
}
