/*
Theme: Talarpartner Clean v8.1
Purpose: Consolidated final layer for reference design.
This file replaces the earlier patch-by-patch approach with one final, structured override layer.
*/

/* ==========================================================================
   1. Theme variables and global typography
   ========================================================================== */

:root {
    --tp-ref-ink: #0b1d2b;
    --tp-ref-deep: #07313c;
    --tp-ref-deep-2: #0a4250;
    --tp-ref-gold: #c99243;
    --tp-ref-gold-2: #d9a654;
    --tp-ref-bg: #f7f3ec;
    --tp-ref-header-bg: #fffdf8;
    --tp-ref-main-bg: #fffdf8;
    --tp-ref-card: #fffdf8;
    --tp-ref-muted: #6b6258;
    --tp-ref-hero-title-max: 4.85rem;
    --tp-ref-hero-letter-spacing: -0.02em;
    --tp-ref-hero-line-height: 1.08;
    --tp-ref-shadow: 0 18px 70px rgba(11, 29, 43, 0.08);
    --tp-ref-shadow-mobile: 0 12px 40px rgba(11, 29, 43, 0.10);
}

html,
body,
button,
input,
select,
textarea {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: var(--tp-ref-bg);
    color: var(--tp-ref-ink);
}

/* ==========================================================================
   2. Header and menu
   ========================================================================== */

.tmv-header--reference {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--tp-ref-header-bg);
    border-bottom: 1px solid rgba(11, 29, 43, 0.08);
    box-shadow: none;
    backdrop-filter: blur(16px);
}

body.admin-bar .tmv-header--reference {
    top: 32px;
}

.tmv-header-inner--reference {
    width: min(1480px, calc(100% - 64px));
    min-height: 112px;
    padding: 0;
}

.tmv-logo--reference {
    color: var(--tp-ref-deep);
    font-size: clamp(2rem, 3vw, 3.1rem);
    font-weight: 900;
    letter-spacing: -0.055em;
}

.tmv-logo--reference .tmv-logo-image {
    max-height: 58px;
}

.tmv-nav--reference {
    margin-left: auto;
}

.tmv-nav--reference .tmv-nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(22px, 3vw, 54px);
}

.tmv-nav--reference .tmv-nav-menu a,
.tmv-nav--reference > a:not(.tmv-button) {
    color: var(--tp-ref-ink);
    font-size: 1.02rem;
    font-weight: 800;
    text-decoration: none;
}

.tmv-nav--reference > .tmv-button {
    display: none;
}

.tmv-ref-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 6px;
    background: var(--tp-ref-gold);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(201, 146, 67, 0.20);
}

.tmv-ref-header-cta span {
    margin-left: 12px;
    font-size: 1.3rem;
    line-height: 1;
}

/* ==========================================================================
   3. Shared main containers
   ========================================================================== */

.tmv-reference-home,
.tmv-inner-page,
.tm-speaker-search-virtual-page {
    width: min(1480px, calc(100% - 24px));
    margin: 0 auto;
    background: var(--tp-ref-main-bg);
    border-left: 1px solid rgba(11, 29, 43, 0.06);
    border-right: 1px solid rgba(11, 29, 43, 0.06);
    box-shadow: var(--tp-ref-shadow);
}

.tmv-inner-page,
.tm-speaker-search-virtual-page {
    min-height: 52vh;
}

.tmv-inner-page-content {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: clamp(42px, 5vw, 76px) 0;
}

.tmv-inner-page-content--wide,
.tmv-page-main--speaker-list .tmv-inner-page-content,
.tm-speaker-search-virtual-inner {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

main.tmv-inner-page.tmv-page-main,
main.tmv-inner-page.tmv-post-main,
main.tmv-inner-page.tmv-blog-main,
main.tmv-inner-page.tmv-index-main {
    padding: 0;
}

.tm-speaker-search-virtual-page {
    padding: clamp(42px, 5vw, 76px) 0;
}

/* ==========================================================================
   4. Front page hero
   ========================================================================== */

.tmv-ref-hero {
    position: relative;
    overflow: hidden;
    background: var(--tp-ref-main-bg);
}

.tmv-ref-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(520px, 0.95fr);
    min-height: 420px;
}

.tmv-ref-hero-copy {
    position: relative;
    z-index: 2;
    padding: clamp(42px, 5vw, 78px) clamp(30px, 5vw, 64px) 100px;
}

.tmv-ref-hero-copy .tmv-kicker {
    margin: 0 0 14px;
    color: var(--tp-ref-gold);
    font-size: 0.98rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tmv-ref-hero-copy h1 {
    max-width: 12ch;
    margin: 0 0 22px;
    color: var(--tp-ref-ink);
    font-size: clamp(2.95rem, 4.8vw, var(--tp-ref-hero-title-max));
    font-weight: 900;
    letter-spacing: var(--tp-ref-hero-letter-spacing);
    line-height: var(--tp-ref-hero-line-height);
    word-spacing: normal;
    text-wrap: balance;
}

.tmv-ref-hero-text {
    max-width: 55ch;
    margin: 0;
    color: var(--tp-ref-ink);
    font-size: clamp(1.08rem, 1.4vw, 1.25rem);
    line-height: 1.48;
}

.tmv-ref-hero-image {
    position: relative;
    min-height: 480px;
    background-size: cover;
    background-position: center top;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}

/* ==========================================================================
   5. Front page search
   ========================================================================== */

.tmv-ref-search {
    position: absolute;
    left: clamp(30px, 5vw, 64px);
    right: -110px;
    bottom: 28px;
    z-index: 5;
    padding: 10px;
    background: var(--tp-ref-main-bg);
    border: 1px solid rgba(11, 29, 43, 0.14);
    border-radius: 7px;
    box-shadow: 0 12px 34px rgba(11, 29, 43, 0.12);
}

.tmv-ref-search-form,
.tmv-ref-search form,
.tmv-ref-search .tm-speaker-search-form,
.tmv-ref-search .tm-speaker-search-form--compact {
    display: grid;
    grid-template-columns: minmax(230px, 1.3fr) minmax(130px, 0.65fr) minmax(130px, 0.65fr) minmax(130px, 0.65fr) auto;
    gap: 10px;
    margin: 0;
    align-items: stretch;
}

.tmv-ref-search label {
    margin: 0;
}

.tmv-ref-search label > span:not(.screen-reader-text),
.tmv-ref-search .tm-speaker-search-form--compact label > span {
    display: none;
}

.tmv-ref-search input,
.tmv-ref-search select {
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(11, 29, 43, 0.16);
    border-radius: 6px;
    background: #fff;
    color: var(--tp-ref-ink);
    font-weight: 650;
    box-shadow: none;
}

.tmv-ref-search button,
.tmv-ref-search .tm-speaker-search-submit {
    height: 46px;
    min-height: 46px;
    padding: 0 24px;
    border: 0;
    border-radius: 6px;
    background: var(--tp-ref-gold);
    color: #fff;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: none;
}

/* ==========================================================================
   6. Front page cards, benefits, trust, footer
   ========================================================================== */

.tmv-ref-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 18px clamp(30px, 5vw, 64px);
    background: var(--tp-ref-main-bg);
    border-top: 1px solid rgba(11, 29, 43, 0.06);
}

.tmv-ref-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(360px, 0.9fr);
    gap: 30px;
    padding: 26px clamp(30px, 5vw, 64px) 14px;
}

.tmv-ref-speaker-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.tmv-ref-speaker-card,
.tmv-ref-news-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(11, 29, 43, 0.12);
    border-radius: 7px;
    color: var(--tp-ref-ink);
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(11, 29, 43, 0.06);
}

.tmv-ref-speaker-image {
    position: relative;
    aspect-ratio: 4 / 3.08;
    background-size: cover;
    background-position: center top;
}

.tmv-ref-speaker-image span {
    position: absolute;
    left: 12px;
    bottom: 8px;
    max-width: calc(100% - 24px);
    overflow: hidden;
    padding: 0 9px;
    border-radius: 3px;
    background: var(--tp-ref-deep);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 24px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.tmv-ref-speaker-body,
.tmv-ref-news-body {
    padding: 18px;
}

.tmv-ref-speaker-body h3,
.tmv-ref-news-body h3 {
    margin: 0 0 8px;
    color: var(--tp-ref-ink);
    overflow-wrap: anywhere;
}

.tmv-ref-speaker-body p,
.tmv-ref-news-body p {
    color: var(--tp-ref-muted);
}

.tmv-ref-trust {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
    gap: 36px;
    padding: 16px clamp(30px, 5vw, 64px) 26px;
    align-items: center;
}

.tmv-ref-quote,
.tmv-ref-logos {
    background: var(--tp-ref-main-bg);
}

.tmv-ref-footer {
    width: min(1480px, calc(100% - 24px));
    margin: 0 auto 18px;
    background: var(--tp-ref-deep);
    color: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 20px 60px rgba(11, 29, 43, 0.12);
}

/* ==========================================================================
   7. Responsive
   ========================================================================== */

@media (max-width: 1180px) {
    .tmv-ref-hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
    }

    .tmv-ref-content-grid,
    .tmv-ref-trust {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    body.admin-bar .tmv-header--reference {
        top: 46px;
    }

    .tmv-header-inner--reference {
        width: 100%;
        min-height: 88px;
        padding: 0 34px;
    }

    .tmv-ref-header-cta {
        display: none;
    }

    .tmv-nav--reference {
        position: fixed;
        left: 14px;
        right: 14px;
        top: 98px;
        z-index: 120;
        display: none;
        padding: 18px;
        background: var(--tp-ref-header-bg);
        border: 1px solid rgba(11, 29, 43, 0.10);
        border-radius: 10px;
        box-shadow: 0 18px 40px rgba(11, 29, 43, 0.12);
    }

    .tmv-nav--reference.is-open {
        display: block;
    }

    .tmv-nav--reference .tmv-nav-menu {
        display: grid;
        gap: 12px;
    }

    .tmv-menu-toggle {
        display: inline-flex;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--tp-ref-ink);
    }

    .tmv-menu-toggle span {
        width: 34px;
        height: 4px;
        background: currentColor;
        border-radius: 999px;
    }

    .tmv-reference-home,
    .tmv-inner-page,
    .tm-speaker-search-virtual-page,
    .tmv-ref-footer {
        width: min(820px, calc(100% - 22px));
        box-shadow: var(--tp-ref-shadow-mobile);
    }

    .tmv-ref-hero-layout {
        display: block;
        min-height: 0;
    }

    .tmv-ref-hero-copy {
        padding: 34px 32px 0;
    }

    .tmv-ref-hero-copy h1 {
        max-width: 10.5ch;
        font-size: clamp(2.75rem, 8vw, 3.8rem);
        letter-spacing: -0.018em;
        line-height: 1.08;
    }

    .tmv-ref-hero-image {
        width: 43%;
        min-height: 300px;
        margin-top: -210px;
        margin-left: auto;
        clip-path: none;
        background-position: center top;
    }

    .tmv-ref-search {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin: -8px 20px 0;
    }

    .tmv-ref-search-form,
    .tmv-ref-search form,
    .tmv-ref-search .tm-speaker-search-form,
    .tmv-ref-search .tm-speaker-search-form--compact {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .tmv-ref-search-keyword,
    .tmv-ref-search label:first-child,
    .tmv-ref-search .tm-speaker-search-form > label:first-child,
    .tmv-ref-search .tm-speaker-search-form--compact > label:first-child {
        grid-column: 1 / -1;
    }

    .tmv-ref-search button,
    .tmv-ref-search .tm-speaker-search-submit {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 50px;
    }

    .tmv-ref-speaker-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        overflow-x: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
    }

    .tmv-ref-speaker-card {
        display: grid;
        grid-template-columns: minmax(132px, 38%) 1fr;
        min-height: 180px;
    }

    .tmv-ref-speaker-image {
        height: 100%;
        min-height: 180px;
        aspect-ratio: auto;
        border-right: 1px solid rgba(11, 29, 43, 0.08);
    }

    .tmv-inner-page-content,
    .tmv-inner-page-content--wide,
    .tmv-page-main--speaker-list .tmv-inner-page-content,
    .tm-speaker-search-virtual-inner {
        width: calc(100% - 40px);
        padding: 34px 0;
    }
}

@media (max-width: 560px) {
    .tmv-header-inner--reference {
        padding: 0 22px;
    }

    .tmv-reference-home,
    .tmv-inner-page,
    .tm-speaker-search-virtual-page,
    .tmv-ref-footer {
        width: min(100%, calc(100% - 14px));
    }

    .tmv-ref-hero-copy {
        padding: 28px 24px 0;
    }

    .tmv-ref-hero-copy h1 {
        max-width: 10.5ch;
        font-size: clamp(2.35rem, 10vw, 3.25rem);
        letter-spacing: -0.012em;
        line-height: 1.1;
    }

    .tmv-ref-hero-image {
        width: 47%;
        min-height: 220px;
        margin-top: -135px;
    }

    .tmv-ref-search {
        margin: 0 14px;
    }

    .tmv-ref-search-form,
    .tmv-ref-search form,
    .tmv-ref-search .tm-speaker-search-form,
    .tmv-ref-search .tm-speaker-search-form--compact {
        grid-template-columns: 1fr;
    }

    .tmv-ref-speaker-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .tmv-ref-speaker-image {
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 3.05;
        border-right: 0;
        border-bottom: 1px solid rgba(11, 29, 43, 0.08);
    }

    .tmv-inner-page-content,
    .tmv-inner-page-content--wide,
    .tm-speaker-search-virtual-inner {
        width: calc(100% - 28px);
        padding: 28px 0;
    }
}


/* ==========================================================================
   v9.1 Safe Architecture additions
   Preserves the v8.1 visual baseline while moving key pages into real templates.
   ========================================================================== */

/* Header CTA is now the last native menu item, not a duplicated hardcoded link. */
.tmv-nav--reference .tmv-nav-menu li:last-child > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 6px;
    background: var(--tp-ref-gold);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(201, 146, 67, 0.20);
}

.tmv-nav--reference .tmv-nav-menu li:last-child > a::after {
    content: "→";
    margin-left: 12px;
    font-size: 1.3rem;
    line-height: 1;
}

.tmv-speaker-archive-content,
.tmv-speaker-search-content,
.tmv-news-page-content,
.tmv-clients-page-content {
    width: min(1352px, calc(100% - 64px));
    margin: 0 auto;
    padding: clamp(42px, 5vw, 76px) 0;
}

.tmv-inner-page-header {
    margin-bottom: 24px;
}

.tmv-inner-page-header h1 {
    margin: 0 0 18px;
    color: var(--tp-ref-ink);
    font-size: clamp(2.4rem, 4.5vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.tmv-speaker-directory-count {
    margin-bottom: 18px;
    color: var(--tp-ref-muted);
    font-weight: 800;
}

.tmv-speaker-directory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.tmv-speaker-directory-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(11, 29, 43, 0.12);
    border-radius: 7px;
    color: var(--tp-ref-ink);
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(11, 29, 43, 0.06);
}

.tmv-speaker-directory-image {
    display: block;
    aspect-ratio: 4 / 3.08;
    background: #e9e2d8;
    overflow: hidden;
}

.tmv-speaker-directory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.tmv-speaker-directory-body {
    padding: 18px;
}

.tmv-speaker-directory-role {
    margin: 0 0 8px;
    color: var(--tp-ref-gold);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tmv-speaker-directory-body h2 {
    margin: 0 0 8px;
    color: var(--tp-ref-ink);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.tmv-speaker-directory-body h2 a,
.tmv-speaker-directory-link {
    text-decoration: none;
}

.tmv-speaker-directory-body p {
    color: var(--tp-ref-muted);
    line-height: 1.42;
}

.tmv-speaker-directory-link {
    color: var(--tp-ref-gold);
    font-weight: 900;
}

.tmv-news-page .tmv-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.tmv-speaker-search-page .tm-speaker-search,
.tmv-speaker-search-page .tm-speaker-search-form,
.tmv-speaker-search-page .tm-speaker-search-grid {
    width: 100%;
    max-width: none;
}

@media (max-width: 1180px) {
    .tmv-speaker-directory-grid,
    .tmv-news-page .tmv-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .tmv-nav--reference .tmv-nav-menu li:last-child > a {
        width: 100%;
    }

    .tmv-speaker-archive-content,
    .tmv-speaker-search-content,
    .tmv-news-page-content,
    .tmv-clients-page-content {
        width: calc(100% - 40px);
        padding: 34px 0;
    }
}

@media (max-width: 560px) {
    .tmv-speaker-directory-grid,
    .tmv-news-page .tmv-news-grid {
        grid-template-columns: 1fr;
    }

    .tmv-speaker-archive-content,
    .tmv-speaker-search-content,
    .tmv-news-page-content,
    .tmv-clients-page-content {
        width: calc(100% - 28px);
        padding: 28px 0;
    }
}


/* v9.2: no small gold kicker on search/speaker archive headers */
.tmv-speaker-archive-page .tmv-inner-page-header,
.tmv-speaker-search-page .tmv-inner-page-header {
    margin-bottom: 26px;
}

.tmv-speaker-archive-page .tmv-inner-page-header .tmv-kicker,
.tmv-speaker-search-page .tmv-inner-page-header .tmv-kicker {
    display: none;
}


/* v9.3 frontpage speaker card text and editable testimonial refinements */
.tmv-ref-speaker-card {
    height: auto;
}

.tmv-ref-speaker-body {
    min-height: 190px;
}

.tmv-ref-speaker-body p {
    display: block;
    max-height: none;
    overflow: visible;
}

.tmv-ref-quote blockquote,
.tmv-ref-quote p {
    overflow-wrap: anywhere;
}


/* v9.4: hide speaker result counts on speaker archive/search pages */
.tmv-speaker-archive-page .tmv-speaker-directory-count,
.tmv-speaker-archive-page .tp-speaker-list-count,
.tmv-speaker-search-page .tp-search-count {
    display: none;
}


/* v9.5 speaker image focus: per-speaker object-position/background-position is set inline where needed. */
.tmv-speaker-directory-image img,
.tmv-ref-speaker-image {
    object-position: center top;
}





/* v9.7: news date/meta follows theme accent color */
.single-post .tmv-post-header .tmv-kicker,
.tmv-post-main .tmv-post-header .tmv-kicker,
.tmv-news-body time,
.tmv-ref-news-body time {
    color: var(--tp-ref-gold);
}


/* ==========================================================================
   v9.8 Frontpage polish
   ========================================================================== */
.tmv-ref-content-grid {
    align-items: start;
}

.tmv-ref-featured,
.tmv-ref-inspiration {
    display: flex;
    flex-direction: column;
}

.tmv-ref-section-head {
    min-height: 44px;
    align-items: flex-end;
}

.tmv-ref-speaker-image {
    aspect-ratio: 4 / 4.45;
}

.tmv-ref-newsletter-wrap {
    padding: 0 clamp(30px, 5vw, 64px) 6px;
}

.tmv-ref-newsletter-wrap .tpn-section {
    width: 100%;
    margin: 12px 0 6px;
}

.tmv-ref-newsletter-wrap .tpn-inner {
    border-radius: 10px;
}

@media (max-width: 860px) {
    .tmv-ref-hero-layout {
        display: flex;
        flex-direction: column;
    }

    .tmv-ref-hero-image {
        order: 1;
        width: 100%;
        min-height: 280px;
        margin: 0;
        background-position: center top;
        clip-path: none;
    }

    .tmv-ref-hero-copy {
        order: 2;
        padding: 30px 32px 0;
    }

    .tmv-ref-search {
        margin: 24px 20px 0;
    }

    .tmv-ref-speaker-image {
        aspect-ratio: 4 / 4.15;
    }

    .tmv-ref-newsletter-wrap {
        padding: 10px 32px 0;
    }
}

@media (max-width: 560px) {
    .tmv-ref-hero-image {
        min-height: 220px;
    }

    .tmv-ref-hero-copy {
        padding: 24px 24px 0;
    }

    .tmv-ref-search {
        margin: 20px 14px 0;
    }

    .tmv-ref-speaker-image {
        aspect-ratio: 4 / 4.1;
    }

    .tmv-ref-newsletter-wrap {
        padding: 8px 24px 0;
    }
}


/* ==========================================================================
   v10.0 frontpage alignment + newsletter color hardening
   ========================================================================== */

/* Top content grid: make Inspiration fill the same height as speaker cards */
.tmv-reference-home .tmv-ref-content-grid {
    align-items: stretch;
}

.tmv-reference-home .tmv-ref-featured,
.tmv-reference-home .tmv-ref-inspiration {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.tmv-reference-home .tmv-ref-section-head {
    min-height: 44px;
    align-items: flex-end;
}

.tmv-reference-home .tmv-ref-inspiration .tmv-ref-news-card {
    flex: 1 1 auto;
    height: auto;
    display: flex;
    flex-direction: column;
}

.tmv-reference-home .tmv-ref-inspiration .tmv-ref-news-card .tmv-ref-news-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.tmv-reference-home .tmv-ref-inspiration .tmv-ref-news-card .tmv-ref-news-body .tmv-ref-readmore {
    margin-top: auto;
}

/* Speaker images: slightly taller/less square */
.tmv-reference-home .tmv-ref-speaker-image {
    aspect-ratio: 4 / 4.55;
}

/* Newsletter: align directly below the top grid */
.tmv-reference-home .tmv-ref-newsletter-wrap {
    padding-top: 14px;
    padding-bottom: 16px;
}

/* Trust / clients: same top alignment and shared visual height */
.tmv-reference-home .tmv-ref-trust {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
    gap: clamp(22px, 4vw, 42px);
    align-items: stretch;
    padding-top: 14px;
}

.tmv-reference-home .tmv-ref-quote,
.tmv-reference-home .tmv-ref-logos {
    height: 100%;
    align-self: stretch;
}

.tmv-reference-home .tmv-ref-logos {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tmv-reference-home .tmv-ref-logo-row {
    align-items: center;
}

/* Mobile keeps natural stacking */
@media (max-width: 980px) {
    .tmv-reference-home .tmv-ref-trust {
        grid-template-columns: 1fr;
    }

    .tmv-reference-home .tmv-ref-inspiration .tmv-ref-news-card {
        min-height: 0;
    }
}

@media (max-width: 860px) {
    .tmv-reference-home .tmv-ref-newsletter-wrap {
        padding-top: 12px;
    }

    .tmv-reference-home .tmv-ref-speaker-image {
        aspect-ratio: 4 / 4.15;
    }
}


/* ==========================================================================
   v10.1 editable benefits + mobile hero refinements
   ========================================================================== */

.tmv-ref-benefits .tmv-ref-benefit {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.tmv-ref-benefit-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.tmv-ref-benefit-text strong,
.tmv-ref-benefit-text em {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 860px) {
    .tmv-reference-home .tmv-ref-hero-image,
    .tmv-ref-hero-image {
        min-height: 380px;
        height: 46vh;
        max-height: 520px;
        background-size: cover;
        background-position: center top;
    }

    .tmv-ref-benefits {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 0;
        padding: 18px 24px;
        border-top: 1px solid rgba(11, 29, 43, 0.08);
    }

    .tmv-ref-benefits .tmv-ref-benefit,
    .tmv-ref-benefits > div {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        padding: 14px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(11, 29, 43, 0.08);
    }

    .tmv-ref-benefits .tmv-ref-benefit:last-child,
    .tmv-ref-benefits > div:last-child {
        border-bottom: 0;
    }

    .tmv-ref-benefits .dashicons {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: rgba(99, 147, 136, 0.10);
        color: var(--tp-ref-gold);
        font-size: 23px;
        line-height: 42px;
    }

    .tmv-ref-benefit-text strong,
    .tmv-ref-benefits strong {
        font-size: 1rem;
        line-height: 1.2;
    }

    .tmv-ref-benefit-text em,
    .tmv-ref-benefits em {
        font-size: 0.93rem;
        line-height: 1.35;
    }
}

@media (max-width: 560px) {
    .tmv-reference-home .tmv-ref-hero-image,
    .tmv-ref-hero-image {
        min-height: 330px;
        height: 48vh;
        max-height: 460px;
    }

    .tmv-ref-benefits {
        padding: 14px 20px;
    }

    .tmv-ref-benefits .tmv-ref-benefit,
    .tmv-ref-benefits > div {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 11px;
        padding: 13px 0;
    }

    .tmv-ref-benefits .dashicons {
        width: 38px;
        height: 38px;
        font-size: 21px;
        line-height: 38px;
    }
}


/* ==========================================================================
   v10.2 news archive refresh
   ========================================================================== */

.tmv-news-archive-page {
    background: var(--tp-ref-main-bg, #fffdf8);
    color: var(--tp-ref-ink, #0b1d2b);
}

.tmv-news-archive-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    align-items: stretch;
    min-height: 330px;
    border-bottom: 1px solid rgba(11, 29, 43, 0.08);
    background:
        radial-gradient(circle at 0% 0%, rgba(201, 146, 67, 0.08), transparent 35%),
        linear-gradient(135deg, rgba(255, 253, 248, 1), rgba(247, 243, 236, 0.9));
}

.tmv-news-archive-hero-copy {
    padding: clamp(42px, 6vw, 76px) clamp(30px, 5vw, 64px);
}

.tmv-news-archive-hero-copy h1 {
    max-width: 11ch;
    margin: 0;
    font-size: clamp(3rem, 5vw, 5.8rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.tmv-news-archive-hero-copy > p:not(.tmv-kicker) {
    max-width: 680px;
    margin: 22px 0 0;
    color: var(--tp-ref-ink);
    font-size: 1.08rem;
    line-height: 1.7;
}

.tmv-news-archive-hero-image {
    min-height: 330px;
    background-size: cover;
    background-position: center top;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.tmv-news-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 28px clamp(30px, 5vw, 64px) 8px;
}

.tmv-news-filter a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(11, 29, 43, 0.14);
    border-radius: 8px;
    background: #fff;
    color: var(--tp-ref-ink);
    font-weight: 750;
    text-decoration: none;
}

.tmv-news-filter a.is-active,
.tmv-news-filter a:hover {
    background: var(--tp-ref-deep);
    border-color: var(--tp-ref-deep);
    color: #fff;
}

.tmv-news-archive-top {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    gap: clamp(24px, 4vw, 44px);
    padding: 24px clamp(30px, 5vw, 64px) 34px;
    align-items: start;
}

.tmv-news-archive-featured > h2,
.tmv-news-archive-latest > h2,
.tmv-news-archive-section-head h2 {
    margin: 0 0 18px;
    font-size: 1.28rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.tmv-news-archive-card,
.tmv-news-archive-mini {
    overflow: hidden;
    border: 1px solid rgba(11, 29, 43, 0.10);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(11, 29, 43, 0.06);
}

.tmv-news-archive-card-image {
    display: block;
    aspect-ratio: 16 / 8.8;
    background: rgba(11, 29, 43, 0.08);
    overflow: hidden;
    color: var(--tp-ref-muted);
    text-decoration: none;
}

.tmv-news-archive-card-image img,
.tmv-news-archive-mini-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.tmv-news-archive-card-image span,
.tmv-news-archive-mini-image span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.tmv-news-archive-card-body {
    padding: 22px 24px 24px;
}

.tmv-news-archive-card-body h2,
.tmv-news-archive-mini h3 {
    margin: 0;
    color: var(--tp-ref-ink);
    letter-spacing: -0.025em;
}

.tmv-news-archive-card-body h2 {
    font-size: clamp(1.35rem, 2.1vw, 2rem);
    line-height: 1.08;
}

.tmv-news-archive-card-body h2 a,
.tmv-news-archive-mini h3 a {
    color: inherit;
    text-decoration: none;
}

.tmv-news-archive-card-body > p:not(.tmv-news-archive-meta) {
    margin: 14px 0 0;
    color: var(--tp-ref-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.tmv-news-archive-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 12px;
    color: var(--tp-ref-gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tmv-news-archive-readmore {
    display: inline-flex;
    margin-top: 20px;
    color: var(--tp-ref-gold);
    font-weight: 850;
    text-decoration: none;
}

.tmv-news-archive-latest-list {
    display: grid;
    gap: 14px;
}

.tmv-news-archive-mini {
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    min-height: 138px;
}

.tmv-news-archive-mini-image {
    display: block;
    background: rgba(11, 29, 43, 0.08);
    color: var(--tp-ref-muted);
    text-decoration: none;
    overflow: hidden;
}

.tmv-news-archive-mini > div {
    padding: 16px 18px;
}

.tmv-news-archive-mini h3 {
    font-size: 1.08rem;
    line-height: 1.12;
}

.tmv-news-archive-mini p:not(.tmv-news-archive-meta) {
    margin: 8px 0 0;
    color: var(--tp-ref-muted);
    font-size: 0.91rem;
    line-height: 1.45;
}

.tmv-news-archive-mini .tmv-news-archive-readmore {
    margin-top: 10px;
    font-size: 0.92rem;
}

.tmv-news-archive-all {
    padding: 0 clamp(30px, 5vw, 64px) 28px;
}

.tmv-news-archive-section-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 18px;
    padding-top: 24px;
    border-top: 1px solid rgba(11, 29, 43, 0.12);
}

.tmv-news-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.tmv-news-archive-grid .tmv-news-archive-card-image {
    aspect-ratio: 16 / 9;
}

.tmv-news-archive-grid .tmv-news-archive-card-body h2 {
    font-size: 1.22rem;
}

.tmv-news-archive-newsletter {
    padding-top: 8px;
    padding-bottom: 28px;
}

.tmv-news-archive-empty {
    margin: 34px clamp(30px, 5vw, 64px);
    padding: 34px;
    border: 1px solid rgba(11, 29, 43, 0.10);
    border-radius: 10px;
    background: #fff;
}

@media (max-width: 1080px) {
    .tmv-news-archive-top {
        grid-template-columns: 1fr;
    }

    .tmv-news-archive-latest-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tmv-news-archive-mini {
        grid-template-columns: 1fr;
    }

    .tmv-news-archive-mini-image {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 860px) {
    .tmv-news-archive-hero {
        grid-template-columns: 1fr;
    }

    .tmv-news-archive-hero-copy {
        padding: 34px 30px 24px;
    }

    .tmv-news-archive-hero-copy h1 {
        max-width: 10.5ch;
        font-size: clamp(2.7rem, 9vw, 4.2rem);
    }

    .tmv-news-archive-hero-image {
        order: -1;
        min-height: 320px;
        clip-path: none;
    }

    .tmv-news-archive-grid,
    .tmv-news-archive-latest-list {
        grid-template-columns: 1fr;
    }

    .tmv-news-archive-top,
    .tmv-news-archive-all,
    .tmv-news-filter {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 560px) {
    .tmv-news-archive-hero-image {
        min-height: 260px;
    }

    .tmv-news-archive-hero-copy {
        padding: 28px 22px 20px;
    }

    .tmv-news-archive-top,
    .tmv-news-archive-all,
    .tmv-news-filter {
        padding-left: 18px;
        padding-right: 18px;
    }

    .tmv-news-filter {
        gap: 8px;
    }

    .tmv-news-filter a {
        min-height: 36px;
        padding: 0 13px;
        font-size: 0.92rem;
    }

    .tmv-news-archive-card-body {
        padding: 20px;
    }
}


/* ==========================================================================
   v10.3 news page editor + spacing refinements
   ========================================================================== */

/* Give the news archive newsletter the same breathing room as frontpage */
.tmv-news-archive-page .tmv-news-archive-newsletter,
.tmv-news-archive-page .tmv-ref-newsletter-wrap {
    padding-top: 18px;
    padding-bottom: clamp(42px, 5vw, 72px);
}

/* Prevent newsletter from visually colliding with footer */
.tmv-news-archive-page + .tmv-ref-footer,
.tmv-news-archive-page + footer {
    margin-top: 0;
}

/* Slightly better hero-image behaviour when edited from Startsideguide */
.tmv-news-archive-hero-image {
    background-position: center center;
}

@media (max-width: 860px) {
    .tmv-news-archive-page .tmv-news-archive-newsletter,
    .tmv-news-archive-page .tmv-ref-newsletter-wrap {
        padding-bottom: 44px;
    }
}


/* v10.4 benefit dropdown + dynamic benefit output */
.tmv-ref-benefit-icon {
    flex: 0 0 auto;
}

.tmv-ref-benefit-text p {
    margin: 0;
}

@media (max-width: 860px) {
    .tmv-ref-benefits .tmv-ref-benefit-icon {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: rgba(99, 147, 136, 0.10);
        color: var(--tp-ref-gold);
        font-size: 22px;
        line-height: 1;
    }

    .tmv-ref-benefit-text p,
    .tmv-ref-benefits p {
        font-size: 0.93rem;
        line-height: 1.35;
    }
}

@media (max-width: 560px) {
    .tmv-ref-benefits .tmv-ref-benefit-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
}


/* ==========================================================================
   v10.5 news archive follows theme colors
   Nyhetsguiden supplies content/settings; the theme owns visual styling.
   ========================================================================== */

/* Page background and hero: no hardcoded beige/gold glow */
.tmv-news-archive-page {
    background: var(--tp-ref-main-bg, #fffdf8) !important;
    color: var(--tp-ref-ink, #0b1d2b);
}

.tmv-news-archive-hero {
    background: linear-gradient(
        135deg,
        var(--tp-ref-main-bg, #fffdf8),
        var(--tp-ref-card, #fffdf8)
    ) !important;
    border-bottom-color: color-mix(in srgb, var(--tp-ref-ink, #0b1d2b) 10%, transparent);
}

/* The small “INSPIRATION” label follows theme accent, not a fixed gold */
.tmv-news-archive-page .tmv-kicker,
.tmv-news-archive-meta,
.tmv-news-archive-readmore {
    color: var(--tp-ref-gold, #c99243) !important;
}

/* Cards and filter buttons follow card/main theme colors */
.tmv-news-filter a,
.tmv-news-archive-card,
.tmv-news-archive-mini,
.tmv-news-archive-empty {
    background: var(--tp-ref-card, #fffdf8) !important;
    border-color: color-mix(in srgb, var(--tp-ref-ink, #0b1d2b) 10%, transparent) !important;
}

.tmv-news-filter a {
    color: var(--tp-ref-ink, #0b1d2b) !important;
}

.tmv-news-filter a.is-active,
.tmv-news-filter a:hover {
    background: var(--tp-ref-deep, #07313c) !important;
    border-color: var(--tp-ref-deep, #07313c) !important;
    color: #fff !important;
}

.tmv-news-archive-card-image,
.tmv-news-archive-mini-image {
    background: color-mix(in srgb, var(--tp-ref-ink, #0b1d2b) 8%, var(--tp-ref-card, #fffdf8)) !important;
}

/* Text hierarchy follows theme */
.tmv-news-archive-card-body h2,
.tmv-news-archive-mini h3,
.tmv-news-archive-featured > h2,
.tmv-news-archive-latest > h2,
.tmv-news-archive-section-head h2 {
    color: var(--tp-ref-ink, #0b1d2b) !important;
}

.tmv-news-archive-card-body > p:not(.tmv-news-archive-meta),
.tmv-news-archive-mini p:not(.tmv-news-archive-meta),
.tmv-news-archive-hero-copy > p:not(.tmv-kicker) {
    color: var(--tp-ref-muted, #6b6258) !important;
}

/* Fallback for browsers without color-mix support */
@supports not (color: color-mix(in srgb, #000 50%, transparent)) {
    .tmv-news-archive-hero {
        border-bottom-color: rgba(11, 29, 43, 0.08) !important;
    }

    .tmv-news-filter a,
    .tmv-news-archive-card,
    .tmv-news-archive-mini,
    .tmv-news-archive-empty {
        border-color: rgba(11, 29, 43, 0.10) !important;
    }

    .tmv-news-archive-card-image,
    .tmv-news-archive-mini-image {
        background: rgba(11, 29, 43, 0.08) !important;
    }
}


/* ==========================================================================
   v10.7 footer social links
   ========================================================================== */

.tmv-ref-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.tmv-ref-social-link {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.tmv-ref-social-link:hover,
.tmv-ref-social-link:focus-visible {
    transform: translateY(-1px);
    background: var(--tp-ref-gold, #c99243);
    border-color: var(--tp-ref-gold, #c99243);
    color: #fff;
}

.tmv-ref-social-link svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.tmv-ref-social-link--instagram svg {
    width: 20px;
    height: 20px;
}

.tmv-ref-social-link--linkedin svg {
    width: 18px;
    height: 18px;
}


/* ==========================================================================
   v10.8.2 interaction states
   Tydligare hover/focus/click utan att kännas flashigt.
   ========================================================================== */

:root {
    --tp-interaction-ease: cubic-bezier(.2, .8, .2, 1);
    --tp-interaction-shadow: 0 14px 34px rgba(11, 29, 43, .13);
    --tp-interaction-shadow-soft: 0 10px 24px rgba(11, 29, 43, .10);
    --tp-focus-ring: 0 0 0 3px color-mix(in srgb, var(--tp-ref-gold, #c99243) 34%, transparent);
}

/* Base: clickable things should feel clickable */
a,
button,
input[type="submit"],
input[type="button"],
.tmv-ref-button,
.tmv-ref-hero-actions a,
.tmv-ref-search button,
.tmv-ref-footer-button,
.tmv-ref-readmore,
.tmv-news-archive-readmore,
.tp-speaker-card-link,
.tp-speaker-primary-button,
.tm-message-submit {
    transition:
        transform .18s var(--tp-interaction-ease),
        box-shadow .18s var(--tp-interaction-ease),
        background-color .18s var(--tp-interaction-ease),
        border-color .18s var(--tp-interaction-ease),
        color .18s var(--tp-interaction-ease),
        opacity .18s var(--tp-interaction-ease);
}

/* Buttons and button-like links */
button,
input[type="submit"],
input[type="button"],
.tmv-ref-button,
.tmv-ref-hero-actions a,
.tmv-ref-search button,
.tmv-ref-footer-button,
.tp-speaker-primary-button,
.tm-message-submit {
    cursor: pointer;
    will-change: transform;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.tmv-ref-button:hover,
.tmv-ref-hero-actions a:hover,
.tmv-ref-search button:hover,
.tmv-ref-footer-button:hover,
.tp-speaker-primary-button:hover,
.tm-message-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--tp-interaction-shadow-soft);
}

button:active,
input[type="submit"]:active,
input[type="button"]:active,
.tmv-ref-button:active,
.tmv-ref-hero-actions a:active,
.tmv-ref-search button:active,
.tmv-ref-footer-button:active,
.tp-speaker-primary-button:active,
.tm-message-submit:active {
    transform: translateY(0) scale(.985);
    box-shadow: none;
}

/* Keyboard accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.tmv-ref-button:focus-visible,
.tmv-ref-hero-actions a:focus-visible,
.tmv-ref-search button:focus-visible,
.tmv-ref-footer-button:focus-visible,
.tp-speaker-card-link:focus-visible,
.tp-speaker-primary-button:focus-visible,
.tm-message-submit:focus-visible {
    outline: none;
    box-shadow: var(--tp-focus-ring), var(--tp-interaction-shadow-soft);
}

/* Menu links: subtle underline movement */
.tmv-ref-menu a,
.tmv-header a,
.tmv-nav a,
.tmv-mobile-menu a {
    position: relative;
    text-decoration: none;
}

.tmv-ref-menu a::after,
.tmv-header a::after,
.tmv-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .18s var(--tp-interaction-ease);
    opacity: .75;
}

.tmv-ref-menu a:hover::after,
.tmv-header a:hover::after,
.tmv-nav a:hover::after,
.tmv-ref-menu a:focus-visible::after,
.tmv-header a:focus-visible::after,
.tmv-nav a:focus-visible::after {
    transform: scaleX(1);
}

/* Cards: indicate clickable content */
.tmv-ref-speaker-card,
.tmv-ref-news-card,
.tmv-news-archive-card,
.tmv-news-archive-mini,
.tp-speaker-card {
    transition:
        transform .2s var(--tp-interaction-ease),
        box-shadow .2s var(--tp-interaction-ease),
        border-color .2s var(--tp-interaction-ease);
}

.tmv-ref-speaker-card:hover,
.tmv-ref-news-card:hover,
.tmv-news-archive-card:hover,
.tmv-news-archive-mini:hover,
.tp-speaker-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tp-interaction-shadow);
    border-color: color-mix(in srgb, var(--tp-ref-gold, #c99243) 38%, rgba(11,29,43,.12));
}

/* Images inside cards get a tiny premium zoom */
.tmv-ref-speaker-card img,
.tmv-ref-news-card img,
.tmv-news-archive-card img,
.tmv-news-archive-mini img,
.tp-speaker-card img {
    transition: transform .32s var(--tp-interaction-ease), filter .32s var(--tp-interaction-ease);
}

.tmv-ref-speaker-card:hover img,
.tmv-ref-news-card:hover img,
.tmv-news-archive-card:hover img,
.tmv-news-archive-mini:hover img,
.tp-speaker-card:hover img {
    transform: scale(1.025);
}

/* Make image containers hide zoom overflow */
.tmv-ref-speaker-image,
.tmv-ref-news-image,
.tmv-news-archive-card-image,
.tmv-news-archive-mini-image,
.tp-speaker-card-image {
    overflow: hidden;
}

/* Text links: clearer hover without changing layout */
.tmv-ref-readmore:hover,
.tmv-news-archive-readmore:hover,
.tp-speaker-card-link:hover,
.tmv-post-content a:hover,
.tp-speaker-subject-list a:hover {
    opacity: .82;
    text-decoration-thickness: 2px;
}

/* Search inputs: clearer active state */
.tmv-ref-search input,
.tmv-ref-search select {
    transition: border-color .18s var(--tp-interaction-ease), box-shadow .18s var(--tp-interaction-ease), background-color .18s var(--tp-interaction-ease);
}

.tmv-ref-search input:hover,
.tmv-ref-search select:hover {
    border-color: color-mix(in srgb, var(--tp-ref-gold, #c99243) 42%, rgba(11,29,43,.18));
}

.tmv-ref-search input:focus,
.tmv-ref-search select:focus {
    outline: none;
    border-color: var(--tp-ref-gold, #c99243);
    box-shadow: var(--tp-focus-ring);
}

/* Social icons/footer icons */
.tmv-ref-social-link {
    transition:
        transform .18s var(--tp-interaction-ease),
        background-color .18s var(--tp-interaction-ease),
        border-color .18s var(--tp-interaction-ease),
        color .18s var(--tp-interaction-ease);
}

.tmv-ref-social-link:hover,
.tmv-ref-social-link:focus-visible {
    transform: translateY(-2px);
}

/* Fallback for browsers without color-mix */
@supports not (color: color-mix(in srgb, #000 50%, transparent)) {
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
        box-shadow: 0 0 0 3px rgba(201, 146, 67, .34);
    }

    .tmv-ref-speaker-card:hover,
    .tmv-ref-news-card:hover,
    .tmv-news-archive-card:hover,
    .tmv-news-archive-mini:hover,
    .tp-speaker-card:hover {
        border-color: rgba(201, 146, 67, .42);
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }

    button:hover,
    input[type="submit"]:hover,
    input[type="button"]:hover,
    .tmv-ref-button:hover,
    .tmv-ref-hero-actions a:hover,
    .tmv-ref-search button:hover,
    .tmv-ref-footer-button:hover,
    .tp-speaker-primary-button:hover,
    .tm-message-submit:hover,
    .tmv-ref-speaker-card:hover,
    .tmv-ref-news-card:hover,
    .tmv-news-archive-card:hover,
    .tmv-news-archive-mini:hover,
    .tp-speaker-card:hover,
    .tmv-ref-social-link:hover {
        transform: none !important;
    }
}


/* ==========================================================================
   v10.8.4 top menu last item button fix
   ========================================================================== */

/*
   Viktigt:
   - WordPress-menyn renderas som ul.tmv-nav-menu > li > a.
   - Regeln .tmv-nav a:last-child träffar alla länkar, eftersom varje li bara har en a.
   - Därför använder vi bara direkta barn: .tmv-nav-menu > li:last-child > a.
*/

/* Reset: säkerställ att vanliga toppmenylänkar inte är knappar */
@media (min-width: 861px) {
    .tmv-nav--reference .tmv-nav-menu > li:not(:last-child) > a {
        display: inline-flex;
        align-items: center;
        min-height: auto;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: inherit !important;
        box-shadow: none !important;
        font-weight: inherit;
    }

    /* WordPress-meny: endast sista menypunkten blir knapp */
    .tmv-nav--reference .tmv-nav-menu > li:last-child > a {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0 18px !important;
        border: 1px solid var(--tp-ref-gold, #c99243) !important;
        border-radius: 999px !important;
        background: var(--tp-ref-gold, #c99243) !important;
        color: #fff !important;
        box-shadow: 0 10px 22px rgba(11, 29, 43, .10);
        font-weight: 700 !important;
        text-decoration: none !important;
    }

    /* Fallback-meny utan WP-meny: endast sista direkta länken i nav blir knapp */
    .tmv-nav--reference > a:last-child {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0 18px !important;
        border: 1px solid var(--tp-ref-gold, #c99243) !important;
        border-radius: 999px !important;
        background: var(--tp-ref-gold, #c99243) !important;
        color: #fff !important;
        box-shadow: 0 10px 22px rgba(11, 29, 43, .10);
        font-weight: 700 !important;
        text-decoration: none !important;
    }

    .tmv-nav--reference .tmv-nav-menu > li:last-child > a:hover,
    .tmv-nav--reference .tmv-nav-menu > li:last-child > a:focus-visible,
    .tmv-nav--reference > a:last-child:hover,
    .tmv-nav--reference > a:last-child:focus-visible {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(11, 29, 43, .16);
        filter: brightness(.98);
    }

    .tmv-nav--reference .tmv-nav-menu > li:last-child > a:active,
    .tmv-nav--reference > a:last-child:active {
        transform: translateY(0) scale(.985);
        box-shadow: 0 6px 14px rgba(11, 29, 43, .10);
    }

    /* Ingen underline-animation på själva knapp-menyalternativet */
    .tmv-nav--reference .tmv-nav-menu > li:last-child > a::after,
    .tmv-nav--reference > a:last-child::after {
        display: none !important;
        content: none !important;
    }
}

/* Mobil: sista toppmenyvalet blir också knapp, men bara sista li/a */
@media (max-width: 860px) {
    .tmv-nav--reference .tmv-nav-menu > li:not(:last-child) > a {
        background: transparent !important;
        color: inherit !important;
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .tmv-nav--reference .tmv-nav-menu > li:last-child > a,
    .tmv-nav--reference > a:last-child {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: fit-content;
        min-height: 42px;
        margin-top: 8px;
        padding: 0 18px !important;
        border: 1px solid var(--tp-ref-gold, #c99243) !important;
        border-radius: 999px !important;
        background: var(--tp-ref-gold, #c99243) !important;
        color: #fff !important;
        font-weight: 700 !important;
        text-decoration: none !important;
    }
}




/* v10.8.6 newsletter: theme controls only wrapper spacing/placement, not colors */
.tmv-ref-newsletter-wrap .tpn-section {
    width: 100%;
}


/* ==========================================================================
   v10.8.7 logo hover fix
   Logotypen ska länka till startsidan men inte få meny-understrykning.
   ========================================================================== */

.tmv-logo,
.tmv-logo--reference,
.tmv-header .tmv-logo,
.tmv-header .tmv-logo--reference {
    text-decoration: none !important;
}

.tmv-logo::before,
.tmv-logo::after,
.tmv-logo--reference::before,
.tmv-logo--reference::after,
.tmv-header .tmv-logo::before,
.tmv-header .tmv-logo::after,
.tmv-header .tmv-logo--reference::before,
.tmv-header .tmv-logo--reference::after {
    display: none !important;
    content: none !important;
    transform: none !important;
}

.tmv-logo:hover,
.tmv-logo:focus-visible,
.tmv-logo--reference:hover,
.tmv-logo--reference:focus-visible {
    text-decoration: none !important;
}

/* Säkerställ att underline-animationen bara gäller själva toppmenyn */
.tmv-nav--reference .tmv-nav-menu > li > a::after,
.tmv-nav--reference > a::after {
    content: "";
}

.tmv-nav--reference .tmv-nav-menu > li:last-child > a::after,
.tmv-nav--reference > a:last-child::after {
    display: none !important;
    content: none !important;
}


/* ==========================================================================
   v10.8.8 WordPress-owned top menu
   ========================================================================== */

.tmv-nav--reference .tmv-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tmv-nav--reference .tmv-nav-menu > li {
    margin: 0;
}

/* Fallback-meny om ingen WordPress-meny ännu är vald */
.tmv-nav-menu--fallback {
    opacity: .92;
}

/* Toppmenyn ska vara WordPress-menyn. Loggan ska inte påverkas av menyhover. */
.tmv-logo::before,
.tmv-logo::after,
.tmv-logo--reference::before,
.tmv-logo--reference::after {
    display: none !important;
    content: none !important;
}


/* ==========================================================================
   v10.8.12 precise speaker shell
   Bara plugin-renderade talar-/ämnessidor får yttre shell.
   Vanliga sidor lämnas till temats befintliga .tmv-inner-page-layout.
   ========================================================================== */

/*
   Temats egna sidor har redan:
   .tmv-reference-home, .tmv-inner-page { width: min(1480px, calc(100% - 24px)); ... box-shadow }
   Talarguide-pluginets single/taxonomy templates ligger däremot direkt som:
   .tp-speaker-profile / .tp-speaker-taxonomy-page
   Därför shellar vi just dessa — inte alla undersidor.
*/

body.single-talare,
body.tax-amne,
body.tax-talarkategori,
body.tax-talartyp,
body.tax-format,
body.tax-bransch {
    background: var(--tp-ref-bg, #f7f3ec) !important;
}

/* Yttre shell: linjerar med footer och övriga huvudytan */
body.single-talare .tp-speaker-profile,
body.tax-amne .tp-speaker-taxonomy-page,
body.tax-talarkategori .tp-speaker-taxonomy-page,
body.tax-talartyp .tp-speaker-taxonomy-page,
body.tax-format .tp-speaker-taxonomy-page,
body.tax-bransch .tp-speaker-taxonomy-page {
    width: min(1480px, calc(100% - 24px)) !important;
    max-width: min(1480px, calc(100% - 24px)) !important;
    margin: 0 auto !important;
    background: var(--tp-ref-main-bg, #fffdf8) !important;
    border-left: 1px solid rgba(11, 29, 43, 0.06);
    border-right: 1px solid rgba(11, 29, 43, 0.06);
    box-shadow: var(--tp-ref-shadow, 0 18px 70px rgba(11, 29, 43, 0.08));
    box-sizing: border-box;
}

/* Talarprofil: yttre shell bred, men innehållet behåller normal läs-/profilbredd */
body.single-talare .tp-speaker-profile {
    padding: clamp(42px, 5vw, 76px) clamp(24px, 5vw, 64px) !important;
}

body.single-talare .tp-speaker-profile > .tp-speaker-back,
body.single-talare .tp-speaker-profile > .tp-speaker-admin-actions,
body.single-talare .tp-speaker-profile > .tp-speaker-profile-grid {
    width: min(1180px, 100%) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Ämnessidor: yttre shell linjerar med footer, grid får bredare arbetsyta */
body.tax-amne .tp-speaker-taxonomy-page,
body.tax-talarkategori .tp-speaker-taxonomy-page,
body.tax-talartyp .tp-speaker-taxonomy-page,
body.tax-format .tp-speaker-taxonomy-page,
body.tax-bransch .tp-speaker-taxonomy-page {
    padding: clamp(42px, 5vw, 76px) clamp(24px, 5vw, 64px) clamp(54px, 5vw, 82px) !important;
}

body.tax-amne .tp-speaker-taxonomy-page > .tp-speaker-taxonomy-header,
body.tax-talarkategori .tp-speaker-taxonomy-page > .tp-speaker-taxonomy-header,
body.tax-talartyp .tp-speaker-taxonomy-page > .tp-speaker-taxonomy-header,
body.tax-format .tp-speaker-taxonomy-page > .tp-speaker-taxonomy-header,
body.tax-bransch .tp-speaker-taxonomy-page > .tp-speaker-taxonomy-header,
body.tax-amne .tp-speaker-taxonomy-page > .tp-speaker-list-component,
body.tax-talarkategori .tp-speaker-taxonomy-page > .tp-speaker-list-component,
body.tax-talartyp .tp-speaker-taxonomy-page > .tp-speaker-list-component,
body.tax-format .tp-speaker-taxonomy-page > .tp-speaker-list-component,
body.tax-bransch .tp-speaker-taxonomy-page > .tp-speaker-list-component {
    width: min(1280px, 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Behåll headerns läsbara bredd inom ämnessidan, men linjera vänster i gridytan */
body.tax-amne .tp-speaker-taxonomy-page > .tp-speaker-taxonomy-header,
body.tax-talarkategori .tp-speaker-taxonomy-page > .tp-speaker-taxonomy-header,
body.tax-talartyp .tp-speaker-taxonomy-page > .tp-speaker-taxonomy-header,
body.tax-format .tp-speaker-taxonomy-page > .tp-speaker-taxonomy-header,
body.tax-bransch .tp-speaker-taxonomy-page > .tp-speaker-taxonomy-header {
    max-width: 1280px !important;
}

body.tax-amne .tp-speaker-taxonomy-page > .tp-speaker-taxonomy-header h1,
body.tax-talarkategori .tp-speaker-taxonomy-page > .tp-speaker-taxonomy-header h1,
body.tax-talartyp .tp-speaker-taxonomy-page > .tp-speaker-taxonomy-header h1,
body.tax-format .tp-speaker-taxonomy-page > .tp-speaker-taxonomy-header h1,
body.tax-bransch .tp-speaker-taxonomy-page > .tp-speaker-taxonomy-header h1,
body.tax-amne .tp-speaker-taxonomy-page > .tp-speaker-taxonomy-header p,
body.tax-talarkategori .tp-speaker-taxonomy-page > .tp-speaker-taxonomy-header p,
body.tax-talartyp .tp-speaker-taxonomy-page > .tp-speaker-taxonomy-header p,
body.tax-format .tp-speaker-taxonomy-page > .tp-speaker-taxonomy-header p,
body.tax-bransch .tp-speaker-taxonomy-page > .tp-speaker-taxonomy-header p {
    max-width: 760px;
}

/* Mobil: samma shellprincip, men mindre sidmarginal */
@media (max-width: 760px) {
    body.single-talare .tp-speaker-profile,
    body.tax-amne .tp-speaker-taxonomy-page,
    body.tax-talartyp .tp-speaker-taxonomy-page,
    body.tax-format .tp-speaker-taxonomy-page,
    body.tax-bransch .tp-speaker-taxonomy-page {
        width: calc(100% - 18px) !important;
        max-width: calc(100% - 18px) !important;
        box-shadow: var(--tp-ref-shadow-mobile, 0 12px 40px rgba(11, 29, 43, 0.10));
    }

    body.single-talare .tp-speaker-profile,
    body.tax-amne .tp-speaker-taxonomy-page,
    body.tax-talartyp .tp-speaker-taxonomy-page,
    body.tax-format .tp-speaker-taxonomy-page,
    body.tax-bransch .tp-speaker-taxonomy-page {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}


/* ==========================================================================
   v10.8.13 newsletter theme boundary
   Temat äger placering/spacing. Nyhetsbrev-pluginet äger färger.
   ========================================================================== */

.tmv-ref-newsletter-wrap {
    padding-left: clamp(30px, 5vw, 64px);
    padding-right: clamp(30px, 5vw, 64px);
}

.tmv-ref-newsletter-wrap .tpn-section {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}


/* ===========================================================================
   v10.8.15 /sok-talare layout boundary
   Theme owns page shell and content width. Search plugin owns only the component.
   ========================================================================== */

.tmv-speaker-search-page {
    width: min(1480px, calc(100% - 24px));
    margin-left: auto;
    margin-right: auto;
}

.tmv-speaker-search-page .tmv-speaker-search-content {
    width: min(1280px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
    padding: clamp(42px, 5vw, 76px) 0;
}

.tmv-speaker-search-page .tm-speaker-search,
.tmv-speaker-search-page .tm-speaker-search-form,
.tmv-speaker-search-page .tm-speaker-search-grid {
    width: 100%;
    max-width: none;
}

@media (max-width: 640px) {
    .tmv-speaker-search-page .tmv-speaker-search-content {
        width: min(100% - 24px, 1280px);
        padding-top: 34px;
        padding-bottom: 46px;
    }
}


/* ========================================================================== 
   v10.8.17 footer CTA/link ownership
   Footer no longer depends on removed nav_* settings.
   ========================================================================== */

.tmv-ref-footer-button .tmv-ref-footer-button-label {
    margin-left: 0;
    font-size: inherit;
    line-height: inherit;
}

.tmv-ref-footer-button span[aria-hidden="true"] {
    margin-left: 18px;
    font-size: 1.4rem;
    line-height: 1;
}










/* ==========================================================================
   v10.8.25 frontpage trust heading alignment
   Rubrikerna i kundcitat och kundloggor låses i samma grid-rad.
   ========================================================================== */

/* Hela trust-sektionen */
body .tmv-reference-home .tmv-ref-trust {
    align-items: stretch !important;
}

/* Båda rutorna får exakt samma layout och samma top-padding. */
body .tmv-reference-home .tmv-ref-trust .tmv-ref-trust-card,
body .tmv-reference-home .tmv-ref-trust .tmv-ref-quote,
body .tmv-reference-home .tmv-ref-trust .tmv-ref-logos {
    display: grid !important;
    grid-template-rows: auto 1fr !important;
    align-content: start !important;
    align-items: start !important;
    justify-content: stretch !important;
    padding: 22px !important;
    margin-top: 0 !important;
    box-sizing: border-box !important;
}

/* Header-raden: exakt samma position i båda korten. */
body .tmv-reference-home .tmv-ref-trust .tmv-ref-trust-card-head {
    grid-row: 1 !important;
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
    align-self: start !important;
}

/* Själva rubrikerna: inga gamla marginaler får påverka. */
body .tmv-reference-home .tmv-ref-trust .tmv-ref-trust-card-head h2,
body .tmv-reference-home .tmv-ref-trust .tmv-ref-quote > h2,
body .tmv-reference-home .tmv-ref-trust .tmv-ref-logos > h2 {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.15 !important;
    transform: none !important;
}

/* Body-raden börjar efter samma header-rad. */
body .tmv-reference-home .tmv-ref-trust .tmv-ref-trust-card-body {
    grid-row: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: start !important;
}

/* Citatinnehållet ska inte kunna flytta rubriken. */
body .tmv-reference-home .tmv-ref-trust .tmv-ref-quote-row {
    margin: 0 !important;
    padding: 0 !important;
    align-items: flex-start !important;
}

/* Logokortets innehåll ska börja direkt efter rubrikens gemensamma header-rad. */
body .tmv-reference-home .tmv-ref-trust .tmv-ref-logos-body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Kundloggor: normaliserad grid/storlek. */
body .tmv-reference-home .tmv-ref-trust .tmv-ref-logos .tmv-client-logo-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)) !important;
    gap: 16px 18px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .tmv-reference-home .tmv-ref-trust .tmv-ref-logos .tmv-client-logo {
    min-height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 10px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body .tmv-reference-home .tmv-ref-trust .tmv-ref-logos .tmv-client-logo img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 38px !important;
    object-fit: contain !important;
    filter: grayscale(1) contrast(1.15);
    opacity: .9;
}

/* Om loggor saknas */
body .tmv-reference-home .tmv-ref-trust.tmv-ref-trust--single {
    grid-template-columns: minmax(0, 1fr) !important;
}

body .tmv-reference-home .tmv-ref-trust.tmv-ref-trust--single .tmv-ref-quote {
    max-width: 720px;
}

@media (max-width: 760px) {
    body .tmv-reference-home .tmv-ref-trust .tmv-ref-trust-card,
    body .tmv-reference-home .tmv-ref-trust .tmv-ref-quote,
    body .tmv-reference-home .tmv-ref-trust .tmv-ref-logos {
        padding: 20px !important;
    }

    body .tmv-reference-home .tmv-ref-trust .tmv-ref-logos .tmv-client-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}


/* ==========================================================================
   v10.8.26 Hero H1 system
   En gemensam art direction för stora hero-rubriker.
   Princip: premium, tydlig, inte blaffig. Samma typografiska röst över sidor.
   ========================================================================== */

:root {
    --tp-hero-h1-color: var(--tp-ref-ink, #0b1d2b);
    --tp-hero-h1-size: clamp(3.15rem, 5.15vw, 5.55rem);
    --tp-hero-h1-size-mobile: clamp(2.55rem, 11vw, 3.65rem);
    --tp-hero-h1-line-height: 0.98;
    --tp-hero-h1-letter-spacing: -0.047em;
    --tp-hero-h1-weight: 650;
    --tp-hero-h1-max-width: 11.8ch;
    --tp-hero-h1-margin: 0 0 22px;
}

/*
   Canoniska Hero H1-selectors:
   - Frontpage: .tmv-ref-hero-copy h1
   - Nyheter:   .tmv-news-archive-hero-copy h1
   - Om oss:    .tp-about-hero h1  (pluginet får samma tokens i v1.2)
*/
.tmv-reference-home .tmv-ref-hero-copy h1,
.tmv-news-archive-page .tmv-news-archive-hero-copy h1,
body .tp-about-page .tp-about-hero h1 {
    max-width: var(--tp-hero-h1-max-width) !important;
    margin: var(--tp-hero-h1-margin) !important;
    color: var(--tp-hero-h1-color) !important;
    font-family: inherit !important;
    font-size: var(--tp-hero-h1-size) !important;
    font-weight: var(--tp-hero-h1-weight) !important;
    line-height: var(--tp-hero-h1-line-height) !important;
    letter-spacing: var(--tp-hero-h1-letter-spacing) !important;
    text-wrap: balance;
    word-spacing: normal;
}

/* Nyheter hade tidigare margin 0; texten under ska få samma rytm som startsidan. */
.tmv-news-archive-page .tmv-news-archive-hero-copy h1 {
    margin-bottom: 20px !important;
}

/* Om oss använde px/max-width 700px; här styr systemet ch-bredden för samma radfallskänsla. */
body .tp-about-page .tp-about-hero h1 {
    max-width: var(--tp-hero-h1-max-width) !important;
}

/* Bodytexterna direkt under hero ska få konsekvent optisk relation till H1. */
.tmv-reference-home .tmv-ref-hero-text,
.tmv-news-archive-page .tmv-news-archive-hero-copy > p:not(.tmv-kicker),
body .tp-about-page .tp-about-hero-content > p {
    max-width: 620px;
}

/* Tablet */
@media (max-width: 860px) {
    :root {
        --tp-hero-h1-size: clamp(2.85rem, 8.2vw, 4.25rem);
        --tp-hero-h1-line-height: 1.02;
        --tp-hero-h1-letter-spacing: -0.038em;
        --tp-hero-h1-max-width: 10.8ch;
    }

    .tmv-reference-home .tmv-ref-hero-copy h1,
    .tmv-news-archive-page .tmv-news-archive-hero-copy h1,
    body .tp-about-page .tp-about-hero h1 {
        font-size: var(--tp-hero-h1-size) !important;
        line-height: var(--tp-hero-h1-line-height) !important;
        letter-spacing: var(--tp-hero-h1-letter-spacing) !important;
        max-width: var(--tp-hero-h1-max-width) !important;
    }
}

/* Mobile */
@media (max-width: 560px) {
    :root {
        --tp-hero-h1-size: var(--tp-hero-h1-size-mobile);
        --tp-hero-h1-line-height: 1.04;
        --tp-hero-h1-letter-spacing: -0.028em;
        --tp-hero-h1-max-width: 10.5ch;
    }

    .tmv-reference-home .tmv-ref-hero-copy h1,
    .tmv-news-archive-page .tmv-news-archive-hero-copy h1,
    body .tp-about-page .tp-about-hero h1 {
        font-size: var(--tp-hero-h1-size) !important;
        line-height: var(--tp-hero-h1-line-height) !important;
        letter-spacing: var(--tp-hero-h1-letter-spacing) !important;
        max-width: var(--tp-hero-h1-max-width) !important;
    }
}


/* ==========================================================================
   v10.8.28 theme-owned contact page
   Tema äger färger, typografi, knappar och visuell identitet för kontaktsidan.
   Meddelande-pluginet tillhandahåller data/formulär/markup.
   ========================================================================== */

body .tm-contact-page {
    background: var(--tp-contact-page-bg, var(--tp-ref-main-bg, #fffdf8)) !important;
    color: var(--tp-contact-text, var(--tp-ref-ink, #0b1d2b));
    box-shadow: 0 18px 70px rgba(11, 29, 43, .08);
}

body .tm-contact-page .tm-contact-hero {
    background: var(--tp-contact-page-bg, var(--tp-ref-main-bg, #fffdf8)) !important;
}

body .tm-contact-page .tm-contact-hero-media {
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

body .tm-contact-page .tm-contact-kicker {
    color: var(--tp-contact-accent, var(--tp-ref-accent, #c99243)) !important;
}

body .tm-contact-page h1,
body .tm-contact-page h2,
body .tm-contact-page h3,
body .tm-contact-page .tm-message-form-wrap h2,
body .tm-contact-page .tm-contact-info-item strong {
    color: var(--tp-contact-heading, var(--tp-ref-ink, #0b1d2b)) !important;
}

body .tm-contact-page p,
body .tm-contact-page label,
body .tm-contact-page .tm-contact-info-item p,
body .tm-contact-page .tm-message-form label,
body .tm-contact-page .tm-message-form span {
    color: var(--tp-contact-text, var(--tp-ref-ink, #0b1d2b)) !important;
}

body .tm-contact-page small,
body .tm-contact-page .tm-contact-form-intro {
    color: var(--tp-contact-muted, #6b6258) !important;
}

body .tm-contact-page .tm-contact-form-card,
body .tm-contact-page .tm-contact-info-card {
    background: var(--tp-contact-card-bg, #fff) !important;
    border: 1px solid rgba(11,29,43,.09);
    box-shadow: 0 18px 50px rgba(11,29,43,.08);
}

body .tm-contact-page .tm-contact-benefits {
    background: var(--tp-contact-soft-bg, var(--tp-ref-bg, #f7f3ec)) !important;
}

body .tm-contact-page .tm-message-form-wrap {
    background: transparent !important;
    box-shadow: none !important;
}

body .tm-contact-page .tm-message-form input,
body .tm-contact-page .tm-message-form select,
body .tm-contact-page .tm-message-form textarea {
    background: #fff !important;
    border-color: rgba(11,29,43,.15) !important;
    color: var(--tp-contact-text, var(--tp-ref-ink, #0b1d2b)) !important;
}

body .tm-contact-page .tm-message-form button.tm-message-submit,
body .tm-contact-page button.tm-message-submit,
body .tm-contact-page .tm-message-submit {
    appearance: none !important;
    background-color: var(--tp-contact-button-bg, var(--tp-ref-deep, #102018)) !important;
    background-image: none !important;
    background: var(--tp-contact-button-bg, var(--tp-ref-deep, #102018)) !important;
    color: var(--tp-contact-button-text, #fff) !important;
    border-color: var(--tp-contact-button-bg, var(--tp-ref-deep, #102018)) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body .tm-contact-page .tm-contact-secondary-button {
    border-color: var(--tp-contact-accent, var(--tp-ref-accent, #c99243)) !important;
    color: var(--tp-contact-heading, var(--tp-ref-ink, #0b1d2b)) !important;
}

body .tm-contact-page .tm-contact-support-line span,
body .tm-contact-page .tm-contact-info-icon,
body .tm-contact-page .tm-contact-benefit > span {
    color: var(--tp-contact-accent, var(--tp-ref-accent, #c99243)) !important;
}

@media (max-width: 980px) {
    body .tm-contact-page .tm-contact-hero-media {
        clip-path: none;
    }
}


/* ==========================================================================
   v10.8.50 contact info card cleanup
   Tar bort sekundärlänken "Om oss" och den dekorativa bakgrundsformen på /kontakt/.
   Messages-pluginet behåller markup/formulärlogik; temat styr endast visuell presentation.
   ========================================================================== */

body .tm-contact-page .tm-contact-secondary-button {
    display: none !important;
}

body .tm-contact-page .tm-contact-main-grid::after {
    content: none !important;
    display: none !important;
}


/* ==========================================================================
   v10.8.29 contact submit button fallback
   Den faktiska fixen injiceras sent på pluginets style-handle `tm-messages`
   från functions.php, så den hamnar efter Meddelande-pluginets egen CSS.
   ========================================================================== */

body .tm-contact-page .tm-message-submit {
    background: var(--tp-contact-button-bg, var(--tp-ref-deep, #102018));
    color: var(--tp-contact-button-text, #fff);
}


/* ==========================================================================
   v10.8.39 no footer/accent gradients
   Accent och footer ska använda solid färg, inte gradient/fallback på gamla _2-värden.
   ========================================================================== */

.tmv-ref-header-cta,
.tmv-ref-hero .tmv-button,
.tmv-ref-hero .tmv-button:not(.tmv-button-light),
.tmv-ref-newsletter button,
.tmv-ref-newsletter input[type="submit"],
.tmv-button:not(.tmv-button-light),
.tmv-primary-button {
    background-image: none !important;
    background: var(--tp-ref-gold) !important;
}

.tmv-ref-footer,
.tmv-footer,
footer.tmv-footer,
footer.tmv-ref-footer {
    background-image: none !important;
    background: var(--tp-ref-deep) !important;
}



/* ==========================================================================
   v10.8.41 clients disabled frontend safety
   Om kundloggor är avstängda ska blocket inte synas även om äldre markup renderas.
   ========================================================================== */

body.tmv-clients-disabled .tmv-ref-trust .tmv-ref-logos,
body.tmv-clients-disabled .tmv-ref-trust .tmv-ref-logos-body,
body.tmv-clients-disabled .tmv-ref-trust .tmv-client-logo-grid,
body.tmv-clients-disabled .tmv-clients,
body.tmv-clients-disabled .tmv-ref-clients {
    display: none !important;
}


/* ==========================================================================
   v10.8.44 larger menu logo
   Gör endast header-/menylogotypen cirka 10% större. Menystruktur och höjd
   lämnas oförändrade så patchen inte påverkar navigation eller mobilmeny.
   ========================================================================== */
.tmv-header--reference .tmv-logo-image,
.tmv-header--reference .tmv-logo--reference .tmv-logo-image {
    max-width: 253px;
    max-height: 64px;
}

.tmv-header--reference .tmv-logo--reference {
    font-size: clamp(2.2rem, 3.3vw, 3.41rem);
}

@media (max-width: 560px) {
    .tmv-header--reference .tmv-logo-image,
    .tmv-header--reference .tmv-logo--reference .tmv-logo-image {
        max-width: 182px;
        max-height: 48px;
    }

    .tmv-header--reference .tmv-logo--reference {
        font-size: 2.09rem;
    }
}


/* ========================================================================== 
   v10.8.47/10.8.48 unified frontend button hover states (base CSS; reinforced inline after plugin CSS)
   Theme-owned button polish for public-facing buttons only.
   ========================================================================== */
:root {
    --tp-button-bg: var(--tp-ref-gold, #c99243);
    --tp-button-bg-hover: var(--tp-ref-deep, #07313c);
    --tp-button-text: #ffffff;
}

.tmv-nav--reference > .tmv-button,
.tmv-ref-header-cta,
.tmv-header--reference .tmv-nav--reference .tmv-nav-menu li:last-child > a,
.tmv-header--reference .tmv-nav .tmv-nav-menu li:last-child > a,
.tmv-nav--reference .tmv-nav-menu li:last-child > a,
.tmv-nav .tmv-nav-menu li:last-child > a,
.tmv-ref-hero .tmv-button:not(.tmv-button-light),
.tmv-ref-hero-actions a,
.tmv-ref-search button,
.tmv-ref-search .tm-speaker-search-submit,
.tmv-ref-newsletter button,
.tmv-ref-newsletter input[type="submit"],
.tmv-ref-footer-button,
.tmv-button:not(.tmv-button-light),
.tmv-primary-button,
.tm-speaker-search-form button[type="submit"],
.tm-speaker-search-load-more,
.tp-speaker-primary-button,
.single-talare .tm-speaker-request-form-wrap .tm-message-submit,
.tm-speaker-request-form-wrap .tm-speaker-request-form .tm-message-submit,
.tm-speaker-request-form-wrap button.tm-message-submit,
.tm-message-submit,
.tpn-section .tpn-form button,
.tmv-ref-newsletter-wrap .tpn-form button,
.tmv-news-archive-newsletter .tpn-form button {
    background: var(--tp-button-bg) !important;
    border-color: var(--tp-button-bg) !important;
    color: var(--tp-button-text) !important;
    background-image: none !important;
    transition:
        transform .18s var(--tp-interaction-ease, cubic-bezier(.2, .8, .2, 1)),
        box-shadow .18s var(--tp-interaction-ease, cubic-bezier(.2, .8, .2, 1)),
        background-color .18s var(--tp-interaction-ease, cubic-bezier(.2, .8, .2, 1)),
        border-color .18s var(--tp-interaction-ease, cubic-bezier(.2, .8, .2, 1)),
        color .18s var(--tp-interaction-ease, cubic-bezier(.2, .8, .2, 1));
}

.tmv-nav--reference > .tmv-button:hover,
.tmv-nav--reference > .tmv-button:focus-visible,
.tmv-ref-header-cta:hover,
.tmv-ref-header-cta:focus-visible,
.tmv-header--reference .tmv-nav--reference .tmv-nav-menu li:last-child > a:hover,
.tmv-header--reference .tmv-nav--reference .tmv-nav-menu li:last-child > a:focus-visible,
.tmv-header--reference .tmv-nav .tmv-nav-menu li:last-child > a:hover,
.tmv-header--reference .tmv-nav .tmv-nav-menu li:last-child > a:focus-visible,
.tmv-nav--reference .tmv-nav-menu li:last-child > a:hover,
.tmv-nav--reference .tmv-nav-menu li:last-child > a:focus-visible,
.tmv-nav .tmv-nav-menu li:last-child > a:hover,
.tmv-nav .tmv-nav-menu li:last-child > a:focus-visible,
.tmv-ref-hero .tmv-button:not(.tmv-button-light):hover,
.tmv-ref-hero .tmv-button:not(.tmv-button-light):focus-visible,
.tmv-ref-hero-actions a:hover,
.tmv-ref-hero-actions a:focus-visible,
.tmv-ref-search button:hover,
.tmv-ref-search button:focus-visible,
.tmv-ref-search .tm-speaker-search-submit:hover,
.tmv-ref-search .tm-speaker-search-submit:focus-visible,
.tmv-ref-newsletter button:hover,
.tmv-ref-newsletter button:focus-visible,
.tmv-ref-newsletter input[type="submit"]:hover,
.tmv-ref-newsletter input[type="submit"]:focus-visible,
.tmv-ref-footer-button:hover,
.tmv-ref-footer-button:focus-visible,
.tmv-button:not(.tmv-button-light):hover,
.tmv-button:not(.tmv-button-light):focus-visible,
.tmv-primary-button:hover,
.tmv-primary-button:focus-visible,
.tm-speaker-search-form button[type="submit"]:hover,
.tm-speaker-search-form button[type="submit"]:focus-visible,
.tm-speaker-search-load-more:hover,
.tm-speaker-search-load-more:focus-visible,
.tp-speaker-primary-button:hover,
.tp-speaker-primary-button:focus-visible,
.single-talare .tm-speaker-request-form-wrap .tm-message-submit:hover,
.single-talare .tm-speaker-request-form-wrap .tm-message-submit:focus-visible,
.tm-speaker-request-form-wrap .tm-speaker-request-form .tm-message-submit:hover,
.tm-speaker-request-form-wrap .tm-speaker-request-form .tm-message-submit:focus-visible,
.tm-speaker-request-form-wrap button.tm-message-submit:hover,
.tm-speaker-request-form-wrap button.tm-message-submit:focus-visible,
.tm-message-submit:hover,
.tm-message-submit:focus-visible,
.tpn-section .tpn-form button:hover,
.tpn-section .tpn-form button:focus-visible,
.tmv-ref-newsletter-wrap .tpn-form button:hover,
.tmv-ref-newsletter-wrap .tpn-form button:focus-visible,
.tmv-news-archive-newsletter .tpn-form button:hover,
.tmv-news-archive-newsletter .tpn-form button:focus-visible {
    background: var(--tp-button-bg-hover) !important;
    border-color: var(--tp-button-bg-hover) !important;
    color: var(--tp-button-text) !important;
    background-image: none !important;
}
