:root {
    --tmv-black: #111111;
    --tmv-sand: #F6F1EA;
    --tmv-gold: #C49A5A;
    --tmv-white: #FFFFFF;
    --tmv-shadow: 0 20px 60px rgba(17,17,17,.10);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--tmv-sand);
    color: var(--tmv-black);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a { color: inherit; }

.tmv-section,
.tmv-header-inner,
.tmv-footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.tmv-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(246,241,234,.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(17,17,17,.08);
}

.tmv-header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.tmv-logo {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -.04em;
    font-size: 1.3rem;
}

.tmv-logo-image {
    display: block;
    width: auto;
    max-width: 230px;
    max-height: 56px;
    object-fit: contain;
}

.tmv-logo-text {
    display: inline-block;
}

.tmv-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.tmv-nav a {
    text-decoration: none;
    font-weight: 650;
}

.tmv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 12px 22px;
    background: var(--tmv-black);
    color: var(--tmv-white);
    text-decoration: none;
    font-weight: 800;
    border: 1px solid var(--tmv-black);
}

.tmv-button-light {
    background: var(--tmv-white);
    color: var(--tmv-black);
    border-color: rgba(17,17,17,.12);
}

.tmv-hero {
    padding: clamp(42px, 7vw, 100px) 0 48px;
}

.tmv-hero-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: stretch;
}

.tmv-kicker {
    color: var(--tmv-gold);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
}

.tmv-hero h1 {
    font-size: clamp(3rem, 8vw, 6.8rem);
    line-height: .95;
    letter-spacing: -.07em;
    max-width: 9ch;
    margin: 14px 0 20px;
}

.tmv-lead {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    max-width: 62ch;
    color: rgba(17,17,17,.76);
}

.tmv-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.tmv-hero-image {
    min-height: 680px;
    height: 100%;
    align-self: stretch;
    border-radius: 28px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--tmv-shadow);
}

.tmv-search-box {
    background: var(--tmv-white);
    border-radius: 24px;
    padding: 16px;
    box-shadow: var(--tmv-shadow);
    margin-top: 28px;
}

.tmv-search-box form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.tmv-search-box input {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(17,17,17,.14);
    border-radius: 16px;
    padding: 0 14px;
    font: inherit;
}

.tmv-section {
    padding: clamp(44px, 8vw, 96px) 0;
}

.tmv-section-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 28px;
}

.tmv-section h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -.055em;
    margin: 0;
}

.tmv-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.tmv-card {
    background: var(--tmv-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(17,17,17,.06);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.tmv-card-image {
    aspect-ratio: 4 / 5;
    background-size: cover;
    background-position: center;
}

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

.tmv-card h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
    letter-spacing: -.03em;
}

.tmv-card p {
    margin: 0;
    color: rgba(17,17,17,.68);
}

.tmv-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.tmv-step {
    padding: 28px;
    border-radius: 24px;
    background: var(--tmv-black);
    color: var(--tmv-white);
}

.tmv-step span {
    color: var(--tmv-gold);
    font-weight: 900;
}

.tmv-cta {
    background: var(--tmv-black);
    color: var(--tmv-white);
    border-radius: 36px;
    padding: clamp(32px, 6vw, 72px);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.tmv-cta::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 42%;
    background-image: var(--tmv-cta-image);
    background-size: cover;
    background-position: center;
    opacity: .18;
}

.tmv-cta > * {
    position: relative;
    z-index: 1;
}

.tmv-footer {
    background: var(--tmv-black);
    color: var(--tmv-white);
    padding: 48px 0;
    margin-top: 64px;
}

.tmv-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.tmv-footer-text {
    color: rgba(255,255,255,.82);
    max-width: 680px;
}

@media (max-width: 1024px) {
    .tmv-hero-grid { grid-template-columns: 1fr; }
    .tmv-hero-image { min-height: 420px; }
    .tmv-card-grid, .tmv-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .tmv-nav a:not(.tmv-button) { display: none; }
    .tmv-logo-image { max-width: 165px; max-height: 44px; }
    .tmv-hero-image { min-height: 300px; }
    .tmv-search-box form, .tmv-card-grid, .tmv-steps, .tmv-cta { grid-template-columns: 1fr; }
    .tmv-section-head { align-items: start; flex-direction: column; }
    .tmv-cta::after { width: 100%; opacity: .12; }
}


.tmv-footer-brand {
    display: flex;
    align-items: flex-start;
    min-width: 180px;
}

.tmv-footer-logo-image {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 64px;
    object-fit: contain;
}


.tmv-search-box-shortcode {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.tmv-search-box-shortcode .tm-speaker-search {
    width: 100%;
    padding: 0;
}

.tmv-search-box-shortcode .tm-speaker-search-form {
    margin: 0;
}

.tmv-card-kicker {
    color: var(--tmv-gold) !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .72rem;
    margin: 0 0 8px !important;
}


/* v4.6 compact speaker archive */
.tmv-speakers-archive--compact {
    padding-top: 24px !important;
}

.tmv-speakers-archive--compact .tmv-section-head,
.tmv-speakers-archive--compact .tmv-eyebrow {
    display: none !important;
}

.tmv-speakers-archive--compact .tmv-card-grid,
.tmv-speaker-grid,
.post-type-archive-talare .tmv-card-grid {
    margin-top: 24px !important;
}

.post-type-archive-talare .site-main,
.post-type-archive-talare main {
    padding-top: 24px !important;
}

.post-type-archive-talare h1:first-child {
    margin-bottom: 24px !important;
}


/* v4.7 hero alignment */
.tmv-hero-grid > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tmv-hero-grid .tmv-search-box {
    margin-top: 32px;
}

@media (max-width: 1024px) {
    .tmv-hero-grid > div:first-child {
        display: block;
    }

    .tmv-hero-image {
        min-height: 420px;
        height: auto;
    }
}


/* v4.9 fixed header + compact speaker/list pages */
body {
    padding-top: 78px;
}

.tmv-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
}

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

.tmv-header-inner {
    min-height: 78px;
}

.tmv-logo,
.tmv-logo-image {
    overflow: visible;
}

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

.tmv-page-main--speaker-list {
    padding-top: 16px !important;
}

.tmv-page-main--speaker-list article {
    margin-top: 0 !important;
}

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

@media (max-width: 720px) {
    body {
        padding-top: 68px;
    }

    .tmv-header-inner {
        min-height: 68px;
    }
}


/* v4.9.1 search title fixed-header spacing */
.tmv-page-main--speaker-list {
    padding-top: 48px !important;
}

.tmv-page-main--speaker-list h1,
.tm-speaker-search-virtual-inner h1 {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.tm-speaker-search-virtual-page {
    padding-top: 96px !important;
}

body.admin-bar .tm-speaker-search-virtual-page {
    padding-top: 112px !important;
}

@media (max-width: 720px) {
    .tmv-page-main--speaker-list {
        padding-top: 36px !important;
    }

    .tm-speaker-search-virtual-page {
        padding-top: 82px !important;
    }
}


/* v4.9.2: show hero image before text on mobile/tablet */
@media (max-width: 1024px) {
    .tmv-hero-grid {
        grid-template-columns: 1fr;
    }

    .tmv-hero-grid > div:first-child {
        order: 2;
    }

    .tmv-hero-image {
        order: 1;
        margin-bottom: 8px;
    }
}


/* v4.9.3: hide duplicate page title on contact/form pages via page.php */
.tmv-page-main .tm-message-form-wrap:first-child {
    margin-top: 0;
}


/* v4.9.4: tighter front page section spacing */
body.home .tmv-hero,
body.front-page .tmv-hero {
    padding-top: clamp(34px, 5vw, 72px);
    padding-bottom: 28px;
}

body.home .tmv-section,
body.front-page .tmv-section {
    padding-top: clamp(34px, 5vw, 64px);
    padding-bottom: clamp(34px, 5vw, 64px);
}

body.home .tmv-hero + .tmv-section,
body.front-page .tmv-hero + .tmv-section {
    padding-top: 32px;
}

body.home .tmv-section-head,
body.front-page .tmv-section-head {
    margin-bottom: 22px;
}

body.home .tmv-card-grid,
body.home .tmv-steps,
body.front-page .tmv-card-grid,
body.front-page .tmv-steps {
    margin-top: 0;
}

body.home .tmv-section:has(.tmv-cta),
body.front-page .tmv-section:has(.tmv-cta) {
    padding-top: 38px;
    padding-bottom: 58px;
}

@media (max-width: 720px) {
    body.home .tmv-hero,
    body.front-page .tmv-hero {
        padding-top: 26px;
        padding-bottom: 22px;
    }

    body.home .tmv-section,
    body.front-page .tmv-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    body.home .tmv-hero + .tmv-section,
    body.front-page .tmv-hero + .tmv-section {
        padding-top: 24px;
    }
}


/* v4.9.5: keep hero image aligned to top on mobile/landscape */
@media (max-width: 1024px) {
    .tmv-hero-image {
        background-position: center top !important;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    .tmv-hero-image {
        min-height: 360px;
        background-position: center 12% !important;
    }
}

@media (max-width: 720px) {
    .tmv-hero-image {
        background-position: center top !important;
    }
}


/* v4.9.6 native WordPress top menu */
.tmv-nav .tmv-nav-menu {
    display: flex;
    gap: 24px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.tmv-nav .tmv-nav-menu a {
    text-decoration: none;
    font-weight: 650;
    color: inherit;
}

.tmv-nav .tmv-nav-menu li:last-child > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 12px 22px;
    background: var(--tmv-black);
    color: var(--tmv-white);
    font-weight: 800;
    border: 1px solid var(--tmv-black);
}

@media (max-width: 720px) {
    .tmv-nav .tmv-nav-menu li:not(:last-child) {
        display: none;
    }
}


/* v4.9.8 mobile hamburger menu */
.tmv-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(17,17,17,.12);
    border-radius: 999px;
    background: #fff;
    color: var(--tmv-black);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 10002;
}

.tmv-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}

body.tmv-mobile-menu-open .tmv-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.tmv-mobile-menu-open .tmv-menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.tmv-mobile-menu-open .tmv-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 720px) {
    .tmv-menu-toggle {
        display: inline-flex;
    }

    .tmv-header-inner {
        position: relative;
    }

    .tmv-nav {
        position: fixed;
        top: 68px;
        left: 12px;
        right: 12px;
        z-index: 10001;
        background: rgba(255,255,255,.98);
        border: 1px solid rgba(17,17,17,.10);
        border-radius: 24px;
        box-shadow: 0 22px 70px rgba(17,17,17,.18);
        padding: 18px;
        display: none;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .admin-bar .tmv-nav {
        top: 114px;
    }

    body.tmv-mobile-menu-open .tmv-nav {
        display: flex;
    }

    .tmv-nav > a,
    .tmv-nav .tmv-nav-menu a {
        min-height: 46px;
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        border-radius: 14px;
        padding: 10px 12px;
        text-decoration: none;
        font-weight: 800;
    }

    .tmv-nav .tmv-nav-menu {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        width: 100%;
    }

    .tmv-nav .tmv-nav-menu li,
    .tmv-nav .tmv-nav-menu li:not(:last-child) {
        display: block !important;
        width: 100%;
    }

    .tmv-nav .tmv-nav-menu li:last-child > a,
    .tmv-nav > .tmv-button {
        justify-content: center;
        background: var(--tmv-black);
        color: var(--tmv-white);
        border-radius: 999px;
        margin-top: 4px;
    }

    body.tmv-mobile-menu-open {
        overflow: hidden;
    }
}


/* v5.2 clean news section after featured profiles */
.tmv-news-section {
    padding-top: clamp(34px, 5vw, 58px);
    padding-bottom: clamp(34px, 5vw, 58px);
}

.tmv-news-section-head {
    text-align: left;
    margin-bottom: 24px;
}

.tmv-news-section-head .tmv-kicker,
.tmv-news-kicker {
    color: var(--tmv-gold);
    margin: 0 0 10px;
}

.tmv-news-section-head h2 {
    text-align: left;
    margin: 0;
}

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

.tmv-news-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--tmv-shadow);
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    min-height: 280px;
}

.tmv-news-image {
    display: grid;
    place-items: center;
    min-height: 100%;
    background: #eee;
    color: rgba(17,17,17,.45);
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.tmv-news-image img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

.tmv-news-body {
    padding: clamp(22px, 3vw, 34px);
    display: flex;
    flex-direction: column;
}

.tmv-news-body time {
    color: var(--tmv-gold);
    font-weight: 900;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px;
}

.tmv-news-body h3 {
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    margin: 0 0 12px;
}

.tmv-news-body h3 a {
    color: inherit;
    text-decoration: none;
}

.tmv-news-body p {
    color: rgba(17,17,17,.68);
    margin: 0 0 18px;
    line-height: 1.55;
}

.tmv-news-readmore {
    margin-top: auto;
    color: var(--tmv-black);
    font-weight: 900;
    text-decoration: none;
}

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

@media (max-width: 640px) {
    .tmv-news-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

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

    .tmv-news-image img,
    .tmv-news-image {
        min-height: 220px;
    }
}


/* v5.2 native blog/single post styling */
.tmv-post-main,
.tmv-blog-main {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.tmv-post {
    max-width: 860px;
    margin: 0 auto;
}

.tmv-post-header h1,
.tmv-blog-main h1 {
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: .95;
    letter-spacing: -.06em;
    margin: 0 0 28px;
}

.tmv-post-image {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--tmv-shadow);
    margin: 0 0 34px;
}

.tmv-post-image img {
    display: block;
    width: 100%;
    height: auto;
}

.tmv-post-content {
    font-size: 1.1rem;
    line-height: 1.75;
}

.tmv-post-content h2,
.tmv-post-content h3,
.tmv-post-content h4 {
    line-height: 1.08;
    letter-spacing: -.035em;
    margin: 1.4em 0 .5em;
}

.tmv-post-content blockquote {
    margin: 1.6em 0;
    padding: 22px 26px;
    border-left: 5px solid var(--tmv-gold);
    background: rgba(196,154,90,.10);
    border-radius: 18px;
}

.tmv-pagination {
    margin-top: 36px;
}


/* v5.3 client logos on front page */
.tmv-clients-section {
    padding-top: clamp(34px, 5vw, 58px);
    padding-bottom: clamp(46px, 6vw, 78px);
}

.tmv-clients-head {
    margin-bottom: 24px;
}

.tmv-client-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.tmv-client-logo {
    min-height: 118px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--tmv-shadow);
    border: 1px solid rgba(17,17,17,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

a.tmv-client-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(17,17,17,.12);
}

.tmv-client-logo img {
    display: block;
    max-width: 100%;
    max-height: 58px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .78;
    transition: filter .18s ease, opacity .18s ease;
}

a.tmv-client-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@media (max-width: 900px) {
    .tmv-client-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .tmv-client-logo-grid {
        grid-template-columns: 1fr;
    }

    .tmv-client-logo {
        min-height: 96px;
    }
}


/* v5.3.2 news section show-all link */
.tmv-news-section .tmv-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
}

.tmv-news-section .tmv-section-head > a {
    color: var(--tmv-black);
    font-weight: 900;
    text-decoration: none;
}

.tmv-news-section .tmv-news-kicker {
    color: var(--tmv-gold);
}

@media (max-width: 640px) {
    .tmv-news-section .tmv-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* v5.3.4 client logo display/page fixes */
.tmv-client-logo-grid:empty {
    display: none;
}

.tmv-client-logo-grid--page {
    margin-top: 24px;
}

.tmv-client-logo-grid--page .tmv-client-logo {
    min-height: 130px;
}

.tmv-client-logo img {
    display: block;
}


/* v5.3.5 unified "Visa alla" links */
.tmv-show-all-link,
.tmv-section-head > a.tmv-show-all-link,
.tmv-news-section .tmv-section-head > a.tmv-show-all-link,
.tmv-clients-head > a.tmv-show-all-link {
    color: #111 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    margin-top: 0;
}

.tmv-show-all-link:hover,
.tmv-show-all-link:focus {
    color: #111 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

.tmv-section-head > a:not(.tmv-button),
.tmv-news-section .tmv-section-head > a:not(.tmv-button),
.tmv-clients-head > a:not(.tmv-button) {
    color: #111;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 640px) {
    .tmv-show-all-link {
        margin-top: 2px;
    }
}


/* v5.3.6 robust news archive page */
.tmv-news-archive {
    width: 100%;
}

.tmv-news-pagination {
    margin-top: 34px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tmv-news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 40px;
    border-radius: 999px;
    padding: 8px 13px;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(17,17,17,.07);
}

.tmv-news-pagination .page-numbers.current {
    background: #111;
    color: #fff;
}


/* v5.3.8 cleaner front-page search block */
.home .tmv-search-box-shortcode .tm-speaker-search-form--compact label > span {
    display: none !important;
}

.home .tmv-search-box-shortcode .tm-speaker-search-form--compact label {
    gap: 0 !important;
}

.home .tmv-search-box-shortcode .tm-speaker-search-form--compact {
    align-items: end;
}


/* v5.3.9 footer privacy link */
.tmv-footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 20px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.14);
    display: flex;
    justify-content: flex-start;
}

.tmv-footer-privacy-link {
    color: rgba(255,255,255,.78);
    font-weight: 800;
    text-decoration: none;
}

.tmv-footer-privacy-link:hover,
.tmv-footer-privacy-link:focus {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* v7.0 Reference design - desktop and mobile */
: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-card: #fffdf8;
    --tp-ref-line: rgba(11,29,43,.12);
    --tp-ref-muted: rgba(11,29,43,.72);
    --tp-ref-shadow: 0 18px 50px rgba(11,29,43,.10);
}

html { scroll-behavior: smooth; }
body { background: var(--tp-ref-bg); color: var(--tp-ref-ink); }

.tmv-header--reference {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,253,248,.94) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(11,29,43,.08);
    box-shadow: none;
}
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 {
    font-size: clamp(2rem, 3vw, 3.1rem);
    font-weight: 900;
    letter-spacing: -.055em;
    color: var(--tp-ref-deep);
}
.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 { color: var(--tp-ref-ink); font-weight: 800; font-size: 1.02rem; }

.tmv-nav--reference .tmv-nav-menu li:last-child > a,
.tmv-nav--reference > .tmv-button {
    background: var(--tp-ref-gold);
    color: #fff !important;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(201,146,67,.20);
}
.tmv-nav--reference .tmv-nav-menu li:last-child > a::after,
.tmv-nav--reference > .tmv-button::after { content: "→"; margin-left: 12px; font-size: 1.3rem; line-height: 1; }

.tmv-reference-home {
    width: min(1480px, calc(100% - 24px));
    margin: 0 auto;
    background: #fffdf8;
    border-left: 1px solid rgba(11,29,43,.06);
    border-right: 1px solid rgba(11,29,43,.06);
    box-shadow: 0 18px 70px rgba(11,29,43,.08);
}

.tmv-ref-hero { position: relative; background: #fffdf8; overflow: hidden; }
.tmv-ref-hero-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(520px, .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: .98rem; letter-spacing: .12em; font-weight: 900; text-transform: uppercase;
}
.tmv-ref-hero-copy h1 {
    color: var(--tp-ref-ink);
    font-size: clamp(3.8rem, 6.4vw, 6.35rem);
    line-height: .93; letter-spacing: -.065em;
    margin: 0 0 22px; max-width: 10.4ch; font-weight: 900;
}
.tmv-ref-hero-text { max-width: 55ch; color: var(--tp-ref-ink); font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.48; margin: 0; }
.tmv-ref-hero-image {
    position: relative; min-height: 480px; background-size: cover; background-position: center;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}
.tmv-ref-hero-image::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(255,253,248,.04), rgba(6,18,25,.18)); }

.tmv-ref-search {
    position: absolute;
    left: clamp(30px, 5vw, 64px);
    right: -110px;
    bottom: 28px;
    z-index: 5;
    background: #fffdf8;
    border: 1px solid rgba(11,29,43,.14);
    border-radius: 7px;
    box-shadow: 0 12px 34px rgba(11,29,43,.12);
    padding: 10px;
}
.tmv-ref-search form,
.tmv-ref-search .tm-speaker-search-form,
.tmv-ref-search .tm-speaker-search-form--compact {
    display: grid !important;
    grid-template-columns: minmax(230px, 1.3fr) minmax(130px, .65fr) minmax(130px, .65fr) minmax(130px, .65fr) auto !important;
    gap: 10px !important; margin: 0 !important; align-items: stretch !important;
}
.tmv-ref-search label { margin: 0 !important; }
.tmv-ref-search label > span:not(.screen-reader-text),
.tmv-ref-search .tm-speaker-search-form--compact label > span { display: none !important; }
.tmv-ref-search input, .tmv-ref-search select {
    min-height: 46px !important; height: 46px !important; border-radius: 6px !important;
    border: 1px solid rgba(11,29,43,.16) !important; color: var(--tp-ref-ink) !important;
    background: #fff !important; font-weight: 650 !important; padding: 0 14px !important; box-shadow: none !important;
}
.tmv-ref-search button,
.tmv-ref-search .tm-speaker-search-submit {
    min-height: 46px !important; height: 46px !important; border-radius: 6px !important; border: 0 !important;
    background: var(--tp-ref-gold) !important;
    color: #fff !important; font-weight: 900 !important; padding: 0 24px !important; white-space: nowrap; box-shadow: none !important;
}

.tmv-ref-benefits {
    display: grid; grid-template-columns: repeat(3, 1fr);
    padding: 18px clamp(30px, 5vw, 64px); gap: 0;
    border-top: 1px solid rgba(11,29,43,.06); background: rgba(255,253,248,.92);
}
.tmv-ref-benefit { display:flex; align-items:center; gap:14px; min-height:68px; padding:0 26px; border-right:1px solid rgba(11,29,43,.16); }
.tmv-ref-benefit:first-child { padding-left:0; }
.tmv-ref-benefit:last-child { border-right:0; }
.tmv-ref-benefit-icon { width:38px; height:38px; flex:0 0 auto; display:grid; place-items:center; color:var(--tp-ref-deep); font-size:1.45rem; filter:grayscale(1); }
.tmv-ref-benefit strong { display:block; font-size:1rem; line-height:1.1; color:var(--tp-ref-ink); }
.tmv-ref-benefit p { margin:4px 0 0; color:var(--tp-ref-muted); line-height:1.2; }

.tmv-ref-content-grid { display:grid; grid-template-columns:minmax(0, 2.1fr) minmax(360px, .9fr); gap:30px; padding:26px clamp(30px, 5vw, 64px) 14px; }
.tmv-ref-section-head { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:14px; }
.tmv-ref-section-head h2, .tmv-ref-trust h2 { margin:0; font-size:1.55rem; line-height:1.1; letter-spacing:-.025em; color:var(--tp-ref-ink); }
.tmv-ref-section-head a { color:var(--tp-ref-gold); text-decoration:none; font-weight:900; white-space:nowrap; }

.tmv-ref-speaker-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:20px; }
.tmv-ref-speaker-card {
    display:grid; grid-template-rows:auto 1fr; color:var(--tp-ref-ink); text-decoration:none;
    border-radius:7px; overflow:hidden; background:#fff; border:1px solid rgba(11,29,43,.12);
    box-shadow:0 12px 30px rgba(11,29,43,.06); transition:transform .18s ease, box-shadow .18s ease;
}
.tmv-ref-speaker-card:hover { transform:translateY(-3px); box-shadow:0 18px 40px rgba(11,29,43,.10); }
.tmv-ref-speaker-image { position:relative; aspect-ratio:4 / 3.08; background-size:cover; background-position:center top; border-bottom:1px solid rgba(11,29,43,.08); }
.tmv-ref-speaker-image span {
    position:absolute; left:12px; bottom:8px; display:inline-flex; min-height:24px; align-items:center;
    border-radius:3px; background:var(--tp-ref-deep); color:#fff; padding:0 9px;
    text-transform:uppercase; letter-spacing:.06em; font-size:.74rem; font-weight:900;
}
.tmv-ref-speaker-body { padding:15px 14px 18px; display:grid; gap:8px; }
.tmv-ref-speaker-body h3 { margin:0; color:var(--tp-ref-ink); font-size:clamp(1.12rem, 1.5vw, 1.33rem); line-height:1.08; letter-spacing:-.025em; }
.tmv-ref-speaker-body p { margin:0; color:var(--tp-ref-muted); font-size:.94rem; line-height:1.38; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.tmv-ref-speaker-body strong { margin-top:8px; color:var(--tp-ref-gold); font-size:.94rem; }

.tmv-ref-news-card { background:#fff; border:1px solid rgba(11,29,43,.10); border-radius:7px; overflow:hidden; box-shadow:0 14px 34px rgba(11,29,43,.07); }
.tmv-ref-news-image { display:block; aspect-ratio:16 / 6.3; background:#e9e2d8; overflow:hidden; }
.tmv-ref-news-image img { width:100%; height:100%; object-fit:cover; }
.tmv-ref-news-body { padding:18px 20px 20px; }
.tmv-ref-news-body time { display:block; color:var(--tp-ref-gold); text-transform:uppercase; font-size:.82rem; letter-spacing:.08em; font-weight:900; margin-bottom:8px; }
.tmv-ref-news-body h3 { font-size:1.55rem; line-height:1.08; margin:0 0 10px; }
.tmv-ref-news-body h3 a, .tmv-ref-readmore { color:var(--tp-ref-ink); text-decoration:none; }
.tmv-ref-news-body p { margin:0 0 12px; color:var(--tp-ref-muted); line-height:1.4; }
.tmv-ref-readmore { color:var(--tp-ref-gold); font-weight:900; }

.tmv-ref-trust { display:grid; grid-template-columns:minmax(0, .78fr) minmax(0, 1fr); gap:36px; padding:16px clamp(30px, 5vw, 64px) 26px; align-items:center; }
.tmv-ref-quote, .tmv-ref-logos { background:rgba(255,253,248,.86); border-radius:8px; }
.tmv-ref-quote { padding:18px 18px 10px; }
.tmv-ref-quote-row { display:grid; grid-template-columns:62px 1fr; gap:16px; align-items:start; margin-top:4px; }
.tmv-ref-quote-row > span { color:var(--tp-ref-gold); font-size:5.8rem; line-height:.9; font-weight:900; }
.tmv-ref-quote blockquote { margin:0; }
.tmv-ref-quote p { margin:0 0 6px; font-style:italic; color:var(--tp-ref-ink); line-height:1.45; }
.tmv-ref-quote cite { color:var(--tp-ref-ink); font-style:normal; }
.tmv-ref-logos { padding:18px 0; }
.tmv-ref-logos .tmv-client-logo-grid { margin-top:16px; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:18px; align-items:center; }
.tmv-ref-logos .tmv-client-logo { min-height:54px; padding:8px 10px; background:transparent; border:0; box-shadow:none; }
.tmv-ref-logos .tmv-client-logo img { max-height:38px; filter:grayscale(1) contrast(1.15); opacity:.9; }

.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,.12);
}
.tmv-ref-footer-inner { display:grid; grid-template-columns:1.2fr .7fr .7fr 1.1fr 1fr; gap:34px; padding:24px clamp(30px, 5vw, 64px) 30px; align-items:start; }
.tmv-ref-footer-logo, .tmv-ref-footer-logo a, .tmv-ref-footer-brand strong { color:#fff; font-size:2rem; line-height:1; }
.tmv-ref-footer-brand p { color:rgba(255,255,255,.80); margin:10px 0 14px; }
.tmv-ref-socials { display:flex; gap:10px; }
.tmv-ref-socials span { width:26px; height:26px; border-radius:999px; border:1px solid rgba(255,255,255,.42); display:grid; place-items:center; font-size:.72rem; text-transform:uppercase; }
.tmv-ref-footer-col h3 { margin:0 0 10px; color:#fff; font-size:.98rem; }
.tmv-ref-footer-col a, .tmv-ref-footer-col p, .tmv-ref-footer-links a { display:block; margin:7px 0; color:rgba(255,255,255,.84); text-decoration:none; line-height:1.3; }
.tmv-ref-footer-col a:hover, .tmv-ref-footer-links a:hover { color:#fff; text-decoration:underline; text-underline-offset:4px; }
.tmv-ref-footer-button { display:inline-flex; align-items:center; justify-content:center; min-height:52px; width:100%; border-radius:6px; background:var(--tp-ref-gold); color:#fff !important; text-decoration:none; font-weight:900; font-size:1.12rem; }
.tmv-ref-footer-button span { margin-left:18px; font-size:1.4rem; }
.tmv-ref-footer-links { display:flex; justify-content:space-between; gap:16px; margin-top:18px; }
.tmv-ref-footer-links a { font-size:.92rem; }

.tmv-page-main, .tmv-post-main, .tmv-blog-main, .tmv-page-main h1, .tmv-post-header h1, .tmv-blog-main h1, .tmv-post-content, .tmv-page-main article, .tmv-blog-main article { color:var(--tp-ref-ink); }

@media (max-width: 1180px) {
    .tmv-ref-hero-layout { grid-template-columns:minmax(0, 1fr) minmax(420px, .82fr); }
    .tmv-ref-content-grid, .tmv-ref-trust { grid-template-columns:1fr; }
    .tmv-ref-footer-inner { grid-template-columns:repeat(2, minmax(0, 1fr)); }
    .tmv-ref-footer-brand, .tmv-ref-footer-cta { grid-column:1 / -1; }
}

@media (max-width: 860px) {
    body { background:#fffdf8; }
    body.admin-bar .tmv-header--reference { top:46px; }
    .tmv-header-inner--reference { width:100%; min-height:88px; padding:0 34px; }
    .tmv-logo--reference { font-size:2.2rem; }
    .tmv-nav--reference { position:fixed; left:14px; right:14px; top:98px; background:#fffdf8; border:1px solid rgba(11,29,43,.10); border-radius:10px; padding:18px; display:none; box-shadow:0 18px 40px rgba(11,29,43,.12); }
    body.admin-bar .tmv-nav--reference { top:128px; }
    .tmv-nav--reference.is-open { display:block; }
    .tmv-nav--reference .tmv-nav-menu { display:grid; gap:12px; }
    .tmv-nav--reference .tmv-nav-menu li:last-child > a { justify-content:center; display:flex; }
    .tmv-menu-toggle { display:inline-flex !important; width:42px; height:42px; padding:0; border:0; background:transparent; color:var(--tp-ref-ink); }
    .tmv-menu-toggle span { height:4px; width:34px; background:currentColor; border-radius:999px; }

    .tmv-reference-home, .tmv-ref-footer { width:min(820px, calc(100% - 22px)); border-radius:7px; box-shadow:0 12px 40px rgba(11,29,43,.10); }
    .tmv-ref-hero-layout { display:block; min-height:0; position:relative; }
    .tmv-ref-hero-copy { padding:34px 32px 0; }
    .tmv-ref-hero-copy .tmv-kicker { margin-bottom:18px; font-size:.92rem; }
    .tmv-ref-hero-copy h1 { font-size:clamp(3rem, 9.8vw, 4.25rem); max-width:10ch; margin-bottom:22px; }
    .tmv-ref-hero-text { max-width:38ch; font-size:1.18rem; line-height:1.55; }
    .tmv-ref-hero-image { margin-left:auto; margin-top:-210px; width:43%; min-height:300px; clip-path:none; border-radius:0; background-position:center top; }
    .tmv-ref-search { position:relative; left:auto; right:auto; bottom:auto; margin:-8px 20px 0; padding:10px; border-radius:9px; box-shadow:0 16px 42px rgba(11,29,43,.14); }
    .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 !important; gap:10px !important; }
    .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 !important; }

    .tmv-ref-benefits { grid-template-columns:repeat(3, 1fr); gap:0; padding:22px 32px; border-top:0; }
    .tmv-ref-benefit { padding:0 14px; align-items:flex-start; }
    .tmv-ref-benefit:first-child { padding-left:0; }
    .tmv-ref-benefit strong { font-size:.98rem; }

    .tmv-ref-content-grid { display:block; padding:24px 32px 0; }
    .tmv-ref-section-head { margin-bottom:14px; }
    .tmv-ref-section-head h2, .tmv-ref-trust h2 { font-size:1.75rem; }
    .tmv-ref-speaker-grid { grid-template-columns:repeat(4, minmax(180px, 1fr)); gap:12px; overflow-x:auto; padding-bottom:14px; scroll-snap-type:x proximity; }
    .tmv-ref-speaker-card { scroll-snap-align:start; }
    .tmv-ref-speaker-image { aspect-ratio:4 / 3.2; }
    .tmv-ref-speaker-body h3 { font-size:1.45rem; }
    .tmv-ref-speaker-body p { font-size:1rem; -webkit-line-clamp:2; }
    .tmv-ref-inspiration { display:none; }

    .tmv-ref-trust { display:block; padding:14px 32px 22px; }
    .tmv-ref-quote { background:#fffdf8; border-radius:9px; box-shadow:0 14px 34px rgba(11,29,43,.06); padding:18px 22px 30px; margin-bottom:24px; }
    .tmv-ref-quote-row { grid-template-columns:52px 1fr; }
    .tmv-ref-quote-row > span { font-size:5.2rem; }
    .tmv-ref-logos { padding:0; }
    .tmv-ref-logos .tmv-client-logo-grid { grid-template-columns:repeat(3, minmax(0, 1fr)); gap:16px; }

    .tmv-ref-footer { margin-top:0; margin-bottom:18px; border-radius:0 0 8px 8px; }
    .tmv-ref-footer-inner { display:grid; grid-template-columns:repeat(3, 1fr); gap:26px; padding:28px 32px; }
    .tmv-ref-footer-brand { grid-column:1 / -1; }
    .tmv-ref-footer-logo, .tmv-ref-footer-logo a, .tmv-ref-footer-brand strong { font-size:2rem; }
    .tmv-ref-footer-cta { grid-column:1 / -1; }
    .tmv-ref-footer-button { min-height:58px; font-size:1.18rem; }
    .tmv-ref-footer-links { justify-content:center; }
}

@media (max-width: 560px) {
    .tmv-header-inner--reference { padding:0 22px; }
    .tmv-logo--reference { font-size:1.9rem; }
    .tmv-reference-home, .tmv-ref-footer { width:min(100%, calc(100% - 14px)); }
    .tmv-ref-hero-copy { padding:28px 24px 0; }
    .tmv-ref-hero-copy h1 { font-size:clamp(2.45rem, 12vw, 3.6rem); }
    .tmv-ref-hero-text { font-size:1.02rem; max-width:30ch; }
    .tmv-ref-hero-image { margin-top:-155px; width:45%; min-height:235px; }
    .tmv-ref-search { margin:0 14px; }
    .tmv-ref-search form, .tmv-ref-search .tm-speaker-search-form, .tmv-ref-search .tm-speaker-search-form--compact { grid-template-columns:1fr !important; }
    .tmv-ref-benefits { grid-template-columns:1fr; padding:22px 24px; gap:18px; }
    .tmv-ref-benefit { border-right:0; padding:0; }
    .tmv-ref-content-grid, .tmv-ref-trust { padding-left:24px; padding-right:24px; }
    .tmv-ref-speaker-grid { grid-template-columns:repeat(4, minmax(160px, 1fr)); }
    .tmv-ref-logos .tmv-client-logo-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
    .tmv-ref-footer-inner { grid-template-columns:1fr 1fr; padding:26px 24px; }
    .tmv-ref-footer-contact, .tmv-ref-footer-cta { grid-column:1 / -1; }
}


/* v7.1 Inter + header/menu fixes */
html,
body,
button,
input,
select,
textarea,
.tmv-logo,
.tmv-nav,
.tmv-button,
.tmv-reference-home,
.tmv-ref-footer {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-variation-settings: normal;
}

/* Do not turn the last native WordPress menu item into the CTA.
   CTA is now a separate button, so Kontakt can remain a normal menu link. */
.tmv-nav--reference .tmv-nav-menu li:last-child > a {
    background: transparent !important;
    color: var(--tp-ref-ink) !important;
    min-height: auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

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

.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 !important;
    text-decoration: none !important;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(201,146,67,.20);
    white-space: nowrap;
}

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

.tmv-ref-header-cta:hover {
    transform: translateY(-1px);
}

/* If fallback links are used instead of a native menu, keep them clean. */
.tmv-nav--reference > a:not(.tmv-button) {
    color: var(--tp-ref-ink) !important;
    font-weight: 800;
    text-decoration: none;
}

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

/* Make the hero image behave closer to the reference on real uploaded photos. */
.tmv-ref-hero-image {
    background-position: center center;
}

/* Search shortcode cleanup in case the search plugin outputs its own wrapper/title. */
.tmv-ref-search .tm-speaker-search-title,
.tmv-ref-search .tm-speaker-search-count,
.tmv-ref-search h1,
.tmv-ref-search h2,
.tmv-ref-search h3 {
    display: none !important;
}

.tmv-ref-search .tm-speaker-search {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tmv-ref-search .tm-speaker-search-form {
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Better mobile header/CTA behavior. */
@media (max-width: 860px) {
    .tmv-header-inner--reference {
        display: flex;
        justify-content: space-between;
    }

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

    .tmv-nav--reference {
        z-index: 120;
    }

    .tmv-nav--reference .tmv-nav-menu li:last-child > a {
        color: var(--tp-ref-ink) !important;
    }

    .tmv-nav--reference > .tmv-button {
        display: inline-flex !important;
        width: 100%;
        margin-top: 8px;
        justify-content: center;
        background: var(--tp-ref-gold) !important;
        color: #fff !important;
        border-radius: 6px !important;
        min-height: 48px !important;
    }
}

/* Mobile hero refinement: reduces overlap risk when the real hero image has a different crop. */
@media (max-width: 560px) {
    .tmv-ref-hero-image {
        margin-top: -135px;
        width: 47%;
        min-height: 220px;
    }

    .tmv-ref-hero-copy h1 {
        max-width: 9.4ch;
    }
}


/* v7.2 fixes: mobile speaker cards stacked one by one */
@media (max-width: 860px) {
    .tmv-ref-speaker-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        overflow-x: visible !important;
        padding-bottom: 0 !important;
        scroll-snap-type: none !important;
    }

    .tmv-ref-speaker-card {
        scroll-snap-align: none !important;
        grid-template-columns: minmax(132px, 38%) 1fr;
        grid-template-rows: auto;
        min-height: 180px;
    }

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

    .tmv-ref-speaker-body {
        padding: 18px 18px 20px;
        align-content: start;
    }

    .tmv-ref-speaker-body h3 {
        font-size: 1.55rem;
    }

    .tmv-ref-speaker-body p {
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 560px) {
    .tmv-ref-speaker-grid {
        grid-template-columns: 1fr !important;
    }

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

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

    .tmv-ref-speaker-body h3 {
        font-size: 1.45rem;
    }
}


/* v7.3 Inter typography override */
html,
body,
button,
input,
select,
textarea,
.tmv-logo,
.tmv-nav,
.tmv-button,
.tmv-reference-home,
.tmv-ref-footer {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}


/* v7.4 repair refinements */
.tmv-ref-speaker-image span {
    max-width: calc(100% - 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tmv-ref-speaker-body h3,
.tmv-ref-news-body h3 {
    overflow-wrap: anywhere;
}

.tmv-ref-news-body h3 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

@media (max-width: 860px) {
    .tmv-ref-speaker-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        overflow-x: visible !important;
        padding-bottom: 0 !important;
        scroll-snap-type: none !important;
    }

    .tmv-ref-speaker-card {
        scroll-snap-align: none !important;
        grid-template-columns: minmax(132px, 38%) 1fr;
        grid-template-rows: auto;
        min-height: 180px;
    }

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

    .tmv-ref-speaker-body {
        padding: 18px 18px 20px;
        align-content: start;
    }
}

@media (max-width: 560px) {
    .tmv-ref-speaker-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

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


/* v7.5 softer hero headline defaults and color variable support */
.tmv-ref-hero-copy h1 {
    font-size: clamp(3.2rem, 5.4vw, var(--tp-ref-hero-title-max, 5.35rem)) !important;
    letter-spacing: var(--tp-ref-hero-letter-spacing, -0.035em) !important;
    line-height: var(--tp-ref-hero-line-height, 1.0) !important;
}


/* v7.6 emergency Hero H1 fix
   The H1 is normal markup, but earlier line-height handling could become 1rem.
   This resets it to safe, readable typography. */
.tmv-ref-hero-copy h1 {
    font-size: clamp(2.95rem, 4.8vw, var(--tp-ref-hero-title-max, 4.85rem)) !important;
    letter-spacing: var(--tp-ref-hero-letter-spacing, -0.02em) !important;
    line-height: var(--tp-ref-hero-line-height, 1.08) !important;
    max-width: 12ch !important;
    word-spacing: normal !important;
    text-wrap: balance;
}

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

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


/* v7.7 search + hero image top fix */
.tmv-ref-hero-image {
    background-position: center top !important;
}

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

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

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

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

@media (max-width: 860px) {
    .tmv-ref-search-form {
        grid-template-columns: 1fr 1fr 1fr !important;
    }

    .tmv-ref-search-keyword {
        grid-column: 1 / -1;
    }

    .tmv-ref-search-form button {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 50px !important;
    }
}

@media (max-width: 560px) {
    .tmv-ref-search-form {
        grid-template-columns: 1fr !important;
    }
}


/* v7.8 separate background controls */
:root {
    --tp-ref-header-bg: #fffdf8;
    --tp-ref-main-bg: #fffdf8;
}

.tmv-header--reference {
    background: var(--tp-ref-header-bg) !important;
}

.tmv-reference-home,
.tmv-ref-hero,
.tmv-ref-benefits,
.tmv-ref-quote,
.tmv-ref-logos {
    background: var(--tp-ref-main-bg) !important;
}

/* This is the outer page/background around the main content. */
body {
    background: var(--tp-ref-bg) !important;
}


/* v7.9 page container shadow
   Makes inner pages match the homepage container/shadow against the outer page background. */
main.tmv-section:not(.tmv-reference-home),
.tmv-page-main,
.tmv-post-main,
.tmv-blog-main {
    width: min(1480px, calc(100% - 24px)) !important;
    margin: 0 auto 0 !important;
    background: var(--tp-ref-main-bg, #fffdf8) !important;
    border-left: 1px solid rgba(11,29,43,.06);
    border-right: 1px solid rgba(11,29,43,.06);
    box-shadow: 0 18px 70px rgba(11,29,43,.08);
    padding: clamp(36px, 5vw, 68px) clamp(24px, 5vw, 64px) !important;
    min-height: 52vh;
}

/* Search plugin virtual page gets the same visual container. */
.tm-speaker-search-virtual-page {
    width: min(1480px, calc(100% - 24px));
    margin: 0 auto;
    background: var(--tp-ref-main-bg, #fffdf8);
    border-left: 1px solid rgba(11,29,43,.06);
    border-right: 1px solid rgba(11,29,43,.06);
    box-shadow: 0 18px 70px rgba(11,29,43,.08);
    padding: clamp(36px, 5vw, 68px) 0;
    min-height: 52vh;
}

.tm-speaker-search-virtual-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

/* Keep page/card content from feeling stuck to the edges. */
.tmv-page-main article,
.tmv-post,
.tmv-blog-main > * {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

/* Speaker/search list pages need full width inside the page container. */
.tmv-page-main--speaker-list article,
.tmv-page-main--speaker-list .tm-speaker-search,
.tmv-page-main--speaker-list .tm-speaker-list,
.tmv-page-main--speaker-list > * {
    max-width: none;
}

@media (max-width: 860px) {
    main.tmv-section:not(.tmv-reference-home),
    .tmv-page-main,
    .tmv-post-main,
    .tmv-blog-main,
    .tm-speaker-search-virtual-page {
        width: min(820px, calc(100% - 22px)) !important;
        padding: 30px 24px !important;
        box-shadow: 0 12px 40px rgba(11,29,43,.10);
    }

    .tm-speaker-search-virtual-inner {
        width: 100%;
    }
}

@media (max-width: 560px) {
    main.tmv-section:not(.tmv-reference-home),
    .tmv-page-main,
    .tmv-post-main,
    .tmv-blog-main,
    .tm-speaker-search-virtual-page {
        width: min(100%, calc(100% - 14px)) !important;
        padding: 26px 18px !important;
    }
}


/* v8.0 real inner-page container
   This does not rely on guessing existing page widths: inner templates now use
   .tmv-reference-home + .tmv-inner-page directly. */
.tmv-inner-page {
    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,.06);
    border-right: 1px solid rgba(11,29,43,.06);
    box-shadow: 0 18px 70px rgba(11,29,43,.08);
    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 {
    width: min(1280px, calc(100% - 48px));
}

/* Remove earlier double-padding if older selector still exists in cache/order. */
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 !important;
}

/* Search plugin virtual page gets the same look even though it is rendered by plugin. */
.tm-speaker-search-virtual-page {
    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,.06);
    border-right: 1px solid rgba(11,29,43,.06);
    box-shadow: 0 18px 70px rgba(11,29,43,.08);
    padding: clamp(42px, 5vw, 76px) 0 !important;
    min-height: 52vh;
}

.tm-speaker-search-virtual-inner {
    width: min(1280px, calc(100% - 48px)) !important;
    margin: 0 auto !important;
}

@media (max-width: 860px) {
    .tmv-inner-page,
    .tm-speaker-search-virtual-page {
        width: min(820px, calc(100% - 22px)) !important;
        box-shadow: 0 12px 40px rgba(11,29,43,.10);
    }

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

@media (max-width: 560px) {
    .tmv-inner-page,
    .tm-speaker-search-virtual-page {
        width: min(100%, calc(100% - 14px)) !important;
    }

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