/* Celqorimavellia site refinements, kept separate from original theme. */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
}

#hjem-meny {
    z-index: 1090;
}

#hjem-meny .navbar .container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

#hjem-meny .navbar-brand {
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#hjem-meny .navbar-caption {
    overflow-wrap: anywhere;
}

#hjem-meny .navbar-toggler {
    flex: 0 0 auto;
    order: initial !important;
    position: relative;
    z-index: 1102;
}

#hjem-meny .navbar-collapse {
    z-index: 1095 !important;
}

#hjem-meny .navbar .navbar-logo img {
    object-fit: cover;
}

#hjem-meny button.navbar-toggler:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

#hjem-meny a:focus-visible, .studio-legal-links a:focus-visible, .legal-main a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.studio-seo-blurb {
    margin: 0.7rem auto 1.25rem;
    max-width: 850px;
    text-align: center;
    line-height: 1.6;
}

#om-oss .studio-seo-blurb {
    width: 100%;
    padding: 0 1rem;
}

#tilbakemeldinger .studio-seo-blurb {
    margin-bottom: 1.5rem;
}

.studio-form-notice {
    margin-top: 1rem;
    font-size: 0.92rem;
    opacity: .8;
}

.studio-legal-block {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .23);
}

.studio-legal-details {
    max-width: 1050px;
    margin: 0 auto;
}

.studio-legal-heading {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 700;
    color: inherit;
    text-align: left;
    margin: 0 0 .75rem;
}

.studio-legal-disclaimer {
    font-size: .84rem;
    line-height: 1.6;
    opacity: .85;
    max-width: 920px;
}

.studio-legal-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
    row-gap: .8rem;
    margin: 1.1rem 0;
}

.studio-legal-list > div {
    min-width: 0;
}

.studio-legal-list dt {
    font-size: .78rem;
    font-weight: 700;
    opacity: .8;
    margin-bottom: .15rem;
}

.studio-legal-list dd {
    margin: 0;
    font-size: .88rem;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.studio-legal-list a, .studio-legal-links a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.studio-legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem 1.4rem;
    margin: 1.35rem auto .25rem;
    margin-left: 6rem;
}

.studio-legal-links a {
    font-size: .91rem;
}

.legal-main {
    padding: clamp(7rem, 12vw, 10rem) 1.25rem 5rem;
    background: #faf8f5;
    min-height: 65vh;
    color: #252525;
}

.legal-article {
    width: min(100%, 930px);
    margin: 0 auto;
}

.legal-back {
    display: inline-flex;
    margin-bottom: 2rem;
    color: #3a392e;
}

.legal-eyebrow {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.legal-main h1 {
    font-size: clamp(2.3rem, 6vw, 4.3rem);
    line-height: 1.1;
    margin: .5rem 0 1rem;
}

.legal-lead {
    font-size: 1.3rem;
    line-height: 1.5;
}

.legal-updated {
    font-size: .88rem;
    opacity: .7;
    margin: 1rem 0 2.5rem;
}

.legal-body h2 {
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    line-height: 1.3;
    margin: 2rem 0 .65rem;
}

.legal-body p {
    font-size: 1rem;
    line-height: 1.8;
    margin: .5rem 0 1.2rem;
}

.legal-main a {
    color: #605038;
}

@media (max-width: 991px) {
    #hjem-meny .navbar-collapse {
        position: absolute !important;
        z-index: 1095 !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 1.1rem;
        box-shadow: 0 12px 24px rgba(0, 0, 0, .15);
    }

    #hjem-meny .navbar .container {
        position: relative;
    }

    #hjem-meny .navbar-toggler {
        display: flex;
        margin-left: auto;
    }

    #hjem-meny .navbar-nav .nav-link {
        text-align: center;
    }

    #hjem-meny .navbar-buttons {
        padding: .6rem 0 0;
        text-align: center;
    }

    #hjem-meny .navbar-collapse:not(.show) {
        display: none !important;
    }

    #hjem-meny .navbar-collapse.show {
        display: block !important;
    }
}

@media (max-width: 575px) {
    #hjem-meny .navbar-caption {
        font-size: clamp(.92rem, 4vw, 1.2rem) !important;
    }

    #hjem-meny .navbar-brand {
        padding-right: 2px !important;
    }

    #hjem-meny .navbar-toggler {
        margin: 0 0 0 auto !important;
        padding: .2rem .4rem;
    }

    #hjem-meny .navbar-logo img {
        max-width: 3rem !important;
    }

    .studio-legal-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .studio-legal-links {
        display: grid;
        gap: .7rem;
    }

    .legal-main {
        padding-top: 7.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
