/* =========================================================
   ADM CUSTOM CSS — MINIMAL COMPATIBILITY LAYER
   Cleaned: 2026-09-27

   PURPOSE
   -------
   This file is intentionally small.

   Layout and feature styling belongs to the responsible ADM plugin:
   - ADM Theme Layout: page/archive/search/homepage geometry
   - ADM Footer: footer layout and widgets
   - ADM Share Controls: share placement and controls
   - ADM Gallery Carousel / Featured Images: media presentation
   - ADM Subscription Styler: subscription layouts
   - Economy/Ticker owner: ticker positioning
   - Smart/Editorial plugins: editor-side presentation

   Keep only global third-party/theme compatibility fixes here.
========================================================= */


/* =========================================================
   ARCHIVE — INTERACTION SAFETY
   Temporary safety layer while the original blocking overlay
   is isolated. Does not redesign archive cards.
========================================================= */

body.archive #main.site-main,
body.archive .rt-sidebar-sapcer,
body.archive [class*="blog-layout-"],
body.archive .blog-box,
body.archive .blog-img-holder,
body.archive .entry-content,
body.search #main.site-main,
body.search .rt-sidebar-sapcer,
body.search [class*="blog-layout-"],
body.search .blog-box,
body.search .blog-img-holder,
body.search .entry-content {
    pointer-events: auto !important;
}

body.archive [class*="blog-layout-"] a,
body.archive .pagination-area a,
body.search [class*="blog-layout-"] a,
body.search .pagination-area a {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 2;
}

/*
 * Prevent decorative card pseudo-elements from capturing clicks.
 * This is deliberately scoped to archive/search result cards only.
 */
body.archive [class*="blog-layout-"]::before,
body.archive [class*="blog-layout-"]::after,
body.archive .blog-box::before,
body.archive .blog-box::after,
body.search [class*="blog-layout-"]::before,
body.search [class*="blog-layout-"]::after,
body.search .blog-box::before,
body.search .blog-box::after {
    pointer-events: none !important;
}


/* =========================================================
   PRELOADER — PREVENT LIGHT FLASH IN DARK MODE
========================================================= */

#preloader,
.preloader,
.site-preloader,
#loader-wrapper {
    background: #ffffff;
}

@media (prefers-color-scheme: dark) {
    #preloader,
    .preloader,
    .site-preloader,
    #loader-wrapper {
        background: #0b0b0b !important;
    }
}

[data-theme="dark-mode"] #preloader,
[data-theme="dark-mode"] .preloader,
[data-theme="dark-mode"] .site-preloader,
[data-theme="dark-mode"] #loader-wrapper {
    background: #0b0b0b !important;
}


/* =========================================================
   JETPACK SUBSCRIBE OVERLAY — KEEP ADM LOGO UNCROPPED
========================================================= */

.jetpack-subscribe-overlay .wp-block-site-logo,
.jetpack-subscribe-overlay .wp-block-site-logo img {
    border-radius: 0 !important;
    overflow: visible !important;
    clip-path: none !important;
}


/* =========================================================
   END ADM CUSTOM CSS
========================================================= */