
/* nm-category-stack-v2 – NordicMix TEST */
.nm-category-stack {
    --nm-stack-ink: #14323D;
    --nm-stack-soft: #C4D7E0;
    --nm-stack-green: #2E7D32;
    padding: 48px 0 0;
    overflow: visible !important;
}

.nm-category-intro {
    max-width: 850px;
    margin: 0 auto 65px;
    text-align: center;
    padding: 0 20px;
}

.nm-category-intro span,
.nm-category-kicker {
    color: #2E7D32;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.nm-category-intro h2 {
    color: #14323D;
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: clamp(36px, 5vw, 66px);
    line-height: 1.12;
    margin: 18px 0;
}

.nm-category-intro p {
    color: #506873;
    font-size: 17px;
}

.nm-category-stage {
    position: sticky;
    top: 85px;
    margin: 0 auto;
    padding-bottom: 0;
    width: min(100%, 1200px);
}

.nm-category-stage:not(:last-of-type) {
    margin-bottom: 0;
}

.nm-category-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: min(680px, calc(100vh - 110px));
    min-height: 470px;
    overflow: hidden;
    border-radius: 20px;
    background: #C4D7E0;
    color: #14323D;
    box-shadow: 0 12px 45px rgba(20,50,61,.16);
}

.nm-category-stage:nth-of-type(even) .nm-category-panel {
    background: #EBF0F2;
}

.nm-category-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 3.5vw, 52px);
    min-width: 0;
    min-height: 0;
}

.nm-category-info h3 {
    font-family: Georgia, serif;
    font-size: clamp(31px, 3.7vw, 56px);
    font-weight: 400;
    line-height: 1.12;
    margin: 16px 0 8px;
    overflow-wrap: anywhere;
}

.nm-category-subtitle {
    color: #49616C;
    font-size: 14px;
    margin: 0 0 22px;
}

.nm-category-people {
    overflow-y: auto;
    min-height: 0;
    max-height: 340px;
    padding-right: 8px;
    scrollbar-width: thin;
}

.nm-category-person {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid rgba(20,50,61,.18);
}

.nm-category-person-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.nm-category-person-info strong {
    font-size: 17px;
    overflow-wrap: anywhere;
}

.nm-category-person-info small {
    color: #49616C;
    font-size: 12px;
}

.nm-category-person-button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 10px;
    background: #2E7D32;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    min-height: 44px;
}

.nm-category-person-button:hover {
    background: #256728;
}

.nm-category-person-button:focus-visible {
    outline: 3px solid #14323D;
    outline-offset: 3px;
}

.nm-category-photo {
    position: relative;
    min-height: 0;
    background: #B6CDD5;
    overflow: hidden;
}

.nm-category-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nm-category-photo-empty {
    height: 100%;
    display: grid;
    place-items: center;
    color: #14323D;
    font-size: 28px;
}

.nm-category-photo-label {
    position: absolute;
    left: 22px;
    bottom: 22px;
    right: 22px;
    padding: 13px 17px;
    border-radius: 12px;
    background: rgba(255,255,255,.92);
    color: #14323D;
    font-weight: 700;
}

.nm-category-empty {
    padding: 50px 20px;
    text-align: center;
}

@media (max-width: 800px) {
    .nm-category-stage {
        position: relative;
        top: auto;
        margin-bottom: 24px !important;
    }

    .nm-category-panel {
        height: auto;
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .nm-category-photo {
        order: -1;
        height: 280px;
    }

    .nm-category-info {
        padding: 28px 22px;
    }

    .nm-category-people {
        max-height: none;
        overflow: visible;
    }

    .nm-category-person {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nm-category-stage {
        position: relative;
        top: auto;
        margin-bottom: 24px !important;
    }
}


/* nm-sticky-overlap-v3 */
.nm-category-stack {
    overflow: visible !important;
}

.nm-category-stage {
    position: sticky;
    top: 85px;
    z-index: var(--nm-stage-order);
    margin-bottom: 0 !important;
}

.nm-category-stage .nm-category-panel {
    position: relative;
    width: 100%;
}

@media (max-width: 800px) {
    .nm-category-stage {
        position: relative;
        top: auto;
        z-index: auto;
    }
}


/* nm-category-badge-polish-v1 */
.nm-category-media,
.nm-category-visual,
.nm-category-image,
.nm-stack-media {
    position: relative;
}

.nm-category-panel .nm-category-tag,
.nm-category-panel .nm-category-label,
.nm-category-panel .nm-category-chip,
.nm-category-panel .nm-category-badge,
.nm-stack-item .nm-category-tag,
.nm-stack-item .nm-category-label,
.nm-stack-item .nm-category-chip,
.nm-stack-item .nm-category-badge {
    position: absolute;
    left: 24px;
    bottom: 24px;
    right: auto;
    z-index: 4;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    width: auto;
    min-width: 160px;
    max-width: calc(100% - 48px);
    padding: 14px 18px 15px;
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(196,215,224,.95);
    box-shadow: 0 14px 30px rgba(20,50,61,.14);
    color: #14323D;
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 800;
    line-height: 1.15;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nm-category-panel .nm-category-tag::before,
.nm-category-panel .nm-category-label::before,
.nm-category-panel .nm-category-chip::before,
.nm-category-panel .nm-category-badge::before,
.nm-stack-item .nm-category-tag::before,
.nm-stack-item .nm-category-label::before,
.nm-stack-item .nm-category-chip::before,
.nm-stack-item .nm-category-badge::before {
    content: "Kategori";
    display: block;
    color: #2E7D32;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1;
}

.nm-category-panel .nm-category-tag:empty,
.nm-category-panel .nm-category-label:empty,
.nm-category-panel .nm-category-chip:empty,
.nm-category-panel .nm-category-badge:empty,
.nm-stack-item .nm-category-tag:empty,
.nm-stack-item .nm-category-label:empty,
.nm-stack-item .nm-category-chip:empty,
.nm-stack-item .nm-category-badge:empty {
    display: none;
}

@media (max-width: 900px) {
    .nm-category-panel .nm-category-tag,
    .nm-category-panel .nm-category-label,
    .nm-category-panel .nm-category-chip,
    .nm-category-panel .nm-category-badge,
    .nm-stack-item .nm-category-tag,
    .nm-stack-item .nm-category-label,
    .nm-stack-item .nm-category-chip,
    .nm-stack-item .nm-category-badge {
        left: 16px;
        bottom: 16px;
        min-width: 0;
        max-width: calc(100% - 32px);
        padding: 12px 14px 13px;
        border-radius: 14px;
        font-size: 16px;
    }

    .nm-category-panel .nm-category-tag::before,
    .nm-category-panel .nm-category-label::before,
    .nm-category-panel .nm-category-chip::before,
    .nm-category-panel .nm-category-badge::before,
    .nm-stack-item .nm-category-tag::before,
    .nm-stack-item .nm-category-label::before,
    .nm-stack-item .nm-category-chip::before,
    .nm-stack-item .nm-category-badge::before {
        font-size: 10px;
    }
}


/* nm-category-photo-label-v4 */
.nm-category-panel .nm-category-photo-label {
    position: absolute;
    left: 24px;
    bottom: 24px;
    right: auto;
    z-index: 5;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;

    width: max-content;
    min-width: 190px;
    max-width: calc(100% - 48px);

    padding: 17px 22px;
    border-radius: 16px;

    background: rgba(255,255,255,.96);
    border: 1px solid #C4D7E0;
    box-shadow: 0 10px 30px rgba(20,50,61,.16);

    color: #14323D;
    font-size: clamp(20px,2vw,27px);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.nm-category-panel .nm-category-photo-label::before {
    content: "KATEGORI";
    display: block;
    color: #2E7D32;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
    line-height: 1.2;
}

@media (max-width: 800px) {
    .nm-category-panel .nm-category-photo-label {
        left: 16px;
        bottom: 16px;
        min-width: 0;
        max-width: calc(100% - 32px);
        padding: 13px 17px;
        font-size: 19px;
    }
}


/* nm-category-badge-compact-v5 */
.nm-category-panel .nm-category-photo-label {
    left: 18px;
    bottom: 18px;
    right: auto;
    width: max-content;
    min-width: 0;
    max-width: calc(100% - 36px);
    padding: 9px 13px 10px;
    gap: 3px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
    box-shadow: 0 5px 15px rgba(20,50,61,.12);
}

.nm-category-panel .nm-category-photo-label::before {
    font-size: 9px;
    letter-spacing: .12em;
    line-height: 1.1;
}

@media (max-width: 800px) {
    .nm-category-panel .nm-category-photo-label {
        left: 12px;
        bottom: 12px;
        max-width: calc(100% - 24px);
        padding: 8px 11px;
        font-size: 14px;
    }
}


/* nm-category-section-bottom-space-v7 */
/* Luft mellem sidste kategorikort og næste afsnit */
.nm-category-stack {
    padding-bottom: 80px !important;
}

@media (max-width: 800px) {
    .nm-category-stack {
        padding-bottom: 44px !important;
    }
}


/* nm-category-provider-cards-v1 */
.nm-category-people {
    display: grid;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    padding: 3px 6px 3px 0;
}

.nm-category-person {
    display: grid;
    grid-template-columns: 54px minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(20,50,61,.12);
    border-radius: 13px;
    background: rgba(255,255,255,.78);
}

.nm-category-person-image {
    width: 54px;
    height: 62px;
    object-fit: cover;
    border-radius: 9px;
    display: block;
    background: #D3E0E6;
}

.nm-category-person-placeholder {
    display: grid;
    place-items: center;
    color: #14323D;
    font-size: 13px;
    font-weight: 800;
}

.nm-category-person-info {
    min-width: 0;
    gap: 3px;
}

.nm-category-person-info strong {
    font-size: 14px;
    line-height: 1.3;
}

.nm-category-person-info small {
    font-size: 11px;
}

.nm-category-person-button {
    padding: 10px 12px;
    font-size: 12px;
    white-space: nowrap;
}

.nm-category-extra {
    display: none;
}

.nm-category-extra.is-revealed {
    display: grid;
}

.nm-category-show-all {
    margin-top: 14px;
    padding: 11px 16px;
    border: 1px solid #2E7D32;
    border-radius: 10px;
    background: #FFFFFF;
    color: #2E7D32;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.nm-category-show-all:hover {
    background: #EBF0F2;
}

.nm-category-show-all:focus-visible {
    outline: 3px solid #14323D;
    outline-offset: 3px;
}

@media (max-width: 800px) {
    .nm-category-people {
        max-height: none;
        overflow: visible;
    }

    .nm-category-person {
        grid-template-columns: 48px minmax(0,1fr);
    }

    .nm-category-person-image {
        width: 48px;
        height: 56px;
    }

    .nm-category-person-button {
        grid-column: 2;
        justify-self: start;
    }
}


/* nm-category-split-layout-v8 */
.nm-category-panel {
    grid-template-columns: 42% 58%;
}

.nm-category-info {
    justify-content: center;
    padding: clamp(28px, 4vw, 64px);
}

.nm-category-intro-text {
    color: #365562;
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.75;
    max-width: 34ch;
    margin: 22px 0 0;
}

.nm-category-providers-side {
    background: #EBF0F2;
    padding: clamp(20px, 3vw, 42px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 0;
}

.nm-category-providers-head {
    margin-bottom: 20px;
}

.nm-category-providers-head span {
    color: #2E7D32;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.nm-category-providers-head h4 {
    margin: 8px 0 0;
    font-size: clamp(20px, 2.2vw, 29px);
    line-height: 1.2;
    color: #14323D;
}

.nm-category-providers-side .nm-category-people {
    max-height: min(400px, 52vh);
    overflow-y: auto;
}

.nm-category-providers-side .nm-category-show-all {
    align-self: flex-start;
}

@media (max-width: 800px) {
    .nm-category-panel {
        grid-template-columns: 1fr;
    }

    .nm-category-info {
        padding: 30px 24px 20px;
    }

    .nm-category-providers-side {
        padding: 24px;
    }

    .nm-category-providers-side .nm-category-people {
        max-height: none;
        overflow: visible;
    }
}


/* nm-category-alternate-colors-v10 */

/* Ulige kategorier */
.nm-category-stage.nm-category-odd .nm-category-info {
    background: #C4D7E0;
}
.nm-category-stage.nm-category-odd .nm-category-providers-side {
    background: #EBF0F2;
}

/* Lige kategorier */
.nm-category-stage.nm-category-even .nm-category-info {
    background: #EBF0F2;
}
.nm-category-stage.nm-category-even .nm-category-providers-side {
    background: #C4D7E0;
}

/* Ensartede hvide behandlerkort */
.nm-category-panel .nm-category-person {
    background: #FFFFFF;
    border: 1px solid rgba(20,50,61,.12);
}


/* nm-category-mobile-polish-v11 */

/* Tydelige farveskift, også ved overlappende paneler */
.nm-category-stage.nm-category-odd .nm-category-info {
    background: #C4D7E0 !important;
}

.nm-category-stage.nm-category-odd .nm-category-providers-side {
    background: #EBF0F2 !important;
}

.nm-category-stage.nm-category-even .nm-category-info {
    background: #EBF0F2 !important;
}

.nm-category-stage.nm-category-even .nm-category-providers-side {
    background: #C4D7E0 !important;
}

/* Samme pæne, læsbare behandlerkort */
.nm-category-providers-side .nm-category-person {
    background: #FFFFFF;
    border: 1px solid rgba(20,50,61,.12);
}

/* Bedre læsbarhed og luft på mobil */
@media (max-width: 800px) {
    .nm-category-stack .nm-category-stage {
        position: relative !important;
        top: auto !important;
        margin-bottom: 32px !important;
        z-index: auto !important;
    }

    .nm-category-stack .nm-category-panel {
        height: auto !important;
        min-height: 0 !important;
        border-radius: 18px;
        overflow: hidden;
    }

    .nm-category-stack .nm-category-info {
        padding: 34px 24px 30px !important;
    }

    .nm-category-stack .nm-category-info h3 {
        margin: 14px 0 18px !important;
    }

    .nm-category-stack .nm-category-intro-text {
        margin-top: 0;
        line-height: 1.7;
    }

    .nm-category-stack .nm-category-providers-side {
        padding: 28px 24px 32px !important;
    }

    .nm-category-stack .nm-category-providers-head {
        margin-bottom: 18px;
    }

    .nm-category-stack .nm-category-person {
        padding: 14px !important;
    }
}

@media (max-width: 480px) {
    .nm-category-stack .nm-category-stage {
        margin-bottom: 26px !important;
    }

    .nm-category-stack .nm-category-info {
        padding: 28px 20px 26px !important;
    }

    .nm-category-stack .nm-category-providers-side {
        padding: 24px 20px 28px !important;
    }
}

