/*
Theme Name: Kid-Mama Child
Template: justvideo
Version: 1.5.1
Description: Фирменное оформление Kid-Mama поверх JustVideo 1.1.2.
Requires at least: 6.0
Requires PHP: 7.0
Text Domain: kid-mama-child
*/
body.kmchild-shell{background:#fff;color:#10234d;--km-blue:#005bd7;--km-ink:#10234d;--km-border:#d8e5f7;--km-pale:#f2f6fc}
.kmchild-shell #masthead.kmchild-header{position:relative;top:auto;height:auto;line-height:1.4;background:#f2f6fc;box-shadow:none;border-bottom:1px solid #e4edf8;z-index:110}
.kmchild-head-inner{display:flex;align-items:center;gap:22px;max-width:2100px;margin:auto;padding:16px 3%;flex-wrap:wrap}
.kmchild-brand{margin-right:auto;display:block;flex:0 0 auto}.kmchild-brand img{display:block;width:clamp(190px,15vw,280px);height:auto}
.kmchild-nav,.kmchild-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.kmchild-nav>a,.kmchild-more summary{font-weight:700;color:#10234d;font-size:16px;text-decoration:none;cursor:pointer}.kmchild-nav>a:hover,.kmchild-more summary:hover{color:#005bd7}
.kmchild-shell a.kmchild-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 22px;border-radius:999px;background:linear-gradient(#ffda30,#ffa000);color:#10234d;font-weight:700;text-decoration:none;border:1px solid transparent;white-space:nowrap;box-shadow:none}.kmchild-shell a.kmchild-outline{background:transparent;border-color:#005bd7;color:#005bd7}.kmchild-shell a.kmchild-button:hover{filter:brightness(.96)}
.kmchild-more{position:relative}.kmchild-dropdown{position:absolute;right:0;top:calc(100% + 12px);width:min(360px,85vw);max-height:70vh;overflow:auto;background:white;border:1px solid #d8e5f7;border-radius:16px;padding:16px;box-shadow:0 12px 32px #12365b22}.kmchild-dropdown ul{list-style:none;margin:0;padding:0}.kmchild-dropdown ul ul{padding-left:16px}.kmchild-dropdown li a{display:block;padding:7px;color:#10234d;text-decoration:none}.kmchild-dropdown li a:hover{background:#e8f1ff;border-radius:8px}.kmchild-search{display:flex;gap:6px;margin-top:12px}.kmchild-search input{min-width:0;width:100%;border:1px solid #c9dcf7;border-radius:24px;padding:8px 12px}.kmchild-search button{background:#005bd7;color:white;border:0;border-radius:24px;padding:8px 12px;box-shadow:none}
.kmchild-shell #content{background:#fff;min-height:55vh}.kmchild-shell #content:before{display:none}.kmchild-shell .content-wrap{padding:30px 3% 40px;margin-left:252px}.kmchild-shell .left-sidebar{position:relative;float:left;top:auto;height:auto;padding:12px 0;margin:24px 0 24px 12px;width:230px;background:#f2f6fc;border:1px solid #d8e5f7;border-radius:16px;z-index:20}.kmchild-shell .left-sidebar a{color:#10234d}.kmchild-shell .left-sidebar a:hover{color:#005bd7}.kmchild-shell .single-wrap{padding-top:30px;padding-bottom:40px}.kmchild-shell .breadcrumbs{background:#e2effd;border-radius:16px;padding:22px 24px;margin-bottom:24px}.kmchild-shell .breadcrumbs h1,.kmchild-shell h1.entry-title,.kmchild-shell h1.page-title{color:#005bd7;font-size:clamp(25px,2.4vw,40px);line-height:1.2}.kmchild-shell .breadcrumbs-nav{color:#526a8b}
.kmchild-shell .content-loop{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0}.kmchild-shell .content-loop:after,.kmchild-shell .content-loop:before{display:none}.kmchild-shell .content-loop>.hentry{float:none;width:auto;min-width:0;margin:0;padding:12px;border:1px solid #d8e5f7;border-radius:16px;background:#fff;box-shadow:0 5px 16px #163c6a0a;transition:box-shadow .2s,transform .2s}.kmchild-shell .content-loop>.hentry:hover{box-shadow:0 8px 22px #163c6a18;transform:translateY(-2px)}.kmchild-shell .content-loop .thumbnail-wrap{border-radius:10px;overflow:hidden}.kmchild-shell .content-loop .thumbnail-link img{display:block;width:100%;height:auto}.kmchild-shell .content-loop .entry-title{font-size:clamp(15px,1.15vw,20px);font-weight:700;line-height:1.35;white-space:normal;overflow:visible;text-overflow:clip}.kmchild-shell .content-loop .entry-title a{color:#10234d}.kmchild-shell .content-loop .entry-title a:hover{color:#005bd7}.kmchild-shell .content-loop .entry-meta{color:#526a8b}.kmchild-shell .content-loop>.no-results,.kmchild-shell .content-loop>.widget{grid-column:1/-1}
.kmchild-shell .single-wrap #main>article:not(.has-embed){border:1px solid #d8e5f7;border-radius:16px;padding:clamp(12px,2vw,28px);background:#fff}.kmchild-shell .sidebar .widget{border-radius:14px;background:#f2f6fc;padding:16px}.kmchild-shell .sidebar .widget-title{color:#005bd7}.kmchild-shell #site-bottom{background:#f2f6fc;color:#10234d;text-align:center;padding:22px 3%;border-top:1px solid #e0eafa}.kmchild-footer{display:flex;justify-content:center;align-items:center;gap:24px;flex-wrap:wrap;margin-bottom:12px}.kmchild-footer img{width:180px;height:auto;display:block}.kmchild-footer a{color:#10234d;text-decoration:none;font-size:16px}.kmchild-shell #site-bottom .site-info,.kmchild-shell #site-bottom .footer-nav{float:none;display:inline-block;margin:8px}.kmchild-shell #site-bottom .footer-nav a{color:#10234d;text-decoration:none}
.kmchild-shell a:focus-visible,.kmchild-shell summary:focus-visible{outline:2px solid #005bd7;outline-offset:3px}
@media(max-width:1250px){.kmchild-head-inner{justify-content:center;gap:14px}.kmchild-brand{margin:0 auto 0 0}.kmchild-nav{gap:12px}.kmchild-shell .content-loop{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:959px){.kmchild-shell .left-sidebar{display:none}.kmchild-shell .content-wrap{margin:0;padding:22px 3% 32px}.kmchild-head-inner{justify-content:center}.kmchild-brand{margin:0}.kmchild-nav,.kmchild-actions{justify-content:center}.kmchild-shell .single-wrap{width:94%;padding-top:22px}.kmchild-shell .content-loop{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.kmchild-head-inner{gap:12px;padding:12px}.kmchild-nav{gap:10px;justify-content:center}.kmchild-nav>a,.kmchild-more summary{font-size:14px}.kmchild-actions{gap:8px}.kmchild-shell a.kmchild-button{font-size:14px;padding:8px 14px}.kmchild-dropdown{position:fixed;top:22%;right:5%;left:5%;width:90%}.kmchild-shell .content-loop{gap:10px}.kmchild-shell .content-loop>.hentry{padding:8px}.kmchild-shell .breadcrumbs{padding:16px}.kmchild-shell .single-wrap #primary{width:100%;float:none}.kmchild-shell .single-wrap .sidebar{width:100%;float:none}.kmchild-footer{gap:12px}}
/* 1.1: archive layout only; preserve individual trainer layout. */
body.kmchild-shell.archive #content,body.kmchild-shell.search #content{width:100%;max-width:2100px}
.kmchild-shell.archive .left-sidebar,.kmchild-shell.search .left-sidebar{display:none!important}
.kmchild-shell.archive .content-wrap,.kmchild-shell.search .content-wrap{width:100%;max-width:1800px;margin:0 auto!important;padding:28px 3% 40px;min-height:0!important;box-sizing:border-box}
.kmchild-shell.archive #primary,.kmchild-shell.search #primary{width:100%!important;float:none;margin:0}
.kmchild-shell.archive .breadcrumbs,.kmchild-shell.search .breadcrumbs{margin:0 0 24px;padding:22px 24px}
.kmchild-shell.archive .breadcrumbs h1,.kmchild-shell.search .breadcrumbs h1{margin:10px 0 0}
.kmchild-shell .content-loop>.hentry{height:auto!important;max-height:none!important;align-self:stretch;display:flex;flex-direction:column;box-sizing:border-box;clear:none}
.kmchild-shell .content-loop .entry-header{height:auto!important;max-height:none!important;overflow:visible;position:static;flex:1;min-width:0}
.kmchild-shell .content-loop .entry-title{display:block!important;-webkit-line-clamp:unset;height:auto!important;max-height:none!important;margin:0;overflow-wrap:anywhere;white-space:normal}
.kmchild-shell .content-loop .thumbnail-wrap{aspect-ratio:4/3;background:#f2f6fc}
.kmchild-shell .content-loop .thumbnail-link img{width:100%;height:100%;object-fit:contain}
.kmchild-shell .content-loop .icon-play{display:none!important}
.kmchild-shell .pagination{text-transform:none;margin:28px 0 0}
.kmchild-shell .pagination .nav-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.kmchild-shell .pagination .page-numbers{border:1px solid #d8e5f7;border-radius:12px;background:#f2f6fc;color:#005bd7;height:auto;min-width:42px;line-height:42px;font-weight:700}
.kmchild-shell .pagination .current,.kmchild-shell .pagination a:hover{background:#005bd7;color:#fff}
.kmchild-category-search{display:flex;gap:8px;max-width:600px;margin-top:18px;align-items:center}
.kmchild-category-search input{flex:1;min-width:0;background:#fff;border:1px solid #c9dcf7;border-radius:999px;padding:12px 16px;margin:0;box-shadow:none}
.kmchild-category-search button{background:#005bd7;color:#fff;border:0;border-radius:999px;padding:12px 22px;box-shadow:none}
.kmchild-subcategories{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.kmchild-subcategories a{background:#fff;border:1px solid #c9dcf7;border-radius:999px;padding:7px 14px;color:#005bd7;font-weight:700}
.kmchild-shell #back-top a span{border-radius:50%;background:#005bd7;width:42px;line-height:42px;right:18px;bottom:24px;box-shadow:0 4px 14px #12365b22}
@media(max-width:520px){.kmchild-shell.archive .breadcrumbs,.kmchild-shell.search .breadcrumbs{padding:16px}.kmchild-category-search button{padding:10px 14px}.kmchild-shell .content-loop .entry-title{font-size:15px}}

/* 1.2: isolate catalogue geometry from JustVideo sidebar layout. */
body.kmchild-shell:is(.archive,.search) #page,
body.kmchild-shell:is(.archive,.search) #content,
body.kmchild-shell:is(.archive,.search) #content > .clear,
body.kmchild-shell:is(.archive,.search) .content-wrap,
body.kmchild-shell:is(.archive,.search) #primary,
body.kmchild-shell:is(.archive,.search) #main {
 float:none!important; width:100%!important; max-width:none!important; min-width:0!important;
 margin:0!important; left:auto!important; right:auto!important; box-sizing:border-box!important;
}
body.kmchild-shell:is(.archive,.search) #content,
body.kmchild-shell:is(.archive,.search) #content > .clear,
body.kmchild-shell:is(.archive,.search) #primary,
body.kmchild-shell:is(.archive,.search) #main {padding:0!important;display:block!important;}
body.kmchild-shell:is(.archive,.search) .content-wrap {max-width:2100px!important;margin:0 auto!important;padding:28px 3% 40px!important;display:block!important;}
body.kmchild-shell:is(.archive,.search) .breadcrumbs {padding:20px 24px;margin:0 0 24px!important;width:100%;box-sizing:border-box;}
body.kmchild-shell:is(.archive,.search) .breadcrumbs h1 {margin:8px 0 0!important;padding:0!important;}
body.kmchild-shell:is(.archive,.search) #recent-content {width:100%!important;max-width:none!important;margin:0!important;padding:0!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:18px;}
.kmchild-shell .kmchild-category-search {display:flex!important;align-items:center!important;gap:6px;max-width:640px;margin:16px 0 0!important;padding:5px!important;border:1px solid #c9dcf7;border-radius:999px;background:#fff;box-sizing:border-box;}
.kmchild-shell .kmchild-category-search input[type=search] {flex:1 1 0;min-width:0;width:0!important;height:42px!important;line-height:normal!important;border:0!important;background:transparent!important;padding:0 12px!important;margin:0!important;box-shadow:none!important;}
.kmchild-shell .kmchild-category-search button {display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto;height:42px!important;min-height:0!important;line-height:1!important;padding:0 22px!important;margin:0!important;border:0!important;border-radius:999px!important;background:#005bd7!important;color:white!important;box-shadow:none!important;}
.kmchild-shell .kmchild-footer {margin:0;gap:24px;}
.kmchild-shell .kmchild-footer .kmchild-copyright {font-size:15px;}
.kmchild-shell .kmchild-footer .kmchild-vk img {width:28px;height:28px;object-fit:contain;}
.kmchild-shell .kmchild-counter {display:block;width:1px;height:1px;overflow:hidden;position:absolute;clip-path:inset(50%);}
@media(max-width:600px){body.kmchild-shell:is(.archive,.search) #recent-content{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}body.kmchild-shell:is(.archive,.search) .breadcrumbs{padding:16px;} .kmchild-shell .kmchild-category-search button{padding:0 14px!important;} .kmchild-shell .kmchild-footer{gap:12px;}}
