/*
 * Global CSS Framework for Astrology Emporium
 */

@font-face {
    font-family: "Astronomicon";
    src: url("../fonts/Astronomicon.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --glass-background: rgba(18, 16, 38, 0.75);
    --glass-border: rgba(212, 175, 55, 0.15);
    --glass-border-hover: rgba(212, 175, 55, 0.45);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    background-color: var(--wp--preset--color--obsidian);
    color: var(--wp--preset--color--silver);
    position: relative;
    overflow-x: hidden;
}

/* Base Link Animations & Hover State Feedback */
a {
    transition: var(--transition-smooth);
}
a:hover {
    color: var(--wp--preset--color--silver) !important;
    text-shadow: 0 0 8px rgba(230, 230, 250, 0.4);
}

/* Glassmorphic Panel Layouts - Multi-selector specificity overrides default WP block styles without !important */
.alchemical-card, 
.woocommerce ul.products li.product, 
.woocommerce-page ul.products li.product,
div.product.type-product {
    background: var(--glass-background);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.alchemical-card:hover, 
.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover,
div.product.type-product:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(212, 175, 55, 0.12);
}

/* Google Play & App Store Action Buttons */
.store-badges {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.btn-store {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--wp--preset--color--gold);
    border-radius: 8px;
    background: transparent;
    color: var(--wp--preset--color--gold);
    padding: 10px 20px;
    font-family: var(--wp--preset--font-family--headings);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-store:hover {
    background: var(--wp--preset--color--gold);
    color: var(--wp--preset--color--obsidian);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
}

/* Sticky, Glassmorphic Top Navigation Header bar style rules */
header.wp-block-group {
    position: sticky;
    top: 0;
    z-index: 100;
    align-items: center;
    background: rgba(10, 9, 21, 0.24);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    box-shadow: none;
    transition: var(--transition-smooth);
}

header.wp-block-group .wp-block-site-title,
header.wp-block-group .wp-block-navigation {
    line-height: 1;
}

header.wp-block-group .wp-block-site-title {
    font-size: 24px !important;
    line-height: 1 !important;
}

header.wp-block-group .wp-block-site-title a {
    font-size: inherit !important;
    line-height: inherit !important;
}

header.wp-block-group.scrolled {
    background: rgba(10, 9, 21, 0.5);
    padding-top: 6px;
    padding-bottom: 6px;
}

/* Custom Micro-Animations */
@keyframes celestial-glow {
    0% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.5); }
    100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
}

.pulse-glow {
    animation: celestial-glow 4s infinite ease-in-out;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .alchemical-card, 
    .woocommerce ul.products li.product, 
    div.product.type-product {
        padding: 16px;
    }
    
    .store-badges {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .btn-store {
        width: 100%;
        text-align: center;
    }
}

/* ✦ Mystical Alchemical Styling Overrides for Page Builders (Otter / Neve FSE / Gutenberg widgets) ✦ */

/* 1. Make homepage hero cover banner transparent so that the dynamic starry canvas is completely visible */
.home .wp-block-cover.nfd-stretch-cover-child,
.home div.wp-block-cover {
    background-color: transparent !important;
    background-image: none !important;
}

.home img.wp-block-cover__image-background {
    display: none !important;
}

.home .wp-block-cover__inner-container {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* 2. Style any query loops / posts template grids dynamically as alchemical card panels */
div[class*="nfd-query-loop-"] .wp-block-post-template > div,
div[class*="nfd-query-loop-"] li {
    background: var(--glass-background) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: var(--glass-shadow) !important;
    transition: var(--transition-smooth) !important;
    color: var(--wp--preset--color--silver) !important;
}

div[class*="nfd-query-loop-"] li a,
div[class*="nfd-query-loop-"] .wp-block-post-title a {
    color: var(--wp--preset--color--gold) !important;
    text-decoration: none !important;
    font-family: var(--wp--preset--font-family--headings) !important;
}

/* 3. Clean up page-builder testimonial blocks, equal heights, and glass overrides */
div[class*="nfd-wb-testimonials__"],
div[class*="nfd-wb-team__"],
div[class*="nfd-wb-text__"],
div[class*="nfd-wb-faq__"] {
    background: transparent !important;
    background-color: transparent !important;
}

div[class*="nfd-wb-testimonials__"] .wp-block-columns,
div[class*="nfd-wb-team__"] .wp-block-columns,
div[class*="nfd-wb-faq__"] .wp-block-columns {
    align-items: stretch !important; /* Force columns to equal height! */
}

/* Overwrite page-builder solid white cards to glass panels */
div[class*="nfd-wb-"] .wp-block-column .wp-block-group.nfd-theme-light,
div[class*="nfd-wb-"] .nfd-bg-surface,
div[class*="nfd-wb-"] .wp-block-column {
    background: var(--glass-background) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: var(--glass-shadow) !important;
    transition: var(--transition-smooth) !important;
    height: 100% !important; /* Equal height cards! */
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    color: var(--wp--preset--color--silver) !important;
}

div[class*="nfd-wb-"] .wp-block-column .wp-block-group.nfd-theme-light:hover,
div[class*="nfd-wb-"] .nfd-bg-surface:hover,
div[class*="nfd-wb-"] .wp-block-column:hover {
    border-color: var(--glass-border-hover) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 40px 0 rgba(212, 175, 55, 0.12) !important;
}

/* Make FAQ primary solid blocks glassmorphic and transparent */
.is-style-nfd-theme-primary,
div[class*="nfd-wb-faq__"].is-style-nfd-theme-primary,
div[class*="nfd-wb-faq__"] {
    background: var(--glass-background) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    box-shadow: var(--glass-shadow) !important;
    color: var(--wp--preset--color--silver) !important;
    padding: 32px !important;
}

div[class*="nfd-wb-faq__"] .wp-block-group {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 4. Align all page-builder typography with our starlight-silver and gold systems */
div[class*="nfd-wb-"] p,
div[class*="nfd-wb-"] span,
div[class*="nfd-wb-"] li,
div[class*="nfd-wb-faq__"] p,
div[class*="nfd-wb-faq__"] span {
    color: var(--wp--preset--color--silver) !important;
}

div[class*="nfd-wb-"] h1,
div[class*="nfd-wb-"] h2,
div[class*="nfd-wb-"] h3,
div[class*="nfd-wb-"] h4,
div[class*="nfd-wb-faq__"] h1,
div[class*="nfd-wb-faq__"] h2,
div[class*="nfd-wb-faq__"] h3,
div[class*="nfd-wb-faq__"] h4 {
    color: var(--wp--preset--color--gold) !important;
    font-family: var(--wp--preset--font-family--headings) !important;
}

/* Override default blue tag backgrounds / underlines to celestial gold */
.nfd-theme-primary,
.nfd-bg-surface.nfd-theme-primary,
[class*="nfd-bg-"].nfd-theme-primary {
    background-color: var(--wp--preset--color--gold) !important;
    color: var(--wp--preset--color--obsidian) !important;
}

.nfd-text-primary,
[class*="nfd-text-"].nfd-text-primary,
p.nfd-text-base {
    color: var(--wp--preset--color--gold) !important;
    font-family: var(--wp--preset--font-family--headings) !important;
    font-weight: 600 !important;
}

.nfd-border-primary,
[class*="nfd-border-"].nfd-border-primary {
    border-color: var(--wp--preset--color--gold) !important;
}

/* --- BLOG FEATURED BANNER --- */
.blog-featured-card {
    display: flex;
    flex-direction: row;
    gap: 32px;
    background: rgba(20, 16, 35, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 48px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                border-color 0.4s ease, 
                box-shadow 0.4s ease;
}

.blog-featured-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.08);
}

.blog-featured-card .wp-block-post-featured-image {
    flex: 0 0 35%;
    max-width: 35%;
    margin-bottom: 0 !important;
}

.blog-featured-card .wp-block-post-featured-image img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: transform 0.4s ease;
}

.blog-featured-card:hover .wp-block-post-featured-image img {
    transform: scale(1.02);
}

.blog-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.blog-featured-content h2 {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 12px;
}

.blog-featured-content h2 a {
    color: #D4AF37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-featured-content h2 a:hover {
    color: #FFF;
}

.blog-featured-content .wp-block-post-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* --- GRID IMAGES ASPECT RATIO --- */
.alchemical-card .wp-block-post-featured-image img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.alchemical-card:hover .wp-block-post-featured-image img {
    transform: scale(1.03);
    border-color: rgba(212, 175, 55, 0.45);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .blog-featured-card {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }
    
    .blog-featured-card .wp-block-post-featured-image {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* --- FLUID PAGE SPACING & GUTTERS --- */
main.wp-block-group {
    padding-left: clamp(16px, 5vw, 64px) !important;
    padding-right: clamp(16px, 5vw, 64px) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* --- FLUID RESPONSIVE TYPOGRAPHY (clamp) --- */
h1, .has-large-font-size, .wp-block-cover h1 {
    font-size: clamp(2.2rem, 5vw + 1rem, 4rem) !important;
    line-height: 1.2 !important;
}

h2, .has-medium-font-size {
    font-size: clamp(1.6rem, 3vw + 1rem, 2.5rem) !important;
    line-height: 1.3 !important;
}

h3 {
    font-size: clamp(1.3rem, 2vw + 1rem, 1.8rem) !important;
    line-height: 1.4 !important;
}

p, li, a, span {
    font-size: clamp(0.95rem, 0.4vw + 0.85rem, 1.1rem) !important;
}

/* --- RESPONSIVE MOBILE BUTTON STACKING --- */
@media (max-width: 480px) {
    .wp-block-buttons {
        flex-direction: column !important;
        width: 100% !important;
        align-items: stretch !important;
    }
    
    .wp-block-buttons .wp-block-button {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 12px !important;
    }
    
    .wp-block-buttons .wp-block-button .wp-block-button__link {
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
}

/* --- NESTED DOUBLE-CARD LAYER CLEANUP --- */
/* --- POST CARD EXCERPT HOVER REVEAL (Option A) --- */
@media (hover: hover) {
    /* Collapse the excerpt by default inside grid cards */
    .alchemical-card .wp-block-post-excerpt {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                    opacity 0.3s ease,
                    margin 0.4s ease;
    }
    
    /* Reveal and expand the excerpt smoothly when hovering over the card panel */
    .alchemical-card:hover .wp-block-post-excerpt {
        max-height: 200px; /* Safe upper limit for post excerpt heights */
        opacity: 1;
        margin-top: 16px !important;
    }
}

.wp-block-navigation__responsive-container.is-menu-open {
    background: rgba(10, 9, 21, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 48px 16px 24px 16px !important;
    box-sizing: border-box !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: auto !important;
    min-height: fit-content !important;
    z-index: 100000 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: auto !important;
}

.wp-block-navigation__responsive-container.is-menu-open ul.wp-block-navigation__container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 0 40px 0 0 !important; /* Leave 40px safe space on the right for the close button! */
    margin: 0 auto !important;
    max-width: 500px !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    background: var(--glass-background) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    box-shadow: var(--glass-shadow) !important;
    transition: var(--transition-smooth) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    list-style: none !important;
    margin: 0 !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:hover,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.current-menu-item {
    border-color: var(--glass-border-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
    color: var(--wp--preset--color--gold) !important;
    text-decoration: none !important;
    font-family: var(--wp--preset--font-family--headings) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a:hover {
    color: var(--wp--preset--color--silver) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
    color: var(--wp--preset--color--gold) !important;
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close:hover {
    transform: rotate(90deg) !important;
    color: var(--wp--preset--color--silver) !important;
}

/* --- ASTROLABE HERO --- */
.astro-clock-controls,
.house-system-selector {
    position: relative;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    width: max-content;
    max-width: calc(100vw - 24px);
    margin: 0 0 4px clamp(14px, 4vw, 52px);
    padding: 3px;
    border: 1px solid rgba(255, 246, 210, 0.22);
    border-radius: 6px;
    background: rgba(7, 6, 16, 0.38);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.astro-clock-controls button {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 4px;
    min-height: 24px;
    padding: 3px 9px;
    background: transparent;
    color: rgba(255, 246, 210, 0.82);
    cursor: pointer;
    font-family: var(--wp--preset--font-family--headings);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(5, 4, 14, 0.9);
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.astro-clock-controls button:hover,
.astro-clock-controls button:focus-visible {
    color: #fff6d2;
    border-color: rgba(255, 246, 210, 0.28);
    outline: none;
}

.astro-clock-controls button[aria-pressed="true"] {
    color: #fff6d2;
    border-color: rgba(255, 246, 210, 0.5);
    background: rgba(255, 246, 210, 0.14);
}

.astrolabe-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 28px auto;
    position: relative;
    width: 100%;
    max-width: 520px;
    height: auto;
    aspect-ratio: 1 / 1;
}

.astrolabe-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 45px rgba(212, 175, 55, 0.35));
    transition: transform 0.3s ease;
}

.home-hero-actions {
    gap: 14px;
    margin: 0 auto 8px auto;
}

.home-hero-actions .wp-block-button__link {
    min-width: 156px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.16);
}

.chartwheel-svg text {
    font-family: var(--wp--preset--font-family--headings);
    text-anchor: middle;
    paint-order: stroke fill;
    stroke: rgba(5, 4, 14, 0.68);
    stroke-width: 1.6px;
}

.chartwheel-ring {
    vector-effect: non-scaling-stroke;
}

.chartwheel-rotating line {
    stroke: url(#goldMetal);
    stroke-width: 0.75;
    opacity: 0.4;
    vector-effect: non-scaling-stroke;
}

.chartwheel-ticks .major-tick {
    stroke-width: 1.15;
    opacity: 0.9;
}

.chartwheel-ticks .minor-tick {
    stroke-width: 0.65;
    opacity: 0.48;
}

.term-label {
    fill: rgba(243, 229, 171, 0.86);
    font-size: 5.2px;
    font-weight: 700;
    letter-spacing: 0.45px;
}

.decan-label {
    fill: rgba(230, 230, 250, 0.72);
    font-size: 5px;
    font-weight: 600;
    letter-spacing: 0.35px;
}

.ecliptic-path {
    fill: none;
    stroke: rgba(255, 244, 189, 0.74);
    stroke-width: 1.1;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.28));
}

.leader-line {
    stroke: rgba(243, 229, 171, 0.78);
    stroke-width: 0.75;
    opacity: 0.82;
}

.planet-glyph {
    fill: #F3E5AB;
    font-size: 12px;
    font-weight: 700;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.42));
}

.angle-marker path {
    fill: #D4AF37;
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.45));
}

.angle-marker text {
    fill: #FFF4BD;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.house-number-ring text {
    fill: #F3E5AB;
    font-size: 9px;
    font-weight: 700;
}

.solar-lunar-disc {
    transform-box: fill-box;
    transform-origin: center;
}

.astrolabe-spin-slow {
    transform-origin: center;
    animation: astrolabe-spin 140s linear infinite;
}

.astrolabe-spin-reverse {
    transform-origin: center;
    animation: astrolabe-spin-rev 100s linear infinite;
}

.astrolabe-drift {
    transform-origin: center;
    animation: astrolabe-drift-hand 25s ease-in-out infinite alternate;
}

@keyframes astrolabe-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes astrolabe-spin-rev {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes astrolabe-drift-hand {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(15deg); }
}

/* --- LIVE ASTRO-CLOCK CHARTWHEEL --- */
.astrolabe-wrapper {
    max-width: min(680px, 96vw);
    margin: -8px auto 18px auto;
    background: transparent;
    color-scheme: dark;
    forced-color-adjust: none;
    isolation: isolate;
    position: relative;
    padding-top: 0;
}

.astrolabe-svg {
    overflow: visible;
    background: transparent;
    color-scheme: dark;
    forced-color-adjust: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    filter:
        drop-shadow(0 0 18px rgba(255, 246, 210, 0.28))
        drop-shadow(0 0 42px rgba(212, 175, 55, 0.38));
}

.chartwheel-svg,
.chartwheel-svg * {
    forced-color-adjust: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.chartwheel-svg text {
    font-family: var(--wp--preset--font-family--headings);
    letter-spacing: 0;
}

.chartwheel-svg:not(.is-rendered) {
    opacity: 0;
}

.chartwheel-svg.is-rendered {
    opacity: 1;
}

.astro-clock-frame,
.astro-clock-wheel,
.chartwheel-house-layer,
.chartwheel-angle-layer,
.planet-layer {
    transform-box: fill-box;
    transform-origin: center;
}

.chartwheel-field {
    fill: #060610;
    opacity: 0.58;
    stroke: none;
    stroke-width: 0;
    filter: drop-shadow(0 0 18px rgba(255, 246, 210, 0.22));
}

.chartwheel-ring,
.chart-band-ring,
.ecliptic-ring,
.planet-track-ring,
.angle-track-ring,
.inner-house-ring {
    fill: none;
    stroke: rgba(243, 229, 171, 0.82);
    stroke-width: 1.15;
    vector-effect: non-scaling-stroke;
}

.zodiac-sector,
.decan-segment,
.term-segment,
.ecliptic-band {
    stroke: rgba(243, 229, 171, 0.36);
    stroke-width: 0.6;
    vector-effect: non-scaling-stroke;
}

.zodiac-sector {
    fill: rgba(255, 255, 255, 0.006);
}

.zodiac-sector:nth-child(even) {
    fill: rgba(212, 175, 55, 0.008);
}

.decan-segment {
    fill: rgba(230, 230, 250, 0.008);
}

.term-segment {
    fill: rgba(212, 175, 55, 0.01);
}

.ecliptic-band {
    fill: rgba(255, 246, 210, 0.022);
    stroke: none;
}

.chartwheel-sign-boundary {
    stroke: rgba(255, 246, 210, 0.94);
    stroke-width: 1.55;
    vector-effect: non-scaling-stroke;
}

.chartwheel-decan-boundary,
.chartwheel-term-boundary {
    stroke: rgba(243, 229, 171, 0.45);
    stroke-width: 0.65;
    vector-effect: non-scaling-stroke;
}

.chartwheel-tick {
    stroke: rgba(255, 246, 210, 0.46);
    vector-effect: non-scaling-stroke;
}

.chartwheel-tick.is-degree {
    stroke-width: 0.45;
}

.chartwheel-tick.is-five {
    stroke-width: 0.8;
    opacity: 0.78;
}

.chartwheel-tick.is-ten {
    stroke-width: 1.15;
    opacity: 0.95;
}

.chartwheel-tick.is-sign {
    stroke: rgba(255, 246, 210, 0.98);
    stroke-width: 1.7;
}

.chartwheel-svg .zodiac-glyph {
    font-family: "Astronomicon", "Segoe UI Symbol", "Noto Sans Symbols 2", "DejaVu Sans", "Arial Unicode MS", serif;
    font-variant-emoji: text;
    font-size: 30px;
    font-weight: 400;
    fill: #f3e5ab;
    stroke: rgba(5, 4, 14, 0.76);
    stroke-width: 1.2px;
    dominant-baseline: central;
    alignment-baseline: central;
    filter: drop-shadow(0 0 6px rgba(255, 246, 210, 0.4));
}

.zodiac-glyph[data-element="fire"],
.zodiac-glyph[data-element="earth"],
.zodiac-glyph[data-element="air"],
.zodiac-glyph[data-element="water"] {
    fill: #f3e5ab;
}

.chartwheel-svg .decan-label,
.chartwheel-svg .term-label {
    font-family: "Astronomicon", "Segoe UI Symbol", "Noto Sans Symbols 2", "DejaVu Sans", "Arial Unicode MS", serif;
    font-variant-emoji: text;
    stroke: rgba(5, 4, 14, 0.75);
    stroke-width: 1px;
}

.decan-label {
    fill: rgba(255, 246, 210, 0.94);
    font-size: 13px;
    font-weight: 600;
    filter: drop-shadow(0 0 4px rgba(255, 246, 210, 0.32));
}

.term-label {
    fill: rgba(255, 238, 176, 0.92);
    font-size: 12px;
    font-weight: 700;
    filter: drop-shadow(0 0 4px rgba(255, 246, 210, 0.3));
}

.ecliptic-ring {
    stroke: rgba(255, 246, 210, 0.86);
    stroke-width: 1;
}

.planet-track-ring {
    stroke: rgba(255, 246, 210, 0.38);
    stroke-width: 0.8;
}

.planet-position-tick {
    stroke: rgba(255, 246, 210, 0.94);
    stroke-width: 1.15;
    vector-effect: non-scaling-stroke;
}

.chartwheel-house-line {
    stroke: rgba(255, 246, 210, 0.58);
    stroke-width: 0.9;
    vector-effect: non-scaling-stroke;
}

.house-number-ring text,
.house-number {
    fill: rgba(255, 246, 210, 0.94);
    font-size: 12px;
    font-weight: 700;
    stroke: rgba(5, 4, 14, 0.72);
    stroke-width: 1px;
}

.angle-marker path {
    fill: rgba(255, 246, 210, 0.98);
    stroke: rgba(255, 246, 210, 0.98);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.angle-marker .angle-dot {
    fill: rgba(255, 246, 210, 0.98);
    stroke: rgba(5, 4, 14, 0.72);
    stroke-width: 0.75;
    vector-effect: non-scaling-stroke;
}

.angle-marker .angle-axis {
    fill: none;
    stroke: rgba(255, 246, 210, 0.72);
    stroke-width: 2.1;
    vector-effect: non-scaling-stroke;
}

.angle-marker text {
    fill: #fff6d2;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0;
    stroke: rgba(5, 4, 14, 0.85);
    stroke-width: 0.9px;
}

.angle-marker .angle-degree {
    font-size: 7px;
    font-weight: 700;
    fill: rgba(255, 246, 210, 0.86);
    stroke-width: 0.7px;
}

.angle-marker-mc .angle-axis,
.angle-marker-ic .angle-axis {
    stroke-width: 2.35;
}

.leader-line {
    stroke: rgba(255, 246, 210, 0.78);
    stroke-width: 0.75;
    vector-effect: non-scaling-stroke;
}

.chartwheel-svg .planet-glyph {
    font-family: "Astronomicon", "Segoe UI Symbol", "Noto Sans Symbols 2", "DejaVu Sans", "Arial Unicode MS", serif;
    font-variant-emoji: text;
    fill: rgba(255, 246, 210, 0.96);
    stroke: rgba(5, 4, 14, 0.74);
    stroke-width: 1px;
    filter: drop-shadow(0 0 5px rgba(255, 246, 210, 0.28));
}

.chartwheel-svg .planet-degree,
.chartwheel-svg .planet-rx {
    font-family: var(--wp--preset--font-family--headings);
    fill: rgba(255, 246, 210, 0.96);
    stroke: rgba(5, 4, 14, 0.74);
    stroke-width: 1px;
    filter: drop-shadow(0 0 5px rgba(255, 246, 210, 0.28));
}

.planet-glyph {
    font-size: 22px;
    font-weight: 800;
}

.planet-degree {
    font-size: 9px;
    font-weight: 700;
}

.planet-rx {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0;
}

.solar-lunar-disc circle,
.solar-lunar-disc path,
.solar-lunar-disc line {
    vector-effect: non-scaling-stroke;
}

.solar-lunar-disc {
    filter:
        drop-shadow(0 0 7px rgba(255, 246, 210, 0.5))
        drop-shadow(0 0 18px rgba(212, 175, 55, 0.46));
}

.solar-lunar-disc .disc-shell {
    fill: rgba(6, 5, 12, 0.8);
    stroke: rgba(255, 246, 210, 0.9);
    stroke-width: 1.4;
}

.solar-lunar-medallion-image {
    image-rendering: auto;
    pointer-events: none;
}

.solar-lunar-disc .disc-engraved-rim,
.solar-lunar-disc .disc-field {
    fill: rgba(95, 67, 17, 0.76);
    stroke: rgba(255, 246, 210, 0.58);
    stroke-width: 1;
}

.solar-lunar-disc .disc-ray path {
    fill: url(#goldMetal);
    stroke: rgba(6, 5, 12, 0.72);
    stroke-width: 1;
}

.solar-lunar-disc .disc-ray.is-flame path {
    opacity: 0.9;
}

.solar-lunar-disc .disc-sun-face {
    fill: url(#goldMetal);
    stroke: rgba(6, 5, 12, 0.78);
    stroke-width: 1.4;
}

.solar-lunar-disc .disc-moon-face {
    fill: rgba(224, 180, 72, 0.98);
    stroke: rgba(6, 5, 12, 0.82);
    stroke-width: 1.55;
}

.solar-lunar-disc .disc-face-line,
.solar-lunar-disc .disc-engraving {
    fill: none;
    stroke: rgba(7, 6, 13, 0.82);
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.solar-lunar-disc .disc-moon-line {
    stroke-width: 1.55;
}

.solar-lunar-disc .disc-engraving {
    stroke: rgba(255, 246, 210, 0.26);
    stroke-width: 0.9;
}

.solar-lunar-disc .disc-eye {
    fill: rgba(7, 6, 13, 0.88);
    stroke: rgba(255, 246, 210, 0.52);
    stroke-width: 0.45;
}

.astro-clock-status {
    position: relative;
    z-index: 20;
    width: 100%;
    box-sizing: border-box;
    padding: 3px 12px 1px;
    color: rgba(255, 246, 210, 0.88);
    font-family: var(--wp--preset--font-family--headings);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 0 8px rgba(5, 4, 14, 0.92), 0 0 10px rgba(212, 175, 55, 0.3);
    pointer-events: none;
}

@media (max-width: 600px) {
    header.wp-block-group {
        padding: 6px 24px !important;
    }

    header.wp-block-group .wp-block-site-title {
        font-size: 20px !important;
    }

    .astrolabe-wrapper {
        max-width: min(94vw, 430px);
        margin: -2px auto 10px auto;
        padding-top: 0;
    }

    .astrolabe-svg {
        width: 100%;
        height: auto;
        max-height: 94vw;
        filter:
            drop-shadow(0 0 12px rgba(255, 246, 210, 0.22))
            drop-shadow(0 0 28px rgba(212, 175, 55, 0.32));
    }

    .chartwheel-field {
        fill: #060610;
        opacity: 0.62;
    }

    .chartwheel-svg .zodiac-glyph {
        font-size: 28px;
    }

    .astro-clock-status {
        font-size: 7px;
        padding-inline: 10px;
    }

    .astro-clock-controls {
        display: flex;
        margin: 2px 10px 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .astro-clock-controls::-webkit-scrollbar {
        display: none;
    }

    .astro-clock-controls button {
        flex: 0 0 auto;
        min-height: 22px;
        padding: 3px 7px;
        font-size: 7px;
    }

    .home-hero-actions {
        margin-bottom: 12px;
    }

    .home-hero-actions .wp-block-button,
    .home-hero-actions .wp-block-button__link {
        width: 100%;
    }
}

/* --- LUNAR PHASE MODULE --- */
.lunar-phase-card {
    text-align: center;
}

.lunar-display {
    width: 110px;
    height: 110px;
    margin: 20px auto;
    position: relative;
}

.lunar-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.45));
}

.lunar-readout {
    font-family: var(--wp--preset--font-family--headings);
    font-size: 1.5rem;
    color: #D4AF37;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.lunar-subreadout {
    color: rgba(230, 230, 250, 0.7);
    font-size: 0.86rem;
    margin-bottom: 12px;
}

.lunar-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 12px auto 4px auto;
    max-width: 260px;
}

.lunar-meta-grid span {
    display: block;
    padding: 6px 10px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 8px;
    background: rgba(10, 9, 21, 0.35);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem !important;
    line-height: 1.25;
}

.lunar-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.lunar-indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: transparent;
    transition: all 0.3s ease;
}

.lunar-indicator-dot.active {
    background: #D4AF37;
    box-shadow: 0 0 10px #D4AF37;
    border-color: #FFF;
}

/* --- SVG THUMBNAILS --- */
.pillar-thumbnail {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.15));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.alchemical-card:hover .pillar-thumbnail {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.35));
}

/* --- 3-CARD LAYOUT OVERRIDES --- */
.homepage-feature-row {
    margin-bottom: 60px;
}


