/*
 Theme Name:   GeneratePress Child
 Description:  GeneratePress child theme for MAN Service DL
 Template:     generatepress
 Version:      2.3.10
*/

.msdl-inner-lead, body.msdl-ui.msdl-route-contact .msdl-contact-map-link{
	display: none !important;
}
.no-sidebar .entry-content .alignfull{
	margin-left: auto !important;
	margin-right: auto !important;
}
body.msdl-ui .msdl-footer-list a, body.msdl-ui .msdl-footer-bottom a{
	text-decoration: none !important;
}
body.msdl-ui .msdl-footer-title{
	font-size: 20px !important;
}
.msdl-engine-card-canvas a{
	display: flex;
    justify-content: center;
}
html {
    scroll-behavior: smooth;
}
body.msdl-ui .msdl-home-media-canvas{
	justify-content: center !important;
}
thead tr{
	background-color: #e40045;
    color: #ffffff;
}
thead tr th{
	color: #ffffff !important;
	border: 1px solid #46535e !important;
}
.site-main .msdl-contact-banner .wp-block-group__inner-container{
	padding-top: 0px !important;
}
#generate-slideout-menu{
	background: #17222d !important;
}
body.msdl-ui .msdl-footer-grid > .wp-block-column{
	text-align: center !important;
}
body.msdl-ui .main-navigation .main-nav > ul{
	text-align: center !important;
}
body.msdl-ui .main-navigation .main-nav ul li a{
	justify-content: center !important;
}
.wp-block-group__inner-container{
	max-width: 1400px !important;
}
body.msdl-ui.msdl-route-contact .msdl-contact-form-section{
	padding-top: 0px !important;
}
body.msdl-ui.msdl-route-hybrid .msdl-hybrid-hero-image, body.msdl-ui.msdl-route-product .msdl-feature-image, .msdl-engine-detail .msdl-feature-image, body.msdl-ui figure.wp-block-image.msdl-media-light-source{
	float: right !important; 
	width: 550px !important;
	margin-left: 20px !important;
}
.page-id-4619 .site-main .wp-block-group__inner-container h1, .page-id-4665 .site-main .wp-block-group__inner-container h1, .page-id-4743 .site-main .wp-block-group__inner-container h1, .page-id-4744 .site-main .wp-block-group__inner-container h1, .page-id-4638 .site-main .wp-block-group__inner-container h1, .page-id-4745 .site-main .wp-block-group__inner-container h1{ 
	display: none !important;
}
.featured-image{
	display: none !important;
}
body.msdl-ui .msdl-inner-hero{
	width: calc(100% - 48px) !important;
}

body.msdl-ui{
	padding: 0px !important;
}
.poweredby{
	font-size: 17px !important;
	color: #fff !important;
}
.gb-grid-wrapper > .gb-grid-column-3838c1f5 > .gb-container, .gb-grid-wrapper > .gb-grid-column-6e9fb202 > .gb-container{
	    justify-content: center !important;
}
body.msdl-ui .msdl-espa-banner a{
	position: fixed;
	bottom: 100px !important;
	right: 20px !important;
}
body.msdl-ui .msdl-espa-banner a {
	width: min(460px, 100%) !important;
}
.site-main .wp-block-group__inner-container{
	padding-top: 0px !important;
}
body .msdl-contact-banner h2{
	margin-top: 0px !important;
}
.msdl-company-copy{
	margin-bottom: 0px !important;
}
body,
button,
input,
select,
textarea {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

h1 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}
*{
	font-family: 'Roboto Condensed', sans-serif !important;
}
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto Condensed', sans-serif;
}

h1,
h2 {
    color: #303c49;
}

h3,
h4,
h5,
h6 {
    color: #575760;
}

:where(.msdl-shell, .msdl-footer, .msdl-espa-banner) img {
    max-width: 100%;
    height: auto;
}

button,
a,
input[type='button'],
input[type='submit'] {
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.line-h {
    line-height: 60px !important;
}

.sign {
    font-family: 'nf-petitnuage-regular', cursive !important;
}

.border img {
    border-radius: 20px !important;
}

.poweredby {
    display: flex;
    align-items: center;
    justify-content: center;
}

.poweredby p {
    margin: 0;
    line-height: 1.4;
}

.poweredby svg {
    width: 200px;
    height: auto;
    margin-left: 10px;
    transition: transform 180ms ease;
}

.style-svg:hover {
    transform: scale(1.05);
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

:root {
    --msdl-navy: #303c49;
--msdl-ink: #3a3a3a;
    --msdl-muted: #575760;
    --msdl-line: #dddddd;
    --msdl-surface: #f1f2f4;
    --msdl-white: #ffffff;
    --msdl-red: #e30044;
    --msdl-red-dark: #c5003b;
    --msdl-radius: 14px;
    --msdl-shadow: 0 16px 44px rgba(48, 60, 73, 0.12);
}

body {
    color: var(--msdl-ink);
    background: var(--msdl-white);
}

.site-header {
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.inside-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 40px;
    min-height: 70px;
    padding: 5px 8%;
    align-items: center;
}

.site-branding {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
}

.site-logo {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
}

.site-logo .header-image {
    width: 145px;
    height: auto;
}

#site-navigation {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
}

.site-branding .main-title {
    margin: 0 0 8px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: 0;
    font-weight: 600;
    text-transform: uppercase;
}

.site-branding .main-title a {
    color: #000;
    text-decoration: none;
}

.site-branding .main-title a:hover,
.site-branding .main-title a:focus-visible {
    color: #000;
}

.main-navigation,
.main-navigation .inside-navigation {
    background: transparent;
}

.main-navigation .main-nav ul li a {
    position: relative;
    padding-block: 0;
    color: #303c49;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a {
    color: #000;
}

.msdl-espa-banner {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    justify-content: center;
    padding: 0 8%;
    background: #fff;
}

.msdl-espa-banner a {
    display: block;
    width: min(729px, 100%);
}

.msdl-espa-banner img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .inside-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        gap: 8px 16px;
        padding: 10px 22px;
    }

    .site-branding {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
    }

    .site-branding .main-title {
        margin: 0;
        font-size: 17px;
    }

    .site-logo {
        grid-column: 2;
        grid-row: 1;
    }

    .site-logo .header-image {
        width: 96px;
    }

    #mobile-menu-control-wrapper {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
    }

    #mobile-menu-control-wrapper .menu-toggle {
        color: var(--msdl-navy);
        background: #fff;
    }

    #site-navigation {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .msdl-espa-banner {
        padding-inline: 16px;
    }
}


.msdl-shell {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.msdl-hero {
    position: relative;
    overflow: hidden;
}

.msdl-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(to top, rgba(7,17,27,0.45), transparent);
    pointer-events: none;
}

.msdl-hero .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
}

.msdl-hero-content {
    padding-block: 120px 104px;
}

.msdl-eyebrow,
.msdl-section-kicker {
    margin: 0 0 20px;
    color: var(--msdl-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.msdl-hero-title {
    max-width: 820px;
    margin: 0;
    color: #fff;
    font-size: clamp(48px, 7vw, 92px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 700;
}

.msdl-hero-copy {
    max-width: 690px;
    margin: 30px 0 34px;
    color: rgba(255,255,255,0.84);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.6;
}

.msdl-hero-actions,
.msdl-cta-actions {
    gap: 12px;
}

.msdl-btn-primary .wp-block-button__link,
.msdl-btn-dark .wp-block-button__link,
.msdl-btn-light .wp-block-button__link,
.msdl-btn-secondary .wp-block-button__link {
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

.msdl-btn-primary .wp-block-button__link {
    background: var(--msdl-red);
    color: #fff;
}

.msdl-btn-primary .wp-block-button__link:hover {
    background: var(--msdl-red-dark);
    transform: translateY(-2px);
}

.msdl-btn-secondary .wp-block-button__link {
    border: 1px solid rgba(255,255,255,0.7);
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.msdl-btn-secondary .wp-block-button__link:hover {
    background: #fff;
    color: var(--msdl-navy);
}

.msdl-btn-dark .wp-block-button__link {
    background: var(--msdl-navy);
    color: #fff;
}

.msdl-btn-dark .wp-block-button__link:hover {
    background: var(--msdl-red);
    transform: translateY(-2px);
}

.msdl-btn-light .wp-block-button__link {
    background: #fff;
    color: var(--msdl-navy);
}

.msdl-btn-light .wp-block-button__link:hover {
    background: var(--msdl-red);
    color: #fff;
}

.msdl-trust-strip {
    background: var(--msdl-navy);
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.msdl-trust-grid {
    margin-bottom: 0;
    gap: 0;
}

.msdl-trust-grid > .wp-block-column {
    padding: 34px 28px;
    border-right: 1px solid rgba(255,255,255,0.12);
}

.msdl-trust-grid > .wp-block-column:last-child {
    border-right: 0;
}

.msdl-stat {
    margin: 0 0 5px;
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.03em;
}

.msdl-stat-label {
    margin: 0;
    color: rgba(255,255,255,0.78);
    font-size: 14px;
}

.msdl-section {
    padding-block: 110px;
}

.msdl-section-title {
    max-width: 820px;
    margin: 0 0 48px;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.msdl-services-section {
    background: var(--msdl-white);
}

.msdl-card-grid,
.msdl-engine-grid {
    gap: 20px;
    margin-bottom: 0;
}

.msdl-service-card {
    min-height: 330px;
    padding: 34px;
    background: var(--msdl-surface);
    border: 1px solid var(--msdl-line);
    border-radius: var(--msdl-radius);
    position: relative;
    overflow: hidden;
}

.msdl-service-card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: var(--msdl-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.msdl-service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--msdl-shadow);
}

.msdl-service-card:hover::after {
    transform: scaleX(1);
}

.msdl-card-index {
    margin: 0 0 68px;
    color: var(--msdl-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.msdl-service-card h3 {
    margin-bottom: 14px;
    font-size: 26px;
    letter-spacing: -0.025em;
}

.msdl-service-card p:last-child {
    color: var(--msdl-muted);
    line-height: 1.7;
}

.msdl-engines-section {
    background: #eef1f4;
}

.msdl-feature-split {
    gap: 64px;
    margin-bottom: 58px;
}

.msdl-lead {
    color: var(--msdl-muted);
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 30px;
}

.msdl-feature-image img {
    display: block;
    width: 100%;
    border-radius: 26px;
    box-shadow: var(--msdl-shadow);
}

.msdl-engine-card {
    padding: 30px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--msdl-line);
}

.msdl-engine-card-accent {
    background: var(--msdl-navy);
    border-color: var(--msdl-navy);
    color: #fff;
}

.msdl-engine-family {
    margin: 0 0 12px;
    color: var(--msdl-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.msdl-engine-card h3 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.msdl-engine-card-accent h3 {
    color: #fff;
}

.msdl-company-section {
    background: var(--msdl-navy);
    color: #fff;
}

.msdl-company-grid {
    gap: 74px;
    margin-bottom: 0;
}

.msdl-kicker-light {
    color: #ff4b55;
}

.msdl-title-light {
    color: #fff;
    margin-bottom: 0;
}

.msdl-company-copy {
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.msdl-contact-cta {
    background: #fff;
}

.msdl-contact-inner {
    padding: 72px;
    background: var(--msdl-surface);
    border: 1px solid var(--msdl-line);
    border-radius: 28px;
    text-align: center;
}

.msdl-contact-inner .msdl-section-kicker {
    text-align: center;
}

.msdl-cta-title {
    max-width: 840px;
    margin: 0 auto 20px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.msdl-cta-copy {
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--msdl-muted);
    font-size: 18px;
}

.msdl-cta-actions {
    justify-content: center;
}

@media (max-width: 1024px) {
    .msdl-shell {
        width: min(100% - 36px, 1180px);
    }

    .msdl-section {
        padding-block: 86px;
    }

    .msdl-feature-split,
    .msdl-company-grid {
        gap: 38px;
    }

    .msdl-contact-inner {
        padding: 54px 34px;
    }
}

@media (max-width: 768px) {
    .msdl-shell {
        width: min(100% - 28px, 1180px);
    }

    .msdl-hero-content {
        padding-block: 96px 74px;
    }

    .msdl-hero-title {
        font-size: clamp(44px, 13vw, 64px);
    }

    .msdl-hero-copy {
        font-size: 18px;
    }

    .msdl-trust-grid > .wp-block-column {
        padding: 22px 18px;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }

    .msdl-trust-grid > .wp-block-column:last-child {
        border-bottom: 0;
    }

    .msdl-section {
        padding-block: 68px;
    }

    .msdl-section-title {
        margin-bottom: 34px;
    }

    .msdl-service-card {
        min-height: auto;
        padding: 28px;
    }

    .msdl-card-index {
        margin-bottom: 42px;
    }

    .msdl-feature-split {
        flex-direction: column-reverse;
    }

    .msdl-contact-inner {
        padding: 42px 24px;
        border-radius: 22px;
    }

    .msdl-hero-actions .wp-block-button,
    .msdl-hero-actions .wp-block-button__link,
    .msdl-cta-actions .wp-block-button,
    .msdl-cta-actions .wp-block-button__link {
        width: 100%;
        text-align: center;
    }
}

.msdl-inner-hero {
    padding-block: 110px 96px;
    background: linear-gradient(135deg, var(--msdl-navy) 0%, #102334 100%);
    color: #fff;
}

.msdl-inner-title {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-size: clamp(48px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.msdl-inner-lead {
    max-width: 760px;
    margin: 28px 0 0;
    color: rgba(255,255,255,0.7);
    font-size: 20px;
    line-height: 1.7;
}

.msdl-story-grid {
    gap: 70px;
    margin-bottom: 72px;
}

.msdl-body-lg {
    color: var(--msdl-muted);
    font-size: 18px;
    line-height: 1.85;
}

.msdl-values-grid {
    gap: 20px;
    margin-bottom: 0;
}

.msdl-value-card {
    padding: 34px;
    background: #fff;
    border: 1px solid var(--msdl-line);
    border-radius: var(--msdl-radius);
    box-shadow: 0 12px 36px rgba(7,17,27,0.06);
}

.msdl-value-card h3 {
    margin-bottom: 12px;
    font-size: 24px;
}

.msdl-value-card p:last-child {
    margin-bottom: 0;
    color: var(--msdl-muted);
    line-height: 1.7;
}

.msdl-parts-cta {
    margin-top: 72px;
    padding: 64px;
    border-radius: 26px;
    background: var(--msdl-navy);
    color: #fff;
    text-align: center;
}

.msdl-parts-cta .msdl-cta-title {
    color: #fff;
}

.msdl-parts-cta .msdl-cta-copy {
    color: rgba(255,255,255,0.68);
}

@media (max-width: 768px) {
    .msdl-inner-hero {
        padding-block: 82px 68px;
    }

    .msdl-inner-title {
        font-size: clamp(42px, 12vw, 60px);
    }

    .msdl-inner-lead {
        font-size: 18px;
    }

    .msdl-story-grid {
        gap: 26px;
        margin-bottom: 48px;
    }

    .msdl-parts-cta {
        margin-top: 48px;
        padding: 42px 24px;
    }
}

.msdl-contact-grid {
    gap: 20px;
    margin-bottom: 56px;
}

.msdl-contact-card {
    padding: 34px;
    background: #fff;
    border: 1px solid var(--msdl-line);
    border-radius: var(--msdl-radius);
    box-shadow: 0 12px 36px rgba(7,17,27,0.06);
}

.msdl-contact-card h3 {
    margin-bottom: 12px;
    font-size: 24px;
    word-break: break-word;
}

.msdl-contact-card > p:not(.msdl-card-index) {
    color: var(--msdl-muted);
    line-height: 1.7;
}

.msdl-contact-banner {
    padding: 64px;
    border-radius: 26px;
    background: var(--msdl-navy);
    color: #fff;
}

.msdl-contact-banner .msdl-title-light {
    max-width: 760px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

@media (max-width: 768px) {
    .msdl-contact-banner {
        padding: 42px 24px;
    }
}

.msdl-footer {
    background: var(--msdl-navy);
    color: #fff;
}

.msdl-footer-inner {
    padding-block: 76px 28px;
}

.msdl-footer-grid {
    gap: 34px;
    margin-bottom: 42px;
}

.msdl-footer-brand,
.msdl-footer-title {
    color: #fff;
}

.msdl-footer-brand {
    margin-bottom: 16px;
    font-size: 30px;
    letter-spacing: -0.03em;
}

.msdl-footer-title {
    margin-bottom: 14px;
    font-size: 16px;
    letter-spacing: 0.02em;
}

.msdl-footer-logo img {
    width: 206px;
    max-width: 100%;
    height: auto;
}

.msdl-footer-list {
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1.8;
    color: rgba(255,255,255,0.78);
}

.msdl-footer-list a {
    color: inherit;
    text-decoration: none;
}

.msdl-footer-copy,
.msdl-footer-links,
.msdl-footer-copy a,
.msdl-footer-links a {
    color: rgba(255,255,255,0.72);
}

.msdl-footer-copy,
.msdl-footer-links {
    line-height: 1.8;
}

.msdl-footer a:hover,
.msdl-footer a:focus-visible {
    color: #fff;
}

.msdl-footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.76);
    font-size: 13px;
}

.msdl-footer-bottom p {
    margin-bottom: 0;
}

.msdl-footer-bottom a {
    color: inherit;
}

@media (max-width: 768px) {
    .msdl-footer-inner {
        padding-block: 58px 22px;
    }

    .msdl-footer-grid {
        gap: 24px;
    }
}

.msdl-spec-table {
    margin: 34px 0 56px;
    overflow-x: auto;
    border: 1px solid var(--msdl-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(7,17,27,0.06);
}

.msdl-spec-table table {
    min-width: 680px;
    margin: 0;
    border-collapse: collapse;
}

.msdl-spec-table th,
.msdl-spec-table td {
    padding: 18px 20px;
    border-color: var(--msdl-line);
    text-align: left;
    vertical-align: middle;
}

.msdl-spec-table th {
    background: var(--msdl-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.msdl-spec-table tbody tr:nth-child(even) {
    background: #f5f7f9;
}

.msdl-spec-table td:first-child {
    font-weight: 700;
    color: var(--msdl-navy);
}

.msdl-service-card h3 a {
    color: inherit;
    text-decoration: none;
}

.msdl-service-card h3 a:hover,
.msdl-service-card h3 a:focus-visible {
    color: var(--msdl-red);
}

@media (max-width: 768px) {
    .msdl-spec-table {
        margin-bottom: 40px;
        border-radius: 14px;
    }

    .msdl-spec-table th,
    .msdl-spec-table td {
        padding: 15px 16px;
        font-size: 14px;
    }
}

.msdl-contact-form-wrap {
    width: 100%;
    max-width: 920px;
    margin-inline: auto;
}

.msdl-contact-form-section {
    padding-block: 0 68px;
}

.msdl-contact-form-wrap,
.msdl-contact-form-wrap * {
    box-sizing: border-box;
}

.msdl-contact-form {
    display: grid;
    gap: 22px;
}

.msdl-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.msdl-field {
    margin: 0;
}

.msdl-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.msdl-field input,
.msdl-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--msdl-line);
    border-radius: 12px;
    background: #fff;
    color: var(--msdl-ink);
}

.msdl-field input:focus,
.msdl-field textarea:focus {
    border-color: var(--msdl-ink);
    box-shadow: 0 0 0 3px rgba(17,24,32,0.08);
    outline: 0;
}

.msdl-form-submit {
    justify-self: start;
    padding: 14px 28px;
    border: 0;
    border-radius: 999px;
    background: var(--msdl-ink);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.msdl-form-submit:hover,
.msdl-form-submit:focus-visible {
    background: var(--msdl-red);
}

.msdl-honeypot {
    position: absolute;
    left: -9999px;
}

.msdl-form-message {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
}

.msdl-form-success {
    background: #edf7ef;
    color: #173d20;
}

.msdl-form-error {
    background: #fff0f0;
    color: #751a1a;
}

@media (max-width: 768px) {
    .msdl-form-grid {
        grid-template-columns: 1fr;
    }

    .msdl-form-submit {
        width: 100%;
    }
}

.msdl-source-gallery {
    gap: 18px;
}

.msdl-source-gallery .wp-block-image {
    overflow: hidden;
    border-radius: 16px;
    background: var(--msdl-surface);
    box-shadow: 0 10px 30px rgba(7,17,27,0.08);
}

.msdl-source-gallery .wp-block-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 220ms ease;
}

.msdl-source-gallery .wp-block-image:hover img {
    transform: scale(1.025);
}

.msdl-engine-detail > .msdl-shell > h2 {
    margin-top: 56px;
}

.msdl-engine-detail > .msdl-shell > p,
.msdl-engine-detail > .msdl-shell > ul {
    max-width: 860px;
}

@media (max-width: 1024px) {
    .msdl-source-gallery.columns-3 {
        --wp--style--unstable-gallery-gap: 16px;
    }
}

@media (max-width: 768px) {
    .msdl-source-gallery {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .msdl-source-gallery {
        grid-template-columns: 1fr;
    }
}

.msdl-home-slider {
    --msdl-slide-height: clamp(620px, 72vh, 820px);
    position: relative;
    width: 100vw;
    min-height: var(--msdl-slide-height);
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid rgba(48, 60, 73, 0.08);
}

.msdl-home-slide {
    position: absolute;
    inset: 0;
    display: grid;
    min-height: var(--msdl-slide-height);
    align-items: end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 420ms ease, visibility 420ms ease;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.msdl-home-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.msdl-home-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center 42%;
    z-index: 0;
    transform-origin: center;
}

.msdl-home-slide-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
    padding: 0 0 clamp(48px, 5vw, 68px);
}

.msdl-home-slide-content {
    max-width: min(720px, 64%);
    padding: 18px 22px 20px;
    border-left: 4px solid var(--msdl-red);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 34px rgba(48, 60, 73, 0.09);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.msdl-home-slide-title {
    margin: 0 0 14px;
    color: #111;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: clamp(30px, 3.5vw, 50px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.025em;
    text-transform: none;
}

.msdl-home-slide-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 18px;
    border: 2px solid #000;
    border-radius: 0;
    color: #000;
    background: rgba(255,255,255,0.82);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.msdl-home-slide-link:hover,
.msdl-home-slide-link:focus-visible {
    border-color: var(--msdl-red);
    color: var(--msdl-red);
    background: #fff;
}

.msdl-slider-controls {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2 + 24px));
    bottom: 44px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
}

.msdl-slider-prev,
.msdl-slider-next {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #9a9a9a;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #666;
    cursor: pointer;
}

.msdl-slider-prev:hover,
.msdl-slider-next:hover,
.msdl-slider-prev:focus-visible,
.msdl-slider-next:focus-visible {
    border-color: var(--msdl-red);
    color: var(--msdl-red);
}

.msdl-slider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.msdl-slider-dot {
    position: relative;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.msdl-slider-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #777;
    opacity: 0.55;
    transform: translate(-50%, -50%);
}

.msdl-slider-dot.is-active::after {
    background: #d40000;
    opacity: 1;
}

.msdl-slider-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.msdl-home-actions {
    gap: 18px;
    margin-block: 30px 62px;
}

.msdl-home-actions > .wp-block-column {
    position: relative;
    min-height: 76px;
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border: 1px solid rgba(48, 60, 73, 0.13);
    border-radius: 10px;
    background: #f5f6f7;
    box-shadow: 0 7px 22px rgba(48, 60, 73, 0.045);
    overflow: hidden;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.msdl-home-actions > .wp-block-column::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--msdl-red);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 180ms ease;
}

.msdl-home-actions > .wp-block-column:hover,
.msdl-home-actions > .wp-block-column:focus-within {
    transform: translateY(-3px);
    border-color: rgba(48, 60, 73, 0.2);
    background: #fff;
    box-shadow: 0 12px 30px rgba(48, 60, 73, 0.08);
}

.msdl-home-actions > .wp-block-column:hover::before,
.msdl-home-actions > .wp-block-column:focus-within::before {
    transform: scaleY(1);
}

.msdl-home-actions h3 {
    margin: 0;
    color: #303c49;
    font-family: 'Man Web Font', 'Roboto Condensed', sans-serif;
    font-size: clamp(17px, 1.5vw, 19px);
    line-height: 1.25;
    font-weight: 700;
}

.msdl-home-actions a {
    color: inherit;
    text-decoration: none;
}

.msdl-home-actions a:hover,
.msdl-home-actions a:focus-visible {
    color: var(--msdl-red);
}

/* Imported homepage editorial content: stronger hierarchy without changing source copy. */
.msdl-source-home > .msdl-shell > h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.msdl-source-home > .msdl-shell > h1 + h2 {
    margin: 0 0 24px;
    color: var(--msdl-navy);
    font-size: clamp(23px, 2.4vw, 31px);
    line-height: 1.2;
    font-weight: 500;
    text-transform: none;
}

.msdl-source-home > .msdl-shell > h2:not(:first-of-type) {
    margin: 34px 0 12px;
    font-size: clamp(25px, 2.7vw, 34px);
    line-height: 1.14;
    letter-spacing: -0.025em;
}

.msdl-source-home > .msdl-shell > p {
    max-width: 1020px;
    margin-bottom: 0;
    color: #4d5965;
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.75;
}

.msdl-source-home .msdl-card-grid {
    align-items: stretch;
    margin-top: 44px;
    margin-bottom: 74px;
}

.msdl-source-home .msdl-service-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 30px;
    border-radius: 12px;
    background: #f5f6f7;
    box-shadow: 0 8px 28px rgba(48, 60, 73, 0.055);
}

.msdl-source-home .msdl-service-card h3 {
    margin: 0 0 18px;
    font-size: clamp(22px, 2vw, 27px);
    line-height: 1.24;
}

.msdl-source-home .msdl-service-card h3 a {
    color: var(--msdl-navy);
    text-decoration: none;
}

.msdl-source-home .msdl-service-card h3 a:hover,
.msdl-source-home .msdl-service-card h3 a:focus-visible {
    color: var(--msdl-red);
}

.msdl-source-home .msdl-service-card p {
    color: #56616c;
    font-size: 15.5px;
    line-height: 1.7;
}

.msdl-source-home .msdl-service-card > p:last-child {
    margin-top: auto;
    padding-top: 16px;
}

.msdl-source-home .msdl-service-card > p:last-child a {
    color: var(--msdl-navy);
    font-weight: 700;
    text-decoration: none;
}

.msdl-source-home .msdl-service-card > p:last-child a:hover,
.msdl-source-home .msdl-service-card > p:last-child a:focus-visible {
    color: var(--msdl-red);
}

@media (max-width: 1024px) {
    .msdl-home-slider {
        --msdl-slide-height: clamp(560px, 68vh, 700px);
    }

    .msdl-home-slide-content {
        max-width: min(660px, 76%);
    }
}

@media (max-width: 768px) {
    .msdl-home-slider {
        --msdl-slide-height: clamp(500px, 64svh, 590px);
    }

    .msdl-home-slide-image {
        object-position: center 30%;
        transform: scale(1.18);
    }

    .msdl-home-slide-inner {
        width: min(100% - 28px, 1180px);
        padding: 0 0 82px;
    }

    .msdl-home-slide-content {
        max-width: 100%;
        padding: 14px 16px 16px;
        border-left-width: 3px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 8px 24px rgba(48, 60, 73, 0.07);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .msdl-home-slide-title {
        margin-bottom: 10px;
        font-size: clamp(25px, 7.2vw, 34px);
        line-height: 1.05;
    }

    .msdl-home-slide-link {
        min-height: 38px;
        padding: 7px 14px;
        font-size: 14px;
    }

    .msdl-slider-controls {
        left: 14px;
        right: 14px;
        bottom: 18px;
        justify-content: center;
        gap: 5px;
    }

    .msdl-slider-prev,
    .msdl-slider-next {
        width: 38px;
        height: 38px;
        flex: 0 0 auto;
    }

    .msdl-slider-dots {
        gap: 2px;
    }

    .msdl-slider-dot {
        width: 27px;
        height: 34px;
    }

    .msdl-slider-dot::after {
        width: 8px;
        height: 8px;
    }

    .msdl-home-actions {
        margin-block: 22px 46px;
        gap: 10px;
    }

    .msdl-home-actions > .wp-block-column {
        min-height: 64px;
        padding: 16px 18px;
    }

    .msdl-source-home > .msdl-shell > h1 {
        font-size: 33px;
    }

    .msdl-source-home > .msdl-shell > h1 + h2 {
        font-size: 23px;
    }

    .msdl-source-home > .msdl-shell > h2:not(:first-of-type) {
        margin-top: 28px;
        font-size: 25px;
    }

    .msdl-source-home > .msdl-shell > p {
        font-size: 16px;
        line-height: 1.68;
    }

    .msdl-source-home .msdl-card-grid {
        margin-top: 34px;
        margin-bottom: 54px;
    }

    .msdl-source-home .msdl-service-card {
        padding: 24px;
    }
}

@media (max-width: 430px) {
    .msdl-home-slider {
        --msdl-slide-height: clamp(485px, 61svh, 540px);
    }

    .msdl-home-slide-image {
        object-position: center 28%;
        transform: scale(1.26);
    }

    .msdl-home-slide-inner {
        width: calc(100% - 24px);
        padding-bottom: 76px;
    }

    .msdl-home-slide-content {
        padding: 12px 14px 14px;
    }

    .msdl-home-slide-title {
        font-size: clamp(23px, 7vw, 30px);
    }

    .msdl-slider-controls {
        left: 10px;
        right: 10px;
        gap: 2px;
    }

    .msdl-slider-prev,
    .msdl-slider-next {
        width: 36px;
        height: 36px;
    }

    .msdl-slider-dot {
        width: 25px;
    }
}

/* ================================================================
 * Imported-content compatibility layer
 * Keeps source/imported WordPress markup aligned with the current
 * design system without changing stored page content.
 * ================================================================ */

/* Imported/source pages use the same controlled content rhythm as rebuilt routes. */
.msdl-source-page {
    padding-block: clamp(42px, 6vw, 86px);
}

.msdl-source-page > .msdl-shell > :first-child {
    margin-top: 0;
}

.msdl-source-page .wp-block-buttons {
    gap: 10px;
    margin-top: 28px;
}

.msdl-source-page .wp-block-button__link {
    border-radius: 999px;
    padding: 12px 20px;
    background: var(--msdl-navy);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.msdl-source-page .wp-block-button__link:hover,
.msdl-source-page .wp-block-button__link:focus-visible {
    background: var(--msdl-red);
    color: #fff;
}

/* Technical engine imagery must never be cropped. */
.msdl-engine-detail .msdl-feature-image {
    width: min(100%, 760px);
    margin: 0 auto clamp(32px, 5vw, 58px);
    padding: clamp(14px, 2.5vw, 30px);
    border: 1px solid rgba(48, 60, 73, .16);
    border-radius: var(--msdl-radius);
    background: linear-gradient(145deg, #fff, #eef1f4);
    box-shadow: 0 14px 34px rgba(48, 60, 73, .09);
}

.msdl-engine-detail .msdl-feature-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    object-position: center;
    background: #fff;
}

/* Source tables remain usable at narrow breakpoints. */
.msdl-spec-table {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.msdl-spec-table table {
    min-width: 640px;
}

/* Gallery triggers are semantic buttons created by gallery.js. */
.msdl-source-gallery .msdl-gallery-open {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(48, 60, 73, .14);
    border-radius: 12px;
    background: #eef1f4;
    box-shadow: 0 8px 22px rgba(48, 60, 73, .07);
    cursor: zoom-in;
}

.msdl-source-gallery .msdl-gallery-open img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .msdl-source-gallery .msdl-gallery-open {
        transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
    }

    .msdl-source-gallery .msdl-gallery-open:hover,
    .msdl-source-gallery .msdl-gallery-open:focus-visible {
        transform: translateY(-2px) scale(1.01);
        border-color: rgba(227, 0, 68, .26);
        box-shadow: 0 14px 30px rgba(48, 60, 73, .11);
    }
}

/* Shared lightbox viewer: image stays centered and the white frame follows its real aspect ratio. */
body.msdl-lightbox-open {
    overflow: hidden;
}

.msdl-lightbox:not([open]) {
    display: none;
}

.msdl-lightbox[open] {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: min(96vw, 1500px);
    height: min(92vh, 980px);
    height: min(92dvh, 980px);
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: clamp(14px, 2vw, 22px);
    color: #fff;
    background: rgba(28, 38, 49, .94);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
}

.msdl-lightbox::backdrop {
    background: rgba(8, 14, 20, .92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.msdl-lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: clamp(4rem, 5vw, 5rem) clamp(4.25rem, 6vw, 6rem);
}

.msdl-lightbox-image {
    display: block;
    flex: 0 1 auto;
    box-sizing: border-box;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    padding: clamp(5px, .55vw, 8px);
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 10px;
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(13, 20, 28, .16),
        0 18px 56px rgba(0, 0, 0, .34);
    object-fit: contain;
    object-position: center;
    opacity: 1;
    transition: opacity 180ms ease;
}

.msdl-lightbox-stage.is-loading .msdl-lightbox-image {
    opacity: .32;
}

.msdl-lightbox-close,
.msdl-lightbox-nav {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    background: rgba(35, 52, 65, .92);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.20);
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.msdl-lightbox-close {
    top: 14px;
    right: 14px;
    background: var(--msdl-red);
    border-color: rgba(255,255,255,.72);
}

.msdl-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
}

.msdl-lightbox-prev {
    left: 16px;
}

.msdl-lightbox-next {
    right: 16px;
}

.msdl-lightbox-close:hover,
.msdl-lightbox-close:focus-visible {
    transform: scale(1.05);
    background: #f0004c;
    border-color: #fff;
}

.msdl-lightbox-prev:hover,
.msdl-lightbox-prev:focus-visible {
    transform: translateY(-50%) translateX(-2px);
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.42);
}

.msdl-lightbox-next:hover,
.msdl-lightbox-next:focus-visible {
    transform: translateY(-50%) translateX(2px);
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.42);
}

.msdl-lightbox-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    min-height: 66px;
    padding: .9rem clamp(1rem, 3vw, 1.6rem);
    border-top: 1px solid rgba(255,255,255,.11);
    background: rgba(18, 28, 37, .78);
}

.msdl-lightbox-caption {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: rgba(255,255,255,.90);
    font-size: clamp(.9rem, 1.5vw, 1rem);
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.msdl-lightbox-counter {
    color: rgba(255,255,255,.68);
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.msdl-lightbox-link {
    cursor: zoom-in;
}

@media (max-width: 620px) {
    .msdl-lightbox[open] {
        width: calc(100vw - 12px);
        height: calc(100vh - 12px);
        height: calc(100dvh - 12px);
        max-width: none;
        max-height: none;
        border-radius: 12px;
    }

    .msdl-lightbox-stage {
        padding: 3.15rem;
    }

    .msdl-lightbox-image {
        padding: 4px;
        border-radius: 8px;
    }

    .msdl-lightbox-close,
    .msdl-lightbox-nav {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    .msdl-lightbox-close {
        top: .55rem;
        right: .55rem;
    }

    .msdl-lightbox-prev {
        left: .35rem;
    }

    .msdl-lightbox-next {
        right: .35rem;
    }

    .msdl-lightbox-meta {
        gap: .55rem;
        min-height: 56px;
        padding: .7rem .8rem;
    }

    .msdl-lightbox-caption {
        font-size: .86rem;
    }
}

@media (max-height: 520px) and (orientation: landscape) {
    .msdl-lightbox[open] {
        width: calc(100vw - .7rem);
        height: calc(100vh - .7rem);
        height: calc(100dvh - .7rem);
        max-width: none;
        max-height: none;
    }

    .msdl-lightbox-stage {
        padding: 2.8rem 3.4rem;
    }

    .msdl-lightbox-close,
    .msdl-lightbox-nav {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }

    .msdl-lightbox-close {
        top: .3rem;
        right: .3rem;
    }

    .msdl-lightbox-meta {
        min-height: 46px;
        padding: .45rem .75rem;
    }

    .msdl-lightbox-caption {
        font-size: 12px;
    }
}


/* Contact form is injected by the child theme only on contact routes. */
.msdl-contact-form-section {
    padding: 0 0 clamp(56px, 8vw, 100px);
}

.msdl-form-message {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 600;
}

.msdl-form-success {
    border: 1px solid #9cc9ad;
    background: #edf8f1;
    color: #1d5633;
}

.msdl-form-error {
    border: 1px solid #e1a7b5;
    background: #fff1f4;
    color: #7a1e34;
}

.msdl-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 620px) {
    .msdl-spec-table table {
        min-width: 560px;
    }
}

/* Language switch follows the primary navigation on desktop and mobile. */
.main-navigation .msdl-language-switch > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    font-weight: 800;
    letter-spacing: .08em;
}

.main-navigation .msdl-language-switch > a::before {
    content: "";
    width: 1px;
    height: 18px;
    margin-right: 14px;
    background: currentColor;
    opacity: .28;
}

@media (max-width: 768px) {
    .main-navigation .msdl-language-switch > a::before {
        display: none;
    }
}

/* Accessibility refinements: preserve the visual system while improving
 * non-colour link cues, keyboard focus and mobile touch targets. */
.entry-content p a:not(.wp-block-button__link),
.entry-content li a:not(.wp-block-button__link),
.msdl-footer p a,
.msdl-footer li a,
.msdl-source-home .msdl-service-card > p:last-child a {
    text-decoration: underline !important;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

:where(a, button, input, textarea, select):focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.msdl-slider-prev,
.msdl-slider-next,
.msdl-slider-dot,
.msdl-language-switch > a,
.msdl-gallery-trigger,
.msdl-lightbox-close,
.msdl-lightbox-prev,
.msdl-lightbox-next {
    min-width: 44px;
    min-height: 44px;
}

.msdl-slider-prev,
.msdl-slider-next,
.msdl-slider-dot,
.msdl-gallery-trigger,
.msdl-lightbox-close,
.msdl-lightbox-prev,
.msdl-lightbox-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =====================================================================
 * MAN Service DL — compatibility presentation layer
 * Presentation compatibility rules retained for verified legacy markup.
 * Direction: refined industrial / marine engineering.
 * ===================================================================== */

:root {
    --msdl-page: #edf1f4;
    --msdl-page-soft: #f6f8f9;
    --msdl-ink-strong: #27333f;
    --msdl-text: #46525e;
    --msdl-border-soft: rgba(48, 60, 73, 0.14);
    --msdl-border-strong: rgba(48, 60, 73, 0.22);
    --msdl-shadow-soft: 0 10px 30px rgba(29, 42, 54, 0.07);
    --msdl-shadow-card: 0 18px 46px rgba(29, 42, 54, 0.10);
    --msdl-shadow-hover: 0 24px 58px rgba(29, 42, 54, 0.15);
}

/* Global canvas and typography */
body,
.site-content {
    background: var(--msdl-page);
}

.inside-article,
.entry-content {
    background: transparent;
}

.entry-content {
    color: var(--msdl-text);
}

.entry-content p:not(.msdl-card-index):not(.msdl-slider-status),
.entry-content li {
    font-size: clamp(15.5px, 1.15vw, 17px);
    line-height: 1.76;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
    text-wrap: balance;
}

.entry-content h1 {
    color: var(--msdl-ink-strong);
}

.entry-content h2,
.entry-content h3 {
    color: var(--msdl-navy);
}

.site-header {
    box-shadow: 0 6px 24px rgba(29, 42, 54, 0.06);
}

/* Use the darker MAN red for small text on light surfaces; keep brand red for decoration. */
.msdl-card-index,
.msdl-source-page .msdl-section-kicker,
.msdl-source-home .msdl-section-kicker {
    color: var(--msdl-red-dark);
}

.msdl-kicker-light,
.msdl-inner-hero .msdl-section-kicker,
.msdl-contact-banner .msdl-section-kicker {
    color: #ff6672;
}

/* Shared internal-page canvas */
.msdl-source-page,
.msdl-gallery-section,
.msdl-engine-detail {
    position: relative;
    background:
        radial-gradient(circle at 92% 8%, rgba(48, 60, 73, 0.055), transparent 28rem),
        linear-gradient(180deg, var(--msdl-page-soft) 0%, var(--msdl-page) 100%);
}

.msdl-source-page > .msdl-shell,
.msdl-gallery-section > .msdl-shell,
.msdl-engine-detail > .msdl-shell {
    position: relative;
}

/* Stronger internal-page heading rhythm */
.msdl-source-page > .msdl-shell > h1,
.msdl-source-page > .msdl-shell > h2:first-child,
.msdl-gallery-section .msdl-section-title {
    position: relative;
    margin-bottom: clamp(28px, 4vw, 46px);
    color: var(--msdl-ink-strong);
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.msdl-source-page > .msdl-shell > h1::after,
.msdl-source-page > .msdl-shell > h2:first-child::after,
.msdl-gallery-section .msdl-section-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 18px;
    border-radius: 99px;
    background: var(--msdl-red);
}

/* Buttons: sharper, clearer, less generic */
.msdl-source-page .wp-block-button__link,
.msdl-btn-dark .wp-block-button__link,
.msdl-btn-primary .wp-block-button__link,
.msdl-form-submit {
    box-shadow: 0 8px 22px rgba(29, 42, 54, 0.12);
}

.msdl-source-page .wp-block-button__link:hover,
.msdl-source-page .wp-block-button__link:focus-visible,
.msdl-btn-dark .wp-block-button__link:hover,
.msdl-btn-dark .wp-block-button__link:focus-visible,
.msdl-form-submit:hover,
.msdl-form-submit:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 13px 28px rgba(29, 42, 54, 0.17);
}

/* HOME — improve hierarchy, legibility and visual depth */
.msdl-source-home {
    background:
        radial-gradient(circle at 8% 46%, rgba(48, 60, 73, 0.045), transparent 24rem),
        linear-gradient(180deg, #f8f9fa 0%, #edf1f4 100%);
}

.msdl-home-slider {
    box-shadow:
        0 22px 50px rgba(29, 42, 54, 0.10),
        inset 0 -1px rgba(48, 60, 73, 0.08);
}

.msdl-home-slide-content {
    border: 1px solid rgba(48, 60, 73, 0.16);
    border-left: 4px solid var(--msdl-red);
    border-radius: 4px 14px 14px 4px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 44px rgba(29, 42, 54, 0.16);
}

.msdl-home-slide-title {
    color: #18232e;
    text-shadow: none;
}

.msdl-home-slide-link {
    border-color: #293642;
    color: #293642;
    background: #fff;
    box-shadow: 0 5px 16px rgba(29, 42, 54, 0.08);
}

.msdl-home-slide-link:hover,
.msdl-home-slide-link:focus-visible {
    border-color: var(--msdl-red-dark);
    color: var(--msdl-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(29, 42, 54, 0.12);
}

.msdl-slider-prev,
.msdl-slider-next {
    border-color: rgba(48, 60, 73, 0.28);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 7px 20px rgba(29, 42, 54, 0.12);
}

.msdl-home-actions > .wp-block-column {
    border-color: var(--msdl-border-soft);
    background: linear-gradient(145deg, #fff 0%, #f6f8f9 100%);
    box-shadow: var(--msdl-shadow-soft);
}

.msdl-home-actions > .wp-block-column:hover,
.msdl-home-actions > .wp-block-column:focus-within {
    transform: translateY(-4px);
    border-color: rgba(197, 0, 59, 0.30);
    box-shadow: var(--msdl-shadow-card);
}

.msdl-home-actions > .wp-block-column:has(a)::after {
    content: "↗";
    margin-left: auto;
    color: var(--msdl-red-dark);
    font-size: 18px;
    font-weight: 800;
}

.msdl-source-home > .msdl-shell > h1 {
    margin-top: clamp(60px, 8vw, 96px);
    color: var(--msdl-ink-strong);
}

.msdl-source-home > .msdl-shell > h2:not(:first-of-type) {
    position: relative;
    padding-left: 18px;
    color: var(--msdl-ink-strong);
}

.msdl-source-home > .msdl-shell > h2:not(:first-of-type)::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 99px;
    background: var(--msdl-red);
}

.msdl-source-home > .msdl-shell > p {
    color: var(--msdl-text);
}

.msdl-source-home .msdl-service-card {
    border: 1px solid var(--msdl-border-soft);
    background: linear-gradient(145deg, #fff 0%, #f5f7f8 100%);
    box-shadow: var(--msdl-shadow-soft);
}

.msdl-source-home .msdl-service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(197, 0, 59, 0.26);
    box-shadow: var(--msdl-shadow-hover);
}

.msdl-source-home .msdl-service-card h3 a {
    color: var(--msdl-ink-strong);
}

.msdl-source-home .msdl-service-card > p:last-child a {
    color: var(--msdl-navy);
}

/* COMPANY — editorial presentation instead of a plain text wall */
:is(#post-3587, #post-4742) .msdl-source-page {
    padding-block: clamp(64px, 8vw, 104px);
}

:is(#post-3587, #post-4742) .msdl-source-page > .msdl-shell {
    max-width: 1040px;
    padding: clamp(34px, 6vw, 72px);
    border: 1px solid var(--msdl-border-soft);
    border-top: 4px solid var(--msdl-red);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.98), rgba(247,249,250,0.98));
    box-shadow: var(--msdl-shadow-card);
}

:is(#post-3587, #post-4742) .msdl-source-page > .msdl-shell > p:first-of-type {
    color: #35424f;
    font-size: clamp(18px, 1.65vw, 21px);
    line-height: 1.72;
}

:is(#post-3587, #post-4742) .msdl-source-page > .msdl-shell > p + p {
    margin-top: 0;
    padding-top: 22px;
    border-top: 1px solid rgba(48, 60, 73, 0.10);
}

:is(#post-3587, #post-4742) .wp-block-buttons {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid rgba(48, 60, 73, 0.12);
}

/* MARINE ENGINES — visual product catalogue using existing Media Library assets */
:is(#post-4619, #post-4743) .msdl-source-page {
    padding-block: clamp(58px, 7vw, 92px);
}

:is(#post-4619, #post-4743) .msdl-source-page > .msdl-shell > p:first-of-type {
    max-width: 760px;
    margin-top: -18px;
    margin-bottom: 38px;
    color: #52606c;
    font-size: clamp(17px, 1.4vw, 19px);
}

:is(#post-4619, #post-4743) .msdl-card-grid {
    gap: 22px;
    margin-bottom: 22px;
}

:is(#post-4619, #post-4743) .msdl-service-card {
    display: flex;
    min-height: 330px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 214px 26px 26px;
    border: 1px solid var(--msdl-border-soft);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--msdl-shadow-soft);
}

:is(#post-4619, #post-4743) .msdl-service-card::before {
    content: "";
    position: absolute;
    top: 16px;
    right: 16px;
    left: 16px;
    height: 180px;
    border: 1px solid rgba(48, 60, 73, 0.10);
    border-radius: 12px;
    background-color: #f4f6f7;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 260ms ease, background-color 260ms ease;
}

:is(#post-4619, #post-4743) .msdl-service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(197, 0, 59, 0.24);
    box-shadow: var(--msdl-shadow-hover);
}

:is(#post-4619, #post-4743) .msdl-service-card:hover::before {
    transform: scale(1.025);
    background-color: #fff;
}

:is(#post-4619, #post-4743) .msdl-service-card h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: clamp(20px, 1.65vw, 24px);
    line-height: 1.22;
	text-align: right !important;
}

:is(#post-4619, #post-4743) .msdl-service-card h2 a {
    color: var(--msdl-ink-strong);
    text-decoration: none;
}

:is(#post-4619, #post-4743) .msdl-service-card h2 a::after {
    content: "  ↗";
    color: var(--msdl-red-dark);
}


/* PERFECT USED — inventory cards with controlled industrial styling */
:is(#post-4638, #post-4744) .msdl-source-page {
    padding-block: clamp(64px, 8vw, 104px);
}

:is(#post-4638, #post-4744) .msdl-card-grid {
    gap: 22px;
    align-items: stretch;
}

:is(#post-4638, #post-4744) .msdl-service-card {
    min-height: 235px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    border: 1px solid var(--msdl-border-soft);
    border-top: 4px solid var(--msdl-navy);
    border-radius: 15px;
    background: linear-gradient(145deg, #fff 0%, #f5f7f8 100%);
    box-shadow: var(--msdl-shadow-soft);
}

:is(#post-4638, #post-4744) .msdl-service-card:hover {
    transform: translateY(-6px);
    border-top-color: var(--msdl-red);
    box-shadow: var(--msdl-shadow-hover);
}

:is(#post-4638, #post-4744) .msdl-service-card h2 {
    margin: 0 0 32px;
    font-size: clamp(23px, 2vw, 29px);
    line-height: 1.14;
}

:is(#post-4638, #post-4744) .msdl-service-card h2 a {
    color: var(--msdl-ink-strong);
    text-decoration: none;
}

:is(#post-4638, #post-4744) .msdl-service-card p {
    margin: auto 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(48, 60, 73, 0.12);
    color: #4c5965;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.045em;
    line-height: 1.65;
}

/* GALLERY — photographic framing and deliberate depth */
:is(#post-4665, #post-4745) .msdl-gallery-section {
    padding-block: clamp(64px, 8vw, 104px);
}

:is(#post-4665, #post-4745) .msdl-source-gallery {
    gap: clamp(14px, 2vw, 22px);
}

:is(#post-4665, #post-4745) .msdl-source-gallery .wp-block-image {
    padding: 6px;
    border: 1px solid var(--msdl-border-soft);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--msdl-shadow-soft);
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

:is(#post-4665, #post-4745) .msdl-source-gallery .wp-block-image img {
    border-radius: 11px;
}

:is(#post-4665, #post-4745) .msdl-source-gallery .wp-block-image:hover,
:is(#post-4665, #post-4745) .msdl-source-gallery .wp-block-image:focus-within {
    transform: translateY(-5px);
    border-color: rgba(197, 0, 59, 0.22);
    box-shadow: var(--msdl-shadow-hover);
}

:is(#post-4665, #post-4745) .msdl-source-gallery .msdl-gallery-open {
    border-radius: 11px;
    background: #fff;
}

/* CONTACT — premium dark hero, clear contact cards and a real form surface */
.msdl-inner-hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 16%, rgba(227, 0, 68, 0.20), transparent 22rem),
        radial-gradient(circle at 8% 92%, rgba(255, 255, 255, 0.06), transparent 20rem),
        linear-gradient(135deg, #263440 0%, #101d28 100%);
    box-shadow: inset 0 -1px rgba(255,255,255,0.06);
}

.msdl-inner-title {
    text-shadow: 0 3px 20px rgba(0,0,0,0.22);
}

:is(#post-3589, #post-4746) .msdl-section {
    background: linear-gradient(180deg, #f6f8f9 0%, #edf1f4 100%);
}

:is(#post-3589, #post-4746) .msdl-contact-card {
    border-color: var(--msdl-border-soft);
    border-radius: 16px;
    background: linear-gradient(145deg, #fff 0%, #f7f9fa 100%);
    box-shadow: var(--msdl-shadow-soft);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

:is(#post-3589, #post-4746) .msdl-contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 0, 59, 0.22);
    box-shadow: var(--msdl-shadow-card);
}

:is(#post-3589, #post-4746) .msdl-contact-card .msdl-card-index {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(197, 0, 59, 0.16);
    border-radius: 999px;
    background: rgba(197, 0, 59, 0.055);
    color: var(--msdl-red-dark);
}

:is(#post-3589, #post-4746) .msdl-contact-banner {
    border: 1px solid rgba(255,255,255,0.09);
    background:
        radial-gradient(circle at 90% 20%, rgba(227, 0, 68, 0.18), transparent 20rem),
        var(--msdl-navy);
    box-shadow: 0 20px 50px rgba(29, 42, 54, 0.16);
}

.msdl-contact-form-section {
    padding-block: clamp(54px, 7vw, 90px);
    background: var(--msdl-page);
}

.msdl-contact-form-wrap {
    padding: clamp(26px, 4vw, 44px);
    border: 1px solid var(--msdl-border-soft);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--msdl-shadow-card);
}

.msdl-field label {
    color: var(--msdl-ink-strong);
    font-size: 14px;
    letter-spacing: 0.01em;
}

.msdl-field input,
.msdl-field textarea {
    border-color: rgba(48, 60, 73, 0.20);
    background: #f8fafb;
    box-shadow: inset 0 1px 2px rgba(29, 42, 54, 0.025);
}

.msdl-field input:hover,
.msdl-field textarea:hover {
    border-color: rgba(48, 60, 73, 0.34);
    background: #fff;
}

.msdl-field input:focus,
.msdl-field textarea:focus {
    border-color: var(--msdl-navy);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(48, 60, 73, 0.09);
}

/* Product/detail pages: technical information needs a controlled canvas */
.msdl-engine-detail {
    padding-block: clamp(56px, 7vw, 92px);
}

.msdl-engine-detail .msdl-feature-image {
    border-color: var(--msdl-border-strong);
    background: linear-gradient(145deg, #fff 0%, #edf1f4 100%);
    box-shadow: var(--msdl-shadow-card);
}

.msdl-engine-detail > .msdl-shell > h2 {
    position: relative;
    padding-left: 16px;
    color: var(--msdl-ink-strong);
}

.msdl-engine-detail > .msdl-shell > h2::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 99px;
    background: var(--msdl-red);
}

.msdl-spec-table {
    border-color: var(--msdl-border-soft);
    box-shadow: var(--msdl-shadow-soft);
}

/* Responsive polish */
@media (max-width: 768px) {
    .msdl-home-slide-content {
        border-radius: 4px 12px 12px 4px;
        background: rgba(255,255,255,0.96);
    }

    .msdl-home-actions > .wp-block-column:has(a)::after {
        font-size: 16px;
    }

    :is(#post-3587, #post-4742) .msdl-source-page > .msdl-shell {
        padding: 28px 22px;
        border-radius: 14px;
    }

    :is(#post-4619, #post-4743) .msdl-service-card {
        min-height: 292px;
        padding: 188px 22px 22px;
    }

    :is(#post-4619, #post-4743) .msdl-service-card::before {
        height: 154px;
    }

    :is(#post-4638, #post-4744) .msdl-service-card {
        min-height: 200px;
        padding: 24px;
    }

    .msdl-contact-form-wrap {
        padding: 22px 18px;
        border-radius: 14px;
    }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .msdl-home-slide-link,
    .msdl-home-actions > .wp-block-column,
    .msdl-source-home .msdl-service-card,
    :is(#post-4619, #post-4743) .msdl-service-card,
    :is(#post-4638, #post-4744) .msdl-service-card {
        transition:
            transform 220ms ease,
            border-color 220ms ease,
            box-shadow 220ms ease,
            background-color 220ms ease;
    }
}

/* Keep the full homepage canvas aligned with the site's framed header/footer.
 * Avoid 100vw-based alignfull overflow caused by the browser scrollbar. */
.msdl-source-home.alignfull {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}

@media (prefers-reduced-motion: reduce) {
    .msdl-home-slide-link,
    .msdl-home-actions > .wp-block-column,
    .msdl-source-home .msdl-service-card,
    :is(#post-4619, #post-4743) .msdl-service-card,
    :is(#post-4638, #post-4744) .msdl-service-card,
    :is(#post-4665, #post-4745) .msdl-source-gallery .wp-block-image,
    :is(#post-3589, #post-4746) .msdl-contact-card {
        transform: none !important;
    }
}

/* ==========================================================================
   Contact workspace and bilingual form
   ========================================================================== */

body.msdl-ui.msdl-route-contact .msdl-contact-form-section {
    padding-block: clamp(54px, 7vw, 92px);
    background: linear-gradient(180deg, #edf1f4 0%, #f6f8f9 100%);
}

body.msdl-ui.msdl-route-contact .msdl-contact-workspace > .msdl-shell {
    width: min(calc(100% - 40px), 1180px);
}

body.msdl-ui.msdl-route-contact .msdl-contact-workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: clamp(22px, 3vw, 34px);
    align-items: stretch;
}

body.msdl-ui.msdl-route-contact .msdl-contact-workspace-form,
body.msdl-ui.msdl-route-contact .msdl-contact-map-panel {
    min-width: 0;
}

body.msdl-ui.msdl-route-contact .msdl-contact-form-wrap,
body.msdl-ui.msdl-route-contact .msdl-contact-map-panel {
    height: 100%;
    border: 1px solid var(--msdl-border-soft);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
    box-shadow: var(--msdl-shadow-card);
}

body.msdl-ui.msdl-route-contact .msdl-contact-form-wrap {
    display: flex;
    flex-direction: column;
    padding: clamp(26px, 4vw, 44px);
}

body.msdl-ui.msdl-route-contact .msdl-contact-form-head {
    max-width: 650px;
    margin-bottom: clamp(24px, 3vw, 34px);
    padding-bottom: clamp(22px, 2.6vw, 30px);
    border-bottom: 1px solid rgba(48, 60, 73, .13);
}

body.msdl-ui.msdl-route-contact .msdl-contact-form-kicker {
    width: fit-content;
    margin: 0 0 12px;
    color: var(--msdl-red-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.3;
    text-transform: uppercase;
}

body.msdl-ui.msdl-route-contact .msdl-contact-form-head h2,
body.msdl-ui.msdl-route-contact .msdl-contact-map-copy h2 {
    margin: 0 0 12px;
    color: var(--msdl-ink-strong);
    font-size: clamp(28px, 3vw, 39px);
    line-height: 1.06;
    letter-spacing: -.035em;
}

body.msdl-ui.msdl-route-contact .msdl-contact-form-head > p:last-child,
body.msdl-ui.msdl-route-contact .msdl-contact-map-copy > p:not(.msdl-contact-form-kicker) {
    margin: 0;
    color: #56636e;
    font-size: 15px;
    line-height: 1.7;
}

body.msdl-ui.msdl-route-contact .msdl-contact-form {
    display: flex;
    flex: 1;
    flex-direction: column;
}

body.msdl-ui.msdl-route-contact .msdl-form-grid {
    gap: 18px;
}

body.msdl-ui.msdl-route-contact .msdl-field {
    margin: 0;
}

body.msdl-ui.msdl-route-contact .msdl-field label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--msdl-ink-strong);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .02em;
}

body.msdl-ui.msdl-route-contact .msdl-field input,
body.msdl-ui.msdl-route-contact .msdl-field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid rgba(48, 60, 73, .22);
    border-radius: 10px;
    background: #f7f9fa;
    color: var(--msdl-ink-strong);
    box-shadow: inset 0 1px 2px rgba(29, 42, 54, .025);
}

body.msdl-ui.msdl-route-contact .msdl-field textarea {
    min-height: 168px;
    resize: vertical;
}

body.msdl-ui.msdl-route-contact .msdl-field input::placeholder,
body.msdl-ui.msdl-route-contact .msdl-field textarea::placeholder {
    color: #84909a;
    opacity: 1;
}

body.msdl-ui.msdl-route-contact .msdl-field input:hover,
body.msdl-ui.msdl-route-contact .msdl-field textarea:hover {
    border-color: rgba(48, 60, 73, .38);
    background: #fff;
}

body.msdl-ui.msdl-route-contact .msdl-field input:focus,
body.msdl-ui.msdl-route-contact .msdl-field textarea:focus {
    border-color: var(--msdl-navy);
    outline: 0;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(48, 60, 73, .09);
}

body.msdl-ui.msdl-route-contact .msdl-field-full {
    margin-top: 18px;
}

body.msdl-ui.msdl-route-contact .msdl-form-submit {
    align-self: flex-start;
    min-width: 150px;
    margin-top: 20px;
}

body.msdl-ui.msdl-route-contact .msdl-form-message {
    margin: 0 0 22px;
    padding: 13px 15px;
    border-radius: 9px;
    font-weight: 650;
    line-height: 1.55;
}

body.msdl-ui.msdl-route-contact .msdl-contact-map-panel {
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 2.8vw, 28px);
    overflow: hidden;
}

body.msdl-ui.msdl-route-contact .msdl-contact-map-copy {
    padding: 4px 4px 20px;
}

body.msdl-ui.msdl-route-contact .msdl-contact-map-copy address {
    margin: 18px 0 0;
    color: var(--msdl-ink-strong);
    font-size: 15px;
    font-style: normal;
    font-weight: 750;
    line-height: 1.5;
}

body.msdl-ui.msdl-route-contact .msdl-contact-map-frame {
    position: relative;
    min-height: 390px;
    flex: 1;
    overflow: hidden;
    border: 1px solid rgba(48, 60, 73, .18);
    border-radius: 13px;
    background: #e6ebee;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 12px 30px rgba(29, 42, 54, .09);
}

body.msdl-ui.msdl-route-contact .msdl-contact-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 390px;
    border: 0;
}

body.msdl-ui.msdl-route-contact .msdl-contact-map-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 48px;
    margin-top: 14px;
    padding: 11px 14px;
    border: 1px solid rgba(48, 60, 73, .17);
    border-radius: 9px;
    color: var(--msdl-ink-strong);
    background: #f3f6f7;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

body.msdl-ui.msdl-route-contact .msdl-contact-map-link:hover,
body.msdl-ui.msdl-route-contact .msdl-contact-map-link:focus-visible {
    border-color: var(--msdl-navy);
    color: #fff;
    background: var(--msdl-navy);
    transform: translateY(-1px);
}

@media (max-width: 960px) {
    body.msdl-ui.msdl-route-contact .msdl-contact-workspace-grid {
        grid-template-columns: 1fr;
    }

    body.msdl-ui.msdl-route-contact .msdl-contact-map-panel {
        order: 1;
    }

    body.msdl-ui.msdl-route-contact .msdl-contact-workspace-form {
        order: 2;
    }

    body.msdl-ui.msdl-route-contact .msdl-contact-map-frame,
    body.msdl-ui.msdl-route-contact .msdl-contact-map-frame iframe {
        min-height: 360px;
    }
}

@media (max-width: 768px) {
    body.msdl-ui.msdl-route-contact .msdl-contact-workspace > .msdl-shell {
        width: calc(100% - 28px);
    }

    body.msdl-ui.msdl-route-contact .msdl-contact-workspace-grid {
        gap: 18px;
    }

    body.msdl-ui.msdl-route-contact .msdl-contact-form-wrap,
    body.msdl-ui.msdl-route-contact .msdl-contact-map-panel {
        border-radius: 14px;
    }

    body.msdl-ui.msdl-route-contact .msdl-contact-form-wrap {
        padding: 22px 16px;
    }

    body.msdl-ui.msdl-route-contact .msdl-contact-map-panel {
        padding: 16px;
    }

    body.msdl-ui.msdl-route-contact .msdl-contact-map-frame,
    body.msdl-ui.msdl-route-contact .msdl-contact-map-frame iframe {
        min-height: 300px;
    }
}

@media (max-width: 430px) {
    body.msdl-ui.msdl-route-contact .msdl-contact-form-head h2,
    body.msdl-ui.msdl-route-contact .msdl-contact-map-copy h2 {
        font-size: clamp(27px, 8.5vw, 34px);
    }

    body.msdl-ui.msdl-route-contact .msdl-contact-map-frame,
    body.msdl-ui.msdl-route-contact .msdl-contact-map-frame iframe {
        min-height: 270px;
    }

    body.msdl-ui.msdl-route-contact .msdl-form-submit {
        width: 100%;
    }
}


/* ==========================================================================
   Dynamic inventory and Gallery normalization
   ========================================================================== */

/* Perfect Used cards are enhanced by inventory.js from the existing source copy.
 * The presentation is data-driven, so future cards using the same factual
 * “HP · RPM · kW · CONDITION · QTY” pattern inherit the treatment automatically. */
body.msdl-ui.msdl-route-used .msdl-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(18px, 2.4vw, 26px);
}

body.msdl-ui.msdl-route-used .msdl-card-grid > .msdl-service-card {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.msdl-used-card-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(48, 60, 73, .12);
}

.msdl-used-card-meta > span {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 7px 9px;
    border: 1px solid rgba(48, 60, 73, .11);
    border-radius: 9px;
    background: rgba(255, 255, 255, .78);
    color: #465460;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .035em;
    text-align: center;
}

.msdl-used-card-meta .msdl-used-status,
.msdl-used-card-meta .msdl-used-qty {
    grid-column: span 1;
}

.msdl-used-card-meta .msdl-used-status {
    border-color: rgba(36, 63, 83, .16);
    background: #e9eef2;
    color: #172a38;
}

.msdl-used-card-meta .msdl-used-status[data-status="rebuilt"] {
    border-color: rgba(23, 111, 74, .20);
    background: #e9f4ee;
    color: #155b3e;
}

.msdl-used-card-meta .msdl-used-status[data-status="damage"] {
    border-color: rgba(169, 74, 32, .22);
    background: #fff1e9;
    color: #8b3f1f;
}

.msdl-used-card-meta .msdl-used-status[data-status="used"] {
    border-color: rgba(197, 0, 59, .16);
    background: #f9e9ee;
    color: #8d1135;
}

/* Normalize the WordPress Gallery block into one predictable responsive grid.
 * Core Gallery percentage widths/flex-basis are explicitly reset so newly
 * inserted images never collapse into narrow vertical strips. */
body.msdl-ui.msdl-route-gallery .msdl-source-gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(14px, 2vw, 22px) !important;
    align-items: stretch;
}

body.msdl-ui.msdl-route-gallery .msdl-source-gallery > .wp-block-image,
body.msdl-ui.msdl-route-gallery .msdl-source-gallery.has-nested-images > figure.wp-block-image:not(#individual-image) {
    width: 100% !important;
    max-width: none !important;
    flex-basis: auto !important;
    margin: 0 !important;
}

body.msdl-ui.msdl-route-gallery .msdl-source-gallery .msdl-gallery-open {
    height: 100%;
    min-height: 0;
}

body.msdl-ui.msdl-route-gallery .msdl-source-gallery .msdl-gallery-open img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Shared technical-list treatment for the remaining source-faithful product pages. */
body.msdl-ui.msdl-route-product .msdl-characteristics-list,
body.msdl-ui.msdl-route-product .msdl-benefit-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 22px;
    max-width: none;
    padding: 0;
    list-style: none;
}

body.msdl-ui.msdl-route-product .msdl-characteristics-list > li,
body.msdl-ui.msdl-route-product .msdl-benefit-list > li {
    position: relative;
    margin: 0;
    padding: 13px 14px 13px 34px;
    border: 1px solid rgba(48, 60, 73, .10);
    border-radius: 10px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 5px 16px rgba(24, 38, 52, .035);
}

body.msdl-ui.msdl-route-product .msdl-characteristics-list > li::before,
body.msdl-ui.msdl-route-product .msdl-benefit-list > li::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 15px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--msdl-red);
    box-shadow: 0 0 0 4px rgba(197, 0, 59, .08);
}
@media (max-width: 767px) {
	.gb-element-56e1e2aa{
		gap: 20px !important;
	}
}
@media (max-width: 720px) {
    body.msdl-ui.msdl-route-used .msdl-card-grid {
        grid-template-columns: 1fr;
    }

    .msdl-used-card-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.msdl-ui.msdl-route-gallery .msdl-source-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.msdl-ui.msdl-route-product .msdl-characteristics-list,
    body.msdl-ui.msdl-route-product .msdl-benefit-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .msdl-used-card-meta {
        grid-template-columns: 1fr 1fr;
    }

    body.msdl-ui.msdl-route-gallery .msdl-source-gallery {
        grid-template-columns: 1fr;
    }
}
