/* Easy Go Astro. Ad containers and article pagination keep their own layout. */
:root {
    --eg-bg: #f8f7fc;
    --eg-surface: #fff;
    --eg-soft: #f1edf8;
    --eg-text: #251b36;
    --eg-muted: #665a76;
    --eg-purple: #603990;
    --eg-accent: #8054ad;
    --eg-gold: #977330;
    --eg-border: #e2dbea;
    --eg-hero: #eee8f7;
    --eg-symbol: #946b27;
    --eg-symbol-bg: #fbf7ee;
    --eg-symbol-ring: #e7d6ad;
    --eg-shadow: 0 10px 32px rgb(47 26 78 / 5%);
}
html[data-eg-theme="dark"] {
    --eg-bg: #100e19;
    --eg-surface: #1a1626;
    --eg-soft: #241d34;
    --eg-text: #f0eaf7;
    --eg-muted: #b7abc9;
    --eg-purple: #ceb0f0;
    --eg-accent: #b791df;
    --eg-gold: #ddbc76;
    --eg-border: #393045;
    --eg-hero: #231936;
    --eg-symbol: #f3e6c7;
    --eg-symbol-bg: #2b2432;
    --eg-symbol-ring: #7b6542;
    --eg-shadow: 0 10px 32px rgb(0 0 0 / 12%);
}
@media (prefers-color-scheme: dark) {
    html:not([data-eg-theme]) {
        --eg-bg: #100e19; --eg-surface: #1a1626; --eg-soft: #241d34;
        --eg-text: #f0eaf7; --eg-muted: #b7abc9; --eg-purple: #ceb0f0;
        --eg-accent: #b791df; --eg-gold: #ddbc76; --eg-border: #393045;
        --eg-hero: #231936; --eg-shadow: 0 10px 32px rgb(0 0 0 / 12%);
        --eg-symbol: #f3e6c7; --eg-symbol-bg: #2b2432; --eg-symbol-ring: #7b6542;
    }
}
body.eg-astro {
    background: var(--eg-bg);
    color: var(--eg-text);
    -webkit-font-smoothing: antialiased;
}
body.eg-astro #td-outer-wrap,
body.eg-astro .td-main-content-wrap,
body.eg-astro .td-category-header { background-color: var(--eg-bg); }
body.eg-astro a { color: var(--eg-purple); }
body.eg-astro a:hover { color: var(--eg-gold); }
body.eg-astro :is(a, button, input, select, textarea):focus-visible {
    outline: 3px solid var(--eg-accent);
    outline-offset: 4px;
}
body.eg-astro :is(h1, h2, h3, h4, h5, h6, .entry-title, .entry-title a, .td-module-title a) { color: var(--eg-text); }
body.eg-astro :is(.td-post-content, .td-page-content) { color: var(--eg-text); }
body.eg-astro .td-post-content { font-size: 17px; line-height: 1.8; }
body.eg-astro :is(.td-excerpt, .td-module-meta-info, .td-post-date, .td-post-author-name, .td-post-author-name a, .td-crumb-container, .td-crumb-container a) { color: var(--eg-muted); }
body.eg-astro .td-crumb-container { padding-top: 18px; }
body.eg-astro :is(.td-category a, .td-post-category) { background: var(--eg-soft); color: var(--eg-purple); border-radius: 4px; }
body.eg-astro .td-category a:hover { background: var(--eg-purple); color: var(--eg-surface); }

/* Keep the installed Newspaper header and its ad hooks. */
body.eg-astro .td-header-wrap { background: var(--eg-surface); border-bottom: 1px solid var(--eg-border); }
body.eg-astro :is(.td-banner-wrap-full, .td-header-menu-wrap-full, .td-header-main-menu) { background-color: var(--eg-surface); }
body.eg-astro .td-header-menu-wrap { background: var(--eg-surface); box-shadow: none; }
body.eg-astro .td-header-gradient::before { display: none; }
body.eg-astro .td-header-sp-logo img {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
}
/* A champagne rendition of the transparent logo reads clearly on dark surfaces.
   Apply to the image itself: Newspaper positions it outside its link's box. */
html[data-eg-theme="dark"] body.eg-astro :is(.td-header-sp-logo, .td-main-menu-logo, .footer-logo-wrap) img {
    filter: brightness(0) saturate(100%) invert(93%) sepia(17%) saturate(498%) hue-rotate(342deg) brightness(104%) contrast(94%);
}
body.eg-astro .td-main-menu-logo img { width: auto !important; height: auto !important; object-fit: contain; }
body.eg-astro .td-header-main-menu { height: auto; min-height: 52px; }
body.eg-astro .td-header-style-3 .td-header-main-menu { background-color: var(--eg-surface) !important; }
body.eg-astro .sf-menu > li > a {
    color: var(--eg-text) !important;
    background: transparent !important;
    font-size: 13px;
    letter-spacing: .035em;
    padding-right: 15px;
    padding-left: 15px;
}
body.eg-astro .sf-menu > :is(.current-menu-item, .current-menu-ancestor) > a,
body.eg-astro .sf-menu > li > a:hover { color: var(--eg-purple) !important; background: var(--eg-soft) !important; }
body.eg-astro .sf-menu > li > a::after { background-color: var(--eg-gold) !important; }
body.eg-astro .sf-menu ul { background: var(--eg-surface); border: 1px solid var(--eg-border); border-radius: 0 0 10px 10px; box-shadow: var(--eg-shadow); }
body.eg-astro .sf-menu ul li { background: transparent; }
body.eg-astro .sf-menu ul li a { color: var(--eg-text) !important; background: transparent !important; font-size: 14px; line-height: 1.5; padding: 11px 18px; }
body.eg-astro .sf-menu ul li a:hover { color: var(--eg-purple) !important; background: var(--eg-soft) !important; }
body.eg-astro :is(.td-header-search-button, #td-header-search-button, #td-header-search-button-mob, #td-top-mobile-toggle a) { color: var(--eg-text); }
body.eg-astro :is(.td-drop-down-search, #td-mobile-nav, .td-search-wrap-mob) { background: var(--eg-surface); color: var(--eg-text); }
body.eg-astro :is(.td-mobile-main-menu li a, .td-mobile-close a, .td-search-close a) { color: var(--eg-text); }
body.eg-astro #td-mobile-nav .td-mobile-container { background: var(--eg-surface); }
body.eg-astro .td-menu-background { background: var(--eg-bg); }

body.eg-astro .eg-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--eg-border);
    border-radius: 100px;
    background: var(--eg-soft);
    color: var(--eg-text);
    font: 600 13px/1.2 Arial, sans-serif;
    cursor: pointer;
    white-space: nowrap;
}
body.eg-astro .eg-theme-toggle:hover { border-color: var(--eg-accent); }
.eg-mode-icon { font: 22px/1 Georgia, serif; color: var(--eg-gold); }
body.eg-astro .eg-mode-menu-item { padding: 6px 0 6px 12px; }
body.eg-astro .eg-theme-toggle--floating { position: fixed; bottom: 20px; right: 20px; z-index: 999; box-shadow: var(--eg-shadow); }
body.eg-astro .td-mobile-main-menu .eg-mode-menu-item { padding: 16px 0; }

/* Horoscope discovery: scoped to new components. */
.eg-astro-hub, .eg-sign-picker, .eg-period-widget, .eg-archive-periods { font-family: Arial, Helvetica, sans-serif; text-align: left; }
.eg-astro-hub *, .eg-sign-picker *, .eg-period-widget * { box-sizing: border-box; }
.eg-astro-hub { margin: 0 0 52px; padding-top: 28px; clear: both; }
body.eg-astro .eg-eyebrow { margin: 0; color: var(--eg-gold); font: 700 11px/1.6 Arial, sans-serif; letter-spacing: .14em; }
.eg-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    align-items: center;
    gap: 24px;
    padding: 44px;
    border: 1px solid var(--eg-border);
    border-radius: 20px;
    background: radial-gradient(ellipse at 100% 0, var(--eg-soft), transparent 65%), var(--eg-hero);
    overflow: hidden;
}
.eg-hero-copy { position: relative; z-index: 1; }
body.eg-astro .eg-hero h2 { margin: 18px 0; color: var(--eg-text); font: 500 clamp(36px, 4.4vw, 58px)/1.08 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; }
body.eg-astro .eg-hero-description { max-width: 400px; margin: 0 0 26px; color: var(--eg-muted); font: 16px/1.7 Arial, sans-serif; }
.eg-period-links { display: flex; flex-wrap: wrap; gap: 8px; }
body.eg-astro .eg-period-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1px solid var(--eg-border); border-radius: 7px; background: var(--eg-surface); color: var(--eg-purple); text-decoration: none; font: 600 14px/1.4 Arial, sans-serif; }
body.eg-astro .eg-period-links a:hover,
body.eg-astro .eg-period-links [aria-current="page"] { background: var(--eg-purple); border-color: var(--eg-purple); color: var(--eg-surface); }
.eg-orbit { position: relative; width: min(100%, 280px); aspect-ratio: 1; justify-self: center; border: 1px solid var(--eg-gold); border-radius: 50%; opacity: .9; }
.eg-orbit::before { content: ''; position: absolute; inset: 28px; border: 1px solid var(--eg-gold); border-radius: 50%; opacity: .35; }
.eg-orbit-inner { position: absolute; inset: 70px; border: 1px dashed var(--eg-gold); border-radius: 50%; opacity: .45; }
.eg-orbit-center { position: absolute; inset: 0; display: grid; place-items: center; font: 100px/1 Georgia, serif; color: var(--eg-gold); }
.eg-orbit-sign { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 30px; height: 30px; margin: -15px; transform: rotate(var(--eg-angle)) translateY(-105px) rotate(calc(-1 * var(--eg-angle))); color: var(--eg-symbol); font: 26px/1 'Times New Roman', serif; font-variant-emoji: text; }
.eg-orbit-star { position: absolute; color: var(--eg-gold); font-size: 26px; }
.eg-orbit-star--one { top: 25%; right: 29%; }
.eg-orbit-star--two { bottom: 27%; left: 25%; font-size: 18px; }
.eg-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 40px 0 20px; }
body.eg-astro .eg-section-heading h2 { margin: 5px 0 0; font: 400 32px/1.2 Georgia, serif; letter-spacing: -.025em; }
body.eg-astro .eg-section-heading > p { margin: 0 0 3px; color: var(--eg-muted); font-size: 14px; line-height: 1.5; }
.eg-period-picker { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; }
.eg-period-picker button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--eg-border); border-radius: 100px; background: transparent; color: var(--eg-muted); font: 600 13px/1.5 Arial, sans-serif; cursor: pointer; }
.eg-period-picker [aria-pressed="true"] { background: var(--eg-purple); color: var(--eg-surface); border-color: var(--eg-purple); }
.eg-period-picker button:hover { border-color: var(--eg-accent); }
.eg-sign-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
body.eg-astro .eg-sign { display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 165px; padding: 20px 7px; gap: 9px; border: 1px solid var(--eg-border); border-radius: 12px; background: var(--eg-surface); color: var(--eg-text); text-align: center; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
body.eg-astro .eg-sign:hover { transform: translateY(-3px); border-color: var(--eg-gold); box-shadow: var(--eg-shadow); color: var(--eg-purple); }
.eg-sign-symbol { display: grid; place-items: center; flex: 0 0 auto; width: 62px; height: 62px; margin-bottom: 5px; border: 1px solid var(--eg-symbol-ring); outline: 1px solid var(--eg-symbol-ring); outline-offset: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 25%, var(--eg-symbol-bg), transparent 75%); font: 40px/1 'Times New Roman', serif; font-variant-emoji: text; color: var(--eg-symbol); }
.eg-sign-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.eg-sign-dates { font-size: 12px; color: var(--eg-muted); line-height: 1.4; }
.eg-period-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.eg-period-card { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--eg-border); border-radius: 12px; background: var(--eg-surface); }
.eg-period-card-top { display: flex; align-items: center; gap: 10px; }
.eg-period-symbol { font: 28px/1 Georgia, serif; color: var(--eg-gold); }
body.eg-astro .eg-period-card h3 { margin: 20px 0; font: 400 25px/1.25 Georgia, serif; letter-spacing: -.02em; }
body.eg-astro .eg-period-card h3 a { color: var(--eg-text); text-decoration: none; }
body.eg-astro .eg-latest { margin: 0 0 22px; color: var(--eg-muted); font-size: 14px; line-height: 1.6; }
.eg-latest > span { display: block; margin-bottom: 5px; color: var(--eg-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
body.eg-astro .eg-latest a { color: var(--eg-text); }
body.eg-astro .eg-text-link { align-self: start; margin-top: auto; padding-bottom: 4px; border-bottom: 1px solid var(--eg-gold); color: var(--eg-purple); font-size: 13px; line-height: 1.5; font-weight: 600; text-decoration: none; }
.eg-archive-periods { clear: both; margin: 0 0 28px; }
.eg-sign-picker--compact .eg-sign-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body.eg-astro .eg-sign-picker--compact .eg-sign { min-height: 110px; padding: 12px 5px; gap: 6px; }
.eg-sign-picker--compact .eg-sign-symbol { width: 46px; height: 46px; font-size: 29px; margin-bottom: 3px; }
.eg-sign-picker--compact .eg-sign-name { font-size: 12px; }
.eg-period-widget { display: grid; gap: 10px; }
body.eg-astro .eg-period-widget a { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 14px 18px; border: 1px solid var(--eg-border); border-radius: 8px; background: var(--eg-surface); color: var(--eg-text); font-size: 14px; text-decoration: none; }
.eg-period-widget a span:first-child { color: var(--eg-gold); font: 26px/1 Georgia, serif; }

/* Native Newspaper cards, sidebar, article controls and footer. */
body.eg-astro .block-title { border-color: var(--eg-border); }
body.eg-astro .block-title > :is(span, a),
body.eg-astro .td-related-title > .td-cur-simple-item { background-color: var(--eg-soft) !important; color: var(--eg-purple) !important; }
body.eg-astro .td-block-title-wrap .td-block-title { color: var(--eg-text); }
/* The site's block template 18 uses transparent gradient text. Keep sidebar
   headings readable and compact in both palettes, including existing widgets. */
body.eg-astro .td-main-sidebar .td-block-title {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--eg-border);
    font: 400 25px/1.25 Georgia, serif;
    letter-spacing: -.02em;
    text-align: left;
    text-transform: none;
}
body.eg-astro .td-main-sidebar .td-block-title > :is(span, a) {
    padding: 0;
    background: none !important;
    color: var(--eg-text) !important;
    -webkit-text-fill-color: var(--eg-text);
}
/* Template 3 overlays its first-page title on a darkened featured image.
   Continuation pages below use the regular palette on their plain surface. */
body.eg-astro.single:not([class*="single-paged-"]) .td-post-template-3 .td-post-header-holder :is(.entry-title, .td-post-sub-title, .td-post-author-name, .td-post-author-name a, .td-post-date, .td-post-comments a, .td-post-views) {
    color: #fff;
}
body.eg-astro :is(.td_block_wrap, .td-related-title, .author-box-wrap, .td-post-next-prev-content, .td-post-source-tags) { border-color: var(--eg-border); }
body.eg-astro :is(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), textarea, select) { color: var(--eg-text); background-color: var(--eg-surface); border-color: var(--eg-border); }
body.eg-astro :is(input[type="submit"], .td-search-form .wpb_button) { background: var(--eg-purple); color: var(--eg-surface); }
body.eg-astro .td-post-content blockquote { color: var(--eg-purple); border-color: var(--eg-gold); }
body.eg-astro .td-post-content table :is(th, td) { border-color: var(--eg-border); }
body.eg-astro .td-post-content th { background: var(--eg-soft); }
body.eg-astro :is(.td-tags li a, .page-nav > a, .page-nav > span) { color: var(--eg-text); background: var(--eg-surface); border-color: var(--eg-border); }
body.eg-astro .page-nav > .current { background: var(--eg-purple); color: var(--eg-surface); border-color: var(--eg-purple); }
body.eg-astro.single-post .easy-go-article-nav { border-color: var(--eg-border); }
body.eg-astro.single-post .easy-go-article-nav .post-page-numbers { background: var(--eg-surface); color: var(--eg-text); border-color: var(--eg-border); }
body.eg-astro.single-post .easy-go-article-nav .current { background: var(--eg-purple); border-color: var(--eg-purple); color: var(--eg-surface); }
body.eg-astro.single-post .easy-go-article-nav a:hover { background: var(--eg-soft); color: var(--eg-purple); border-color: var(--eg-accent); }
body.eg-astro.single-post .easy-go-article-nav a:focus-visible { outline-color: var(--eg-accent); }
body.eg-astro :is(.td-footer-wrapper, .td-sub-footer-container) { background: var(--eg-surface); color: var(--eg-muted); border-top: 1px solid var(--eg-border); }
body.eg-astro .td-footer-wrapper :is(p, .footer-text-wrap, .td-module-title a, .block-title span),
body.eg-astro .td-sub-footer-container a { color: var(--eg-muted); }
body.eg-astro .td-footer-wrapper .footer-logo-wrap img { width: auto !important; height: auto !important; max-height: 100px; object-fit: contain; }

/* Existing continuation-page header rules retain compact behavior in both modes. */
body.eg-astro.single[class*="single-paged-"] :is(.td-post-featured-image, .td-crumb-container, .td-category, .td-module-meta-info) { display: none !important; }
body.eg-astro.single[class*="single-paged-"] .td-post-header-holder { height: auto !important; min-height: 0 !important; margin-bottom: 15px !important; background: transparent !important; }
body.eg-astro.single[class*="single-paged-"] .td-post-header-holder::before,
body.eg-astro.single[class*="single-paged-"] .td-post-header-holder::after { display: none !important; }
body.eg-astro.single[class*="single-paged-"] .td-post-title { position: static !important; padding: 12px 0 !important; }
body.eg-astro.single[class*="single-paged-"] .td-post-title .entry-title { margin: 0 !important; color: var(--eg-text) !important; font-size: clamp(24px, 3vw, 32px) !important; line-height: 1.2 !important; }

.eg-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 768px) and (max-width: 1018px) {
    body.eg-astro .td-header-sp-logo img { max-height: 60px; }
    .eg-hero { padding: 30px; grid-template-columns: 1.4fr .6fr; }
    .eg-orbit { width: 190px; }
    .eg-orbit-sign { transform: rotate(var(--eg-angle)) translateY(-70px) rotate(calc(-1 * var(--eg-angle))); font-size: 20px; }
    .eg-orbit-inner { inset: 53px; }
    .eg-orbit-center { font-size: 75px; }
    .eg-sign-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .eg-period-card { padding: 18px; }
}
@media (max-width: 767px) {
    body.eg-astro #td-top-mobile-toggle { display: block !important; }
    body.eg-astro .td-header-sp-logo img { max-height: 80px; }
    body.eg-astro .td-header-main-menu .sf-menu { display: none; }
    .eg-astro-hub { padding-top: 12px; margin-bottom: 32px; }
    .eg-hero { padding: 28px 22px; grid-template-columns: 1fr; gap: 0; }
    .eg-orbit { position: absolute; width: 210px; right: -68px; top: -70px; opacity: .13; }
    .eg-orbit-sign { transform: rotate(var(--eg-angle)) translateY(-78px) rotate(calc(-1 * var(--eg-angle))); }
    .eg-hero-copy { max-width: 100%; }
    body.eg-astro .eg-hero h2 { font-size: 40px; }
    body.eg-astro .eg-hero-description { font-size: 15px; max-width: 340px; }
    .eg-section-heading { margin-top: 30px; align-items: start; }
    .eg-section-heading > p { display: none; }
    .eg-sign-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    body.eg-astro .eg-sign { min-height: 151px; padding: 16px 5px; }
    .eg-sign-symbol { width: 56px; height: 56px; font-size: 36px; }
    .eg-sign-name { font-size: 13px; }
    .eg-sign-dates { font-size: 11px; }
    .eg-period-cards { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
    .eg-period-card { padding: 22px; }
    body.eg-astro .eg-period-card h3 { margin: 15px 0; }
    .eg-period-picker { gap: 5px; }
    .eg-period-picker button { padding: 8px 10px; font-size: 12px; }
    body.eg-astro .eg-theme-toggle--floating { right: 12px; bottom: 12px; }
}
@media (max-width: 360px) {
    .eg-hero { padding: 24px 16px; }
    body.eg-astro .eg-period-links a { padding: 10px 14px; }
    .eg-sign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    body.eg-astro .eg-sign { transition: none; }
    body.eg-astro .eg-sign:hover { transform: none; }
}
