@font-face {
    font-family: "MT Editorial Lora";
    src: url("lora-latin-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "MT Editorial Inter";
    src: url("inter-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

body.mtu26-editorial-view {
    --ed-ink: #142a28;
    --ed-body: #49534e;
    --ed-ivory: #f7f4ee;
    --ed-paper: #fffefa;
    --ed-green: #526b5d;
    --ed-line: #e4e3dc;
    --mtu-blue: var(--ed-green);
    --mtu-blue-dark: #395548;
    --mtu-navy: var(--ed-ink);
    --mtu-text: var(--ed-body);
    --mtu-line: var(--ed-line);
    --mtu-soft-blue: #e8eee8;
    --mtu-button-hover-shadow: none;
    --mtu-field-border: #b4beb5;
    --mtu-field-focus: var(--ed-green);
    --ed-serif: "MT Editorial Lora", Georgia, serif;
    --ed-frame: min(1440px, calc(100% - clamp(32px, 7vw, 104px)));
    --ed-content: calc(100% - clamp(40px, 8.3vw, 120px));
    background: var(--ed-ivory);
}

.mtu-editorial {
    width: var(--ed-frame);
    margin-inline: auto;
    border-inline: 1px solid var(--ed-line);
    color: var(--ed-ink);
    background: var(--ed-paper);
    font-family: "MT Editorial Inter", system-ui, sans-serif;
}

.mtu-editorial__inner,
body.mtu26-editorial-view #mtu26-site-header > .mtu-container,
body.mtu26-editorial-view #colophon > .mtu-container {
    width: var(--ed-content);
    margin-inline: auto;
}

.mtu-editorial__hero {
    isolation: isolate;
    position: relative;
    background: var(--ed-ivory);
}

.mtu-editorial__media {
    position: absolute;
    z-index: -1;
    inset: 0 0 0 38%;
    mask-image: linear-gradient(to right, transparent, #000 26%);
}

.mtu-editorial__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mtu-editorial__media img { object-position: 63% 42%; }
.mtu-editorial__media--mia img { object-position: 82% 28%; }

.mtu-editorial__hero-inner {
    display: grid;
    align-items: center;
    min-height: clamp(365px, 29.5vw, 445px);
    padding-block: clamp(36px, 4vw, 54px);
}

.mtu-editorial__copy { max-width: 56%; }

.mtu-editorial__eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    color: var(--ed-body);
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.mtu-editorial__eyebrow::before {
    content: "";
    flex: 0 0 30px;
    height: 1px;
    background: var(--ed-green);
}

.mtu-editorial h1,
.mtu-editorial h2,
.mtu-editorial h3 {
    margin: 0;
    color: var(--ed-ink);
    font-family: var(--ed-serif);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
}

.mtu-editorial h1 {
    max-width: 15ch;
    font-size: clamp(2.4rem, 5.1vw, 4.95rem);
    text-wrap: balance;
}

.mtu-editorial h2 { font-size: clamp(1.9rem, 3.4vw, 3.1rem); }
.mtu-editorial h3 { font-size: clamp(1.28rem, 1.7vw, 1.65rem); }

.mtu-editorial__lead {
    margin: 20px 0 24px;
    max-width: 48ch;
    font-size: clamp(1rem, 1.45vw, 1.3rem);
    line-height: 1.5;
}

.mtu-editorial a.mtu-editorial__button {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    min-height: 48px;
    padding: 10px 24px;
    border-radius: 2px;
    background: var(--ed-green);
    color: #fff;
    text-decoration: none;
}
.mtu-editorial a.mtu-editorial__button:hover { background: #395548; }
.mtu-editorial a:focus-visible { outline: 2px solid var(--ed-green); outline-offset: 4px; }

.mtu-editorial__courses { padding-block: clamp(28px, 4vw, 58px); }

.mtu-editorial__section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px 32px;
    margin-bottom: clamp(20px, 3vw, 34px);
}

.mtu-editorial__section-heading p,
.mtu-editorial__card-copy p { color: var(--ed-body); font-size: .94rem; line-height: 1.55; }
.mtu-editorial__section-heading p { margin: 0; max-width: 43ch; }
.mtu-editorial__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }

.mtu-editorial__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--ed-line);
    border-radius: 3px;
    overflow: hidden;
    background: white;
}

.mtu-editorial__grid--1 { grid-template-columns: minmax(0, 650px); }
.mtu-editorial__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mtu-editorial__card-media { display: block; }
.mtu-editorial__card-media img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--ed-line); }
.mtu-editorial a.mtu-editorial__card-media:focus-visible { outline-offset: -4px; }
.mtu-editorial__card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 9px; padding: clamp(16px, 2vw, 24px); }
.mtu-editorial__card-copy h3 { color: var(--ed-ink); }
.mtu-editorial__card-copy p { margin: 0; }
.mtu-editorial a.mtu-editorial__link { display: inline-flex; gap: 10px; align-items: center; width: fit-content; color: var(--ed-green); font-size: .94rem; text-underline-offset: .32em; }
.mtu-editorial a.mtu-editorial__link:hover { color: var(--ed-ink); }
.mtu-editorial__card-copy .mtu-editorial__link { margin-top: auto; padding-top: 5px; }
.mtu-editorial__all { margin-top: 20px; }
.mtu-editorial__extra { padding-block: clamp(30px, 5vw, 70px); }

/* Override older inline colors on content links without recoloring link buttons. */
.mtu26-editorial-view #primary .entry-content :where(p, li, dd, td, th, figcaption, blockquote, h2, h3, h4, .wp-block-file)
    a[href]:not(:where(.button, .wp-element-button, .wp-block-button__link, .wp-block-file__button, .llms-button-primary, .llms-button-secondary, .llms-button-action, [role="button"])) {
    --ed-content-link: var(--ed-green);
    color: var(--ed-content-link) !important;
}

.mtu26-editorial-view #primary .entry-content :where(p, li, dd, td, th, figcaption, blockquote, h2, h3, h4, .wp-block-file)
    a[href]:is(:hover, :focus-visible):not(:where(.button, .wp-element-button, .wp-block-button__link, .wp-block-file__button, .llms-button-primary, .llms-button-secondary, .llms-button-action, [role="button"])) {
    --ed-content-link: var(--mtu-blue-dark);
}

.mtu26-editorial-view #primary .entry-content :where(p, li, dd, td, th, figcaption, blockquote, h2, h3, h4, .wp-block-file)
    a[href]:not(:where(.button, .wp-element-button, .wp-block-button__link, .wp-block-file__button, .llms-button-primary, .llms-button-secondary, .llms-button-action, [role="button"]))
    :where(:is(span, strong, em):is([style], .has-text-color), font[color]) {
    color: var(--ed-content-link) !important;
}

html body.mtu26-editorial-view #mtu26-site-header.mtu26-site-header,
body.mtu26-editorial-view #colophon {
    width: var(--ed-frame);
    margin-inline: auto;
}
html body.mtu26-editorial-view #mtu26-site-header.mtu26-site-header {
    background: var(--ed-ivory) !important;
    border: 1px solid var(--ed-line) !important;
    box-shadow: none !important;
}
html body.mtu26-editorial-view #mtu26-site-header .mtu26-site-header__inner {
    min-height: 68px !important;
}
html body.mtu26-editorial-view #mtu26-primary-navigation .menu-item > a {
    font-family: "MT Editorial Inter", system-ui, sans-serif;
    color: var(--ed-ink) !important;
    font-size: .9rem !important;
    font-weight: 500 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}
@media (min-width: 901px) {
    html body.mtu26-editorial-view #mtu26-primary-navigation .menu-item > a { padding-block: 22px; }
    html body.mtu26-editorial-view #mtu26-primary-navigation .menu-item > a::after { bottom: 14px; }
}

@media (max-width: 900px) {
    html body.mtu26-editorial-view #mtu26-site-header .mtu26-site-header__inner {
        gap: 12px;
    }

    #mtu26-site-header .mtu26-menu-toggle:has(.mtu-editorial-menu-label) {
        flex: 0 0 auto;
        gap: 10px;
        width: auto;
        padding-inline: 13px;
        border: 1px solid var(--ed-line);
        border-radius: 4px;
        background: var(--ed-paper);
        color: var(--ed-ink);
        font: 550 .875rem "MT Editorial Inter", system-ui, sans-serif;
    }

    #mtu26-site-header .mtu26-menu-toggle:has(.mtu-editorial-menu-label)[aria-expanded="true"] {
        background: var(--mtu-soft-blue);
    }

    .mtu-editorial-menu-label ~ .mtu26-menu-toggle__bars,
    .mtu-editorial-menu-label ~ .mtu26-menu-toggle__bars::before,
    .mtu-editorial-menu-label ~ .mtu26-menu-toggle__bars::after {
        width: 16px;
        height: 2px;
    }

    .mtu-editorial-menu-label ~ .mtu26-menu-toggle__bars::before { top: -5px; }
    .mtu-editorial-menu-label ~ .mtu26-menu-toggle__bars::after { top: 5px; }

    html body.mtu26-editorial-view #mtu26-primary-navigation.mtu26-primary-navigation.is-open {
        left: auto;
        right: 0;
        width: min(100%, 360px);
        max-height: 70dvh;
        overflow-y: auto;
        padding: 8px 16px;
        border: 1px solid var(--ed-line);
        border-radius: 0 0 5px 5px;
        background: var(--ed-paper);
        box-shadow: 0 12px 24px rgb(20 42 40 / 9%);
    }

    html body.mtu26-editorial-view #mtu26-primary-navigation .menu-item > a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 10px 12px !important;
        border-radius: 3px;
    }

    .mtu26-editorial-view #mtu26-primary-navigation > ul > li + li {
        margin-top: 0;
        border-top: 1px solid var(--ed-line);
    }

    .mtu26-editorial-view #mtu26-primary-navigation :is(a:hover, a[aria-current="page"], .current-menu-item > a, .current_page_item > a) {
        background: var(--mtu-soft-blue);
    }
}
body.mtu26-editorial-view #colophon {
    --ed-footer-bg: #495f54;
    --ed-footer-text: #edf0eb;
    --ed-footer-line: rgb(255 255 255 / 22%);
    background: var(--ed-footer-bg);
    color: var(--ed-footer-text);
    border: 1px solid var(--ed-footer-bg);
}

.mtu-editorial-logo {
    display: block;
    width: clamp(145px, 14vw, 195px);
}

.mtu-editorial-logo img { display: block; width: 100%; height: auto; }

#mtu26-site-header .mtu-editorial-logo { width: clamp(165px, 19vw, 220px); }

body.mtu26-editorial-view #colophon .mtu-editorial-logo { margin-bottom: 14px; }
body.mtu26-editorial-view #colophon .mtu-editorial-logo img { filter: brightness(0) invert(1); }
body.mtu26-editorial-view #colophon :is(.mtu26-footer__brand p, .mtu26-footer__bottom) { color: var(--ed-footer-text); }
body.mtu26-editorial-view #colophon :is(.mtu26-footer__lead, .mtu26-footer__bottom, .mtu26-footer__social a) { border-color: var(--ed-footer-line); }
body.mtu26-editorial-view #colophon :is(a, h2, .mtu26-footer__course-link span) { color: #fff; }
body.mtu26-editorial-view #colophon a:hover { text-decoration: underline; }

body.mtu26-editorial-view #colophon a:focus-visible {
    outline-color: #fff;
    outline-offset: 4px;
}
body.mtu26-editorial-view #mtu26-site-header :is(a, button):focus-visible {
    outline-color: var(--ed-green);
    outline-offset: 4px;
}


@media (max-width: 950px) {
    .mtu-editorial__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    body.mtu26-editorial-view { --ed-frame: 100%; }
    .mtu-editorial__hero { display: flex; flex-direction: column; }
    .mtu-editorial__hero-inner { order: -1; min-height: 0; padding-block: 32px 22px; }
    .mtu-editorial__copy { max-width: 100%; }
    .mtu-editorial__media { position: static; aspect-ratio: 1.8; mask-image: none; }
    .mtu-editorial__section-heading { display: grid; }
}

@media (max-width: 600px) {
    .mtu-editorial .mtu-editorial__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Course platform: keep the plugin markup and apply the Editorial palette. */
body.mtu26-editorial-inner-view {
    --mtu-soft: #f1f3ee;
    --mtu-muted: #58675e;
}

body.mtu26-editorial-inner-view #primary.site-main {
    width: var(--ed-frame);
    margin-inline: auto;
    border-inline: 1px solid var(--ed-line);
    background: var(--ed-paper);
    color: var(--ed-body);
    font-family: "MT Editorial Inter", system-ui, sans-serif;
}

body.mtu26-editorial-inner-view #primary :is(.mtu-content-shell, .mtu-lifter-container, .mtu26-lifter-single) {
    width: var(--ed-content);
    padding-block: clamp(32px, 5vw, 72px);
}

.mtu26-editorial-inner-view #primary :is(.entry-title, h1, .llms-loop-title, .llms-access-plan-title, .entry-content h2, .entry-content h3) {
    font-family: var(--ed-serif);
    font-weight: 400;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.mtu26-editorial-inner-view #primary :is(h1, .entry-title) {
    color: var(--ed-ink);
    font-size: clamp(2rem, 4vw, 3.75rem);
    line-height: 1.1;
}

.mtu26-editorial-inner-view #primary .mtu26-lifter-entry > .entry-content {
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.75;
}

.mtu26-editorial-inner-view #primary :is(.llms-loop-item, .llms-meta-info, .llms-access-plan, .llms-instructor-info .llms-instructors .llms-author) {
    border-radius: 4px;
    box-shadow: none;
}

.mtu26-editorial-inner-view #primary .llms-loop-item:hover {
    border-color: var(--ed-green);
    transform: none;
}

.mtu26-editorial-inner-view #primary .llms-loop-title {
    font-size: clamp(1.125rem, 2vw, 1.45rem);
    line-height: 1.22;
}

.mtu26-editorial-inner-view #primary :is(.llms-loop-title, .woocommerce-loop-product__title),
.mtu26-editorial-inner-view #primary :is(.llms-loop-title, .woocommerce-loop-product__title) a {
    color: var(--ed-ink);
}

.mtu26-editorial-inner-view #primary .mtu26-price-badge-inner {
    background: var(--ed-green);
    box-shadow: none;
}

.mtu26-editorial-inner-view #primary :is(.llms-button-primary, .llms-button-action, .llms-button-secondary) {
    border-radius: 3px;
}

.mtu26-editorial-inner-view #primary :is(.llms-button-secondary, #llms_mark_incomplete) {
    background: var(--mtu-soft);
}

.mtu26-editorial-inner-view.single-lesson #primary .llms-lesson-button-wrapper:has(> .llms-incomplete-lesson-form) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .65rem;
}

.mtu26-editorial-inner-view.single-lesson #primary .llms-lesson-button-wrapper > .llms-incomplete-lesson-form {
    margin: 0;
}

.mtu26-editorial-inner-view.single-lesson #primary #llms_mark_incomplete {
    box-shadow: none;
}

.mtu26-editorial-inner-view.single-lesson #primary #llms_mark_incomplete:hover {
    background: var(--mtu-soft-blue);
    color: var(--ed-ink);
    transform: none;
}

.mtu26-editorial-inner-view #primary :is(a, button, input, select, textarea):focus-visible {
    outline: 2px solid var(--ed-green);
    outline-offset: 3px;
}

/* Give the link its own hover color and extend it across the preview. */
.mtu26-editorial-inner-view.single-lesson #primary .llms-course-navigation .llms-course-nav a.llms-lesson-link:is(:hover, :focus-visible),
.mtu26-editorial-inner-view.single-lesson #primary .llms-course-navigation .llms-lesson-preview:has(a.llms-lesson-link[href]):is(:hover, :focus-within),
.mtu26-editorial-inner-view.single-lesson #primary .llms-course-navigation .llms-lesson-preview:is(:hover, :focus-within) a.llms-lesson-link {
    background: var(--mtu-soft-blue);
}

.mtu26-editorial-inner-view.single-lesson #primary .llms-course-navigation .llms-lesson-preview:has(a.llms-lesson-link[href]):is(:hover, :focus-within)
    :is(.llms-lesson-preview-row, .llms-main, .llms-lesson-meta) {
    background: transparent;
}

.mtu26-editorial-inner-view .mtu26-course-outline .llms-widget-syllabus {
    border-radius: 4px;
}

.mtu26-editorial-inner-view .mtu26-course-outline .llms-course-outline > .llms-section > .section-header {
    background: var(--mtu-soft);
    border-bottom-color: var(--ed-line);
    color: var(--ed-ink);
    text-transform: none;
    letter-spacing: normal;
    font-size: .875rem;
    font-weight: 650;
}

.mtu26-editorial-inner-view .mtu26-course-outline ul.llms-lesson > li {
    border-color: var(--ed-line);
    font-size: .8125rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

.mtu26-editorial-inner-view .mtu26-course-outline .lesson-title {
    overflow-wrap: anywhere;
}

.mtu26-editorial-inner-view .mtu26-course-outline .llms-lesson.current-lesson > li {
    background: #e6eee7;
    box-shadow: inset 3px 0 0 var(--ed-green);
}

.mtu26-editorial-inner-view .mtu26-course-outline .llms-lesson.current-lesson .lesson-title,
.mtu26-editorial-inner-view .mtu26-course-outline .llms-lesson.current-lesson .lesson-title a {
    color: var(--ed-ink);
    font-weight: 700;
}

/* Classic WooCommerce checkout: leave payment fields and form behavior to the plugins. */
.mtu26-editorial-inner-view.woocommerce-checkout #primary .woocommerce-form-coupon-toggle .woocommerce-info {
    background: var(--mtu-soft);
    border-top-color: var(--ed-green);
    color: var(--ed-body);
}

.mtu26-editorial-inner-view.woocommerce-checkout #primary .woocommerce-form-coupon-toggle .woocommerce-info::before {
    color: var(--ed-green);
}

.mtu26-editorial-inner-view.woocommerce-checkout #primary :is(form.woocommerce-checkout, form.checkout_coupon) .form-row :is(input.input-text, textarea, select) {
    border-color: var(--mtu-field-border);
    border-radius: 4px;
}

.mtu26-editorial-inner-view.woocommerce-checkout #primary :is(form.woocommerce-checkout, form.checkout_coupon) .form-row :is(input.input-text, textarea, select):focus {
    border-color: var(--ed-green);
    outline: 2px solid var(--ed-green);
    outline-offset: 2px;
}

.mtu26-editorial-inner-view.woocommerce-checkout #customer_details > :is(.col-1, .col-2) {
    float: none;
    width: 100%;
}

.mtu26-editorial-inner-view.woocommerce-checkout #primary :is(#customer_details h3, #order_review_heading) {
    margin-block: 0 1rem;
}

.mtu26-editorial-inner-view.woocommerce-checkout #primary #customer_details + #order_review_heading {
    margin-top: 1.75rem;
}

.mtu26-editorial-inner-view.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table {
    border-color: var(--ed-line);
    border-radius: 4px;
    background: var(--ed-paper);
    overflow-wrap: anywhere;
}

.mtu26-editorial-inner-view.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot .order-total {
    background: var(--mtu-soft);
    color: var(--ed-ink);
}

.mtu26-editorial-inner-view.woocommerce-checkout #order_review #payment {
    border: 1px solid var(--ed-line);
    border-radius: 4px;
    background: var(--mtu-soft);
    color: var(--ed-body);
}

.mtu26-editorial-inner-view.woocommerce-checkout #order_review #payment .payment_box {
    background: var(--ed-paper);
    color: var(--ed-body);
}

.mtu26-editorial-inner-view.woocommerce-checkout #order_review #payment .payment_box::before {
    border-bottom-color: var(--ed-paper);
}

.mtu26-editorial-inner-view.woocommerce-checkout #order_review #payment #place_order {
    min-height: 44px;
    padding-inline: 1.25rem;
    border-radius: 3px;
}

@media (min-width: 1200px) {
    .mtu26-editorial-inner-view.woocommerce-checkout form.woocommerce-checkout:has(> #customer_details + #order_review_heading + #order_review) {
        display: flow-root;
        --ed-checkout-offset: calc(40% + 2.5rem);
    }

    .mtu26-editorial-inner-view.woocommerce-checkout form.woocommerce-checkout > #customer_details:has(+ #order_review_heading + #order_review) {
        float: left;
        width: 40%;
    }

    .mtu26-editorial-inner-view.woocommerce-checkout #primary form.woocommerce-checkout > #customer_details + #order_review_heading:has(+ #order_review),
    .mtu26-editorial-inner-view.woocommerce-checkout form.woocommerce-checkout > #customer_details + #order_review_heading + #order_review {
        margin-inline-start: var(--ed-checkout-offset);
        margin-top: 0;
    }
}
