/* Felles sidebredde: header, innhold og footer bruker de samme to målene.
   Endre --sp-page-max her for å gjøre hele nettsiden smalere eller bredere. */
:root {
    --sp-nav-height: 72px; scroll-padding-top: var(--sp-nav-height);
    --sp-page-max: 1520px;
    --sp-page-pad: clamp(18px, 3.65vw, 60px);
}
html.sp-menu-open, html.sp-menu-open body { overflow: hidden !important; overscroll-behavior: none; }
#siteHeader.sp-navigation {
    position: sticky; top: 0; z-index: 100; display: block; flex: none;
    box-sizing: border-box; width: 100%; max-width: none; height: var(--sp-nav-height);
    padding: 0; margin: 0; border: 0; background: #075ac6; color: #fff;
    font: 500 15px/1.35 'DM Sans', system-ui, sans-serif;
}
#siteHeader.sp-scrolled { box-shadow: 0 2px 9px rgb(16 46 74 / 12%); }
#siteHeader *, #siteHeader *::before, #siteHeader *::after { box-sizing: border-box; }
#siteHeader .sp-navigation-row {
    width: min(var(--sp-page-max), 100%); height: 100%; display: flex; align-items: center;
    gap: clamp(8px, 1.3vw, 20px); margin: auto; padding: 0 var(--sp-page-pad);
}
#siteHeader a { text-decoration: none; }
#siteHeader .sp-nav-brand { display: inline-flex; flex: none; align-items: center; min-height: 44px; }
#siteHeader .sp-nav-brand img { display: block; width: 132px; height: auto; }
#siteHeader .sp-nav-desktop { flex: 1; display: flex; align-items: center; gap: clamp(12px, 1.8vw, 30px); margin: 0 0 0 clamp(4px, 1vw, 16px); }
#siteHeader .sp-nav-desktop a:nth-child(4) { margin-left: auto; }
#siteHeader nav a { display: flex; align-items: center; min-height: 44px; padding: 0; color: #16293c; font: inherit; white-space: nowrap; }
#siteHeader nav a:is(:hover, [aria-current="page"]) { color: #075ac6; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
#siteHeader .sp-nav-icon {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0;
    background: transparent; border: 0; border-radius: 50%; color: #16293c; cursor: pointer;
}
#siteHeader .sp-nav-icon:is(:hover, [aria-current="page"]) { background: rgb(255 255 255 / 16%); }
#siteHeader .sp-nav-icon svg { display: block; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
#siteHeader :is(a, button):focus-visible { outline: 3px solid #075ac6; outline-offset: 2px; }
#siteHeader .sp-nav-desktop a, #siteHeader .sp-nav-icon { color: #fff; }
#siteHeader .sp-nav-desktop a:is(:hover, [aria-current="page"]) { color: #fff; text-decoration-color: #ffd84d; }
#siteHeader .sp-navigation-row :focus-visible { outline-color: #fff; }
#siteHeader .sp-nav-book {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    min-height: 44px; padding: 0 20px; border-radius: 10px; background: #ffd84d;
    color: #142e4b; font: 700 14px/1.2 'DM Sans', system-ui, sans-serif; white-space: nowrap;
}
#siteHeader .sp-nav-book:hover { background: #ffe477; }
#siteHeader .sp-nav-open, #siteHeader .sp-nav-drawer:not([open]) { display: none; }
/* Mobilmeny: hvit fullskjerm med logo, «Bestill» og kryss øverst, store lenker under. */
#siteHeader .sp-nav-drawer {
    position: fixed; inset: 0; width: 100%; max-width: none;
    height: 100%; max-height: none; margin: 0; padding: 0 var(--sp-page-pad) calc(28px + env(safe-area-inset-bottom));
    background: #fff; border: none; border-radius: 0; color: #1d232b; font: inherit;
    overflow: auto; overscroll-behavior: contain; box-shadow: none;
}
#siteHeader .sp-nav-drawer[open] { display: flex; flex-direction: column; }
#siteHeader .sp-nav-drawer::backdrop { background: #fff; }
#siteHeader .sp-drawer-top { flex: none; height: var(--sp-nav-height); display: flex; align-items: center; gap: 14px; margin-right: -10px; }
#siteHeader .sp-drawer-logo { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
#siteHeader .sp-drawer-logo img { display: block; width: clamp(110px, 30vw, 140px); height: auto; }
#siteHeader .sp-drawer-book { display: inline-flex; align-items: center; min-height: 44px; color: #075ac6; font: 700 18px/1 'DM Sans', system-ui, sans-serif; }
#siteHeader .sp-drawer-book:hover { text-decoration: underline; text-underline-offset: 4px; }
#siteHeader .sp-drawer-top .sp-nav-icon { color: #1d232b; }
#siteHeader .sp-drawer-top .sp-nav-icon svg { width: 28px; height: 28px; stroke-width: 1.6; }
#siteHeader .sp-drawer-top .sp-nav-icon:hover { background: transparent; }
#siteHeader .sp-nav-drawer .sp-nav-close:focus { outline: none; background: transparent; }
#siteHeader .sp-nav-mobile { flex: none; display: block; margin: 32px 0 0; }
#siteHeader .sp-nav-drawer .sp-nav-mobile a,
#siteHeader .sp-nav-drawer .sp-nav-mobile a:is(:hover, :focus, [aria-current="page"]) {
    display: flex; align-items: center; min-height: 48px; padding: 0; margin: 0 0 0;
    color: #1d232b; font: 600 21px/1.25 'DM Sans', system-ui, sans-serif; letter-spacing: -.005em;
    text-decoration: none; white-space: normal; background: none;
}
#siteHeader .sp-nav-drawer .sp-drawer-foot { margin-top: auto; padding-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
#siteHeader .sp-nav-drawer .sp-drawer-foot a {
    flex: 0 0 auto; width: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
    border-radius: 999px; background: #f2f4f7; color: #1d232b; font: 600 14px/1.2 'DM Sans', system-ui, sans-serif; white-space: nowrap; text-decoration: none;
}
#siteHeader .sp-nav-drawer .sp-drawer-foot a:hover { background: #e8edf3; }
#siteHeader .sp-drawer-foot svg { flex: none; width: 18px; height: 18px; fill: none; stroke: #075ac6; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#siteHeader .sp-nav-drawer :focus-visible { outline: 3px solid #075ac6; outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: no-preference) {
    #siteHeader .sp-nav-drawer[open] { animation: sp-nav-enter 160ms ease-out; }
    @keyframes sp-nav-enter { from { opacity: 0; } }
}
@media (max-width: 899.98px) {
    :root { --sp-nav-height: 62px; }
    #siteHeader .sp-navigation-row { gap: 6px; padding-inline: var(--sp-page-pad); }
    #siteHeader .sp-nav-brand { order: 1; margin-right: auto; }
    #siteHeader .sp-nav-login { display: none; }
    #siteHeader .sp-nav-book { order: 2; }
    #siteHeader .sp-nav-open { order: 3; margin-right: -10px; }
    #siteHeader .sp-nav-open svg { width: 28px; height: 28px; }
    #siteHeader .sp-nav-desktop { display: none; }
    #siteHeader .sp-nav-open { display: inline-flex; }
    #siteHeader .sp-nav-brand { flex: 0 1 auto; min-width: 0; }
    #siteHeader .sp-nav-brand img { width: clamp(96px, 29vw, 150px); max-width: 100%; }
    #siteHeader .sp-nav-desktop a, #siteHeader .sp-nav-icon { color: #fff; }
#siteHeader .sp-nav-desktop a:is(:hover, [aria-current="page"]) { color: #fff; text-decoration-color: #ffd84d; }
#siteHeader .sp-navigation-row :focus-visible { outline-color: #fff; }
#siteHeader .sp-nav-book { min-height: 40px; padding: 0 12px; font-size: 13px; }
}
.sf .sf-brand img, .nl-photo-brand img { display: block; height: auto; }
.sf .sf-brand:has(img) { width: fit-content; padding: 0; background: transparent; }
body.nl-manage:has(#siteHeader) { padding: 0; display: flex; flex-direction: column; align-items: stretch; }
body.nl-manage .nl-manage-card { box-sizing: border-box; width: min(100% - 48px, 520px); margin: auto; }
@media print { #siteHeader.sp-navigation { display: none; } }
/* The existing category selector stays accessible below the site navigation. */
.pp .pp-chips { top: var(--sp-nav-height); }
.sp-aside { top: calc(var(--sp-nav-height) + 24px); }
body.view-login .split-photo, body.view-verify .split-photo {
    top: var(--sp-nav-height); height: calc(100dvh - var(--sp-nav-height));
}

#siteHeader .sp-nav-brand .sp-logo-dark,
#siteHeader.sp-past-hero .sp-nav-brand .sp-logo-light { display: none; }
#siteHeader.sp-past-hero .sp-nav-brand .sp-logo-dark { display: block; }
#siteHeader.sp-past-hero { background: #fff; color: #182535; }
#siteHeader.sp-past-hero .sp-navigation-row :is(.sp-nav-icon, .sp-nav-desktop a) { color: #182535; }
#siteHeader.sp-past-hero .sp-navigation-row .sp-nav-icon:hover { background: #eef3f8; }
#siteHeader.sp-past-hero .sp-nav-desktop a:is(:hover, [aria-current="page"]) { color: #075ac6; text-decoration-color: currentColor; }
#siteHeader.sp-past-hero .sp-navigation-row :focus-visible { outline-color: #075ac6; }

/* Undersidene: hvit header med tynn linje under, som Laundryheap. «Om oss» har også hvit bakgrunn. */
body.page-om-oss { background: #fff; }
body.is-inner #siteHeader,
body.is-inner #siteHeader.sp-scrolled { background: #fff; color: #1d232b; box-shadow: none; }
body.is-inner #siteHeader .sp-nav-brand .sp-logo-light { display: none; }
body.is-inner #siteHeader .sp-nav-brand .sp-logo-dark { display: block; }
body.is-inner #siteHeader .sp-navigation-row :is(.sp-nav-icon, .sp-nav-desktop a) { color: #1d232b; }
body.is-inner #siteHeader .sp-navigation-row .sp-nav-icon:hover { background: #f2f4f7; }
body.is-inner #siteHeader .sp-nav-desktop a:is(:hover, [aria-current="page"]) { color: #075ac6; text-decoration-color: currentColor; }
body.is-inner #siteHeader .sp-navigation-row :focus-visible { outline-color: #075ac6; }
