/* Guides, notes and tabs on the CMS product lists. Surfaces and accents follow the service pages and the logo;
   the notes keep the colours of the guide notes in blog.css. */
.np-listing-row {
    margin-bottom: 18px;
}

.np-listing-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.np-listing-tabs__link,
.np-listing-tabs__link:visited {
    background: #fff;
    border: 1px solid #dce5eb;
    border-radius: 999px;
    color: #0f4f75;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 18px;
    text-decoration: none;
    white-space: nowrap;
}

.np-listing-tabs__link--current,
.np-listing-tabs__link--current:visited,
.np-listing-tabs__link--current:hover {
    background: #176b9b;
    border-color: #176b9b;
    color: #fff;
}

.np-listing-stats {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: 18px;
}

.np-listing-stat {
    align-items: baseline;
    background: linear-gradient(135deg, #fafbf9, #eef4f0);
    border: 1px solid #cadbd5;
    border-radius: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    padding: 12px 20px;
}

.np-listing-stat strong {
    color: #0f4f75;
    font-size: 20px;
    line-height: 1.25;
}

.np-listing-stat span {
    color: #4c5a64;
    font-size: 13px;
}

/* Guide label under the price (owner's choice B, 2026-11-03): white card, grey band with a book, then name and summary. */
.np-listing-label,
.np-listing-label:visited {
    background: #fff;
    border: 1px solid #dde0e3;
    border-radius: 6px;
    color: #262b30;
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.np-listing-label:hover {
    color: #262b30;
    text-decoration: none;
}

.np-listing-label:hover .np-listing-label__title {
    text-decoration: underline;
}

.np-listing-label__head {
    align-items: center;
    background: #eef0f2;
    color: #5d6670;
    display: flex;
    font-size: 10.5px;
    font-weight: 600;
    gap: 7px;
    letter-spacing: .07em;
    line-height: 1.3;
    padding: 6px 10px;
    text-transform: uppercase;
}

.np-listing-label__head::before {
    background: url("../images/notes/guide-book.svg") no-repeat center / contain;
    content: "";
    flex: none;
    height: 16px;
    width: 16px;
}

.np-listing-label__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 10px 10px;
}

/* A phone column is narrow: three lines each there, two from 768 px. */
.np-listing-label__title,
.np-listing-label__text {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    overflow: hidden;
}

.np-listing-label__title {
    font-size: 13px;
    font-weight: 600;
    hyphens: auto;
    line-height: 1.32;
}

.np-listing-label__text {
    color: #5d6670;
    font-size: 12px;
    hyphens: manual;
    line-height: 1.42;
}

@media (min-width: 768px) {
    .np-listing-label__title,
    .np-listing-label__text {
        -webkit-line-clamp: 2;
    }
}

.product-label .np-listing-badge {
    white-space: nowrap;
    width: auto;
}

li.np-listing-insert {
    flex: 0 0 100%;
    list-style: none;
    max-width: 100%;
    /* Padding, since a list rule of the theme outweighs a margin here. */
    padding: 28px 0 56px;
    width: 100%;
}

.np-listing-band {
    align-items: stretch;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.np-listing-band--single {
    grid-template-columns: minmax(0, 1fr);
}

.np-listing-guide {
    background: #fff;
    border: 1px solid #dce5eb;
    border-radius: 18px;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    overflow: hidden;
}

/* Beside a note the colour of the note carries the row; a guide alone needs its own to stand out from the white products. */
.np-listing-band--single .np-listing-guide {
    background: #e4eef5;
    border-color: #c5d9e6;
}

.np-listing-guide--plain {
    grid-template-columns: minmax(0, 1fr);
}

.np-listing-guide__media {
    display: block;
    min-height: 190px;
    position: relative;
}

.np-listing-guide__media img {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.np-listing-guide__body {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px 22px;
}

.np-listing-guide__eyebrow {
    color: #0f4f75;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    margin: 0;
    text-transform: uppercase;
}

.np-listing-guide__title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.np-listing-guide__title a,
.np-listing-guide__title a:visited {
    color: #1c2730;
    text-decoration: none;
}

.np-listing-guide__title a:hover {
    text-decoration: underline;
}

.np-listing-guide__text,
.np-listing-guide__match {
    color: #3d4c57;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.np-listing-guide__match {
    font-weight: 600;
}

.np-listing-guide__button,
.np-listing-guide__button:visited,
.np-listing-guide__button:hover {
    align-self: flex-start;
    background: #176b9b;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-top: auto;
    padding: 8px 18px;
    text-decoration: none;
}

.np-listing-note {
    align-content: start;
    border: 1px solid;
    border-radius: 18px;
    display: grid;
    gap: 14px;
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 18px 20px;
}

.np-listing-note--fact {
    background: #f5f2fb;
    border-color: #ddd3ef;
}

.np-listing-note--tip {
    background: #f2f8f3;
    border-color: #cfe2d2;
}

.np-listing-note__icon {
    align-items: center;
    border-radius: 50%;
    display: flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.np-listing-note__icon::before {
    background: no-repeat center / contain;
    content: "";
    display: block;
    height: 32px;
    width: 32px;
}

.np-listing-note--fact .np-listing-note__icon {
    background: #e8dff6;
}

.np-listing-note--fact .np-listing-note__icon::before {
    background-image: url("../images/notes/fakta-lyspaere-krets.svg");
}

.np-listing-note--tip .np-listing-note__icon {
    background: #d9ecdc;
}

.np-listing-note--tip .np-listing-note__icon::before {
    background-image: url("../images/notes/tips-fastnokkel-gnist.svg");
}

.np-listing-note strong {
    color: #1c2730;
    display: block;
    font-size: 15px;
    margin-bottom: 5px;
}

.np-listing-note p {
    color: #2b3640;
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 7px;
}

.np-listing-note a,
.np-listing-note a:visited {
    color: #0f4f75;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
}

.np-listing-categories {
    border-bottom: 1px solid #dce5eb;
    border-top: 1px solid #dce5eb;
    padding: 18px 0;
}

.np-listing-band + .np-listing-categories {
    margin-top: 28px;
}

.np-listing-categories__title {
    color: #1c2730;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px;
}

.np-listing-categories__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.np-listing-pill,
.np-listing-pill:visited {
    background: #fff;
    border: 1px solid #dce5eb;
    border-radius: 999px;
    color: #0f4f75;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 15px;
    text-decoration: none;
    white-space: nowrap;
}

/* The brand module's stylesheet loads after this one: the body class gives these rules the upper hand. */
body.np-brand-page .ambrands-brandlist-widget .content {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 8px 0 34px;
}

body.np-brand-page .ambrands-letters-list,
body.np-brand-page .ambrands-letters-list .ambrands-letter,
body.np-brand-page .ambrands-letter .ambrands-content {
    display: contents;
}

body.np-brand-page .ambrands-letter .ambrands-title {
    display: none;
}

body.np-brand-page .ambrands-content .ambrands-brand-item {
    list-style: none;
    margin: 0;
    max-width: none;
    min-width: 0;
    width: auto;
}

body.np-brand-page .ambrands-brand-item .ambrands-inner {
    align-items: flex-start;
    background: #fff;
    border: 1px solid #dce5eb;
    border-radius: 18px;
    box-shadow: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 3px;
    height: 100%;
    justify-content: center;
    max-width: none;
    min-height: 0;
    padding: 14px 16px;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

body.np-brand-page .ambrands-brand-item .ambrands-inner:hover {
    border-color: #0f4f75;
}

body.np-brand-page .ambrands-brand-item .ambrands-label {
    color: #1c2730;
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    max-width: 100%;
    padding: 0;
    position: static;
    text-align: left;
    white-space: normal;
    word-break: normal;
}

.np-brand-facts {
    color: #4c5a64;
    font-size: 13px;
    line-height: 1.35;
}

.np-brand-focus {
    margin: 0 0 40px;
}

.np-brand-focus__head {
    align-items: center;
    background: linear-gradient(135deg, #fafbf9, #eef4f0);
    border: 1px solid #cadbd5;
    border-radius: 24px;
    color: #17222b;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 26px 30px;
}

.np-brand-focus__head > div {
    max-width: 100%;
    min-width: 0;
}

.np-brand-focus__eyebrow {
    color: #0f4f75;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.25px;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.np-brand-focus__name {
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -.6px;
    line-height: 1.2;
    margin: 0 0 6px;
}

.np-brand-focus__name a,
.np-brand-focus__name a:visited,
.np-brand-focus__name a:hover {
    color: #222;
    text-decoration: none;
}

.np-brand-focus__summary {
    color: #5a6873;
    font-size: 15px;
    margin: 0;
}

.np-brand-focus__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.np-brand-focus__pill,
.np-brand-focus__pill:visited {
    background: #fff;
    border: 1px solid #dce5eb;
    border-radius: 999px;
    color: #0f4f75;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 13px;
    text-decoration: none;
    white-space: nowrap;
}

.np-brand-focus__pill:hover {
    border-color: #176b9b;
    color: #0f4f75;
}

.np-brand-focus__button,
.np-brand-focus__button:visited,
.np-brand-focus__button:hover {
    background: #176b9b;
    border-radius: 999px;
    color: #fff;
    flex: none;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 22px;
    text-decoration: none;
}

.np-brand-focus__guides {
    display: grid;
    gap: 16px;
    margin-top: 12px;
}

@media (max-width: 1100px) {
    .np-listing-band {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .np-listing-tabs {
        gap: 5px;
    }

    .np-listing-tabs__link,
    .np-listing-tabs__link:visited {
        flex: 1 1 auto;
        font-size: 12.5px;
        padding: 7px 6px;
        text-align: center;
    }

    .np-listing-stats {
        gap: 8px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 14px;
    }

    .np-listing-stat {
        display: block;
        min-width: 0;
        padding: 8px 6px;
        text-align: center;
    }

    .np-listing-stat strong {
        display: block;
        font-size: 16px;
    }

    .np-listing-stat span {
        display: block;
        font-size: 11.5px;
        line-height: 1.25;
    }

    .product-label .np-listing-badge {
        font-size: 11px;
        padding: 3px 7px;
    }

    li.np-listing-insert {
        padding: 16px 0 34px;
    }

    .np-listing-band {
        gap: 12px;
        grid-template-columns: minmax(0, 1fr);
    }

    .np-listing-guide {
        grid-template-columns: minmax(0, 1fr);
    }

    .np-listing-guide__media {
        min-height: 150px;
    }

    .np-listing-guide__body {
        padding: 14px 16px 16px;
    }

    .np-listing-guide__title {
        font-size: 17px;
    }

    .np-listing-guide__button {
        margin-top: 4px;
    }

    .np-listing-note {
        gap: 12px;
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 14px;
    }

    .np-listing-note__icon {
        height: 36px;
        width: 36px;
    }

    .np-listing-note__icon::before {
        height: 26px;
        width: 26px;
    }

    .np-listing-categories__links {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    body.np-brand-page .ambrands-brandlist-widget .content {
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 24px;
    }

    body.np-brand-page .ambrands-brand-item .ambrands-inner {
        padding: 11px 12px;
    }

    .np-brand-focus__head {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 14px;
        padding: 20px 18px;
    }

    .np-brand-focus__name {
        font-size: 25px;
    }

    .np-brand-focus__pills {
        flex-wrap: nowrap;
        margin-right: -18px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .np-brand-focus__button {
        text-align: center;
    }
}

/* Narrow phones: four tabs fit one line, the fifth and later are left out (the current page always shows). */
@media (max-width: 429px) {
    .np-listing-tabs > .np-listing-tabs__link:nth-child(n+5):not(.np-listing-tabs__link--current),
    .np-listing-tabs:has(> .np-listing-tabs__link:nth-child(n+5).np-listing-tabs__link--current) > .np-listing-tabs__link:nth-child(4) {
        display: none;
    }
}
