/*
 * HomeNordic hovedmenu.
 * Desktop: kolonner af tekstlinks under menulinjen.
 * Mobil: slide-in med niveauer.
 * Ingen kategoribilleder og ingen orange.
 */
.hnm { --hnm-accent: var(--sage, #4a5c52); --hnm-head-h: 54px; font-family: var(--sans); }
.hnm ul { list-style: none; margin: 0; padding: 0; }
.hnm a { color: inherit; text-decoration: none; }
.hnm-head,
.hnm-level-head,
.hnm-next,
.hnm-top-short,
.hnm-find-mobile,
.hnm-col { display: none; }
.hnm-top-toggle { display: none; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hnm-ico { display: inline-flex; flex: none; color: var(--sage-d, #3d4d44); }
.hnm-ico .nav-ico { width: 18px; height: 18px; display: block; }
.hnm-ico-lg .nav-ico { width: 22px; height: 22px; }

#site-nav .nav-drawer-head { display: none !important; }

@media (min-width: 1081px) {
    #site-nav { padding-bottom: 0; }
    .hnm-bar {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: stretch;
        gap: 0;
        max-width: 100%;
        padding: 0 var(--edge, 6vw);
    }
    .hnm-top { position: static; display: flex; align-items: stretch; }
    .hnm-top-link {
        display: inline-flex;
        align-items: center;
        gap: .38rem;
        padding: .78rem .55rem .72rem;
        font-size: .9rem;
        font-weight: 500;
        line-height: 1.2;
        white-space: nowrap;
        color: var(--ink);
        border-radius: 8px 8px 0 0;
        position: relative;
    }
    .hnm-top-link .hnm-chev { flex: none; opacity: .55; transition: transform .18s ease; }
    .hnm-top-link:hover,
    .hnm-top.is-open > .hnm-top-link { background: var(--paper-2, #f4f3ef); }
    .hnm-top.is-open > .hnm-top-link .hnm-chev { transform: rotate(180deg); }
    .hnm-top.is-current > .hnm-top-link,
    .hnm-top-link.is-active { font-weight: 650; }
    .hnm-top.is-current > .hnm-top-link::after,
    .hnm-top-link.is-active::after {
        content: "";
        position: absolute;
        left: .7rem;
        right: .7rem;
        bottom: .28rem;
        height: 2px;
        background: var(--hnm-accent);
        border-radius: 2px;
    }
    .hnm-top-link:has(.hnm-top-short) .hnm-top-label { display: none; }
    .hnm-top-link:has(.hnm-top-short) .hnm-top-short { display: inline; }
    .hnm-top.has-panel { position: static; }
    .hnm-top-toggle {
        display: block;
        position: absolute;
        width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
        clip: rect(0 0 0 0); border: 0; background: none;
    }
    .hnm-panel {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 22px 40px rgba(28, 28, 28, .1);
        z-index: 55;
        max-height: min(72vh, 640px);
        overflow: auto;
    }
    .hnm-top.is-open > .hnm-panel { display: block; }
    .hnm-panel-inner { display: block; }
    .hnm-sheet { padding: 1.25rem var(--edge, 6vw) 1.6rem; }
    .hnm-sheet-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.15rem;
        padding-bottom: .9rem;
        border-bottom: 1px solid var(--line);
    }
    .hnm-sheet-brand { display: flex; align-items: center; gap: .85rem; min-width: 0; }
    .hnm-sheet-copy { min-width: 0; }
    .hnm-sheet-count {
        margin: 0;
        justify-self: center;
        font-size: .95rem;
        font-weight: 550;
        white-space: nowrap;
        color: var(--ink);
    }
    .hnm-sheet-title {
        margin: 0;
        font-family: var(--display, var(--sans));
        font-size: 1.15rem;
        font-weight: 600;
        letter-spacing: -.01em;
    }
    .hnm-sheet-all {
        display: inline-block;
        margin-top: .12rem;
        font-size: .86rem;
        color: var(--sage-d, #3d4d44);
        text-decoration: underline;
        text-underline-offset: 3px;
    }
    .hnm-find-wrap { justify-self: end; margin: 0; }
    .hnm-find {
        width: 15rem;
        max-width: 100%;
        border: 1px solid rgba(28, 28, 28, .16);
        background: var(--paper-2, #f4f3ef);
        color: var(--ink);
        border-radius: 999px;
        padding: .55rem .95rem;
        font: inherit;
        font-size: .9rem;
    }
    .hnm-find:focus { outline: 2px solid var(--hnm-accent); outline-offset: 1px; }
    .hnm-find-empty { margin: .4rem 0 0; color: var(--muted); font-size: .92rem; }
    .hnm-groups {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(12.4rem, 1fr));
        gap: 1.35rem 1.75rem;
        align-items: start;
    }
    .hnm-group.is-tall { grid-column: span 2; }
    .hnm-group.is-tall > .hnm-links { columns: 2; column-gap: 1.5rem; }
    .hnm-group.is-tall > .hnm-links > li { break-inside: avoid; }
    .hnm-group-title {
        display: block;
        margin: 0 0 .35rem;
        font-size: .74rem;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--muted);
    }
    a.hnm-group-title:hover { color: var(--ink); }
    .hnm-links a,
    .hnm-flat a {
        display: block;
        padding: .32rem .4rem .32rem 0;
        border-radius: 6px;
        font-size: .94rem;
        line-height: 1.3;
        color: var(--ink);
    }
    .hnm-links a:hover,
    .hnm-flat a:hover,
    .hnm-links a:focus-visible,
    .hnm-flat a:focus-visible { background: var(--paper-2, #f4f3ef); }
    .hnm-links a.is-active,
    .hnm-flat a.is-active { font-weight: 650; }
    .hnm-links .hnm-links { margin: .1rem 0 .25rem .7rem; }
    .hnm-links .hnm-links a { font-size: .86rem; color: var(--muted); padding-top: .22rem; padding-bottom: .22rem; }
    .hnm-links .hnm-links a:hover { color: var(--ink); }
    .hnm-flat > .hnm-links {
        columns: 4;
        column-gap: 1.8rem;
    }
    .hnm-flat > .hnm-links > li { break-inside: avoid; }
    .hnm-fly { display: none !important; }
}

@media (min-width: 1081px) and (max-width: 1280px) {
    .hnm-top-link { padding-left: .38rem; padding-right: .38rem; font-size: .82rem; gap: .28rem; }
    .hnm-top-link .hnm-chev { display: none; }
    .hnm-ico .nav-ico { width: 16px; height: 16px; }
    .hnm-flat > .hnm-links { columns: 3; }
}
@media (min-width: 1281px) and (max-width: 1480px) {
    .hnm-top-link { padding-left: .42rem; padding-right: .42rem; font-size: .86rem; }
}

@media (max-width: 1080px) {
    #site-nav {
        right: auto;
        width: min(88vw, 420px);
        transform: translateX(-105%);
        box-shadow: none;
    }
    #site-nav.is-open {
        transform: translateX(0);
        box-shadow: 0 0 0 100vmax rgba(28, 25, 22, .46);
    }
    body.nav-open .nav-overlay { background: transparent; }
    #site-nav .nav-drawer { padding: 0; min-height: 100%; }
    #site-nav .nav-drawer-foot { margin: 1.2rem 1.1rem 1.4rem; }
    .hnm { position: relative; }
    .hnm-sheet { display: none; }
    .hnm-col,
    .hnm-find-mobile { display: block; }
    .hnm-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 3;
        height: var(--hnm-head-h);
        padding: 0 .55rem 0 1.15rem;
        background: var(--hnm-accent);
        color: #fff;
    }
    .hnm-head-title { font-size: .95rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
    .hnm-close {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border: 0;
        background: none;
        color: #fff;
        cursor: pointer;
        border-radius: 6px;
    }
    .hnm-close:focus-visible { outline-color: #fff; }
    .hnm-top-link,
    .hnm-list a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        min-height: 3.15rem;
        padding: .7rem 1.15rem;
        border-bottom: 1px solid var(--line);
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.3;
        color: var(--ink);
    }
    .hnm-top-link { justify-content: flex-start; }
    .hnm-top-label,
    .hnm-top-short,
    .hnm-list a span { flex: 1 1 auto; }
    .hnm-top-link:has(.hnm-top-short) .hnm-top-label { display: none; }
    .hnm-top-link:has(.hnm-top-short) .hnm-top-short { display: inline; }
    .hnm-top-link .hnm-chev { display: none; }
    .hnm-next { display: block; flex: none; opacity: .55; margin-left: auto; }
    .hnm-top-link.is-active,
    .hnm-list a.is-active,
    .hnm-top.is-current > .hnm-top-link { font-weight: 700; }
    .hnm-top-link:active,
    .hnm-list a:active { background: var(--paper-2, #f4f3ef); }
    .hnm-all > a { font-weight: 700; }
    .hnm-find-mobile { padding: .75rem 1.15rem .35rem; }
    .hnm-find {
        width: 100%;
        border: 1px solid rgba(28, 28, 28, .16);
        background: var(--paper-2, #f4f3ef);
        color: var(--ink);
        border-radius: 999px;
        padding: .6rem .95rem;
        font: inherit;
        font-size: .95rem;
    }
    .hnm-find:focus { outline: 2px solid var(--hnm-accent); outline-offset: 1px; }
    .hnm-find-empty { margin: .2rem 1.15rem .8rem; color: var(--muted); font-size: .92rem; }
    .hnm-level {
        position: fixed;
        top: var(--hnm-head-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform .26s ease, visibility 0s linear .26s;
        z-index: 2;
    }
    .hnm-level.is-open {
        transform: translateX(0);
        visibility: visible;
        transition: transform .26s ease, visibility 0s;
    }
    .hnm-level .hnm-level { top: 0; z-index: 3; }
    .hnm-level-head {
        display: flex;
        align-items: center;
        gap: .35rem;
        min-height: 3.3rem;
        padding: 0 1.15rem 0 .45rem;
        border-bottom: 1px solid var(--line);
        background: var(--paper-2, #f4f3ef);
        position: sticky;
        top: 0;
        z-index: 1;
    }
    .hnm-back {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border: 0;
        background: none;
        color: var(--ink);
        cursor: pointer;
        border-radius: 6px;
    }
    .hnm-level-title { font-size: 1.05rem; font-weight: 700; }
    .hnm-count {
        margin: .85rem 1.15rem .15rem;
        font-size: .92rem;
        color: var(--muted);
    }
}

@media (max-width: 1080px) and (prefers-reduced-motion: reduce) {
    .hnm-level, .hnm-level.is-open { transition: none; }
}
