/*
Theme Name: MoNews Editorial Child
Description: Original editorial layout for MoNews, built as an update-safe child of Blogus. Compact homepage rows with responsive, uncropped featured images.
Author: MoNews
Template: blogus
Version: 1.0.10
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: monews-editorial-child
*/

/* MoNews editorial design. The child template supplies responsive image markup. */
body {font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.7;}
body.defaultcolor {background:#f6f7f5;color:#26332f;}
h1,h2,h3,h4,h5,h6,.site-title,.site-title-footer,.navbar-wp .navbar-nav > li > a {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;letter-spacing:-.025em;}
body.defaultcolor h1,body.defaultcolor h2,body.defaultcolor h3,body.defaultcolor h4,body.defaultcolor .title a {color:#152c25;}
body.defaultcolor a:hover {color:#0b7055;}
.bs-header-main .inner {padding:24px 0;}
.bs-header-main {min-height:0;}
.site-title {font-size:44px!important;font-weight:800;line-height:1.1;margin:0;letter-spacing:-2px;}
.site-title a {color:#123d31!important;}
.bs-menu-full {border-top:1px solid #dfe7e2;border-bottom:1px solid #dfe7e2;}
.navbar-wp {padding:0;}
.navbar-wp .navbar-nav > li > a {padding:12px 22px;font-size:14px;font-weight:650;letter-spacing:.02em;}
.navbar-wp .navbar-nav > li > a:hover,.navbar-wp .navbar-nav > .active > a,.navbar-wp .navbar-nav > li.active > a {background:#0b624b;color:white;box-shadow:none;}
.msearch,.right-nav .switch .slider,button.wp-block-search__button,input[type=submit],.comment-respond .submit {background:#0b624b!important;color:#fff!important;border-radius:5px;}
.msearch {width:40px;height:40px;line-height:40px;}
#content {padding-top:32px;padding-bottom:40px;}
#blog-list {display:grid;grid-template-columns:1fr;gap:28px;}
#blog-list > .bs-blog-post {display:flex;flex-direction:column;align-items:stretch;margin:0;padding:0;overflow:hidden;border-radius:8px;border:1px solid #dfe7e2;box-shadow:0 2px 8px #153d2410;}
#blog-list > .bs-blog-post .bs-blog-thumb {width:100%;max-width:none;min-width:0;height:auto;min-height:0;aspect-ratio:auto;flex:none;border-radius:0;margin:0;}
#blog-list > .bs-blog-post article {padding:24px;}
#blog-list .title {font-size:26px;line-height:1.25;font-weight:750;margin-bottom:14px;}
#blog-list p {font-size:16px;line-height:1.65;margin-bottom:0;color:#52635c;}
.bs-blog-category a {background:#e6f1eb!important;color:#0b624b!important;font-size:11px;font-weight:750;letter-spacing:.08em;text-transform:uppercase;border-radius:3px;padding:4px 8px;}
.bs-blog-meta {font-size:12px;line-height:1.6;margin-bottom:16px;}
.bs-blog-meta a {color:#607168;}
.bs-blog-meta .avatar,#blog-list .comments-link {display:none;}
.bs-blog-post,.bs-widget {box-shadow:none;border-radius:8px;}
.bs-widget {border:1px solid #dfe7e2;padding:24px;}
.bs-widget h2,.bs-widget .wp-block-search__label {font-size:18px;letter-spacing:0;}
.bs-widget h2:before,.bs-widget h2:after,.bs-widget .wp-block-search__label:after {background:#0b624b;}
#sidebar-right #block-5 {display:none;}
.single .bs-blog-post {padding:32px;}
.single .bs-blog-post h1 {font-size:clamp(30px,3.5vw,46px);line-height:1.15;}
.single .bs-blog-post p,.single .bs-blog-post li {font-size:18px;line-height:1.8;}
.single .bs-blog-post h2 {font-size:28px;line-height:1.3;margin-top:32px;}
.single .bs-blog-post h3 {font-size:22px;line-height:1.35;}
.single .bs-blog-post figure {margin:28px 0;}
.single .bs-blog-post figcaption {font-size:12px;line-height:1.5;color:#617269;}
.single .bs-blog-post p a {text-decoration:underline;text-underline-offset:3px;color:#0b624b;}
input[type=search],input[type=text],input[type=email],textarea {border-radius:4px;}
a:focus-visible,button:focus-visible,input:focus-visible {outline:3px solid #cd9b27;outline-offset:4px;}
footer .bs-footer-bottom-area {padding:26px 0;}
footer .site-title-footer {font-size:30px;font-weight:800;letter-spacing:-1px;margin:0;}
footer .bs-footer-copyright {font-size:12px;}
@media(min-width:1200px){.container{max-width:1160px;}}
@media(max-width:991px){.m-header{padding:16px 0;}.m-header .site-title{font-size:32px!important;}.navbar-wp .navbar-nav > li > a{padding:12px 16px;}.navbar-toggler{min-width:44px;min-height:44px;}#content{padding-top:24px;}}
@media(max-width:600px){#blog-list{grid-template-columns:1fr;gap:22px;}#blog-list > .bs-blog-post article{padding:20px;}#blog-list .title{font-size:24px;}.single .bs-blog-post{padding:20px;}.single .bs-blog-post p,.single .bs-blog-post li{font-size:17px;}.single .bs-blog-post h2{font-size:25px;}.single .sidebar-right{margin-top:24px;}}
/* End MoNews editorial refresh */
/* Theme-specific spacing and dark-mode refinements */
body.defaultcolor,body.defaultcolor #page {background:#f6f7f5!important;}
header.bs-default .bs-header-main .inner {padding:24px 0!important;min-height:0;height:auto;}
header .site-title,header .site-title a {font-size:44px!important;line-height:1.1!important;}
header.bs-default .bs-menu-full {padding:0!important;margin:0!important;}
header.bs-default .navbar-wp {margin:0!important;}
header .navbar-nav .nav-link {box-shadow:none!important;background:transparent!important;color:#184b3c!important;}
header .navbar-nav .nav-link:hover {background:#e6f1eb!important;}
.bs-blog-meta img.avatar {display:none!important;}
.right-nav .switch .slider:before {background:#0b624b!important;}
body.dark .site-title a,body.dark header .navbar-nav .nav-link {color:#deeee6!important;}
body.dark #blog-list p,body.dark .bs-blog-meta a,body.dark .bs-blog-post figcaption {color:#c1cec6;}
body.dark .bs-blog-post p a {color:#92d6b4;}
@media(max-width:991px){header .m-header .site-title,header .m-header .site-title a{font-size:30px!important;}}

header .navbar-nav > li,header .navbar-nav > li.active{background:transparent!important;box-shadow:none!important;}


body.defaultcolor header.bs-default{background:#fff;}
#blog-list > .bs-blog-post article{text-align:left!important;}

header .navbar-nav{background:transparent!important;box-shadow:none!important;}
.bs-widget .wp-block-search__label:before{background:#0b624b!important;}

@media(max-width:600px){.single .bs-blog-post .bs-header{padding:0 0 20px;}.single .bs-blog-post h1.title{font-size:28px!important;}}

/* Use each attachment's natural proportions; never crop the archive image. */
#blog-list > .bs-blog-post .monews-card-thumb {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    background: none;
    overflow: visible;
}
#blog-list .monews-card-thumb::before,
#blog-list .monews-card-thumb::after {
    display: none;
}
#blog-list .monews-card-thumb .monews-card-image {
    display: block;
    position: static;
    width: 100%;
    height: auto;
    inset: auto;
    line-height: 0;
    transform: none;
}
#blog-list .monews-card-thumb img,
#blog-list > .bs-blog-post:hover .monews-card-thumb img {
    display: block;
    position: static;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain;
    margin: 0;
    border-radius: 0;
    transform: none;
}
#blog-list > .bs-blog-post article {
    width: 100%;
    min-width: 0;
}
#blog-list > .bs-blog-post .title {
    overflow-wrap: anywhere;
}
#blog-list > .navigation,
#blog-list > .pagination {
    grid-column: 1 / -1;
}
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #cd9b27;
    outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
    #blog-list .monews-card-thumb img {
        transition: none;
    }
}


/* Compact homepage rows with the parent right sidebar retained. */
.home #blog-list {
    width: 100%;
    max-width: none;
    gap: 20px;
    margin: 0;
}
.home #blog-list > .monews-card {
    flex-direction: row;
    gap: 0 !important;
    align-items: center;
    min-height: 200px;
    padding: 16px;
}
.home #blog-list > .monews-card .monews-card-thumb {
    flex: 0 0 280px;
    width: 280px;
    max-width: 48%;
    align-self: center;
}
.home #blog-list > .monews-card article {
    flex: 1 1 0;
    width: auto;
    padding: 0 0 0 20px;
}
.home #blog-list > .monews-card .title {
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 8px;
}
.home #blog-list .bs-blog-category {
    justify-content: flex-start;
    margin-bottom: 8px;
}
.home #blog-list .bs-blog-meta {
    justify-content: flex-start;
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 8px;
}
.home #blog-list .monews-card-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    max-height: 3.1em;
    font-size: 15px;
    line-height: 1.55;
}
.home #blog-list .monews-card-excerpt p {
    font-size: inherit;
    line-height: inherit;
    margin: 0;
}
/* Native site logo, supplied through WordPress's custom-logo control. */
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}
.custom-logo-link img,
img.custom-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(260px, 100%);
    min-width: 0;
    max-height: 72px;
    object-fit: contain;
}
@media (max-width: 991px) {
    .home #content > .container > .row > .content-right,
    .home #content > .container > .row > aside {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .home #content > .container > .row > aside {
        margin-top: 28px;
        order: 2;
    }
    .custom-logo-link img,
    img.custom-logo {
        max-width: min(220px, 100%);
        max-height: 60px;
    }
}
@media (max-width: 600px) {
    .home #blog-list {
        gap: 16px;
    }
    .home #blog-list > .monews-card {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding: 12px;
    }
    .home #blog-list > .monews-card .monews-card-thumb {
        flex: none;
        width: 100%;
        max-width: 100%;
        align-self: center;
    }
    .home #blog-list > .monews-card article {
        padding: 12px 0 0;
        flex: none;
        width: 100%;
    }
    .home #blog-list > .monews-card .title {
        font-size: 18px;
        line-height: 1.3;
    }
}

/* User-supplied RGB logo stays on white in both display modes. */
.site-logo:has(img.custom-logo){background:#fff;border-radius:4px;padding:4px;max-width:100%;}
header .site-logo .navbar-brand{margin:0;padding:0;max-width:100%;}
header .site-logo img.custom-logo{width:260px;height:auto!important;max-width:100%;}
@media(max-width:991px){header .m-header .site-logo .navbar-brand{width:180px;}header .site-logo img.custom-logo{width:180px;}}

/* Override Blogus fixed-width layout with responsive homepage columns. */
@media(min-width:992px){.home #content > .container > .row > .content-right{width:calc(100% - 300px)!important;flex:0 0 calc(100% - 300px);}.home #content > .container > .row > aside.sidebar-right{width:300px!important;flex:0 0 300px;}}
@media(max-width:991px){.home #content > .container > .row > .content-right,.home #content > .container > .row > aside.sidebar-right{width:100%!important;flex:0 0 100%;max-width:100%;}}

@media(min-width:992px){.home #content > .container > .row > .content-right{max-width:calc(100% - 300px);min-width:0;}.home #content > .container > .row > aside.sidebar-right{max-width:300px;}}

.footer-logo img.custom-logo{width:210px;height:auto!important;max-width:100%;}

/* Compact mobile summaries and fitted footer brand container. */
@media(max-width:600px){
.home #blog-list .monews-card-excerpt,.home #blog-list .bs-blog-category,.home #blog-list .bs-blog-meta{display:none;}
.home #blog-list > .monews-card .title{margin-bottom:0;}
}
footer .site-logo:has(img.custom-logo){display:inline-flex;width:fit-content;max-width:100%;}
footer .site-logo .navbar-brand{margin:0;padding:0;max-width:100%;}

/* Give desktop homepage photographs a generous half-row column. */
@media(min-width:992px){
.home #content > .container{width:calc(100% - 48px);max-width:1280px;}
.home #blog-list > .monews-card .monews-card-thumb{flex:0 0 52%;width:52%;max-width:440px;}
}

/* MoNews logo palette: accessible blue and teal, with restrained bright accents. */
:root{--monews-blue:#086fa6;--monews-teal:#08745b;--monews-ink:#173245;--monews-muted:#506373;--monews-paper:#f3f8fb;--monews-line:#d9e8ee;}
body.defaultcolor,body.defaultcolor #page{background:var(--monews-paper)!important;color:var(--monews-ink);}
body.defaultcolor h1,body.defaultcolor h2,body.defaultcolor h3,body.defaultcolor h4,body.defaultcolor .title a{color:var(--monews-ink);}
body.defaultcolor a,body.defaultcolor.single .bs-blog-post p a,body.defaultcolor .wp-block-latest-posts a,body.defaultcolor .wp-block-categories a{color:var(--monews-blue);}
body.defaultcolor .bs-blog-meta a,body.defaultcolor #blog-list p,body.defaultcolor .bs-blog-post figcaption{color:var(--monews-muted);}
body.defaultcolor.single .bs-blog-post p a:hover,body.defaultcolor a:hover,body.defaultcolor .title a:hover{color:var(--monews-teal);}
.msearch,button.wp-block-search__button,input[type=submit],.comment-respond .submit{background:var(--monews-blue)!important;color:#fff!important;}
.msearch:hover,button.wp-block-search__button:hover,input[type=submit]:hover{background:var(--monews-teal)!important;}
.right-nav .switch .slider,.right-nav .switch .slider:before{background:var(--monews-teal)!important;}
header .navbar-nav .nav-link{color:var(--monews-blue)!important;}
header .navbar-nav .nav-link:hover{background:#e7f5fa!important;color:var(--monews-teal)!important;}
.bs-menu-full{border-color:var(--monews-line);border-bottom:3px solid var(--monews-blue);}
.bs-blog-category a{background:#e1f5ee!important;color:#09634e!important;}
.bs-widget h2:before,.bs-widget h2:after,.bs-widget .wp-block-search__label:before,.bs-widget .wp-block-search__label:after{background:var(--monews-teal)!important;}
#blog-list > .bs-blog-post,.bs-widget{border-color:var(--monews-line);}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--monews-blue);outline-offset:4px;}
footer,footer .bs-footer-bottom-area{background:#102e40!important;color:#eff8fc;}
footer .bs-footer-copyright{background:#0b2433!important;color:#eff8fc;}
footer .bs-footer-copyright a{color:#b5e6f7!important;}
body.dark a:focus-visible,body.dark button:focus-visible,body.dark input:focus-visible,footer a:focus-visible{outline-color:#61cfff;}

body.defaultcolor main#content{background:var(--monews-paper)!important;}
body.defaultcolor .bs-widget a{color:var(--monews-blue)!important;}
body.defaultcolor .bs-widget a:hover{color:var(--monews-teal)!important;}
footer .bs-footer-overlay-copyright{background:#0b2433!important;}
footer a{color:#b5e6f7!important;}
body.defaultcolor input[type=search],body.defaultcolor input[type=text],body.defaultcolor input[type=email],body.defaultcolor textarea{border-color:var(--monews-muted)!important;}
