/* A quieter, village-led visual layer. Button size and order still come from
   the WordPress "Кнопки сайта" controls. */
:root{--paper:#f6f7f2;--white:#fffefa;--ink:#203632;--muted:#5f716b;--line:#d9e2d9;--green:#326c58;--green-dark:#245341;--accent:#aa744b;--cream:#e9eee5;--sb-primary-bg:#326c58;--sb-dark-bg:#203d35;--sb-light-text:#214f40;--sb-plain-text:#294f43}
body{background:var(--paper);color:var(--ink)}
.site-header.portal-header{background:var(--paper)}
.site-header.portal-header-overlay{background:transparent}
.portal-nav-shell{min-height:68px;margin-top:14px;border:1px solid #ffffffeb;border-radius:16px;background:#f9faf6f2;box-shadow:0 8px 24px #10281d1f;backdrop-filter:none;-webkit-backdrop-filter:none}
.portal-brand,.portal-brand:hover{color:var(--ink)}
.portal-brand-mark{background:#2e705b;box-shadow:none;border-radius:11px}
.portal-brand-text small{color:#698077}
.portal-nav a{color:#35564b}
.portal-nav a:hover,.portal-nav a[aria-current="page"],.shelek-button--plain:hover,.shelek-button--plain[aria-current=page]{background:#e6eee6;color:#1e5743}
.site-nav.portal-nav .nav-ads{background:#275b49;color:#fff}
.site-nav.portal-nav .nav-ads:hover{background:#1d4738}
.portal-kicker{color:#3b765c}
.portal-hero{min-height:640px;border-radius:0 0 22px 22px;background-image:linear-gradient(90deg,#122b29e8 0%,#18352ebf 36%,#15342e40 100%),url('../../shelek-editorial/assets/place/shelek-hero.webp');background-position:center 47%}
.portal-hero::after{height:140px;background:linear-gradient(transparent,#142d285e)}
.portal-hero-content{padding-top:155px;padding-bottom:112px}
.portal-hero .portal-kicker,.village-hero .portal-kicker{color:#dcead8}
.portal-hero h1{max-width:760px;margin:18px 0 16px;font-size:clamp(4.1rem,7.2vw,6.3rem);line-height:1.02;letter-spacing:-.065em}
.portal-hero-lead{color:#edf4ec;font-size:clamp(1.1rem,1.75vw,1.32rem)}
.portal-hero-actions{margin-top:28px}
.portal-button,.shelek-button{box-shadow:none}
.portal-hero .shelek-button--light{color:#214f40}
.portal-hero .shelek-button--light:hover{background:#f0f3e9;color:#214f40}
.portal-hero .shelek-button--outline{backdrop-filter:none;background:#183b327a}
.portal-hero .shelek-button--outline:hover{background:#e9f3e124}
.portal-intro{margin-top:-42px}
.portal-intro-grid{gap:12px}
.portal-tile{min-height:190px;border-color:#dce5db;border-radius:15px;box-shadow:0 8px 20px #1d3c2a0c}
.portal-tile:hover{box-shadow:0 15px 28px #1d3c2a1a}
.portal-tile-number{color:#4a8065}
.portal-tile b{background:#e9f1e9;color:#2c6952}
.portal-about{padding:96px 0 86px}
.portal-about-grid{gap:54px}
.portal-about h2{font-size:clamp(2.75rem,4.3vw,4.1rem)}
.portal-about h2 em{color:#39725b}
.portal-about-copy>p:not(.portal-kicker){color:var(--muted);font-size:1.08rem}
.portal-about-photo{height:390px;border-radius:16px;box-shadow:0 16px 30px #1d3c2a17}
.portal-about-photo figcaption{background:#fffefaed;color:#35574a;backdrop-filter:none}
.section.portal-news{padding:80px 0 88px;background:#fffefa}
.section-heading h2,.archive-intro h1{font-size:clamp(2.7rem,4.5vw,4rem)}
.section-heading a{color:#2d6952;border-color:#2d6952}
.news-layout{grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);gap:16px}
.news-side{gap:16px}
.news-card,.news-side .news-card{border-color:#dce5dd;border-radius:14px;box-shadow:none}
.news-card:hover{box-shadow:0 13px 28px #173e2814}
.news-card-meta{color:#39755c}
.news-card:not(:has(.news-card-image)).news-card-feature{display:flex;align-items:flex-end;min-height:570px;background:#e8eee5}
.news-card:not(:has(.news-card-image)).news-card-feature .news-card-body{padding:34px}
.news-card:not(:has(.news-card-image)).news-card-feature h3{max-width:15ch;font-size:clamp(2rem,3.1vw,3rem)}
.news-side .news-card{grid-template-columns:36% 1fr}
.news-side .news-card-body{padding:18px 20px}
.news-side h3{font-size:1.3rem}
.directory-feature,.ads-band{background:#edf1e9}
.directory-feature{padding:74px 0}
.directory-feature h2{font-size:clamp(2.7rem,4.5vw,4rem)}
.directory-feature p:last-child{color:var(--muted)}
.ads-band{padding:0 0 74px}
.ads-panel{padding:48px 55px;border-radius:16px;background:#214a3b}
.ads-panel .portal-kicker{color:#c4ddc3}
.ads-panel p:last-child{color:#d8e7d8}
.ads-panel .shelek-button--light{color:#214f40}
.site-footer{background:#213d33}
.portal-footer-brand>a span{color:#a7cfae}
.portal-footer-brand p,.photo-credits{color:#d1dfd1}
.archive-intro,.directory-hero{background:#e9eee5;border-radius:0 0 20px 20px}
.archive-intro .eyebrow,.directory-hero .eyebrow{color:#39755c}
.directory-jump a{border-color:#cadaca;color:#2b684f}
.directory-jump a:hover{background:#2e6c52}
.directory-jump .shelek-button{border-color:#cbdccc;background:#fffefa;color:#2b684f}
.directory-jump .shelek-button:hover{background:#2e6c52;color:#fff}
.directory-lead .wp-block-button__link{background:#2e7456;color:#fff}
.directory-lead .wp-block-button__link:hover{background:#22583f;color:#fff}
.directory-lead .wp-block-button__link[style*="#25d366"]{background-color:#2e7456!important;color:#fff!important}
.directory-card{border-color:#dce5dd;box-shadow:none}
.directory-section-emergency .directory-card{background:#285b48;border-color:#285b48}
.directory-section-emergency .directory-phone{color:#fff}
.village-hero{min-height:490px;background-image:linear-gradient(90deg,#122e29d9,#1b453850),url('../../shelek-editorial/assets/place/bartogay.webp')}
.village-copy{color:#415b4f}
.village-aside-card{border-color:#dce5dd}
:where(a,button,input,select,textarea):focus-visible{outline-color:#276b4d}
@media(max-width:800px){
 .site-nav.portal-nav{flex-wrap:nowrap!important;justify-content:flex-start;overflow-x:auto!important;scrollbar-width:thin;white-space:nowrap;padding-bottom:3px}
 .portal-nav .shelek-button--plain,.portal-nav .shelek-button--dark,.portal-nav .shelek-button--primary{flex:none!important;margin-left:0}
 .portal-nav-shell{padding:10px 12px}
 .portal-brand{margin-bottom:8px}
 .portal-hero{min-height:610px}
 .portal-hero-content{padding-top:165px;padding-bottom:95px}
 .portal-about{padding:72px 0}
 .portal-about-photo{height:320px}
 .news-layout{grid-template-columns:1fr}
 .news-card:not(:has(.news-card-image)).news-card-feature{min-height:330px}
}
@media(max-width:600px){
 .portal-nav-shell{margin-top:9px;border-radius:13px}
 .site-nav.portal-nav{width:100%;gap:2px;flex-wrap:wrap!important;overflow:visible!important;justify-content:flex-start}
 .portal-nav .shelek-button{min-height:38px;padding:8px 10px}
 .portal-nav .shelek-button--plain{flex:1 1 auto!important;justify-content:center}
 .portal-nav .shelek-button--dark,.portal-nav .shelek-button--primary{flex:1 1 auto!important}
 .portal-hero{min-height:610px;background-position:55% center}
 .portal-hero-content{padding-top:195px;padding-bottom:85px}
 .portal-hero h1{font-size:clamp(3.2rem,12vw,4rem);overflow-wrap:normal}
 .portal-hero-lead{font-size:1.05rem}
 .portal-hero-actions{gap:9px;margin-top:25px}
 .portal-intro{margin-top:-28px}
 .portal-tile{min-height:145px}
 .portal-about h2,.section-heading h2,.directory-feature h2{font-size:clamp(2.25rem,9vw,3.25rem)}
 .portal-about-photo{height:260px}
 .section.portal-news{padding:64px 0}
 .news-card:not(:has(.news-card-image)).news-card-feature{min-height:270px}
 .news-card:not(:has(.news-card-image)).news-card-feature .news-card-body{padding:23px}
 .news-card:not(:has(.news-card-image)).news-card-feature h3{font-size:1.85rem}
 .news-side .news-card{grid-template-columns:36% 1fr}
 .news-side .news-card-image{height:100%}
 .news-side .news-card-body{padding:14px}
 .news-side h3{font-size:1.07rem}
 .news-side .news-card p{display:none}
 .directory-feature{padding:58px 0}
 .ads-panel{padding:31px 25px}
 .village-hero-inner{padding-top:165px}
}
@media(max-width:380px){.portal-hero h1{font-size:3.05rem}.portal-nav a{padding-inline:9px}}
@media(prefers-reduced-motion:no-preference){.portal-tile,.news-card,.portal-button,.shelek-button{transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,color .18s ease}}
@media(prefers-reduced-motion:reduce){.portal-tile,.news-card,.portal-button,.shelek-button{transition:none!important;transform:none!important}}

/* News cards use the full mobile width, including stories without photos. */
@media(max-width:680px){
 .portal-about{padding-bottom:38px}
 .section.portal-news{padding-top:42px}
 .news-layout,.news-side{grid-template-columns:minmax(0,1fr)}
 .news-side .news-card{grid-template-columns:minmax(0,1fr);min-height:0}
 .news-side .news-card-image{height:auto;aspect-ratio:16/9}
 .news-side .news-card-body{padding:20px}
 .news-card-meta{flex-wrap:wrap;gap:6px 14px}
 .news-card:not(:has(.news-card-image)).news-card-feature{display:block;min-height:0}
 .news-card:not(:has(.news-card-image)).news-card-feature .news-card-body{padding:22px}
 .news-card:not(:has(.news-card-image)).news-card-feature h3{max-width:none;font-size:clamp(1.45rem,6vw,1.9rem);line-height:1.2;overflow-wrap:normal;word-break:normal}
 .news-side h3{font-size:clamp(1.125rem,4.5vw,1.375rem);line-height:1.28;overflow-wrap:normal;word-break:normal}
 .portal-news .section-heading{align-items:center;text-align:center}
 .portal-news .section-heading>div:first-child{width:100%}
 .portal-news .section-heading .shelek-button-row{width:100%;justify-content:center}
}

