/*
Theme Name: Greatcomm Theme
Theme URI: https://github.com
Author: Your Name
Description: High-contrast white canvas theme with vibrant broadcasting green headers and item containers.
Version: 1.0.0
Text Domain: greatcomm-theme
*/

/* ==========================================================================
   1. DESIGN SYSTEM VARIABLES
   ========================================================================== */
:root {
    --color-bg-main: #FFFFFF;         /* Pristine White Canvas Base */
    --color-bg-surface: #F8F9FA;      /* Subtle Light Surface Gray */
    --color-bg-elevated: #E9ECEF;     /* Structural borders separator */
    
    --color-primary: #00CD6C;         /* Word of Life Broadcasting Green */
    --color-primary-hover: #00A858;   /* Deep hover green focus state */
    
    --color-text-main: #2B2D42;       /* Slate dark readability text color */
    --color-text-muted: #6C757D;      /* Medium description contextual gray */
    --color-text-light: #FFFFFF;      /* Clean White text for menu links */

    --font-primary: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.2s ease-in-out;
}

/* ==========================================================================
   2. BOOTSTRAP 4 STRUCTURAL SPECIFICATIONS
   ========================================================================== */
body p { margin: 0 0 10px; }

@media (max-width: 767px) {
    .container { max-width: none; }
}
@media (min-width: 768px) {
    .container { padding-right: 0px; padding-left: 0px; }
}

.clearboth { clear: both; }
.fl { float: left; }
.fr { float: right; }
.alignc { text-align: center; }

/* Dynamic Helper Spacers from parent theme structure */
.mrt20 { margin-top: 20px; }
.mrb20 { margin-bottom: 20px; }
.pd20 { padding: 20px; }


/* ==========================================================================
   3. DESIGN OVERRIDES (MATCHING THE SCREENSHOT)
   ========================================================================== */
/* Master Topbar Header Layer overrides */
.bgtoph {
    background-color: var(--color-primary) !important;
    color: var(--color-text-light) !important;
}
.bgtoph a {
    color: var(--color-text-light) !important;
}
.bgtoph a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Branding Center Base Layout */
.headermain {
    background-color: var(--color-bg-main) !important;
    padding: 2rem 0 !important;
    text-align: center;
}

.site-title a {
    color: var(--color-primary-hover) !important;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

.site-description {
    color: var(--color-primary) !important;
    font-size: 1.1rem;
    font-style: italic;
}

/* Responsive Green Navigation Menu Bar Layer */
.navbarprimary {
    background-color: var(--color-primary) !important;
    border-bottom: 3px solid var(--color-primary-hover) !important;
}

.navbarprimary .navbar-nav > li > a {
    color: var(--color-text-light) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    padding: 12px 18px !important;
}

.navbarprimary .navbar-nav > li > a:hover,
.navbarprimary .navbar-nav > .active > a {
    background-color: var(--color-primary-hover) !important;
    color: var(--color-text-light) !important;
}

/* Dropdown Menu Item Canvas */
.navbarprimary .dropdown-menu {
    background-color: var(--color-primary) !important;
    border-bottom-color: var(--color-primary-hover) !important;
}

.dropdown-menu > li > a {
    color: var(--color-text-light) !important;
    background-color: var(--color-primary) !important;
}

.dropdown-menu > li > a:hover {
    background-color: var(--color-primary-hover) !important;
}

.front-page-canvas-area {
    transition: var(--transition-smooth);
}

/* Sidebar layout classes triggered by get_theme_mod( 'frntpg_layout' ) */
.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    float: left;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    clear: both;
}

/* Left Sidebar placement rule */
.layoutleftsidebar {
    order: 2;
    float: right;
}

/* Clear layout drops on smaller viewports */
@media (max-width: 767px) {
    .col-md-8, .layoutleftsidebar, .col-md-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        float: none !important;
        order: unset !important;
    }
}

/* Structural Post Navigation and Loop Buttons */
.post-navigation .nav-next a, 
.post-navigation .nav-previous a,
.tagcloud a,
.singletags a {
    background-color: var(--color-primary) !important;
    color: var(--color-text-light) !important;
}

.post-navigation .nav-next a:hover, 
.post-navigation .nav-previous a:hover,
.tagcloud a:hover,
.singletags a:hover {
    background-color: #000000 !important;
}

/* Footer Section base light-text grids tracking */
.footer {
    background-color: #272424 !important;
    border-top: 3px solid var(--color-primary) !important;
    color: #dddddd !important;
}

.footer a {
    color: var(--color-primary) !important;
}

.footer a:hover {
    color: var(--color-primary-hover) !important;
}

.footer-copyright {
    background-color: #1A1818 !important;
    color: #a7a7a7 !important;
}

/* Front-page magazine layout */
.front-page-top-otr {
    box-sizing: border-box;
    background: #f5f5f5;
    padding: 0 0 24px;
}

.front-page-top {
    box-sizing: border-box;
    width: 100%;
    max-width: 990px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.front-page-top .row {
    display: block;
    width: 100%;
    margin: 0;
}

.front-page-top .row > [class*="col-"] {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.dim-owl-top {
    width: 100%;
}

.dim-owl-top .owl-item {
    display: flex;
}

.dim-owl-top .item {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
}

.dim-owl-top .dim-firsta {
    display: block;
}

.dim-owl-top .dim-figure {
    height: clamp(180px, 22vw, 230px);
    margin: 0;
    overflow: hidden;
    background: #e9ecef;
}

.dim-owl-top .dim-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dim-owl-top .diowl-overlay {
    position: static;
    flex: 1;
    padding: 12px 14px 14px;
    background: #fff;
}

.dim-owl-top .diowl-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.dim-owl-top .dim-h3head {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.dim-owl-top .dim-h3head a {
    color: #222;
    text-decoration: none;
}

.dim-owl-top .dim-h3head a:hover {
    color: var(--color-primary-hover);
}

.dim-owl-top .diowl-cat a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    line-height: 1.3;
    text-decoration: none;
}

.dim-owl-top .owl-theme .owl-dots {
    margin-top: 12px;
}

.maincontainer {
    background: #fff;
}

.maincontainer > #content.container {
    box-sizing: border-box;
    width: 100%;
    max-width: 990px;
    margin-right: auto;
    margin-left: auto;
}

.maincontainer > #content > .row {
    box-sizing: border-box;
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    width: 100%;
    margin: 0;
}

.maincontainer > #content > .row > #primary.col-md-8 {
    box-sizing: border-box;
    float: none;
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    width: 66.666667%;
}

.maincontainer > #content > .row > #primary.col-md-8.layoutleftsidebar {
    order: 2;
}

.maincontainer > #content > .row > #secondary.layoutleftsidebar {
    order: 1;
}

.maincontainer > #content > .row > #primary.col-md-12 {
    box-sizing: border-box;
    float: none;
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

.archive-posts.archive-view-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.archive-posts.archive-columns-1 {
    grid-template-columns: minmax(0, 1fr);
}

.archive-posts.archive-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.archive-posts.archive-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.archive-posts.archive-view-list {
    display: block;
}

.archive-posts .archive-post-item {
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    padding: 18px;
}

.archive-posts.archive-view-list .archive-post-item {
    margin-bottom: 24px;
}

.archive-posts .post-thumbnail img {
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

.archive-posts .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.archive-posts .sticky-post-date {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.entry-header .entry-title,
.archive-posts .entry-title,
.single-post-main-headline {
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--color-primary);
}

.archive-posts .entry-title {
    font-size: 1.25rem;
    line-height: 1.35;
}

.single-post-main-headline {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem;
}

.single-post-body-content {
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    line-height: 1.75;
}

.single-post-focused-area .entry-meta {
    border-bottom: 1px solid var(--color-bg-elevated);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 15px;
    padding-bottom: 1rem;
}

.single-post-focused-area .entry-footer {
    border-top: 1px solid var(--color-bg-elevated);
    font-size: 0.9rem;
    padding-top: 1rem;
}

.greatcomm-post-breadcrumbs {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 8px;
    width: 100%;
    padding: 7px 12px;
    border-radius: 4px;
    background: #f3f4f6;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 16px;
}

.greatcomm-post-breadcrumbs a {
    color: var(--color-primary, #00cd6c);
    text-decoration: none !important;
}

.greatcomm-post-breadcrumbs__separator {
    color: #6c757d;
}

.greatcomm-post-breadcrumbs [aria-current="page"] {
    color: #6c757d;
}

.nav-links,
.pagination .nav-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
}

.page-numbers {
    border: 1px solid #d1d5db;
    display: inline-block;
    padding: 6px 10px;
    text-decoration: none;
}

.page-numbers.current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.front-page-canvas-area {
    margin-bottom: 0;
}

.front-page-canvas-area > .front-page-entry {
    margin-bottom: 1.5rem;
}

.front-page-entry:empty {
    display: none;
}

.left-content.front-categories {
    min-width: 0;
    padding: 0 15px;
}

.front-single-category {
    margin: 28px 0 34px;
}

.front-single-category-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--color-primary);
}

.front-single-category-headline h1 {
    margin: 0;
    padding: 7px 10px;
    background: var(--color-primary);
    color: #fff;
    font-size: 17px;
    line-height: 1.2;
}

.front-single-category-headline h1 a,
.front-single-category-headline h1 a:hover {
    color: #fff;
    text-decoration: none;
}

.front-single-category-headline p {
    margin: 0 8px 0 auto;
    padding: 0;
    line-height: 1;
}

.front-single-category-headline p a {
    display: inline-block;
    padding: 4px 8px;
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    text-decoration: none;
}

.front-single-category-headline p a:hover {
    background: var(--color-primary-hover);
}

.front-single-category-dimasonry {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.front-single-category-contents {
    min-width: 0;
    padding: 5px;
    background: #fff;
}

.dim-front-cat-imgs,
.dim-front-cat-img {
    margin: 0;
    overflow: hidden;
}

.dim-front-cat-img {
    aspect-ratio: 1.35 / 1;
    background: #f1f3f5;
}

.dim-front-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.front-single-category-contents-h1 {
    margin: 12px 0 7px;
    font-size: 17px;
    line-height: 1.35;
}

.front-single-category-contents-h1 a {
    color: #222;
    text-decoration: none;
}

.front-single-category-contents-h1 a:hover {
    color: var(--color-primary-hover);
}

.front-single-category-contents-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0 0 8px;
    color: #6c757d;
    font-size: 12px;
}

.front-single-category-contents-meta a {
    color: inherit;
}

.front-single-category-contents-exerpt {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
}

.front-page-sidebar {
    box-sizing: border-box;
    min-width: 0;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    width: 33.333333%;
    float: none;
    order: 2;
    padding: 0 15px;
}

.front-page-sidebar.layoutleftsidebar {
    order: 1;
}

.maincontainer > #content > .row > #primary.layoutleftsidebar {
    order: 2;
}

.front-page-sidebar .widget {
    margin: 28px 0 16px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.front-page-sidebar .widget-title,
.front-page-sidebar .widgettitle {
    margin: 0 0 10px;
    padding: 0 0 7px;
    border-bottom: 2px solid var(--color-primary);
    color: #222;
    font-size: 18px;
}

.front-page-sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.front-page-sidebar li {
    padding: 8px 0;
    border-bottom: 1px solid #edf0f2;
}

.front-page-sidebar li:last-child {
    border-bottom: 0;
}

.front-page-bottom {
    max-width: 990px;
    margin: 0 auto;
}

.dim-figure-btm,
.dim-figure-btm-right {
    margin: 0;
    overflow: hidden;
}

.dim-figure-btm img,
.dim-figure-btm-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dimasonry-secondary-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dimasonrybox-secondary-right {
    min-width: 0;
}

@media (max-width: 767px) {
    .front-page-top {
        padding-right: 10px;
        padding-left: 10px;
    }

    .maincontainer > #content > .row {
        display: flex;
    }

    .maincontainer > #content > .row > #primary.col-md-8,
    .maincontainer > #content > .row > #primary.col-md-12,
    .front-page-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .maincontainer > #content > .row > #primary.layoutleftsidebar,
    .front-page-sidebar.layoutleftsidebar {
        order: initial;
    }

    .front-single-category-dimasonry {
        gap: 12px;
    }

    .front-page-sidebar .widget {
        margin-top: 16px;
    }

    .archive-posts.archive-view-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .single-post-main-headline {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .maincontainer > #content > .row > #primary.col-md-8 {
        flex: 0 0 66.666667% !important;
        max-width: 66.666667% !important;
        width: 66.666667% !important;
    }

    .maincontainer > #content > .row > #primary.col-md-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .front-page-sidebar {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
    }
}

@media (max-width: 480px) {
    .front-single-category-dimasonry,
    .dimasonry-secondary-right {
        grid-template-columns: 1fr;
    }
}

.footer-copyright-inner {
    align-items: center;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.75rem 1.5rem;
    justify-content: center;
    padding: 1rem 0;
    text-align: center;
}

.footer-legal-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.footer-legal-links a {
    color: inherit;
}

.footer-legal-separator {
    color: inherit;
    opacity: 0.6;
}

/* ========================================================================== 
   8. BRAND LOGO SITE INITIALIZING PRELOADER CANVASES
   ========================================================================== */
.global-logo-preloader-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #FFFFFF; /* Matches your pristine white canvas aesthetic */
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
    overflow: hidden;
}

.preloader-branding-matrix {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.preloader-branding-matrix img, 
.preloader-branding-matrix .custom-logo {
    max-width: 180px;
    height: auto;
    animation: brandingPulse 2s infinite ease-in-out;
}

.preloader-text-fallback {
    font-size: 2rem;
    font-weight: 800;
    color: #00A858;
    margin: 0;
    letter-spacing: -0.03em;
}

/* Linear progress tracer design system matches broadcasting layout specs */
.preloader-progress-track {
    width: 140px;
    height: 3px;
    background-color: #E9ECEF;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.preloader-progress-bar {
    width: 100%;
    height: 100%;
    background-color: #00CD6C; /* Dynamic broadcasting menu green */
    position: absolute;
    left: -100%;
    animation: linearLoadingTracer 1.5s infinite ease-in-out;
}

/* Keyframes animations loop matrices */
@keyframes brandingPulse {
    0%, 100% { transform: scale(0.98); opacity: 0.95; }
    50% { transform: scale(1.02); opacity: 1; }
}

@keyframes linearLoadingTracer {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

/* Smooth fade-out helper trigger */
.global-logo-preloader-canvas.preloader-deactivated {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
/* Force preloader to block out the viewports instantly during browser read routines */
.global-logo-preloader-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background-color: #FFFFFF !important;
    display: flex !important;
    z-index: 9999999 !important; /* Extremely high z-index skips header collisions */
}

.site-header-main {
    background-color: var(--color-bg-main);
    border-bottom: 1px solid var(--color-bg-elevated);
    padding: 1.5rem 0;
}

.site-header-main > .container {
    box-sizing: border-box;
    margin-right: auto;
    margin-left: auto;
    max-width: 1140px;
    padding-right: 15px;
    padding-left: 15px;
    width: calc(100% - 30px);
}

.site-header-main .site-header-main-row {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    justify-content: space-between;
    width: 100%;
}

.site-header-main .site-branding {
    flex: 0 0 auto;
    min-width: 0;
}

.site-header-main .site-logo .custom-logo-link,
.preloader-branding-matrix .custom-logo-link {
    display: block;
}

.site-header-main .site-logo .custom-logo,
.preloader-branding-matrix .custom-logo {
    animation: none;
    height: auto;
    max-width: 100%;
    width: min(var(--greatcomm-logo-width, 180px), 90vw);
}

.preloader-branding-matrix .custom-logo {
    animation: brandingPulse 2s infinite ease-in-out;
}

.site-header-main .site-title {
    margin: 0;
}

.site-header-main .site-description {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.site-header-main .header-left-widgets,
.site-header-main .header-right-widgets {
    flex: 1 1 0;
    min-width: 0;
}

.site-header-main .header-right-widgets {
    text-align: right;
}

.site-header-main .menu-toggle {
    background: transparent;
    border: 1px solid var(--color-bg-elevated);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: none;
    flex: 0 0 auto;
    padding: 0.5rem 0.75rem;
}

.site-header-main .hamburger-bar {
    background-color: var(--color-text-main);
    display: block;
    height: 2px;
    margin: 4px 0;
    transition: var(--transition-smooth);
    width: 20px;
}

.footer .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.footer .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.footer .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.site-header-main.header-layout-1 .site-branding {
    grid-column: 2;
    justify-self: center;
    order: 2;
}

.site-header-main.header-layout-1 .header-left-widgets {
    grid-column: 1;
    order: 1;
}

.site-header-main.header-layout-1 .header-right-widgets {
    grid-column: 3;
    order: 3;
}

.site-header-main.header-layout-1 .site-header-main-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
}

.site-header-main.header-layout-2 .site-branding {
    order: 1;
}

.site-header-main.header-layout-2 .header-left-widgets {
    order: 2;
}

.site-header-main.header-layout-2 .header-right-widgets {
    order: 3;
}

.site-header-main.header-layout-3 .header-left-widgets {
    order: 1;
}

.site-header-main.header-layout-3 .header-right-widgets {
    order: 2;
}

.site-header-main.header-layout-3 .site-branding {
    order: 3;
}

#primary.single-post-layout-left {
    order: 2;
}

#primary.single-post-layout-left + #secondary {
    order: 1;
}

#primary.single-post-layout-full {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

@media (max-width: 991px) {
    .footer .row > div[class*="col-md-"] {
        flex: 0 0 100%;
        float: none;
        max-width: 100%;
        width: 100%;
    }

    .site-header-main {
        padding: 0.75rem 0;
    }

    .site-header-main .site-header-main-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1.2fr) minmax(56px, min(var(--greatcomm-logo-width, 180px), 30vw)) minmax(0, 1fr);
        align-items: center;
        gap: 0.75rem;
    }

    .site-header-main .site-branding {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
    }

    .site-header-main .header-left-widgets,
    .site-header-main .header-right-widgets {
        grid-row: 1;
        min-width: 0;
        text-align: center;
    }

    .site-header-main .header-left-widgets {
        grid-column: 1;
    }

    .site-header-main .header-right-widgets {
        grid-column: 3;
    }

    .site-header-main .header-left-widgets .widget,
    .site-header-main .header-right-widgets .widget {
        margin: 0;
    }

    .site-header-main .header-left-widgets .header-widget-title,
    .site-header-main .header-right-widgets .header-widget-title {
        margin: 0 0 0.25rem;
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .site-header-main .header-left-widgets img,
    .site-header-main .header-right-widgets img,
    .site-header-main .header-left-widgets iframe,
    .site-header-main .header-right-widgets iframe,
    .site-header-main .header-left-widgets audio,
    .site-header-main .header-right-widgets audio {
        max-width: 100%;
    }

    .site-header-main .header-left-widgets img,
    .site-header-main .header-right-widgets img {
        max-height: 80px;
        width: auto;
        object-fit: contain;
    }

    .site-header-main .site-logo .custom-logo {
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .site-header-main {
        padding: 0.5rem 0;
    }

    .site-header-main .site-header-main-row {
        grid-template-columns: minmax(0, 1fr) minmax(52px, min(var(--greatcomm-logo-width, 180px), 35vw)) minmax(0, 1fr);
        gap: 0.4rem;
    }

    .site-header-main .header-left-widgets img,
    .site-header-main .header-right-widgets img {
        max-height: 72px;
    }

    .site-header-main .site-logo .custom-logo {
        object-fit: contain;
    }

    .site-header-main .header-left-widgets,
    .site-header-main .header-right-widgets {
        font-size: 0.75rem;
    }
}

/* Keep header content aligned with the padded main content column. */
.site-header-main > .container,
.spsl-topbar-container > .container,
.site-navigation-bar > .container {
    box-sizing: border-box;
    width: calc(100% - 30px);
    max-width: 990px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.site-header-main .site-header-main-row {
    margin-right: 0;
    margin-left: 0;
}

#greatcomm-theme-ticker-wrap,
#greatcomm-childtheme-ticker-wrap {
    box-sizing: border-box;
    width: calc(100% - 30px);
    max-width: 960px;
    margin-right: auto;
    margin-left: auto;
}

.greatcomm-radio-stream-widget__player {
    display: block;
    width: 220px;
    max-width: 100%;
    height: 40px;
    margin: 0;
}

.greatcomm-radio-stream-widget__player:focus-visible {
    outline: 2px solid var(--color-primary, #ff5a1f);
    outline-offset: 2px;
}

/* Keep links clean and make the post title rule match the page heading style. */
a,
a:visited,
a:hover,
a:focus,
a:active {
    text-decoration: none !important;
}

.entry-header .entry-title,
.the-title.entry-title,
.archive-posts .entry-title,
.single-post-main-headline {
    display: block;
    width: 100%;
    padding: 10px 0 12px;
    border-bottom: 3px solid var(--color-primary, #00cd6c) !important;
}

.single-post-main-headline {
    font-family: "Arvo", Georgia, serif;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.3;
}

/* Sidebar widgets use the same compact heading treatment on posts and pages. */
.widget-area .widget {
    margin: 0 0 22px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    background-color: #fff;
}

.widget-area .right-widget-title,
.widget-area .widget-title,
.widget-area .widgettitle,
.widget-area .widget_block .wp-block-heading {
    margin: -2px -10px 10px;
    padding: 8px 10px 10px;
    border-bottom: 3px solid var(--color-primary, #00cd6c);
    color: #111;
    font-family: "Arvo", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
}

.widget-area .widget ul,
.widget-area .widget ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.widget-area .widget li,
.widget-area .wp-block-latest-posts__list-item {
    padding: 9px 0;
    border-bottom: 1px solid #e9ecef;
}

.widget-area .widget li:last-child,
.widget-area .wp-block-latest-posts__list-item:last-child {
    border-bottom: 0;
}

.widget-area .widget li a::before,
.widget-area .wp-block-latest-posts li a::before,
.widget-area .wp-block-latest-posts__list-item a::before {
    content: "\00bb" !important;
    display: inline-block;
    margin-right: 0.45rem;
    color: var(--color-primary, #00cd6c) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.widget-area .widget a,
.widget-area .wp-block-latest-posts a,
.widget-area .widget_recent_entries a {
    color: var(--color-primary, #00cd6c);
    text-decoration: none !important;
}

@media (max-width: 767px) {
    .widget-area .widget {
        margin-bottom: 16px;
    }

    .single-post-main-headline {
        font-size: 1.5rem;
    }
}
