/* Theme style */

/* ==========================================================================
Base styles
========================================================================== */

/* Focus
========================================================================== */

/* The parent draws every focus ring (WCAG 2.4.7) from custom.color.focus and
   focus-contrast, set to primary and light in theme.json. On dark backgrounds
   a primary ring would vanish, so there it is an accent outline with a
   primary inner ring. Changing the tokens (not the outline) also reaches the
   parent's slider, menu and WooCommerce rings. The tokens are set on the
   children of each coloured box and inherited, so the nearest box decides:
   a light card in a dark band, or a dark band inside that card, both work. */
:is(.has-dark-background-color, .has-primary-background-color, .has-neutral-dark-background-color, .wp-block-cover:not(.is-light)) > * {
    --wp--custom--color--focus: var(--wp--preset--color--accent);
    --wp--custom--color--focus-contrast: var(--wp--preset--color--primary);
}

:is(.has-light-background-color, .has-secondary-background-color, .has-accent-background-color, .has-neutral-light-background-color, .has-neutral-medium-background-color, .wp-block-cover.is-light) > * {
    --wp--custom--color--focus: var(--wp--preset--color--primary);
    --wp--custom--color--focus-contrast: var(--wp--preset--color--light);
}

/* Headings
========================================================================== */

/* Parent CSS uses the parent's palette slugs; map them to this palette. */
:root {
    --wp--preset--color--white: var(--wp--preset--color--light);
    --wp--preset--color--black: var(--wp--preset--color--dark);
    --wp--preset--color--neutral-1: var(--wp--preset--color--neutral-dark);
    --wp--preset--color--neutral-2: var(--wp--preset--color--neutral-light);
    --wp--preset--color--neutral-3: var(--wp--preset--color--background-light-1);
}

/* Paragraphs
========================================================================== */

/* Live's "ingress": a larger lead paragraph. */
.is-style-lead {
    font-size: var(--wp--preset--font-size--m);
    line-height: 1.8;
}

.is-style-eyebrow {
    text-transform: uppercase;
}

/* Typography spacing
========================================================================== */

/* Text rendering
========================================================================== */

/* Live uses the browser's default smoothing; the parent's antialiased draws text thinner on macOS. */
body {
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
}

/* Links
========================================================================== */

/* Live underlines text links with a thick yellow line and sets them in capitals. */
main :is(p, .wp-block-heading) a {
    text-transform: uppercase;
    text-decoration: underline 5px var(--wp--preset--color--primary);
    text-underline-offset: auto;
}

/* Hover: the yellow line turns black (live's yellow text on grey was hard to read). */
main :is(p, .wp-block-heading) a:is(:hover, :focus-visible) {
    text-decoration-color: var(--wp--preset--color--dark);
}

@media (max-width: 767px) {
    main :is(p, .wp-block-heading) a {
        text-decoration: none;
        border-bottom: 4px solid var(--wp--preset--color--primary);
    }

    main :is(p, .wp-block-heading) a:is(:hover, :focus-visible) {
        border-bottom-color: var(--wp--preset--color--dark);
    }
}

/* Lists
========================================================================== */

/* Live's lists: green check marks, text 40px in, 32px below a heading and 40px above the next text. */
main .wp-block-list:not(.wp-block-social-links) {
    margin: 32px 0 40px !important;
    padding-left: 40px;
    list-style: none;
}

main .wp-block-list:not(.wp-block-social-links) > li {
    position: relative;
    margin: 0;
    padding-left: 0;
}

main .wp-block-list:not(.wp-block-social-links) > li + li {
    margin-top: 6px;
}

main .wp-block-list:not(.wp-block-social-links) > li::before {
    content: '';
    position: absolute;
    top: 9px;
    left: -25px;
    width: 14px;
    height: 14px;
    background-color: #019c63;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 7.5l4 4L13 3' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Buttons
========================================================================== */

/* Primary button (core) */

/* Secondary button */
.is-style-button-secondary .wp-block-button__link {
    background-color: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--light);
}

/* Imported pages still use the old black button colour without a text colour. */
.wp-block-button__link:is(.has-dark-background-color, .has-black-background-color):not(.has-text-color) {
    color: var(--wp--preset--color--light);
}

.is-style-button-secondary .wp-block-button__link:hover,
.wp-block-button__link:is(.has-dark-background-color, .has-black-background-color):hover {
    background-color: var(--wp--preset--color--light);
    color: var(--wp--preset--color--dark);
}

/* Outline button (core) */

/* Inputs
========================================================================== */

/* Label */

/* Input fields */

/* Select */

/* Checkbox & radio button */

/* Focus and active statements */

/* Acceptance */

/* Submit */

/* Contact form 7
========================================================================== */

/* Labels follow the body text size. The parent sets every label to the xs
   preset, so a site with larger body text would get smaller form labels. */
.wpcf7-form label {
    font-size: inherit;
}

/* Forms: labels above the fields, half-width fields where tagged, full width otherwise. */
.wpcf7-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-gap: 20px;
}

.wpcf7-form > p {
    grid-column: 1 / -1;
    margin: 0;
}

.wpcf7-form > p:has(.form-half) {
    grid-column: auto;
}

main .wpcf7-form p {
    max-width: none;
}

.wpcf7-form label {
    display: block;
    font-family: var(--wp--preset--font-family--button);
    font-size: var(--wp--preset--font-size--xs);
}

.wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    margin-top: var(--wp--preset--spacing--xxs);
}

.wpcf7-form :is(input[type='text'], input[type='email'], input[type='tel'], textarea) {
    width: 100%;
    padding: var(--wp--preset--spacing--xxs) var(--wp--preset--spacing--s);
    border: 0;
    border-bottom: 1px solid var(--wp--preset--color--dark);
    border-radius: 0;
    background-color: var(--wp--preset--color--light);
    color: var(--wp--preset--color--dark);
    font-family: var(--wp--preset--font-family--button);
    font-size: var(--wp--preset--font-size--xs);
    line-height: 1.6;
}

.wpcf7-form textarea {
    padding: var(--wp--preset--spacing--s);
}

.wpcf7-form .wpcf7-acceptance {
    font-size: var(--wp--preset--font-size--xxs);
}

.wpcf7-form .wpcf7-acceptance a {
    color: inherit;
}

.wpcf7-form .wpcf7-acceptance label {
    font-family: inherit;
    font-size: inherit;
}

.wpcf7-form .wpcf7-acceptance input[type='checkbox'] {
    border: 1px solid var(--wp--preset--color--dark);
    background-color: var(--wp--preset--color--light);
}

.wpcf7-form .wpcf7-submit {
    width: auto;
    padding: var(--wp--preset--spacing--xxs) calc(var(--wp--preset--spacing--xs) + var(--wp--preset--spacing--tiny));
    border: 0;
    border-radius: 0;
    background-color: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--light);
    font-family: var(--wp--preset--font-family--button);
    font-size: var(--wp--preset--font-size--button);
    font-weight: 400;
    line-height: 1.5;
    transition: all 150ms linear;
}

.wpcf7-form .wpcf7-submit:hover {
    background-color: var(--wp--preset--color--light);
    color: var(--wp--preset--color--dark);
}

@media (max-width: 767px) {
    .wpcf7-form > p:has(.form-half) {
        grid-column: 1 / -1;
    }
}

/* Media
========================================================================== */

/* Images */

/* Video */

/* Iframe & embedded */

/* ==========================================================================
Layout
========================================================================== */

/* Paddings and margins
========================================================================== */

/* Live's sections sit about 140px apart (70px above and below each); editor.css uses the same value. */
.qt-section,
.wp-block-qase-blocks-section {
    --qt-section-spacing: 70px;
}

/* Live keeps a 15px side gutter on phones. */
@media (max-width: 767px) {
    .qt-section:not(.container-fullwidth, .is-style-header-top) {
        padding-inline: 15px;
    }
}

/* Full-width bands keep the same distance to the sections around them. */
.entry-content > .qt-section.container-fullwidth:not(.is-style-hero, .is-style-subhero, .is-style-subhero-primary) {
    margin-block: var(--qt-section-spacing);
}

/* :first-of-type beats the parent's 0 above an opening hero. */
main > .qt-section:not(.container-fullwidth),
.entry-content > .qt-section:not(.container-fullwidth),
main > .qt-section:first-of-type:not(.is-style-breadcrumbs, .container-fullwidth),
.entry-content > .qt-section:first-of-type:not(.container-fullwidth) {
    padding-top: var(--qt-section-spacing);
    padding-bottom: var(--qt-section-spacing);
}

/* Max widths
========================================================================== */

/* Grids
========================================================================== */

/* :where() so block styles with their own gap still win. */
:where(.qt-section__inner).grid {
    column-gap: var(--wp--custom--content-size-gutter--default);
}

/* ==========================================================================
Announcement bar
========================================================================== */

/* ==========================================================================
Top bar
========================================================================== */

/* ==========================================================================
Header
========================================================================== */

/* Desktop menu
========================================================================== */

/* Live's header is see-through at the top of every page and turns grey with a shadow once the page scrolls. */
header.wp-block-template-part {
    background-color: transparent;
    color: var(--wp--preset--color--dark);
    transition:
        background-color 200ms linear,
        box-shadow 200ms linear;
}

body.is-scrolled header.wp-block-template-part {
    background-color: var(--wp--preset--color--background-light-1);
    box-shadow: 5px 2px 20px #7f7f7f87;
}

main {
    margin-top: 0;
}

/* Pages without a hero (the policy page) start below the see-through header, like live. */
body:not(.has-hero, .has-subhero) main {
    padding-top: 130px;
}

.qt-section.is-style-header-top {
    padding-inline: calc(var(--wp--preset--spacing--m) - var(--wp--preset--spacing--tiny));
    background-color: transparent;
    border-bottom-color: transparent;
}

.is-style-header-top .qt-container:has(.mega-menu:not(.mega-menu-mobile)) {
    justify-content: flex-end;
}

header .mega-menu:not(.mega-menu-mobile) .menu {
    gap: 0;
}

header .mega-menu:not(.mega-menu-mobile) .menu > .menu-item > a {
    padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--s);
    font-size: var(--wp--preset--font-size--m);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

header .mega-menu:not(.mega-menu-mobile) .menu > .menu-item > a:hover {
    text-decoration: underline 2px;
    text-underline-offset: 6px;
}

/* Current page: black text with the buttons' yellow line (yellow text can't be read on the grey header). */
header .mega-menu :is(.current-menu-item, .current-menu-ancestor, .current-menu-parent) > a {
    color: inherit;
    text-decoration: underline 2px var(--wp--preset--color--primary);
    text-underline-offset: 6px;
}

/* On the yellow page tops the line turns black until the page scrolls. */
body:has(.is-style-subhero-primary):not(.is-scrolled) header .mega-menu .menu > :is(.current-menu-item, .current-menu-ancestor, .current-menu-parent) > a {
    text-decoration-color: var(--wp--preset--color--dark);
}

/* Dropdown: grey panel with a white top line, links in normal case, like the old site. */
@media (min-width: 1101px) {
    header .mega-menu:not(.mega-menu-mobile) .mega-menu-toggle {
        display: none;
    }

    header .mega-menu:not(.mega-menu-mobile) .mega-menu-item-parent:not(.mega-menu-item) > .sub-menu {
        width: 225px;
        padding: 0;
        border-top: 2px solid var(--wp--preset--color--light);
        background-color: var(--wp--preset--color--secondary);
        color: var(--wp--preset--color--dark);
    }

    header .mega-menu:not(.mega-menu-mobile) .mega-menu-item-parent:not(.mega-menu-item):focus-within > .sub-menu {
        display: block;
    }

    header .mega-menu:not(.mega-menu-mobile) .sub-menu .menu-item {
        padding: 0;
    }

    header .mega-menu:not(.mega-menu-mobile) .sub-menu .menu-item a {
        padding: 16px 20px;
        letter-spacing: normal;
        font-size: 18px;
        line-height: 1.6;
        text-transform: none;
    }
}

/* Over the start page's video the menu and hamburger are white until the page scrolls. */
body.has-hero:not(.is-scrolled) header .mega-menu:not(.mega-menu-mobile) .menu > .menu-item > a {
    color: var(--wp--preset--color--light);
}

body.has-hero:not(.is-scrolled) header .hamburger-icon,
body.has-hero:not(.is-scrolled) header .hamburger-icon::before,
body.has-hero:not(.is-scrolled) header .hamburger-icon::after {
    background-color: var(--wp--preset--color--light);
}

/* Site logo */
header .wp-block-site-logo img {
    width: auto;
    height: 65px;
    max-width: none;
}

/* Live keeps an 80px header on phones (the parent drops it to 60px under 671px). */
@media (max-width: 767px) {
    :root {
        --wp--custom--header-height--top: 80px;
    }

    .qt-section.is-style-header-top {
        padding-inline: var(--wp--preset--spacing--xs);
    }

    .is-style-header-top .qt-container:has(.hamburger) {
        justify-self: end;
    }
}

/* The empty hamburger column kept a 32px gap, so the menu didn't reach live's 30px edge. */
@media (min-width: 1101px) {
    .is-style-header-top .qt-section__inner.grid {
        grid-template-columns: auto 1fr;
    }

    .is-style-header-top .qt-container:has(.hamburger) {
        display: none;
    }
}

/* The parent's `ul + ul` margin (global.css) pushed the admin bar's right side down. */
#wpadminbar :is(ul, ol) + :is(ul, ol) {
    margin-top: 0 !important;
}

/* Between WP's mobile bar (782px) and 1100px the labels don't fit on one row, so show icons only. */
@media (min-width: 783px) and (max-width: 1100px) {
    #wpadminbar #wp-admin-bar-root-default > li:not(#wp-admin-bar-comments) > .ab-item {
        font-size: 0;
    }

    #wpadminbar #wp-admin-bar-root-default > li:not(#wp-admin-bar-comments) > .ab-item :is(.ab-label, .rank-math-text) {
        display: none;
    }
}

/* On phones the admin bar scrolls away, so the fixed header goes to the top. */
@media (max-width: 600px) {
    .admin-bar.is-scrolled header.wp-block-template-part {
        top: 0;
    }
}

/* Header button */

/* Hamburger icon
========================================================================== */

/* User toolbar
========================================================================== */

/* Search bar
========================================================================== */

/* ==========================================================================
Footer
========================================================================== */

/* Navigation
========================================================================== */

/* Live's footer: black, white text, three equal columns, 14px links under 18px bold headings. */
footer.wp-block-template-part {
    background-color: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--light);
    font-size: 14px;
    line-height: calc(var(--wp--preset--font-size--s) * 1.8);
}

footer.wp-block-template-part a {
    color: inherit;
    text-decoration: none;
}

footer.wp-block-template-part a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.qt-section:is(.is-style-footer-top, .is-style-footer-bottom) {
    background-color: transparent;
    color: inherit;
}

.qt-section.is-style-footer-top {
    padding-top: 60px;
    padding-bottom: 56px;
}

.is-style-footer-top > .qt-section__inner.grid {
    gap: 0;
}

.is-style-footer-top .footer-heading,
footer .is-style-footer-heading {
    margin: 5px 0 25px;
    font-size: var(--wp--preset--font-size--footer-heading);
    font-weight: 700;
    line-height: normal;
}

footer .footer-menu .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    margin: 0;
    padding: 0;
}

footer .footer-menu .menu a {
    display: block;
    font-size: 14px;
    line-height: 16px;
}

.is-style-footer-top p {
    margin: 0 0 20px;
}

.qt-section.is-style-footer-bottom {
    padding-top: 0;
    padding-bottom: 20px;
}

.is-style-footer-bottom > .qt-section__inner.grid {
    row-gap: 41px;
    padding-top: 22px;
    border-top: 1px solid var(--wp--preset--color--light);
}

.is-style-footer-bottom .wp-block-social-links {
    gap: 20px;
    margin: 0;
    font-size: 34px;
}

.is-style-footer-bottom .wp-block-image {
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

.is-style-footer-bottom p {
    margin: 0;
    font-size: var(--wp--preset--font-size--s);
}

@media (max-width: 767px) {
    .is-style-footer-top > .qt-section__inner.grid {
        row-gap: 40px;
    }

    /* Icons and logo share one row on phones, like live. */
    .is-style-footer-bottom > .qt-section__inner.grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 41px;
    }

    .is-style-footer-top .qt-container {
        align-items: flex-start;
    }

    .is-style-footer-top p {
        text-align: left !important;
    }
}

/* ==========================================================================
Utility classes
========================================================================== */

/* ==========================================================================
Components and modules
========================================================================== */

/* Breadcrumbs
========================================================================== */

/* Pagination
========================================================================== */

/* Current, hover */

/* Prev, next */

/* Accordion
========================================================================== */

/* Accordion heading */

/* Accordion content */

/* Accordion icon */

/* Tabs
========================================================================== */

/* Splide slider
========================================================================== */

/* Slider header */

/* ==========================================================================
Styles for pages, sections, blocks and others.
========================================================================== */

/* Page: Search results
========================================================================== */

/* Section: Hero
========================================================================== */

/* The hero's look lives here so the blocks inside carry only content. */
:is(.is-style-hero, .is-style-subhero):is(.qt-section, .wp-block-qase-blocks-section) {
    background-color: var(--wp--preset--color--background-light-1);
}

:is(.is-style-hero, .is-style-subhero) .wp-block-cover .wp-block-heading {
    color: var(--wp--preset--color--light);
}

.is-style-hero .wp-block-cover {
    padding-top: var(--wp--custom--header-height--top);
}

.is-style-hero .wp-block-heading {
    margin-bottom: 40px;
}

/* Live's "Välkommen!" above the H1 looks like an H3. */
.is-style-hero .is-style-eyebrow {
    margin-bottom: 0;
    text-transform: none;
    color: var(--wp--preset--color--light);
    font-size: var(--wp--preset--font-size--l);
    font-weight: 500;
    line-height: normal;
}

@media (max-width: 767px) {
    .is-style-hero .wp-block-cover {
        min-height: 90vh !important;
        padding-inline: 15px;
    }

    .is-style-hero .is-style-eyebrow {
        font-size: 22.4px;
    }

    .is-style-hero .wp-block-buttons {
        gap: 8px;
    }
}

/* Section: Subhero
========================================================================== */

/* Live's inner page tops: a 500px grey band 40px below the top, H1 left, a 2px line and two buttons. */
.qt-section:is(.is-style-subhero, .is-style-subhero-primary) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
    margin-top: 40px;
    padding-block: 125px 0;
    background-color: var(--wp--preset--color--background-light-1);
}

/* The yellow top starts at the very top, behind the see-through header, like live. */
.entry-content > .qt-section.is-style-subhero-primary {
    margin-top: 0;
    padding-top: 0;
    background-color: var(--wp--preset--color--primary);
}

/* Live's first button on the yellow top is white. */
.is-style-subhero-primary .wp-block-button:not([class*='is-style-']) .wp-block-button__link {
    background-color: var(--wp--preset--color--light);
    color: var(--wp--preset--color--dark);
}

.is-style-subhero-primary .wp-block-button:not([class*='is-style-']) .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--light);
}

:is(.is-style-subhero, .is-style-subhero-primary) > .qt-section__inner {
    width: 100%;
    max-width: var(--wp--style--global--content-size);
    margin-inline: auto;
}

:is(.is-style-subhero, .is-style-subhero-primary) .wp-block-heading {
    margin: 0 0 30px;
}

:is(.is-style-subhero, .is-style-subhero-primary) .wp-block-separator {
    width: 100%;
    margin: 0 0 30px;
    border: 0;
    border-top: 2px solid var(--wp--preset--color--dark);
    opacity: 1;
}

@media (max-width: 767px) {
    .qt-section:is(.is-style-subhero, .is-style-subhero-primary) {
        padding: 77px 15px 0 !important;
    }

    :is(.is-style-subhero, .is-style-subhero-primary) .wp-block-buttons {
        gap: 9px;
    }
}

/* Inner pages: image rows 100px apart, text-only rows 140px, 36px between the columns, like live. */
body.has-subhero .entry-content > .qt-section:not(.container-fullwidth) {
    --qt-section-spacing: 50px;
}

body.has-subhero .entry-content > .qt-section:not(.container-fullwidth):not(:has(img)) {
    --qt-section-spacing: 70px;
}

@media (max-width: 767px) {
    body.has-subhero .entry-content > .qt-section:not(.container-fullwidth) {
        --qt-section-spacing: 25px;
    }

    body.has-subhero .entry-content > .qt-section:not(.container-fullwidth):not(:has(img)) {
        --qt-section-spacing: 40px;
    }
}

body.has-subhero .entry-content > :is(.is-style-subhero, .is-style-subhero-primary) + .qt-section {
    padding-top: 60px;
}

/* Two photos side by side get the same height. */
.entry-content .qt-section__inner.grid-col-2:has(> .qt-container > .wp-block-image):not(:has(> .qt-container > :not(.wp-block-image))) > .qt-container {
    display: flex;
    flex-direction: column;
}

.entry-content .qt-section__inner.grid-col-2:has(> .qt-container > .wp-block-image):not(:has(> .qt-container > :not(.wp-block-image))) .wp-block-image {
    flex: 1;
    margin: 0;
}

body .entry-content .qt-section__inner.grid-col-2:has(> .qt-container > .wp-block-image):not(:has(> .qt-container > :not(.wp-block-image))) .wp-block-image img {
    height: 100%;
    object-fit: cover;
}

body.has-subhero .entry-content > .qt-section:last-child:not(.container-fullwidth) {
    padding-bottom: 60px;
}

/* Columns inside a text block (Kontakt's address) start 40px below the text. */
.entry-content .qt-container > .qt-section {
    margin-top: 40px;
}

body.has-subhero .entry-content > .qt-section > .qt-section__inner.grid-col-2 {
    column-gap: 36px;
}

body.has-subhero .entry-content > .qt-section.container-fullwidth:not(.is-style-subhero, .is-style-subhero-primary) {
    margin-top: 40px;
    margin-bottom: 0;
}

body.has-subhero .entry-content > .qt-section .wp-block-image img {
    width: 100%;
    height: auto;
}

/* Section: Reverse on mobile
========================================================================== */

/* Text left, image right on desktop; the image comes first on phones. */
@media (max-width: 767px) {
    .is-style-reverse-mobile > .qt-section__inner > .qt-container:first-child {
        order: 2;
    }
}

/* Section: Team
========================================================================== */

.is-style-team > .qt-section__inner.grid {
    gap: 50px;
}

.is-style-team .wp-block-image img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.is-style-team .is-style-eyebrow {
    margin: 20px 0 0;
}

@media (max-width: 1081px) {
    .is-style-team > .qt-section__inner.grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 599px) {
    .is-style-team > .qt-section__inner.grid {
        grid-template-columns: 1fr;
        margin: 50px;
    }
}

/* Image: Large
========================================================================== */

.wp-block-image.is-style-large img {
    width: 100%;
    height: 650px !important;
    object-fit: cover;
}

@media (max-width: 767px) {
    .wp-block-image.is-style-large img {
        height: 400px !important;
    }
}

/* Accordion (old Yoast FAQ)
========================================================================== */

/* Live's FAQ: no box, a 2px black line under each question, a green plus that turns red when open. */
.qt-section .qt-accordion {
    padding: 0;
    background: none;
}

.qt-accordion .accordion-item {
    margin: 0;
    padding: 20px;
    border: 0;
    border-bottom: 2px solid var(--wp--preset--color--dark);
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.qt-accordion .accordion-item__heading {
    margin: 0;
}

.qt-accordion .accordion-item__heading button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--wp--preset--color--dark);
    font-family: inherit;
    font-size: var(--wp--preset--font-size--s);
    font-weight: 500;
    line-height: normal;
}

.qt-accordion .accordion-content__inner {
    padding: 10px 0 0;
    background: none;
}

/* Contact form 7: live's Gimlit form
========================================================================== */

.wpcf7-form :is(input[type='text'], input[type='email'], textarea) {
    width: 100%;
    padding: 7px 20px;
    border: 2px solid var(--wp--preset--color--dark);
    border-radius: 0;
    background-color: transparent;
    color: var(--wp--preset--color--dark);
    font-size: var(--wp--preset--font-size--xs);
    line-height: 32px;
}

.wpcf7-form textarea {
    height: 238px;
    padding: 20px;
}

.wpcf7-form > p {
    margin: 0;
}

.wpcf7-form .wpcf7-form-control-wrap {
    margin-top: 0;
}

.wpcf7-form > p:has(.wpcf7-submit) {
    text-align: center;
}

/* Yellow like the other buttons; black on the yellow band, as on live. */
.wpcf7-form .wpcf7-submit {
    padding: 5px 35px;
    border: 0;
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--dark);
    font-size: var(--wp--preset--font-size--button);
    line-height: calc(var(--wp--preset--font-size--s) * 1.8);
    text-transform: uppercase;
    transition: all 300ms;
}

.wpcf7-form .wpcf7-submit:hover,
.is-style-band-primary .wpcf7-form .wpcf7-submit {
    background-color: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--light);
}

.is-style-band-primary .wpcf7-form .wpcf7-submit:hover {
    background-color: var(--wp--preset--color--light);
    color: var(--wp--preset--color--dark);
}

.wpcf7-form .wpcf7-acceptance {
    font-size: 14px;
}

.wpcf7-form .wpcf7-acceptance a {
    text-transform: none;
}

/* Section: Stacked boxes
========================================================================== */

/* Slider - Logos
========================================================================== */

/* Archive: Category
========================================================================== */

/* Page: Articles
========================================================================== */

.articles.grid,
.latest-articles.grid {
    grid-gap: var(--wp--style--block-gap);
}

/* Filter buttons */
.articles__filter-buttons {
    margin-bottom: calc(2 * var(--wp--style--block-gap));
    margin-top: 0;
    align-items: center;
}

.articles__filter-buttons::before {
    content: 'Filtrera:';
    font-weight: 500;
    font-size: var(--wp--preset--font-size--m);
}

/* The active filter is filled, so it differs from the others by more than
   colour (WCAG 1.4.1). The old rule used teal slugs that the palette lacks,
   so the active filter looked like all the others. */
.articles__filter-buttons .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--primary);
}

.articles__filter-buttons .wp-block-button__link:is(.active, [aria-current]) {
    background-color: var(--wp--preset--color--primary);
    border-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--light);
}

/* Card */

/* Single: Article
========================================================================== */

/* Section: Employees
========================================================================== */

/* Section: Testimonial slider
========================================================================== */

/* Testimonial card */

/* Section: Image gallery with lightbox
========================================================================== */

/* Section: FAQ
========================================================================== */

/* Section: Card grid
========================================================================== */

/* Three columns with 50px gaps, like live's product and case grids. */
.is-style-card-grid > .qt-section__inner.grid {
    gap: 50px;
}

.is-style-card-grid .qt-container[class*='stretch'],
.is-style-card-grid .qt-container:first-child {
    margin-bottom: 10px;
}

.is-style-card-grid .wp-block-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

@media (max-width: 1081px) {
    .is-style-card-grid > .qt-section__inner.grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .is-style-card-grid > .qt-section__inner.grid {
        grid-template-columns: 1fr;
    }
}

/* Container: Image card
========================================================================== */

/* Image on top, then a 165px box with a 2px black frame that overlaps the image by 15px, like live. */
.is-style-image-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* The image lies above the frame, so the frame's top line doesn't cross the photo. */
.qt-container.is-style-image-card > .wp-block-image {
    position: relative;
    z-index: 1;
    margin: 0 0 -15px;
}

/* Beats the parent's 24px gap between image and heading in 3- and 4-column grids. */
.qt-section .grid .qt-container.is-style-image-card > :is(.wp-block-heading, p) {
    margin: 0;
    padding-inline: 20px;
    border-inline: 2px solid var(--wp--preset--color--dark);
}

.is-style-image-card > .wp-block-heading {
    padding-top: 46px;
    border-top: 2px solid var(--wp--preset--color--dark);
    font-size: var(--wp--preset--font-size--l);
}

.is-style-image-card > p:last-of-type {
    padding-top: 26px;
    padding-bottom: 37px;
    border-bottom: 2px solid var(--wp--preset--color--dark);
}

/* Paragraph: Link text
========================================================================== */

/* Looks like a text link (uppercase with a yellow line) inside a linked card. */
.is-style-link-text {
    font-size: 15px;
    text-transform: uppercase;
    text-decoration: underline 5px var(--wp--preset--color--primary);
}

.is-style-image-card:is(:hover, :focus-within) .is-style-link-text {
    text-decoration-color: var(--wp--preset--color--dark);
}

/* Section: Cover band
========================================================================== */

.is-style-cover-band .wp-block-cover {
    color: var(--wp--preset--color--light);
}

.is-style-cover-band .wp-block-heading {
    margin: 0 0 30px;
    color: var(--wp--preset--color--light);
}

.is-style-cover-band .is-style-eyebrow {
    margin-bottom: 0;
    color: var(--wp--preset--color--light);
    text-transform: uppercase;
}

/* Section: Band primary
========================================================================== */

.is-style-band-primary:is(.qt-section, .wp-block-qase-blocks-section) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 350px;
    padding-block: 60px 50px;
    background-color: var(--wp--preset--color--primary);
}

.is-style-band-primary > .qt-section__inner {
    width: 100%;
    max-width: var(--wp--style--global--content-size);
    margin-inline: auto;
}

.is-style-band-primary .wp-block-heading {
    margin-bottom: 20px;
}

/* Button: Outline dark
========================================================================== */

.wp-block-button.is-style-button-outline-dark .wp-block-button__link {
    padding: 3px 35px;
    border: 2px solid var(--wp--preset--color--dark);
    background-color: transparent;
    color: var(--wp--preset--color--dark);
}

.wp-block-button.is-style-button-outline-dark .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--light);
}

/* Section: Quotes
========================================================================== */

/* Two framed quotes, 980px wide in all, like live's "Våra samarbetspartners". */
.is-style-quotes > .qt-section__inner {
    max-width: 980px;
    margin-inline: auto;
    column-gap: 170px;
    row-gap: 20px;
}

/* Container: Quote card
========================================================================== */

.is-style-quote-card {
    padding: 40px 0 40px;
    border: 2px solid var(--wp--preset--color--dark);
}

.is-style-quote-card .wp-block-image {
    margin: 0 auto 20px;
}

.is-style-quote-card .wp-block-image img {
    margin-inline: auto;
}

.is-style-quote-card p {
    padding-inline: 10px;
    font-size: 14px;
}

.is-style-quote-card .wp-block-separator {
    width: 100%;
    margin: 40px 0;
    border: 0;
    border-top: 1px solid currentColor;
    opacity: 1;
}

/* Container: Logo box
========================================================================== */

.is-style-logo-box {
    padding: 20px;
    border: 2px solid var(--wp--preset--color--dark);
    background-color: var(--wp--preset--color--light);
}

/* Section: Logo grid
========================================================================== */

.is-style-logo-grid > .qt-section__inner.grid {
    gap: 20px 2em;
}

.is-style-logo-grid .wp-block-image {
    margin: 0;
}

/* Live shows every logo in a 200x110 box. */
.is-style-logo-grid .wp-block-image img {
    width: 200px;
    max-width: 100%;
    height: 110px;
    object-fit: contain;
}

@media (max-width: 599px) {
    .is-style-logo-grid > .qt-section__inner.grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 50px;
    }
}
