/* Selenginsk Daily RC5 — restrained native WordPress layout. */
body.sd5-theme{--sd5-bg:#e9eef1;--sd5-panel:#fff;--sd5-ink:#173442;--sd5-muted:#687982;--sd5-accent:#12677d;--sd5-hover:#0d5265;--sd5-line:#d3dfe4;background:var(--sd5-bg);color:var(--sd5-ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.45}
.sd5-icon{flex:none;display:inline-block;vertical-align:middle}
.sd5-container{width:min(calc(100% - 42px),1180px);margin-inline:auto}
.sd5-site-header{position:sticky;top:0;z-index:90;background:#fff;border-top:3px solid var(--sd5-accent);border-bottom:1px solid #dfe6e9}
.sd5-header-layout{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:67px}
.sd5-logo{display:flex;align-items:center;max-width:245px;flex-shrink:0}
.sd5-logo img{display:block;width:195px;max-height:52px;object-fit:contain;object-position:left center;height:auto}
.sd5-logo strong{font-size:23px;color:var(--sd5-accent)}
.sd5-top-links{display:flex;gap:24px;align-items:center;font-size:13px;font-weight:750;color:#254454}
.sd5-top-links>a{display:inline-flex;align-items:center;gap:7px;min-height:42px;white-space:nowrap}
.sd5-top-links>a:hover,.sd5-top-links>a:focus-visible{color:var(--sd5-accent)}
.sd5-header-mobile{display:none;align-items:center;gap:14px}
.sd5-header-mobile a,.sd5-header-mobile button{border:0;background:transparent;color:var(--sd5-ink);display:grid;place-items:center;padding:9px;min-height:42px;min-width:42px;cursor:pointer}
.sd5-home{font-size:14px;min-height:70vh;padding:0 0 42px}
.sd5-home-content{padding-top:27px}
.sd5-home p,.sd5-home h1,.sd5-home h2,.sd5-home h3{margin-top:0}
.sd5-intro{margin-bottom:26px}
.sd5-intro-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:11px;font-weight:750;letter-spacing:.065em;text-transform:uppercase;color:#7a8a91}
.sd5-weather{display:inline-flex;align-items:center;gap:4px;letter-spacing:0;text-transform:none;font-weight:750;color:var(--sd5-ink)}
.sd5-intro h1{font-size:clamp(23px,3vw,32px);line-height:1.2;letter-spacing:-.03em;color:#183748;margin:10px 0 4px;font-weight:800}
.sd5-intro>p{font-size:14px;margin:0 0 18px;color:var(--sd5-muted)}
.sd5-search{height:48px;display:flex;align-items:center;gap:12px;padding:4px 5px 4px 14px;border:1px solid #c9d6dc;background:#fff;border-radius:8px;box-shadow:0 1px 5px rgba(13,44,55,.035)}
.sd5-search>svg{color:#6b8390}
.sd5-search input{border:0;background:transparent;outline:0;flex:1;min-width:0;height:100%;font-size:14px;color:var(--sd5-ink)}
.sd5-search input::placeholder{color:#8b9aa2}
.sd5-search button,.sd5-solid-button{background:var(--sd5-accent);color:#fff;border:1px solid var(--sd5-accent);border-radius:6px;min-height:37px;padding:8px 19px;font-weight:800;font-size:13px;cursor:pointer;text-align:center}
.sd5-search button:hover,.sd5-solid-button:hover{background:var(--sd5-hover);color:#fff}
.sd5-quick{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border-radius:8px;border:1px solid var(--sd5-line);background:#fff;margin-top:14px;overflow:hidden;box-shadow:0 2px 6px rgba(23,52,66,.04)}
.sd5-quick a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:58px;color:#234454;font-size:13px;font-weight:750;border-right:1px solid #e3e9ec;padding:9px 5px;text-align:center}
.sd5-quick a:last-child{border-right:0}
.sd5-quick a svg{color:var(--sd5-accent)}
.sd5-quick a:hover,.sd5-quick a:focus-visible{background:#edf5f7}
.sd5-section{margin-top:29px}
.sd5-section-title{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:12px}
.sd5-section-title h2{border-left:3px solid var(--sd5-accent);font-size:20px;line-height:1.24;letter-spacing:-.012em;padding-left:12px;margin:0;color:#173744;font-weight:800}
.sd5-section-title>a{color:var(--sd5-accent);font-size:12px;font-weight:800;white-space:nowrap}
.sd5-section-title>span{font-size:12px;color:#84929a}
.sd5-section-title>a:hover{text-decoration:underline}
.sd5-three-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.sd5-now-card{border:1px solid var(--sd5-line);border-radius:8px;background:#fff;display:flex;align-items:flex-start;gap:12px;padding:16px;min-width:0;transition:border-color .15s,background .15s}
.sd5-now-card:hover{border-color:#a9c5d0;background:#fdfefe}
.sd5-now-card>svg{color:var(--sd5-accent);margin-top:2px}
.sd5-now-card>div{min-width:0;display:grid;gap:5px}
.sd5-now-card strong{display:block;color:#203e4d;font-size:14px;line-height:1.25;font-weight:800}
.sd5-now-card span{font-size:12px;color:#687b85;line-height:1.35;overflow-wrap:anywhere}
.sd5-now-card em{font-size:12px;color:var(--sd5-accent);font-weight:750;font-style:normal}
.sd5-two-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.sd5-panel{background:var(--sd5-panel);border:1px solid var(--sd5-line);border-radius:9px;overflow:hidden;min-width:0;box-shadow:0 1px 5px rgba(17,49,61,.03)}
.sd5-panel-head{display:flex;align-items:center;gap:9px;border-bottom:1px solid #e5ebee;min-height:48px;padding:10px 16px}
.sd5-panel-head>svg{color:var(--sd5-accent)}
.sd5-panel-head h3{font-size:15px;line-height:1.3;margin:0;font-weight:800;flex:1;min-width:0}
.sd5-panel-head>a{font-size:11px;white-space:nowrap;color:var(--sd5-accent);font-weight:750}
.sd5-row-list a{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 16px;border-bottom:1px solid #ebeff1;font-size:13px;font-weight:750;min-height:46px}
.sd5-row-list a svg{color:#7d919b}
.sd5-row-list a:last-child,.sd5-schedule-list a:last-child{border-bottom:0}
.sd5-row-list a:hover{color:var(--sd5-accent);background:#f8fbfc}
.sd5-schedule-list a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 16px;border-bottom:1px solid #edf1f2;min-height:59px}
.sd5-schedule-list a span{display:grid;gap:3px;min-width:0}
.sd5-schedule-list a strong{font-size:13px;line-height:1.26}
.sd5-schedule-list a small{font-size:11px;color:#7d8c93}
.sd5-schedule-list a b{font-size:11px;color:#77818a;max-width:95px;text-align:right;font-weight:650}
.sd5-schedule-list a b.is-valid{color:#22745a}
.sd5-empty{padding:17px;font-size:13px;color:var(--sd5-muted)}
.sd5-empty a{color:var(--sd5-accent);font-weight:750}
.sd5-alert{display:flex;align-items:center;gap:9px;background:#f9f1e4;border:1px solid #e7d6ba;color:#6b4c23;border-radius:8px;margin:22px 0 0;padding:13px 15px;font-size:13px}
.sd5-alert>span{flex:1}.sd5-alert a{display:flex;gap:3px;align-items:center;font-weight:750;white-space:nowrap}
.sd5-event-list{padding:7px 15px 11px}
.sd5-event-list a{display:flex;gap:12px;align-items:center;min-height:75px;border-bottom:1px solid #edf1f2;padding:10px 0}
.sd5-event-list a:last-child{border:0}
.sd5-event-list a img,.sd5-event-list .sd5-thumb-fallback{height:55px;width:62px;flex:0 0 62px;object-fit:cover;border-radius:6px;object-position:center;background:#e8eff1}
.sd5-event-list a>span:not(.sd5-thumb-fallback){min-width:0;display:grid;gap:2px}
.sd5-event-list a small{color:var(--sd5-accent);font-size:11px;font-weight:800}
.sd5-event-list a strong{color:var(--sd5-ink);font-size:13px;line-height:1.28}
.sd5-event-list a em{font-style:normal;color:var(--sd5-muted);font-size:11px}
.sd5-thumb-fallback{display:grid;place-items:center;color:#8da7b4}
.sd5-cinema-track{display:flex;gap:9px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;padding:14px 14px 9px;scrollbar-color:#b9c9cf transparent;scrollbar-width:thin}
.sd5-film{flex:0 0 230px;display:flex;gap:10px;overflow:hidden;border:1px solid #e0e7e9;border-radius:8px;background:#fff;min-height:105px;scroll-snap-align:start;padding:7px}
.sd5-film img,.sd5-film-poster{width:63px;height:90px;flex:0 0 63px;object-fit:cover;border-radius:5px;background:#e3edef;display:grid;place-items:center;color:#577885}
.sd5-film-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.sd5-film-info strong{font-size:12px;line-height:1.22;color:var(--sd5-ink);font-weight:800;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sd5-film-info small{color:#87959c;font-size:10px;line-height:1.23;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sd5-showtimes{display:flex;gap:3px;flex-wrap:wrap;margin-top:auto;padding-top:7px}
.sd5-showtimes span{font-size:10px;color:#1c5d73;background:#e6f0f3;border-radius:3px;padding:4px;font-weight:800;white-space:nowrap}
.sd5-small-note{font-size:10px;color:#8a989e;padding:3px 14px 12px}
.sd5-directory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:18px;row-gap:0;padding:10px 18px}
.sd5-directory-grid a{display:flex;align-items:center;gap:9px;padding:13px 2px;border-bottom:1px solid #edf1f2;min-width:0;color:#2a4857;font-size:13px;font-weight:700}
.sd5-directory-grid a:hover{color:var(--sd5-accent)}
.sd5-directory-grid a svg{color:var(--sd5-accent)}
.sd5-directory-grid a:nth-last-child(-n+4){border-bottom:0}
.sd5-lower-grid{margin-top:18px}
.sd5-news-feature{display:flex;align-items:center;gap:13px;padding:17px}
.sd5-news-feature>img,.sd5-news-feature>.sd5-thumb-fallback{height:62px;width:80px;object-fit:cover;flex:0 0 80px;border-radius:5px;background:#e8eff1}
.sd5-news-feature>.sd5-news-copy{min-width:0;flex:1;display:grid;gap:5px}
.sd5-news-feature small{font-size:10px;color:#86969d}
.sd5-news-feature strong{font-size:13px}
.sd5-news-feature>svg{color:var(--sd5-accent)}
.sd5-ad-body{padding:18px;min-height:107px;display:flex;flex-direction:column;gap:9px;align-items:flex-start}
.sd5-ad-body>a:not(.sd5-small-button){font-size:13px;font-weight:750}
.sd5-ad-body p{margin:0;color:var(--sd5-muted)}
.sd5-small-button,.sd5-memory-link{border:1px solid #bad0da;background:#fff;color:var(--sd5-accent);display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 11px;font-size:12px;font-weight:800;border-radius:5px}
.sd5-small-button:hover{background:#ebf3f5}
.sd5-text-panel{padding:19px;min-height:128px;display:flex;flex-direction:column;align-items:flex-start;gap:9px}
.sd5-text-panel h3{margin:0;color:var(--sd5-ink);font-size:15px;font-weight:800}
.sd5-text-panel p{margin:0;color:#778991;font-size:12px;flex:1}
.sd5-text-panel .sd5-solid-button{min-height:34px;display:inline-flex;align-items:center;padding:7px 12px}
.sd5-inline-link{color:var(--sd5-accent);font-size:12px;font-weight:800}
.sd5-last-grid{margin-bottom:15px}
.sd5-memory{background:#183f4e;color:#fff;border-color:#183f4e}
.sd5-memory h3{color:#fff}
.sd5-memory p{color:#c6d6dc}
.sd5-memory-link{background:#fff;color:#194656;border-color:#fff}
/* Preserve parent footer, cookies, analytics and legal links. */
.sd5-theme .site-footer{background:#fff;border-top:1px solid #d1dce0}
.sd5-theme .site-footer .footer-main{padding-top:23px}
.sd5-theme .site-footer .footer-brand{color:#173e4c}
/* Floating mobile navigation. */
.sd5-bottom-nav,.sd5-overlay,.sd5-sheet{display:none}
@media (max-width:900px){
 .sd5-top-links{gap:12px;font-size:12px}
 .sd5-logo img{width:167px}
 .sd5-directory-grid{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:10px}
}
@media (max-width:760px){
 body.sd5-theme{padding-bottom:calc(68px + env(safe-area-inset-bottom,0px))}
 .sd5-container{width:min(calc(100% - 26px),600px)}
 .sd5-site-header{top:0}
 .sd5-header-layout{min-height:57px}
 .sd5-logo img{width:165px;max-height:45px}
 .sd5-top-links{display:none}
 .sd5-header-mobile{display:flex}
 .sd5-home-content{padding-top:17px}
 .sd5-intro{margin-bottom:20px}
 .sd5-intro-meta{font-size:10px;gap:10px}
 .sd5-intro h1{font-size:23px;margin:9px 0 4px}
 .sd5-intro>p{font-size:12px;line-height:1.35;margin-bottom:13px}
 .sd5-search{height:44px;gap:9px;padding-left:12px}
 .sd5-search input{font-size:12px}
 .sd5-search button{min-height:34px;padding:7px 11px;font-size:12px}
 .sd5-quick{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:12px}
 .sd5-quick a{min-height:70px;flex-direction:column;gap:7px;border-right:1px solid #e5edef;border-bottom:1px solid #e5edef;font-size:11px;padding:11px 4px}
 .sd5-quick a:nth-child(3n){border-right:0}
 .sd5-quick a:nth-child(n+4){border-bottom:0}
 .sd5-quick a svg{width:22px;height:22px}
 .sd5-section{margin-top:24px}
 .sd5-section-title{align-items:flex-start;gap:6px;margin-bottom:10px}
 .sd5-section-title h2{font-size:17px;padding-left:9px;max-width:70%}
 .sd5-section-title a{font-size:10px;padding-top:4px}
 .sd5-section-title span{display:none}
 .sd5-three-grid,.sd5-two-grid{grid-template-columns:1fr;gap:9px}
 .sd5-now-card{padding:12px;min-height:82px}
 .sd5-now-card strong{font-size:13px}
 .sd5-now-card span,.sd5-now-card em{font-size:11px}
 .sd5-panel-head{min-height:46px;padding:10px 12px}
 .sd5-panel-head h3{font-size:14px}
 .sd5-panel-head>a{font-size:10px}
 .sd5-row-list a{padding:11px 12px;min-height:43px;font-size:12px}
 .sd5-schedule-list a{padding:10px 12px}
 .sd5-schedule-list a strong{font-size:12px}
 .sd5-event-list{padding:4px 12px}
 .sd5-event-list a{min-height:65px;gap:10px}
 .sd5-event-list a img,.sd5-event-list .sd5-thumb-fallback{width:50px;height:54px;flex-basis:50px}
 .sd5-event-list a strong{font-size:12px}
 .sd5-cinema-track{padding:11px 12px 8px}
 .sd5-film{flex-basis:218px}
 .sd5-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:6px 12px;column-gap:14px}
 .sd5-directory-grid a{font-size:11px;padding:13px 0}
 .sd5-directory-grid a:nth-last-child(-n+4){border-bottom:1px solid #edf1f2}
 .sd5-directory-grid a:nth-last-child(-n+2){border-bottom:0}
 .sd5-lower-grid{margin-top:10px}
 .sd5-text-panel{min-height:105px;padding:14px;gap:7px}
 .sd5-text-panel h3{font-size:14px}
 .sd5-text-panel p{font-size:12px}
 .sd5-home{padding-bottom:18px}
 .sd5-bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:980;background:#fff;border-top:1px solid #ccdade;box-shadow:0 -4px 18px rgba(25,60,74,.1);padding:5px 3px calc(5px + env(safe-area-inset-bottom,0px));min-height:65px}
 .sd5-bottom-nav>a,.sd5-bottom-nav>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:53px;padding:5px 0;border:0;background:none;color:#596e77;font-family:inherit;font-weight:700;font-size:10px;line-height:1.1;cursor:pointer}
 .sd5-bottom-nav .sd5-icon{width:21px;height:21px}
 .sd5-bottom-nav a.is-current{color:var(--sd5-accent)}
 .sd5-bottom-nav .sd5-primary-tab>svg{border-radius:50%;background:#12677d;color:white;width:30px;height:30px;padding:5px}
 .sd5-bottom-nav button:focus-visible,.sd5-bottom-nav a:focus-visible,.sd5-sheet a:focus-visible{outline:2px solid #12677d;outline-offset:-1px}
 .sd5-overlay{display:block;position:fixed;inset:0;background:rgba(10,32,42,.53);z-index:981;opacity:0;visibility:hidden;transition:opacity .22s ease,visibility .22s}
 .sd5-sheet{display:block;position:fixed;z-index:982;inset:auto 0 0;max-height:min(85dvh,700px);overflow-y:auto;overscroll-behavior:contain;background:#fff;border-radius:17px 17px 0 0;box-shadow:0 -14px 45px rgba(9,30,39,.2);padding:8px 16px calc(28px + env(safe-area-inset-bottom,0px));transform:translateY(105%);visibility:hidden;transition:transform .26s cubic-bezier(.2,.8,.2,1),visibility .26s}
 .sd5-theme.sd5-menu-open .sd5-overlay{opacity:1;visibility:visible}
 .sd5-theme.sd5-menu-open .sd5-sheet{transform:translateY(0);visibility:visible}
 .sd5-menu-open{overflow:hidden}
 .sd5-sheet-handle{width:42px;height:4px;border-radius:8px;background:#d3dfe4;margin:0 auto 13px}
 .sd5-sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #e3eaed;padding:0 0 13px}
 .sd5-sheet-heading h2{font-size:18px;margin:0;color:var(--sd5-ink)}
 .sd5-sheet-dismiss{height:35px;width:35px;background:#eff4f6;border:1px solid #dce5e9;border-radius:8px;display:grid;place-items:center;color:var(--sd5-ink);cursor:pointer}
 .sd5-sheet-content p{font-size:13px;color:#697b84;line-height:1.5;margin:15px 0 8px}
 .sd5-sheet-links{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:14px}
 .sd5-sheet-links a{border:1px solid #dce5e8;border-radius:8px;min-height:57px;display:flex;align-items:center;gap:8px;padding:11px 9px;color:#244451;font-size:12px;font-weight:700;min-width:0}
 .sd5-sheet-links a>span{flex:1}
 .sd5-sheet-links a>svg:first-child{color:var(--sd5-accent)}
 .sd5-sheet-links a>svg:last-child{color:#869aa2}
 .sd5-theme .cookie-consent{bottom:calc(70px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:350px){.sd5-container{width:calc(100% - 20px)}.sd5-directory-grid{column-gap:8px}.sd5-directory-grid a{font-size:10px}.sd5-quick a{font-size:10px}.sd5-sheet-links a{font-size:11px}}
@media(prefers-reduced-motion:reduce){.sd5-overlay,.sd5-sheet,.sd5-now-card{transition:none!important}}

/* RC6: corrections after the first real mobile preview. */
.sd5-news-feature{min-height:60px;padding:13px 16px}
.sd5-news-feature>.sd5-news-copy{flex:1;min-width:0;overflow-wrap:anywhere}
.sd5-news-feature>svg{flex:none}
.sd5-memory h3{line-height:1.3}
.sd5-memory .sd5-memory-link{align-self:flex-start}
.sd5-cinema-track{align-items:flex-start;scroll-padding-inline:12px}
.sd5-film{min-height:0;align-items:flex-start;box-sizing:border-box}
.sd5-film-info{gap:4px}
.sd5-showtimes{margin-top:0;padding-top:3px}
@media (max-width:480px){
 .sd5-cinema-track{padding-inline:12px;gap:9px}
 .sd5-film{flex:0 0 calc(100% - 48px)}
 .sd5-film:only-child{flex-basis:100%}
}

/* RC7: independent resident request form */
.sd5-sheet-content[hidden],.sd5-request-form [hidden]{display:none!important}
.sd5-request-form{display:grid;gap:8px;padding-top:16px;box-sizing:border-box}
.sd5-request-form label{font-size:13px;font-weight:700;color:#244451}
.sd5-request-form input:not([type=hidden]),.sd5-request-form textarea,.sd5-request-form select{display:block;width:100%;min-width:0;box-sizing:border-box;border:1px solid #bdcdd3;border-radius:8px;padding:11px 12px;color:#193642;background:#fff;font:inherit;font-size:16px;margin:0 0 5px}
.sd5-request-form textarea{resize:vertical;min-height:110px}
.sd5-request-form .sd5-request-note{font-size:12px;line-height:1.5;margin:2px 0 6px;color:#536972}
.sd5-request-form .sd5-request-note a{text-decoration:underline;color:#12677d}
.sd5-request-form button{cursor:pointer;min-height:44px}
.sd5-request-form button:disabled{opacity:.6;cursor:wait}
.sd5-request-form [data-srr-status]{color:#193642;background:#edf3f5;border:1px solid #cedce1;padding:10px;border-radius:8px;margin:4px 0}
.sd5-sheet-links button{border:1px solid #dce5e8;border-radius:8px;min-height:57px;display:flex;align-items:center;gap:8px;padding:11px 9px;color:#244451;font:inherit;font-size:12px;font-weight:700;min-width:0;background:#fff;cursor:pointer;text-align:left}
.sd5-sheet-links button span{flex:1}.sd5-sheet-links button svg:first-child{color:#12677d}.sd5-sheet-links button svg:last-child{color:#869aa2}
.sd5-text-panel button.sd5-small-button{cursor:pointer;font-family:inherit;align-self:flex-start}
@media(min-width:761px){
 .sd5-theme.sd5-menu-open{overflow:hidden}
 .sd5-theme.sd5-menu-open .sd5-overlay{display:block;position:fixed;inset:0;background:rgba(10,32,42,.53);z-index:981}
 .sd5-theme.sd5-menu-open .sd5-sheet{display:block;position:fixed;z-index:982;top:50%;left:50%;width:min(520px,calc(100% - 32px));max-height:85dvh;overflow:auto;transform:translate(-50%,-50%);background:#fff;border-radius:14px;padding:20px;box-sizing:border-box;box-shadow:0 12px 50px #09242d44}
 .sd5-sheet-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #dce5e8;padding-bottom:12px}.sd5-sheet-heading h2{margin:0;font-size:20px}.sd5-sheet-dismiss{border:1px solid #dce5e8;border-radius:8px;background:#eff4f6;padding:8px;cursor:pointer}
}

/* RC8: one-tap creation actions */
.sd5-sheet-links.sd5-add-links{grid-template-columns:1fr;gap:7px}
.sd5-sheet-links.sd5-add-links :is(a,button){min-height:48px;padding:10px 13px;font-size:14px;line-height:1.35}
.sd5-sheet-links.sd5-add-links :is(a,button):focus-visible,.sd5-request-back:focus-visible{outline:2px solid #12677d;outline-offset:2px}
.sd5-request-back{display:inline-flex;align-items:center;min-height:40px;padding:7px 0;color:#12677d;background:none;border:0;font:inherit;font-size:14px;font-weight:600;cursor:pointer}


/* RC18: shared shell, no overrides of individual social-module controls. */
.sd5-theme .sd5-site-header{flex-shrink:0}
.sd5-theme .sd5-header-layout{min-width:0;gap:14px}
.sd5-theme .sd5-top-links{gap:15px;min-width:0}
.sd5-header-action{display:grid;place-items:center;flex:none;width:38px;height:38px;border:1px solid #dce5e8;border-radius:8px;background:#fff;color:var(--sd5-accent);cursor:pointer;padding:0}
.sd5-header-action:hover,.sd5-header-mobile :is(a,button):hover{background:#edf4f6}
.sd5-theme .sd5-site-header :is(a,button):focus-visible{outline:2px solid var(--sd5-accent);outline-offset:2px;border-radius:6px}
.sd5-theme #sd5-search{scroll-margin-top:90px}
.sd5-theme.admin-bar .sd5-site-header{top:32px}
.sd5-theme.admin-bar #sd5-search{scroll-margin-top:122px}
.sd5-theme:not(.sd5-front) .site-main .shell{width:min(calc(100% - 42px),1180px)}
.sd5-theme:not(.sd5-front) .site-main .shell.narrow{max-width:880px}
.sd5-theme:not(.sd5-front) .site-main .content-section{padding-top:24px;padding-bottom:38px}
.sd5-theme:not(.sd5-front) .site-main .page-head h1{font-size:clamp(25px,3vw,34px);line-height:1.2;letter-spacing:-.02em;color:var(--sd5-ink);margin-bottom:20px;overflow-wrap:anywhere}
.sd5-theme .breadcrumbs{gap:6px;color:#63757e;font-size:12px;line-height:1.5;margin:0 0 16px;min-width:0;overflow-wrap:anywhere}
.sd5-theme .breadcrumbs a{color:var(--sd5-accent);font-weight:650}
.sd5-theme .breadcrumbs-sep{color:#82949b}
.sd5-theme .content-return{margin-top:24px;padding-top:14px;border-color:#dce5e8}
.sd5-theme .content-return a:not(.content-return-button){color:var(--sd5-accent)}
.sd5-theme .site-footer .shell{width:min(calc(100% - 42px),1180px)}
.sd5-theme .site-footer{padding:10px 0 18px;color:var(--sd5-ink)}
.sd5-theme .site-footer .footer-main{gap:30px}
.sd5-theme .footer-nav-group h2{color:#546d78;font-size:12px;letter-spacing:.035em;text-transform:none;margin-bottom:10px}
.sd5-theme .footer-nav-group a{color:var(--sd5-accent);font-weight:600;font-size:13px;overflow-wrap:anywhere}
.sd5-theme .footer-bottom-row{margin-top:22px;padding-top:14px;gap:12px}
.sd5-theme .footer-identity-copy p,.sd5-theme .footer-description-text{overflow-wrap:anywhere}
.sd5-custom-sections{border-top:1px solid #dce5e8;margin-top:16px;padding-top:8px}
.sd5-custom-sections ul{margin:0;padding:0;list-style:none}
.sd5-custom-sections ul ul{padding-left:16px}
.sd5-custom-sections a{display:block;color:var(--sd5-accent);font-size:13px;padding:8px 0;overflow-wrap:anywhere}
.sd5-theme .sd5-bottom-nav a.is-current{background:#edf4f6;border-radius:8px}
@media (min-width:1151px){.sd5-theme .sd5-header-mobile{display:none}}
@media (min-width:761px) and (max-width:1150px){
 .sd5-theme .sd5-top-links{display:none}
 .sd5-theme .sd5-header-mobile{display:flex;gap:6px}
}
@media (max-width:782px){.sd5-theme.admin-bar .sd5-site-header{top:46px}.sd5-theme.admin-bar #sd5-search{scroll-margin-top:136px}}
@media (max-width:760px){
 .sd5-theme .sd5-header-layout{gap:8px}
 .sd5-theme .sd5-header-mobile{gap:4px}
 .sd5-theme .sd5-header-mobile .sd5-tablet-only{display:none}
 .sd5-theme .sd5-logo{min-width:0;max-width:calc(100% - 96px)}
 .sd5-theme .sd5-logo img{max-width:100%}
 .sd5-theme:not(.sd5-front) .site-main .shell,.sd5-theme .site-footer .shell{width:calc(100% - 26px)}
 .sd5-theme:not(.sd5-front) .site-main .content-section{padding-top:16px;padding-bottom:26px}
 .sd5-theme .breadcrumbs{margin-bottom:12px}
 .sd5-theme .site-footer .footer-main{gap:20px}
 .sd5-theme .footer-navigation{gap:18px 14px}
 .sd5-theme .footer-nav-group ul{gap:7px}
}
@media (max-width:600px){.sd5-theme.admin-bar .sd5-site-header{top:0}.sd5-theme.admin-bar #sd5-search{scroll-margin-top:90px}}
@media (max-width:350px){.sd5-theme:not(.sd5-front) .site-main .shell,.sd5-theme .site-footer .shell{width:calc(100% - 20px)}}


/* RC19: dark, high-contrast footer; keep the bottom navigation light. */
.sd5-theme .site-footer{background:#173442;color:#e3edf0;border-top:1px solid #294c5b;padding-top:20px}
.sd5-theme .site-footer .footer-brand{color:#fff}
.sd5-theme .site-footer :is(.footer-identity-copy p,.footer-description-text,.footer-note,.footer-bottom-row){color:#c4d5dc}
.sd5-theme .site-footer .footer-nav-group h2{color:#b4cbd3}
.sd5-theme .site-footer a,.sd5-theme .site-footer .footer-nav-group a{color:#edf6f8}
.sd5-theme .site-footer a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.sd5-theme .site-footer a:focus-visible{outline:2px solid #e3edf0;outline-offset:3px}
.sd5-theme .site-footer :is(.footer-extra,.footer-bottom-row){border-color:#3c5965}
.sd5-theme .sd5-add-links{grid-template-columns:minmax(0,1fr)}
.sd5-theme .sd5-add-links :is(a,button){min-height:44px;background:#fff;box-sizing:border-box;overflow-wrap:anywhere}
.sd5-theme .sd5-add-links :is(a,button):hover{background:#edf4f6}
.sd5-theme .sd5-add-links svg{flex-shrink:0}
.sd5-theme .sca-create,.sd5-theme #directory-add-organization,.sd5-theme #slf-compose{scroll-margin-top:100px}

/* RC21: directory and public organization pages only. Keep parent markup and handlers. */
.sd5-theme .directory-page,.sd5-theme .organization-single{--dir-line:var(--sd5-line);--dir-soft:#eef3f5;--dir-accent:var(--sd5-accent);color:var(--sd5-ink)}
.sd5-theme .directory-page .shell{width:min(calc(100% - 42px),1180px);box-sizing:border-box}
.sd5-theme .directory-breadcrumb-wrap{padding-top:20px}
.sd5-theme .directory-hero{padding-top:10px}
.sd5-theme .directory-hero>h1{font-size:clamp(26px,3.3vw,36px);line-height:1.16;letter-spacing:-.02em;color:var(--sd5-ink);overflow-wrap:anywhere;margin:5px 0 10px}
.sd5-theme .directory-hero>.eyebrow,.sd5-theme .directory-help-strip .eyebrow{color:var(--sd5-accent);font-size:12px;letter-spacing:.02em}
.sd5-theme .directory-hero>p{font-size:15px;line-height:1.5;margin-bottom:16px;color:#516973}
.sd5-theme .directory-search{grid-template-columns:minmax(0,1fr) minmax(0,230px) auto auto;gap:8px;align-items:center}
.sd5-theme .directory-search-box,.sd5-theme .directory-filter-wrap{min-width:0;width:100%;box-sizing:border-box}
.sd5-theme .directory-search-box{height:44px;border:1px solid var(--dir-line);border-radius:9px;box-shadow:none;background:#fff}
.sd5-theme .directory-search-box>span{color:var(--dir-accent)}
.sd5-theme .directory-search-box:focus-within{outline:2px solid var(--dir-accent);outline-offset:1px}
.sd5-theme .directory-search .directory-filter-select{min-width:0;max-width:100%;width:100%;height:44px;border-color:var(--dir-line)!important;border-radius:9px!important;color:var(--sd5-ink)!important}
.sd5-theme .directory-search .directory-search-submit{min-height:44px;background:var(--dir-accent)!important;color:#fff!important;border-color:var(--dir-accent)!important;border-radius:9px!important}
.sd5-theme .directory-search .directory-search-submit:hover{background:var(--sd5-hover)!important}
.sd5-theme .directory-search .directory-search-submit:focus-visible{outline:2px solid var(--dir-accent)!important;outline-offset:2px}
.sd5-theme .directory-reset{color:var(--dir-accent);font-weight:650}
.sd5-theme .directory-add-toggle{background:#fff;border:1px solid var(--dir-line);box-shadow:none;color:var(--dir-accent);border-radius:9px;max-width:100%;text-align:left}
.sd5-theme .directory-add-toggle-icon{background:var(--dir-soft);color:var(--dir-accent)}
.sd5-theme .directory-add-toggle:hover{background:var(--dir-soft);box-shadow:none}
.sd5-theme .directory-category-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.sd5-theme .directory-category-tile{min-width:0;min-height:58px;background:#fff;border:1px solid var(--dir-line);border-radius:10px;color:var(--sd5-ink);font-weight:650;overflow-wrap:anywhere;box-shadow:none;transform:none;text-decoration:none}
.sd5-theme .directory-category-tile>span:last-child{min-width:0}
.sd5-theme .directory-category-tile:hover,.sd5-theme .directory-category-tile.is-active{background:#e2eef1;border-color:#96b9c3;color:var(--dir-accent);transform:none}
.sd5-theme .directory-category-icon{background:var(--dir-soft)!important;color:var(--dir-accent)!important;border:1px solid var(--dir-line)}
.sd5-theme .directory-results-head{align-items:center;flex-wrap:wrap;gap:8px}
.sd5-theme .directory-results-head h2{color:var(--sd5-ink);font-size:21px}
.sd5-theme .directory-current-filter{background:#dfecef;color:var(--dir-accent);max-width:100%;overflow-wrap:anywhere}
.sd5-theme .directory-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.sd5-theme .directory-card{min-width:0;border-radius:12px;border-color:var(--dir-line);box-shadow:none}
.sd5-theme .directory-card:not(.is-draft){background:#fff;border-color:var(--dir-line)}
.sd5-theme .directory-card-main{min-width:0;padding:16px;text-decoration:none;color:var(--sd5-ink)}
.sd5-theme .directory-card-main:hover{text-decoration:none}
.sd5-theme .directory-card-main:hover h3{color:var(--dir-accent);text-decoration:underline;text-underline-offset:3px}
.sd5-theme .directory-card-top{align-items:center;min-width:0}
.sd5-theme .directory-card-badges{min-width:0;max-width:calc(100% - 60px);text-align:right}
.sd5-theme .directory-card-badges .status-badge{white-space:normal;overflow-wrap:anywhere;line-height:1.25;text-align:right}
.sd5-theme .directory-card-icon{width:48px;height:48px;flex:0 0 48px;box-sizing:border-box;border-radius:10px}
.sd5-theme .directory-card .directory-card-icon.is-category-fallback{background:var(--dir-soft)!important;color:var(--dir-accent)!important;border-color:var(--dir-line)}
.sd5-theme .directory-card-main>small{color:#516973;font-size:12px;margin-top:12px}
.sd5-theme .directory-card-main h3{color:var(--sd5-ink);font-size:19px;line-height:1.25;overflow-wrap:anywhere}
.sd5-theme .directory-card-meta{color:#516973;line-height:1.5;overflow-wrap:anywhere}
.sd5-theme .directory-card-meta strong{color:var(--sd5-ink)}
.sd5-theme .directory-card-action{--action-bg:var(--dir-soft);--action-border:var(--dir-line);--action-color:var(--dir-accent);margin-top:auto;align-self:flex-start;max-width:100%;min-height:34px;box-sizing:border-box;white-space:normal;line-height:1.3}
.sd5-theme .directory-pagination .current{background:var(--dir-accent);border-color:var(--dir-accent);color:#fff}
.sd5-theme .directory-pagination a{color:var(--dir-accent)}
.sd5-theme .directory-help-strip,.sd5-theme .directory-empty{background:#fff;border:1px solid var(--dir-line);border-radius:12px;box-shadow:none}
.sd5-theme .directory-help-strip h2{font-size:21px;color:var(--sd5-ink)}
.sd5-theme .organization-single{width:min(calc(100% - 42px),880px);box-sizing:border-box}
.sd5-theme .organization-article{min-width:0;background:#fff;border:1px solid var(--dir-line);border-radius:14px;box-shadow:none;padding:24px}
.sd5-theme .organization-title-row{align-items:flex-start;gap:14px;min-width:0}
.sd5-theme .organization-title-row>div{min-width:0}
.sd5-theme .organization-title-row h1{font-size:clamp(24px,3.2vw,34px);line-height:1.2;color:var(--sd5-ink);overflow-wrap:anywhere;letter-spacing:-.02em}
.sd5-theme .organization-title-row .eyebrow{color:var(--dir-accent);font-size:12px}
.sd5-theme .organization-big-icon{width:60px;height:60px;flex:0 0 60px;border-radius:12px;box-sizing:border-box}
.sd5-theme .organization-big-icon:not(.has-organization-logo){background:var(--dir-soft);color:var(--dir-accent)}
.sd5-theme .organization-statuses .status-badge{white-space:normal;overflow-wrap:anywhere;line-height:1.3}
.sd5-theme .organization-article .entry-content{min-width:0;overflow-wrap:anywhere}
.sd5-theme .organization-article .entry-content img{max-width:100%}
.sd5-theme .organization-article .entry-content a{color:var(--dir-accent);text-underline-offset:3px}
.sd5-theme .organization-article .single-cover img{border-radius:10px;max-width:100%;height:auto}
.sd5-theme .organization-article :is(.sel-directory-card,.sel-directory-feedback,.organization-source,.sco-media-public){background:var(--dir-soft);border:1px solid var(--dir-line);border-radius:10px;box-shadow:none;padding:14px;min-width:0;box-sizing:border-box;overflow-wrap:anywhere}
.sd5-theme .organization-article .sel-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sd5-theme .organization-article .sel-directory-item{min-width:0;overflow-wrap:anywhere}
.sd5-theme .organization-article .sco-social-links{gap:8px;align-items:center;flex-wrap:wrap}
.sd5-theme .organization-article .sco-social-links :is(a,button),.sd5-theme .organization-article .sco-card-link{max-width:100%;box-sizing:border-box;min-height:40px;line-height:1.35;white-space:normal;overflow-wrap:anywhere;text-decoration:none}
.sd5-theme .organization-article .sco-media-public h2{font-size:19px;color:var(--sd5-ink)}
.sd5-theme .organization-article .sco-media-grid{gap:8px;min-width:0}
.sd5-theme .organization-source a{min-width:0;color:var(--dir-accent);overflow-wrap:anywhere}
.sd5-theme .directory-page :is(a,button,select):focus-visible,.sd5-theme .organization-single :is(a,button):focus-visible{outline:2px solid var(--dir-accent);outline-offset:2px}
@media(max-width:980px){.sd5-theme .directory-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sd5-theme .directory-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sd5-theme .directory-search{grid-template-columns:minmax(0,1fr) minmax(0,200px) auto}.sd5-theme .directory-reset{grid-column:1/-1}}
@media(max-width:760px){.sd5-theme .directory-page .shell,.sd5-theme .organization-single{width:calc(100% - 26px)}.sd5-theme .directory-breadcrumb-wrap{padding-top:16px}.sd5-theme .directory-hero{padding-top:4px}.sd5-theme .directory-search{grid-template-columns:minmax(0,1fr) auto}.sd5-theme .directory-search-box{grid-column:1/-1}.sd5-theme .directory-search .directory-search-submit{padding-inline:14px;min-width:76px;width:auto}.sd5-theme .directory-reset{grid-column:1/-1;justify-self:start}.sd5-theme .directory-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sd5-theme .directory-category-tile{padding:9px;gap:7px;min-height:56px;font-size:13px}.sd5-theme .directory-category-icon{width:34px;height:34px;flex-basis:34px}.sd5-theme .directory-card-grid{grid-template-columns:minmax(0,1fr);gap:10px}.sd5-theme .directory-card-main{padding:14px}.sd5-theme .organization-article{padding:15px}.sd5-theme .organization-title-row{gap:10px}.sd5-theme .organization-big-icon{width:50px;height:50px;flex-basis:50px}.sd5-theme .organization-article .sel-directory-grid{grid-template-columns:minmax(0,1fr)}.sd5-theme .organization-article :is(.sel-directory-card,.sel-directory-feedback,.organization-source,.sco-media-public){padding:11px}}
@media(max-width:350px){.sd5-theme .directory-page .shell,.sd5-theme .organization-single{width:calc(100% - 20px)}.sd5-theme .directory-category-tile{font-size:12px;gap:5px;padding:7px}.sd5-theme .directory-category-icon{width:30px;height:30px;flex-basis:30px}.sd5-theme .organization-title-row h1{font-size:23px}}

/* RC22: event agenda, event detail and cinema pages only. */
.sd5-theme :is(.selenginsk-events-page,.selenginsk-cinema-page){--agenda-soft:#eef3f5;min-width:0;grid-template-columns:minmax(0,1fr);gap:16px;color:var(--sd5-ink)}
.sd5-theme :is(.events-page-intro,.cinema-page-intro){gap:10px 20px;align-items:end;min-width:0;padding:0 0 12px;border-bottom:1px solid var(--sd5-line)}
.sd5-theme :is(.events-page-intro,.cinema-page-intro) h2{font-size:clamp(23px,3vw,30px);line-height:1.2;margin:4px 0 0;color:var(--sd5-ink);overflow-wrap:anywhere;letter-spacing:-.02em}
.sd5-theme :is(.events-page-intro,.cinema-page-intro) .eyebrow{font-size:12px;color:var(--sd5-accent);letter-spacing:.025em}
.sd5-theme :is(.events-page-intro,.cinema-page-intro)>p{font-size:14px;line-height:1.45;color:#516973;margin:0;overflow-wrap:anywhere}
.sd5-theme .selenginsk-events-page .sce-agenda-toolbar{max-width:100%;min-width:0;align-items:flex-start;gap:8px}
.sd5-theme .selenginsk-events-page .sce-agenda-tabs{min-width:0;flex:1 1 0;overflow-x:auto;overflow-y:hidden;scroll-padding-inline:3px;overscroll-behavior-x:contain}
.sd5-theme .selenginsk-events-page .sce-agenda-actions a{border-color:var(--sd5-line);border-radius:8px;background:#fff;color:var(--sd5-accent);min-height:40px}
.sd5-theme .selenginsk-events-page .sce-agenda-actions a:is(.is-current,.sce-create){background:var(--sd5-accent);border-color:var(--sd5-accent);color:#fff}
.sd5-theme .selenginsk-events-page .sce-agenda-actions a:not(.is-current,.sce-create):hover{background:var(--agenda-soft)}
.sd5-theme .events-page-grid,.sd5-theme .cinema-page-list{min-width:0;grid-template-columns:minmax(0,1fr);gap:12px}
.sd5-theme .events-page-card{min-width:0;grid-template-columns:clamp(120px,17vw,184px) minmax(0,1fr);align-items:start;gap:12px 16px;padding:14px;border:1px solid var(--sd5-line);border-radius:12px;background:#fff;box-shadow:none}
.sd5-theme .events-page-image{width:100%;min-width:0;min-height:0;aspect-ratio:4/3;background:var(--agenda-soft);border-radius:9px;overflow:hidden}
.sd5-theme .events-page-image img{display:block;width:100%;height:100%;object-fit:contain}
.sd5-theme .events-page-image .event-image-fallback{background:var(--agenda-soft);color:var(--sd5-accent)}
.sd5-theme .events-page-body{padding:2px 0;gap:4px;overflow-wrap:anywhere}
.sd5-theme .events-page-kicker{gap:5px 9px}
.sd5-theme .events-page-kicker time{color:var(--sd5-accent);font-size:12px;letter-spacing:.01em}
.sd5-theme .events-page-kicker .event-time-inline{color:#516973;font-size:12px}
.sd5-theme .events-page-body h3{font-size:clamp(17px,2.2vw,22px);line-height:1.25;color:var(--sd5-ink);margin:2px 0;overflow-wrap:anywhere}
.sd5-theme .events-page-body h3 a:hover{color:var(--sd5-accent)}
.sd5-theme .events-page-body .event-meta-line{font-size:13px;font-weight:500;line-height:1.4;color:#516973}
.sd5-theme .events-page-card.is-cancelled{opacity:1;border-color:#e4c3c3}
.sd5-theme .events-page-card.is-cancelled .event-meta-line{color:#913434}
.sd5-theme .events-page-card.is-postponed{border-color:#e0cba6}
.sd5-theme .events-page-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px;grid-column:1/-1;padding:2px 0 0;min-width:0}
.sd5-theme .events-page-footer>p{min-width:0;margin:0;font-size:14px;line-height:1.5;color:#516973;overflow-wrap:anywhere}
.sd5-theme .events-page-footer>.section-action{justify-self:end;grid-column:2;min-height:34px;border:1px solid var(--sd5-line);border-radius:8px;background:var(--agenda-soft);color:var(--sd5-accent);text-decoration:none;box-shadow:none}
.sd5-theme .events-page-footer>.section-action:hover{background:#e2eef1;color:var(--sd5-hover)}
.sd5-theme .events-page-footer>:is(.scea-panel,.sces-panel){grid-column:1/-1;min-width:0;width:100%;max-width:100%;justify-self:stretch;box-sizing:border-box}
.sd5-theme .events-page-footer>.scea-panel{margin-top:4px}
.sd5-theme .events-page-grid--past{opacity:1}
.sd5-theme .events-past{border-color:var(--sd5-line)}
.sd5-theme .events-past>summary{color:var(--sd5-accent);font-weight:650;min-height:36px}
.sd5-theme .events-past>summary::after{content:'+';font-size:20px;transform:none}
.sd5-theme .events-past[open]>summary::after{content:'−';transform:none}
.sd5-theme :is(.events-empty,.cinema-empty-state){background:#fff;border:1px solid var(--sd5-line);border-radius:12px;color:#516973;padding:20px;min-width:0;box-sizing:border-box}
/* Single event: preserve the existing social UI; style only its surroundings. */
.sd5-theme .event-single-shell{width:min(calc(100% - 42px),1100px);box-sizing:border-box}
.sd5-theme .event-single{min-width:0;grid-template-columns:minmax(0,1fr);gap:18px}
.sd5-theme .event-single-head h1{font-size:clamp(26px,4vw,42px);line-height:1.15;letter-spacing:-.02em;color:var(--sd5-ink);margin:0 0 16px;overflow-wrap:anywhere}
.sd5-theme .event-single-kicker{flex-wrap:wrap;gap:8px}
.sd5-theme .event-single-kicker .eyebrow{color:var(--sd5-accent)}
.sd5-theme .event-single-facts{gap:8px;grid-template-columns:repeat(4,minmax(0,1fr))}
.sd5-theme .event-single-facts>div,.sd5-theme .event-single-side>div:not([class*="ad-"]){min-width:0;box-sizing:border-box;background:#fff;border:1px solid var(--sd5-line);border-radius:10px;overflow-wrap:anywhere}
.sd5-theme .event-single-facts strong,.sd5-theme .event-single-side strong{color:var(--sd5-ink);font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.sd5-theme .event-share{border-color:var(--sd5-line);gap:6px;padding:10px 0}
.sd5-theme .event-share a{background:#fff;border-color:var(--sd5-line);color:var(--sd5-accent);border-radius:8px}
.sd5-theme .event-share a:hover{background:#e2eef1}
.sd5-theme .event-single-cover{max-width:100%;width:fit-content;margin-inline:auto;box-sizing:border-box}
.sd5-theme .event-single-cover img{display:block;max-width:100%;height:auto;width:auto;max-height:520px;object-fit:contain;border-radius:10px;margin-inline:auto}
.sd5-theme .event-single-layout{min-width:0;gap:20px}
.sd5-theme .event-single-content{min-width:0;overflow-wrap:anywhere}
.sd5-theme .event-single-content img{max-width:100%;height:auto}
.sd5-theme .event-single-content iframe{max-width:100%}
.sd5-theme .event-single-side .event-source-button,.sd5-theme .event-single .content-return-button{background:#fff;border-color:var(--sd5-line);color:var(--sd5-accent)!important;border-radius:8px;white-space:normal;overflow-wrap:anywhere;max-width:100%;box-sizing:border-box}
.sd5-theme .event-single .content-return{margin-top:0;padding-top:8px}
/* Cinema: one scrollable date row; a distinct next showing, readable elapsed times. */
.sd5-theme .selenginsk-cinema-page .cinema-swipe-wrap{min-width:0;max-width:100%}
.sd5-theme .selenginsk-cinema-page .cinema-date-tabs{display:flex;gap:7px;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:3px 3px 8px;box-sizing:border-box;scrollbar-width:thin;scroll-padding-inline:3px;overscroll-behavior-x:contain}
.sd5-theme .selenginsk-cinema-page .cinema-date-tab{flex:0 0 auto;min-width:88px;min-height:54px;padding:7px 10px;box-sizing:border-box;border:1px solid var(--sd5-line);border-radius:9px;background:#fff;color:var(--sd5-accent);text-decoration:none}
.sd5-theme .selenginsk-cinema-page .cinema-date-tab strong{font-size:15px;line-height:1.2}
.sd5-theme .selenginsk-cinema-page .cinema-date-tab span{font-size:12px;line-height:1.25}
.sd5-theme .selenginsk-cinema-page .cinema-date-tab.is-active{background:var(--sd5-accent);border-color:var(--sd5-accent);color:#fff}
.sd5-theme .selenginsk-cinema-page .cinema-date-tab:not(.is-active):hover{background:var(--agenda-soft)}
.sd5-theme .selenginsk-cinema-page .cinema-swipe-wrap--dates::after,.sd5-theme .selenginsk-cinema-page .cinema-swipe-wrap--dates::before{display:none}
.sd5-theme .cinema-page-card{min-width:0;grid-template-columns:clamp(105px,15vw,150px) minmax(0,1fr);align-items:start;gap:15px;padding:14px;border:1px solid var(--sd5-line);border-radius:12px;background:#fff;box-shadow:none}
.sd5-theme .cinema-page-poster{width:100%;min-width:0;align-self:start;aspect-ratio:2/3;background:var(--agenda-soft);border-radius:9px}
.sd5-theme .cinema-page-poster img{display:block;width:100%;height:100%;object-fit:contain}
.sd5-theme .selenginsk-cinema-page .cinema-fallback-svg{max-width:65%;stroke:var(--sd5-accent)}
.sd5-theme .cinema-page-body{min-width:0;padding:1px 0;overflow-wrap:anywhere}
.sd5-theme .cinema-page-body h3{font-size:clamp(17px,2.2vw,22px);line-height:1.25;color:var(--sd5-ink);overflow-wrap:anywhere;margin:0 0 6px}
.sd5-theme .cinema-page-body .cinema-meta{color:#516973;font-size:13px;line-height:1.45;margin:0 0 10px}
.sd5-theme .cinema-page-body .cinema-times{gap:6px;max-width:100%;margin-bottom:10px}
.sd5-theme .cinema-page-body .cinema-time{min-width:60px;min-height:40px;padding:6px 8px;box-sizing:border-box;background:#eef3f5;border:1px solid var(--sd5-line);border-radius:8px;color:var(--sd5-ink);font-size:13px;line-height:1.2;text-align:center;align-content:center}
.sd5-theme .cinema-page-body .cinema-price{font-size:11px;line-height:1.2;opacity:1;color:#516973;font-weight:600}
.sd5-theme .cinema-page-body .cinema-time.is-next{background:var(--sd5-accent);border-color:var(--sd5-accent);color:#fff}
.sd5-theme .cinema-page-body .cinema-time.is-next .cinema-price{color:#fff;opacity:1}
.sd5-theme .cinema-page-body .cinema-time.is-past{opacity:1;color:#586b73;background:#fff;border-style:dashed;font-weight:500}
.sd5-theme .cinema-page-body .cinema-source-link{color:var(--sd5-accent);overflow-wrap:anywhere;min-height:30px;display:inline-flex;align-items:center;text-underline-offset:3px}
.sd5-theme :is(.selenginsk-events-page,.selenginsk-cinema-page,.event-single) :is(a,button,summary):focus-visible{outline:2px solid var(--sd5-accent);outline-offset:2px}
@media(max-width:980px){.sd5-theme .event-single-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 .sd5-theme :is(.events-page-intro,.cinema-page-intro){display:grid;gap:6px}
 .sd5-theme .events-page-card{grid-template-columns:96px minmax(0,1fr);padding:11px;gap:10px}
 .sd5-theme .events-page-footer{grid-template-columns:minmax(0,1fr);gap:8px}
 .sd5-theme .events-page-footer>.section-action{grid-column:1;justify-self:start}
 .sd5-theme .event-single-shell{width:calc(100% - 26px)}
 .sd5-theme .event-single-cover img{max-height:380px}
 .sd5-theme .cinema-page-card{grid-template-columns:94px minmax(0,1fr);padding:11px;gap:12px}
}
@media(max-width:390px){
 .sd5-theme .events-page-card{grid-template-columns:82px minmax(0,1fr);gap:8px;padding:10px}
 .sd5-theme .cinema-page-card{grid-template-columns:78px minmax(0,1fr);gap:9px;padding:10px}
 .sd5-theme .cinema-page-body .cinema-time{min-width:56px;padding:5px 6px}
 .sd5-theme .selenginsk-events-page .sce-agenda-toolbar{gap:5px}
 .sd5-theme .selenginsk-events-page .sce-agenda-actions a{font-size:12px;padding:7px 8px}
}
@media(max-width:350px){.sd5-theme .event-single-shell{width:calc(100% - 20px)}}

/* RC23: transport and local schedules; presentation only. */
.sd5-theme :is(.stransport-page-shell,.stransport-app,.sch-wrap){--st-ink:var(--sd5-ink);--st-muted:#516973;--st-blue:var(--sd5-accent);--st-green:var(--sd5-accent);--st-line:var(--sd5-line);--st-soft:#eef3f5;--st-green-soft:#e5f0f2;color:var(--sd5-ink);min-width:0}
.sd5-theme .stransport-page-shell,.sd5-theme .sch-wrap{padding-top:20px;padding-bottom:38px}
.sd5-theme .sch-wrap{background:transparent}
.sd5-theme .sch-shell{width:min(calc(100% - 42px),1180px);box-sizing:border-box;min-width:0}
.sd5-theme :is(.stransport-breadcrumbs,.sch-crumbs){font-size:13px;margin:0 0 16px;flex-wrap:wrap;gap:7px;color:#516973}
.sd5-theme :is(.stransport-breadcrumbs,.sch-crumbs) a{color:var(--sd5-accent);font-weight:650}
.sd5-theme :is(.stransport-app,.stransport-list,.sch-grid){gap:12px;min-width:0}
.sd5-theme :is(.stransport-hero,.stransport-about,.stransport-route,.sch-card,.sch-single){min-width:0;background:#fff;border:1px solid var(--sd5-line);border-radius:12px;padding:18px;box-shadow:none;box-sizing:border-box;overflow-wrap:anywhere}
.sd5-theme :is(.stransport-hero h1,.sch-head h1,.sch-single-head h1){font-size:clamp(25px,3.3vw,34px);line-height:1.2;letter-spacing:-.02em;color:var(--sd5-ink);margin:5px 0 10px;overflow-wrap:anywhere}
.sd5-theme :is(.stransport-eyebrow,.sch-kicker){color:var(--sd5-accent);letter-spacing:.025em;font-size:12px;font-weight:700;text-transform:none}
.sd5-theme :is(.stransport-hero p,.sch-head p,.sch-lead){font-size:15px;line-height:1.5;color:#516973;margin:0}
.sd5-theme .stransport-count{border-color:var(--sd5-line)}
.sd5-theme .stransport-count strong{font-size:26px;color:var(--sd5-accent)}
.sd5-theme .sch-head{margin-bottom:16px}
.sd5-theme :is(.stransport-jump,.sch-filters){display:flex;flex-wrap:nowrap;gap:8px;max-width:100%;min-width:0;box-sizing:border-box;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;padding:4px 2px 8px;background:transparent;border:0;border-radius:0}
.sd5-theme :is(.stransport-jump,.sch-filters)::-webkit-scrollbar{display:block;height:4px}
.sd5-theme :is(.stransport-jump,.sch-filters)::-webkit-scrollbar-thumb{background:#b5cbd2;border-radius:4px}
.sd5-theme :is(.stransport-jump,.sch-filters) a{display:inline-flex;align-items:center;flex:0 0 auto;min-height:40px;box-sizing:border-box;padding:8px 12px;border:1px solid var(--sd5-line);border-radius:8px;background:#fff;color:var(--sd5-accent);white-space:nowrap;font-size:13px;font-weight:650;text-decoration:none}
.sd5-theme .sch-filters a.is-active{background:var(--sd5-accent);border-color:var(--sd5-accent);color:#fff}
.sd5-theme :is(.stransport-jump a,.sch-filters a:not(.is-active)):hover{background:#e5eff2;border-color:#acc8d1}
.sd5-theme :is(.stransport-route h2,.sch-card h2,.stransport-about h2,.sch-week h2){font-size:clamp(20px,2.4vw,25px);line-height:1.25;color:var(--sd5-ink);letter-spacing:-.01em;margin:8px 0;overflow-wrap:anywhere}
.sd5-theme .stransport-route-head{gap:12px 20px;min-width:0}
.sd5-theme .stransport-route-head>div:first-child{min-width:0}
.sd5-theme .stransport-updated{border-color:var(--sd5-line)}
.sd5-theme :is(.stransport-status.status-active,.sch-status.is-active){background:#e5f0f2;color:#0d5265}
.sd5-theme :is(.stransport-directions,.sch-info-grid){gap:10px;margin-top:14px;min-width:0}
.sd5-theme :is(.stransport-direction,.sch-info-grid>div,.sch-day){min-width:0;border:1px solid var(--sd5-line);border-radius:10px;background:#f4f8f9;padding:12px;box-sizing:border-box}
.sd5-theme .stransport-direction h3{font-size:18px;color:var(--sd5-ink);line-height:1.25}
.sd5-theme :is(.stransport-days,.sch-day-name){color:var(--sd5-accent);font-weight:700}
.sd5-theme .stransport-direction header>span,.sd5-theme .stransport-detail span,.sd5-theme .sch-info-grid small{color:#516973}
.sd5-theme .stransport-times span{box-sizing:border-box;min-width:58px;min-height:38px;border-color:#c5d6dc;border-radius:8px;color:var(--sd5-ink);font-weight:750;background:#fff}
.sd5-theme .stransport-times span.is-next-departure,.sd5-theme .sch-time-card.is-next{background:var(--sd5-accent);color:#fff;border-color:var(--sd5-accent);box-shadow:none}
.sd5-theme .sch-time-card.is-next :is(.sch-time-label,.sch-time-value){color:#fff}
.sd5-theme .stransport-details{border-color:var(--sd5-line);border-radius:10px;padding:4px 12px;gap:0 12px}
.sd5-theme .stransport-detail strong{color:var(--sd5-ink);font-weight:650}
.sd5-theme :is(.stransport-source,.sch-source,.sch-card-foot){gap:8px 12px;flex-wrap:wrap;color:#516973;border-color:var(--sd5-line);overflow-wrap:anywhere}
.sd5-theme :is(.stransport-source a,.sch-source a,.sch-card-foot a,.sch-back,.stransport-back){color:var(--sd5-accent);font-weight:650}
.sd5-theme .stransport-source a{white-space:normal}
.sd5-theme .stransport-back{border-color:var(--sd5-line);border-radius:8px}
.sd5-theme .sch-card h2 a{color:var(--sd5-ink)}
.sd5-theme .sch-card h2 a:hover{color:var(--sd5-accent)}
.sd5-theme .sch-today{background:#eef3f5;border:1px solid var(--sd5-line);border-radius:9px;grid-template-columns: minmax(0,74px) minmax(0,1fr);gap:8px;padding:10px}
.sd5-theme .sch-today b{color:var(--sd5-accent)}
.sd5-theme .sch-card-foot a{display:inline-flex;align-items:center;min-height:36px;border:1px solid var(--sd5-line);border-radius:8px;background:#eef3f5;padding:6px 10px;text-decoration:none;box-sizing:border-box}
.sd5-theme .sch-week-list{gap:10px}
.sd5-theme .sch-day{border-color:var(--sd5-line)!important}
.sd5-theme .sch-day.is-today{background:#eaf3f5;border-color:#b3cdd5!important}
.sd5-theme .sch-day.is-today .sch-day-name::after{color:#0d5265;background:#d9e8ed}
.sd5-theme .sch-time-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,132px),1fr));gap:8px}
.sd5-theme .sch-time-card{min-width:0;box-sizing:border-box;min-height:62px;padding:9px 10px;border-color:var(--sd5-line);border-radius:8px}
.sd5-theme .sch-time-value{font-size:17px;font-weight:750;color:var(--sd5-ink);white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.sd5-theme .sch-time-label{color:#516973;overflow-wrap:anywhere}
.sd5-theme .sch-next-hint{background:#eef3f5;border-color:var(--sd5-line);color:#0d5265}
.sd5-theme .sch-next-hint span{background:var(--sd5-accent);box-shadow:none}
.sd5-theme .sch-pagination .current{background:var(--sd5-accent);color:#fff;border-color:var(--sd5-accent)}
.sd5-theme :is(.stransport-app,.sch-wrap) :is(a,button):focus-visible{outline:2px solid var(--sd5-accent);outline-offset:2px}
@media(max-width:860px){.sd5-theme .stransport-directions{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.sd5-theme .sch-shell{width:calc(100% - 26px)}.sd5-theme :is(.stransport-route,.stransport-hero,.stransport-about,.sch-card,.sch-single){padding:12px}.sd5-theme .sch-grid{grid-template-columns:minmax(0,1fr)}.sd5-theme .sch-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:460px){.sd5-theme .sch-info-grid{grid-template-columns:minmax(0,1fr)}.sd5-theme .sch-time-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sd5-theme .sch-upcoming-message,.sd5-theme .sch-season-message{grid-template-columns:minmax(0,1fr);gap:5px}.sd5-theme .stransport-details{grid-template-columns:minmax(0,1fr)}.sd5-theme .stransport-source{display:flex}}
@media(max-width:350px){.sd5-theme .sch-shell{width:calc(100% - 20px)}.sd5-theme .sch-time-grid{grid-template-columns:minmax(0,1fr)}}

/* RC24: local schedule archive uses real session cards, not a text column. */
.sd5-theme .sch-card .sch-today{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:10px;min-width:0;box-sizing:border-box}
.sd5-theme .sch-card .sch-today>b{display:block;font-size:14px;line-height:1.35}
.sd5-theme .sch-card .sch-today-slots{min-width:0}
.sd5-theme .sch-card .sch-today .sch-time-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,112px),1fr));gap:7px;min-width:0}
.sd5-theme .sch-card .sch-today .sch-time-card{background:#fff;min-height:54px;padding:7px 8px;gap:4px;border:1px solid #d3dfe4;border-radius:8px;min-width:0;box-sizing:border-box}
.sd5-theme .sch-card .sch-today .sch-time-label{font-size:11px;line-height:1.3;color:#516973;font-weight:600}
.sd5-theme .sch-card .sch-today .sch-time-value{font-size:15px;line-height:1.25;color:var(--sd5-ink);font-weight:750;white-space:normal;overflow-wrap:anywhere}
.sd5-theme .sch-card .sch-today .sch-time-card.is-extra{background:#fff;border-style:dashed}
.sd5-theme .sch-card .sch-today .sch-time-text,.sd5-theme .sch-card .sch-today .sch-day-plain{font-size:14px;line-height:1.45;overflow-wrap:anywhere}
@media(max-width:760px){.sd5-theme .sch-card .sch-today .sch-time-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:350px){.sd5-theme .sch-card .sch-today .sch-time-card{padding:7px 5px}.sd5-theme .sch-card .sch-today .sch-time-value{font-size:13px}}

/* RC25: news and classifieds — scoped presentation, no changes to publication or contact logic. */
.sd5-theme :is(.snews-page-shell,.sclassified-page-shell,.snews-app,.sclassified-app,.sclassified-submit-app){min-width:0;color:var(--sd5-ink);--sc-ink:var(--sd5-ink);--sc-muted:#516973;--sc-line:var(--sd5-line);--sc-blue:var(--sd5-accent);--sc-green:var(--sd5-accent)}
.sd5-theme :is(.snews-app,.sclassified-app,.sclassified-submit-app){gap:14px}
.sd5-theme :is(.snews-breadcrumbs,.sclassified-breadcrumbs){color:#516973;font-size:13px;gap:7px;flex-wrap:wrap}
.sd5-theme :is(.snews-breadcrumbs,.sclassified-breadcrumbs) a{color:var(--sd5-accent)}
.sd5-theme :is(.snews-page-head,.snews-tools,.snews-about,.snews-single,.snews-empty,.sclassified-hero,.sclassified-controls,.sclassified-results,.sclassified-about,.sclassified-submit-hero,.sclassified-submit-form,.sclassified-single-head,.sclassified-single-content,.sclassified-facts,.sclassified-manage-linkbox){background:#fff;border:1px solid var(--sd5-line);border-radius:12px;padding:18px;box-shadow:none;box-sizing:border-box;min-width:0;overflow-wrap:anywhere}
.sd5-theme :is(.snews-page-head h1,.snews-single-head h1,.sclassified-hero h1,.sclassified-submit-hero h1,.sclassified-single-head h1){font-size:clamp(25px,3.3vw,34px);line-height:1.2;letter-spacing:-.02em;color:var(--sd5-ink);overflow-wrap:anywhere}
.sd5-theme :is(.snews-page-head p,.sclassified-hero p,.sclassified-submit-hero p,.snews-single-head p){font-size:15px;line-height:1.5;color:#516973}
.sd5-theme :is(.snews-eyebrow,.sclassified-eyebrow,.snews-about>span){color:var(--sd5-accent);font-size:12px;letter-spacing:.025em}
.sd5-theme :is(.snews-results-head h2,.sclassified-results-head h2,.snews-about h2,.sclassified-about h2,.sclassified-submit-form section h2){font-size:clamp(20px,2.4vw,25px);line-height:1.25;color:var(--sd5-ink)}
.sd5-theme .snews-lead-card{min-height:0;border-radius:12px;background-color:#173442;box-shadow:none;overflow:hidden}
.sd5-theme .snews-lead-overlay{position:relative;inset:auto;min-height:300px;box-sizing:border-box;padding:24px;background:linear-gradient(0deg,rgba(8,31,43,.9),rgba(8,31,43,.42));overflow-wrap:anywhere}
.sd5-theme .snews-lead-card h2{color:#fff;font-size:clamp(23px,3vw,32px);line-height:1.2}
.sd5-theme .snews-lead-card p{color:#eef6f8;font-size:15px;line-height:1.5}
.sd5-theme .snews-lead-bottom{flex-wrap:wrap;gap:10px}
.sd5-theme .snews-lead-bottom a{border-radius:8px;color:var(--sd5-accent);text-decoration:none}
.sd5-theme :is(.snews-search,.sclassified-search){min-width:0;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.sd5-theme :is(.snews-search,.sclassified-search) input{min-width:0;max-width:100%;height:44px;box-sizing:border-box;border-color:#c5d6dc!important;border-radius:8px!important;color:var(--sd5-ink)!important}
.sd5-theme :is(.snews-search button,.sclassified-search button,.sclassified-submit-link,.sclassified-submit-actions button,.sclassified-manage-linkrow button){min-height:44px;box-sizing:border-box;border:1px solid var(--sd5-accent);border-radius:8px;background:var(--sd5-accent);color:#fff!important;padding-inline:12px;font-weight:650;text-decoration:none}
.sd5-theme :is(.snews-tabs,.sclassified-categories){display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;max-width:100%;min-width:0;gap:7px;padding:3px 2px 8px;box-sizing:border-box}
.sd5-theme :is(.snews-tabs,.sclassified-categories)::-webkit-scrollbar{display:block;height:4px}
.sd5-theme :is(.snews-tabs,.sclassified-categories)::-webkit-scrollbar-thumb{background:#b5cbd2;border-radius:4px}
.sd5-theme :is(.snews-tabs,.sclassified-categories) a{display:inline-flex;align-items:center;min-height:38px;flex:0 0 auto;padding:7px 11px;box-sizing:border-box;white-space:nowrap;background:#fff;border:1px solid var(--sd5-line);border-radius:8px;color:var(--sd5-accent);font-weight:650;text-decoration:none}
.sd5-theme :is(.snews-tabs,.sclassified-categories) a.is-active,.sd5-theme :is(.snews-pagination,.sclassified-pagination) a.is-active{background:var(--sd5-accent);border-color:var(--sd5-accent);color:#fff}
.sd5-theme :is(.snews-grid,.sclassified-grid){gap:12px;min-width:0}
.sd5-theme :is(.snews-card,.sclassified-card){background:#fff;border:1px solid var(--sd5-line);border-radius:12px;box-shadow:none;min-width:0;box-sizing:border-box;overflow-wrap:anywhere}
.sd5-theme .sclassified-card.is-featured{border-color:#c9a96f;box-shadow:none}
.sd5-theme :is(.snews-card-body,.sclassified-card-body){padding:14px;min-width:0}
.sd5-theme :is(.snews-card h2,.sclassified-card h2){font-size:19px;line-height:1.3;letter-spacing:-.01em;color:var(--sd5-ink)}
.sd5-theme :is(.snews-card h2,.sclassified-card h2) a{color:inherit}
.sd5-theme :is(.snews-card p,.sclassified-card p){color:#516973;font-size:14px;line-height:1.45}
.sd5-theme :is(.snews-card-meta,.sclassified-card-meta){flex-wrap:wrap;gap:5px 8px;color:#516973}
.sd5-theme :is(.snews-card-meta,.sclassified-card-meta) span{color:var(--sd5-accent)}
.sd5-theme :is(.snews-card footer,.sclassified-card footer){flex-wrap:wrap;border-color:var(--sd5-line);gap:8px}
.sd5-theme :is(.snews-card footer a,.sclassified-card footer a,.snews-back a,.sclassified-back a,.snews-source-card a,.sclassified-results-head>a,.sclassified-submit-actions a,.sclassified-contact-row a){color:var(--sd5-accent);font-weight:650;overflow-wrap:anywhere}
.sd5-theme :is(.snews-card-image,.sclassified-card-media){background:#e5eef1}
.sd5-theme .snews-card-image img,.sd5-theme .sclassified-card-media img{display:block;object-fit:cover}
.sd5-theme :is(.snews-single-cover,.sclassified-gallery-track){border-radius:10px;background:#eef3f5}
.sd5-theme :is(.snews-single-cover img,.sclassified-gallery-slide img){display:block;max-width:100%;object-fit:contain}
.sd5-theme :is(.snews-single-content,.sclassified-single-content){line-height:1.65;color:var(--sd5-ink);overflow-wrap:anywhere}
.sd5-theme :is(.snews-single-content,.sclassified-single-content) img{max-width:100%;height:auto}
.sd5-theme :is(.snews-source-card,.snews-share a,.sclassified-contact-reveal){background:#eef3f5;border-color:var(--sd5-line);border-radius:8px;color:var(--sd5-accent)}
.sd5-theme .snews-single-meta .snews-category-pill{background:#e5f0f2;border-color:#c5d6dc;color:var(--sd5-accent)}
.sd5-theme :is(.sclassified-price,.sclassified-single-price,.sclassified-hero-count strong){color:var(--sd5-accent);font-weight:750}
.sd5-theme .sclassified-single-price{font-size:25px}
.sd5-theme .sclassified-gallery-thumb.is-active{border-color:var(--sd5-accent)}
.sd5-theme :is(.sclassified-contact-row,.sclassified-contact-value,.sclassified-form-grid,.sclassified-form-grid>*,.sclassified-manage-linkrow){min-width:0}
.sd5-theme .sclassified-submit-form :is(input[type=text],input[type=tel],input[type=email],select,textarea,input[type=file]){box-sizing:border-box;max-width:100%;min-width:0;border-radius:8px!important}
.sd5-theme :is(.snews-page-shell,.sclassified-page-shell,.snews-app,.sclassified-app,.sclassified-submit-app) :is(a,button,input,textarea,select):focus-visible{outline:2px solid var(--sd5-accent)!important;outline-offset:2px}
@media(max-width:760px){
 .sd5-theme :is(.snews-page-head,.snews-tools,.snews-about,.snews-single,.sclassified-hero,.sclassified-controls,.sclassified-results,.sclassified-about,.sclassified-submit-hero,.sclassified-submit-form,.sclassified-single-head,.sclassified-single-content,.sclassified-facts,.sclassified-manage-linkbox){padding:12px}
 .sd5-theme .snews-lead-overlay{min-height:260px;padding:16px}
 .sd5-theme :is(.snews-grid,.sclassified-grid,.snews-single-layout,.sclassified-single-layout){grid-template-columns:minmax(0,1fr)}
 .sd5-theme .snews-card{display:flex;flex-direction:column}
 .sd5-theme .snews-card-image{aspect-ratio:16/9;min-height:0}
 .sd5-theme .snews-image-fallback{min-height:0}
 .sd5-theme :is(.snews-card-body,.sclassified-card-body){padding:12px}
 .sd5-theme :is(.snews-search,.sclassified-search) button{width:auto}
 .sd5-theme .sclassified-contact-value{flex-wrap:wrap}
}
@media(max-width:380px){.sd5-theme :is(.snews-search,.sclassified-search){grid-template-columns:minmax(0,1fr)}.sd5-theme :is(.snews-search,.sclassified-search) button{width:100%}.sd5-theme .sclassified-contact-row{grid-template-columns:minmax(0,1fr)} }


/* RC26 — compact home news and listings; no synthetic news thumbnails. */
.sd5-home-content .sd5-home-items{min-width:0}
.sd5-home-content .sd5-home-item{display:flex;align-items:center;gap:12px;padding:13px 15px;min-width:0;min-height:64px;box-sizing:border-box;color:var(--sd5-ink);text-decoration:none;border-bottom:1px solid #e5ebee}
.sd5-home-content .sd5-home-item:last-child{border-bottom:0}
.sd5-home-content .sd5-home-item:hover{background:#f4f8f9;text-decoration:none}
.sd5-home-content .sd5-home-item:focus-visible{outline:2px solid var(--sd5-accent);outline-offset:-3px}
.sd5-home-content .sd5-home-item>img,.sd5-home-content .sd5-home-ad-icon{width:64px;height:64px;flex:0 0 64px;max-width:64px;object-fit:cover;border-radius:8px;background:#eef3f5}
.sd5-home-content .sd5-home-ad-icon{display:grid;place-items:center;color:var(--sd5-accent)}
.sd5-home-content .sd5-home-item>svg{flex:none;color:var(--sd5-accent)}
.sd5-home-content .sd5-home-ad-copy,.sd5-home-content .sd5-news-copy{flex:1;min-width:0;display:grid;gap:4px;overflow-wrap:anywhere}
.sd5-home-content .sd5-home-item strong{font-size:14px;line-height:1.35;font-weight:650;color:var(--sd5-ink)}
.sd5-home-content .sd5-home-item small{font-size:11px;line-height:1.35;color:#516973;font-weight:400}
.sd5-home-content .sd5-home-ad-price{color:var(--sd5-accent);font-size:14px;line-height:1.3;font-weight:750}
.sd5-home-content .sd5-home-ad-reserved{color:#516973}
.sd5-home-content .sd5-home-ad-footer{padding:10px 15px 13px;border-top:1px solid #e5ebee}
.sd5-home-content .sd5-home-ad-footer a{gap:6px;min-height:36px;border-radius:8px;text-decoration:none}
@media(max-width:380px){.sd5-home-content .sd5-home-item{gap:9px;padding:11px 12px}.sd5-home-content .sd5-home-item>img,.sd5-home-content .sd5-home-ad-icon{width:52px;height:52px;max-width:52px;flex-basis:52px}.sd5-home-content .sd5-home-ad-footer{padding-inline:12px}}

/* RC27 — home services, history and remembrance. No data or handler changes. */
.sd5-home-content .sd5-service-card{padding:16px;gap:10px;min-height:0;border-radius:10px}
.sd5-home-content .sd5-service-card h3{display:flex;align-items:center;gap:10px;line-height:1.35;font-size:15px;min-width:0}
.sd5-home-content .sd5-service-card h3 svg{color:var(--sd5-accent);flex:none}
.sd5-home-content .sd5-service-card h3 span{min-width:0;overflow-wrap:anywhere}
.sd5-home-content .sd5-service-card p{color:#516973;font-size:13px;line-height:1.5}
.sd5-home-content .sd5-service-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 12px;border-radius:8px;max-width:100%;box-sizing:border-box;line-height:1.3;text-decoration:none;text-align:left;white-space:normal}
.sd5-home-content .sd5-service-action svg{flex:none}
.sd5-home-content .sd5-service-action:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.sd5-home-content .sd5-service-card.sd5-memory{background:#173442;border-color:#173442}
.sd5-home-content .sd5-service-card.sd5-memory :is(h3,h3 svg){color:#fff}
.sd5-home-content .sd5-service-card.sd5-memory p{color:#c6d6dc}
.sd5-home-content .sd5-service-card.sd5-memory .sd5-memory-link{color:#173442;background:#fff;border-color:#fff}
.sd5-theme .se-about-hub{min-width:0;overflow-wrap:anywhere}
.sd5-theme .se-about-hero{background:#fff;border:1px solid var(--sd5-line);border-radius:12px;padding:22px;box-shadow:none}
.sd5-theme .se-about-hero h2{color:var(--sd5-ink);font-size:clamp(23px,3vw,34px);line-height:1.22}
.sd5-theme .se-about-hero p{color:#516973;font-size:15px}
.sd5-theme .se-about-cats{gap:10px;min-width:0}
.sd5-theme .se-about-cat{background:#fff;border:1px solid var(--sd5-line);border-radius:10px;box-shadow:none;min-height:0;padding:16px}
.sd5-theme .se-about-cat[href]:hover{border-color:var(--sd5-accent);transform:none;box-shadow:none}
.sd5-theme .se-about-cat strong,.sd5-theme .se-about-head h2,.sd5-theme .se-about-post h3{color:var(--sd5-ink);line-height:1.3}
.sd5-theme :is(.se-about-cat span,.se-about-post p,.se-about-post-meta time){color:#516973}
.sd5-theme :is(.se-about-cat b,.se-about-post b,.se-about-post-meta span,.se-about-head>span){color:var(--sd5-accent)}
.sd5-theme .se-about-latest{background:#fff;border:1px solid var(--sd5-line);border-radius:12px;box-shadow:none;padding:18px}
.sd5-theme .se-about-posts{gap:12px;min-width:0}
.sd5-theme .se-about-post{border-color:var(--sd5-line);border-radius:10px}
.sd5-theme .se-about-post-meta{flex-wrap:wrap;gap:6px}
.sd5-theme .se-about-pagination{flex-wrap:wrap}
.sd5-theme .se-about-pagination a{border-color:var(--sd5-line);border-radius:8px;color:var(--sd5-accent)}
.sd5-theme .se-about-pagination a.is-active{background:var(--sd5-accent);border-color:var(--sd5-accent);color:#fff}
.sd5-theme.sd5-history-context .post-card{border:1px solid var(--sd5-line);border-radius:12px;background:#fff;box-shadow:none;min-width:0}
.sd5-theme.sd5-history-context .post-thumb:empty{display:none}
.sd5-theme.sd5-history-context :is(.post-body h2 a,.single-entry h1){color:var(--sd5-ink)}
.sd5-theme.sd5-history-context :is(.post-body small,.post-body p){color:#516973}
.sd5-theme.sd5-history-context .single-entry .entry-content{color:var(--sd5-ink);overflow-wrap:anywhere;line-height:1.65}
.sd5-theme.sd5-history-context .single-entry .entry-content img{max-width:100%;height:auto}
.sd5-theme.selenginsk-memory-context{--sm-ink:#173442;--sm-muted:#516973;--sm-line:#d3dfe4;--sm-paper:#fff;--sm-warm:#f1f5f6;--sm-dark:#173442;--sm-bronze:#12677d;--sm-bronze-dark:#12677d}
.sd5-theme .smemory-hero{background:#173442;border-radius:12px;min-height:0;padding:28px;gap:18px}
.sd5-theme .smemory-hero h1{color:#fff;font-size:clamp(30px,4.4vw,48px);line-height:1.15}
.sd5-theme .smemory-hero p{color:#d8e6eb;font-size:15px;line-height:1.6}
.sd5-theme :is(.smemory-hero,.smemory-submit-cta) .smemory-eyebrow{color:#c6d6dc}
.sd5-theme .smemory-hero-stats{min-width:0;max-width:100%}
.sd5-theme :is(.smemory-sections,.smemory-people-grid,.smemory-places-grid,.smemory-book-choice){gap:12px;min-width:0}
.sd5-theme :is(.smemory-section-card,.smemory-person-card,.smemory-place-card,.smemory-book-choice-card,.smemory-submit-form){border:1px solid #d3dfe4;border-radius:12px;background:#fff;box-shadow:none;min-width:0;overflow-wrap:anywhere}
.sd5-theme :is(.smemory-section-card,.smemory-book-choice-card){padding:20px;min-height:0}
.sd5-theme :is(.smemory-section-card,.smemory-book-choice-card) b{padding-top:12px}
.sd5-theme :is(.smemory-card-body,.smemory-place-body){padding:14px;min-width:0}
.sd5-theme :is(.smemory-card-body h3,.smemory-place-body h3){font-size:21px;line-height:1.25}
.sd5-theme .smemory-card-media>img:not(.smemory-memorial-placeholder),.sd5-theme .smemory-single-photo img:not(.smemory-memorial-placeholder){object-fit:contain;background:#eef3f5}
.sd5-theme .smemory-submit-cta{background:#173442;border-radius:12px;padding:22px}
.sd5-theme .smemory-submit-cta h2{color:#fff}
.sd5-theme .smemory-btn-bronze,.sd5-theme .smemory-search button{background:#12677d;border-color:#12677d;color:#fff;border-radius:8px}
.sd5-theme .smemory-search button{border-radius:0 8px 8px 0}
.sd5-theme .smemory-btn-bronze:hover{background:#0d5265;color:#fff}
.sd5-theme :is(.smemory-hero,.smemory-submit-cta) .smemory-btn-bronze{background:#fff;color:#173442;border-color:#fff}
.sd5-theme .smemory-search{grid-template-columns:minmax(0,1fr) auto;min-width:0}
.sd5-theme .smemory-search input{border-color:#c5d6dc;box-sizing:border-box;max-width:100%;border-radius:8px 0 0 8px}
.sd5-theme .smemory-filter{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:5px;scrollbar-width:thin}
.sd5-theme .smemory-filter a{flex:none;white-space:nowrap;color:#12677d}
.sd5-theme .smemory-pagination{flex-wrap:wrap}
.sd5-theme :is(.smemory-filter,.smemory-pagination) a.is-active{background:#12677d;border-color:#12677d;color:#fff}
.sd5-theme :is(.smemory-small-action,.smemory-editorial-note,.smemory-principles,.smemory-empty,.smemory-vov-callout,.smemory-svo-callout,.smemory-incomplete-note){background:#f1f5f6;border-color:#d3dfe4}
.sd5-theme :is(.smemory-form-grid,.smemory-field,.smemory-submit-form fieldset,.smemory-single-content,.smemory-facts){min-width:0;overflow-wrap:anywhere}
.sd5-theme .smemory-field :is(input,textarea,select){max-width:100%;box-sizing:border-box;border-color:#c5d6dc}
.sd5-theme .smemory-single-content img{max-width:100%;height:auto}
.sd5-theme :is(.smemory-app,.smemory-single,.se-about-hub) :is(a,button,input,textarea,select):focus-visible{outline:2px solid #12677d;outline-offset:2px}
@media(max-width:700px){
 .sd5-home-content .sd5-service-card{padding:14px;gap:9px}
 .sd5-theme :is(.se-about-hero,.se-about-latest){padding:14px}
 .sd5-theme .se-about-cat{padding:13px}
 .sd5-theme :is(.se-about-post-body,.se-about-posts--count-1 .se-about-post-body){padding:13px}
 .sd5-theme .se-about-posts--count-1 .se-about-post-link{display:flex;flex-direction:column}
 .sd5-theme .smemory-hero{grid-template-columns:minmax(0,1fr);padding:20px;gap:14px}
 .sd5-theme .smemory-hero-stats{width:100%}
 .sd5-theme :is(.smemory-sections,.smemory-people-grid,.smemory-places-grid,.smemory-book-choice,.smemory-form-grid,.smemory-single-layout,.smemory-single-hero){grid-template-columns:minmax(0,1fr)}
 .sd5-theme :is(.smemory-section-card,.smemory-book-choice-card,.smemory-submit-form,.smemory-submit-cta){padding:16px}
 .sd5-theme .smemory-block-head{flex-wrap:wrap;gap:8px}
 .sd5-theme .smemory-single-photo{max-width:280px;width:100%;margin-inline:auto}
 .sd5-theme .smemory-search button{padding-inline:13px}
 .sd5-theme .smemory-hero-actions .smemory-btn{max-width:100%;white-space:normal;box-sizing:border-box}
}

/* RC28: keep the memory search field and button joined at every breakpoint. */
.sd5-theme .smemory-search {
 display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:stretch;
 gap:0; width:100%; min-width:0; max-width:720px; box-sizing:border-box;
}
.sd5-theme .smemory-search > input[type="search"],
.sd5-theme .smemory-search > button[type="submit"] {
 box-sizing:border-box; height:52px; min-height:52px; max-height:none;
 margin:0; align-self:stretch; font-family:inherit; font-size:15px; line-height:1.2;
}
.sd5-theme .smemory-search > input[type="search"] {
 width:100%; min-width:0; padding:0 12px; border:1px solid #c5d6dc;
 border-right:0; border-radius:8px 0 0 8px; background:#fff;
}
.sd5-theme .smemory-search > button[type="submit"] {
 display:inline-flex; align-items:center; justify-content:center; width:auto;
 padding:0 18px; white-space:nowrap; border:1px solid #12677d;
 border-radius:0 8px 8px 0; background:#12677d; color:#fff; cursor:pointer;
}
@media(max-width:700px){
 .sd5-theme .smemory-search > input[type="search"] {font-size:16px; padding-inline:12px;}
 .sd5-theme .smemory-search > button[type="submit"] {padding-inline:13px;}
}


/* RC29: desktop shell, complete menu tiles and local header search. */
.sd5-theme .sd5-sheet-search{margin-top:16px;width:100%;min-width:0;box-sizing:border-box}
.sd5-theme .sd5-sheet-search input[type=search]{min-width:0;flex:1 1 0;width:0;margin:0;padding:0;border:0;background:transparent;box-shadow:none;font-size:16px}
.sd5-theme .sd5-sheet-search button{flex:none;margin:0;white-space:nowrap}
.sd5-theme .sd5-sheet-search:focus-within{border-color:var(--sd5-accent);box-shadow:0 0 0 2px #12677d22}
@media (min-width:761px){
 html:has(body.sd5-theme),body.sd5-theme{overflow-x:clip}
 .sd5-theme.admin-bar{min-height:calc(100dvh - var(--wp-admin--admin-bar--height,32px))}
 .sd5-theme.admin-bar .sd5-site-header{top:var(--wp-admin--admin-bar--height,32px)}
 .sd5-theme .sd5-site-header{margin-block:0;align-self:stretch}
 .sd5-theme.sd5-menu-open .sd5-sheet{width:min(580px,calc(100% - 32px));overscroll-behavior:contain}
 .sd5-theme .sd5-sheet-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-top:14px}
 .sd5-theme .sd5-sheet-links.sd5-add-links{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sd5-theme .sd5-sheet-links > :is(a,button){display:flex;align-items:center;gap:8px;min-width:0;width:100%;min-height:50px;margin:0;padding:10px 12px;border:1px solid #dce5e8;border-radius:8px;background:#fff;color:#244451;font:inherit;font-size:14px;font-weight:650;line-height:1.35;text-align:left;text-decoration:none;box-sizing:border-box;cursor:pointer}
 .sd5-theme .sd5-sheet-links > :is(a,button) > span{flex:1;min-width:0;overflow-wrap:anywhere}
 .sd5-theme .sd5-sheet-links > :is(a,button) > svg:first-child{color:var(--sd5-accent)}
 .sd5-theme .sd5-sheet-links > :is(a,button) > svg:last-child{color:#869aa2}
 .sd5-theme .sd5-sheet-links > :is(a,button):hover{background:#edf4f6;border-color:#b9ced5}
 .sd5-theme .scc-wrap[aria-label="Мой Селенгинск"]:has(.scc-profile-menu){max-width:none;width:100%;margin-inline:0;padding-inline:0}
}
@media(min-width:761px) and (max-width:782px){.sd5-theme.admin-bar{min-height:calc(100dvh - var(--wp-admin--admin-bar--height,46px))}.sd5-theme.admin-bar .sd5-site-header{top:var(--wp-admin--admin-bar--height,46px)}}
/* WP search results, without dummy thumbnails. */
.sd5-theme .sd5-results-search{margin:0 0 20px;max-width:680px}
.sd5-theme .sd5-results-list{display:grid;gap:10px;max-width:880px}
.sd5-theme .sd5-result{background:#fff;border:1px solid var(--sd5-line);border-radius:10px;padding:16px;min-width:0;overflow-wrap:anywhere}
.sd5-theme .sd5-result h2{font-size:19px;line-height:1.3;margin:0 0 6px;color:var(--sd5-accent)}
.sd5-theme .sd5-result p{font-size:14px;margin:8px 0 0;color:var(--sd5-ink)}
.sd5-theme .sd5-result small{color:var(--sd5-muted);font-size:12px}
