@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

body {
    --mud-palette-text-primary: initial;
    --mud-typography-default-family: initial;
    --mud-typography-default-size: initial;
    --mud-typography-default-weight: initial;
    --mud-typography-default-lineheight: initial;
    --mud-typography-default-letterspacing: initial;
    --mud-typography-default-text-transform: initial;
    --mud-palette-background: initial;
}

/*
<-.(`-')  (`-')  _  (`-').->(`-')  _     (`-').->(`-')                         (`-')  _ (`-').-> 
 __( OO)  (OO ).-/  ( OO)_  ( OO).-/     ( OO)_  ( OO).->       .->     <-.    ( OO).-/ ( OO)_   
'-'---.\  / ,---.  (_)--\_)(,------.    (_)--\_) /    '._   ,--.'  ,-.,--. )  (,------.(_)--\_)  
| .-. (/  | \ /`.\ /    _ / |  .---'    /    _ / |'--...__)(`-')'.'  /|  (`-') |  .---'/    _ /  
| '-' `.) '-'|_.' |\_..`--.(|  '--.     \_..`--. `--.  .--'(OO \    / |  |OO )(|  '--. \_..`--.  
| /`'.  |(|  .-.  |.-._)   \|  .--'     .-._)   \   |  |    |  /   /)(|  '__ | |  .--' .-._)   \ 
| '--'  / |  | |  |\       /|  `---.    \       /   |  |    `-/   /`  |     |' |  `---.\       / 
`------'  `--' `--' `-----' `------'     `-----'    `--'      `--'    `-----'  `------' `-----'  
*/


select {
    padding: 10px;
    min-height: 2.5em;
    background-color: var(--form-field-background-color);
    font-weight: 600;
    color: var(--form-field-text-color);
    border-radius: 4px;
    border: none;
}

input, select {
    --form-field-background-color: #f1f1f1;
}

.form-check--required label:after {
    content: "*";
    color: var(--error-color);
    font-weight: bold;
    font-size: 1rem;
    padding: 0 5px;
}

    input[type=number]::-webkit-inner-spin-button,
    input[type=number]::-webkit-outer-spin-button {
        appearance: none;
        margin: 0;
    }

/* Fixes scroll for anchor links */
[id] {
    scroll-margin-top: 220px;
    scroll-snap-margin-top: 220px;
}

@media (max-width: 1079px) {
    [id] {
        scroll-margin-top: 120px;
        scroll-snap-margin-top: 120px;
    }
}

/* Fixes styles text components */
main a:not([class]) {
    position: relative;
    box-shadow: 0 -1rem 0 #edf4ff inset;
    padding-bottom: 2px;
}

    main a:not([class]):hover {
        color: #000;
        border-bottom: 1px solid #000;
    }

.btn {
    margin: 0;
    border-radius: 0;
}

main ul:not([class]) {
    list-style: none;
    padding-left: 0;
}

    main ul:not([class]) li {
        padding-left: 35px;
        position: relative;
        margin-bottom: 20px;
    }

        main ul:not([class]) li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 5px;
            background-color: #e3ba2f;
            border: 3px solid white;
            border-radius: 100%;
            height: 16px;
            width: 16px;
        }


main ol:not([class]) {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 1rem;
}

    main ol:not([class]) li {
        counter-increment: sl-numeric-counter;
        padding-left: 4ch;
        position: relative;
    }

        main ol:not([class]) li::before {
            position: absolute;
            text-align: right;
            width: 3ch;
            left: 0px;
            top: 0px;
            content: counter(sl-numeric-counter) ". ";
            font-weight: 600;
            color: #e3ba2f;
        }

main ol ol:not([class]) {
    counter-reset: sl-alphabet-counter;
}

    main ol ol:not([class]) li {
        counter-increment: sl-alphabet-counter;
    }

        main ol ol:not([class]) li:before {
            content: counter(sl-alphabet-counter, lower-alpha) ". ";
        }


/* Random inline links stuff, possibly delete. */
.inline-links .input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

    .inline-links .input-container .form-check {
        margin: 0;
    }

        .inline-links .input-container .form-check input {
            display: none;
        }

        .inline-links .input-container .form-check label {
            position: relative;
        }

            .inline-links .input-container .form-check label:after {
                content: '';
                background: #e3ba2f;
                position: absolute;
                bottom: -10px;
                left: 0px;
                right: 0;
                height: 3px;
                width: 0%;
                transition: all 1s ease-in-out;
            }

        .inline-links .input-container .form-check input:checked + label {
            font-weight: bold;
        }

            .inline-links .input-container .form-check input:checked + label:after, .inline-links .input-container .form-check:hover label:after {
                width: 100%;
            }

/*
                     <-. (`-')   _  (`-')           <-. (`-')_  (`-')  _<-. (`-')_ (`-')      (`-').-> 
 _             .->      \(OO )_  \-.(OO )     .->      \( OO) ) ( OO).-/   \( OO) )( OO).->   ( OO)_   
 \-,-----.(`-')----. ,--./  ,-.) _.'    \(`-')----. ,--./ ,--/ (,------.,--./ ,--/ /    '._  (_)--\_)  
  |  .--./( OO).-.  '|   `.'   |(_...--''( OO).-.  '|   \ |  |  |  .---'|   \ |  | |'--...__)/    _ /  
 /_) (`-')( _) | |  ||  |'.'|  ||  |_.' |( _) | |  ||  . '|  |)(|  '--. |  . '|  |)`--.  .--'\_..`--.  
 ||  |OO ) \|  |)|  ||  |   |  ||  .___.' \|  |)|  ||  |\    |  |  .--' |  |\    |    |  |   .-._)   \ 
(_'  '--'\  '  '-'  '|  |   |  ||  |       '  '-'  '|  | \   |  |  `---.|  | \   |    |  |   \       / 
   `-----'   `-----' `--'   `--'`--'        `-----' `--'  `--'  `------'`--'  `--'    `--'    `-----'
Classes that are added to component styles to change their look/behaviour
*/

/* Text component styles */
.primary-color, .primary-color > * {
    color: var(--primary-color);
}

/* Paragraph component styles */
.paragraph--big {
    font-weight: 600;
    font-size: 20px;
}

.sl-alpha-list ol:not([class]) li::before {
    content: counter(sl-numeric-counter, lower-alpha) ". ";
}

.check-mark p {
    display: flex;
    gap: .75rem;
    align-items: baseline;
    line-height: 150%;
    font-size: 85%;
}

    .check-mark p:before {
        content: "";
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        background-image: url('data:image/svg+xml;utf8, <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><g><path d="M19.707 2.95a1 1 0 0 0-1.414 0L6.313 14.93l-4.606-4.605A1 1 0 1 0 .293 11.74l5.312 5.312a1 1 0 0 0 1.414 0L19.707 4.364a1 1 0 0 0 0-1.415z" fill="rgb(227,186,47)"/></g><defs><clipPath id="clip0"><path fill="rgb(255,255,255)" d="M0 0h20v20H0z"/></clipPath></defs></svg>');
    }


/* Header component styles */
:is(h1, h2, h3, h4, h5, h6).inline {
    margin-top: 1.25em;
    margin-bottom: 0.5em;
}

h2.slim {
    font-size: 60px;
    font-weight: 300;
    color: #4d4d4d;
}
@media (max-width: 575.98px) {
    h2.slim {
        font-size: 2rem;
    }
}


/* Veva Forms */
.sl-inline-links .input-container {
    display: flex;
    gap: 1rem;
}

.show.show-percentage .input-container:after {
    content: "%";
}

.show.show-currency .input-container:after {
    content: "kr";
}

.show .input-container {
    position: relative;
}

    .show .input-container:after {
        position: absolute;
        display: inline-flex;
        align-items: center;
        height: 100%;
        font-size: 110%;
        right: 0.8rem;
        font-weight: bold;
        color: #696969;
        /* Override default error styles */
        mask-image: none !important;
        background-color: inherit !important;
    }

/* Veva Table component styles */
.sl-cost-table p {
    margin: 0;
}

.sl-cost-table td {
    border-bottom: 2px solid #e3ba2f;
}

    .sl-cost-table td:last-child {
        text-align: right;
    }

.sl-interest-table p,
.sl-interest-table ol {
    margin: 0;
}

.sl-interest-table td,
.sl-interest-table th {
    border-bottom: 1px solid #e3ba2f;
}
/* Component group with child link styles */
.sl-arrow-list a {
    gap: .5rem;
    letter-spacing: 0 !important;
}

    .sl-arrow-list a:hover {
        gap: .75rem;
    }
/* Image component styles */
.sl-image-auto-width img.asset-item-image {
    width: auto;
}
/* In one of the news card styles on frontpage */
.clamped-header {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    line-height: 1.5;
    height: calc(3em * 1.5);
    -webkit-box-orient: vertical;
    margin-bottom: 0;
}

.clamped-paragraph p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    margin-bottom: 0;
}
/* For splide slider component but added on page section parent */
.sl-slider {
    position: relative;
}

    .sl-slider::after {
        content: "";
        display: block;
        width: 100vw;
        height: 100%;
        background-color: var(--primary-color);
        right: 100%;
        top: 0;
        position: absolute;
        z-index: 1;
    }

    .sl-slider .sl-block-link {
        padding-right: 2rem;
    }

    .sl-slider .card {
        justify-content: center;
    }

        .sl-slider .card .card-content {
            flex-grow: 0 !important;
        }


    .sl-slider .splide__pagination {
        bottom: -2.5rem;
    }

    .sl-slider .splide__pagination__page.is-active {
        background: #939598;
        transform: scale(1.6);
    }

    .sl-slider .splide__pagination__page {
        margin: 8px;
        transform: scale(1.2);
    }

    .sl-slider .slider-title p {
        font-weight: bold;
        font-size: 110%;
        line-height: 1;
        margin: 0;
    }

    .sl-slider .slider-text p {
        font-weight: bold;
        text-wrap: nowrap;
        margin: 0;
    }

@media (max-width: 799px) {
    .sl-slider .slider-title p {
        font-size: 100%;
    }

    .sl-slider .slider-text p {
        font-size: 80%;
    }
}
/* Wrapper for table of content component */

.sl-acceptance .veva-page-outline-content-tree a {
    box-shadow: none ;
}

.sl-acceptance .veva-page-outline-content-tree a:hover {
    border-bottom: none ;
}


.sl-acceptance .sticky-column-aside-content {
    top: 12rem ;
}

.sl-acceptance .veva-page-outline-content {
    max-height: calc(100vh - 60px - 14rem) ;
    overflow: auto ;
    padding: 1.5rem;
    box-shadow: 0 0 18px -8px #0000009c;
    border-radius: 0.25rem;
}


.sl-acceptance .sticky-column {
    gap: 2rem ;
}

.sl-acceptance .sticky-column > aside {
    grid-column: 9 / 13;
    grid-row: 1;
}

.sl-acceptance .sticky-column > section {
    grid-column: 1 / 9;
    display: grid;
    gap: 1rem;
    font-size: 18px;
}

.sl-acceptance .sticky-column > section p {
    margin: 0;
}


/* Mannauðir cards component */
.sl-people-list .card {
    padding-block: 0.75rem;
}

.sl-people-list p {
    margin: 0;
}
/*
 (`-').->(`-')                         (`-')  _                _     (`-')      (`-')  _ (`-').-> 
 ( OO)_  ( OO).->       .->     <-.    ( OO).-/       <-.     (_)    (OO )_.->  ( OO).-/ ( OO)_   
(_)--\_) /    '._   ,--.'  ,-.,--. )  (,------.    (`-')-----.,-(`-')(_| \_)--.(,------.(_)--\_)  
/    _ / |'--...__)(`-')'.'  /|  (`-') |  .---'    (OO|(_\---'| ( OO)\  `.'  /  |  .---'/    _ /  
\_..`--. `--.  .--'(OO \    / |  |OO )(|  '--.      / |  '--. |  |  ) \    .') (|  '--. \_..`--.  
.-._)   \   |  |    |  /   /)(|  '__ | |  .--'      \_)  .--'(|  |_/  .'    \   |  .--' .-._)   \ 
\       /   |  |    `-/   /`  |     |' |  `---.      `|  |_)  |  |'->/  .'.  \  |  `---.\       / 
 `-----'    `--'      `--'    `-----'  `------'       `--'    `--'  `--'   '--' `------' `-----'  
Everyting that directly modifies component style
*/

.card-photo {
    display: block;
}   

.form-group .form-group-file label {
    padding-bottom: .5rem;
}

.form-group:has(.form-group-file) {
    display: grid;
    gap: .5rem;
}

.radio-checkbox-list label {
    padding-bottom: 0;
}

.radio-checkbox-list .form-check {
    padding-bottom: 1rem;
}

/*
    Fixes janky collapse panel, adds nice line on left
*/
.collapse-panel h4 {
    margin: 0 !important;
    font-size: 1.2em;
    font-weight: 600;
    color: #000;
}

.collapse-panel .collapse-panel-content-inner {
    padding-left: 1rem;
}

.collapse-panel-content {
    position: relative;
    padding-left: 2.4rem;
}

.collapse-panel-content:after {
    display: block;
    height: 100%;
    width: 2px;
    content: "";
    position: absolute;
    background-color: #e3ba2f;
    left: 20px;
}

.collapse-panel-icon {
    color: #e3ba2f;
}

.collapse-panel-content-inner .veva-paragraph:last-child p {
    margin-bottom: 0;
}
/*
    Styling for inline document buttons
    Kinda wild fix but it works...
*/
.flex-list[style=";;;gap:2"] {
    margin-top: 2rem;
    gap: 1rem;
}

    .flex-list[style=";;;gap:2"] .flex-list-item {
        flex: 0 !important;
    }
/* Fixes Veva tab buttons not beeing full width */
.veva-tabs-tab-list .veva-tabs-link {
    width: 100%;
}
/* Fix for VDS buttons inside sl hero banner */
.sl-hero__content .vds-button {
    justify-content: space-between;
}

    .sl-hero__content .vds-button i {
        transition: transform .3s;
    }

    .sl-hero__content .vds-button:hover i {
        transform: translateX(0.5ch);
    }

.scroll-position--scrolled header {
    box-shadow: 0 0 2px 0 #cdcdcd;
}
/* Changes card elevation, this is self explanatory. */
.card--elevate-low::after {
    --shadow-color: #00000030;
}

t
/* Fix VDS button letter spacing */
.vds-button-link {
    letter-spacing: normal;
}

/*  Adds small line when page is scrolled */
header {
    transition: box-shadow .3s ease-in-out;
}

footer p {
    margin-bottom: 0;
}

/* Fixed footer styling */
footer .page-section-wrapper {
    font-size: 16px;
    max-width: 1120px;
}

footer .svg-icon svg {
    width: 30px;
    height: 30px;
}

footer .icon-guy .svg-icon svg {
    width: 26px;
    height: 26px;
}


a:has(.fa-chevron-right) i {
    transition: transform .3s;
}
/* Fix link hover effect */
a:has(.fa-chevron-right):hover i {
    transform: translateX(0.5ch);
}

.form-control {
    padding: 11px 16px 12px;
    min-height: 2.5em;
    gap: 10px;
    color: var(--form-field-text-color);
    background-color: #f1f1f1;
    border-radius: 4px;
    width: 100%;
    font-weight: 600;
}
