/* ================================================================== */
/*   1. SITE-WIDE BACKGROUNDS & SIDEBAR WIDGETS                       */
/* ================================================================== */
html, body, #page, .site, .site-content, .wp-site-blocks, article, .post {
    background-color: #000000 !important;
    background: #000000 !important;
}

.secondary .widget {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.secondary .widget-title {
    margin-bottom: 15px !important;
}

.ast-container {
    padding-top: 0 !important;
}

/* Force the main title text to be white on all inner post & category pages */
body:not(.home) .site-title a,
body:not(.home) .site-title a span {
    color: #ffffff !important;
}

/* ================================================================== */
/*   2. SIDEBAR TEXT & LINK SIZE CONTROLS                             */
/* ================================================================== */
/* Target only the narrow reference column titles */
.wp-block-column[style*="flex-basis:33.33%"] h3, 
.wp-block-column[style*="flex-basis:30%"] h3 {
    font-size: 1.0rem !important; 
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e0e0e0; 
    margin-bottom: 10px !important;
}

/* Target Categories widget links */
.wp-block-column[style*="flex-basis:33.33%"] .wp-block-categories li,
.wp-block-column[style*="flex-basis:30%"] .wp-block-categories li,
.wp-block-column[style*="flex-basis:33.33%"] .wp-block-categories li a,
.wp-block-column[style*="flex-basis:30%"] .wp-block-categories li a {
    font-size: 0.9rem !important; 
    line-height: 1.4;
}

/* ================================================================== */
/*   LATEST POSTS LINK FONT SIZE CONTROLS                             */
/*   Tweak the 'font-size' value below to change your text sizing     */
/*   (e.g., 0.83rem is approx -1pt drop, 0.78rem is approx -2pt drop)  */
/* ================================================================== */
.wp-block-column[style*="flex-basis:33.33%"] .wp-block-latest-posts li,
.wp-block-column[style*="flex-basis:30%"] .wp-block-latest-posts li,
.wp-block-column[style*="flex-basis:33.33%"] .wp-block-latest-posts li a,
.wp-block-column[style*="flex-basis:30%"] .wp-block-latest-posts li a {
    font-size: 0.83rem !important; 
    line-height: 1.5;
}

/* Force Sidebar Links to be Yellow */
.wp-block-column[style*="flex-basis:33.33%"] li a,
.wp-block-column[style*="flex-basis:30%"] li a {
    color: #f6ea91 !important; 
    text-decoration: none;
}

.wp-block-column[style*="flex-basis:33.33%"] li a:hover,
.wp-block-column[style*="flex-basis:30%"] li a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* ================================================================== */
/*   3. LAPTOP/DESKTOP HOMEPAGE LAYOUT CONFIGURATION                 */
/* ================================================================== */
@media (min-width: 922px) {
    .home #masthead, .home .site-header {
        background-image: url('https://thedeerberryfiles.com/wp-content/uploads/2026/07/history-mysteries-banner.jpg') !important;
        background-size: cover !important;
        background-position: center 83% !important;
        background-repeat: no-repeat !important;
    }

    .main-header-bar {
        background-color: transparent !important;
        padding-top: 60px !important;
        padding-bottom: 120px !important;
    }

    /* Reset the main row constraint */
    .home main#main .wp-block-columns {
        margin-top: 0 !important;
        gap: 30px !important;
    }

    /* Push ONLY the left sidebar search column down cleanly below the tree line */
    .home main#main .wp-block-columns > .wp-block-column:first-child {
        margin-top: 140px !important;
    }

    /* Pull the right article column up to eliminate the black gap */
    .home main#main .wp-block-columns > .wp-block-column:last-child {
        margin-top: 40px !important;
    }
}

/* ================================================================== */
/*   4. MOBILE & IPHONE VISUAL FIXES                                  */
/* ================================================================== */
@media (max-width: 921px) {
    #masthead, .site-header {
        background-image: none !important;
        background-color: #000000 !important;
        position: relative !important;
        display: block !important;
    }
    
    .ast-mobile-header-wrap, .ast-mobile-header-wrap .main-header-bar {
        background-color: #000000 !important;
        display: block !important;
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    .site-branding, .ast-site-identity, .site-title a {
        display: block !important;
        color: #ffffff !important;
    }

    .home main#main .wp-block-columns {
        margin-top: 20px !important;
        padding: 0 15px !important;
    }
    
    .home main#main .wp-block-columns > .wp-block-column:first-child {
        margin-top: 0 !important;
    }
}