/* AstroNadia premium: purple + gold. Refined 2026-11-28 (see README, Refinement notes). */
*,*::before,*::after{box-sizing:border-box}
:root{
  --bg:#fdfaff; --bg2:#f3efff; --card:#ffffff; --card2:#faf7ff;
  --ink:#241b3a; --ink2:#5d5470; --line:#e6ddf7;
  --violet:#6d28d9; --violet2:#8b5cf6; --pink:#db2777; --teal:#0d9488;
  --gold:#b45309; --gold2:#d4a017; --goldbg:#fef3c7; --rose:#e11d48;
  --chip:#f1eafd; --shadow:0 10px 30px rgba(76,29,149,.12);
  --navy:#141033; --navy2:#1e1650; --lav:#e9d5ff; --sun:#fbbf24;
}
html{scroll-behavior:smooth;scroll-padding-top:84px;-webkit-text-size-adjust:100%}
body{margin:0;font-family:Poppins,system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);line-height:1.65}
[lang="ur"] body, body.ur{font-family:"Noto Nastaliq Urdu",Poppins,serif;line-height:2}
h1,h2,h3{font-family:"Playfair Display",Georgia,serif;line-height:1.25;margin:.4em 0;text-wrap:balance}
[lang="ur"] h1,[lang="ur"] h2,[lang="ur"] h3{font-family:"Noto Nastaliq Urdu",serif;line-height:1.9}
h1{font-size:clamp(1.8rem,3.4vw,2.5rem)}
h2{font-size:clamp(1.45rem,2.5vw,1.95rem)}
h3{font-size:1.15rem}
a{color:var(--violet)}
img,video{max-width:100%;height:auto;display:block}
/* Safety: a [hidden] element must never be shown by a display rule. */
[hidden]{display:none !important}
button{font:inherit;cursor:pointer}
:focus-visible{outline:3px solid var(--gold2);outline-offset:2px;border-radius:6px}
.wrap{max-width:1200px;margin:0 auto;padding:0 clamp(1rem,3vw,1.5rem)}
.hl{color:var(--violet)} .accent{color:var(--gold)}
.fine{font-size:.85rem;color:var(--ink2)}
.disc{font-size:.85rem;color:var(--ink2);border-top:1px solid var(--line);padding-top:.8rem}

/* ---------- header / nav: SINGLE ROW + dropdowns (Phase 3) ----------
 * One header row (brand + nav + switch) at every desktop width. The
 * 2026-11-15 two-row fix is replaced by dropdown menus: 7 top-level
 * items fit in a single row, and the sub-pages live in the dropdowns.
 * Desktop dropdowns open on hover AND on focus-within (keyboard), and
 * via the caret .sub-toggle button for touch/keyboard users
 * (js/main.js initDropdowns toggles .open). Mobile: the hamburger panel
 * lists every top-level item WITH its sub-items expanded (see the
 * 1099px block below), 44px tap targets, closes after a selection. */
header.site{background:linear-gradient(135deg,var(--navy),var(--navy2) 60%,#3b1d7a);color:#fff;position:sticky;top:0;z-index:50;box-shadow:0 4px 20px rgba(20,16,51,.35)}
.topbar{display:flex;align-items:center;gap:1rem;padding:.7rem 1rem;max-width:1320px;margin:0 auto}
.brand{color:#fff;text-decoration:none;font-family:"Playfair Display",serif;font-size:1.5rem;font-weight:800;letter-spacing:.5px;flex:none}
.brand .star{color:var(--gold2)}
.brand small{display:block;font-family:Poppins,sans-serif;font-size:.65rem;letter-spacing:3px;color:#e9d5ff;font-weight:500}
nav#mainNav{margin-inline-start:auto}
.nav-list{display:flex;gap:.2rem;align-items:center;list-style:none;margin:0;padding:0}
.nav-item{position:relative;display:flex;align-items:center}
.nav-item>a{color:#e9d5ff;text-decoration:none;padding:.45rem .65rem;border-radius:999px;white-space:nowrap;font-size:.92rem}
.nav-item>a:hover{background:rgba(255,255,255,.14);color:#fff}
.nav-item>a.act{background:var(--gold2);color:#241b3a;font-weight:700}
/* Caret button that opens a submenu on click (touch/keyboard). It is a
 * real <button>, never a link, so clicking it never navigates. */
.sub-toggle{background:transparent;border:0;color:#e9d5ff;padding:.3rem .35rem;border-radius:8px;font-size:.85rem;line-height:1;min-width:30px;min-height:30px}
.sub-toggle:hover{background:rgba(255,255,255,.14);color:#fff}
.sub-toggle[aria-expanded="true"]{color:var(--gold2)}
.sub-toggle[aria-expanded="true"] span{display:inline-block;transform:rotate(180deg)}
/* The dropdown panel itself. */
.sub{position:absolute;top:calc(100% + 6px);inset-inline-start:0;min-width:230px;max-width:320px;list-style:none;margin:0;padding:.45rem;background:linear-gradient(180deg,var(--navy2),var(--navy));border:1px solid rgba(255,255,255,.16);border-radius:14px;box-shadow:0 18px 40px rgba(20,16,51,.5);display:none;z-index:60}
.sub-wide{min-width:470px;columns:2;column-gap:.5rem}
.sub-wide .sub-head{column-span:all}
.has-sub:hover>.sub,.has-sub:focus-within>.sub,.has-sub.open>.sub{display:block}
.sub li{break-inside:avoid}
.sub a{display:block;color:#e9d5ff;text-decoration:none;padding:.5rem .8rem;border-radius:9px;font-size:.92rem;white-space:normal;line-height:1.4}
.sub a:hover{background:rgba(255,255,255,.14);color:#fff}
.sub a[aria-current="page"]{background:var(--gold2);color:#241b3a;font-weight:700}
.sub-head{padding:.55rem .8rem .2rem;color:var(--gold2);font-size:.8rem;font-weight:700;letter-spacing:1px;text-transform:uppercase}
/* The language switch lives inside the nav (see header() in generate.py)
 * so it appears in the mobile hamburger panel. These rules keep its gold
 * bordered look against the nav link rules above. */
nav#mainNav a.lang-switch{color:#ffe9a8;border:1px solid var(--gold2);font-size:.85rem}
nav#mainNav a.lang-switch:hover{background:var(--gold2);color:#241b3a}
/* Two switches exist in the markup (one inside the nav, one outside it):
 * on DESKTOP only the outside one shows. On mobile BOTH show: the
 * outside one as a compact pill next to the hamburger (visible without
 * opening the menu), the inside one in the hamburger panel. The
 * .ls-label part ("· Switch to Urdu") is hidden on phones by CSS,
 * leaving just the language name on the compact button; the full label
 * stays on desktop, and the aria-label always carries it. */
@media (min-width:1100px){
  nav#mainNav a.lang-switch{display:none}
}
/* Tight desktop widths (1100–1250px): the single-row header must still
 * fit brand + 7 top-level items + switch, so shrink type and gaps. */
@media (min-width:1100px) and (max-width:1250px){
  .brand{font-size:1.25rem}
  .brand small{font-size:.55rem;letter-spacing:2px}
  .nav-item>a{padding:.45rem .45rem;font-size:.85rem}
  .sub-toggle{min-width:24px;padding:.3rem .15rem}
  .topbar{gap:.5rem;padding:.7rem .6rem}
  .lang-switch{padding:.35rem .6rem;font-size:.8rem}
}
/* The full "Switch to Urdu" label only fits beside the seven nav items from
 * 1400px up. Below that the pill shows just the language name (the full
 * label stays in its aria-label). Measured: at 1152 to 1350px the long pill
 * pushed the header 8 to 136px past the viewport edge. */
@media (min-width:1100px) and (max-width:1399px){
  .topbar > .lang-switch .ls-label{display:none}
}
.ls-name{font-family:Poppins,"Segoe UI",Tahoma,"Noto Naskh Arabic",Arial,sans-serif}
.lang-switch{margin-inline-start:.5rem;background:transparent;border:1px solid var(--gold2);color:#ffe9a8;border-radius:999px;padding:.4rem .8rem;text-decoration:none;font-size:.85rem;white-space:nowrap}
.lang-switch:hover{background:var(--gold2);color:#241b3a}
/* Hamburger button: hidden on desktop, and hidden entirely without JS
 * (html.js is only added by the inline <script> in <head>) — without JS
 * the nav links stay visible as a plain vertical list on mobile. */
.nav-toggle{display:none;background:transparent;border:1px solid var(--gold2);color:#ffe9a8;border-radius:10px;min-width:44px;min-height:44px;padding:.4rem .7rem;font-size:1.35rem;line-height:1}
.nav-toggle[aria-expanded="true"]{background:var(--gold2);color:#241b3a}
/* Skip link: visually hidden with the clip pattern, NOT the old
 * off-screen offset (which expands documentElement.scrollWidth to
 * ~10389px on RTL (Urdu) pages, i.e. a phantom horizontal overflow). */
.skip{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.skip:focus{position:static;width:auto;height:auto;overflow:visible;clip:auto;clip-path:none;white-space:normal;background:#fff;color:var(--violet);padding:.5rem}

/* ---------- hero ---------- */
.hero{position:relative;overflow:hidden;background:radial-gradient(1000px 500px at 70% -10%,#4c1d95,#141033 60%);color:#fff;padding:3rem 0 3.5rem}
#stars{position:absolute;inset:0;overflow:hidden;pointer-events:none}
#stars .star{position:absolute;width:3px;height:3px;border-radius:50%;background:#fff;opacity:.7;animation:twinkle 3s infinite ease-in-out}
@keyframes twinkle{0%,100%{opacity:.15;transform:scale(.7)}50%{opacity:1;transform:scale(1.25)}}
/* ---------- hero: copy + ONE portrait (Phase 3, audit C1/C5) ----------
 * Two columns — headline/intro/CTAs/DOB finder on one side, a SINGLE
 * still portrait (cutout) with the rotating zodiac wheel behind it on
 * the other. The banner GIF above the hero already shows her portrait,
 * so the hero shows it exactly once. The h1 uses text-wrap:balance so
 * "simple words" never splits awkwardly across lines. */
.hero-2col{position:relative;display:grid;grid-template-columns:1.05fr .95fr;gap:2.5rem;align-items:center;max-width:1200px;margin:0 auto;padding:0 clamp(1rem,3vw,1.5rem)}
.hero-side{position:relative;text-align:center}
.hero-centre{text-align:center}
.hero-centre h1{font-size:clamp(1.9rem,3.2vw,2.6rem);text-wrap:balance}
.hero-centre .dob-block h2{color:#fff}
.hero-centre .dob-block>p{color:#e9d5ff}
.hero-centre form.tool{margin:0 auto;text-align:start}
.hero-centre .dob-block .reading-card{text-align:start}
.hero h1 .hl{color:#fbbf24}
.hero p.lead{color:#e9d5ff;font-size:1.08rem}
.zodiac-wheel{position:absolute;inset:8% 4%;margin:auto;width:84%;aspect-ratio:1;border-radius:50%;opacity:.55;animation:spin 90s linear infinite;pointer-events:none}
@keyframes spin{to{transform:rotate(360deg)}}
.hero-figure{position:relative;z-index:2;animation:breathe 5s ease-in-out infinite;will-change:transform}
@keyframes breathe{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-8px) scale(1.015)}}
.hero-figure img,.hero-figure video{width:min(420px,88%);margin:0 auto;border-radius:24px}
.hero-figure .aura{position:absolute;inset:-14px;border-radius:30px;background:radial-gradient(circle,rgba(212,160,23,.45),transparent 65%);filter:blur(6px);z-index:-1}
.cutout{filter:drop-shadow(0 18px 30px rgba(0,0,0,.45)) drop-shadow(0 0 22px rgba(212,160,23,.35))}
/* Caption: dark by default so it reads on light sections (audit C9 —
 * pale lavender on white was unreadable). Only inside the dark hero
 * does the caption stay pale lavender. */
.caption{font-size:.85rem;color:var(--ink2);margin-top:.6rem}
.hero .caption{color:#e9d5ff}
.hero-cta{display:flex;gap:.7rem;flex-wrap:wrap;margin:1.2rem 0 1.8rem;justify-content:center}
.hero-figure picture{display:block}

/* ---------- buttons ---------- */
.btn{position:relative;overflow:hidden;display:inline-block;border:none;border-radius:999px;padding:.7rem 1.4rem;font-weight:700;text-decoration:none;transition:transform .2s,box-shadow .2s}
.btn-gold{background:linear-gradient(135deg,#fbbf24,#d4a017);color:#241b3a;box-shadow:0 6px 18px rgba(212,160,23,.45)}
.btn-gold:hover{box-shadow:0 10px 26px rgba(212,160,23,.6)}
.btn-ghost{background:#fff;color:var(--violet);border:2px solid var(--violet)}
.btn-ghost:hover{background:var(--chip)}
/* Light button for dark backgrounds (hero's second CTA). */
.btn-light{background:#fff;color:var(--violet);box-shadow:0 6px 18px rgba(0,0,0,.35)}
.btn-light:hover{background:var(--goldbg)}
.btn::after{content:"";position:absolute;top:0;left:-80%;width:50%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);transform:skewX(-20deg)}
@keyframes shimmer{0%,60%{left:-80%}100%{left:130%}}
@keyframes sweep{from{left:-80%}to{left:130%}}
/* The shine sweeps once on hover/focus everywhere, and loops only on the hero call to action. */
.btn:hover::after,.btn:focus-visible::after{animation:sweep 1.1s ease-out 1}
.hero .btn-gold::after{animation:shimmer 3.5s infinite}
.card .btn,.sign-card .btn{padding:.55rem 1.1rem;font-size:.92rem}
.ripple{position:absolute;width:14px;height:14px;border-radius:50%;background:rgba(255,255,255,.6);transform:translate(-50%,-50%) scale(1);animation:rip .65s ease-out forwards;pointer-events:none}
@keyframes rip{to{transform:translate(-50%,-50%) scale(14);opacity:0}}

/* ---------- sections / cards ---------- */
section{padding:2.2rem 0}
.section-head{text-align:center;max-width:720px;margin:0 auto 1.6rem}
/* Breadcrumbs (Phase 6): Home / Signs / Virgo. */
.crumbs{max-width:1200px;margin:0 auto;padding:.9rem clamp(1rem,3vw,1.5rem) 0}
.crumbs ol{display:flex;flex-wrap:wrap;gap:.35rem;list-style:none;margin:0;padding:0;font-size:.88rem;color:var(--ink2)}
.crumbs li+li::before{content:"/";margin-inline-end:.35rem;color:var(--ink2)}
.crumbs a{color:var(--violet)}
.crumbs [aria-current="page"]{color:var(--ink);font-weight:600}
/* Links to related Phase 4 pages under a tool's heading. */
.sub-links{text-align:center;color:var(--ink2);margin:0 0 1rem}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.1rem}
/* Explore / tool-card grids (audit C8): balanced columns — 3 across on
 * desktop (6 cards = 3+3), 2 on tablets, 1 on phones. The 4-card
 * Astrology Tools grid is 4 across on wide screens, 2 below that; the
 * 2-card Compatibility grid is 2 across, centred. */
.tools-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem}
.tools-grid-4{grid-template-columns:repeat(4,1fr)}
.tools-grid-2{grid-template-columns:repeat(2,1fr);max-width:780px;margin:0 auto}
@media (max-width:1100px){.tools-grid-4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:900px){.tools-grid{grid-template-columns:repeat(2,1fr)}}
/* One consistent icon style for every tool card (audit C7): a plain
 * text glyph in the same gold disc — never mixed emoji. */
.tool-icon{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background:var(--goldbg);color:var(--gold);font-size:1.7rem;font-weight:700;margin-bottom:.4rem}
/* Zodiac wheel section (audit C2): two balanced columns so the section
 * fills the full width instead of leaving one half empty. */
.wheel-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:center;max-width:1200px;margin:0 auto}
.wheel-media{text-align:center}
.wheel-copy .section-head{text-align:start;margin:0 0 1rem}
.wheel-copy .caption{margin-bottom:1rem}
.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:1.2rem;box-shadow:var(--shadow)}
.card h3{margin-top:.2rem}
/* Cards in the Explore, Tools and Latest Content grids: the button always
 * sits on the card's bottom edge, so a row of cards lines up even when the
 * text above is a different length. */
.tools-grid .card{display:flex;flex-direction:column;align-items:flex-start}
.tools-grid .card p{margin:.3rem 0 1rem}
.tools-grid .card .btn{margin-top:auto}
/* Latest Content: a short teaser (4 lines), not the whole first paragraph. */
.card-article p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden}
/* FAQ questions: a full-width, 44px tall tap row. */
details.card summary{cursor:pointer;padding:.6rem 0;min-height:44px}
/* Hidden state is scoped to .js: the inline <script> in <head> adds the "js"
 * class to <html>. With JS disabled (or scripts blocked) there is no .js
 * class, so .reveal content is fully visible — the page can never be blank
 * because of this animation. .reveal.in is the shown state. */
.js .reveal{opacity:0;transform:translateY(22px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}
@media (hover:hover){.card.reveal.in:hover{transform:translateY(-3px);box-shadow:0 16px 36px rgba(76,29,149,.18)}}
/* Sign cards (audit C3): each card is a flex column with its own card
 * background, border and padding, so the Full reading button sits
 * INSIDE the card in normal flow below the flip faces. The flip faces
 * live in a FIXED 310px box with room for the back face (element,
 * identity, ruler — "Saturn" no longer clips under the button), and
 * the button has its own stacking context, so no card can ever paint
 * over another card's button. */
.sign-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.9rem}
@media (min-width:640px){.sign-grid{grid-template-columns:repeat(4,1fr)}}
@media (min-width:1100px){.sign-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:1rem}}
.sign-card{perspective:1200px;display:flex;flex-direction:column}
.sign-card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:.8rem;box-shadow:var(--shadow)}
.sign-card .card-inner{position:relative;width:100%;height:310px;flex:none;transform-style:preserve-3d;transition:transform .6s;transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg))}
.sign-card:hover .card-inner,.sign-card:focus-within .card-inner{transform:rotateX(var(--rx,0deg)) rotateY(calc(var(--ry,0deg) + 180deg))}
.card-front,.card-back{position:absolute;inset:0;backface-visibility:hidden;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:.8rem;text-align:center;box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.25rem;overflow:hidden}
.card-back{transform:rotateY(180deg);background:linear-gradient(160deg,#f3efff,#fef3c7);font-size:.86rem;line-height:1.45}
.card-front .glyph{font-size:2.4rem}
.sign-card .btn{margin-top:.6rem;position:relative;z-index:2;white-space:nowrap;text-align:center;padding-inline:.5rem}
.flip-hint{font-size:.78rem;color:var(--ink2)}

/* ---------- reading ---------- */
.reading-card,.reading-block{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:1.1rem;margin-bottom:1rem;box-shadow:var(--shadow)}
.reading-block h3{color:var(--violet)}
.reading-block.advice{background:linear-gradient(160deg,#fef3c7,#fff)}
.mood{font-size:1.05rem}
.swatch{display:inline-block;width:1em;height:1em;border-radius:50%;vertical-align:-2px;border:1px solid rgba(0,0,0,.2)}
.lucky-list{list-style:none;padding:0;display:flex;gap:1.2rem;flex-wrap:wrap}
.lucky-list li{background:var(--card2);border:1px solid var(--line);border-radius:12px;padding:.5rem .9rem}
.lucky-num{font-size:1.3rem;font-weight:800;color:var(--violet)}
.banner{border-radius:12px;padding:.8rem 1rem;margin-bottom:1rem;font-weight:600}
.banner.eclipse{background:#fef3c7;border:2px solid var(--gold2)}
.banner.newmoon{background:#e0e7ff;border:2px solid #6366f1}
.banner.fullmoon{background:#fce7f3;border:2px solid #ec4899}
.plan-box{background:var(--card2);border:1px solid var(--line);border-radius:14px;padding:.9rem 1.1rem;margin:1rem 0}
.astro-panel{background:var(--navy);color:#e9d5ff;border-radius:16px;padding:1.1rem;margin-top:1.2rem}
.astro-panel h3{color:#fbbf24}
.astro-panel ul{list-style:none;padding:0}
.astro-panel li{padding:.15rem 0}
.astro-panel .fine{color:#c4b5fd}
.day-tabs{display:flex;gap:.6rem;flex-wrap:wrap;margin-bottom:1rem}
.reading-date{color:var(--ink2)}
.next-link{margin-top:1rem}

/* ---------- forms ---------- */
form.tool{color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:18px;padding:1.3rem;box-shadow:var(--shadow);max-width:640px;margin:0 auto}
label{display:block;font-weight:600;margin:.8rem 0 .25rem}
input,select,textarea{width:100%;padding:.65rem .8rem;border:2px solid var(--line);border-radius:12px;font:inherit;background:#fff}
input:focus,select:focus{border-color:var(--violet);outline:none;box-shadow:0 0 0 3px rgba(109,40,217,.2)}
input:disabled{background:#f1f5f9}
.checkline{display:flex;gap:.5rem;align-items:center;margin-top:.7rem}
.checkline input{width:auto}
.err{color:#b91c1c;font-weight:600}
.big-num{font-size:1.8rem;font-weight:800;color:var(--violet)}
.big-three{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.8rem;text-align:center;margin:1rem 0}
.big-three div{background:var(--card2);border:1px solid var(--line);border-radius:14px;padding:.8rem}
.big-three span{font-size:1.6rem;display:block}
.chart-list{list-style:none;padding:0}
.chart-list li{padding:.35rem 0;border-bottom:1px dashed var(--line)}
.meter{background:#ede9fe;border-radius:999px;height:14px;overflow:hidden;margin:.2rem 0 .8rem}
.meter span{display:block;height:100%;background:linear-gradient(90deg,var(--violet2),var(--gold2));border-radius:999px;transition:width 1s ease}
/* ---------- profile / compatibility ---------- */
.profile{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}
.kv{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:.9rem 1rem}
.kv b{color:var(--violet)}
table.compat{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden}
table.compat th,table.compat td{padding:.55rem .7rem;border-bottom:1px solid var(--line);text-align:start}
table.compat tr.best{background:#fef3c7}
.score{font-weight:800;color:var(--violet)}

/* ---------- footer (audit C2): four balanced columns across the full
 * content width, plus a bottom bar. The disclaimer lives here only. */
footer.site{background:var(--navy);color:#e9d5ff;margin-top:2rem;padding:2rem 0 1.2rem}
footer.site a{color:#fbbf24}
footer.site ul{list-style:none;padding:0;margin:0}
footer.site li{padding:.18rem 0}
.foot-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.6rem;max-width:1200px;margin:0 auto;padding:0 clamp(1rem,3vw,1.5rem)}
.foot-grid h3{color:#fff;margin-top:0}
.foot-disc{font-size:.88rem;color:#c4b5fd;margin-top:1rem}
.social{margin-top:1rem;line-height:1.9}
.foot-bottom{max-width:1200px;margin:1.4rem auto 0;padding:1rem clamp(1rem,3vw,1.5rem) 0;border-top:1px solid rgba(255,255,255,.16);text-align:center}
.foot-bottom p{margin:.3rem 0}
.foot-lang{font-weight:700}
.lang-bar{background:#0f0b2e;color:#c4b5fd;text-align:center;padding:.9rem 1rem}
.lang-bar a{color:#fbbf24;font-weight:700}
/* Menu breakpoint. The single-row desktop header needs about 990px
 * (English), so everything up to 1099px gets the hamburger menu. This
 * used to switch at 760px, which made the header spill 130 to 225px past
 * the screen edge on iPads (768 to 985px wide). The page layout (hero,
 * cards, footer) still changes at 760px in the block below. */
@media (max-width:1099px){
  .topbar{flex-wrap:wrap;gap:.6rem}
  /* Compact brand on mobile so brand + language switch + hamburger all
   * fit on ONE header row (the brand tagline is wide with its 3px
   * letter-spacing; without this the hamburger wrapped to a second row
   * on 360-390px screens). flex-basis:0 is what makes the packing work:
   * with flex-basis:auto the brand's 240px tagline counts against the
   * line first and the hamburger wraps before shrinking is considered.
   * With basis 0 the brand takes the remaining space and the tagline
   * wraps inside it if needed. */
  .brand{font-size:1.3rem;flex:1 1 0;min-width:0}
  .brand small{font-size:.55rem;letter-spacing:2px}
  /* --- hamburger navigation (mobile only, JS only) --- */
  html.js .nav-toggle{display:inline-flex;align-items:center;justify-content:center;margin-inline-start:0;order:3}
  /* The header language switch stays visible on mobile too — a compact
   * pill next to the hamburger, so a visitor can switch languages
   * WITHOUT opening the menu (hiding it behind the ☰ was the most likely
   * reason the switch was reported "not working" on phones). Only the
   * language name in its own script ("اردو" / "English") shows on the
   * compact button; the "· Switch to Urdu" label is hidden there (the
   * aria-label still carries it), and the full label returns on desktop.
   * The in-nav copy stays inside the hamburger panel as well. Order in
   * the topbar: brand, switch, hamburger. */
  .topbar > .lang-switch{display:inline-flex;align-items:center;min-height:44px;margin-inline-start:auto;order:2}
  .topbar > .lang-switch .ls-label{display:none}
  /* The nav is hidden until the hamburger opens it. Without JS there is
   * no .js class, so this rule never applies and the links stay visible
   * as a plain wrapped list — the site is never unnavigable. The panel
   * lists every top-level item WITH its sub-items expanded (Phase 3):
   * dropdowns are static, indented lists on mobile, never hidden behind
   * a caret, and the panel scrolls if the list is taller than the
   * viewport. Every link is a 44px tap target. */
  html.js nav#mainNav{display:none}
  header.site.nav-open nav#mainNav{display:flex;position:absolute;top:100%;inset-inline:0;flex-direction:column;align-items:stretch;background:linear-gradient(180deg,var(--navy2),var(--navy));padding:.6rem 1rem 1rem;gap:.25rem;overflow-y:auto;max-height:calc(100vh - 60px);box-shadow:0 18px 30px rgba(20,16,51,.45)}
  header.site.nav-open nav#mainNav a{min-height:44px;display:flex;align-items:center;padding:.75rem .9rem;font-size:1rem;white-space:normal}
  header.site.nav-open nav#mainNav .nav-list{display:flex;flex-direction:column;align-items:stretch;gap:.25rem}
  header.site.nav-open nav#mainNav .nav-item{display:block}
  header.site.nav-open nav#mainNav .sub-toggle{display:none}
  header.site.nav-open nav#mainNav .sub{position:static;display:block;min-width:0;max-width:none;columns:1;background:transparent;border:0;box-shadow:none;padding:0 0 0 1.1rem;margin:0}
  header.site.nav-open nav#mainNav .sub a{padding:.6rem .9rem;font-size:.95rem}
  header.site.nav-open nav#mainNav .sub-head{padding:.5rem .9rem .1rem}
  header.site.nav-open nav#mainNav .nav-lang{margin-top:.4rem}
  /* No-JS mobile: the nav stays visible as a plain stacked list with
   * its sub-items expanded (no hamburger, no caret buttons). */
  html:not(.js) nav#mainNav .nav-list{flex-direction:column;align-items:stretch;gap:.25rem}
  html:not(.js) nav#mainNav .sub{position:static;display:block;min-width:0;max-width:none;columns:1;background:transparent;border:0;box-shadow:none;padding:0 0 0 1.1rem}
  html:not(.js) nav#mainNav .sub-toggle{display:none}
  html:not(.js) nav#mainNav a{min-height:44px;display:flex;align-items:center}
}
@media (max-width:760px){
  .hero-2col{grid-template-columns:1fr;gap:1.2rem}
  .hero-centre{order:-1}
  /* The stacked phone banner above already shows the portrait and the wheel,
   * so on phones the hero drops its own copy of them. The portrait image is
   * loading="lazy", so a hidden image is never downloaded. */
  .hero-side{display:none}
  .tools-grid,.tools-grid-4,.tools-grid-2{grid-template-columns:1fr}
  .wheel-grid{grid-template-columns:1fr;gap:1rem}
  .wheel-copy .section-head{text-align:center}
  .foot-grid{grid-template-columns:1fr 1fr;gap:1.2rem}
  /* Banner: the <picture> in the markup serves the stacked mobile GIF on phones, so no CSS swap is needed. */
  /* --- hero + headings: smaller, centred, readable --- */
  .hero{padding:2rem 0 2.5rem}
  .hero-centre h1{font-size:1.55rem;line-height:1.35;overflow-wrap:break-word}
  .section-head h1{font-size:1.6rem;line-height:1.4;overflow-wrap:break-word}
  .section-head h2{font-size:1.4rem;line-height:1.4}
  h1{overflow-wrap:break-word}
  /* --- layout & spacing: nothing may exceed the viewport --- */
  .wrap{padding:0 .9rem}
  section{padding:1.6rem 0}
  pre{overflow-x:auto;max-width:100%}
  table.compat{display:block;overflow-x:auto;max-width:100%}
  .card{overflow-wrap:break-word}
  form.tool{padding:1.1rem}
  input,select,textarea{font-size:1rem}
  /* --- tap targets: every button/link at least 44px tall --- */
  .btn{min-height:44px;padding:.8rem 1.5rem;display:inline-flex;align-items:center;justify-content:center}
  .sign-card .btn{width:100%}
  .day-tabs .btn{flex:1 1 auto}
  footer.site li{padding:0}
  footer.site li a{display:inline-block;padding:.4rem 0}
  .sign-card .btn{padding-inline:.4rem}
  footer.site .social a{display:inline-block;padding:.5rem 0}
  .crumbs ol{row-gap:0}
  .crumbs a{display:inline-block;padding:.65rem 0}
  .crumbs [aria-current="page"]{padding:.65rem 0}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
  .reveal,.js .reveal{opacity:1;transform:none}
  /* A GIF can not be paused from CSS. The banner and the zodiac wheel are
   * <picture> elements whose first <source> is a still image for
   * (prefers-reduced-motion: reduce), so those visitors get a still picture
   * and no animation (see anim_sources() in tools/generate.py). */
}
.zodiac-gif{max-width:480px;width:100%;height:auto;border-radius:50%}
/* Banner background (2026-11-15 fix): the 1440px banner was centred on
 * the near-white page background, leaving ~245px white strips on each
 * side at 1920px — a big white hole above the navy hero. The banner is
 * now full-bleed on the site navy (the same gradient as the header) and
 * only the image itself is capped at 1440px, so the GIF is never
 * stretched past its native width and blends at any viewport. */
.site-banner{background:linear-gradient(135deg,var(--navy),var(--navy2) 60%,#3b1d7a)}
.site-banner img{width:100%;max-width:1440px;height:auto;display:block;margin:0 auto;border-radius:0 0 14px 14px}
.site-banner picture{display:block}
/* ---------- 404 page ---------- */
.narrow-404{max-width:640px;text-align:center;padding:4rem 0}
.e404-code{font-family:"Playfair Display",Georgia,serif;font-size:clamp(4rem,14vw,7rem);font-weight:800;line-height:1;margin:0;background:linear-gradient(135deg,var(--violet),var(--gold2));-webkit-background-clip:text;background-clip:text;color:transparent}

/* Weekly / monthly / yearly pages: static intro + sign links for crawlers
 * and no-JS visitors. With JS on, horoscope.js swaps in the live readings
 * and the cards stay hidden so nothing flashes. */
.period-intro{max-width:760px;margin:0 auto 1.2rem;text-align:center;color:var(--ink2)}
.js .period-fallback-cards{display:none}

/* ---------- Birthstones, method page, live sky (2026-12-01) ---------- */
.table-wrap{overflow-x:auto;margin:.6rem 0 1.2rem;border-radius:14px;border:1px solid var(--line);background:var(--card)}
table.bs-table{width:100%;border-collapse:collapse}
table.bs-table th,table.bs-table td{padding:.7rem .9rem;border-bottom:1px solid var(--line);text-align:start;vertical-align:top}
table.bs-table thead th{background:var(--navy);color:#fff;font-weight:600}
table.bs-table tbody th{color:var(--violet);white-space:nowrap;width:1%}
table.bs-table tbody tr:last-child th,table.bs-table tbody tr:last-child td{border-bottom:0}
.bs-list{list-style:none;margin:0;padding:0}
.bs-list li{margin:.2rem 0}
.stone-chip{display:inline-flex;align-items:center;gap:.45rem;font-weight:600}
.stone-dot{width:.95rem;height:.95rem;border-radius:50%;flex:none;background:var(--gem);border:1px solid var(--line);box-shadow:inset 0 0 0 1px rgba(255,255,255,.5)}
.bs-result{max-width:640px;margin:1rem auto 1.6rem}
.bs-stone{display:flex;gap:.9rem;align-items:flex-start;padding:.7rem 0;border-bottom:1px solid var(--line)}
.bs-stone h4{margin:0 0 .1rem;font-size:1.05rem}
.bs-stone p{margin:.1rem 0}
.bs-gem{width:52px;height:52px;border-radius:50%;flex:none;background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.9),rgba(255,255,255,0) 40%),var(--gem);box-shadow:0 6px 14px rgba(36,27,58,.22)}
.method-body{max-width:780px;margin:1.6rem auto 0}
.method-step{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:.4rem 1.2rem 1rem;margin-bottom:1rem;box-shadow:var(--shadow)}
.method-step h2{font-size:1.3rem;color:var(--violet)}
.sky-live{max-width:780px;margin:0 auto}
.sky-live h2{color:#fbbf24;margin-top:0}
.sky-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.6rem}
.sky-item{background:rgba(255,255,255,.07);border:1px solid rgba(196,181,253,.25);border-radius:12px;padding:.55rem .75rem;display:flex;flex-direction:column;gap:.1rem}
.sky-item b{color:#fff}
.sky-glyph{font-size:1.3rem;color:#fbbf24;line-height:1}
.sky-item.wide{grid-column:1/-1;flex-direction:row;gap:.6rem;align-items:center;flex-wrap:wrap}
@media (max-width:520px){
  table.bs-table th,table.bs-table td{padding:.6rem .65rem}
  table.bs-table tbody th{white-space:normal}
  .sky-grid{grid-template-columns:repeat(2,1fr)}
}

/* ---------- Strong hero: slideshow, live sky strip, ribbon, stats, note (2026-12-01) ----------
 * Motion rules: transform and opacity only, no blur on moving things, nothing
 * runs when the visitor asks for reduced motion, and the slideshow can always
 * be paused. Without JavaScript the first slide simply shows. */
.hero{isolation:isolate}
.hero::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(420px circle at var(--mx,72%) var(--my,26%),rgba(212,160,23,.17),transparent 65%)}
.hero-in{animation:heroIn .75s cubic-bezier(.2,.7,.2,1) both;animation-delay:var(--d,0s)}
@keyframes heroIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.hero h1 .hl{background:linear-gradient(90deg,var(--sun),var(--goldbg),var(--sun));background-size:220% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:hlflow 6s linear infinite}
@keyframes hlflow{to{background-position:-220% 0}}
.hero-badges{list-style:none;display:flex;flex-wrap:wrap;gap:.45rem;justify-content:center;margin:.2rem 0 .9rem;padding:0}
.hero-badges li a,.hero-badges li span{display:inline-block;padding:.25rem .75rem;border-radius:999px;font-size:.8rem;color:var(--lav);border:1px solid rgba(233,213,255,.35);text-decoration:none}
.hero-badges li a:hover{border-color:var(--sun);color:#fff}
.hero-slides{position:relative;margin:.4rem auto 0;max-width:560px;text-align:start}
.slides-track{display:grid;touch-action:pan-y}
.hero-slide{grid-area:1/1;display:flex;align-items:center;gap:.9rem;padding:.85rem 1.1rem;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid rgba(251,191,36,.35);color:#fff;text-decoration:none;opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .55s ease,transform .55s ease,visibility 0s linear .55s}
.hero-slide.is-active{opacity:1;visibility:visible;transform:none;transition-delay:0s}
.hero-slide:hover,.hero-slide:focus-visible{border-color:var(--sun);background:rgba(255,255,255,.13)}
.slide-ico{width:46px;height:46px;border-radius:50%;background:var(--goldbg);color:var(--gold);display:grid;place-items:center;font-size:1.3rem;font-weight:700;flex:none}
.slide-txt{display:flex;flex-direction:column;gap:.1rem;min-width:0;flex:1}
.slide-txt b{font-size:1.05rem;color:var(--sun)}
.slide-txt span{font-size:.9rem;color:var(--lav);line-height:1.5}
.slide-go{font-size:1.3rem;color:var(--sun);flex:none}
[dir="rtl"] .slide-go{display:inline-block;transform:scaleX(-1)}
.slide-ctrl{display:flex;align-items:center;justify-content:center;gap:.4rem;margin-top:.55rem}
.slide-btn{min-width:44px;min-height:44px;border-radius:50%;border:1px solid rgba(251,191,36,.45);background:transparent;color:var(--sun);font-size:1.05rem;line-height:1}
.slide-btn:hover{background:var(--gold2);color:var(--navy)}
[dir="rtl"] .slide-btn.prev span,[dir="rtl"] .slide-btn.next span{display:inline-block;transform:scaleX(-1)}
.slide-dots{display:flex;gap:.1rem}
.slide-dot{width:44px;height:44px;background:transparent;border:0;display:grid;place-items:center;padding:0}
.slide-dot::before{content:"";width:10px;height:10px;border-radius:50%;background:rgba(233,213,255,.4);transition:transform .25s ease,background .25s ease}
.slide-dot[aria-current="true"]::before{background:var(--sun);transform:scale(1.35)}
.slide-progress{height:3px;margin-top:.55rem;border-radius:3px;background:rgba(255,255,255,.14);overflow:hidden}
.slide-progress i{display:block;height:100%;background:var(--gold2);transform:scaleX(0);transform-origin:left}
[dir="rtl"] .slide-progress i{transform-origin:right}
.slide-progress.run i{animation:slideprog var(--dur,5.5s) linear forwards}
.hero-slides.is-paused .slide-progress i{animation-play-state:paused}
@keyframes slideprog{to{transform:scaleX(1)}}
.orbit{position:absolute;inset:0;margin:auto;aspect-ratio:1;border-radius:50%;border:1px dashed rgba(251,191,36,.28);pointer-events:none;animation:spin 30s linear infinite}
.orbit::after{content:"";position:absolute;top:-6px;left:50%;width:12px;height:12px;margin-left:-6px;border-radius:50%;background:var(--sun);box-shadow:0 0 12px var(--sun)}
.orbit.o1{width:68%}
.orbit.o2{width:98%;animation-duration:48s;animation-direction:reverse;border-color:rgba(167,139,250,.3)}
.orbit.o2::after{background:var(--violet2);box-shadow:0 0 12px var(--violet2);width:9px;height:9px;top:-4.5px;margin-left:-4.5px}
.shoots{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.shoot{position:absolute;top:var(--t);left:var(--l);width:120px;height:2px;border-radius:2px;background:linear-gradient(90deg,rgba(255,255,255,0),var(--lav));opacity:0;animation:shoot 11s linear infinite;animation-delay:var(--dl)}
@keyframes shoot{0%,88%{opacity:0;transform:translate(0,0) rotate(24deg)}90%{opacity:.95}100%{opacity:0;transform:translate(260px,118px) rotate(24deg)}}
.sky-strip{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;justify-content:center;max-width:1200px;margin:1.6rem auto 0;padding:.7rem clamp(1rem,3vw,1.5rem);position:relative;z-index:1;border-top:1px solid rgba(233,213,255,.18)}
.sky-label{font-weight:700;color:var(--sun);font-size:.9rem}
.sky-chip{padding:.25rem .75rem;border-radius:999px;font-size:.85rem;color:#fff;background:rgba(255,255,255,.09);border:1px solid rgba(233,213,255,.25)}
.sky-strip a{font-size:.85rem;color:var(--lav)}
.zodiac-ribbon{position:relative;z-index:1;overflow:hidden;margin-top:.9rem;direction:ltr;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.ribbon-track{display:flex;width:max-content;animation:ribbon 70s linear infinite}
.zodiac-ribbon:hover .ribbon-track,.zodiac-ribbon:focus-within .ribbon-track{animation-play-state:paused}
.ribbon-item{display:inline-flex;align-items:center;gap:.45rem;padding:.55rem 1.1rem;color:var(--lav);text-decoration:none;white-space:nowrap;font-size:.95rem;direction:rtl}
[lang="en"] .ribbon-item{direction:ltr}
.ribbon-item span{color:var(--sun);font-size:1.25rem}
.ribbon-item:hover{color:#fff}
@keyframes ribbon{to{transform:translateX(-50%)}}
.stats-band{background:var(--navy);color:var(--lav);padding:1.4rem 0 1.6rem;border-top:1px solid rgba(233,213,255,.12)}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;max-width:1000px;margin:0 auto;padding:0 clamp(1rem,3vw,1.5rem);text-align:center}
.stat b{display:block;font-family:"Playfair Display",Georgia,serif;font-size:clamp(1.8rem,4vw,2.5rem);color:var(--sun);line-height:1.1}
.stat span{font-size:.9rem}
.nn-band{padding:1.6rem 0 .4rem}
.nadia-note{margin-bottom:1.2rem;display:flex;gap:.9rem;align-items:flex-start;max-width:820px;margin:0 auto;background:var(--card);border:1px solid var(--line);border-inline-start:5px solid var(--gold2);border-radius:16px;padding:1rem 1.2rem;box-shadow:var(--shadow)}
.nn-ico{width:42px;height:42px;border-radius:50%;background:var(--goldbg);color:var(--gold);display:grid;place-items:center;font-size:1.2rem;flex:none}
.nn-label{margin:0;font-weight:700;color:var(--gold);font-size:.9rem}
.nn-text{margin:.15rem 0 0;font-size:1.05rem;color:var(--ink)}
@media (max-width:760px){
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .hero-slides{max-width:none}
  .sky-strip{margin-top:1.2rem}
}
@media (max-width:420px){.slide-txt span{font-size:.85rem}.hero-slide{padding:.75rem .85rem}}
@media (prefers-reduced-motion:reduce){
  .hero-in,.hero h1 .hl,.orbit,.shoot,.ribbon-track,.slide-progress.run i{animation:none !important}
  .hero h1 .hl{background:none;color:var(--sun)}
  .hero-slide{transition:none}
  .slide-progress{display:none}
  .ribbon-track{flex-wrap:wrap;width:auto;justify-content:center}
  .ribbon-track [aria-hidden="true"]{display:none}
}
.hero-slide:not(.is-active) .slide-go{visibility:hidden}

/* Guide block under tool pages (page-extras.json), 2026-12-01 */
.guide{background:var(--bg2);border-top:1px solid var(--line)}
.guide-wrap{max-width:820px}
.guide h2{margin:0 0 .6rem}
.guide h3{font-size:1.2rem;margin:1.5rem 0 .4rem;color:var(--violet)}
.guide p{line-height:1.75;color:var(--ink)}
.guide .nadia-note{margin:1.6rem 0;max-width:none}
.guide-faq-title{margin:2rem 0 .8rem}
.guide .roman-urdu{margin:1.8rem 0;padding:.2rem 1.2rem 1rem;background:var(--card);border:1px solid var(--line);border-inline-start:5px solid var(--violet);border-radius:16px}
.guide .roman-urdu h3{margin-top:1rem}
.guide details.card{margin-bottom:.7rem;padding:.4rem 1.1rem}
.guide details.card p{margin:.2rem 0 .7rem}
.guide-links{margin-top:1.8rem;display:flex;flex-wrap:wrap;gap:.2rem 1rem;align-items:center}
.guide-links a{display:inline-block;padding:.65rem 0;min-height:44px}

/* Cookie notice and ad box (only used when data/site-config.json has IDs), 2026-12-01 */
.an-consent{position:fixed;left:12px;right:12px;bottom:12px;z-index:90;max-width:760px;margin:0 auto;background:var(--navy);color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:16px;padding:.9rem 1.1rem;box-shadow:0 12px 40px rgba(20,16,51,.5);display:flex;flex-wrap:wrap;gap:.7rem 1rem;align-items:center;justify-content:space-between}
.an-consent p{margin:0;flex:1 1 280px;font-size:.92rem;line-height:1.6}
.an-consent a{color:var(--sun)}
.an-consent-btns{display:flex;gap:.6rem;flex-wrap:wrap}
.an-consent .btn{min-height:44px;min-width:44px;cursor:pointer;font:inherit;font-weight:700;padding:.55rem 1.2rem}
.an-consent .btn-ghost{background:transparent;color:#fff;border:2px solid rgba(255,255,255,.7)}
.an-consent .btn-ghost:hover{background:rgba(255,255,255,.12)}
[lang="ur"] .an-consent p{line-height:2}
.an-ad{margin:2.6rem auto;max-width:728px;text-align:center;min-height:100px;clear:both}
.an-ad:has(ins[data-ad-status="unfilled"]){display:none}
.an-ad[hidden]{display:none}
.an-ad-label{display:block;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--ink2);margin-bottom:.3rem}
[lang="ur"] .an-ad-label{letter-spacing:0;text-transform:none;font-size:.8rem}
@media (max-width:520px){.an-consent{left:8px;right:8px;bottom:8px;padding:.8rem}.an-consent-btns{width:100%}.an-consent-btns .btn{flex:1 1 0}}
@media print{.an-consent,.an-ad{display:none !important}}
