/*
Theme Name: Shelek Editorial Refresh
Description: Дочерняя тема оформления для сайта shelek.kz.
Template: shelek-editorial
Version: 1.6.2
Requires at least: 6.6
Requires PHP: 8.0
*/
:root{--paper:#f1f6fb;--white:#fff;--ink:#15344f;--muted:#526e83;--line:#c8dce9;--green:#126397;--green-dark:#094d78;--accent:#317fae;--cream:#e4f2fa}
html{scroll-behavior:auto}
body{color:var(--ink);background:var(--paper);line-height:1.6}
.portal-nav-shell{border:1px solid rgba(255,255,255,.72);box-shadow:0 12px 30px rgba(15,52,78,.16)}
.portal-nav a{min-height:44px;display:inline-flex;align-items:center}
.portal-hero h1,.section-heading h2,.portal-about h2,.directory-feature h2,.ads-panel h2{text-wrap:balance;line-height:1.1}
.portal-hero-lead,.portal-about p,.directory-feature p,.ads-panel p{max-width:68ch;line-height:1.6;text-wrap:pretty}
.portal-button,.portal-tile,.portal-nav a{transition:background-color 150ms ease-out,color 150ms ease-out}
:where(a,button,input,select,textarea):focus-visible{outline:3px solid #0b5b91;outline-offset:4px}
.portal-button{min-height:48px}
.portal-tile,.news-card{min-width:0}
.portal-intro-grid,.portal-about-grid,.directory-grid{min-width:0}
input,select,textarea{font-size:1rem}
img:not([src$=".svg"]){outline:1px solid rgba(0,0,0,.1);outline-offset:-1px}
@media(hover:hover){.portal-tile:hover{box-shadow:0 14px 30px rgba(15,52,78,.13)}}
@media(max-width:800px){.portal-nav-shell{padding:14px}.site-nav.portal-nav{flex-wrap:wrap;overflow-x:visible}.portal-hero h1{overflow-wrap:anywhere}}
@media(max-width:600px){.portal-hero{min-height:620px}.portal-hero-content{padding-top:170px;padding-bottom:85px}.portal-hero h1{font-size:clamp(2.75rem,12vw,4.5rem)}.portal-about h2,.section-heading h2,.directory-feature h2{font-size:clamp(2rem,9vw,3rem)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:0s!important;animation-duration:0s!important}}
/* Mobile emergency directory: one service per horizontal row. */
@media(max-width:1050px){
 #emergency.directory-section-emergency .directory-grid{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:10px}
 #emergency.directory-section-emergency .directory-card{width:100%;height:auto;min-height:0;border-radius:12px}
 #emergency.directory-section-emergency .directory-card-body{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;gap:16px;min-height:78px;padding:16px 20px}
 #emergency.directory-section-emergency .directory-card h3{min-height:0!important;height:auto;margin:0;color:#fff;font-size:1.0625rem;line-height:1.35;font-weight:700;letter-spacing:-.01em;overflow-wrap:break-word}
 #emergency.directory-section-emergency .directory-phone{display:inline-flex;align-items:center;justify-content:flex-end;gap:8px;min-height:44px;margin:0!important;padding:4px 0;color:#fff;font:750 1.125rem/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;white-space:nowrap;font-variant-numeric:tabular-nums}
 #emergency.directory-section-emergency .directory-phone span{display:inline;font-size:1rem}
 #emergency.directory-section-emergency .directory-phone:focus-visible{outline:3px solid #fff;outline-offset:4px;border-radius:4px}
}
@media(max-width:380px){
 #emergency.directory-section-emergency .directory-card-body{gap:10px;padding:14px}
 #emergency.directory-section-emergency .directory-card h3{font-size:.9375rem}
 #emergency.directory-section-emergency .directory-phone{font-size:1rem;gap:5px}
}
/* The mobile navigation wraps to two rows; leave room above the hero copy. */
@media(max-width:600px){
 .portal-hero-content{padding-top:220px}
 .portal-hero .portal-kicker{max-width:34ch}
 .news-layout,.news-side,.archive-grid{min-width:0}
 .news-card-body{min-width:0;overflow-wrap:break-word}
}


