/* =========================================================================
   Horoscop Space — theme stylesheet (v0.7.0, minimal/fast light redesign)
   Design goals: minimalism, speed, functionality over decoration.
   - light, airy surface (no dark mode) with a small violet/gold accent set
   - one border radius scale, one shadow scale, flat surfaces
   - no starfield/glow pseudo-elements, no stacked radial-gradient blooms
   - backdrop-filter used in exactly one place (the sticky header)
   - no infinite CSS animations, no rotating/orbiting decoration
   - photographic sections (topic headers, zodiac art) keep a dark veil for
     legibility and therefore use explicit light text colours of their own —
     everywhere else follows the light palette below
   - every selector is referenced by a template or by main.js; nothing is
     shipped unused
   ========================================================================= */

:root {
    --bg: #faf8fc;
    --surface: #ffffff;
    --surface-2: #f2eef9;
    --text: #1d1730;
    --muted: #675f7d;
    --muted-2: #8a8299;
    --line: rgba(29, 23, 48, .10);
    --line-strong: rgba(29, 23, 48, .20);
    --violet: #6a44e0;
    --violet-hover: #5636c4;
    --violet-soft: #5c3fc9;
    --gold: #a9772a;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --shell: min(1180px, calc(100% - 40px));
    --shadow: 0 10px 28px rgba(29,23,48,.10);
    --shadow-sm: 0 2px 10px rgba(29,23,48,.08);
    --font-display: Georgia, "Times New Roman", serif;
    --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --dur: .16s;
    /* Used only on top of photographic art + a dark veil, never on the page's own light surfaces. */
    --on-dark-text: #fff;
    --on-dark-muted: rgba(255,255,255,.78);
    --on-dark-gold: #f3c876;
    --on-dark-violet: #c6b6ff;
}

/* ---------- Reset & base ------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.shell--narrow { max-width: 760px; }
.screen-reader-text,
.skip-link:not(:focus) {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
.skip-link:focus {
    position: fixed;
    z-index: 1000;
    top: 12px; left: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--text);
    color: #fff;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    color: var(--violet-soft);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.eyebrow::before { content: "✦"; color: var(--gold); }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: .92rem;
    transition: border-color var(--dur) ease, background var(--dur) ease, color var(--dur) ease;
}
.button--primary { background: var(--violet); color: #fff; }
.button--primary:hover { background: var(--violet-hover); }
.button--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.button--ghost:hover { border-color: var(--violet-soft); color: var(--violet-soft); }

.text-link { font-weight: 700; color: var(--text); font-size: .9rem; }
.text-link:hover { color: var(--violet-soft); }

/* ---------- Header --------------------------------------------------------
   Always a solid, legible surface (not transparent) — the header sits on
   top of photographic hero art on several templates, so its own background
   can never depend on what happens to be under it. */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    background: rgba(250, 248, 252, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header__inner {
    min-height: 74px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.brand__mark {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--gold);
    font-size: .95rem;
}
.brand__text { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; }
.brand__text span { color: var(--violet-soft); }
/* An uploaded custom logo (Wygląd -> Dostosuj -> Logo w witrynie) has
   "flex-width"/"flex-height" enabled in functions.php, so WordPress does
   NOT crop or downscale it -- the_custom_logo() prints the image at its
   real uploaded size. Without an explicit cap here, a large source file
   (easily 1000px+ on a side) renders at full size and can cover the whole
   header/hero. .brand__logo was the old, never-matching selector (WP's
   real output is .custom-logo-link/.custom-logo, not .brand__logo) --
   fixed to target what the_custom_logo() actually prints. */
.brand--custom-logo,
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { display: block; height: auto; max-height: 40px; width: auto; max-width: 180px; }

.site-nav { justify-self: center; }
.site-nav__list, .site-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav a {
    display: block;
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: .89rem;
    font-weight: 600;
}
.site-nav a:hover,
.site-nav .current-menu-item > a { color: var(--text); background: var(--surface-2); }
.site-nav .sub-menu {
    position: absolute;
    top: calc(100% + 6px); left: 0;
    z-index: 20;
    min-width: 220px;
    display: none;
    flex-direction: column;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.site-nav li:hover > .sub-menu { display: flex; }
/* 1.2.7 — no-JS fallback only; with the script active main.js owns open/closed
   so Escape can actually dismiss the panel (see premium-light.css). */
.site-nav:not(.hs-nav-enhanced) li:focus-within > .sub-menu { display: flex; }
.site-nav .sub-menu li a { border-radius: var(--radius-sm); }
.site-nav .sub-menu--zodiac { width: 340px; flex-direction: row; flex-wrap: wrap; }
.site-nav .sub-menu--zodiac li { width: calc(50% - 2px); }
.site-nav .sub-menu--zodiac a { display: flex; align-items: center; gap: 8px; }
.site-nav .sub-menu--zodiac a span { color: var(--gold); }

.header-cta {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 15px;
    border-radius: 999px;
    background: var(--violet);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
}
.header-cta:hover { background: var(--violet-hover); }
.nav-toggle { display: none; }

/* Fallback / mega menu — flat panel, no blur, no glow */
.site-nav > .site-nav__list > li > a,
.site-nav > ul > li > a { position: relative; }
.site-nav > .site-nav__list > .menu-item-has-children > a::after,
.site-nav > ul > .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 5px; height: 5px;
    margin: 0 0 2px 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: .65;
}
.nav-mega-trigger { position: static !important; }
.nav-mega {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    width: min(680px, calc(100vw - 48px));
    display: none;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: translateX(-50%);
}
.nav-mega-trigger:hover > .nav-mega,
.site-nav:not(.hs-nav-enhanced) .nav-mega-trigger:focus-within > .nav-mega { display: grid; }
.nav-mega__intro {
    padding: 18px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}
.nav-mega__eyebrow, .nav-mega__title {
    display: block;
    margin-bottom: 8px;
    color: var(--violet-soft);
    font-size: .65rem;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.nav-mega__intro strong {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1.1;
    color: var(--text);
}
.nav-mega__intro p { margin: 0; color: var(--muted); font-size: .8rem; }
.nav-mega__column { padding: 10px; }
.nav-mega__column a { display: block; padding: 8px 9px; border-radius: var(--radius-sm); color: var(--text); font-size: .85rem; }
.nav-mega__column a:hover { background: var(--surface-2); }
.nav-mega__column small { display: block; margin-top: 1px; color: var(--muted-2); font-size: .66rem; font-weight: 500; }

/* WP-created large first/second dropdowns become compact panels */
.site-nav > ul > li:first-child > .sub-menu,
.site-nav > .site-nav__list > li:first-child > .sub-menu {
    min-width: 440px; flex-flow: row wrap; padding: 10px;
}
.site-nav > ul > li:first-child > .sub-menu > li,
.site-nav > .site-nav__list > li:first-child > .sub-menu > li { width: calc(50% - 2px); }
.site-nav > ul > li:nth-child(2) > .sub-menu,
.site-nav > .site-nav__list > li:nth-child(2) > .sub-menu { width: 340px; flex-flow: row wrap; }
.site-nav > ul > li:nth-child(2) > .sub-menu > li,
.site-nav > .site-nav__list > li:nth-child(2) > .sub-menu > li { width: calc(50% - 2px); }

@media (max-width: 1120px) {
    .site-nav {
        display: none;
        position: fixed;
        inset: 72px 16px auto;
        max-height: calc(100vh - 90px);
        overflow: auto;
        padding: 12px;
        border-radius: var(--radius);
        border: 1px solid var(--line);
        background: var(--surface);
        box-shadow: var(--shadow);
    }
    .site-nav.is-open { display: block; }
    .site-nav__list, .site-nav ul { flex-direction: column; }
    .site-nav .sub-menu { position: static; display: flex; min-width: 0; margin: 3px 0 5px 12px; box-shadow: none; background: var(--surface-2); }
    .nav-toggle {
        justify-self: end;
        width: 40px; height: 40px;
        display: grid; place-items: center; align-content: center; gap: 4px;
        border-radius: 50%;
        background: var(--surface-2);
        border: 1px solid var(--line);
        color: var(--text);
    }
    .nav-toggle__bar { width: 16px; height: 1.5px; background: currentColor; }
    .header-cta { display: none; }
    .nav-mega { position: static; width: 100%; display: grid; grid-template-columns: 1fr 1fr; margin-top: 5px; transform: none; box-shadow: none; background: transparent; border: 0; padding: 0; }
    .nav-mega__intro { grid-column: 1 / -1; }
    .site-nav > ul > li:first-child > .sub-menu,
    .site-nav > .site-nav__list > li:first-child > .sub-menu,
    .site-nav > ul > li:nth-child(2) > .sub-menu,
    .site-nav > .site-nav__list > li:nth-child(2) > .sub-menu { width: auto; min-width: 0; display: flex; flex-direction: column; }
    .site-nav > ul > li:first-child > .sub-menu > li,
    .site-nav > .site-nav__list > li:first-child > .sub-menu > li,
    .site-nav > ul > li:nth-child(2) > .sub-menu > li,
    .site-nav > .site-nav__list > li:nth-child(2) > .sub-menu > li { width: 100%; }
}
@media (max-width: 620px) {
    .site-header__inner { min-height: 64px; }
    .brand__text { font-size: 1rem; }
    .site-nav { top: 64px; bottom: 12px; inset-inline: 12px; max-height: none; }
    .nav-mega { grid-template-columns: 1fr; }
}

/* ---------- Hero ---------------------------------------------------------- */
.hero {
    position: relative;
    padding: 132px 0 76px;
}
.hero__stars { position: absolute; inset: 0; pointer-events: none; }
.hero__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero__orb--one { width: 360px; height: 360px; right: -140px; top: 90px; background: radial-gradient(circle, rgba(106,68,224,.09), transparent 70%); }
.hero__orb--two { width: 220px; height: 220px; left: -120px; bottom: 10px; background: radial-gradient(circle, rgba(224,98,158,.07), transparent 70%); }
.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
    gap: 56px;
    align-items: center;
}
.hero__content { max-width: 640px; }
.hero h1, .personal-card h2, .newsletter-card h2, .page-hero h1, .error-card h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 550;
    line-height: 1.03;
    letter-spacing: -.02em;
    color: var(--text);
}
.hero h1 { max-width: 680px; font-size: clamp(2.6rem, 5vw, 4.4rem); }
.hero__content > p { max-width: 560px; margin: 20px 0 0; color: var(--muted); font-size: 1.05rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; color: var(--muted-2); font-size: .8rem; }

.hero__visual { display: grid; place-items: center; }
.astro-wheel {
    position: relative;
    width: min(340px, 34vw);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid var(--line);
}
.astro-wheel__orbit { position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.astro-wheel__orbit--outer { inset: 0; }
.astro-wheel__orbit--middle { inset: 15%; }
.astro-wheel__orbit--inner { inset: 32%; }
.astro-wheel__sign {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 30px; height: 30px;
    margin: -15px;
    transform: rotate(var(--angle)) translateY(-160px) rotate(calc(var(--angle) * -1));
    display: grid; place-items: center;
    color: var(--muted-2);
    font-size: 1rem;
}
.astro-wheel__core {
    position: absolute;
    inset: 38%;
    display: grid; place-items: center;
    align-content: center;
    gap: 4px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.astro-wheel__core span { color: var(--gold); font-size: 1.6rem; }
.astro-wheel__core small { font-size: .55rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); }

/* Replaces the static ring's contents once assets/js/sky-wheel.js has real
   planet longitudes to plot — see that file. Kept close to the static
   .astro-wheel rules above since the two are visually one component. */
.astro-wheel svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sky-wheel__ring { fill: none; stroke: var(--line); }
.sky-wheel__tick { stroke: var(--line); }
.sky-wheel__sign { fill: var(--muted-2); font-size: 8px; }
.sky-wheel__planet-dot { fill: var(--surface); stroke: var(--violet-soft); stroke-width: 1.2; }
.sky-wheel__planet-dot--sun, .sky-wheel__planet-dot--moon { stroke: var(--gold); }
.sky-wheel__planet-glyph { fill: var(--text); font-size: 8px; pointer-events: none; }
.sky-wheel__core-disc { fill: var(--surface); stroke: var(--line); }
.sky-wheel__core-mark { fill: var(--gold); font-size: 15px; }
.sky-wheel__core-label { fill: var(--muted); font-size: 4.6px; font-weight: 700; letter-spacing: .1em; }
.astro-wheel__caption { margin: 14px 0 0; text-align: center; color: var(--muted-2); font-size: .74rem; }

@media (max-width: 860px) {
    .hero { padding: 108px 0 56px; }
    .hero__grid { grid-template-columns: 1fr; gap: 30px; }
    .hero__visual { order: -1; }
    .astro-wheel { width: min(220px, 56vw); }
    .hero__content { text-align: center; margin-inline: auto; }
    .hero__content > p { margin-inline: auto; }
    .hero__actions, .hero__trust { justify-content: center; }
}
@media (max-width: 620px) {
    .hero { padding-top: 96px; }
    .hero__actions { flex-direction: column; }
    .hero__actions .button { width: 100%; }
}

/* ---------- Section shell ------------------------------------------------- */
.section { padding: 72px 0; }
.section--compact { padding: 56px 0; }
.section-heading { max-width: 700px; margin-bottom: 32px; }
.section-heading h2, .personal-card h2, .newsletter-card h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); color: var(--text); }
.section-heading p { margin: 12px 0 0; color: var(--muted); }
.section-heading--split { max-width: none; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
.section-heading--split p { max-width: 480px; justify-self: end; margin: 0; }
.section-heading--left { text-align: left; margin-inline: 0; }
.section-heading--left h2 { max-width: 800px; }

@media (max-width: 860px) {
    .section-heading--split { grid-template-columns: 1fr; gap: 12px; }
    .section-heading--split p { justify-self: start; }
}

/* ---------- Interactive zodiac selector (v0.7.0) --------------------------
   One flat, fast chip layout used at every breakpoint. The old animated
   circular wheel was replaced: it added a conic-gradient background,
   per-button backdrop blur and an infinite CSS animation for a purely
   decorative ring that slowed rendering without adding function. */
.zodiac-explorer-heading { max-width: 760px; margin-bottom: 34px; }
.zodiac-explorer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}
.zodiac-selector { min-width: 0; }
.zodiac-wheel-interactive { display: none; }
.zodiac-selector__mobile {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}
.zodiac-mobile-sign {
    min-height: 74px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--dur) ease, background var(--dur) ease;
}
.zodiac-mobile-sign > span { font-size: 1.3rem; color: var(--text); }
.zodiac-mobile-sign small { font-size: .62rem; font-weight: 700; color: var(--muted); }
.zodiac-mobile-sign:hover { border-color: var(--line-strong); }
.zodiac-mobile-sign.is-active {
    border-color: var(--gold);
    background: var(--surface-2);
}
.zodiac-mobile-sign.is-active > span { color: var(--gold); }

.zodiac-open-card {
    min-width: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}
/* .zodiac-open-card__art holds a real photograph with a dark veil, so its
   own badge stays on explicit light-on-dark colours regardless of theme. */
.zodiac-open-card__art { position: relative; min-height: 320px; overflow: hidden; background: var(--surface-2); }
.zodiac-open-card__art img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity var(--dur) ease;
}
.zodiac-open-card__art img.is-changing { opacity: .35; }
.zodiac-open-card__image-veil {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(10,7,20,.55), transparent 55%);
}
.zodiac-open-card__emblem {
    position: absolute; z-index: 2;
    left: 18px; top: 18px;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    color: var(--on-dark-gold);
    font-size: 1.4rem;
    background: rgba(10,7,20,.55);
}
.zodiac-open-card__body { min-width: 0; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px); }
.zodiac-open-card__identity { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.zodiac-open-card__identity .eyebrow { margin-bottom: 6px; font-size: .68rem; }
.zodiac-open-card__identity h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 3.4vw, 3.2rem);
    font-weight: 550;
    line-height: 1;
    color: var(--text);
}
.zodiac-open-card__meta { display: flex; align-items: center; gap: 8px; padding-bottom: 4px; color: var(--muted); font-size: .74rem; white-space: nowrap; }
.zodiac-open-card__meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.zodiac-open-card__intro { max-width: 560px; margin: 16px 0 22px; color: var(--muted); font-size: .92rem; line-height: 1.65; }

.zodiac-horoscope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.zodiac-horoscope-tile {
    min-width: 0;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    transition: border-color var(--dur) ease;
}
.zodiac-horoscope-tile:hover, .zodiac-horoscope-tile:focus-visible { border-color: var(--violet-soft); outline: none; }
.zodiac-horoscope-tile__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--radius-sm); color: var(--gold); font-size: 1.1rem; background: rgba(169,119,42,.09); }
.zodiac-horoscope-tile__copy { min-width: 0; display: grid; gap: 1px; }
.zodiac-horoscope-tile__copy strong { font-size: .87rem; color: var(--text); }
.zodiac-horoscope-tile__copy small { overflow: hidden; color: var(--muted-2); font-size: .68rem; white-space: nowrap; text-overflow: ellipsis; }
.zodiac-horoscope-tile__arrow { color: var(--muted-2); font-size: .9rem; }
.zodiac-horoscope-tile:hover .zodiac-horoscope-tile__arrow { color: var(--gold); }

.zodiac-open-card__profile {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    margin-top: auto; padding-top: 22px;
    color: var(--text); font-size: .84rem; font-weight: 700;
}
.zodiac-open-card__profile span { color: var(--gold); }
.zodiac-noscript { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.zodiac-noscript a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }

@media (min-width: 761px) {
    .zodiac-explorer { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); align-items: start; }
    .zodiac-selector__mobile { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .zodiac-selector__mobile {
        grid-template-columns: none;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
    }
    .zodiac-mobile-sign { flex: 0 0 72px; scroll-snap-align: center; }
    .zodiac-open-card { grid-template-columns: 1fr; border-radius: var(--radius); }
    .zodiac-open-card__art { min-height: 220px; }
    .zodiac-open-card__body { padding: 22px; }
    .zodiac-open-card__identity h3 { font-size: clamp(2.2rem, 10vw, 3rem); }
    .zodiac-horoscope-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .zodiac-open-card__art img { transition: none; }
}

/* ---------- Feature grid --------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feature-card {
    min-height: 220px;
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    transition: border-color var(--dur) ease, transform var(--dur) ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.feature-card--large { grid-column: span 2; }
.feature-card__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--gold); font-size: 1.25rem; }
.feature-card__kicker { margin-top: 22px; color: var(--violet-soft); font-size: .68rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.feature-card h3 { margin: 6px 0 0; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.08; font-weight: 550; color: var(--text); }
.feature-card p { margin: 10px 0 0; color: var(--muted); font-size: .89rem; }
.feature-card__link { margin-top: auto; padding-top: 18px; font-weight: 700; font-size: .86rem; color: var(--text); }

/* Home cards reuse the theme's real thematic artwork behind a dark veil, so
   every piece of text on top gets an explicit light colour of its own. */
.feature-card--art { position: relative; overflow: hidden; isolation: isolate; background-color: var(--surface-2); }
.feature-card--art::before {
    content: "";
    position: absolute; inset: 0; z-index: -2;
    background-image: var(--feature-art);
    background-size: cover;
    background-position: 70% center;
    opacity: .5;
}
.feature-card--art::after {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, rgba(10,7,20,.92) 0%, rgba(10,7,20,.74) 45%, rgba(10,7,20,.40) 100%);
}
.feature-card--daily { --feature-art: url("../images/headers/daily.webp"); }
.feature-card--weekly { --feature-art: url("../images/headers/weekly.webp"); }
.feature-card--monthly { --feature-art: url("../images/headers/monthly.webp"); }
.feature-card--compatibility { --feature-art: url("../images/headers/compatibility.webp"); }
.feature-card--love { --feature-art: url("../images/headers/love.webp"); }
.feature-card--art .feature-card__icon { background: rgba(10,7,20,.5); border: 1px solid rgba(255,255,255,.22); color: var(--on-dark-gold); }
.feature-card--art .feature-card__kicker { color: var(--on-dark-violet); }
.feature-card--art h3,
.feature-card--art .feature-card__link { color: var(--on-dark-text); }
.feature-card--art p { color: var(--on-dark-muted); }

@media (max-width: 1120px) {
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-card--large { grid-column: span 2; }
}
@media (max-width: 620px) {
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card--large { grid-column: auto; }
}

/* ---------- Personal / premium card ---------------------------------------- */
.personal-card {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 44px;
    align-items: center;
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.personal-card__visual { display: grid; place-items: center; }
.mini-chart { position: relative; width: min(320px, 100%); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); }
.mini-chart::before, .mini-chart::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.mini-chart::before { inset: 15%; }
.mini-chart::after { inset: 30%; }
.mini-chart svg { width: 72%; color: var(--violet-soft); }
.mini-chart__star { position: absolute; color: var(--gold); }
.mini-chart__star--1 { top: 14%; left: 26%; }
.mini-chart__star--2 { top: 26%; right: 12%; }
.mini-chart__star--3 { bottom: 15%; left: 17%; }
.mini-chart__star--4 { bottom: 25%; right: 20%; }
.personal-card__content > p { color: var(--muted); max-width: 560px; }
.personal-card__steps { display: grid; grid-template-columns: repeat(4, auto); gap: 8px; margin: 24px 0; }
.personal-card__steps span { padding: 9px 11px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: .76rem; }

@media (max-width: 860px) {
    .personal-card { grid-template-columns: 1fr; padding: 30px 22px; }
    .personal-card__steps { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Article grid ---------------------------------------------------- */
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.article-grid--archive { margin-bottom: 34px; }
.article-card { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.article-card__image { min-height: 190px; display: grid; place-items: center; overflow: hidden; background: var(--surface-2); }
.article-card__image img { width: 100%; height: 190px; object-fit: cover; }
.article-card__image > span { font-size: 2.2rem; color: var(--gold); }
.article-card__body { padding: 20px; }
.article-card__meta { color: var(--violet-soft); font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.article-card h3 { margin: 6px 0 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; font-weight: 550; color: var(--text); }
.article-card p { color: var(--muted); font-size: .89rem; }

@media (max-width: 860px) { .article-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .article-grid { grid-template-columns: 1fr; } }

/* ---------- Newsletter -------------------------------------------------------- */
.newsletter-card {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 36px;
    align-items: center;
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
}
.newsletter-card h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.newsletter-card p { max-width: 580px; color: var(--muted); }
.newsletter-form { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.newsletter-form input { min-width: 0; flex: 1; padding: 0 14px; color: var(--text); background: transparent; border: 0; outline: none; }
.newsletter-form input::placeholder { color: var(--muted-2); }

@media (max-width: 860px) { .newsletter-card { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
    .newsletter-card { padding: 24px 18px; }
    .newsletter-form { flex-direction: column; border-radius: var(--radius-sm); padding: 8px; }
    .newsletter-form input { min-height: 44px; }
}

/* ---------- Footer -------------------------------------------------------------- */
.site-footer { padding: 60px 0 22px; border-top: 1px solid var(--line); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr .7fr .7fr; gap: 56px; }
.site-footer__brand p { max-width: 480px; margin-top: 12px; color: var(--muted); }
.site-footer h2 { margin: 0 0 14px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 7px; }
.site-footer li a { color: var(--muted); font-size: .89rem; }
.site-footer li a:hover { color: var(--text); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: .76rem; }

@media (max-width: 860px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
    .site-footer__grid { grid-template-columns: 1fr; gap: 30px; }
    .site-footer__brand { grid-column: auto; }
    .site-footer__bottom { flex-direction: column; }
}

/* ---------- Generic content pages ------------------------------------------------ */
.content-page { min-height: 60vh; padding: 118px 0 76px; }
.page-hero { margin-bottom: 32px; }
.page-hero h1 { max-width: 820px; font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
.page-hero--compact { margin-bottom: 34px; }
.entry-meta { color: var(--muted); }
.entry-featured { margin: 0 0 34px; border-radius: var(--radius); overflow: hidden; }
.entry-content { color: var(--text); font-size: 1.04rem; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--text); font-family: var(--font-display); line-height: 1.15; font-weight: 550; }
.entry-content h2 { margin-top: 1.8em; font-size: 1.9rem; }
.entry-content h3 { margin-top: 1.6em; font-size: 1.5rem; }
.entry-content a { color: var(--violet-soft); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin: 1.8em 0; padding: 16px 20px; border-left: 3px solid var(--violet); background: var(--surface-2); color: var(--text); }
.error-card { text-align: center; padding: 60px 20px; }
.error-card__symbol { display: block; margin-bottom: 12px; color: var(--gold); font-size: 2.6rem; }
.error-card p { max-width: 540px; margin: 16px auto 24px; color: var(--muted); }
.nav-links { display: flex; gap: 8px; }
.nav-links .page-numbers { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--text); }
.nav-links .current { background: var(--violet); border-color: var(--violet); color: #fff; }

/* ---------- Topic hero (real thematic artwork, single flat veil) ------------------ */
.topic-hero {
    position: relative;
    min-height: 420px;
    display: grid;
    align-items: end;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}
.topic-hero__media, .topic-hero__veil { position: absolute; inset: 0; }
.topic-hero__media { z-index: -2; }
.topic-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.topic-hero__veil {
    z-index: -1;
    background: linear-gradient(90deg, rgba(10,7,20,.90) 0%, rgba(10,7,20,.68) 34%, rgba(10,7,20,.30) 68%, rgba(10,7,20,.18) 100%);
}
.topic-hero__inner { width: var(--shell); min-height: 420px; display: flex; align-items: flex-end; padding-top: 108px; padding-bottom: 52px; }
.topic-hero__copy { width: min(640px, 60vw); color: var(--on-dark-text); }
.topic-hero__copy h1 { margin: 10px 0 0; max-width: 700px; font-family: var(--font-display); font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.04; font-weight: 550; color: var(--on-dark-text); }
.topic-hero__copy p { max-width: 580px; margin: 18px 0 0; color: var(--on-dark-muted); font-size: 1rem; line-height: 1.65; }
.topic-hero .eyebrow { color: var(--on-dark-gold); }
.topic-hero .eyebrow::before { color: var(--on-dark-gold); }

.topic-page__content { position: relative; }

.topic-link-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.topic-link-card {
    position: relative;
    min-height: 140px;
    display: grid;
    align-content: end;
    gap: 6px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color var(--dur) ease, transform var(--dur) ease;
}
.topic-link-card > span { position: absolute; top: 18px; left: 20px; color: var(--gold); font-size: 1.35rem; }
.topic-link-card strong { max-width: 170px; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.15; font-weight: 550; color: var(--text); }
.topic-link-card i { position: absolute; right: 18px; bottom: 17px; color: var(--violet-soft); font-style: normal; }
.topic-link-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.horoscope-sign-grid--topic { margin-top: 30px; }

@media (max-width: 980px) {
    .topic-hero__copy { width: min(600px, 72vw); }
    .topic-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .topic-hero { min-height: 460px; }
    .topic-hero__inner { min-height: 460px; padding-top: 96px; padding-bottom: 36px; }
    .topic-hero__veil { background: linear-gradient(0deg, rgba(10,7,20,.92) 0%, rgba(10,7,20,.78) 38%, rgba(10,7,20,.25) 100%); }
    .topic-hero__copy { width: 100%; }
    .topic-hero__copy h1 { font-size: clamp(2rem, 10vw, 2.9rem); }
    .topic-link-grid { grid-template-columns: 1fr; }
}

/* ---------- Period tabs & horoscope-sign cards ------------------------------------- */
.period-tabs { display: flex; width: fit-content; max-width: 100%; gap: 4px; margin-bottom: 30px; padding: 5px; overflow-x: auto; border: 1px solid var(--line); border-radius: 999px; }
.period-tabs--center { margin-inline: auto; }
.period-tabs__item { white-space: nowrap; padding: 9px 15px; border-radius: 999px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.period-tabs__item:hover { color: var(--text); }
.period-tabs__item.is-active { color: #fff; background: var(--violet); }

.horoscope-sign-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.horoscope-sign-card {
    position: relative;
    min-height: 100px;
    display: grid;
    grid-template-columns: 30px 60px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color var(--dur) ease, transform var(--dur) ease;
}
.horoscope-sign-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.horoscope-sign-card__number { color: var(--muted-2); font-size: .64rem; font-weight: 750; letter-spacing: .1em; }
.horoscope-sign-card__symbol { display:grid; place-items:center; width:60px; height:60px; border-radius:50%; color:#b7781c; font-family:'Times New Roman',serif; font-size:1.85rem; line-height:1; }
.horoscope-sign-card__media{display:none;}
.horoscope-sign-card__body { display: grid; }
.horoscope-sign-card__body strong { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.1; font-weight: 550; color: var(--text); }
.horoscope-sign-card__body small { margin-top: 3px; color: var(--muted-2); font-size: .68rem; }
.horoscope-sign-card__arrow { color: var(--violet-soft); font-size: 1.05rem; }
.hub-copy { max-width: 780px; margin: 50px auto 0; }

@media (max-width: 980px) { .horoscope-sign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
    .period-tabs { width: 100%; margin-inline: 0; }
    .period-tabs__item { flex: 0 0 auto; }
    .horoscope-sign-grid { grid-template-columns: 1fr; }
    .horoscope-sign-card { min-height: 88px; grid-template-columns: 24px 50px 1fr auto; padding: 13px; }
    .horoscope-sign-card__symbol { width:50px; height:50px; font-size:1.55rem; }
}

/* ---------- Zodiac sign profile page --------------------------------------------- */
.zodiac-profile__hero { position: relative; overflow: hidden; padding: 130px 0 56px; border-bottom: 1px solid var(--line); }
.zodiac-profile__hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.zodiac-profile__titleline { display: flex; align-items: center; gap: 20px; }
.subhero h1, .zodiac-profile h1, .personal-product h1, .compatibility-page h1 { margin: 0; font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; font-weight: 550; color: var(--text); }
.zodiac-profile__titleline p { margin: 2px 0 0; color: var(--muted); letter-spacing: .04em; }
.zodiac-profile__big-symbol { width: 78px; height: 78px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--line); color: var(--gold); font-size: 2.2rem; }
.zodiac-profile__lead { max-width: 640px; margin-top: 16px; color: var(--muted); font-size: 1rem; }

.zodiac-profile__art { position: relative; width: min(440px, 40vw); aspect-ratio: 1; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.zodiac-profile__art--cropped > img { height: 118%; object-position: center top; transform: translateY(-1.2%); }
.zodiac-profile__art > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.zodiac-profile__art figcaption {
    position: absolute; left: 20px; right: 20px; bottom: 20px;
    display: flex; align-items: center; gap: 11px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius-sm);
    background: rgba(10,7,20,.62);
}
.zodiac-profile__art figcaption > span { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--on-dark-gold); font-size: 1.25rem; background: rgba(255,255,255,.08); }
.zodiac-profile__art figcaption div { display: grid; }
.zodiac-profile__art figcaption small { color: var(--on-dark-muted); font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; }
.zodiac-profile__art figcaption strong { margin-top: 2px; font-family: var(--font-display); font-size: 1.1rem; font-weight: 550; color: var(--on-dark-text); }

.sign-dashboard { padding-top: 56px; }
.sign-dashboard__heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; margin-bottom: 26px; }
.sign-dashboard__heading h2 { margin: 0; font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.04; font-weight: 550; color: var(--text); }
.sign-dashboard__heading > p { max-width: 480px; justify-self: end; margin: 0; color: var(--muted); }

.sign-scope-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 30px; }
.sign-scope-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color var(--dur) ease, transform var(--dur) ease;
}
.sign-scope-card:hover, .sign-scope-card:focus-visible { transform: translateY(-2px); border-color: var(--line-strong); outline: none; }
.sign-scope-card.is-active { border-color: var(--gold); background: var(--surface-2); }
.sign-scope-card__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius-sm); color: var(--gold); font-size: 1.2rem; background: rgba(169,119,42,.09); }
.sign-scope-card__copy { min-width: 0; display: grid; gap: 4px; }
.sign-scope-card__copy strong { font-size: .88rem; color: var(--text); }
.sign-scope-card__copy small { display: -webkit-box; overflow: hidden; color: var(--muted-2); font-size: .66rem; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.sign-scope-card__arrow { color: var(--muted-2); font-size: .82rem; }
.sign-scope-card.is-active .sign-scope-card__arrow { color: var(--gold); }

.forecast-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); gap: 18px; align-items: start; }
.forecast-layout--sign { margin-top: 0; }
.forecast-main { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.forecast-main__topline { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted-2); font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.forecast-main__scope { display: inline-flex; margin: 2px 0 8px; color: var(--gold); font-size: .65rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.forecast-main h2 { margin: 24px 0 14px; font-family: var(--font-display); font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1.04; font-weight: 550; color: var(--text); }
.forecast-main__lede { max-width: 640px; margin: -2px 0 20px; color: var(--muted); }
.forecast-copy { color: var(--text); font-size: 1rem; }
.forecast-quote { display: grid; grid-template-columns: auto 1fr; gap: 14px; margin-top: 26px; padding: 18px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.forecast-quote span { color: var(--gold); }
.forecast-quote p { margin: 0; color: var(--text); }

.forecast-aside { display: grid; gap: 10px; }
.forecast-aside--sign { align-content: start; }
.sign-summary-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sign-summary-card__symbol { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-size: 1.35rem; }
.sign-summary-card small { display: block; color: var(--muted-2); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sign-summary-card strong { display: block; margin-top: 5px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 550; color: var(--text); }
.sign-summary-card p { margin: 8px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }

.forecast-premium { padding: 20px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.forecast-premium small { display: block; color: var(--gold); font-size: .6rem; font-weight: 750; letter-spacing: .1em; }
.forecast-premium strong { display: block; margin: 8px 0 14px; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.1; font-weight: 550; color: var(--text); }
.forecast-premium span { color: var(--violet-soft); font-size: .78rem; font-weight: 700; }

.sign-back-link { display: inline-flex; margin-top: 4px; color: var(--muted); font-size: .78rem; font-weight: 650; }
.sign-back-link:hover { color: var(--text); }

@media (max-width: 980px) {
    .zodiac-profile__hero-grid { grid-template-columns: 1fr; }
    .zodiac-profile__art { width: min(420px, 80vw); }
    .sign-scope-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .forecast-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .subhero h1, .zodiac-profile h1, .personal-product h1, .compatibility-page h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
    .zodiac-profile__hero { padding: 108px 0 44px; }
    .zodiac-profile__titleline { gap: 14px; }
    .zodiac-profile__big-symbol { width: 62px; height: 62px; font-size: 1.8rem; }
    .zodiac-profile__art { width: min(340px, 88vw); }
    .sign-dashboard { padding-top: 44px; }
    .sign-dashboard__heading { grid-template-columns: 1fr; gap: 12px; }
    .sign-dashboard__heading > p { justify-self: start; }
    .sign-scope-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .sign-scope-card { grid-template-columns: 32px minmax(0,1fr); padding: 12px; }
    .sign-scope-card__arrow { display: none; }
    .forecast-main { padding: 22px 18px; }
    .forecast-main__topline { flex-direction: column; gap: 4px; }
}
@media (max-width: 460px) { .sign-scope-grid { grid-template-columns: 1fr; } }

/* ---------- Personal (premium) product page ---------------------------------------- */
.personal-product__hero { position: relative; padding: 122px 0 68px; }
.personal-product__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.personal-product__copy h1 { max-width: 700px; }
.personal-product__badges { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 24px 0 28px; color: var(--muted); font-size: .8rem; }
.birth-chart-demo { position: relative; width: min(380px, 38vw); aspect-ratio: 1; margin-inline: auto; }
.birth-chart-demo__ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.birth-chart-demo__ring--1 { inset: 0; }
.birth-chart-demo__ring--2 { inset: 15%; }
.birth-chart-demo__ring--3 { inset: 31%; }
.birth-chart-demo svg { position: absolute; inset: 18%; width: 64%; height: 64%; fill: none; stroke: var(--violet-soft); stroke-width: 1.3; opacity: .7; }
.birth-chart-demo__core { position: absolute; inset: 40%; display: grid; place-items: center; align-content: center; border-radius: 50%; color: var(--gold); font-size: 1.7rem; background: var(--surface); border: 1px solid var(--line); }
.birth-chart-demo__core small { margin-top: 4px; color: var(--muted); font-size: .5rem; text-transform: uppercase; letter-spacing: .1em; }

.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.process-grid article { min-height: 190px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.process-grid article > span { display: block; color: var(--violet-soft); font-size: .66rem; font-weight: 800; letter-spacing: .12em; }
.process-grid strong { display: block; margin: 34px 0 10px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 550; color: var(--text); }
.process-grid p { margin: 0; color: var(--muted); font-size: .85rem; }

.product-status { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; max-width: 780px; margin: 22px auto 0; padding: 17px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.product-status > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--gold); background: rgba(169,119,42,.09); }
.product-status strong { display: block; color: var(--text); }
.product-status p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; }

@media (max-width: 980px) {
    .personal-product__grid { grid-template-columns: 1fr; }
    .birth-chart-demo { width: min(320px, 70vw); }
    .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .personal-product__hero { padding: 108px 0 52px; }
    .process-grid { grid-template-columns: 1fr; }
}

/* ---------- Compatibility page ------------------------------------------------------- */
.compatibility-picker { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.compatibility-picker__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.compatibility-picker__head span { color: var(--violet-soft); font-size: .66rem; font-weight: 800; letter-spacing: .1em; }
.compatibility-picker__head strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 550; color: var(--text); }
.compact-zodiac-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.compact-zodiac-row a { min-width: 0; display: grid; place-items: center; gap: 4px; padding: 12px 4px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); }
.compact-zodiac-row a:hover { border-color: var(--line-strong); }
.compact-zodiac-row span { color: var(--gold); font-size: 1.2rem; }
.compact-zodiac-row small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .54rem; }
.compatibility-picker__divider { display: grid; place-items: center; height: 60px; }
.compatibility-picker__divider span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--violet-soft); }
.compatibility-note { max-width: 720px; margin: 18px 0 0; color: var(--muted); font-size: .87rem; }

@media (max-width: 760px) { .compact-zodiac-row { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 460px) {
    .compatibility-picker { padding: 20px 16px; }
    .compact-zodiac-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Motion & accessibility --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.zodiac-profile__art--icon{display:grid;place-items:center;min-height:360px;background:radial-gradient(circle at 50% 42%,#fff 0%,#fffaf3 58%,#f5e8d6 100%);border:1px solid rgba(199,139,43,.24);}
.zodiac-profile__premium-icon.hs-zodiac-icon{width:210px;height:210px;font-size:7rem;box-shadow:inset 0 0 0 12px rgba(255,255,255,.78),0 20px 55px rgba(160,109,32,.10);}
.zodiac-profile__art--icon figcaption{z-index:3;}
@media(max-width:760px){.zodiac-profile__art--icon{min-height:300px}.zodiac-profile__premium-icon.hs-zodiac-icon{width:170px;height:170px;font-size:5.6rem}}

/* ========================================================================== */
/* 1.2.0 — persistent horoscope navigation + mobile-first hardening            */
/* ========================================================================== */
html, body { max-width:100%; overflow-x:clip; }
img, picture, video, canvas, svg, iframe { max-width:100%; }
.entry-content, .forecast-copy, .topic-hero__copy, .sign-dashboard__heading, .horoscope-sign-card__body { overflow-wrap:anywhere; }
.entry-content table { max-width:100%; }

.horoscope-hub-layout { display:grid; grid-template-columns:minmax(190px,220px) minmax(0,1fr); gap:24px; align-items:start; }
.horoscope-hub-layout__nav { min-width:0; }
.horoscope-hub-layout__main { min-width:0; }

.hs-horoscope-switcher--desktop {
    position:sticky; top:92px; z-index:12; overflow:hidden;
    border:1px solid var(--line); border-radius:var(--radius);
    background:rgba(255,255,255,.96); box-shadow:0 12px 34px rgba(54,44,62,.07);
    backdrop-filter:blur(14px);
}
body.admin-bar .hs-horoscope-switcher--desktop { top:124px; }
.hs-horoscope-switcher__head { padding:16px 16px 12px; border-bottom:1px solid var(--line); }
.hs-horoscope-switcher__eyebrow { display:block; margin-bottom:4px; color:var(--gold); font-size:.56rem; font-weight:800; letter-spacing:.12em; }
.hs-horoscope-switcher__head strong { display:block; font-family:var(--font-display); font-size:1.05rem; line-height:1.15; color:var(--text); }
.hs-horoscope-switcher__items { display:grid; padding:7px; }
.hs-horoscope-switcher__item { display:grid; grid-template-columns:28px minmax(0,1fr); gap:8px; align-items:center; min-height:42px; padding:7px 9px; border-radius:10px; color:var(--muted); }
.hs-horoscope-switcher__item > span { display:grid; place-items:center; width:28px; height:28px; border-radius:9px; color:var(--gold); background:rgba(169,119,42,.08); }
.hs-horoscope-switcher__item strong { min-width:0; font-size:.75rem; line-height:1.2; }
.hs-horoscope-switcher__item:hover, .hs-horoscope-switcher__item:focus-visible { color:var(--text); background:var(--surface-2); outline:none; }
.hs-horoscope-switcher__item.is-active { color:var(--text); background:linear-gradient(135deg,#fff7e8,#f9f3ff); box-shadow:inset 0 0 0 1px rgba(169,119,42,.18); }
.hs-horoscope-switcher__item.is-active > span { color:#fff; background:var(--gold); }

.hs-sign-switcher { margin:4px 7px 8px; border-top:1px solid var(--line); }
.hs-sign-switcher summary { display:flex; align-items:center; gap:8px; min-height:44px; padding:9px 8px; color:var(--text); font-size:.74rem; font-weight:700; cursor:pointer; list-style:none; }
.hs-sign-switcher summary::-webkit-details-marker { display:none; }
.hs-sign-switcher summary::after { content:'⌄'; margin-inline-start:auto; color:var(--muted-2); }
.hs-sign-switcher[open] summary::after { transform:rotate(180deg); }
.hs-sign-switcher__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; padding:0 4px 7px; }
.hs-sign-switcher__grid a { display:grid; justify-items:center; gap:2px; min-width:0; padding:7px 2px; border-radius:9px; color:var(--muted); text-align:center; }
.hs-sign-switcher__grid a:hover, .hs-sign-switcher__grid a.is-active { background:var(--surface-2); color:var(--gold); }
.hs-sign-switcher__grid span { font-size:1rem; }
.hs-sign-switcher__grid small { width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.52rem; }

.hs-horoscope-mobilebar { display:none; }

/* The reading sidebar stays useful instead of becoming a dead column. */
.forecast-aside--sign { min-width:0; }
.forecast-aside--sign .hs-horoscope-switcher--desktop { margin-bottom:2px; }

@media (max-width:980px) {
    .horoscope-hub-layout { grid-template-columns:1fr; gap:18px; }
    .horoscope-hub-layout__nav, .hs-horoscope-switcher--desktop { display:none; }
    .hs-horoscope-mobilebar {
        position:sticky; top:64px; z-index:34; display:grid; gap:7px;
        width:100%; margin:0 0 18px; padding:7px;
        border:1px solid rgba(129,105,77,.14); border-radius:14px;
        background:rgba(255,253,249,.96); box-shadow:0 10px 24px rgba(61,48,64,.09);
        backdrop-filter:blur(14px);
    }
    body.admin-bar .hs-horoscope-mobilebar { top:96px; }
    .hs-horoscope-mobilebar__tabs { display:flex; gap:5px; min-width:0; overflow-x:auto; overscroll-behavior-inline:contain; scrollbar-width:none; scroll-snap-type:x proximity; }
    .hs-horoscope-mobilebar__tabs::-webkit-scrollbar { display:none; }
    .hs-horoscope-mobilebar__tab { flex:0 0 auto; display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:0 11px; border-radius:999px; color:var(--muted); font-size:.72rem; font-weight:750; white-space:nowrap; scroll-snap-align:center; }
    .hs-horoscope-mobilebar__tab > span { color:var(--gold); }
    .hs-horoscope-mobilebar__tab.is-active { color:#fff; background:linear-gradient(135deg,#d6a34e,#b7781c); box-shadow:0 6px 14px rgba(183,120,28,.18); }
    .hs-horoscope-mobilebar__tab.is-active > span { color:#fff; }
    .hs-mobile-sign-select { position:relative; display:block; }
    .hs-mobile-sign-select select { width:100%; min-height:40px; padding:0 34px 0 12px; border:1px solid var(--line); border-radius:10px; color:var(--text); background:#fff; font-size:.76rem; font-weight:700; appearance:none; }
    .hs-mobile-sign-select::after { content:'⌄'; position:absolute; inset-inline-end:12px; top:9px; pointer-events:none; color:var(--muted); }
    .forecast-layout { grid-template-columns:1fr; }
}

@media (max-width:782px) {
    body.admin-bar .hs-horoscope-mobilebar { top:110px; }
}

@media (max-width:620px) {
    :root { --shell:min(1180px,calc(100% - 24px)); }
    .section { padding-block:44px; }
    .section--compact { padding-block:34px; }
    .topic-hero { min-height:400px; }
    .topic-hero__inner { min-height:400px; padding-top:86px; padding-bottom:30px; }
    .topic-hero__copy h1 { font-size:clamp(2rem,10.5vw,2.8rem); overflow-wrap:anywhere; }
    .topic-hero__copy p { margin-top:12px; font-size:.92rem; line-height:1.55; }
    .horoscope-sign-card { min-width:0; }
    .horoscope-sign-card__body strong { font-size:1.05rem; }
    .forecast-main { padding:20px 16px; }
    .forecast-main h2 { font-size:clamp(1.75rem,8vw,2.3rem); }
    .forecast-copy { font-size:.96rem; line-height:1.66; }
    .sign-summary-card, .forecast-premium { padding:18px; }
    .compatibility-picker { padding:18px 14px; }
    .entry-content table { display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; }
    .entry-content pre, .entry-content code { max-width:100%; overflow-x:auto; }
}

@media (max-width:390px) {
    :root { --shell:min(1180px,calc(100% - 20px)); }
    .topic-hero { min-height:370px; }
    .topic-hero__inner { min-height:370px; padding-top:78px; padding-bottom:26px; }
    .zodiac-profile__hero { padding-top:92px; }
    .zodiac-profile__titleline { align-items:flex-start; }
    .zodiac-profile__big-symbol { width:54px; height:54px; font-size:1.55rem; }
    .subhero h1, .zodiac-profile h1, .personal-product h1, .compatibility-page h1 { font-size:clamp(2rem,10.5vw,2.55rem); }
    .horoscope-sign-card { grid-template-columns:20px 46px minmax(0,1fr) 14px; gap:9px; padding:11px 10px; }
    .horoscope-sign-card__symbol { width:46px; height:46px; font-size:1.45rem; }
    .horoscope-sign-card__body small { white-space:normal; }
    .hs-horoscope-mobilebar { margin-inline:-2px; }
}

[dir="rtl"] .hs-horoscope-switcher__item { grid-template-columns:minmax(0,1fr) 28px; }
[dir="rtl"] .hs-horoscope-switcher__item > span { grid-column:2; }
[dir="rtl"] .hs-horoscope-switcher__item > strong { grid-column:1; grid-row:1; text-align:right; }
[dir="rtl"] .hs-horoscope-mobilebar__tabs { direction:rtl; }
