/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

    This file contains rules for
    STATE RULES
    that implement the UU design system specifically for Sitevision

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

.is-unstyled ul {
    list-style-type: none;
    padding: 0;
}

.is-list-with-space li:not(:last-child) {
    margin-bottom: var(--space-small);
}

.footer-site-information {
    line-height: 1.75em;
    margin: 20px 2.5% 0px;
    text-align: center;
    width: 95%;
}

.footer-site-entry:not(:last-child):after {
    content: '|';
    margin-left: 0.5em;
    margin-right: 0.5em;
}

.footer-site-information address {
    display: inline;
}

@media screen and (max-width: 767px) {
    .is-float-none-img-mobile .sv-image-portlet {
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.is-nowrap {
    white-space: nowrap;
}


/********************************

 Color states

********************************/

.is-remove-color {
    background-color: transparent;
    border-color: transparent;
}


/********************************

 Text states

********************************/

.uu-intro {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 100%;
    padding: var(--space-medium) var(--space-small);
}

/* Strong in intro should not be bolder than the intro itself */
.uu-intro strong {
    font-weight: inherit !important;
}


/********************************

 Layout for link groups

********************************/

.uu-link-group ul {
    list-style: none;
    padding: 0;
}

.uu-link-group li {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

.uu-link-group a {
    color: var(--color-text) !important;
    cursor: pointer;
    display: block;
    padding: .75rem 1.25rem;
}

.sv-nestedlistmenu-portlet .uu-link-group,
.sv-related-portlet .uu-link-group {
    color: var(--bs-card-color);
    cursor: pointer;
    flex: 1 1 auto;
    padding: 1.25rem;
    padding-bottom: var(--bs-card-cap-padding-y);
    padding-top: var(--bs-card-cap-padding-y);
}

/* Border */

.uu-link-group li,
.uu-link-group p {
    border-top: 1px solid #00000020;
}

div:has(> .card-header)+div:has(.uu-link-group) .uu-link-group li:first-child,
div:has(> .card-header)+div:has(.uu-link-group) .uu-link-group p:first-child {
    border-top: none;
}

.card-move-margin .sv-portlet:last-child .uu-link-group li,
.card-move-margin .sv-text-portlet:last-child .uu-link-group li {
    border-bottom: none;
}

.card-move-margin .sv-text-portlet:nth-child(2) .uu-link-group li:first-child {
    border-top: none;
}

.card .sv-nestedlistmenu-portlet div.uu-link-group li,
.card-move-margin .sv-text-portlet .uu-link-group li {
    border-left: none;
}

.card .uu-link-group li,
.card .sv-row .sv-column-6 .uu-link-group li {
    border-right: none;
}

.card .uu-link-group ul {
    max-width: 100%;
    border-right: none;
}

.card .uu-link-group p {
    margin-bottom: 0;
    max-width: 100%;
}


/* Align link bottom with card borders */

.card .uu-link-group {
    margin-bottom: -1.25rem;
}

.card-move-margin .sv-text-portlet:nth-child(2) .uu-link-group {
    margin-top: -1.25rem;
}

.card-move-margin .sv-text-portlet:last-child .uu-link-group {
    margin-bottom: -1.25rem;
}


/* Don't align when the list isn't last child in parent element. */

.card-move-margin .sv-text-portlet:not(:last-child) .uu-link-group {
    margin-bottom: 1.25rem;
}


/* Align links in module 'Listmeny' with left side. */

.card div.uu-link-group,
.sv-related-portlet div.uu-link-group,
.sv-nestedlistmenu-portlet div.uu-link-group {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
}


/* Align links in module 'Listmeny' with left side of card. */

.card .sv-nestedlistmenu-portlet div.uu-link-group {
    margin-bottom: -2rem;
    margin-left: -2.5rem;
    margin-right: -2.5rem;
}


/********************************

 Backgrounds

********************************/

/* Designsystemet has an issue when using full width backgrounds. It adds the background to both
   the element and its :before pseudo element, which causes the background to be darker than
   intended. This rule removes the background from the element itself, so only the :before pseudo
   element has the background. */

.is-bg-fullwidth.is-bg-light-transparent {
    background: none;
}

/********************************

 Print state

********************************/

@media print {

    .is-always-printed,
    .is-always-printed *:not(script),
    .is-always-printed * *:not(script) {
        display: block !important;
    }

    .is-never-printed,
    .is-never-printed *,
    .is-never-printed * * {
        display: none !important;
    }
}