/*
Theme Name: Endomines
Template: blocksy
Version: 0.1.0
Text Domain: endomines
*/

@font-face {
    font-family: "Nata Sans";
    src: url("fonts/NataSans.ttf") format("truetype");
    font-weight: 100 900;
    font-display: swap;
}

@font-face { font-family: "Manrope"; src: url("fonts/Manrope.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }

/* Component exceptions: video layering, editorial shapes and responsive
 * composition have no equivalent native controls in the installed core blocks.
 * All ordinary spacing, color and text controls remain block-owned. */
/* Blocksy provides no separate maximum-width control for footer rows.
 * Keep its row/column controls; narrow only the two editorial content rows. */
/* Blocksy has no source-frame widths for top-level menu labels. The six
 * Finnish Figma frames are proportional columns; English and changed item counts use native flex. */
@media (min-width: 1000px) {
    #header [data-device="desktop"] [data-row="top"] > .ct-container { width: calc(100% - 90px); max-width: 1350px; }
    #header [data-device="desktop"] .ct-header-search { column-gap: 11.7px; }
    #header-menu-2 .ct-icon-container.ct-left { margin-inline-end: 9.896px; }
    #header [data-device="desktop"] [data-row="middle"] > .ct-container { grid-template-columns: auto minmax(0, 1fr); }
    /* Adjacent top-level links own the whole row, including the space
     * between captions, so moving sideways never leaves the hover region. */
    #header-menu-1 > ul { column-gap: 0; }
    #header-menu-1 > ul > li { flex: 1 0 auto; }
    #header-menu-1 > ul > li > a { flex: 1; justify-content: center; }
}
@media (min-width: 1280px) {
    html:not([lang^="en"]) #header-menu-1 > ul:has(> li:nth-child(6):last-child) { flex: 0 0 calc(100% + 26.38px); padding-left: 46.38px; display: grid; grid-template-columns: 101fr 153fr 116fr 134fr 116fr 123fr; column-gap: 0; }
    html:not([lang^="en"]) #header-menu-1 > ul:has(> li:nth-child(6):last-child) > li > a { justify-content: center; }
    /* The known six-frame Figma row extends past the native nav box. Keep its
     * captions visible before Blocksy lazily initializes responsive menus. */
    html:not([lang^="en"]) #header-menu-1[data-responsive="no"]:has(> ul > li:nth-child(6):last-child) { overflow: visible; }
}
/* Native Blocksy language links; source globe and separator have no inline
 * switcher controls. Text, colors, spacing and visibility remain native. */
#header .ct-language-switcher[data-type="inline"] { display: flex; align-items: center; }
#header .ct-language-switcher[data-type="inline"] .ct-language { flex-wrap: nowrap; white-space: nowrap; }
#header .ct-language-switcher[data-type="inline"] .ct-language > li { display: inline-flex; align-items: center; }
#header .ct-language-switcher[data-type="inline"]::before { content: ""; flex: 0 0 24px; width: 24px; height: 24px; margin-inline-end: 10px; background: url('/wp-content/uploads/2026/10/language-globe.svg') center / contain no-repeat; }
#header .ct-language-switcher[data-type="inline"] .ct-language > li + li::before { content: "/"; margin-inline-end: 8px; }

.ct-footer [data-row="top"] > .ct-container { max-width: 1124px; }
.ct-footer [data-row="middle"] > .ct-container { max-width: 1144px; }
.ct-footer [data-row="bottom"] > .ct-container { max-width: 1274px; }
/* The legal links retain Figma's text frames (198/133/85) and native gap.
 * Additional items fall back to Blocksy's ordinary wrapping menu. */
@media (min-width: 1000px) {
    .ct-footer [data-id="menu"] ul:has(> li:nth-child(3):last-child) { display: grid; grid-template-columns: 198px 133px 85px; column-gap: var(--menu-items-spacing, 20px); margin-inline: 0; width: auto; justify-content: start; }
    .ct-footer [data-id="menu"] ul:has(> li:nth-child(3):last-child) > li > a { padding-inline: 0; justify-content: flex-start; }
}

/* Native Content Blocks own every menu panel. These exceptions cover the
 * decorative CTA arrow and the mobile stacking absent from core Columns at
 * Blocksy's 1000px header breakpoint. */
/* Blocksy's full-content preset reserves 30px on either side. The source
 * panels span the viewport; their own native Group padding owns the inset. */
@media (min-width: 1000px) {
    #header .ct-mega-menu-content-full { --mega-menu-width: 100vw; }
    #header .ct-toggle-dropdown-desktop { display: none; }
    /* Open the utility panel directly below its own row, covering the main
     * navigation visibly instead of intercepting it with a transparent bridge. */
    #header-menu-2 > .menu > .ct-mega-menu-full-width > .sub-menu { margin-top: 0; }
    #header-menu-2 > .menu > .ct-mega-menu-full-width > .sub-menu::before { pointer-events: none; }
    #header:has([data-device="desktop"] .ct-mega-menu-full-width.ct-active) [data-device="desktop"] [data-row="middle"] { background: var(--theme-palette-color-6); }
    #header:has([data-device="desktop"] .ct-mega-menu-full-width.ct-active) #header-menu-1 > ul > li > a { color: var(--theme-palette-color-3); }
    #header:has([data-device="desktop"] .ct-mega-menu-full-width.ct-active) #header-menu-1 > ul > li > a:hover { color: var(--theme-palette-color-1); }
    #header:has([data-device="desktop"] .ct-mega-menu-full-width.ct-active) .site-logo-container > .default-logo { display: none; }
    #header:has([data-device="desktop"] .ct-mega-menu-full-width.ct-active) .site-logo-container > .endomines-menu-logo { display: block; }
}
.site-logo-container > .endomines-menu-logo { display: none; }
.endomines-mega-menu :is(p, a) { overflow-wrap: normal; word-break: normal; white-space: pre-wrap; }
.endomines-menu-action .wp-block-button__link { position: relative; }
.endomines-menu-arrow { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 14px; height: auto; }
.editor-styles-wrapper .endomines-menu-divider-line:not(.is-selected):not(.has-child-selected) > .block-list-appender { display: none; }
@media (max-width: 999.98px) {
    .endomines-mega-menu { --endomines-menu-height: auto; }
    /* Blocksy's mobile anchor typography and submenu dots also reach the
     * embedded native blocks. Keep each paragraph's editable text role. */
    .mobile-menu .entry-content .endomines-mega-menu p > a { font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: inherit; }
    .mobile-menu[data-submenu-dots] .entry-content .endomines-mega-menu a:not(:empty)::before { content: none; }
    .endomines-menu-columns:not(.is-not-stacked-on-mobile) { flex-wrap: wrap !important; }
    /* Core Columns uses inline desktop bases. Match core's own stacked
     * override at the header breakpoint and honor its native opt-out. */
    .endomines-menu-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 100% !important; }
    .mobile-menu .menu-item:has(> .entry-content > .endomines-mega-menu) > a.ct-menu-link:empty { display: none; }
    /* In the tablet/mobile panel the parent link already names the section:
     * the mega menu's large title is omitted and its desktop side gutters
     * (inline padding aligned to the desktop container) are dropped. */
    .mobile-menu .endomines-mega-menu > :is(.endomines-text--menu-title, .endomines-text--menu-title-manrope) { display: none; }
    .mobile-menu .endomines-mega-menu { min-height: 0 !important; padding: 16px 0 24px !important; }
    /* The desktop composition offsets the mega menu's description and link
     * list by 1px/5px (inline margins); in the panel they align with the
     * parent link. Nested link groups keep their own indent. */
    .mobile-menu .endomines-mega-menu > *, .mobile-menu .endomines-mega-menu .endomines-menu-columns .wp-block-group[style*="margin-left:5px"] { margin-left: 0 !important; }
    /* Main and utility menus read as one list in the panel: no extra gap
     * between the last main item and Yhteystiedot (Blocksy element margin). */
    #offcanvas .ct-panel-content-inner > [data-id="mobile-menu"] { --margin: 0; }
}

.endomines-hero { isolation: isolate; }
.wp-block-cover[style*="--endomines-video-focal-point"] .wp-block-cover__video-background { object-position: var(--endomines-video-focal-point) !important; }
.wp-block-cover[style*="--endomines-video-scale"] .wp-block-cover__video-background { transform: scale(var(--endomines-video-scale, 1)); transform-origin: var(--endomines-video-focal-point, 50% 50%); }
.endomines-source-overlay > .wp-block-cover__background:not([style*="background"]):not([class*="-background-color"]):not([class*="-gradient-background"]) {
    background-color: transparent;
    background-image: url('assets/hero-overlay.svg?v=20261023-fill');
    background-size: 100% 100%;
}
.endomines-alive.endomines-source-overlay > .wp-block-cover__background:not([style*="background"]):not([class*="-background-color"]):not([class*="-gradient-background"]) { background-image: url('assets/alive-overlay.svg?v=20261023-fill'); }
.endomines-quote { position: relative; }
.endomines-quote::before {
    content: "“";
    position: absolute;
    inset-inline-start: -82px;
    inset-block-start: -.4333333333em;
    font: inherit;
    font-size: 150px;
    line-height: 1;
    color: var(--wp--preset--color--coral);
}
/* Cover's source position has a shrink-to-fit inner frame. Bind the button
 * frame to its native Group content-width control, including editor preview. */
.endomines-button-frame { width: var(--endomines-button-frame-width, auto); max-width: 100%; box-sizing: content-box; }
/* The native negative margin intentionally overlaps the source orb.
 * Keep its painted lower edge above stacked cards too. */
.endomines-feature-grid { container-type:inline-size; }
.endomines-feature-grid .endomines-gold-circle { position:relative; z-index:1; }
.endomines-feature-main { border-top-left-radius:var(--endomines-feature-left-radius,0px); }
@media (min-width:740px) and (max-width:1100px) {
 .endomines-feature-grid:has(> .endomines-feature-columns.is-not-stacked-on-mobile) { --endomines-feature-orb-width:calc(100cqw * 0.109538003 + 16px); --endomines-feature-orb-height:calc(100cqw * 0.10804769 + 16px); --endomines-feature-orb-top:calc(100cqw * 0.06706408 - 8px); --endomines-feature-orb-bottom:calc(100cqw * -0.026825633 - 8px); --endomines-feature-button-default:176px; --endomines-feature-padding-top:20px; --endomines-feature-padding-bottom:24px; --endomines-feature-padding-left:20px; --endomines-feature-padding-right:20px; --endomines-feature-title-gap:16px; --endomines-feature-radius:clamp(100px,13cqw,160px); }
 .endomines-feature-columns.is-not-stacked-on-mobile { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .endomines-feature-grid .endomines-feature-top { --endomines-feature-radius:0px; }
 .endomines-feature-columns.is-not-stacked-on-mobile .endomines-feature-main { --endomines-feature-height:0px; height:100%; }
 .endomines-feature-columns.is-not-stacked-on-mobile :is(.endomines-feature-top,.endomines-feature-bottom) { --endomines-feature-height:calc(100cqw * .315); }
}
@media (max-width:739.98px) {
 .endomines-feature-grid { --endomines-feature-button-default:176px; --endomines-feature-padding-top:24px; --endomines-feature-padding-bottom:24px; --endomines-feature-padding-left:24px; --endomines-feature-padding-right:24px; --endomines-feature-title-gap:16px; }
 .endomines-feature-columns.is-not-stacked-on-mobile { display:grid; grid-template-columns:minmax(0,1fr); }
 .endomines-feature-grid .endomines-feature-main { --endomines-feature-height:calc(100cqw * 1.31); --endomines-feature-radius:100px; --endomines-feature-left-radius:100px; }
 .endomines-feature-grid :is(.endomines-feature-top,.endomines-feature-bottom) { --endomines-feature-height:calc(100cqw * .632); }
 .endomines-feature-grid .endomines-feature-top { --endomines-feature-radius:0px; }
}
.endomines-feature-button .wp-block-button__link { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 16px; }
.endomines-action-arrow { position: static; flex: 0 0 auto; padding: 0; box-sizing: content-box; transform: none; }
.endomines-number small { font-size: .3em; font-weight: 400; letter-spacing: .01em; }
.endomines-section-number { white-space: nowrap; }
/* RichText adds inline pre-wrap; retain the source number/unit as one line
 * in the editor at the same width as the public native paragraph. */
.editor-styles-wrapper .endomines-section-number { white-space: nowrap !important; }
/* Source rectangle 522:4059 uses multiply; color and stops stay native Cover settings. */
.endomines-feature-bottom > .wp-block-cover__background { mix-blend-mode: multiply; }
/* Nested panel defaults use the full editable row as their layout frame. */
.endomines-dual-panels { container-type: inline-size; }
/* The source carousel keeps its content in a native Query/Post Template.
 * These rules own horizontal overflow and the original arrow placement.
 * Match the native Post Template explicitly: core uses four classes for its
 * mobile one-column rule, which must not replace carousel track sizing. */
.endomines-articles { position: relative; container-type: inline-size; --endomines-visible-columns: min(var(--endomines-carousel-columns, 3), var(--endomines-available-cards, 3)); }
.endomines-articles[data-endomines-columns] .endomines-query .endomines-article-card.wp-block-post-template { grid-template-columns: repeat(var(--endomines-visible-columns), calc((100% - (var(--endomines-visible-columns) - 1) * var(--endomines-carousel-gap, 33px)) / var(--endomines-visible-columns))); grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--endomines-visible-columns) - 1) * var(--endomines-carousel-gap, 33px)) / var(--endomines-visible-columns)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
/* Count real Query results, excluding temporary animation clones. The native
 * column setting remains the upper limit; a short result fills its own row
 * without changing card widths while an animation clone is inserted. */
.endomines-articles:has(.endomines-article-card > li:nth-child(1 of :not([data-endomines-clone])):nth-last-child(1 of :not([data-endomines-clone]))) { --endomines-available-cards: 1; }
.endomines-articles:has(.endomines-article-card > li:nth-child(2 of :not([data-endomines-clone])):nth-last-child(1 of :not([data-endomines-clone]))) { --endomines-available-cards: 2; }
.endomines-article-card::-webkit-scrollbar { display: none; }
.endomines-article-card > li { scroll-snap-align: start; min-width: 0; }
.endomines-article-card .wp-block-post-title { text-wrap: wrap; white-space: pre-wrap; }
.endomines-article-controls, .editor-styles-wrapper .endomines-articles .endomines-article-controls { position: absolute; width: auto; top: calc(var(--endomines-carousel-image-height, 248px) - 9px); left: -74px; right: -59px; align-items: flex-start; pointer-events: none; }
.endomines-article-controls > .wp-block-button { pointer-events: auto; }
.endomines-article-controls .wp-block-button__link, .editor-styles-wrapper .endomines-article-controls .wp-block-button__link { display: flex; align-items: center; justify-content: center; }
.endomines-article-controls img { display: block; }
.endomines-carousel-next { transform: translateY(2px); }
.endomines-index-button .wp-block-button__link, .editor-styles-wrapper .endomines-index-button .wp-block-button__link { display: flex; align-items: center; justify-content: space-between; gap: 0; }
.endomines-index-button img { display: block; }
@media (max-width: 1100px) {
    .endomines-articles:not([data-endomines-columns="1"]) { --endomines-visible-columns: min(2, var(--endomines-carousel-columns, 3), var(--endomines-available-cards, 3)); }
}
/* Drop source negative margins before the page gutters become too small. */
@media (max-width: 1399.98px) {
    .endomines-articles { --endomines-articles-left: 0px; --endomines-articles-right: 0px; }
}
/* Adapt to the actual carousel width, including standalone editor patterns. */
@container (max-width: 1220px) {
    /* Reserve side gutters inside the carousel instead of covering cards. */
    .endomines-articles .endomines-query { margin-inline: 52px; }
    .endomines-article-controls, .editor-styles-wrapper .endomines-articles .endomines-article-controls { left: 0; right: 0; }
}
/* Three source-sized figures and their units cannot fit the compact canvas.
 * Core has no stacking breakpoint control. Keep its native opt-out and column
 * attributes; adapt only the source composition before text would be clipped. */
@media (max-width: 1279.98px) {
    .endomines-statistics:has(.endomines-statistics-columns:not(.is-not-stacked-on-mobile)) { --endomines-statistics-height: auto; --endomines-statistics-row-height: auto; --endomines-statistic-frame-height: auto; }
    .endomines-statistics-columns:not(.is-not-stacked-on-mobile) { flex-wrap: wrap !important; }
    .endomines-statistics-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 100% !important; }
    .endomines-statistics-columns:not(.is-not-stacked-on-mobile) .endomines-statistic-frame { text-align: center; }
}
@media (max-width: 689.98px) { .endomines-articles[data-endomines-columns] { --endomines-visible-columns: 1; } }

.endomines-linkedin-card { height: 100%; }
.endomines-page-heading { text-wrap: balance; }
.endomines-subpage-placeholder { aspect-ratio: 730/418; }
/* Core's editable empty table cell has one inherited text line. Preserve the
 * same line box publicly, without changing the empty cell's stored value. */
.endomines-subpage .wp-block-table :is(td,th):empty::before { content: " "; }
/* Shared brand table, same visual language as the board committee table.
 * Core Table owns cells, header section, column alignment and the text role
 * (Typography size); wide tables scroll inside the figure, not the page. */
.wp-block-table:not(.endomines-board-table):not(.endomines-investors-fact-table) { overflow-x:auto; border:0; scrollbar-color:var(--theme-palette-color-2) var(--theme-palette-color-6); scrollbar-width:thin; }
.wp-block-table:not(.endomines-board-table):not(.endomines-investors-fact-table) table { border-collapse:collapse; border:0; margin:0; }
.wp-block-table:not(.endomines-board-table):not(.endomines-investors-fact-table) :is(thead,tfoot) { border:0; }
.wp-block-table.endomines-investors-fact-table table :is(thead, th) { border:0; }
.wp-block-table.endomines-investors-fact-table table th { box-sizing:border-box; height:53px; padding:10px 21px; }
.endomines-investors-native-11 > .endomines-investors-fact-table + .is-style-endomines-action-link { margin-top:24px; }
.wp-block-table:not(.endomines-board-table):not(.endomines-investors-fact-table) :is(th,td) { border:0; padding:4px; vertical-align:top; }
.wp-block-table:not(.endomines-board-table):not(.endomines-investors-fact-table) th { font-weight:600; }
.wp-block-table:not(.endomines-board-table):not(.endomines-investors-fact-table) th:not([class*="has-text-align-"]):not([data-align]) { text-align:left; }
.wp-block-table:not(.endomines-board-table):not(.endomines-investors-fact-table) tr { height:54px; }
.wp-block-table:not(.endomines-board-table):not(.endomines-investors-fact-table) tbody tr:nth-child(odd) { background:color-mix(in srgb,var(--theme-palette-color-2) 15%,transparent); }
/* A header row stored as the first body row stays untinted like a thead. */
.wp-block-table:not(.endomines-board-table):not(.endomines-investors-fact-table) table:not(:has(thead)):has(> tbody > tr:first-child > th) tbody tr:nth-child(odd) { background:transparent; }
.wp-block-table:not(.endomines-board-table):not(.endomines-investors-fact-table) table:not(:has(thead)):has(> tbody > tr:first-child > th) tbody tr:nth-child(even) { background:color-mix(in srgb,var(--theme-palette-color-2) 15%,transparent); }

.editor-styles-wrapper .endomines-feature-title, .editor-styles-wrapper .endomines-quote { color: inherit; }

@media (max-width: 1100px) {
    .endomines-quote::before { inset-inline-start: -45px; font-size: 100px; }
    .endomines-statistics { --endomines-statistics-column-gap: 110px; }
}
@media (max-width: 999.98px) { .endomines-hero { --endomines-hero-offset: 39px; } }
@media (max-width: 689.98px) { .endomines-hero { --endomines-hero-offset: 31px; } }
@media (max-width: 781px) {
    .endomines-hero { --endomines-hero-height: auto; --endomines-hero-top: 150px; --endomines-hero-bottom: 60px; --endomines-divider-before: 70px; --endomines-divider-after: 70px; --endomines-divider-left: 0px; --endomines-divider-right: 0px; }
    .endomines-hero-quote { --endomines-quote-right: 0px; }
    .endomines-quote { --endomines-quote-offset: 42px; }
    .endomines-statistics { --endomines-statistics-height: auto; --endomines-statistics-top: 48px; --endomines-statistics-row-height: auto; --endomines-statistic-frame-height: auto; }
    .endomines-introduction { --endomines-intro-top: 70px; }
    .endomines-news-background { --endomines-news-top: 85px; --endomines-news-line-left: 0px; --endomines-news-line-right: 0px; --endomines-news-index-left: 0px; --endomines-news-index-right: 0px; }
    .endomines-alive { --endomines-alive-height: 720px; }
    .endomines-event-panel, .endomines-jewelry-panel { --endomines-panel-height: auto; --endomines-panel-top: 60px; --endomines-panel-bottom: 60px; --endomines-panel-left: 7cqw; --endomines-panel-right: 7cqw; }
}
@media (prefers-reduced-motion: reduce) {
    .endomines-feature-grid * { animation: none; transition: none; }
}

/* endomines-no-heading-hyphens: otsikoita ei tavuteta koskaan.
   Sisällön tuonnissa tulleet pehmeät tavuviivat (U+00AD) ja selaimen automaattitavutus ohitetaan.
   Blocksyn perimä overflow-wrap jää vain hätävaraksi sanalle, joka ei mahdu riville lainkaan. */
:is(h1, h2, h3, h4, h5, h6, .wp-block-heading, .wp-block-post-title) {
	-webkit-hyphens: none;
	hyphens: none;
}

/* Kun heading-fit.js on käytössä, otsikon sanaa ei katkaista; skripti pienentää liian pitkän sanan mahtumaan. */
.endomines-heading-fit :is(h1, h2, h3, h4, h5, h6) {
	overflow-wrap: normal;
	word-break: normal;
}

/* Tekstinosto: shared pull-quote style for text highlights (group block style
 * "Tekstinosto (lainausmerkki)"). Larger text, generous whitespace and a coral
 * quotation mark on the left. */
.wp-block-group.is-style-endomines-text-highlight {
    position: relative;
    margin-block: clamp(48px, 6vw, 88px);
    padding: 0 0 0 clamp(52px, 5.3vw, 76px);
    background: none;
}
.wp-block-group.is-style-endomines-text-highlight::before {
    content: "\201C";
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 0;
    font-family: var(--wp--preset--font-family--nata-sans), sans-serif;
    font-size: clamp(64px, 6.6vw, 96px);
    font-weight: 700;
    line-height: 1;
    color: var(--wp--preset--color--coral);
    transform: translateY(-.3em);
    pointer-events: none;
}
.wp-block-group.is-style-endomines-text-highlight > p {
    max-width: 16em;
    margin-block: 0;
    font-family: var(--wp--preset--font-family--nata-sans), sans-serif;
    font-size: clamp(24px, 2.25vw, 32px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0;
}
.wp-block-group.is-style-endomines-text-highlight > p + p { margin-block-start: .6em; }

/* Linkkikortit (e.g. Osaketiedot): side-by-side cards share the row height. */
.endomines-link-cards .wp-block-column > .wp-block-group:only-child { height: 100%; box-sizing: border-box; }

/* Inderes IR API release cards: the link wraps the existing arrow and label. */
.endomines-ir-release-link { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.endomines-ir-release-action { margin: 0; }
.endomines-ir-release-action .endomines-ir-release-link { gap: 16px; }
.endomines-press-cards .endomines-ir-release-link { gap: 14px; }
/* Front page release cards share the article carousel's columns below: the same
 * source side offsets on wide screens and the carousel's 52px arrow gutters below 1400px. */
.wp-block-columns.endomines-press-cards { margin-left: -16.80055px; margin-right: -70.19945px; }
@media (max-width: 1399.98px) { .wp-block-columns.endomines-press-cards { margin-inline: 52px; } }
@media (max-width: 781.98px) { .wp-block-columns.endomines-press-cards { margin-inline: 0; } }
/* Editor preview of the dynamic block: server-rendered markup has no generated
 * layout styles, so mirror each layout's native column gap there. */
.wp-block-endomines-inderes-releases .endomines-press-cards { column-gap: 33px; }
.wp-block-endomines-inderes-releases .endomines-newsroom-press-columns { column-gap: 75px; }
.wp-block-endomines-inderes-releases .endomines-investors-native-29 { column-gap: 74px; row-gap: 40px; }
.endomines-ir-release-link img { flex: 0 0 17px; width: 17px; height: 15px; }
/* Arrow links never underline on hover/focus; the arrow slide is the hover cue. */
.endomines-ir-release-link:is(:hover, :focus-visible),
.endomines-ir-release-link:is(:hover, :focus-visible) .endomines-ir-release-link__text { text-decoration: none; }

/* Tekstinostoslideri: a native Group (class endomines-quote-slider) holding
 * Tekstinosto groups. quote-slider.js adds the track and controls publicly;
 * without it, and in the editor, the quotes remain stacked. */
.endomines-quote-slider[data-endomines-slider] { margin-block: clamp(48px, 6vw, 88px); }
.endomines-quote-slider__track {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    /* quote-slider.js sets the active quote's height; the mark's room is extra. */
    box-sizing: content-box;
    transition: height .35s ease;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    /* Room for the Tekstinosto quotation mark, which sits .3em above the text. */
    padding-block-start: calc(.3 * clamp(64px, 6.6vw, 96px));
}
.endomines-quote-slider__track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .endomines-quote-slider__track { transition: none; } }
.endomines-quote-slider__track > .wp-block-group.is-style-endomines-text-highlight {
    flex: 0 0 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    /* Centre the quote (mark + 16em text column of the quote text) in the slide. */
    --endomines-quote-mark-space: clamp(52px, 5.3vw, 76px);
    --endomines-quote-offset: max(0px, calc((100% - 16 * clamp(24px, 2.25vw, 32px) - var(--endomines-quote-mark-space)) / 2));
    padding-inline-start: calc(var(--endomines-quote-offset) + var(--endomines-quote-mark-space));
}
.endomines-quote-slider__track > .wp-block-group.is-style-endomines-text-highlight::before { inset-inline-start: var(--endomines-quote-offset); }
.endomines-quote-slider__controls {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    margin-block-start: 32px;
}
.endomines-quote-slider__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--wp--preset--color--sand);
    cursor: pointer;
}
.endomines-quote-slider__button img { display: block; }
.endomines-quote-slider__dots { display: flex; align-items: center; gap: 4px; }
.endomines-quote-slider__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.endomines-quote-slider__dot::before {
    content: "";
    width: 10px;
    height: 10px;
    box-sizing: border-box;
    border: 2px solid var(--wp--preset--color--forest);
    border-radius: 50%;
}
.endomines-quote-slider__dot[aria-current="true"]::before { background: var(--wp--preset--color--forest); }
:is(.endomines-quote-slider__button, .endomines-quote-slider__dot):focus-visible {
    outline: 2px solid var(--wp--preset--color--forest);
    outline-offset: 3px;
}

/* ------------------------------------------------------------------
   Ääriviivanapin hover/fokus (tehtävä: Nappien hover-tyylit 16.11.2026)
   Ääriviivan väri täyttää napin taustan. Vaaleilla täytöillä teksti on
   mustaa (ink); mustalla (ink) ja tummanvihreällä (forest) teksti on
   vaaleaa (paper). Väri seuraa napin omaa natiivia reunaväriä, tai sen
   puuttuessa tekstiväriä (reuna on silloin tekstin värinen), joten
   asiakas valitsee värin editorissa. Palettiin kuulumaton oma väri
   säilyttää aiemman hover-tyylin.
   ------------------------------------------------------------------ */
.wp-block-button.is-style-outline > .wp-block-button__link {
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.wp-block-button.is-style-outline > :is(.has-coral-border-color, .has-coral-color:not(.has-border-color)) { --endomines-outline-fill: var(--wp--preset--color--coral); --endomines-outline-text: var(--wp--preset--color--ink); }
.wp-block-button.is-style-outline > :is(.has-gold-border-color, .has-gold-color:not(.has-border-color)) { --endomines-outline-fill: var(--wp--preset--color--gold); --endomines-outline-text: var(--wp--preset--color--ink); }
.wp-block-button.is-style-outline > :is(.has-muted-border-color, .has-muted-color:not(.has-border-color)) { --endomines-outline-fill: var(--wp--preset--color--muted); --endomines-outline-text: var(--wp--preset--color--ink); }
.wp-block-button.is-style-outline > :is(.has-sand-border-color, .has-sand-color:not(.has-border-color)) { --endomines-outline-fill: var(--wp--preset--color--sand); --endomines-outline-text: var(--wp--preset--color--ink); }
.wp-block-button.is-style-outline > :is(.has-paper-border-color, .has-paper-color:not(.has-border-color)) { --endomines-outline-fill: var(--wp--preset--color--paper); --endomines-outline-text: var(--wp--preset--color--ink); }
/* Poikkeus: musta ja tummanvihreä täyttyvät tummaksi, teksti vaalea. */
.wp-block-button.is-style-outline > :is(.has-ink-border-color, .has-ink-color:not(.has-border-color)) { --endomines-outline-fill: var(--wp--preset--color--ink); --endomines-outline-text: var(--wp--preset--color--paper); }
.wp-block-button.is-style-outline > :is(.has-forest-border-color, .has-forest-color:not(.has-border-color)) { --endomines-outline-fill: var(--wp--preset--color--forest); --endomines-outline-text: var(--wp--preset--color--paper); }
.wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link:is(.has-coral-border-color, .has-gold-border-color, .has-muted-border-color, .has-sand-border-color, .has-paper-border-color, .has-ink-border-color, .has-forest-border-color, :not(.has-border-color):is(.has-coral-color, .has-gold-color, .has-muted-color, .has-sand-color, .has-paper-color, .has-ink-color, .has-forest-color)):is(:hover, :focus-visible) {
	/* !important: lohkon oma läpinäkyvä tausta ja has-*-color ovat inline-/!important-arvoja. */
	background-color: var(--endomines-outline-fill) !important;
	border-color: var(--endomines-outline-fill);
	color: var(--endomines-outline-text) !important;
}
@media (prefers-reduced-motion: reduce) {
	.wp-block-button.is-style-outline > .wp-block-button__link { transition: none; }
}

/* The nearest native background owns the arrow colour in both the editor
 * and the public page. A nested neutral panel resets a coloured parent.
 * Link variants (including generated release links) consume the same value;
 * the explicit light-arrow style remains available for image backgrounds. */
:where(.has-background, .wp-block-cover) {
    --endomines-context-arrow: url("assets/arrow-white.svg");
}
:where(.has-background:is(.has-paper-background-color, .has-white-background-color, .has-sand-background-color, .has-muted-background-color, .has-sand-overlay-background-color, .has-muted-overlay-background-color),
    .wp-block-cover:has(> .wp-block-cover__background:is(.has-paper-background-color, .has-white-background-color, .has-sand-background-color, .has-muted-background-color, .has-sand-overlay-background-color, .has-muted-overlay-background-color))) {
    --endomines-context-arrow: url("assets/arrow-coral.svg");
}

/* Nuolilinkki / Nostolinkki (tehtävä: Nuolilinkkien hover ja muotoilu 16.11.2026).
 * The arrow is drawn by ::before, so editing the link text or address in the
 * editor can no longer break or separate the arrow. Choose the paragraph style
 * "Nostolinkki" (coral arrow) or "Nostolinkki – vaalea nuoli" (white arrow);
 * generated links use the class endomines-arrow-link. Layout values are in
 * :where() so existing component rules (e.g. .endomines-company-action) keep
 * their own placement. */
:where(p.is-style-endomines-action-link, p.is-style-endomines-action-link-light) a,
:where(a.is-style-endomines-action-link, a.is-style-endomines-action-link-light, a.endomines-arrow-link) {
    display: inline-flex;
    align-items: flex-start;
    column-gap: 15px;
}
:is(p.is-style-endomines-action-link, p.is-style-endomines-action-link-light) a,
a:is(.is-style-endomines-action-link, .is-style-endomines-action-link-light, .endomines-arrow-link) {
    --endomines-arrow-image: var(--endomines-context-arrow, url("assets/arrow-coral.svg"));
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}
p.is-style-endomines-action-link-light a,
a.is-style-endomines-action-link-light {
    --endomines-arrow-image: url("assets/arrow-white.svg");
}
:is(p.is-style-endomines-action-link, p.is-style-endomines-action-link-light) a::before,
a:is(.is-style-endomines-action-link, .is-style-endomines-action-link-light, .endomines-arrow-link)::before {
    content: "";
    flex: 0 0 17px;
    width: 17px;
    height: 15px;
    margin-block-start: var(--endomines-arrow-offset, 5px);
    background: var(--endomines-arrow-image) center / contain no-repeat;
    transition: transform .2s ease;
}
/* Hover/focus: text keeps its normal colour; the arrow moves closer to the text. */
:is(p.is-style-endomines-action-link, p.is-style-endomines-action-link-light) a:is(:hover, :focus-visible),
a:is(.is-style-endomines-action-link, .is-style-endomines-action-link-light, .endomines-arrow-link):is(:hover, :focus-visible) {
    color: inherit;
    text-decoration: none;
}
:is(p.is-style-endomines-action-link, p.is-style-endomines-action-link-light) a:is(:hover, :focus-visible)::before,
a:is(.is-style-endomines-action-link, .is-style-endomines-action-link-light, .endomines-arrow-link):is(:hover, :focus-visible)::before {
    transform: translateX(6px);
}
/* Contexts that centre the arrow vertically with a single text line. */
.endomines-newsroom-page .endomines-company-action a,
a.endomines-ir-release-link { --endomines-arrow-offset: 0px; }
@media (prefers-reduced-motion: reduce) {
    :is(p.is-style-endomines-action-link, p.is-style-endomines-action-link-light) a::before,
    a:is(.is-style-endomines-action-link, .is-style-endomines-action-link-light, .endomines-arrow-link)::before { transition: none; }
}
/* core/read-more sets display:block; keep its arrow and text on one row too. */
a.wp-block-read-more:is(.is-style-endomines-action-link, .is-style-endomines-action-link-light) { display: inline-flex; align-items: flex-start; column-gap: 15px; }
/* Uutishuoneen artikkelikorttien Lue artikkeli -linkki: sama nuolilinkin käytös
 * kuin Nostolinkissä (väli 15px, väri pysyy hoverissa, nuoli liukuu tekstiä kohti). */
.endomines-newsroom-page a.endomines-newsroom-read { column-gap: 15px; }
.endomines-newsroom-page a.endomines-newsroom-read::before { transition: transform .2s ease; }
.endomines-newsroom-page a.endomines-newsroom-read:is(:hover, :focus-visible) { color: inherit; text-decoration: none; }
.endomines-newsroom-page a.endomines-newsroom-read:is(:hover, :focus-visible)::before { transform: translateX(6px); }
@media (prefers-reduced-motion: reduce) { .endomines-newsroom-page a.endomines-newsroom-read::before { transition: none; } }

/* Keskitetty osa-aluenosto (lisäluokka endomines-feature-centered, esim. Naapureille – Kalat ja vedet):
 * kuvake + tekstisarake keskitetään kokonaisuutena, reunojen tyhjä tila tasataan.
 * Teksti säilyy vasemmalle tasattuna. Muut osa-aluenostot eivät muutu. */
.endomines-environment-feature.endomines-environment-native-11.endomines-feature-centered { padding-right: max(7.013888889%, calc((100% - 1238px) / 2)) !important; }
.endomines-feature-centered > .wp-block-columns.endomines-environment-feature-columns { justify-content: center; }
.endomines-feature-centered > .endomines-environment-feature-columns > .wp-block-column:last-child { flex-basis: 578px !important; flex-grow: 0; max-width: 578px; }
@media (max-width: 1100px) {
    .endomines-feature-centered > .wp-block-columns.endomines-environment-feature-columns:not(.is-not-stacked-on-mobile) { grid-template-columns: 150px minmax(0, 578px); }
    .endomines-feature-centered > .endomines-environment-feature-columns > .wp-block-column:last-child { max-width: none; }
}
@media (max-width: 781px) {
    .endomines-feature-centered > .wp-block-columns.endomines-environment-feature-columns:not(.is-not-stacked-on-mobile) { grid-template-columns: minmax(0, 578px); }
}

/* Vastuullisuuden johtaminen: adjacent boxes share the row height; task texts are lists. */
.endomines-alive-management-details .wp-block-columns > .wp-block-column > .wp-block-group { height: 100%; box-sizing: border-box; }
.endomines-alive-management-list { list-style-type: disc; }
.endomines-alive-management-list > li + li { margin-top: 4px !important; }

/* Ajankohtaista: kultainen rinkula (koko osion levyinen läpinäkyvä kuva, Figma 1440 x 1648)
 * säilyttää mittasuhteensa: leveys skaalautuu, korkeus seuraa kuvasuhdetta (ei venytystä
 * osion korkeuden mukaan). Alle 1000 px kuva pysyy 1000 px levyisenä ja siirtyy vasemmalle,
 * jolloin rinkula jää kapeilla näytöillä enemmän piiloon vasemmasta reunasta.
 * Koskee vain natiivia oletuskokoa (data-endomines-defaults); oma editorivalinta säilyy. */
.endomines-news-background[data-endomines-defaults~="endomines-news-background--background-size"] { --endomines-news-background-size: 100% auto; background-repeat: no-repeat; }
@media (max-width: 999.98px) {
    .endomines-news-background[data-endomines-defaults~="endomines-news-background--background-size"] { --endomines-news-background-size: 1000px auto; background-position: 30% 0 !important; }
}

/* Hero mitoittuu sisältönsä mukaan (tehtävä f8aea1a0, 18.11.2026).
 * Teeman Figma-oletuskorkeudet eivät enää toimi alarajana: hero kutistuu,
 * kun tekstiä piilotetaan tai poistetaan, ja kasvaa, kun sisältöä lisätään.
 * Yläreunan ja alareunan sisätila säilyy. Editorissa itse asetettu
 * vähimmäiskorkeus (ei data-endomines-defaults-merkintää) säilyy käytössä. */
body .endomines-hero[data-endomines-defaults~="endomines-hero--min-height"],
body .endomines-investors-native-1[data-endomines-defaults~="endomines-investors-native-1--min-height"],
body .endomines-environment-native-1[data-endomines-defaults~="endomines-environment-native-1--min-height"],
body .endomines-governance-native-1[data-endomines-defaults~="endomines-governance-native-1--min-height"],
body .endomines-people-native-1[data-endomines-defaults~="endomines-people-native-1--min-height"],
body .endomines-processing-native-1[data-endomines-defaults~="endomines-processing-native-1--min-height"],
body .endomines-reserves-native-1[data-endomines-defaults~="endomines-reserves-native-1--min-height"],
body .endomines-contacts-native-1[data-endomines-defaults~="endomines-contacts-native-1--min-height"],
body .endomines-neighbors-native-1[data-endomines-defaults~="endomines-neighbors-native-1--min-height"],
body .endomines-reports-native-1[data-endomines-defaults~="endomines-reports-native-1--min-height"] { min-height: 0 !important; }
body .wp-block-cover.endomines-history-hero,
body .wp-block-cover.endomines-growth-hero,
body .wp-block-cover.endomines-career-hero,
body .wp-block-cover.endomines-culture-hero,
body .wp-block-cover.is-style-endomines-company-hero,
body .wp-block-cover.endomines-strategy-hero,
body .wp-block-group.endomines-history-hero-lead,
body .wp-block-group.endomines-history-hero-intro,
body .wp-block-group.endomines-growth-hero-lead,
body .wp-block-group.endomines-growth-hero-intro { min-height: 0; }

/* Kolme nostoa kuvalla jatkaa edellisen beigen osion taustaa ilman vaaleaa rakoa (beige-raja-20261119).
 * Kun edellinen osio on samaa sand-taustaa, väli tehdään sisätilana eikä ulkomarginaalina. */
body .has-sand-background-color + .wp-block-group.endomines-growth-cards.has-sand-background-color { margin-block-start: 0; padding-block-start: 155.5px; }
@media (max-width: 781px) {
    body .has-sand-background-color + .wp-block-group.endomines-growth-cards.has-sand-background-color { padding-block-start: 70px; }
}
/* Sama osio kapeammilla näytöillä: tausta täyttää koko leveyden, sisältö pysyy 92 %:n leveydellä (beige-raja-20261119-sivut). */
@media (max-width: 1300px) {
    body .has-sand-background-color + .wp-block-group.endomines-growth-cards.has-sand-background-color { max-width: none; margin-inline: 0; padding-inline: 4%; }
}


/* Haitarien (alasvetovalikoiden) luettelot sisennetään kuten muualla sivustolla (haitari-lista-20261119).
 * Haitarin sivutila korvasi aiemmin luettelon oman sisennyksen, jolloin luettelomerkit olivat tekstin reunassa. */
body .wp-block-details:not(.endomines-faq-item, .endomines-alive-management-details) > :is(ul, ol) { padding-inline-start: calc(23px + var(--theme-list-indent, 2.5em)); }
@media (max-width: 689.98px) {
    body .wp-block-details:not(.endomines-faq-item, .endomines-alive-management-details) > :is(ul, ol) { padding-inline-start: calc(16px + var(--theme-list-indent, 2.5em)); }
}

/* Erillinen tiedostolinkki (esim. YVA: Tutustu esitysmateriaaliin) lihavoituna ja tekstilinkin koossa; raporttilistat ennallaan. 19.11.2026 */
body .wp-block-file.is-style-endomines-report-download:not(.endomines-reports-page *, .endomines-reports-context *) > a:first-child {
    font-size: var(--endomines-action, 18px);
    font-weight: 700;
}

/* Kuvatyyli "Pyöristetyt yläkulmat" (valittavissa kuvalohkon Tyylit-paneelista). Sama 15px kuin kasvukorttien kuvissa. 19.11.2026 */
.wp-block-image.is-style-endomines-rounded-top img,
.wp-block-image.is-style-endomines-rounded-top .components-placeholder {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* Kestävää kasvua – Strategia/Malmivarannot/Vastuullisuus: suoraan palstaan lisätty kuva saa saman 35px välin otsikkoon kuin kuvakääre (endomines-growth-related-photo). 19.11.2026 */
.endomines-growth-related-columns .wp-block-column > .wp-block-image { margin-block-end: 35px; }

/* Keep the editable AI notice beside the legal menu when space permits. */
.ct-footer [data-row="bottom"] [data-column]:has(> [data-id="ai"]) { display:flex; flex-direction:row; flex-wrap:wrap; align-items:baseline; column-gap:24px; }
.ct-footer [data-row="bottom"] [data-column]:has(> [data-id="ai"]) > .ct-header-text:not([data-id="ai"]) { flex:0 0 100%; width:100%; }
.ct-footer [data-row="bottom"] [data-column] > [data-id="ai"] { flex:0 1 auto; width:auto; max-width:100%; }
.ct-footer [data-row="bottom"] [data-id="ai"] p { margin:0; }

/* Homepages: shared news and social content edges. */
body:is(.page-id-19,.page-id-823) .endomines-news-content,
body:is(.page-id-19,.page-id-823) .endomines-social {
    padding-inline: max(5vw, calc((100% - 1124px) / 2)) !important;
}
body:is(.page-id-19,.page-id-823) .endomines-news-content .endomines-press-cards,
body:is(.page-id-19,.page-id-823) .endomines-news-content .endomines-articles {
    margin-inline: 0 !important;
    width: 100%;
}

/* Finnish company page: align the unique section with the guest text column. */
body:is(.page-id-692,.page-id-773) .is-style-endomines-company-unique {
    padding-left: max(7%, calc((100% - 1130px) / 2)) !important;
}

/* Sustainability pages: align the governance and report columns. */
body:is(.page-id-693,.page-id-774) .endomines-alive-governance-card {
    padding-inline: 24px !important;
}
body:is(.page-id-693,.page-id-774) .endomines-alive-governance-card > .wp-block-columns,
body:is(.page-id-693,.page-id-774) .endomines-alive-report > .wp-block-columns {
    width: 100%;
    max-width: 1124px !important;
    margin-inline: auto;
    gap: 40px;
}
@media (min-width: 782px) {
    body:is(.page-id-693,.page-id-774) .endomines-alive-governance-card > .wp-block-columns > .wp-block-column,
    body:is(.page-id-693,.page-id-774) .endomines-alive-report > .wp-block-columns > .wp-block-column {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }
}

/* Finnish newsroom: consistent content edges. */
body:is(.page-id-695,.page-id-776) .endomines-newsroom-title,
body:is(.page-id-695,.page-id-776) .endomines-newsroom-feature-copy {
    margin-left: max(7%, calc((100% - 1124px) / 2));
}
body:is(.page-id-695,.page-id-776) .endomines-newsroom-press,
body:is(.page-id-695,.page-id-776) .endomines-newsroom-articles,
body:is(.page-id-695,.page-id-776) .endomines-newsroom-events,
body:is(.page-id-695,.page-id-776) .endomines-newsroom-social {
    padding-inline: max(7%, calc((100% - 1124px) / 2));
}

/* Keep the newsroom pagination background full bleed after content alignment. */
body:is(.page-id-695,.page-id-776) .endomines-newsroom-more {
    margin-inline: 0;
    padding-inline: 0;
    width: 100%;
    max-width: none;
    box-shadow: 0 0 0 100vmax rgba(3, 49, 39, .9);
    clip-path: inset(0 -100vmax);
}

/* Finnish newsroom article and release arrows use the brand coral. */
body:is(.page-id-695,.page-id-776) .endomines-newsroom-read::before,
body:is(.page-id-695,.page-id-776) .endomines-newsroom-press .endomines-ir-release-link::before {
    background-image: url('assets/arrow-coral.svg');
}

/* Finnish careers: shared hero, cards and footer content edges. */
body:is(.page-id-696,.page-id-777) .endomines-growth-cards > .endomines-growth-card-columns {
  width:86%;
  max-width:1124px !important;
  margin-inline:auto;
}
@media (min-width:1000px) {
  body:is(.page-id-696,.page-id-777) .endomines-reserves-hero-copy {
    padding-left:max(7%,calc((100% - 1124px)/2)) !important;
  }
  body:is(.page-id-696,.page-id-777) .endomines-reserves-hero-copy > .wp-block-group {
    padding-left:0 !important;
  }
}

/* Finnish neighbours: align primary section content edges. */
body:is(.page-id-697,.page-id-4182) .endomines-neighbors-grid {
  width:100%;
  max-width:1124px !important;
  margin-inline:auto;
}
body:is(.page-id-697,.page-id-4182) .endomines-alive-report {
  padding-inline:max(7%,calc((100% - 1124px)/2)) !important;
}
body:is(.page-id-697,.page-id-4182) .endomines-alive-report > .wp-block-columns {
  width:100%;
  max-width:1124px !important;
  margin-inline:auto;
}
body:is(.page-id-697,.page-id-4182) .endomines-neighbors-native-14 {
  padding-inline:max(7%,calc((100% - 1124px)/2)) !important;
}
body:is(.page-id-697,.page-id-4182) .endomines-neighbors-native-14 > .wp-block-group {
  width:100%;
  max-width:1124px;
}
body:is(.page-id-697,.page-id-4182) .endomines-neighbors-native-18 {
  padding-left:max(7%,calc((100% - 1124px)/2)) !important;
}
@media (min-width:1000px) {
  body:is(.page-id-697,.page-id-4182) .endomines-neighbors-hero .endomines-processing-hero-copy {
    padding-left:max(7%,calc((100% - 1124px)/2)) !important;
    padding-right:0 !important;
  }
  body:is(.page-id-697,.page-id-4182) .endomines-neighbors-hero .endomines-processing-hero-copy > .wp-block-group {
    padding-left:0 !important;
  }
}

@media (min-width:1000px) {
  body:is(.page-id-697,.page-id-4182) .endomines-neighbors-hero .endomines-round-hero-dot {
    bottom:10px;
  }
}

/* Finnish history: align statistics and related cards with the hero copy. */
body.page-id-754 .endomines-history-stats,
body.page-id-754 .endomines-history-card-columns,
body.page-id-754 .endomines-history-divider-lower {
  width:86%;
  max-width:1124px !important;
  margin-inline:auto !important;
}
@media (min-width:782px) {
  body.page-id-754 .endomines-history-stats {
    gap:33px;
  }
  body.page-id-754 .endomines-history-stats > .wp-block-column {
    flex:1 1 0 !important;
  }
  body.page-id-754 .endomines-history-stat-label {
    min-height:62px;
  }
}

/* Split heroes: content gutter must not consume the text column on wide screens.
 * Reserve real content width after the centred gutter; keep photo composition
 * and native vertical spacing. Scoped to the three reviewed FI/EN page pairs. */
@media (min-width:1100.01px) {
  body:is(.page-id-696,.page-id-777,.page-id-697,.page-id-4182) {
    --endomines-reviewed-hero-gutter:max(7%,calc((100% - 1124px)/2));
  }
  body:is(.page-id-693,.page-id-774) {
    --endomines-reviewed-hero-gutter:max(5.347222%,calc((100% - 1286px)/2));
  }
  body:is(.page-id-693,.page-id-774,.page-id-696,.page-id-777,.page-id-697,.page-id-4182)
    .endomines-round-hero-art + :is(.endomines-reserves-hero-copy,.endomines-processing-hero-copy) {
    box-sizing:content-box;
    margin-left:var(--endomines-reviewed-hero-gutter) !important;
    margin-right:0;
    padding-left:0 !important;
    padding-right:0 !important;
    width:calc(50% - var(--endomines-reviewed-hero-gutter) - 90px);
    min-width:0;
  }
}

/* Newsroom feature: keep text, photo and decorative circles in separate lanes. */
@media (min-width:782px) {
  body:is(.page-id-695,.page-id-776) .endomines-newsroom-hero {
    --endomines-newsroom-content-gutter:max(7%,calc((100% - 1124px)/2));
  }
  body:is(.page-id-695,.page-id-776) .endomines-newsroom-feature-copy {
    width:calc(50% - var(--endomines-newsroom-content-gutter) - 90px);
    flex:none;
  }
  body:is(.page-id-695,.page-id-776) .endomines-newsroom-feature-photo {
    left:max(45.417%,calc(50% - 66px));
  }
  body:is(.page-id-695,.page-id-776) .endomines-newsroom-coral {
    left:calc(50% - 66px);
  }
  body:is(.page-id-695,.page-id-776) .endomines-newsroom-gold {
    left:auto;
    right:calc(100% - var(--endomines-newsroom-content-gutter) + 32px);
    width:min(39.236%,560px);
  }
}
