.news-sample{padding:9px 20px;background:#e5eee6;color:#17432f;text-align:center;font:12px Arial,sans-serif}
.news-main{max-width:1200px;margin:auto;padding:70px 40px 100px}.news-main h1{font:normal clamp(54px,6vw,90px)/1.05 Georgia,serif;margin:18px 0 24px}.news-intro{font-size:22px;color:#65756d;margin-bottom:50px}
#news-list{border-top:2px solid #123e30}.news-row{display:grid;grid-template-columns:220px 1fr;gap:36px;padding:36px 0;border-bottom:1px solid #cdd5cf;scroll-margin-top:130px}.news-row figure{margin:0}.news-image{width:100%;display:block;object-fit:cover;aspect-ratio:4/3}.news-row figcaption{font:11px/1.4 Arial,sans-serif;color:#65756d;margin-top:8px}.news-meta{font:13px/1.5 Arial,sans-serif;color:#65756d;margin:0 0 14px}.news-copy h2{font:normal clamp(25px,3vw,38px)/1.15 Georgia,serif;margin:0 0 14px}.news-summary,.news-details p{font:17px/1.65 Arial,sans-serif;color:#596b62}.news-details summary{cursor:pointer;padding:15px 0;font-weight:600}.news-details p{border-left:3px solid #00a651;padding-left:20px}.news-link{display:inline-flex;align-items:center;min-height:48px;padding:12px 0;color:#123e30;text-decoration:underline;text-underline-offset:5px;font:600 15px/1.5 Arial,sans-serif;touch-action:manipulation}.latest-news{background:#f6f7f1;padding:75px 6vw}.news-section-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:36px}.news-section-heading h2{font:normal clamp(38px,5vw,68px)/1.1 Georgia,serif;margin:16px 0 0}.news-feature{display:grid;grid-template-columns:1fr 1fr;gap:44px}.news-feature .news-image{aspect-ratio:16/10}.news-feature h3{font:normal clamp(28px,3vw,42px)/1.15 Georgia,serif;margin:12px 0 20px}.news-feature-copy>p:not(.news-meta){font:18px/1.6 Arial,sans-serif;color:#65756d}
@media(max-width:650px){.news-main{padding:40px 22px 60px}.news-intro{font-size:18px;line-height:1.5;margin-bottom:30px}.news-row{grid-template-columns:90px minmax(0,1fr);gap:18px;padding:26px 0}.news-copy h2{font-size:25px}.news-summary,.news-details p{font-size:15px}.news-meta{font-size:12px}.news-link{font-size:14px}.news-row .news-image{aspect-ratio:1/1}.news-section-heading{display:block}.news-section-heading>.text-link{display:inline-block;margin-top:22px}.news-feature{grid-template-columns:1fr;gap:24px}.latest-news{padding:48px 22px}.news-feature h3{font-size:30px}}

/* Publisher marks: readable, centered, with no clipping. */
.news-row figure>a{display:flex;width:100%;padding:0;justify-content:center;align-items:center;}
.news-image.publisher-logo{object-fit:contain!important;object-position:center!important;padding:8px!important;background:#fff!important;box-sizing:border-box;}
.news-row:has(.publisher-logo){grid-template-columns:280px minmax(0,1fr);}
.news-row:has(.publisher-logo) figure{align-self:center;text-align:center;}
.news-row .publisher-logo{height:150px;aspect-ratio:auto;}
.news-feature .publisher-logo{height:240px;aspect-ratio:auto;padding:24px!important;}
@media(max-width:650px){
.news-row:has(.publisher-logo){grid-template-columns:minmax(0,1fr);gap:18px;}
.news-row:has(.publisher-logo) figure{width:100%;max-width:320px;justify-self:center;}
.news-row .publisher-logo{height:110px;aspect-ratio:auto;}
.news-feature .publisher-logo{height:150px;padding:16px!important;}
}

/* Keep publisher logos beside the story on phones too. */
@media(max-width:650px){.news-row:has(.publisher-logo){grid-template-columns:110px minmax(0,1fr);gap:16px}.news-row:has(.publisher-logo) figure{width:100%;max-width:none;justify-self:start;align-self:start}.news-row .publisher-logo{width:100%;height:82px;padding:3px!important;object-fit:contain!important}.news-row:has(.publisher-logo) figcaption{font-size:10px;overflow-wrap:anywhere}}

/* Readable marks: only Climate Ministry and Ehitusuudised. */
.news-row img[alt="Ehitusuudised"],.news-row img[alt="Kliimaministeerium"],.news-row img[alt="BuildEST"]{padding:0!important;height:auto!important;aspect-ratio:auto!important;}
@media(max-width:650px){.news-row:has(img[alt="Ehitusuudised"]),.news-row:has(img[alt="Kliimaministeerium"]),.news-row:has(img[alt="BuildEST"]){grid-template-columns:140px minmax(0,1fr);gap:12px;}}

/* Bound logo boxes independently of article text height, including Safari. */
.news-row:has(.publisher-logo) figure{height:auto!important;min-height:0!important;max-height:none!important;align-self:start!important;background:transparent!important;display:block!important;}
.news-row:has(.publisher-logo) figure>a{height:auto!important;min-height:0!important;max-height:none!important;align-self:start;flex:none;}
.news-row img.publisher-logo[alt="Ehitusuudised"]{height:74px!important;max-height:74px!important;min-height:0!important;aspect-ratio:auto!important;object-fit:contain!important;padding:12px!important;background:#00b3ff!important;}
.news-row:has(img[alt="Ehitusuudised"]) figcaption{display:none;}
.news-feature.news-feature-logo{grid-template-columns:180px minmax(0,1fr);align-items:start;gap:28px;}
.news-feature.news-feature-logo>a{display:block;align-self:start;height:auto;min-height:0;padding:0;}
.news-feature.news-feature-logo .publisher-logo{display:block;width:100%!important;height:90px!important;min-height:0!important;max-height:90px!important;object-fit:contain!important;padding:6px!important;}
@media(max-width:650px){
.news-row img.publisher-logo[alt="Ehitusuudised"]{height:48px!important;max-height:48px!important;padding:5px!important;}
.news-feature.news-feature-logo{grid-template-columns:100px minmax(0,1fr);gap:16px;}
.news-feature.news-feature-logo .publisher-logo{height:54px!important;max-height:54px!important;padding:4px!important;}
.news-feature.news-feature-logo h3{font-size:25px;}
.news-feature.news-feature-logo .news-feature-copy>p:not(.news-meta){font-size:15px;}
.news-feature-copy,.news-copy{min-width:0;overflow-wrap:break-word;}
}

/* One shared image column for every news and media row. */
#news-list>.news-row{grid-template-columns:220px minmax(0,1fr)!important;gap:36px!important;align-items:start;}
#news-list>.news-row>figure{width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;align-self:start!important;justify-self:start!important;background:transparent!important;}
#news-list>.news-row>figure>a{display:block!important;width:100%!important;min-height:0!important;height:auto!important;padding:0!important;}
#news-list>.news-row>figure .news-image{width:100%!important;height:165px!important;min-height:0!important;max-height:165px!important;aspect-ratio:auto!important;object-fit:cover;box-sizing:border-box;}
#news-list>.news-row>figure .publisher-logo{object-fit:contain!important;}
#news-list>.news-row>figure img[alt="Ehitusuudised"]{height:60px!important;max-height:60px!important;padding:8px!important;}
#news-list>.news-row>.news-copy{min-width:0;}
#news-list .news-copy h2,#news-list .news-copy h2 a{word-break:normal;overflow-wrap:normal;hyphens:none;}
@media(max-width:650px){
#news-list>.news-row{grid-template-columns:90px minmax(0,1fr)!important;gap:18px!important;}
#news-list>.news-row>figure .news-image{height:90px!important;max-height:90px!important;}
#news-list>.news-row>figure img[alt="Ehitusuudised"]{height:34px!important;max-height:34px!important;padding:3px!important;}
#news-list .news-copy h2{font-size:clamp(18px,5vw,23px);line-height:1.2;}
#news-list .news-meta,#news-list .news-link{overflow-wrap:anywhere;}
}

/* Preserve native logo proportions; photographs retain the shared column. */
#news-list>.news-row>figure img.publisher-logo:not([alt="Ehitusuudised"]),
#news-list>.news-row>figure img[alt="EIS"]{height:auto!important;max-height:none!important;min-height:0!important;object-fit:contain!important;aspect-ratio:auto!important;padding:0!important;}
/* The presentation is intentionally a stacked layout, not a news thumbnail. */
#news-list>#news-edgar-klaser-renoveerimismess.news-row{grid-template-columns:minmax(0,1fr)!important;gap:20px!important;}
#news-list>#news-edgar-klaser-renoveerimismess.news-row>figure{width:100%!important;max-width:300px!important;}
#news-list>#news-edgar-klaser-renoveerimismess.news-row>figure .news-image{height:auto!important;max-height:none!important;object-fit:contain!important;padding:0!important;}

/* EIS is also used as the image for an ERR story. Match the asset itself. */
#news-list>.news-row>figure img[src*="eis-mustkivi.svg"]{width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;aspect-ratio:auto!important;padding:0!important;}
/* Blend white logo canvases into the page without changing photographs. */
img.publisher-logo[alt="ERR"],img.publisher-logo[alt="Kliimaministeerium"],img.publisher-logo[alt="BuildEST"],img.publisher-logo[alt="Geenius"]{background:transparent!important;mix-blend-mode:multiply;}
