/*
 * Nordhov block contract.
 *
 * This file is registered as the shared `style` asset for every ACF block. It is therefore
 * loaded by WordPress in Gutenberg and on the frontend with one identical cascade.
 */

.nordhov-block {
    display: block;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    --nordhov-section-surface: #EFEDED;
    --container-pad: clamp(1.25rem, 4vw, 2.5rem);
    --radius: 16px;
    --radius-lg: 28px;
    --radius-leaf: 8rem;
    --radius-button: 1rem;
    --nh-gap-editorial: clamp(3rem, 5vw, 5rem);
    --nh-gap-grid: clamp(1.25rem, 2.5vw, 2.5rem);
    --accent: var(--wp--preset--color--accent, #e3e875);
    --accent-hover: color-mix(in srgb, var(--accent) 82%, #42031c);
    --color-brand: var(--wp--preset--color--plommon-02, #42031c);
    --font-body: "Albert Sans", "Aptos", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Chillax", "Aptos", "Albert Sans", system-ui, sans-serif;
    color: var(--wp--preset--color--plommon-02, #42031c);
    font-family: var(--font-body);
}

.wrapper,
.editor-styles-wrapper { background-color: var(--nordhov-section-surface, #EFEDED); }
.nordhov-block .has-gra-background-color { background-color: var(--nordhov-section-surface, #EFEDED) !important; }

.nordhov-block,
.nordhov-block *,
.nordhov-block *::before,
.nordhov-block *::after { box-sizing: border-box; }

/* Stable Gutenberg-like layout contract for the PHP-rendered inner markup. */
.nordhov-block .is-layout-flex { display: flex; flex-wrap: wrap; align-items: center; }
.nordhov-block .is-layout-grid { display: grid; }
.nordhov-block .is-layout-flex > :is(*, div),
.nordhov-block .is-layout-grid > :is(*, div) { margin: 0; }
.nordhov-block .wp-block-columns { align-items: normal !important; box-sizing: border-box; display: flex; }
.nordhov-block .wp-block-column { flex-grow: 1; min-width: 0; overflow-wrap: break-word; word-break: break-word; }
.nordhov-block .wp-block-image,
.nordhov-block .wp-block-buttons,
.nordhov-block .wp-block-columns { margin: 0; }
.nordhov-block .wp-block-image img { display: block; width: 100%; max-width: 100%; height: auto; }

/* Buttons: same selector strength and values in Gutenberg and frontend. */
.nordhov-block .wp-block-button .wp-block-button__link.wp-element-button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.6rem;
    background: var(--accent);
    color: var(--color-brand);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.1;
    letter-spacing: -.2px;
    text-transform: uppercase;
    text-decoration: none;
    border: 0;
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: background-color .2s ease;
}
.nordhov-block .wp-block-button .wp-block-button__link.wp-element-button:hover,
.nordhov-block .wp-block-button .wp-block-button__link.wp-element-button:focus-visible {
    background: var(--accent-hover);
    color: var(--color-brand);
}
.nordhov-block .wp-element-button[target="_blank"]::after,
.nordhov-office-card-contact__title-link::after {
    content: "↗";
    flex: none;
    font-size: .9em;
    line-height: 1;
}
.nordhov-block .wp-element-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* Inline links are distinguishable from body copy; navigational/card links remain unstyled. */
:where(
    .nordhov-block--nordhov-rich-content,
    .nordhov-text-image__content,
    .nordhov-feature-list,
    .nordhov-person-card__body,
    .nordhov-office-card-contact__details,
    .nordhov-invoice-panel__details,
    .nordhov-article__content
) a:not(.wp-element-button) {
    text-decoration: underline;
    text-decoration-thickness: .08em;
    text-underline-offset: .16em;
}
:where(
    .nordhov-block--nordhov-rich-content,
    .nordhov-text-image__content,
    .nordhov-feature-list,
    .nordhov-article__content
) a[target="_blank"]:not(.wp-element-button)::after {
    content: " ↗";
    font-size: .8em;
    white-space: nowrap;
}

/* Cards and Nordhov leaf shapes. */
.nordhov-block .is-style-leaf {
    border-top-left-radius: var(--radius-leaf);
    border-bottom-right-radius: var(--radius-leaf);
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    overflow: hidden;
}
.nordhov-block .is-style-card { border-radius: var(--radius-lg); overflow: hidden; }
.nordhov-block :is(.is-style-leaf,.is-style-card):has(>:is(.wp-block-image,.wp-block-post-featured-image)) > * { margin-block: 0; }
.nordhov-block :is(.is-style-leaf,.is-style-card):has(>:is(.wp-block-image,.wp-block-post-featured-image)):has(>.wp-block-group) {
    display: flex;
    flex-direction: column;
}
.nordhov-block :is(.is-style-leaf,.is-style-card):has(>:is(.wp-block-image,.wp-block-post-featured-image)):has(>.wp-block-group) > .wp-block-group:last-child { flex: 1; }
.nordhov-block .wp-block-post-template > li:has(>.is-style-card) { display: flex; }
.nordhov-block .wp-block-post-template > li:has(>.is-style-card) > .is-style-card { width: 100%; }

/* Approved light hero gradients: dark at the top, light at the bottom. */
.nordhov-hero-gradient--blue {
    background: linear-gradient(
        180deg,
        var(--wp--preset--color--bla-01, #99d9e8) 0%,
        var(--wp--preset--color--bla-04, #defaff) 100%
    );
}
.nordhov-hero-gradient--pink {
    background: linear-gradient(
        180deg,
        var(--wp--preset--color--rosa-01, #f5badb) 0%,
        var(--wp--preset--color--rosa-04, #ffe8f7) 100%
    );
}
.nordhov-hero-gradient--accent {
    background: linear-gradient(
        180deg,
        var(--wp--preset--color--accent, #e3e875) 0%,
        var(--wp--preset--color--gra, #efeded) 100%
    );
}
.nordhov-hero-gradient--gray {
    background: var(--wp--preset--color--gra, #efeded);
}
.nordhov-hero-gradient--plum {
    background: var(--wp--preset--color--plommon-01, #6b294a);
    color: var(--wp--preset--color--white, #fff);
}
.nordhov-hero-gradient--teal {
    background: var(--wp--preset--color--teal-01, #0d525c);
    color: var(--wp--preset--color--white, #fff);
}
.nordhov-hero__media { width: 100%; }
.nordhov-hero__media:is(.is-style-card, .is-style-leaf) {
    aspect-ratio: 4 / 3;
    min-height: 0;
}
.nordhov-hero__media:is(.is-style-card, .is-style-leaf) img {
    display: block;
    width: 100%;
    height: 100%;
}

/* Linked listing cards expose one semantic link across the full card surface. */
.nordhov-click-card {
    position: relative;
    isolation: isolate;
    transform: translate3d(0, 0, 0);
    transition: transform .2s ease, box-shadow .2s ease;
}
.nordhov-click-card .nordhov-card-link::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    content: "";
}
.nordhov-click-card:is(:hover, :focus-within) { transform: translate3d(0, -.2rem, 0); }
.nordhov-click-card:is(.is-style-card, .is-style-leaf):is(:hover, :focus-within) {
    box-shadow: 0 .75rem 1.75rem color-mix(in srgb, var(--color-brand) 16%, transparent);
}
.nordhov-click-card:has(.nordhov-card-link:focus-visible) {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}
.nordhov-click-card .nordhov-card-link:focus-visible { outline: 0; }

/* Stable replacements for WordPress-generated wp-container-* support hashes. */
.nh-columns-nowrap { flex-wrap: nowrap; }
.nordhov-block .nh-columns-editorial { gap: var(--nh-gap-editorial); }
.nh-columns-cards { align-items: stretch; flex-wrap: nowrap; gap: clamp(1.5rem, 3vw, 3rem) var(--wp--preset--spacing--60, 2.5rem); }
.nh-columns-cards > .wp-block-column { display: flex; flex-direction: column; }
.nh-columns-cards > .wp-block-column > .wp-block-image { flex: 0 0 auto; }
.nh-columns-cards > .wp-block-column > .wp-block-paragraph:last-child {
    align-items: center;
    display: flex;
    flex: 1;
}
.nh-gap-0 { gap: 0; }
.nh-buttons-end { justify-content: flex-end; }
.nh-buttons-center { justify-content: center; }
.nh-stack-015 > * { margin-block: 0; }
.nh-stack-015 > * + * { margin-block-start: .15rem; }
.nh-stack-05 > * { margin-block: 0; }
.nh-stack-05 > * + * { margin-block-start: .5rem; }
.nh-stack-06 > * { margin-block: 0; }
.nh-stack-06 > * + * { margin-block-start: .6rem; }
.nh-stack-075 > * { margin-block: 0; }
.nh-stack-075 > * + * { margin-block-start: .75rem; }
.nh-stack-1 > * { margin-block: 0; }
.nh-stack-1 > * + * { margin-block-start: 1rem; }
.nh-stack-175 > * { margin-block: 0; }
.nh-stack-175 > * + * { margin-block-start: 1.75rem; }
.nh-stack-2 > * { margin-block: 0; }
.nh-stack-2 > * + * { margin-block-start: 2rem; }
.nh-stack-40 > * { margin-block: 0; }
.nh-stack-40 > * + * { margin-block-start: var(--wp--preset--spacing--40, 1.5rem); }
.nh-stack-60 > * { margin-block: 0; }
.nh-stack-60 > * + * { margin-block-start: var(--wp--preset--spacing--60, 2.5rem); }
.nh-stack-80 > * { margin-block: 0; }
.nh-stack-80 > * + * { margin-block-start: var(--wp--preset--spacing--80, clamp(3rem, 6vw, 6rem)); }
.nh-negative-x-20 > .alignfull { margin-inline: calc(var(--wp--preset--spacing--20, 1rem) * -1); }
.nh-negative-x-60 > .alignfull { margin-inline: calc(var(--wp--preset--spacing--60, 2.5rem) * -1); }
.nh-negative-x-card > .alignfull { margin-inline: calc(clamp(2rem, 4vw, 3rem) * -1); }
.nh-no-right-margin > .alignfull { margin-right: 0; }
.nh-width-34 > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: 34rem; margin-inline: auto !important; }
.nh-width-34 > .alignwide { max-width: 34rem; }
.nh-width-34 .alignfull { max-width: none; }
.nh-width-40 > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: 40rem; margin-inline: auto !important; }
.nh-width-40 > .alignwide { max-width: 40rem; }
.nh-width-40 .alignfull { max-width: none; }
.nh-width-44-left > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: 44rem; margin-left: 0 !important; margin-right: auto !important; }
.nh-width-44-left > .alignwide { max-width: 44rem; }
.nh-width-44-left .alignfull { max-width: none; }
.nh-grid-auto-four {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
    container-type: inline-size;
    gap: var(--wp--preset--spacing--60, 2.5rem);
}
.nh-grid-four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wp--preset--spacing--40, 1.5rem); }
.nh-grid-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
.nh-grid-one { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wp--preset--spacing--60, 2.5rem); }
.nh-container {
    width: min(75rem, calc(100% - var(--container-pad, clamp(1.25rem, 4vw, 2.5rem)) - var(--container-pad, clamp(1.25rem, 4vw, 2.5rem))));
    max-width: none;
    margin-inline: auto;
}
.nh-links-plum a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--plommon-02, #42031c); }
.nh-links-white a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--white, #fff); }
.nh-flip-x { transform: scaleX(-1); }

/* Team and news cards match height inside their own row, never across later rows. */
.medarbetare-rutnat .wp-block-post-template,
.nordhov-news-showcase__results .wp-block-post-template {
    align-items: stretch;
    grid-auto-rows: auto !important;
}
.medarbetare-rutnat .wp-block-post-template > li,
.nordhov-news-showcase__results .wp-block-post-template > li {
    align-self: stretch;
    height: auto !important;
    min-height: 0;
}
.medarbetare-rutnat .wp-block-post-template > li > .is-style-card,
.nordhov-news-showcase__results .wp-block-post-template > li > .is-style-card {
    height: 100%;
    min-height: 0;
}

/* People: gapless, alternating photo/information tiles. Each person remains one article. */
.nordhov-people-section {
    padding-block: var(--wp--preset--spacing--80, clamp(3rem, 6vw, 6rem));
}
.nordhov-people-section__inner { max-width: 100%; }
.nordhov-people-section__intro {
    max-width: 44rem;
    margin: 0 0 clamp(2.5rem, 5vw, 4.5rem);
}
.nordhov-people-section__intro :is(h2, p) { margin-inline: 0; }
.nordhov-people-section__listing { margin: 0; }
.nordhov-person-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nordhov-person-card {
    --nordhov-person-media: var(--wp--preset--color--rosa-01, #f5badb);
    --nordhov-person-body: var(--wp--preset--color--teal-01, #0d525c);
    --nordhov-person-text: var(--wp--preset--color--white, #fff);
    --nordhov-person-corner-start: var(--wp--preset--color--gra, #efeded);
    --nordhov-person-corner-end: var(--wp--preset--color--gra, #efeded);
    --nordhov-person-tablet-corner-start: var(--wp--preset--color--gra, #efeded);
    --nordhov-person-tablet-corner-end: var(--wp--preset--color--gra, #efeded);
    --nordhov-person-mobile-corner-start: var(--wp--preset--color--gra, #efeded);
    --nordhov-person-mobile-corner-end: var(--wp--preset--color--gra, #efeded);
    min-width: 0;
    margin: 0 !important;
}
.nordhov-person-card--tone-2 {
    --nordhov-person-media: var(--wp--preset--color--accent, #e3e875);
    --nordhov-person-body: var(--wp--preset--color--plommon-01, #6b294a);
    --nordhov-person-text: var(--wp--preset--color--white, #fff);
}
.nordhov-person-card--tone-3 {
    --nordhov-person-media: var(--wp--preset--color--plommon-01, #6b294a);
    --nordhov-person-body: var(--wp--preset--color--accent, #e3e875);
    --nordhov-person-text: var(--wp--preset--color--plommon-02, #42031c);
}
.nordhov-person-card--tone-4 {
    --nordhov-person-media: var(--wp--preset--color--rosa-01, #f5badb);
    --nordhov-person-body: var(--wp--preset--color--bla-01, #99d9e8);
    --nordhov-person-text: var(--wp--preset--color--plommon-02, #42031c);
}
.nordhov-person-card--tone-5 {
    --nordhov-person-media: var(--wp--preset--color--bla-01, #99d9e8);
    --nordhov-person-body: var(--wp--preset--color--rosa-01, #f5badb);
    --nordhov-person-text: var(--wp--preset--color--plommon-02, #42031c);
}
.nordhov-person-card--tone-6 {
    --nordhov-person-media: var(--wp--preset--color--teal-01, #0d525c);
    --nordhov-person-body: var(--wp--preset--color--accent, #e3e875);
    --nordhov-person-text: var(--wp--preset--color--plommon-02, #42031c);
}
.nordhov-person-card--tone-7 {
    --nordhov-person-media: var(--wp--preset--color--accent, #e3e875);
    --nordhov-person-body: var(--wp--preset--color--teal-01, #0d525c);
    --nordhov-person-text: var(--wp--preset--color--white, #fff);
}
.nordhov-person-card--tone-8 {
    --nordhov-person-media: var(--wp--preset--color--bla-01, #99d9e8);
    --nordhov-person-body: var(--wp--preset--color--plommon-01, #6b294a);
    --nordhov-person-text: var(--wp--preset--color--white, #fff);
}
.nordhov-person-card--tone-9 {
    --nordhov-person-media: var(--wp--preset--color--plommon-01, #6b294a);
    --nordhov-person-body: var(--wp--preset--color--bla-01, #99d9e8);
    --nordhov-person-text: var(--wp--preset--color--plommon-02, #42031c);
}
.nordhov-person-card--tone-10 {
    --nordhov-person-media: var(--wp--preset--color--teal-01, #0d525c);
    --nordhov-person-body: var(--wp--preset--color--rosa-01, #f5badb);
    --nordhov-person-text: var(--wp--preset--color--plommon-02, #42031c);
}
.nordhov-person-card--corner-start-1 { --nordhov-person-corner-start: var(--wp--preset--color--teal-01, #0d525c); }
.nordhov-person-card--corner-end-1 { --nordhov-person-corner-end: var(--wp--preset--color--teal-01, #0d525c); }
.nordhov-person-card--corner-start-2 { --nordhov-person-corner-start: var(--wp--preset--color--plommon-01, #6b294a); }
.nordhov-person-card--corner-end-2 { --nordhov-person-corner-end: var(--wp--preset--color--plommon-01, #6b294a); }
.nordhov-person-card--corner-start-3 { --nordhov-person-corner-start: var(--wp--preset--color--accent, #e3e875); }
.nordhov-person-card--corner-end-3 { --nordhov-person-corner-end: var(--wp--preset--color--accent, #e3e875); }
.nordhov-person-card--corner-start-4 { --nordhov-person-corner-start: var(--wp--preset--color--bla-01, #99d9e8); }
.nordhov-person-card--corner-end-4 { --nordhov-person-corner-end: var(--wp--preset--color--bla-01, #99d9e8); }
.nordhov-person-card--corner-start-5 { --nordhov-person-corner-start: var(--wp--preset--color--rosa-01, #f5badb); }
.nordhov-person-card--corner-end-5 { --nordhov-person-corner-end: var(--wp--preset--color--rosa-01, #f5badb); }
.nordhov-person-card--corner-start-6 { --nordhov-person-corner-start: var(--wp--preset--color--accent, #e3e875); }
.nordhov-person-card--corner-end-6 { --nordhov-person-corner-end: var(--wp--preset--color--accent, #e3e875); }
.nordhov-person-card--corner-start-7 { --nordhov-person-corner-start: var(--wp--preset--color--teal-01, #0d525c); }
.nordhov-person-card--corner-end-7 { --nordhov-person-corner-end: var(--wp--preset--color--teal-01, #0d525c); }
.nordhov-person-card--corner-start-8 { --nordhov-person-corner-start: var(--wp--preset--color--plommon-01, #6b294a); }
.nordhov-person-card--corner-end-8 { --nordhov-person-corner-end: var(--wp--preset--color--plommon-01, #6b294a); }
.nordhov-person-card--corner-start-9 { --nordhov-person-corner-start: var(--wp--preset--color--bla-01, #99d9e8); }
.nordhov-person-card--corner-end-9 { --nordhov-person-corner-end: var(--wp--preset--color--bla-01, #99d9e8); }
.nordhov-person-card--corner-start-10 { --nordhov-person-corner-start: var(--wp--preset--color--rosa-01, #f5badb); }
.nordhov-person-card--corner-end-10 { --nordhov-person-corner-end: var(--wp--preset--color--rosa-01, #f5badb); }
.nordhov-person-card--tablet-corner-start-1 { --nordhov-person-tablet-corner-start: var(--wp--preset--color--teal-01, #0d525c); }
.nordhov-person-card--tablet-corner-end-1 { --nordhov-person-tablet-corner-end: var(--wp--preset--color--teal-01, #0d525c); }
.nordhov-person-card--tablet-corner-start-2 { --nordhov-person-tablet-corner-start: var(--wp--preset--color--plommon-01, #6b294a); }
.nordhov-person-card--tablet-corner-end-2 { --nordhov-person-tablet-corner-end: var(--wp--preset--color--plommon-01, #6b294a); }
.nordhov-person-card--tablet-corner-start-3 { --nordhov-person-tablet-corner-start: var(--wp--preset--color--rosa-01, #f5badb); }
.nordhov-person-card--tablet-corner-end-3 { --nordhov-person-tablet-corner-end: var(--wp--preset--color--rosa-01, #f5badb); }
.nordhov-person-card--tablet-corner-start-4 { --nordhov-person-tablet-corner-start: var(--wp--preset--color--accent, #e3e875); }
.nordhov-person-card--tablet-corner-end-4 { --nordhov-person-tablet-corner-end: var(--wp--preset--color--accent, #e3e875); }
.nordhov-person-card--tablet-corner-start-5 { --nordhov-person-tablet-corner-start: var(--wp--preset--color--bla-01, #99d9e8); }
.nordhov-person-card--tablet-corner-end-5 { --nordhov-person-tablet-corner-end: var(--wp--preset--color--bla-01, #99d9e8); }
.nordhov-person-card--mobile-corner-start-1 { --nordhov-person-mobile-corner-start: var(--wp--preset--color--teal-01, #0d525c); }
.nordhov-person-card--mobile-corner-end-1 { --nordhov-person-mobile-corner-end: var(--wp--preset--color--teal-01, #0d525c); }
.nordhov-person-card--mobile-corner-start-2 { --nordhov-person-mobile-corner-start: var(--wp--preset--color--plommon-01, #6b294a); }
.nordhov-person-card--mobile-corner-end-2 { --nordhov-person-mobile-corner-end: var(--wp--preset--color--plommon-01, #6b294a); }
.nordhov-person-card--mobile-corner-start-3 { --nordhov-person-mobile-corner-start: var(--wp--preset--color--rosa-01, #f5badb); }
.nordhov-person-card--mobile-corner-end-3 { --nordhov-person-mobile-corner-end: var(--wp--preset--color--rosa-01, #f5badb); }
.nordhov-person-card--mobile-corner-start-4 { --nordhov-person-mobile-corner-start: var(--wp--preset--color--accent, #e3e875); }
.nordhov-person-card--mobile-corner-end-4 { --nordhov-person-mobile-corner-end: var(--wp--preset--color--accent, #e3e875); }
.nordhov-person-card--mobile-corner-start-5 { --nordhov-person-mobile-corner-start: var(--wp--preset--color--bla-01, #99d9e8); }
.nordhov-person-card--mobile-corner-end-5 { --nordhov-person-mobile-corner-end: var(--wp--preset--color--bla-01, #99d9e8); }
.nordhov-person-card__inner {
    display: grid;
    grid-template-areas: "media body";
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-height: 18rem;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background: var(--nordhov-person-body);
}
.nordhov-person-grid > li:nth-child(4n + 3) .nordhov-person-card__inner,
.nordhov-person-grid > li:nth-child(4n + 4) .nordhov-person-card__inner {
    grid-template-areas: "body media";
}
.nordhov-person-grid > li:last-child .nordhov-person-card__inner {
    border-bottom-right-radius: clamp(3rem, 7vw, 7rem);
}
.nordhov-person-card .nordhov-person-card__media {
    grid-area: media;
    position: relative;
    align-self: stretch;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--nordhov-person-corner-start) 0 49.9%,
        var(--nordhov-person-corner-end) 50.1% 100%
    );
}
.nordhov-person-card .nordhov-person-card__media::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    border-radius: 50% 0 50% 0;
    background: var(--nordhov-person-media);
}
.nordhov-person-card .nordhov-person-card__media img {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50% 0 50% 0;
    object-fit: cover;
    object-position: center top;
}
.nordhov-person-card .nordhov-person-card__media.is-fallback {
    background-color: var(--wp--preset--color--gra, #efeded);
}
.nordhov-person-card .nordhov-person-card__media.is-fallback img {
    object-fit: cover !important;
    object-position: center;
    padding: 0;
}

/* Rich Content also works as a self-contained section on mixed block pages. */
.nordhov-rich-content {
    width: 100%;
    margin: 0;
    background: var(--wp--preset--color--gra, #efeded);
}
.nordhov-rich-content__inner > * { width: 100%; max-width: 54rem; }
.nordhov-rich-content__inner > * + * { margin-block-start: 1.25rem; }
.nordhov-native-page-content .nordhov-rich-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-block: 0 !important;
}
.nordhov-native-page-content .nordhov-rich-content__inner {
    width: 100%;
    margin-inline: 0;
}
.nordhov-person-card .nordhov-person-card__body {
    grid-area: body;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: clamp(1.25rem, 2.6vw, 2.5rem);
    background: var(--nordhov-person-body);
    color: var(--nordhov-person-text);
    text-align: center;
}
.nordhov-person-card .nordhov-person-card__body :is(h3, p) { margin: 0; color: inherit; }
.nordhov-person-card .nordhov-person-card__body h3 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.1vw, 2rem);
    font-weight: 600;
    line-height: 1.08;
    overflow-wrap: anywhere;
}
.nordhov-person-card .nordhov-person-card__body .medarbetare-kort__befattning {
    margin-top: .4rem;
    font-size: clamp(1rem, 1.45vw, 1.25rem);
    line-height: 1.25;
}
.nordhov-person-card .nordhov-person-card__contact {
    display: grid;
    gap: .15rem;
    margin-top: clamp(.9rem, 1.6vw, 1.4rem);
    font-size: clamp(1rem, 1.15vw, 1.05rem);
    line-height: 1.25;
}
.nordhov-person-card .nordhov-person-card__body a {
    color: inherit;
    overflow-wrap: anywhere;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}
@media (max-width: 960px) {
    .nordhov-person-card--tablet-tone-1 {
        --nordhov-person-media: var(--wp--preset--color--rosa-01, #f5badb);
        --nordhov-person-body: var(--wp--preset--color--teal-01, #0d525c);
        --nordhov-person-text: var(--wp--preset--color--white, #fff);
    }
    .nordhov-person-card--tablet-tone-2 {
        --nordhov-person-media: var(--wp--preset--color--accent, #e3e875);
        --nordhov-person-body: var(--wp--preset--color--plommon-01, #6b294a);
        --nordhov-person-text: var(--wp--preset--color--white, #fff);
    }
    .nordhov-person-card--tablet-tone-3 {
        --nordhov-person-media: var(--wp--preset--color--bla-01, #99d9e8);
        --nordhov-person-body: var(--wp--preset--color--rosa-01, #f5badb);
        --nordhov-person-text: var(--wp--preset--color--plommon-02, #42031c);
    }
    .nordhov-person-card--tablet-tone-4 {
        --nordhov-person-media: var(--wp--preset--color--teal-01, #0d525c);
        --nordhov-person-body: var(--wp--preset--color--accent, #e3e875);
        --nordhov-person-text: var(--wp--preset--color--plommon-02, #42031c);
    }
    .nordhov-person-card--tablet-tone-5 {
        --nordhov-person-media: var(--wp--preset--color--plommon-01, #6b294a);
        --nordhov-person-body: var(--wp--preset--color--bla-01, #99d9e8);
        --nordhov-person-text: var(--wp--preset--color--plommon-02, #42031c);
    }
    .nordhov-person-grid { grid-template-columns: minmax(0, 1fr); }
    .nordhov-person-grid > li:nth-child(n) .nordhov-person-card__inner { grid-template-areas: "media body"; }
    .nordhov-person-grid > li:nth-child(even) .nordhov-person-card__inner { grid-template-areas: "body media"; }
    .nordhov-person-card {
        --nordhov-person-corner-start: var(--nordhov-person-tablet-corner-start);
        --nordhov-person-corner-end: var(--nordhov-person-tablet-corner-end);
    }
}
@media (max-width: 620px) {
    .nordhov-person-card--mobile-tone-1 {
        --nordhov-person-media: var(--wp--preset--color--rosa-01, #f5badb);
        --nordhov-person-body: var(--wp--preset--color--teal-01, #0d525c);
        --nordhov-person-text: var(--wp--preset--color--white, #fff);
    }
    .nordhov-person-card--mobile-tone-2 {
        --nordhov-person-media: var(--wp--preset--color--accent, #e3e875);
        --nordhov-person-body: var(--wp--preset--color--plommon-01, #6b294a);
        --nordhov-person-text: var(--wp--preset--color--white, #fff);
    }
    .nordhov-person-card--mobile-tone-3 {
        --nordhov-person-media: var(--wp--preset--color--bla-01, #99d9e8);
        --nordhov-person-body: var(--wp--preset--color--rosa-01, #f5badb);
        --nordhov-person-text: var(--wp--preset--color--plommon-02, #42031c);
    }
    .nordhov-person-card--mobile-tone-4 {
        --nordhov-person-media: var(--wp--preset--color--teal-01, #0d525c);
        --nordhov-person-body: var(--wp--preset--color--accent, #e3e875);
        --nordhov-person-text: var(--wp--preset--color--plommon-02, #42031c);
    }
    .nordhov-person-card--mobile-tone-5 {
        --nordhov-person-media: var(--wp--preset--color--plommon-01, #6b294a);
        --nordhov-person-body: var(--wp--preset--color--bla-01, #99d9e8);
        --nordhov-person-text: var(--wp--preset--color--plommon-02, #42031c);
    }
    .nordhov-person-grid > li:nth-child(n) .nordhov-person-card__inner {
        grid-template-areas: "media" "body";
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        aspect-ratio: auto;
    }
    .nordhov-person-card {
        --nordhov-person-corner-start: var(--nordhov-person-mobile-corner-start);
        --nordhov-person-corner-end: var(--nordhov-person-mobile-corner-end);
    }
    .nordhov-person-card .nordhov-person-card__media { aspect-ratio: 1 / 1; }
    .nordhov-person-card .nordhov-person-card__body { min-height: 13rem; }
}

/* Cover CTA curve: above the photo/dim layer, below the content card. */
.nordhov-cover-cta {
    --nordhov-cover-curve-color: var(--wp--preset--color--accent, #e3e875);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.nordhov-cover-cta--curve-blue { --nordhov-cover-curve-color: #98d8e8; }
.nordhov-cover-cta--curve-plum { --nordhov-cover-curve-color: #6a294a; }
.nordhov-cover-cta--curve-pink { --nordhov-cover-curve-color: #f4b9dc; }
.nordhov-cover-cta--curve-teal { --nordhov-cover-curve-color: #0d515b; }
.nordhov-cover-cta > .wp-block-cover__image-background {
    position: absolute;
    display: block;
    z-index: 0 !important;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover !important;
    object-position: 50% 50% !important;
}
.nordhov-cover-cta > .wp-block-cover__background { z-index: 1 !important; }
.nordhov-cover-cta__card-wrap {
    /* Kurva-01 has a 22-unit stroke across a 423.53-unit viewBox.
       Each SVG therefore extends by exactly one rendered stroke width at
       both horizontal ends, keeping its cut ends concealed at every size. */
    --nordhov-cover-curve-edge-inset: 5.194%;
    --nordhov-cover-curve-edge-outset: -5.194%;
    position: relative;
    isolation: isolate;
    width: min(34rem, calc(100vw - 4rem));
    margin-inline: auto !important;
}
.nordhov-cover-cta__card-wrap > .nordhov-cover-cta__curve {
    position: absolute;
    display: block;
    z-index: 0 !important;
    width: max(8rem, calc(55.793vw - 55.793%)) !important;
    max-width: none !important;
    aspect-ratio: 423.53 / 387.04;
    background-color: var(--nordhov-cover-curve-color);
    -webkit-mask-image: url("../images/kurva-01-accent.svg");
    mask-image: url("../images/kurva-01-accent.svg");
    -webkit-mask-position: 50% 50%;
    mask-position: 50% 50%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    margin: 0 !important;
    pointer-events: none;
    user-select: none;
}
.nordhov-cover-cta__curve--left {
    top: 78%;
    right: 100%;
    left: auto;
    transform: translate(var(--nordhov-cover-curve-edge-inset), -26.28%);
}
.nordhov-cover-cta__curve--right {
    top: 22%;
    right: auto;
    left: 100%;
    transform: translate(var(--nordhov-cover-curve-edge-outset), -76.36%);
}
.nordhov-cover-cta > .wp-block-cover__inner-container {
    position: relative;
    z-index: 3 !important;
}
.nordhov-cover-cta .nh-negative-x-card {
    position: relative;
    z-index: 1;
    background-color: var(--wp--preset--color--gra, #efeded) !important;
}
@media (max-width: 600px) {
    .nordhov-cover-cta__card-wrap > .nordhov-cover-cta__curve {
        display: none !important;
    }
    .nordhov-cover-cta::after {
        content: "";
        position: absolute;
        z-index: 2 !important;
        /* Kurva-02 has a 22-unit stroke across a 663.31-unit viewBox.
           Extend both horizontal ends by one rendered stroke width so the
           flat SVG endpoints remain outside the viewport at every width. */
        inset-block: 0;
        inset-inline: -3.552vw;
        background-color: var(--nordhov-cover-curve-color);
        -webkit-mask-image: url("../images/kurva-02-accent.svg");
        mask-image: url("../images/kurva-02-accent.svg");
        -webkit-mask-position: 50% 50%;
        mask-position: 50% 50%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-size: cover;
        mask-size: cover;
        pointer-events: none;
    }
}

/* Visible fallback page title used only when no eligible section has a heading. */
.nordhov-section-page-title {
    margin: 0;
    padding-block: clamp(2.5rem, 6vw, 5rem);
    color: var(--wp--preset--color--plommon-02, #42031c);
    background: var(--wp--preset--color--gra, #efeded);
}
.nordhov-section-page-title h1 { margin: 0; }
/* Advice-page feature sections and structured external resource buttons. */
.nordhov-feature-list__heading { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.nordhov-feature-list__item-heading {
    font-size: clamp(1.15rem, 1.7vw, 1.5rem);
    line-height: 1.2;
}
.nordhov-text-image:not(.nordhov-text-image--image-leaf) .nordhov-text-image__columns {
    align-items: stretch !important;
}
.nordhov-text-image:not(.nordhov-text-image--image-leaf) .nordhov-text-image__media-column {
    display: flex;
    align-self: stretch !important;
}
.nordhov-text-image:not(.nordhov-text-image--image-leaf) .nordhov-text-image__media {
    position: relative;
    width: 100%;
    min-height: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.nordhov-text-image:not(.nordhov-text-image--image-leaf) .nordhov-text-image__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nordhov-text-image--fit-contain .nordhov-text-image__media img { object-fit: contain; }
.nordhov-text-image--structured .wp-block-image { width: 100%; }
.nordhov-text-image--structured .nordhov-text-image__content > :is(h2, h3):not(.wp-block-heading) {
    font-size: clamp(1.15rem, 1.7vw, 1.5rem);
    line-height: 1.2;
}
.nordhov-text-image--structured .nordhov-text-image__content > p + :is(h2, h3) { margin-block-start: clamp(1.25rem, 2vw, 1.75rem); }
.nordhov-text-image--structured .nordhov-text-image__content > :is(h2, h3) + p { margin-block-start: .4rem; }
.nordhov-external-links { padding-block: var(--wp--preset--spacing--80, clamp(3rem, 6vw, 6rem)); }
.nordhov-external-links__intro { max-width: 52rem; }
.nordhov-external-links__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem clamp(1rem, 2vw, 1.5rem);
    margin: clamp(2rem, 4vw, 3rem) 0 0;
    padding: 0;
    list-style: none;
}
.nordhov-block .nordhov-external-links a.nordhov-external-links__button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    min-height: 3.5rem;
    padding: .8rem 1.2rem;
    border-radius: var(--radius-button);
    background: var(--accent);
    color: var(--color-brand);
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none;
    transition: background-color .2s ease;
}
.nordhov-block .nordhov-external-links a.nordhov-external-links__button:hover,
.nordhov-block .nordhov-external-links a.nordhov-external-links__button:focus-visible {
    background: var(--accent-hover);
    color: var(--color-brand);
    text-decoration: none;
}

/* Newsletter archive: retain the original text-and-leaf rows; keep signup compact in the header. */
.nordhov-newsletters__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 34rem);
    gap: var(--nh-gap-editorial);
    align-items: start;
}
.nordhov-newsletters__intro { max-width: 38rem; }
.nordhov-newsletter-signup {
    width: 100%;
    max-width: 34rem;
    margin: 0;
    padding: 0;
    justify-self: end;
    background: transparent;
    color: inherit;
}
.nordhov-newsletter-signup__heading {
    margin: 0 0 .65rem;
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    font-weight: 600;
    line-height: 1.2;
}
.nordhov-newsletter-signup .gform_wrapper { margin: 0; color: inherit; }
.nordhov-newsletters .nordhov-newsletter-signup .nordhov-gravity-form .gform_body {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    background: transparent;
}
.nordhov-newsletter-signup__form .gform_wrapper form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 0;
}
.nordhov-newsletter-signup .gform_heading,
.nordhov-newsletter-signup .gform_required_legend,
.nordhov-newsletter-signup .gfield_label,
.nordhov-newsletter-signup .gfield:not(.gfield--type-email):not(.gfield--type-honeypot),
.nordhov-newsletter-signup .gfield_required { display: none !important; }
.nordhov-newsletters .nordhov-newsletter-signup .gform_wrapper .gform_fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: .65rem;
}
.nordhov-newsletters .nordhov-newsletter-signup .gform_wrapper .gfield { grid-column: 1 / -1 !important; }
.nordhov-newsletter-signup .gfield_checkbox .gchoice {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
}
.nordhov-newsletter-signup .gfield--type-checkbox > .gfield_label { display: none; }
.nordhov-newsletter-signup .gfield_checkbox input { flex: 0 0 auto; margin-top: .25rem; }
.nordhov-newsletter-signup .gfield_checkbox label { max-width: 22rem; font-size: .76rem; line-height: 1.35; }
.nordhov-newsletters .nordhov-newsletter-signup .gform_wrapper .gform_fields > .gfield:first-child :is(input, select) {
    min-height: 2.9rem;
    border-radius: .5rem 0 0 .5rem;
}
.nordhov-newsletters .nordhov-newsletter-signup .gform_wrapper .gform_footer {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin: 0 !important;
    padding: 0 !important;
}
.nordhov-newsletters .nordhov-newsletter-signup .gform_wrapper .gform_footer :is(input.gform_button, button.gform_button) {
    width: auto !important;
    min-height: 2.9rem !important;
    margin: 0 !important;
    padding: .75rem 1.35rem !important;
    border: 0 !important;
    border-radius: 0 .5rem .5rem 0 !important;
    background: var(--accent) !important;
    color: var(--color-brand) !important;
    font: 600 1.05rem/1.1 var(--font-display) !important;
    box-shadow: none !important;
}
.nordhov-newsletters__list,
.nordhov-newsletters__list > li,
.nordhov-newsletters__list > li > .wp-block-columns { width: 100%; }
.nordhov-newsletters__list { gap: clamp(3.5rem, 5vw, 5rem); }
.nordhov-newsletters__header + [data-newsletter-results] {
    margin-block-start: clamp(4rem, 7vw, 6rem);
}
.nordhov-newsletters__list > li > .wp-block-columns {
    display: grid !important;
    grid-template-columns: minmax(0, 38rem) minmax(24rem, 32rem);
    align-items: center !important;
    justify-content: space-between;
    column-gap: clamp(3rem, 8vw, 11rem);
}
.nordhov-newsletters__copy,
.nordhov-newsletters__visual {
    width: 100%;
    min-width: 0;
}
.nordhov-newsletters__visual {
    max-width: 32rem;
    margin-left: 0;
    justify-self: end;
}
.nordhov-newsletters__copy { max-width: 38rem; }
.nordhov-newsletters__list .wp-block-post-title {
    max-width: 30rem;
    line-height: 1.18;
}
.nordhov-newsletters__list .wp-block-post-excerpt { max-width: 38rem; }
.nordhov-newsletter-title-link {
    display: inline-flex;
    align-items: baseline;
    gap: .35em;
}
.nordhov-newsletter-title-link.is-unlinked { cursor: default; }
.nordhov-newsletter-title-link .nordhov-external-arrow {
    flex: none;
    font-size: .72em;
    line-height: 1;
}
.nordhov-newsletters__media,
.nordhov-newsletters__media img {
    width: 100%;
    height: 100%;
}
.nordhov-newsletters__media.is-fallback,
.nordhov-news-showcase .wp-block-post-featured-image.is-fallback,
.nordhov-article__featured.is-fallback {
    background: var(--wp--preset--color--teal-01, #0d525c);
}
.montania-bildplatshallare,
.nordhov-newsletters__media,
.nordhov-news-showcase .wp-block-post-featured-image,
.nordhov-article__featured { position: relative; overflow: hidden; }
.montania-bildplatshallare > .nordhov-fallback-image,
.nordhov-newsletters__media > .nordhov-fallback-image,
.nordhov-news-showcase .wp-block-post-featured-image > .nordhov-fallback-image,
.nordhov-article__featured > .nordhov-fallback-image,
.nordhov-fallback-image--news {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
}
.nordhov-newsletters {
    background: var(--wp--preset--gradient--hero, linear-gradient(180deg, #99d9e8 0%, #defaff 100%)) !important;
}
.nordhov-newsletters__load-more,
.nordhov-news-showcase__load-more { margin-top: var(--wp--preset--spacing--60, 2.5rem); text-align: center; }
.nordhov-newsletters__load-more .wp-element-button { background: var(--accent); color: var(--color-brand); }

/* Gravity Forms, scoped to Nordhov's form block so plugin/admin styles stay isolated. */
.nordhov-contact-section {
    gap: 0;
    padding-block: clamp(3rem, 5vw, 5rem);
}
.nordhov-contact-section .contact__head {
    width: min(100%, 56rem);
    max-width: 56rem;
    margin-inline: auto;
}
.nordhov-contact-section .contact__head h2 {
    font-size: clamp(2.35rem, 4vw, 3.25rem);
}
.nordhov-contact-section .contact__head p {
    max-width: 56rem;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1.45;
}
.wrapper .nordhov-form,
.editor-styles-wrapper .nordhov-form {
    width: min(75rem, calc(100% - var(--container-pad, clamp(1.25rem, 4vw, 2.5rem)) - var(--container-pad, clamp(1.25rem, 4vw, 2.5rem))));
    max-width: none;
    margin: clamp(3.5rem, 5vw, 5rem) auto 0;
}
.nordhov-contact-section > .nordhov-form:first-child { margin-top: 0; }
.nordhov-gravity-form .gform_wrapper {
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--color-brand);
    border: 0;
    border-radius: 0;
}
.nordhov-gravity-form :is(.gform_validation_container, .gfield--type-honeypot) {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.nordhov-gravity-form fieldset.gfield {
    min-inline-size: 0;
    border: 0;
}
.nordhov-gravity-form .gform_body {
    padding: clamp(2rem, 4vw, 3.5rem);
    background: #F7F5F5;
    border: 0;
    border-radius: 0;
}
.nordhov-gravity-form .gform_required_legend {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.nordhov-contact-section .nordhov-gravity-form .gform_wrapper .gform_fields {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 1.35rem 1.25rem;
}
.nordhov-contact-section .nordhov-gravity-form .gform_wrapper .gfield {
    grid-column: span 12 !important;
    margin: 0;
    padding: 0;
}
.nordhov-contact-section .nordhov-gravity-form .gform_wrapper .gfield.nordhov-gf-half {
    grid-column: span 6 !important;
}
.nordhov-gravity-form .gfield_label {
    display: block;
    margin-bottom: .45rem;
    font-family: var(--font-body);
    font-weight: 500;
}
.nordhov-gravity-form .gfield_required { color: var(--wp--preset--color--rosa-02, #915278); }
.nordhov-gravity-form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), select, textarea) {
    width: 100%;
    min-height: 3.5rem;
    padding: .9rem 1rem;
    border: 1px solid color-mix(in srgb, var(--color-brand) 22%, transparent);
    border-radius: .5rem;
    background: var(--wp--preset--color--white, #fff);
    color: var(--color-brand);
    font: inherit;
    box-shadow: 0 2px 6px color-mix(in srgb, var(--color-brand) 12%, transparent);
}
.nordhov-gravity-form :is(input, textarea)::placeholder {
    color: color-mix(in srgb, var(--color-brand) 38%, var(--wp--preset--color--white, #fff));
    opacity: 1;
}
.nordhov-gravity-form textarea { min-height: 8.5rem; resize: vertical; }
.nordhov-gravity-form :is(input, select, textarea):focus-visible {
    border-color: var(--color-brand);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.nordhov-gravity-form .gfield_error :is(input, select, textarea) {
    border-color: var(--wp--preset--color--rosa-02, #915278);
}
.nordhov-gravity-form .gfield--type-checkbox .gchoice,
.nordhov-gravity-form .gfield_checkbox .gchoice {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
}
.nordhov-gravity-form .gfield_checkbox input { flex: 0 0 auto; margin-top: .3rem; }
.nordhov-gravity-form .gfield_checkbox label { max-width: none; }
.nordhov-gravity-form .gform_footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0 0;
    padding: 0;
}
.nordhov-contact-section .nordhov-gravity-form .gform_wrapper .gform_footer :is(input.gform_button, button.gform_button) {
    width: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: .85rem 1.55rem !important;
    border: 0 !important;
    border-radius: var(--radius-button, 1rem) !important;
    background: var(--accent) !important;
    color: var(--color-brand) !important;
    font: 600 1.25rem/1.1 var(--font-display) !important;
    box-shadow: none !important;
    cursor: pointer;
}
.nordhov-contact-section .nordhov-gravity-form .gform_wrapper .gform_footer :is(input.gform_button, button.gform_button):hover {
    background: var(--accent-hover) !important;
}
.nordhov-gravity-form .gform_wrapper .gform_footer :is(input.gform_button, button.gform_button):focus-visible {
    outline: 2px solid var(--color-brand) !important;
    outline-offset: 3px;
}
.nordhov-gravity-form :is(.gfield_description, .validation_message) { margin-top: .4rem; font-size: .85rem; }
.nordhov-gravity-form :is(.gform_validation_errors, .gform_confirmation_message) {
    margin: 1.25rem 0 0;
    padding: .85rem 1rem;
    border: 1px solid color-mix(in srgb, var(--color-brand) 22%, transparent);
    border-radius: .5rem;
}

/* Service-page tree: editorial intro, curve/pink ground and responsive service leaves. */
.nordhov-service-links {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(4rem, 8vw, 7rem);
    background: var(--wp--preset--color--gra, #efeded) !important;
}
.nordhov-service-links::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: auto 0 0;
    height: 13rem;
    background: var(--wp--preset--color--rosa-01, #f5badb);
    pointer-events: none;
}
.nordhov-service-links__curve {
    position: absolute;
    z-index: 1;
    inset: auto 0 clamp(-32rem, -12vw, -8rem);
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: 50% 100%;
    pointer-events: none;
    user-select: none;
}
.nordhov-service-links__inner {
    position: relative;
    z-index: 2;
}
.nordhov-service-links__intro {
    width: min(100%, 43rem);
    margin: 0;
}
.nordhov-service-links__intro :is(h2, p) { margin-inline: 0; }
.nordhov-service-links__intro .wp-block-buttons { margin-top: clamp(1.75rem, 3vw, 2.75rem); }
.nordhov-service-links__nav { margin-top: clamp(3.5rem, 5vw, 5.5rem); }
.nordhov-service-links .montania-siblings__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.25rem, 2.5vw, 2.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}
.nordhov-service-links .montania-siblings__item {
    --radius-leaf: clamp(4.5rem, 7vw, 7rem);
    display: grid;
    position: relative;
    isolation: isolate;
    flex: 0 1 calc((100% - 7.5rem) / 4);
    min-width: 0;
    max-width: 20rem;
    aspect-ratio: 1.33 / 1;
    padding: 0;
    background-color: var(--wp--preset--color--bla-02, #1a6973) !important;
    background-image: none !important;
    color: var(--wp--preset--color--white, #fff) !important;
    box-shadow: none;
}
.nordhov-service-links .montania-siblings__item::before {
    background: var(--wp--preset--color--bla-03, #26808a);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}
.nordhov-service-links .montania-siblings__item > .montania-siblings__link {
    display: grid;
    position: absolute;
    z-index: 1;
    inset: 0;
    padding: clamp(1rem, 2vw, 1.75rem);
    place-items: center;
    color: inherit;
    font-size: clamp(1.15rem, 1.7vw, 1.55rem);
    line-height: 1.1;
    text-align: center;
    text-wrap: balance;
    text-decoration: none !important;
}
.nordhov-service-links .montania-siblings__item > a.montania-siblings__link:focus-visible {
    box-shadow: inset 0 0 0 4px var(--wp--preset--color--accent, #e7e65f);
    outline: 0;
}
.nordhov-service-links .montania-siblings__item--current {
    box-shadow: inset 0 0 0 4px var(--wp--preset--color--accent, #e7e65f);
}
@media (max-width: 959px) {
    .nordhov-service-links__curve {
        bottom: clamp(-4rem, -7vw, -2rem);
    }
    .nordhov-service-links .montania-siblings__item {
        flex-basis: calc((100% - 2.5rem) / 2);
    }
}
@media (max-width: 520px) {
    .nordhov-service-links { padding-block: 4rem; }
    .nordhov-service-links__curve { bottom: -1rem; }
    .nordhov-service-links__nav { margin-top: 5rem; }
    .nordhov-service-links .montania-siblings__item {
        flex-basis: min(100%, 20rem);
    }
}

/* One canonical news showcase on both the front page and Nyheter. */
.nordhov-news-showcase__inner {
    position: relative;
}
.nordhov-news-showcase__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}
.nordhov-news-showcase__heading .wp-block-buttons { flex: none; }
.nordhov-news-showcase__heading .wp-block-heading {
    font-size: clamp(1.75rem, 2vw, 2.25rem);
    line-height: 1.08;
}
.nordhov-news-showcase__featured-date {
    color: color-mix(in srgb, currentColor 72%, transparent);
    font-size: 0.875rem;
    font-weight: 600;
}
.nordhov-news-showcase__featured {
    width: 100%;
    max-width: 48rem;
    margin-top: clamp(2rem, 3vw, 3rem);
}
.nordhov-news-showcase__featured .wp-block-post-title {
    max-width: 46rem;
    font-size: clamp(1.5rem, 1.5vw, 2rem);
    line-height: 1.12;
}
.nordhov-news-showcase__featured .wp-block-post-excerpt__excerpt {
    max-width: 48rem;
    color: color-mix(in srgb, currentColor 76%, transparent);
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    font-weight: 500;
    line-height: 1.45;
}
.nordhov-news-showcase__results { margin-top: clamp(3rem, 5vw, 5rem); }
.nordhov-news-showcase__results .wp-block-post-template > li { display: flex; }
.nordhov-news-showcase__results .wp-block-post-template > li > .is-style-card { width: 100%; }
/*
 * Keep the archive cards overlapping the 200px brand-pattern band, while one
 * shared gap gives the Load More control equal breathing room above and below.
 */
.nordhov-news-showcase--archive.has-load-more {
    --nordhov-news-load-more-gap: clamp(2.75rem, 3.5vw, 3.25rem);
    padding-bottom: var(--nordhov-news-load-more-gap) !important;
}
.nordhov-news-showcase__load-more {
    display: flex;
    justify-content: center;
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.nordhov-news-showcase--archive.has-load-more .nordhov-news-showcase__load-more {
    margin-top: var(--nordhov-news-load-more-gap);
}
.nordhov-news-showcase__load-more button[aria-busy="true"] { cursor: wait; opacity: .75; }

@media (prefers-reduced-motion: reduce) {
    .nordhov-click-card { transition: none; }
    .nordhov-click-card:is(:hover, :focus-within) { transform: none; }
}

/* Contact-page offices and optional invoicing: responsive rows with no office limit. */
.nordhov-office-contact {
    background: var(--wp--preset--color--plommon-01, #6b294a);
    color: var(--wp--preset--color--white, #fff);
    padding-block: clamp(4rem, 8vw, 7.5rem);
}
.nordhov-office-contact__header {
    margin-bottom: clamp(2rem, 5vw, 4rem);
}
.nordhov-office-contact__header > div { max-width: 48rem; }
.nordhov-office-contact__header h2 { margin-bottom: 1rem; }
.nordhov-office-contact__header p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); margin: 0; }
.nordhov-office-contact__grid {
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--nh-gap-grid);
}
.nordhov-office-contact__grid--count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nordhov-office-contact__grid--count-1 { grid-template-columns: minmax(0, min(100%, 32rem)); }
.nordhov-office-card-contact {
    background: var(--wp--preset--color--gra, #efeded);
    color: var(--wp--preset--color--plommon-02, #42031c);
    border-radius: clamp(1.25rem, 2vw, 2rem);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
}
.nordhov-office-card-contact h3 {
    font-size: clamp(1.55rem, 1.9vw, 2.1rem);
    line-height: 1.08;
    margin: 0 0 1.25rem;
    overflow-wrap: anywhere;
    text-wrap: normal;
}
.nordhov-office-card-contact__title-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: .075em;
    text-underline-offset: .16em;
}
.nordhov-office-card-contact__title-link::after {
    content: "\00a0↗";
    white-space: nowrap;
}
.nordhov-office-card-contact__address { font-size: 1.05rem; }
.nordhov-office-card-contact__details {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .9rem;
    margin: 1.5rem 0 0;
    padding: 0;
}
.nordhov-office-card-contact__details div { min-width: 0; }
.nordhov-office-card-contact__details dt { font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.nordhov-office-card-contact__details dt,
.nordhov-office-card-contact__details dd { padding: 0 !important; text-align: left; }
.nordhov-office-card-contact__details dd { margin: .25rem 0 0; overflow-wrap: anywhere; }
.nordhov-office-card-contact__details a { color: inherit; }
.nordhov-office-card-contact__map-wrap {
    margin-top: auto;
    padding-top: 1.5rem;
}
.nordhov-office-card-contact__map {
    align-items: center;
    display: inline-flex;
    font-size: .9rem !important;
    gap: .45rem;
    line-height: 1 !important;
    padding: .8rem 1rem !important;
    text-transform: uppercase;
    white-space: nowrap;
}
.nordhov-office-card-contact--invoice {
    color: var(--wp--preset--color--plommon-02, #42031c);
}
.nordhov-office-card-contact--invoice :is(h3, a, strong) { color: inherit; }
.nordhov-office-card-contact--invoice a { color: inherit !important; }
.nordhov-invoice-panel__note { margin: 0 0 1.5rem; }
.nordhov-invoice-panel__details {
    display: grid;
    gap: 1rem;
    margin-top: 0;
}
.nordhov-invoice-panel__details p { margin: 0; overflow-wrap: anywhere; }
.nordhov-invoice-panel__details a { color: inherit; overflow-wrap: anywhere; text-decoration-thickness: .08em; }
@media (max-width: 960px) {
    .nordhov-office-contact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nordhov-office-contact__grid--count-1 { grid-template-columns: minmax(0, min(100%, 32rem)); }
}
@media (max-width: 781px) {
    .nordhov-office-contact__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
    .nordhov-office-card-contact__details { grid-template-columns: minmax(0, 1fr); }
}

/* Purpose-built single news article layout. */
.nordhov-article-page {
    background: linear-gradient(180deg, var(--wp--preset--color--bla-01, #99d9e8) 0%, var(--wp--preset--color--bla-04, #defaff) 100%);
    color: var(--wp--preset--color--plommon-02, #42031c);
}
.nordhov-article { margin: 0; }
.nordhov-article__inner {
    width: min(calc(100% - 2.5rem), 60rem);
    margin-inline: auto;
    padding-block: clamp(3rem, 6vw, 6rem);
}
.nordhov-article__featured {
    aspect-ratio: 16 / 9;
    margin: 0 0 clamp(2rem, 4vw, 3rem);
    overflow: hidden;
    border-radius: clamp(1.25rem, 3vw, 3rem);
}
.nordhov-article__featured img { width: 100%; height: 100%; object-fit: cover; }
.nordhov-article__back {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1.15rem;
    border-radius: .9rem;
    background: var(--wp--preset--color--accent, #e3e875);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
}
.nordhov-article__header { margin-top: 1.6rem; }
.nordhov-article__title { max-width: 60rem; font-size: clamp(2.25rem, 5vw, 4rem); }
.nordhov-article__date {
    display: block;
    margin-top: .8rem;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 600;
}
.nordhov-article__rule { margin: 1.6rem 0 1.25rem; border: 0; border-top: 1px solid currentColor; opacity: .45; }
.nordhov-article__share { display: flex; gap: .55rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.nordhov-article__share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--wp--preset--color--plommon-02, #42031c);
    color: #fff;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}
.nordhov-article__share a:hover,
.nordhov-article__share a:focus-visible { background: var(--wp--preset--color--plommon-01, #6b294a); color: #fff; }
.nordhov-article__share svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}
.nordhov-article__share svg.nordhov-social-icon {
    fill: currentColor;
    stroke: none;
}
.nordhov-article__content { max-width: 52rem; font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.55; }
.nordhov-article__content > * + * { margin-top: 1.15rem; }
.nordhov-article__content :is(h2, h3, h4) { margin-top: 2.2rem; }
.nordhov-article__content a { text-decoration: underline; text-underline-offset: .14em; }
.nordhov-article__content .wp-block-image { margin-block: 2rem; overflow: hidden; border-radius: 1.5rem; }

/* Divider: pattern artwork and solid colors are separate, conditional choices. */
.nordhov-divider {
    width: 100%;
    min-height: 6.25rem;
}
.nordhov-divider > .wp-block-spacer {
    width: 0;
    height: 6.25rem;
}
.nordhov-divider--pattern {
    min-height: 11.25rem;
    background-image: var(--nordhov-divider-pattern);
    background-position: 50% 50%;
    background-repeat: repeat-x;
    background-size: auto 100%;
}
.nordhov-divider--pattern > .wp-block-spacer { height: 11.25rem; }

/* Centered CTA: one block, with editor-selectable plain or branded pattern backgrounds. */
.nordhov-centered-cta {
    --nordhov-centered-cta-pattern-height: clamp(10rem, 17vw, 15rem);
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: clamp(27rem, 32vw, 35rem);
    overflow: hidden;
    padding: clamp(3rem, 6vw, 6rem) var(--container-pad, clamp(1.25rem, 4vw, 2.5rem));
    color: var(--wp--preset--color--plommon-02, #42031c);
}
.nordhov-centered-cta--background-teal-solid {
    background: var(--wp--preset--color--teal-01, #0d525c);
}
.nordhov-centered-cta--background-teal-gradient {
    background: linear-gradient(
        180deg,
        var(--wp--preset--color--teal-02, #003b45) 0%,
        var(--wp--preset--color--bla-03, #26808a) 100%
    );
}
.nordhov-centered-cta--background-pink-gradient {
    background: linear-gradient(
        180deg,
        var(--wp--preset--color--rosa-03, #ba78a6) 0%,
        var(--wp--preset--color--rosa-01, #f5badb) 100%
    );
}
.nordhov-centered-cta--background-pink-solid {
    background: var(--wp--preset--color--rosa-01, #f5badb);
}
.nordhov-centered-cta--pattern::before {
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: var(--nordhov-centered-cta-pattern-height);
    background-image: var(--nordhov-centered-cta-pattern);
    background-position: center bottom;
    background-repeat: repeat-x;
    background-size: auto 100%;
    content: "";
    pointer-events: none;
}
.nordhov-centered-cta__inner {
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, var(--wp--style--global--content-size, 1200px));
    margin-inline: auto;
}
.nordhov-centered-cta__card {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
    width: min(100%, 34rem);
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: clamp(1.5rem, 2.2vw, 2rem);
    background: var(--wp--preset--color--gra, #efeded);
    color: var(--wp--preset--color--plommon-02, #42031c);
}
.nordhov-centered-cta__card--left { width: min(100%, 26rem); }
.nordhov-centered-cta__card > * { margin: 0; }
.nordhov-centered-cta__card h2 { font-size: clamp(1.8rem, 3.2vw, 2.75rem); }
.nordhov-centered-cta__body { display: grid; gap: 1rem; }
.nordhov-centered-cta__body > * { margin: 0; }
.nordhov-centered-cta__card--left .wp-block-buttons { justify-content: flex-start; }
.nordhov-centered-cta__card--center .wp-block-buttons { justify-content: center; }

@media (max-width: 600px) {
    .nordhov-centered-cta {
        --nordhov-centered-cta-pattern-height: clamp(9rem, 42vw, 12rem);
        min-height: 34rem;
        padding-block: 3rem;
    }
    .nordhov-centered-cta__card,
    .nordhov-centered-cta__card--left { width: min(100%, 26rem); }
}

/* Stack the newsletter's editorial columns before the desktop proportions can
 * become cramped or outgrow the canonical content container. */
@media (max-width: 1040px) {
    .nordhov-newsletters__header {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }
    .nordhov-newsletter-signup { justify-self: start; }
    .nordhov-newsletters__list > li > .wp-block-columns {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 2rem;
    }
    .nordhov-newsletters__visual {
        max-width: none;
        margin-left: 0;
        justify-self: stretch;
    }
}

@media (max-width: 781px) {
    .nordhov-block .wp-block-columns:not(.is-not-stacked-on-mobile) { flex-wrap: wrap !important; }
    .nordhov-block .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 100% !important; }
    .nh-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nh-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nordhov-news-showcase__heading { align-items: flex-start; flex-direction: column; }
    .nordhov-external-links__list { grid-template-columns: minmax(0, 1fr); }
    .nordhov-contact-section .nordhov-gravity-form .gform_wrapper .gfield.nordhov-gf-half {
        grid-column: span 12 !important;
    }
    .nordhov-gravity-form .gform_body { padding: 1.5rem; }
    .wrapper .nordhov-form,
    .editor-styles-wrapper .nordhov-form { margin-top: 2.5rem; }
}
@media (max-width: 479px) {
    .nh-grid-four { grid-template-columns: minmax(0, 1fr); }
    .nh-grid-three { grid-template-columns: minmax(0, 1fr); }
}
