/* Native heading defaults stay below Kadence UID selectors; explicit block controls win. */
/* Routine section spacing and colours are stored in native Kadence controls.
   CSS supplies only shared typography and the design's overlapping compositions. */
.utu-page { font-family: Sora,sans-serif; color:var(--utu-ink); }
.utu-section-pattern .utu-section-fact-label { font-weight:700; }
.utu-section-pattern .utu-section-fact-value { font-size:24px; line-height:1.3; overflow-wrap:anywhere; }
.utu-section-pattern .utu-section-stat-value { font-size:clamp(36px,5vw,64px); font-weight:800; line-height:1.1; overflow-wrap:anywhere; }
:where(.utu-page) :is(h1,h2,h3,p,figure) { margin:0; }
:where(.utu-page) h1 { font:800 clamp(36px,3.71vw,64px)/1.04 Sora,sans-serif; color:inherit; }
:where(.utu-page) h2 { font:700 clamp(28px,2.78vw,48px)/1.09 Sora,sans-serif; color:inherit; margin-bottom:24px; }
:where(.utu-page) h3 { font:700 clamp(24px,1.86vw,32px)/1.25 Sora,sans-serif; color:inherit; margin-bottom:20px; }
:where(.utu-page) p,:where(.utu-page) li { font-size:18px; line-height:1.5; font-weight:600; }
:where(.utu-page) p + p { margin-top:24px; }
:where(.utu-page) p + :is(h2,h3):not(:where(.wp-block-kadence-advancedheading,.kadence-advancedheading-text)),
:where(:where(.utu-page) p + :is(h2,h3)):is(.wp-block-kadence-advancedheading,.kadence-advancedheading-text),
:where(.utu-page) ul + :is(h2,h3) { margin-top:40px; }
:where(.utu-page) .utu-eyebrow { font-size:16px; line-height:24px; margin-bottom:12px; }
.utu-page .kb-row-layout-wrap,.utu-page .wp-block-kadence-column { min-width:0; }
.utu-page .kt-inside-inner-col > :last-child { margin-bottom:0; }
.utu-page .wp-block-kadence-advancedheading:not(:where(.wp-block-kadence-advancedheading,.kadence-advancedheading-text)),
:where(.utu-page .wp-block-kadence-advancedheading):is(.wp-block-kadence-advancedheading,.kadence-advancedheading-text):is(.wp-block-kadence-advancedheading,.kadence-advancedheading-text) { overflow-wrap:break-word; }
.utu-page .wp-block-image img { display:block; }
.utu-page .utu-button .wp-block-button__link { border-radius:0; padding:8px 32px; font:600 16px/26px Sora,sans-serif; background:var(--utu-ink); color:white; text-decoration:none; }
.utu-page .utu-button-accent .wp-block-button__link { background:var(--utu-lime); color:var(--utu-ink); }
.utu-page .utu-button-outline .wp-block-button__link { border:2px solid var(--utu-ink); background:transparent; color:var(--utu-ink); padding:6px 30px; }
.utu-page .utu-button .wp-block-button__link:is(:hover,:focus-visible) { background:var(--utu-blue); color:white; }
.utu-page a:focus-visible { outline:3px solid var(--utu-blue); outline-offset:4px; }
.utu-page-actions { --utu-action-row-gap:16px; --utu-action-column-gap:24px; }
.utu-page-actions > .wp-block-group__inner-container,
.editor-styles-wrapper .utu-page-actions > .block-editor-inner-blocks > .block-editor-block-list__layout,
.editor-styles-wrapper .utu-page-actions:has(> .wp-block-buttons) { display:flex; gap:var(--utu-action-row-gap) var(--utu-action-column-gap); flex-wrap:wrap; align-items:flex-start; }
:is(.entry-content,.editor-styles-wrapper) .utu-page-actions .wp-block-buttons { margin:0; align-self:flex-start; max-width:100%; }
.utu-page-actions .wp-block-button__link { box-sizing:border-box; white-space:normal; }
.entry-content .utu-page .utu-page-hero,.editor-styles-wrapper .utu-page .utu-page-hero { max-width:1728px; margin:53px auto 0; padding:0 8.39%; }
.utu-page-hero-photo { margin:0; }
.utu-page-hero-photo img { width:100%; aspect-ratio:1438/657; object-fit:cover; }
.entry-content .utu-page .utu-page-hero-panel,.editor-styles-wrapper .utu-page .utu-page-hero-panel { position:relative; width:min(898px,70%); margin:-192px 0 0 -8.07%; padding:64px clamp(24px,5.15vw,89px); box-sizing:border-box; background:var(--utu-blue); color:white; }
.utu-page .utu-page-hero-panel h1:not(:where(.wp-block-kadence-advancedheading,.kadence-advancedheading-text)),
:where(.utu-page .utu-page-hero-panel h1):is(.wp-block-kadence-advancedheading,.kadence-advancedheading-text),
.utu-page .utu-page-hero-panel p { color:inherit; }
.utu-page-hero-panel h1 { margin:0 0 24px; }
.utu-page-hero-panel p { margin:0 0 24px; }
.utu-page-hero-panel p:last-child { margin-bottom:0; }
.utu-page-hero-panel .utu-eyebrow { font-size:22px; line-height:30px; font-weight:600; margin-bottom:12px; }
.entry-content .utu-page .utu-page-hero-pale .utu-page-hero-panel,.editor-styles-wrapper .utu-page .utu-page-hero-pale .utu-page-hero-panel { background:var(--utu-pale); color:var(--utu-ink); }
.entry-content .utu-page .utu-page-hero-lime .utu-page-hero-panel,.editor-styles-wrapper .utu-page .utu-page-hero-lime .utu-page-hero-panel { background:var(--utu-lime); color:var(--utu-ink); }
.utu-page-promotion { margin:100px auto; max-width:1630px; padding:0 24px; }
.utu-page-promotion > .wp-block-group__inner-container { display:grid; grid-template-columns:46% 54%; align-items:center; }
.utu-page-promotion-photo { width:calc(100% + 60px); margin:0; }
.utu-page-promotion-photo img { width:100%; aspect-ratio:1.17; object-fit:cover; }
.utu-page-promotion-panel { position:relative; padding:64px clamp(24px,4.3vw,74px); background:var(--utu-blue); color:white; }
.utu-page .utu-page-promotion-panel :is(h2,h3):not(:where(.wp-block-kadence-advancedheading,.kadence-advancedheading-text)),
:where(.utu-page .utu-page-promotion-panel :is(h2,h3)):is(.wp-block-kadence-advancedheading,.kadence-advancedheading-text):is(.wp-block-kadence-advancedheading,.kadence-advancedheading-text) { color:white; }
.utu-page-promotion-panel h3 { font-size:22px; line-height:30px; margin-bottom:24px; }
.utu-page-promotion-panel p { margin-bottom:32px; }

.utu-module-tile h3 { color:var(--utu-blue); font-size:clamp(26px,2.78vw,48px); line-height:1.08; overflow-wrap:anywhere; }
.utu-module-tile p { margin-bottom:24px; }


.utu-editorial-card { height:100%; padding:50px 40px 70px; min-height:370px; box-sizing:border-box; }
.utu-editorial-card h3 { color:white; margin:0 0 16px; }
.utu-editorial-card .utu-eyebrow { color:var(--utu-pale); font-size:12px; line-height:18px; }
.utu-editorial-card p { font-size:16px; line-height:24px; }
.utu-card-action { position:relative; z-index:1; text-align:right; margin-top:40px; }
.utu-card-action a { color:var(--utu-lime); }
.utu-page .utu-card h2:not(:where(.wp-block-kadence-advancedheading,.kadence-advancedheading-text)),
:where(.utu-page .utu-card h2):is(.wp-block-kadence-advancedheading,.kadence-advancedheading-text):is(.wp-block-kadence-advancedheading,.kadence-advancedheading-text) { font-size:32px; line-height:40px; }
.utu-page .utu-card-facts { display:none; }



.utu-page-testimonial { position:relative; max-width:1428px; margin:80px auto 100px; padding-top:43px; }
.utu-page-quote-mark { position:absolute; left:24px; top:0; z-index:1; }
.utu-page-quote-photo { margin-left:28px; box-shadow:-28px 30px 0 var(--utu-blue); }
.utu-page-quote-photo img { width:100%; aspect-ratio:411/417; object-fit:cover; }
.utu-page-testimonial p { font-size:22px; line-height:30px; font-weight:700; }
.utu-page-testimonial .utu-quote-author { font-size:32px; line-height:40px; }
.wp-block-quote.utu-quote-without-photo { border:0; margin:0; padding:0; }
.utu-quote-without-photo > cite { color:var(--utu-ink); font:700 clamp(24px,3vw,32px)/1.25 Sora,sans-serif; margin-top:0.6em; }
.utu-emba-banner h2 { color:var(--utu-lime); }
.utu-banner-module { background:var(--utu-lime); color:var(--utu-ink); padding:40px; }
.utu-banner-module :is(.wp-block-heading,.wp-block-kadence-advancedheading):not(:where(.wp-block-kadence-advancedheading,.kadence-advancedheading-text)),
:where(.utu-banner-module :is(.wp-block-heading,.wp-block-kadence-advancedheading)):is(.wp-block-kadence-advancedheading,.kadence-advancedheading-text):is(.wp-block-kadence-advancedheading,.kadence-advancedheading-text) { color:var(--utu-blue); }
.utu-company-prompt { text-align:center; }
.utu-company-prompt h2 { color:var(--utu-blue); }
.utu-company-prompt .wp-block-buttons { justify-content:center; }
.utu-next-step { position:relative; background:url(figma/home-science-arrow.svg) right center/auto 100% no-repeat; }
.utu-next-step .kt-row-column-wrap { position:relative; }
.utu-next-step h2:not(:where(.wp-block-kadence-advancedheading,.kadence-advancedheading-text)),
:where(.utu-next-step h2):is(.wp-block-kadence-advancedheading,.kadence-advancedheading-text),
.utu-next-step p { max-width:720px; }
.utu-next-step .utu-page-actions { margin-top:24px; }
.utu-page.utu-module-page { background:var(--utu-ink); color:white; padding-top:1px; }
.utu-page.utu-module-page :is(h2,h3):not(:where(.wp-block-kadence-advancedheading,.kadence-advancedheading-text)),
:where(.utu-page.utu-module-page :is(h2,h3)):is(.wp-block-kadence-advancedheading,.kadence-advancedheading-text):is(.wp-block-kadence-advancedheading,.kadence-advancedheading-text) { color:inherit; }
.utu-module-page :where(.utu-related-programmes,.utu-module-contact) .kt-inside-inner-col > h2:first-child {
    max-width:720px;
    margin-inline:auto;
}
.utu-module-page .utu-module-contact .kt-inside-inner-col > h2:first-child { text-align:center; }
.utu-module-page .utu-module-content :is(p,li) { line-height:1.45; }
.utu-module-page .utu-module-content li + li { margin-top:24px; }
.utu-module-page .utu-module-content h2:not(:first-child) { margin-top:clamp(40px,5vw,88px); }
.utu-module-page .utu-module-content h3 { margin-top:clamp(24px,3vw,48px); }
/* Keep empty starter fields editable and omit their placeholder headings from the public page. */
.entry-content .utu-module-content :is(h2:has(+ p:empty:last-child, + p:empty + h2),p:empty) { display:none; }
.utu-page.utu-module-page .utu-module-subheading:not(:where(.wp-block-kadence-advancedheading,.kadence-advancedheading-text)),
:where(.utu-page.utu-module-page .utu-module-subheading):is(.wp-block-kadence-advancedheading,.kadence-advancedheading-text):is(.wp-block-kadence-advancedheading,.kadence-advancedheading-text) { font-size:32px; line-height:40px; }
.utu-page.utu-module-page .utu-module-goals:not(:where(.wp-block-kadence-advancedheading,.kadence-advancedheading-text)),
:where(.utu-page.utu-module-page .utu-module-goals):is(.wp-block-kadence-advancedheading,.kadence-advancedheading-text):is(.wp-block-kadence-advancedheading,.kadence-advancedheading-text) { font-size:18px; line-height:26px; }
.utu-page.utu-module-page .utu-module-capstone:not(:where(.wp-block-kadence-advancedheading,.kadence-advancedheading-text)),
:where(.utu-page.utu-module-page .utu-module-capstone):is(.wp-block-kadence-advancedheading,.kadence-advancedheading-text):is(.wp-block-kadence-advancedheading,.kadence-advancedheading-text) { color:var(--utu-pale); }
.utu-module-page .utu-module-brochure { max-width:960px; margin:0 auto; }

:where(.utu-module-facts) .kt-inside-inner-col { display:flex; align-items:center; gap:24px; }
.utu-module-facts .wp-block-image { flex:0 0 50px; }
.utu-module-facts p { margin:0; }
.utu-page-why .utu-page-hero-photo img,.utu-page-global .utu-page-hero-photo img { transform:scaleX(-1); }
.utu-module-page .utu-page-hero { margin-top:53px; }
.utu-module-page .utu-page-hero-panel { color:var(--utu-ink); }
.utu-module-page .utu-module-facts p { font-size:18px; line-height:26px; }
.utu-module-facts .wp-block-image { margin:0; }
.utu-module-facts .wp-block-image img { width:50px; height:50px; }
.utu-module-page .utu-person { color:var(--utu-ink); }
.utu-module-page .utu-page-hero-panel h1 { hyphens:auto; }
.utu-module-navigation { padding-block:32px 0; min-width:0; }
:is(.entry-content,.editor-styles-wrapper) .utu-module-navigation .wp-block-buttons { margin:0; }
.utu-module-navigation .wp-block-button { max-width:100%; }
.utu-page .utu-module-navigation .wp-block-button__link {
    display:block;
    border:0;
    padding:0;
    background:none;
    color:white;
    font:700 22px/30px Sora,sans-serif;
    text-align:start;
    white-space:normal;
    overflow-wrap:break-word;
}
.utu-module-navigation .utu-module-next { width:100%; }
.utu-module-navigation .utu-module-next .wp-block-button__link {
    min-height:116.985px;
    padding-inline-end:88px;
    padding-bottom:12px;
    background:url(figma/module-next-arrow.svg) right top / auto no-repeat;
}
.utu-module-next strong {
    display:block;
    margin-top:16px;
    color:var(--utu-pale);
    font-size:clamp(22px,1.85vw,32px);
    line-height:1.25;
}
.utu-module-next a:is(:hover,:focus-visible) strong { text-decoration:underline; }
.utu-page .utu-module-navigation .utu-button-module-index .wp-block-button__link {
    font:600 16px/26px Sora,sans-serif;
    color:var(--utu-pale);
    text-decoration:underline;
    text-underline-offset:0.2em;
}
.utu-page .utu-module-navigation .utu-button-module-index .wp-block-button__link:is(:hover,:focus-visible) {
    background:none;
    color:white;
}
@media(min-width:1025px) {
    .utu-module-page .utu-page-hero:has(.utu-module-navigation) {
        --utu-module-panel-width:min(898px,70%);
        --utu-module-panel-offset:8.07%;
    }
    .utu-module-page .utu-page-hero:has(.utu-module-navigation) > .wp-block-group__inner-container,
    .editor-styles-wrapper .utu-module-page .utu-page-hero:has(.utu-module-navigation) > .block-editor-inner-blocks > .block-editor-block-list__layout,
    .editor-styles-wrapper .utu-module-page .utu-page-hero:has(> .utu-module-navigation) {
        display:grid;
        grid-template-columns:minmax(0,1fr);
    }
    .utu-module-page .utu-page-hero:has(.utu-module-navigation) :is(.utu-page-hero-panel,.utu-module-navigation) {
        grid-area:2 / 1;
        align-self:start;
    }
    .utu-module-page .utu-module-navigation {
        margin-inline-start:calc(var(--utu-module-panel-width) - var(--utu-module-panel-offset) + clamp(24px,3.3vw,57px));
        padding-block-start:40px;
    }
}
.utu-module-page a:focus-visible { outline-color:var(--utu-lime); }
.utu-person h3 { font:700 clamp(22px,1.85vw,32px)/1.25 Sora,sans-serif; margin:12px 0 20px; color:var(--utu-ink); }
.utu-person p { font:600 18px/28px Sora,sans-serif; margin:0 0 12px; color:var(--utu-ink); }
.utu-person .utu-person-detail { color:var(--utu-blue); overflow-wrap:anywhere; }
.utu-person .utu-person-photo { box-shadow:-18px 24px 0 var(--utu-blue); margin:0 0 24px 18px; }
.utu-person-photo img { width:100%; aspect-ratio:270.567/343.64; object-fit:cover; }
.utu-finland { max-width:221px; margin:auto; }
/* The section heading uses a reading measure above the wider card grid. */
:where(.utu-page-listing :is([id="johtamiskoulutukset"],[id="taydennyskoulutukset"]),.utu-page-emba .utu-related-programmes)
.kt-inside-inner-col > .wp-block-kadence-advancedheading:first-child,
:where(.utu-programme-body .utu-page) .kt-inside-inner-col > .wp-block-kadence-advancedheading:first-child:has(+ .wp-block-kadence-query) {
    max-width:720px;
}
/* An unanchored English starter row with only an empty paragraph stays in the editor. */
.entry-content:lang(en) :where(.utu-page-listing,.utu-programme-body .utu-page)
.wp-block-kadence-rowlayout:not([id]):has(> .kt-row-column-wrap > .wp-block-kadence-column:only-child > .kt-inside-inner-col > h2:first-child + p:empty:last-child) {
    display:none;
}
:where(.utu-expertise-title) .wp-block-kadence-advancedheading {
    color:var(--utu-blue);
    font-size:clamp(36px,4.17vw,72px);
    font-weight:800;
    line-height:1;
}
:where(.utu-expertise-title) + .wp-block-kadence-rowlayout { margin-top:clamp(16px,2.32vw,40px); }
.utu-page :is(section[id],.kb-row-layout-wrap[id]) { scroll-margin-top:120px; }
/* Recurring contacts retain usable native slider dimensions on existing pages. */

@media(max-width:1024px) {
 .entry-content .utu-page .utu-page-hero-panel,.editor-styles-wrapper .utu-page .utu-page-hero-panel { width:85%; margin-top:-110px; padding:40px 6%; }
 .utu-page-promotion { margin:72px auto; }
 .utu-page-promotion-panel { padding:40px 32px; }
 .utu-page-testimonial { margin:64px 24px 80px; }

 .utu-person-intro { font-size:16px; }
}
@media(max-width:767px) {
 :where(.utu-page-listing :is([id="johtamiskoulutukset"],[id="taydennyskoulutukset"]))
 .kt-inside-inner-col > .wp-block-kadence-advancedheading:first-child { font-size:24px; line-height:30px; }
 :where(.utu-page) p,:where(.utu-page) li { font-size:16px; line-height:24px; }
 .entry-content .utu-page .utu-page-hero,.editor-styles-wrapper .utu-page .utu-page-hero { margin-top:24px; padding:0 24px; }
 .utu-page-hero-photo img { aspect-ratio:393/335; }
 .entry-content .utu-page .utu-page-hero-panel,.editor-styles-wrapper .utu-page .utu-page-hero-panel { width:calc(100% + 48px); margin:-32px -24px 0; padding:32px 24px; }
 .utu-page-hero-panel .utu-eyebrow { font-size:16px; line-height:24px; }
 .utu-page-actions { --utu-action-row-gap:12px; }
 .utu-page-actions > .wp-block-group__inner-container,
 .editor-styles-wrapper .utu-page-actions > .block-editor-inner-blocks > .block-editor-block-list__layout,
 .editor-styles-wrapper .utu-page-actions:has(> .wp-block-buttons) { flex-direction:column; }
 .utu-page-actions .wp-block-buttons,.utu-page-actions .wp-block-button { width:100%; }
 .utu-page-actions .wp-block-button__link { display:block; }
 .utu-page-promotion { padding:0; margin:56px auto; }
 .utu-page-promotion > .wp-block-group__inner-container { display:flex; flex-direction:column; }
 .utu-page-promotion-photo { width:100%; }
 .utu-page-promotion-photo img { aspect-ratio:393/335; }
 .utu-page-promotion-panel { width:100%; padding:32px 24px; }
 .utu-page-testimonial { margin:56px 0 72px; }
 .utu-page-testimonial .utu-page-quote-photo { max-width:300px; margin-bottom:48px; }
 .utu-page-testimonial p { font-size:20px; line-height:28px; }
 .utu-page-testimonial .utu-quote-author { font-size:26px; line-height:36px; }
 .utu-editorial-card { padding:32px 24px 70px; min-height:340px; }
 .utu-banner-module { padding:28px 24px; }
 .utu-next-step { background-position:right bottom; background-size:auto 200px; }

 .utu-person .utu-person-photo { max-width:220px; }
 .utu-person p { font-size:16px; line-height:24px; }

 .utu-home .utu-home-contacts .wp-block-kadence-slider { max-width:300px; }
}
