/*  */

a{text-decoration-thickness:1px!important;text-underline-offset:.1em}:where(.wp-site-blocks :focus){outline-width:2px;outline-style:solid}.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child){margin-bottom:3px}.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content{outline-offset:4px}.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content{outline-offset:0}blockquote,caption,figcaption,h1,h2,h3,h4,h5,h6,p{text-wrap:pretty}.more-link{display:block}:where(pre){overflow-x:auto}
/*# sourceURL=https://moonrituallibrary.com/wp-content/themes/twentytwentyfive/style.min.css */


/*  */

    /* ── Dark Mode Toggle Button ── */
    #empire-dark-toggle {
        position: fixed;
        bottom: 80px;
        right: 24px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 998;
        transition: background 0.3s, border-color 0.3s;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        color: #475569;
    }
    #empire-dark-toggle:hover {
        background: #e2e8f0;
    }

    /* ── Transition for smooth switch ── */
    html.empire-dark *,
    html.empire-dark *::before,
    html.empire-dark *::after {
        transition: background-color 0.3s ease, color 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }

    /* ── Dark Mode Variables ── */
    html.empire-dark {
        --empire-bg: #0f172a;
        --empire-bg-card: #1e293b;
        --empire-bg-hover: #334155;
        --empire-text: #e2e8f0;
        --empire-text-muted: #94a3b8;
        --empire-border: #334155;
    }

    /* ── Core Dark Mode Overrides ── */
    html.empire-dark body {
        background-color: #0f172a !important;
        color: #e2e8f0 !important;
    }

    html.empire-dark #empire-dark-toggle {
        background: #1e293b;
        border-color: #334155;
        color: #f59e0b;
    }

    /* Header / Navigation */
    html.empire-dark header,
    html.empire-dark .site-header,
    html.empire-dark nav,
    html.empire-dark .main-navigation {
        background-color: #0f172a !important;
        border-color: #1e293b !important;
    }

    /* Main content area */
    html.empire-dark main,
    html.empire-dark .site-content,
    html.empire-dark article,
    html.empire-dark .entry-content,
    html.empire-dark .post-content {
        background-color: transparent !important;
        color: #cbd5e1 !important;
    }

    html.empire-dark .entry-content h1,
    html.empire-dark .entry-content h2,
    html.empire-dark .entry-content h3,
    html.empire-dark .entry-content h4,
    html.empire-dark .post-content h1,
    html.empire-dark .post-content h2,
    html.empire-dark .post-content h3,
    html.empire-dark .post-content h4,
    html.empire-dark article h1,
    html.empire-dark .entry-title {
        color: #f1f5f9 !important;
    }

    html.empire-dark .entry-content h2,
    html.empire-dark .post-content h2 {
        border-bottom-color: #334155 !important;
    }

    html.empire-dark a { color: #60a5fa !important; }
    html.empire-dark a:hover { color: #93bbfd !important; }

    /* Cards, sidebars, widgets */
    html.empire-dark .widget,
    html.empire-dark aside,
    html.empire-dark .sidebar,
    html.empire-dark .card {
        background-color: #1e293b !important;
        border-color: #334155 !important;
        color: #cbd5e1 !important;
    }

    /* Footer */
    html.empire-dark footer,
    html.empire-dark .site-footer {
        background-color: #020617 !important;
        color: #94a3b8 !important;
        border-color: #1e293b !important;
    }

    /* ── Empire Enhancer Dark Overrides ── */
    html.empire-dark .empire-toc {
        background: linear-gradient(135deg, #1e293b 0%, #1a2332 100%) !important;
        border-color: #334155 !important;
    }
    html.empire-dark .empire-toc-title { color: #f1f5f9 !important; }
    html.empire-dark .empire-toc-list a { color: #94a3b8 !important; }
    html.empire-dark .empire-toc-list a:hover { color: #60a5fa !important; }

    html.empire-dark .empire-read-time {
        background: #1e293b !important;
        color: #94a3b8 !important;
        border-left-color: var(--empire-accent, #3b82f6) !important;
    }

    html.empire-dark .empire-author-card {
        background: #1e293b !important;
        border-color: #334155 !important;
    }
    html.empire-dark .empire-author-name { color: #f1f5f9 !important; }
    html.empire-dark .empire-author-bio { color: #94a3b8 !important; }

    html.empire-dark .empire-callout-takeaway { background: #0d2818 !important; }
    html.empire-dark .empire-callout-tip { background: #0c1929 !important; }
    html.empire-dark .empire-callout-warning { background: #2a1f06 !important; }
    html.empire-dark .empire-callout-note { background: #1a0d2e !important; }

    html.empire-dark .empire-proscons.empire-pros { background: #0d2818 !important; border-color: #166534 !important; }
    html.empire-dark .empire-proscons.empire-cons { background: #2a0d0d !important; border-color: #991b1b !important; }

    html.empire-dark .empire-score-box {
        background: #1e293b !important;
        border-color: #334155 !important;
    }

    html.empire-dark .empire-table th { background: #1e293b !important; color: #f1f5f9 !important; }
    html.empire-dark .empire-table td { border-color: #1e293b !important; }
    html.empire-dark .empire-table tr:hover td { background: #1a2332 !important; }
    html.empire-dark .empire-table-wrap { border-color: #334155 !important; }

    html.empire-dark .empire-summary {
        background: linear-gradient(135deg, #0c1929 0%, #0e1a2e 100%) !important;
        border-color: #1e3a5f !important;
    }
    html.empire-dark .empire-summary p { color: #93bbfd !important; }

    html.empire-dark .empire-disclosure {
        background: #2a1f06 !important;
        border-color: #854d0e !important;
        color: #fcd34d !important;
    }

    html.empire-dark .empire-newsletter-cta {
        background: linear-gradient(135deg, #1e293b, #0f172a) !important;
        border: 1px solid #334155;
    }

    html.empire-dark .empire-faq {
        background: #1e293b !important;
        border-color: #334155 !important;
    }

    html.empire-dark blockquote {
        background: #1e293b !important;
        border-left-color: var(--empire-accent, #3b82f6) !important;
        color: #cbd5e1 !important;
    }

    html.empire-dark code,
    html.empire-dark pre {
        background: #1e293b !important;
        color: #e2e8f0 !important;
    }
    html.empire-dark .empire-copy-btn {
        background: #0f172a !important;
        border-color: #334155 !important;
    }

    html.empire-dark img { opacity: 0.92; }

    html.empire-dark .empire-inline-cta {
        background: linear-gradient(135deg, #1e293b, #1a2332) !important;
    }

    html.empire-dark .empire-freshness { color: #94a3b8 !important; }

    /* ── Share bar dark ── */
    @media (max-width: 1100px) {
        html.empire-dark #empire-share-bar {
            background: #0f172a !important;
            border-color: #1e293b !important;
        }
    }

    /* ── Back to top button dark ── */
    html.empire-dark #empire-back-top {
        background: #334155 !important;
    }

    /* ── Forms ── */
    html.empire-dark input,
    html.empire-dark textarea,
    html.empire-dark select {
        background-color: #1e293b !important;
        border-color: #334155 !important;
        color: #e2e8f0 !important;
    }

    /* ── Comments ── */
    html.empire-dark .comment,
    html.empire-dark .comment-body,
    html.empire-dark #comments {
        background-color: transparent !important;
        color: #cbd5e1 !important;
    }

    /* ── WP Block overrides ── */
    html.empire-dark .wp-block-group,
    html.empire-dark .wp-block-column {
        background-color: transparent !important;
    }
    

/*  */

    .empire-ann-bar {
        position: relative;
        width: 100%;
        z-index: 99999;
        padding: 11px 52px 11px 20px;
        font-size: 14px;
        line-height: 1.4;
    }
    .empire-ann-inner {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
        max-width: 960px;
        margin: 0 auto;
    }
    .empire-ann-text {
        margin: 0;
        font-size: inherit;
    }
    .empire-ann-cta {
        display: inline-block;
        font-weight: 700;
        border: 1.5px solid;
        padding: 5px 16px;
        border-radius: 99px;
        text-decoration: none !important;
        white-space: nowrap;
        font-size: 13px;
        transition: opacity 0.2s;
        flex-shrink: 0;
    }
    .empire-ann-cta:hover { opacity: 0.75; }
    .empire-ann-close {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: inherit;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
        opacity: 0.55;
        padding: 4px 6px;
        transition: opacity 0.2s;
    }
    .empire-ann-close:hover { opacity: 1; }
    @media (max-width: 640px) {
        .empire-ann-bar { font-size: 12px; padding: 9px 44px 9px 14px; }
        .empire-ann-inner { gap: 10px; }
    }
    

/*  */

    .empire-cat-badge {
        display: inline-block;
        background: var(--ebadge-color, #64748b);
        color: #fff !important;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        padding: 3px 10px;
        border-radius: 4px;
        text-decoration: none !important;
        margin-bottom: 7px;
        transition: opacity 0.2s;
        font-family: inherit;
    }
    .empire-cat-badge:hover { opacity: 0.8; }
    

/*  */

    html { scroll-behavior: smooth; }

    /* Reading progress bar */
    #empire-reading-progress {
        position: fixed;
        top: 0;
        left: 0;
        width: 0%;
        height: 3px;
        z-index: 999999;
        transition: width 0.1s linear;
        pointer-events: none;
    }

    /* Smooth reveal animations for content */
    .entry-content > *,
    .post-content > *,
    article .elementor-widget-container > * {
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
    .empire-revealed {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    /* Better text rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }

    /* Smooth image loading */
    img {
        transition: opacity 0.3s ease;
    }
    img[loading="lazy"] {
        opacity: 0;
    }
    img.loaded, img[loading="lazy"][complete] {
        opacity: 1;
    }
    

/*  */

    /* ── Better paragraph spacing & line height ── */
    .entry-content p,
    .post-content p,
    .elementor-widget-text-editor p {
        line-height: 1.8;
        margin-bottom: 1.4em;
        letter-spacing: 0.01em;
    }

    /* ── Heading hierarchy with consistent spacing ── */
    .entry-content h2, .post-content h2 {
        margin-top: 2.2em;
        margin-bottom: 0.8em;
        line-height: 1.3;
        letter-spacing: -0.02em;
    }
    .entry-content h3, .post-content h3 {
        margin-top: 1.8em;
        margin-bottom: 0.6em;
        line-height: 1.35;
    }
    .entry-content h4, .post-content h4 {
        margin-top: 1.5em;
        margin-bottom: 0.5em;
    }

    /* ── Better list styling ── */
    .entry-content ul, .entry-content ol,
    .post-content ul, .post-content ol {
        margin-bottom: 1.4em;
        padding-left: 1.5em;
    }
    .entry-content li, .post-content li {
        margin-bottom: 0.5em;
        line-height: 1.7;
    }

    /* ── Blockquote enhancement ── */
    .entry-content blockquote,
    .post-content blockquote {
        border-left: 4px solid currentColor;
        padding: 1em 1.5em;
        margin: 1.8em 0;
        font-style: italic;
        opacity: 0.9;
        border-radius: 0 8px 8px 0;
        position: relative;
    }
    .entry-content blockquote p:last-child,
    .post-content blockquote p:last-child {
        margin-bottom: 0;
    }

    /* ── Code blocks ── */
    .entry-content code, .post-content code {
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 0.9em;
        background: rgba(0,0,0,0.06);
    }
    .entry-content pre, .post-content pre {
        border-radius: 8px;
        padding: 1.2em;
        overflow-x: auto;
        margin: 1.5em 0;
    }

    /* ── Image enhancements ── */
    .entry-content img, .post-content img {
        border-radius: 8px;
        max-width: 100%;
        height: auto;
    }
    figure {
        margin: 2em 0;
    }
    figcaption {
        text-align: center;
        font-size: 0.88em;
        opacity: 0.7;
        margin-top: 0.5em;
        font-style: italic;
    }

    /* ── Table improvements ── */
    .entry-content table, .post-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 1.5em 0;
        border-radius: 8px;
        overflow: hidden;
    }
    .entry-content th, .post-content th {
        padding: 12px 16px;
        text-align: left;
        font-weight: 600;
    }
    .entry-content td, .post-content td {
        padding: 10px 16px;
        border-top: 1px solid rgba(0,0,0,0.08);
    }
    .entry-content tr:hover td, .post-content tr:hover td {
        background: rgba(0,0,0,0.02);
    }

    /* ── Horizontal rule ── */
    .entry-content hr, .post-content hr {
        border: none;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(0,0,0,0.15), transparent);
        margin: 2.5em 0;
    }

    /* ── Selection color ── */
    ::selection {
        background: rgba(59, 130, 246, 0.2);
    }

    /* ── Focus visible for accessibility ── */
    :focus-visible {
        outline: 2px solid rgba(59, 130, 246, 0.5);
        outline-offset: 2px;
        border-radius: 4px;
    }

    /* ── Mobile optimizations ── */
    @media (max-width: 768px) {
        .entry-content p, .post-content p {
            line-height: 1.75;
            font-size: 16px;
        }
        .entry-content h2, .post-content h2 {
            font-size: 1.5em;
            margin-top: 1.8em;
        }
        .entry-content h3, .post-content h3 {
            font-size: 1.25em;
        }
    }
    

/*  */

    /* ── Animated underline on content links ── */
    .entry-content a:not([class]),
    .post-content a:not([class]),
    .entry-content p a,
    .post-content p a {
        text-decoration: none;
        background-image: linear-gradient(currentColor, currentColor);
        background-size: 0% 1px;
        background-position: left bottom;
        background-repeat: no-repeat;
        transition: background-size 0.3s ease;
        padding-bottom: 1px;
    }
    .entry-content a:not([class]):hover,
    .post-content a:not([class]):hover,
    .entry-content p a:hover,
    .post-content p a:hover {
        background-size: 100% 1px;
    }

    /* ── Button polish (WP buttons, Elementor buttons, etc.) ── */
    .wp-block-button__link,
    .elementor-button,
    .button,
    .btn,
    input[type="submit"],
    button[type="submit"] {
        transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
    }
    .wp-block-button__link:hover,
    .elementor-button:hover,
    .button:hover,
    .btn:hover,
    input[type="submit"]:hover,
    button[type="submit"]:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    .wp-block-button__link:active,
    .elementor-button:active,
    .button:active,
    .btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    /* ── Card hover lift (common in archives, related posts) ── */
    article.type-post,
    .elementor-post,
    .wp-block-post {
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    article.type-post:hover,
    .elementor-post:hover,
    .wp-block-post:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

    /* ── Image hover zoom (subtle) ── */
    article.type-post img,
    .elementor-post img,
    .wp-block-post img {
        transition: transform 0.4s ease;
    }
    article.type-post:hover img,
    .elementor-post:hover img,
    .wp-block-post:hover img {
        transform: scale(1.03);
    }
    article.type-post .post-thumbnail,
    .elementor-post .elementor-post__thumbnail {
        overflow: hidden;
        border-radius: 8px;
    }

    /* ── Navigation link hover ── */
    .main-navigation a,
    .primary-menu a,
    nav a {
        transition: color 0.2s ease, opacity 0.2s ease;
    }
    

/*  */

    .site-footer, footer.footer, #colophon {
        padding-top: 3em !important;
        padding-bottom: 2em !important;
    }
    .site-footer a { transition: opacity 0.2s ease; }
    .site-footer a:hover { opacity: 0.8; }

    /* Copyright line */
    .site-footer .site-info,
    .site-footer .copyright,
    footer .copyright {
        font-size: 0.85em;
        opacity: 0.7;
        padding-top: 1.5em;
        border-top: 1px solid rgba(128,128,128,0.15);
        margin-top: 2em;
    }
    

/*  */

    /* ── Better tap targets (48px minimum per WCAG) ── */
    @media (max-width: 768px) {
        a, button, input, select, textarea {
            min-height: 44px;
            min-width: 44px;
        }

        /* Prevent text size adjust on orientation change */
        html {
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
        }

        /* Better mobile reading */
        .entry-content, .post-content {
            font-size: 17px;
            line-height: 1.8;
            word-break: break-word;
            overflow-wrap: break-word;
            hyphens: auto;
        }

        /* Prevent horizontal scroll */
        body {
            overflow-x: hidden;
        }

        /* Better spacing on mobile */
        .entry-content img, .post-content img {
            margin: 1em 0;
        }

        /* Table horizontal scroll on mobile */
        .entry-content table, .post-content table {
            display: block;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
    }

    /* ── Sticky header shadow on scroll ── */
    .site-header.scrolled,
    header.scrolled,
    .main-header.scrolled {
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        transition: box-shadow 0.3s ease;
    }

    /* ── Print styles ── */
    @media print {
        #empire-back-top,
        #empire-dark-toggle,
        #empire-reading-progress,
        #empire-newsletter-box,
        .empire-ann-bar,
        .share-buttons,
        nav, footer, aside, .sidebar,
        .comments-area {
            display: none !important;
        }
        body { font-size: 12pt; line-height: 1.5; color: #000; }
        a { color: #000; text-decoration: underline; }
        a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
    }
    

/*  */

    /* ===========================================
       Empire Witchcraft Theme Tokens
       Palette: earthy       =========================================== */
    :root {
        --empire-accent:       #51355A;
        --empire-accent-hover: #6b2d8b;
        --empire-gold:         #d18c03;
        --empire-cream:        #F5F1ED;
        --empire-dark:         #291c1d;
        --empire-sidebar-bg:   #2d1b4e;
    }

    /* Override theme primary button */
    .wp-block-button__link,
    .wp-element-button,
    button[type="submit"],
    input[type="submit"],
    .btn-primary,
    .woocommerce #respond input#submit,
    .woocommerce a.button.alt,
    .woocommerce button.button.alt {
        background-color: var(--empire-accent) !important;
        border-color:     var(--empire-accent) !important;
        border-radius:    9999px !important;
        transition: background-color 0.2s !important;
    }
    .wp-block-button__link:hover,
    .wp-element-button:hover {
        background-color: var(--empire-accent-hover) !important;
        border-color:     var(--empire-accent-hover) !important;
    }

    /* Links */
    a { color: var(--empire-accent); }
    a:hover { color: var(--empire-accent-hover); }

    /* Category badges — use gold for witch niche */
    .empire-cat-badge {
        background: var(--empire-gold) !important;
        color: var(--empire-dark) !important;
    }

    /* Product box left border */
    .empire-product-box { border-left-color: var(--empire-accent) !important; }

    /* TOC border */
    .empire-toc {
        background: rgba(81,53,90,0.07) !important;
        border-color: rgba(81,53,90,0.25) !important;
        border-left-color: var(--empire-accent) !important;
    }
    .emtoc-header { color: var(--empire-dark) !important; }
    .emtoc-list a { color: var(--empire-accent) !important; }
    .emtoc-toggle { border-color: rgba(81,53,90,0.4) !important; color: var(--empire-accent) !important; }
    .emtoc-toggle:hover { background: rgba(81,53,90,0.1) !important; }

    /* Rating block circle */
    .emr-circle { border-color: var(--empire-gold) !important; }
    .emr-score-num { color: var(--empire-gold) !important; }

    /* Headings — tighter tracking for mystical feel */
    h1, h2, h3 {
        font-weight: 700;
        letter-spacing: -0.01em;
    }

    /* Body — airier reading */
    .entry-content p,
    .post-content p,
    article p {
        line-height: 1.85;
    }

    /* Announcement bar bg */
    #empire-ann-bar {
        background: #2d1b4e !important;
    }
    

