/* WordPress integration / corrections layered on top of the approved KMOP HTML design */
:root{--font-display:'Geologica',Arial,sans-serif;--font-body:'Manrope',Arial,sans-serif}
body{overflow-x:hidden}img{max-width:100%;height:auto}a{text-decoration:none}.header{z-index:100}.menu-overlay,.search-overlay{z-index:95}
/* Desktop: ONLY full navigation; hamburger reserved for tablet/mobile */
.menu-toggle{display:none}.desktop-nav{display:flex}.header-main{gap:16px}.header-actions{flex-shrink:0}.nav-trigger{height:100%;text-decoration:none}
.nav-drop{max-height:min(78vh,620px);overflow-y:auto}.nav-sub-link,.nav-drop .kmop-unlinked{font-size:12px;line-height:1.45;text-align:left;width:100%;display:block;padding:11px 0;border-bottom:1px solid #f0f1f3;font-weight:600;color:var(--navy)}
.nav-sub-link:hover,.nav-sub-link:focus{color:var(--blue)}.kmop-unlinked{cursor:default;opacity:.7}
.header-button{display:inline-flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;line-height:1.2}.header-button.kmop-unlinked{opacity:.8}
.lang-control a.lang-opt{display:inline-block;text-decoration:none}.lang-opt.active{font-weight:800}
/* Header branding: always exactly one logo node (source changes in JS). */
.wordmark .kmop-header-logo{display:block;width:auto;max-width:130px;max-height:54px;object-fit:contain;flex-shrink:0}
/* WordPress logged-in toolbar offset applies to header AND overlays. */
body.admin-bar{--kmop-admin-offset:32px}
.header{top:var(--kmop-admin-offset,0px)}
.menu-overlay,.search-overlay{top:var(--kmop-admin-offset,0px)}
html{scroll-padding-top:calc(95px + var(--wp-admin--admin-bar--height, 0px))}
@media(max-width:782px){body.admin-bar{--kmop-admin-offset:46px}}
@media(max-width:650px){html{scroll-padding-top:calc(70px + var(--wp-admin--admin-bar--height, 0px))}}
/* Mobile menu must not exist on desktop */
#menu-overlay{display:none}.mobile-nav-actions a,.mobile-nav-actions span{display:flex;align-items:center;justify-content:center;text-align:center}.mobile-subnav a,.mobile-subnav span{color:#263f59;background:transparent;border:0;border-bottom:1px solid #edf0f5;padding:14px 0;display:block;font-size:14px;font-weight:600;line-height:1.45;text-align:left;width:100%}.mobile-subnav[hidden]{display:none}.kmop-mobile-lang{display:flex;gap:8px;margin-top:25px}.kmop-mobile-lang a{color:var(--navy);border:1px solid #dce2eb;padding:9px 13px}.kmop-mobile-lang .active{background:var(--navy);color:#fff}
/* Search overlay */.kmop-search-wrap{padding-top:170px;position:relative}.kmop-search-close{position:absolute;right:0;top:110px;border:0;background:transparent;font-size:40px;cursor:pointer}.kmop-search-wrap form{display:grid;gap:14px}.kmop-search-wrap label{font:500 clamp(32px,5vw,70px)/1.1 var(--font-display)}.kmop-search-wrap input{font:inherit;padding:18px;border:1px solid #d6e0e8;width:100%}.kmop-search-wrap form button{justify-self:start;padding:10px 28px;background:var(--blue);color:#fff;border:0;font-size:25px;cursor:pointer}
/* Hero */.kmop-hero-copy{display:none}.kmop-hero-copy.active{display:block}.kmop-hero-copy .hero-sub{max-width:820px}.hero-video{position:absolute;inset:0;height:100%;width:100%;object-fit:cover}.hero-slide{background:linear-gradient(115deg,#173d62,#486981);}.hero-slide.active{visibility:visible;opacity:1}.hero-progress{display:flex;align-items:center;gap:8px}.hero-progress button.kmop-hero-dot{width:44px;height:3px;padding:0;border:0;border-radius:3px;background:rgba(255,255,255,.4);cursor:pointer}.hero-progress button.kmop-hero-dot.active{background:#fff}.hero-cta.kmop-unlinked{display:inline-flex;border-color:rgba(255,255,255,.4);cursor:default}
/* Focus and news cards */.focus-card{border-radius:5px}.focus-card:not(a){cursor:default}.focus-card img,.news-image img,.project-picture img{width:100%;height:100%;object-fit:cover;display:block}.focus-card .focus-title{position:relative;z-index:1}.news-image{min-height:140px}.news-featured .news-image:empty,.news-small .news-image:empty{background:linear-gradient(120deg,#b7cbd0,#365675)}
/* Counter layout */.impact-big .value{white-space:normal;overflow-wrap:anywhere}.metric-value{overflow-wrap:anywhere}
/* Testimonial fixed panel with scrollable long copy */.kmop-testimonials{min-height:330px;display:flex;flex-direction:column;justify-content:flex-start}.kmop-testimonial{display:none}.kmop-testimonial.active{display:flex;flex-direction:column;gap:35px}.kmop-testimonial .test-author{padding:0}.kmop-testimonial .test-quote{max-height:360px;overflow:auto}.test-foot{margin-top:auto}.testimonial-panel{height:545px;overflow:hidden}.kmop-testimonial .test-quote{font-size:clamp(21px,2vw,31px)}
.project-card .project-picture{min-height:175px}.project-card .project-picture:empty{background:#d9e4ec}
/* Footer */.footer-wordmark img{max-height:85px;width:auto;max-width:245px;object-fit:contain}.kmop-footer-links{display:grid;grid-template-columns:1fr 1fr;gap:50px}.kmop-footer-links a,.kmop-footer-links span{display:block;margin:0 0 13px;font-size:13px;color:#e6edf8}.kmop-footer-links h3{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#b9c9e0;margin-bottom:22px}.kmop-footer-menu{list-style:none;padding:0}.kmop-contact-email{display:inline-block;margin-top:22px;color:#fff}.kmop-footer-bottom{padding:25px 0 0;border-top:1px solid rgba(255,255,255,.17);margin-top:50px;color:#b6c8db;font-size:12px}
.newsletter-form input:disabled,.newsletter-form button:disabled{opacity:.5;cursor:not-allowed}
/* Standard inner pages: Gutenberg editor content */.kmop-content-shell{padding-top:165px;padding-bottom:110px;min-height:55vh}.kmop-page-title{font:500 clamp(44px,6vw,84px)/1.07 var(--font-display);letter-spacing:-.055em;margin:0 0 45px}.kmop-page-content{font-size:16px;line-height:1.75;max-width:980px}.kmop-page-content img{height:auto}.kmop-page-content h2,.kmop-page-content h3{font-family:var(--font-display);line-height:1.15}.kmop-listings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:35px}.kmop-listing img{width:100%;aspect-ratio:1.6;object-fit:cover}.kmop-listing h2{font:500 28px/1.2 var(--font-display)}.kmop-single-image img{width:100%;height:auto;max-height:630px;object-fit:cover;margin-bottom:50px}
@media(max-width:1270px){.desktop-nav{gap:0}.nav-trigger,.nav-simple{font-size:11px;padding:11px 7px}.header-button{font-size:10px;padding:11px}.wordmark img{max-width:108px}}
@media(max-width:1050px){
 .menu-toggle{display:flex}.desktop-nav{display:none}.header-main{justify-content:space-between}.header-actions{margin-left:auto}#menu-overlay{display:none}#menu-overlay.open{display:block}.mobile-navigation{padding-top:115px;padding-bottom:45px}.header-button.secondary{display:none}.lang-control{display:none!important}.mobile-nav-item .mobile-nav-direct,.mobile-nav-item .mobile-nav-trigger{font-size:clamp(25px,5vw,36px)}.kmop-listings{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){.header-main{height:69px}.wordmark img{max-width:95px;max-height:42px}.header-button.primary{font-size:10px;padding:10px 8px}.mobile-navigation{padding-top:92px}.hero h1{font-size:clamp(39px,9vw,64px);line-height:1.12}.hero{min-height:600px;height:90svh}.hero-cta{font-size:12px}.hero-progress button.kmop-hero-dot{width:22px}.news-grid,.kmop-listings{grid-template-columns:1fr}.news-side{grid-template-columns:1fr}.focus-grid{grid-template-columns:1fr}.focus-card{min-height:300px}.impact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{padding:28px 10px 24px 0;min-height:130px}.metric-value{font-size:30px}.testimonial-panel{height:480px;min-height:0;padding:26px}.kmop-testimonials{min-height:310px}.kmop-testimonial .test-quote{font-size:20px;max-height:295px}.project-card{flex-basis:85%;min-height:470px}.footer-top,.kmop-footer-links{grid-template-columns:1fr;gap:35px}.kmop-content-shell{padding-top:115px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Global palette from admin affects section surfaces too */
.impact-section{background:var(--navy)}.footer{background:var(--deep)}.focus-section,.collab-section{background:var(--mist)}
/* Keep the menu accessible for intermediate tablet widths where desktop navigation collapses. */
.lang-control a.lang-opt{padding:8px 5px;font-size:11px;font-weight:800;opacity:.6;color:inherit}
.lang-control a.lang-opt.active{opacity:1;text-decoration:underline;text-underline-offset:6px}
@media(max-width:1120px){.menu-toggle{display:flex}.desktop-nav{display:none}#menu-overlay.open{display:block}}

@media(max-width:1270px){.wordmark .kmop-header-logo{max-width:108px}}
@media(max-width:650px){.wordmark .kmop-header-logo{max-width:95px;max-height:42px}}

/* PATCH 003: position-preserving News grid, localized author profile */
.news-grid.no-featured{display:block}
.news-grid.no-featured .news-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.kmop-author-profile{display:flex;align-items:flex-start;gap:26px;max-width:980px;border-top:1px solid #dde7ef;margin-top:75px;padding-top:35px}
.kmop-author-photo{width:88px;height:88px;flex:0 0 88px;border-radius:100%;overflow:hidden;background:#edf3f9}
.kmop-author-photo img{height:100%;width:100%;object-fit:cover}
.kmop-author-overline{color:var(--blue);font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;margin:0 0 7px}
.kmop-author-details h2{font:500 26px/1.15 var(--font-display);letter-spacing:-.04em;margin:0 0 12px}
.kmop-author-bio{max-width:740px;color:var(--muted);font-size:14px;line-height:1.85}
.kmop-author-bio p{margin:0 0 12px}
@media(max-width:650px){.news-grid.no-featured .news-side{grid-template-columns:1fr}.kmop-author-profile{gap:17px}.kmop-author-photo{width:62px;height:62px;flex-basis:62px}}

/* PATCH 004 — More compact editorial typography, manual hero, 16:9 News grid. */
.hero h1{font-size:clamp(37px,5vw,72px);line-height:1.1;letter-spacing:-.055em;max-width:910px}
.hero-sub{font-size:clamp(13px,1.05vw,15px);line-height:1.6;max-width:490px}
.hero-cta{font-size:12px;padding:12px 17px}
.section-heading{font-size:clamp(34px,3.9vw,57px);letter-spacing:-.05em}
.focus-card .focus-title{font-size:clamp(21px,1.85vw,28px)}
.test-left .section-heading{font-size:clamp(33px,3.45vw,51px)}
.kmop-testimonial .test-quote{font-size:clamp(19px,1.55vw,25px);line-height:1.55}
.project-name{font-size:clamp(22px,1.85vw,29px)}
.impact-big .value{font-size:clamp(66px,8vw,118px)}
.metric-value{font-size:clamp(31px,2.75vw,47px)}
.impact-big .desc{font-size:14px}
.project-desc{font-size:13px;line-height:1.65}
.collab-text{font-size:clamp(38px,4.5vw,65px)}
.hero-controls .kmop-hero-count{font-family:var(--font-body);font-size:12px;font-weight:700;letter-spacing:.15em;color:#fff;min-width:80px;white-space:nowrap}
/* Main story on the left; three horizontal supporting stories at right. */
.news-section .news-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:clamp(22px,3vw,44px);align-items:start}
.news-section .news-side{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;align-content:start}
.news-section .news-grid .news-featured .news-image,.news-section .news-grid .news-small .news-image{aspect-ratio:16/9;width:100%;height:auto;min-height:0;overflow:hidden}
.news-section .news-grid .news-image img{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:16/9;transform:none!important;transition:none!important}
.news-section .news-featured:hover .news-image img,.news-section .news-small:hover .news-image img,.kmop-listing:hover img,.kmop-single-image:hover img{transform:none!important}
.news-section .news-grid .news-small{display:grid;grid-template-columns:minmax(130px,43%) minmax(0,1fr);align-items:center;gap:16px;border:0;margin:0;padding:0;min-width:0}
.news-section .news-grid .news-small .news-meta{margin:0 0 7px;font-size:9px}
.news-section .news-grid .news-small h3{font-size:clamp(14px,1.25vw,18px);line-height:1.32}
.news-section .news-grid .news-featured h3{font-size:clamp(24px,2.15vw,33px);line-height:1.22}
.news-section .news-grid .news-featured .news-meta{margin:15px 0 10px}
.news-section .news-grid.no-featured{grid-template-columns:1fr}
.news-section .news-grid.no-featured .news-side{grid-template-columns:minmax(0,1fr)}
@media(max-width:980px){
 .news-section .news-grid{grid-template-columns:1fr;gap:25px}
 .news-section .news-side{gap:16px}
 .news-section .news-grid .news-small{grid-template-columns:minmax(160px,34%) minmax(0,1fr)}
}
@media(max-width:650px){
 .hero h1{font-size:clamp(33px,7.5vw,49px);line-height:1.12}
 .hero-sub{font-size:13px}
 .section-heading{font-size:clamp(30px,8vw,41px)}
 .news-section .news-grid .news-small{grid-template-columns:minmax(105px,39%) minmax(0,1fr);gap:12px}
 .news-section .news-grid .news-featured h3{font-size:24px}
 .news-section .news-grid .news-small h3{font-size:14px}
 .news-section .news-grid .news-small .news-meta{font-size:8px}
 .focus-card .focus-title{font-size:25px}
 .kmop-testimonial .test-quote{font-size:19px}
 .collab-text{font-size:clamp(34px,8vw,48px)}
 .impact-big .value{font-size:clamp(52px,12vw,84px)}
 .metric-value{font-size:30px}
}
