/* OMAAA design system — shared by the website and its installed app.
   Load after app.css, which supplies the existing calculator/result components.
   Reuse these tokens and components for new modules; see docs/UI_DESIGN_SYSTEM.md. */
:root {
    --brand: #a34423;
    --brand-dark: #843018;
    --brand-light: #cf7041;
    --accent: #a87829;
    --gold: #a87829;
    --gold-soft: #edcc8c;
    --maroon: #251b43;
    --maroon-2: #493362;
    --ink: #29243a;
    --ink-soft: #625d70;
    --muted: #716b7e;
    --line: #e9e4ef;
    --bg: #fcfaf7;
    --bg-alt: #f3f0f8;
    --bg-deep: #171126;
    --card: #ffffff;
    --ok: #286348;
    --ok-bg: #e9f1e8;
    --warn: #a03d28;
    --warn-bg: #faece5;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 6px 24px rgba(38, 22, 69, .045);
    --shadow-lg: 0 18px 42px rgba(38, 22, 69, .12);
    --wrap: 1240px;
    --gap: 20px;
    --header-height: 88px;
    --forest: #251b43;
    --surface-saffron: #fbf0df;
    --midnight: #161229;
    --violet: #7154a2;
}

/* Base and accessible interactions */
body { font-size: 16px; line-height: 1.7; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.025em; }
h1 { font-size: clamp(28px, 4vw, 44px); }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { color: var(--forest); background: #efdbad; }
.ui-icon { width: 24px; height: 24px; flex: none; vertical-align: middle; }
.wrap { padding-inline: 32px; }
.wrap-narrow { max-width: 820px; }
.section { padding-block: 68px; }
.section-tight { padding-block: 12px 48px; }
main { min-height: 55vh; }
:where(section, [id]) { scroll-margin-top: calc(var(--header-height) + 16px); }
.section-head { max-width: none; margin: 0 0 30px; text-align: start; }
.section-head h2 { font-size: clamp(27px, 3vw, 36px); margin-bottom: 10px; }
.section-head h2::after { display: none; }
.section-head p { max-width: 65ch; font-size: 15px; }
.section-head .section-kicker { color: var(--brand-dark); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 9px; }
.section-more { display: inline-block; margin-top: 12px; font-size: 14px; }
.section-head-row { align-items: end; }
.section-alt { background: var(--bg-alt); }
.skip-link { position: fixed; left: 16px; top: 0; z-index: 100; transform: translateY(-120%); }
.skip-link:focus { left: 16px; transform: translateY(0); }

/* Quiet, spacious navigation */
.site-header { background: rgba(252, 250, 247, .97); backdrop-filter: blur(14px); }
.header-inner { min-height: var(--header-height); gap: 24px; position: relative; }
.brand { gap: 10px; flex: none; }
.brand-lockup { display: flex; flex-direction: column; }
.brand-text { font-size: 23px; letter-spacing: -.035em; line-height: 1.3; }
.brand-tagline { font-family: var(--font); font-size: 9px; font-weight: 500; letter-spacing: .02em; color: var(--muted); margin-top: 3px; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--gold-soft); }
.brand-mark .ui-icon { width: 26px; height: 26px; }
.site-nav { gap: 20px; }
.site-nav > ul { gap: 2px; }
.site-nav a { font-size: 13px; font-weight: 600; padding: 10px; border-radius: 8px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: #eeeee4; color: var(--forest); }
.lang-switch summary { min-height: 44px; font-size: 12px; padding: 9px 12px; background: var(--card); border-radius: 10px; }
.lang-switch summary .lang-flag { font-size: 15px; }
.lang-switch summary .ui-icon { width: 16px; height: 16px; }
.lang-menu .lang-flag { display: none; }
.lang-menu { min-width: 250px; background: var(--card); }
.lang-menu .lang-en { margin-inline-start: auto; }
.lang-menu .is-current { background: var(--bg-alt); }
.nav-toggle { position: absolute; width: 44px; height: 44px; inset-inline-end: 32px; opacity: 0; margin: 0; z-index: 2; cursor: pointer; }
.nav-toggle-btn { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 10px; flex: none; }
.nav-toggle-btn span { background: var(--forest); width: 20px; height: 1.5px; margin: 3px auto; }
.nav-toggle:focus-visible + .nav-toggle-btn { outline: 3px solid var(--brand); outline-offset: 3px; }
.nav-toggle:checked + .nav-toggle-btn span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle:checked + .nav-toggle-btn span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .nav-toggle-btn span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* Buttons and form surfaces */
.btn { min-height: 48px; padding: 12px 22px; border-radius: 10px; font-size: 14px; line-height: 1.5; font-weight: 600; transition: background .2s, box-shadow .2s, transform .2s; }
.btn .ui-icon { width: 18px; height: 18px; }
.btn-primary { box-shadow: 0 4px 10px rgba(173, 72, 37, .12); }
.btn-ghost { background: transparent; border-color: #d5dbd0; color: var(--forest); }
.btn-ghost:hover { background: #f0f2e9; border-color: var(--forest); }
.btn-sm { min-height: 44px; padding: 9px 15px; font-size: 13px; }
.btn-lg { padding: 14px 28px; }
.input, .select, .textarea { min-height: 52px; border-color: #d5dbd0; background: var(--card); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--brand); outline-offset: 2px; border-color: var(--brand); }
.form-row label { color: var(--ink); font-size: 14px; }
.form-row label .hint { display: inline; font-size: 12px; }
.calc-form { max-width: 760px; margin: 0 auto 20px; padding: 32px; border-top: 3px solid #d7bc83; }
.calc-form + .result, .calc-form ~ .result { max-width: 960px; margin-inline: auto; }
main .wrap:has(> .calc-form) > .section-head { max-width: 760px; margin-inline: auto; }
.result-hero { background: var(--surface-saffron); border: 1px solid #eddfc5; }
.calc-note { color: var(--muted); }
.calc-table { overflow-wrap: anywhere; }
.calc-table th, .calc-table td { padding: 13px 12px; }
.calc-table tbody tr:nth-child(even) { background: #f8f9f3; }
.meaning-card, .aside-card, .card, .verdict-wrap { box-shadow: var(--shadow); }
.rating-hero { background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--sign); }
.reading-grid > aside { position: sticky; top: calc(var(--header-height) + 24px); }
.section-block h3, .tool-card h3, .feature h3 { font-family: var(--font); letter-spacing: -.015em; }
.section-block { padding-block: 26px; }
.breadcrumbs { margin-bottom: 24px; font-size: 12px; }
.page-head { background: var(--forest); }
.page-head p { color: #d4e0d4; }
.cta-note { color: var(--muted); }

/* Hero: editorial copy alongside a locally drawn celestial chart */
.hero { color: var(--ink); background: var(--bg); padding: 48px 0 32px; }
.hero-inner { grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.hero-copy { padding-block: 18px; }
.hero-eyebrow { display: flex; align-items: center; gap: 9px; color: var(--brand-dark); font-size: 11px; letter-spacing: .15em; margin-bottom: 20px; }
.hero-eyebrow span { font-size: 18px; }
.hero-title { color: var(--forest); font-size: clamp(40px, 4.8vw, 65px); font-weight: 500; line-height: 1.1; text-shadow: none; letter-spacing: -.045em; max-width: 12ch; margin-bottom: 24px; }
.font-devanagari .hero-title { font-size: clamp(32px, 3.5vw, 48px); max-width: 16ch; line-height: 1.35; letter-spacing: -.025em; }
.hero-sub { color: var(--ink-soft); font-size: 16px; max-width: 45ch; line-height: 1.85; }
.hero-actions { gap: 12px; margin-top: 30px; }
.hero-actions .btn { font-size: 13px; }
.hero-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; margin: 18px 0 0; }
.hero-note .ui-icon { width: 14px; height: 14px; }
.hero-sky { position: relative; background: var(--forest); border-radius: 140px 140px 22px 22px; color: var(--gold-soft); padding: 30px 28px 22px; overflow: hidden; isolation: isolate; }
.hero-sky::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .4; background: radial-gradient(circle at 20% 30%, #cbaa62 0 1px, transparent 1.7px), radial-gradient(circle at 78% 18%, #cbaa62 0 1px, transparent 1.7px), radial-gradient(circle at 80% 74%, #cbaa62 0 1px, transparent 1.7px), radial-gradient(ellipse at 50% 50%, #356353, transparent 65%); }
.sky-heading { display: flex; align-items: center; justify-content: center; gap: 7px; color: #e8e9d3; font-size: 10px; letter-spacing: .09em; }
.sky-heading > span:last-child { color: #b9cdbb; border-inline-start: 1px solid #5a7966; padding-inline-start: 12px; margin-inline-start: 5px; }
.sky-dot { width: 5px; height: 5px; background: #edcc8c; border-radius: 50%; }
.celestial-wheel { display: block; width: min(100%, 346px); margin: 14px auto 0; }
.wheel-glyph { font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", sans-serif; font-size: 23px; }
.sky-caption { font-family: var(--display, var(--font)); text-align: center; font-size: 15px; color: #e2dbb6; margin: 8px 0 18px; }
.sky-almanac { display: flex; align-items: center; gap: 18px; border-top: 1px solid #456553; padding-top: 16px; }
.sky-almanac > div { flex: 1; min-width: 0; }
.sky-almanac > div + div { border-inline-start: 1px solid #456553; padding-inline-start: 18px; }
.sky-almanac span { display: block; font-size: 10px; color: #c1cfb7; margin-bottom: 3px; }
.sky-almanac strong { display: block; color: #f5ebd5; font-size: 14px; font-weight: 500; }
.sky-almanac a { color: #edcc8c; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #627d5e; border-radius: 50%; flex: none; }
.sky-almanac a:hover { background: #28594c; }

/* Sign selection is a genuine navigation component, independent of JS. */
.hero-picker { margin-top: 38px; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.picker-heading { display: flex; align-items: baseline; gap: 16px; margin-bottom: 17px; }
.hero-picker-head { color: var(--forest); font-family: var(--font); font-size: 14px; font-weight: 600; margin: 0; }
.picker-heading > span { color: var(--muted); font-size: 11px; }
.sign-chips { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; }
.sign-chip { background: transparent; border: 1px solid transparent; border-radius: 10px; gap: 9px; padding: 8px 2px; color: var(--ink); }
.sign-chip:hover { transform: translateY(-2px); background: var(--bg-alt); border-color: #d5dbd0; box-shadow: none; }
.sign-chip-sym { font-size: 24px; color: var(--forest); }
.sign-chip-name { font-size: 10px; font-weight: 500; }

/* Shortcut rows and restrained, readable content cards */
.quick-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-block: 0 8px; }
.quick-path { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #f4f2e8; color: var(--ink); transition: background .2s, border-color .2s; }
.quick-path:hover { text-decoration: none; border-color: #bfc9b9; background: #eeefe2; }
.quick-path > span:nth-child(2) { flex: 1; }
.quick-path strong { display: block; font-size: 14px; font-weight: 600; }
.quick-path small { display: block; font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
.quick-icon { color: var(--brand); }
.quick-path > .ui-icon { width: 17px; height: 17px; color: var(--muted); }
.sign-grid { gap: 18px; }
.sign-card { padding: 22px; border: 1px solid var(--line); gap: 12px; position: relative; }
.sign-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #b6c7b5; }
.sign-card-sym { border-radius: 50%; color: var(--sign, var(--forest)); background: #f2f3eb; box-shadow: none; width: 46px; height: 46px; font-size: 25px; }
.sign-card-name { font-family: var(--font); font-size: 15px; font-weight: 600; }
.sign-card-id { min-width: 0; }
.sign-card-range { font-size: 10px; margin-top: 2px; }
.sign-card-teaser { font-size: 12px; line-height: 1.8; }
.stars { font-size: 12px; gap: 3px; }
.star.on { color: #96702c; }
.chip { font-size: 10px; padding: 4px 8px; }
.chip-lucky { background: var(--surface-saffron); color: #805214; }
.sign-card-link { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 2px; font-size: 11px; color: var(--forest); font-weight: 600; }
.sign-card-link span { font-size: 18px; font-weight: 400; }
.period-strip { gap: 8px; margin-bottom: 24px; }
.period-strip a { border-radius: 9px; padding: 11px 20px; background: var(--card); color: var(--ink-soft); font-size: 12px; min-height: 44px; }
.period-strip a:hover, .period-strip a.is-active { background: var(--forest); border-color: var(--forest); }
.tool-card { padding: 26px; gap: 10px; box-shadow: none; }
.tool-card:hover { border-color: #c8d1bf; transform: translateY(-3px); }
.tool-card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--surface-saffron); color: var(--brand); margin-bottom: 6px; }
.tool-card:nth-child(3n + 2) .tool-card-icon { background: #eaf0e6; color: #3b644e; }
.tool-card:nth-child(3n) .tool-card-icon { background: #f1ecf3; color: #785c7e; }
.tool-card h3 { font-weight: 600; font-size: 17px; }
.tool-card p { font-size: 13px; line-height: 1.8; }
.tool-card-cta { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--forest); }
.tool-grid-4 .tool-card { background: #f9f6f2; }
.tool-grid-4 .tool-card-icon { background: #f4e9e4; color: #995545; }
.panchang-card { padding: 30px; gap: 30px; }
.panchang-facts { gap: 20px; align-content: start; }
.pf { padding-bottom: 14px; border-bottom: 1px solid var(--line); gap: 5px; }
.pf-k { font-size: 11px; letter-spacing: .02em; }
.pf-v { font-size: 15px; font-weight: 600; }
.pf-v .muted { display: block; font-size: 11px; font-weight: 400; }
.window-col { background: #f3f6ed; border-radius: 12px; padding: 16px; }
.window-bad { background: #fbf2ec; }
.window-col h3 { font-family: var(--font); font-size: 12px; font-weight: 600; }
.window-col li { padding-block: 10px; }
.w-name { font-size: 12px; }
.w-time { font-size: 11px; color: var(--ink-soft); }
.panchang-windows { padding-inline-start: 24px; gap: 12px; }
.feature { text-align: start; padding: 18px 10px 10px 0; }
.feature-icon { width: 44px; height: 44px; border-radius: 50%; background: #eeefe2; color: var(--forest); }
.feature h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.feature p { font-size: 12px; line-height: 1.85; }
.article-card { padding: 26px; box-shadow: none; border-top: 3px solid #c5b484; }
.article-card h3 { line-height: 1.5; }
.faq-item summary { min-height: 56px; padding-inline-end: 52px; }
.lang-grid { gap: 12px; }
.lang-tile { padding: 17px 12px; border-radius: 12px; gap: 5px; }
.lang-tile .lang-flag { display: none; }
.lang-native { font-size: 16px; font-weight: 500; }
.lang-en { font-size: 10px; }
.cta-band { background: var(--forest); margin: 24px 32px 0; border-radius: 22px; padding-block: 48px; }
.cta-band .cta-inner { max-width: 720px; }
.cta-band .cta-note { color: #c4d2bd; font-size: 11px; }
.cta-band .btn-primary { background: #edcc8c; color: var(--forest); box-shadow: none; }
.cta-inner h2 { font-size: 34px; margin-bottom: 20px; }

/* Footer and mobile app shell */
.site-footer { background: var(--bg); color: var(--ink-soft); margin-top: 30px; }
.footer-grid { padding-block: 48px 32px; gap: 40px; }
.brand-footer { color: var(--forest); }
.brand-footer .brand-mark { width: 28px; height: 28px; font-size: 16px; }
.brand-footer .brand-mark .ui-icon { width: 19px; height: 19px; }
.footer-col h2 { color: var(--forest); font-family: var(--font); font-size: 11px; letter-spacing: .1em; }
.footer-col a { color: var(--ink-soft); font-size: 12px; padding-block: 6px; }
.footer-col a:hover { color: var(--brand); }
.footer-about p { color: var(--ink-soft); font-size: 12px; line-height: 1.9; }
.footer-about-links { display: flex; flex-wrap: wrap; gap: 0 15px; }
.footer-langs .lang-list { display: grid; grid-template-columns: 1fr 1fr; }
.footer-legal { border-color: var(--line); }
.disclaimer { color: var(--muted); font-size: 10px; max-width: 95ch; }
.footer-bottom p, .legal-links a { font-size: 11px; }
.mobile-dock { display: none; }
.install-button { margin-block: 6px; }
.offline-page { padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.offline-shell { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding-block: 48px; }
.offline-shell img { margin-bottom: 12px; }
.offline-shell h1 { font-size: clamp(36px, 7vw, 56px); margin-bottom: 12px; }
.offline-shell p { max-width: 48ch; color: var(--ink-soft); }
.offline-shell .section-kicker { font-size: 10px; letter-spacing: .12em; color: var(--brand-dark); margin: 0; }

/* Responsive: all widths use the same server-rendered pages. */
@media (max-width: 1180px) {
    .site-nav { gap: 10px; }
    .site-nav a { padding-inline: 7px; font-size: 12px; }
    .brand-text { font-size: 21px; }
    .brand-tagline { font-size: 8px; }
    .hero-inner { gap: 40px; }
    .sign-chips { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
    .sign-chip { flex-direction: row; justify-content: center; gap: 8px; padding-block: 10px; }
    .sign-chip-name { font-size: 11px; }
}
@media (max-width: 1024px) {
    :root { --header-height: 76px; }
    .site-nav > ul { gap: 0; }
    .header-inner { gap: 12px; }
    .brand-tagline { display: none; }
    .brand-text { font-size: 19px; }
    .brand-mark { width: 34px; height: 34px; }
    .hero-title { font-size: 52px; }
    .hero-inner { gap: 32px; }
    .sign-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .quick-path { padding: 16px; gap: 10px; }
    .quick-path small { font-size: 10px; }
    .tool-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reading-grid > aside { position: static; }
}
@media (max-width: 900px) {
    :root { --header-height: 72px; }
    .site-nav { position: absolute; inset: 100% 0 auto; margin: 0; display: none; flex-direction: column; align-items: stretch; gap: 8px; padding: 18px 24px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: min(75vh, 560px); overflow-y: auto; }
    .site-nav > ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .site-nav a { display: block; padding: 13px 12px; font-size: 14px; border: 0; border-radius: 10px; }
    .nav-toggle { display: block; }
    .nav-toggle-btn { display: flex; flex-direction: column; justify-content: center; margin-inline-start: auto; width: 44px; height: 44px; }
    .nav-toggle:checked ~ .site-nav { display: flex; max-height: min(75vh, 560px); padding: 18px 24px; }
    .lang-switch { padding: 6px 0; }
    .lang-switch summary { display: flex; justify-content: center; }
    .lang-menu { position: static; box-shadow: none; margin-top: 8px; max-height: 200px; min-width: 0; }
    .brand-text { font-size: 22px; }
    .brand-tagline { display: block; font-size: 8px; }
    .brand-mark { width: 38px; height: 38px; }
    .hero-title { font-size: 45px; }
    .hero-actions { flex-direction: column; align-items: start; }
    .hero-sub { font-size: 14px; }
    .hero-sky { padding: 24px 22px 20px; border-radius: 100px 100px 20px 20px; }
    .sky-heading { font-size: 9px; }
    .quick-path > .ui-icon { display: none; }
    .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .panchang-card { grid-template-columns: 1fr; }
    .panchang-windows { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--line); padding-top: 22px; }
}
@media (max-width: 760px) {
    :root { --header-height: 68px; }
    body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
    .wrap { padding-inline: 22px; }
    .hero { padding-top: 22px; }
    .hero-inner { grid-template-columns: 1fr 1fr; gap: 26px; }
    .hero-title { font-size: 39px; }
    .sky-heading { flex-wrap: wrap; }
    .sky-almanac { gap: 10px; }
    .sky-almanac a { width: 36px; height: 36px; }
    .sky-almanac strong { font-size: 12px; }
    .sign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section { padding-block: 48px; }
    .section-tight { padding-block: 4px 30px; }
    .quick-paths { gap: 10px; }
    .quick-path { flex-direction: column; align-items: start; gap: 6px; padding: 14px; }
    .quick-path strong { font-size: 12px; }
    .quick-path small { line-height: 1.5; font-size: 10px; }
    .mobile-dock { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; z-index: 45; bottom: 0; inset-inline: 0; padding: 8px max(10px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 254, 250, .97); border-top: 1px solid var(--line); backdrop-filter: blur(14px); box-shadow: 0 -5px 24px rgba(24, 62, 54, .04); }
    .mobile-dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; gap: 5px; color: #647368; border-radius: 12px; padding: 5px 1px; }
    .mobile-dock a[aria-current="page"] { color: var(--brand-dark); background: #faf0e6; }
    .mobile-dock a:hover { text-decoration: none; background: var(--bg-alt); }
    .mobile-dock .ui-icon { width: 21px; height: 21px; }
    .mobile-dock span { max-width: 100%; overflow-wrap: anywhere; font-size: 9px; font-weight: 600; line-height: 1.5; text-align: center; }
    .calc-form { padding: 24px; }
    .cta-band { margin-inline: 22px; padding-block: 36px; }
    .cta-inner h2 { font-size: 28px; }
    .footer-grid { gap: 28px; }
}
@media (max-width: 600px) {
    .hero-inner { grid-template-columns: 1fr; gap: 24px; }
    .hero-copy { padding-top: 12px; padding-bottom: 0; }
    .hero-eyebrow { font-size: 10px; margin-bottom: 15px; }
    .hero-title { font-size: clamp(40px, 10vw, 54px); max-width: 13ch; line-height: 1.12; margin-bottom: 18px; }
    .font-devanagari .hero-title { font-size: 35px; max-width: 17ch; }
    .hero-sub { font-size: 14px; max-width: 45ch; }
    .hero-actions { flex-direction: row; margin-top: 20px; gap: 9px; }
    .hero-actions .btn { padding: 12px 15px; font-size: 12px; }
    .hero-sky { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 20px; border-radius: 22px; }
    .sky-heading { grid-column: 1 / -1; justify-content: start; font-size: 10px; margin-bottom: 7px; }
    .celestial-wheel { grid-row: 2 / 4; width: 100%; margin: 8px 0 0; }
    .sky-caption { font-size: 14px; text-align: start; margin: 5px 0 0 20px; }
    .sky-almanac { flex-wrap: wrap; margin-inline-start: 20px; margin-top: 12px; padding-top: 12px; gap: 12px; }
    .sky-almanac > div { flex: 1 1 100%; }
    .sky-almanac > div + div { border: 0; padding: 0; }
    .sky-almanac a { display: none; }
    .hero-picker { margin-top: 22px; padding: 18px 12px; }
    .picker-heading { flex-direction: column; gap: 2px; padding-inline: 6px; margin-bottom: 14px; }
    .picker-heading > span { font-size: 10px; }
    .sign-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .sign-chip { flex-direction: column; gap: 6px; padding: 9px 1px; background: #f7f7ef; }
    .sign-chip-name { font-size: 10px; }
    .sign-chip-sym { font-size: 22px; }
    .hero { padding-bottom: 22px; }
    .quick-paths { gap: 8px; }
    .quick-path { padding: 12px 10px; border-radius: 12px; }
    .quick-icon .ui-icon { width: 20px; height: 20px; }
    .quick-path strong { font-size: 11px; }
    .quick-path small { font-size: 9px; }
    .section-head { margin-bottom: 24px; }
    .section-head h2 { font-size: 27px; }
    .section-head p { font-size: 13px; }
    .sign-grid { gap: 12px; }
    .sign-card { padding: 15px; gap: 10px; border-radius: 15px; }
    .sign-card-top { flex-direction: column; align-items: start; gap: 10px; }
    .sign-card-name { font-size: 14px; }
    .sign-card-range { font-size: 10px; }
    .sign-card-sym { width: 38px; height: 38px; font-size: 22px; }
    .sign-card-teaser { font-size: 11px; }
    .sign-card-foot { gap: 5px; }
    .chip { font-size: 9px; padding: 4px 7px; }
    .period-strip { gap: 6px; }
    .period-strip a { padding: 10px 13px; font-size: 11px; }
    .tool-grid, .tool-grid-4 { grid-template-columns: 1fr; gap: 12px; }
    .tool-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; row-gap: 6px; padding: 20px; border-radius: 15px; }
    .tool-card-icon { grid-column: 1; grid-row: 1 / 4; width: 44px; height: 44px; margin: 0; border-radius: 12px; }
    .tool-card h3, .tool-card p, .tool-card-cta { grid-column: 2; }
    .tool-card h3 { font-size: 16px; }
    .tool-card p { font-size: 12px; }
    .tool-card-cta { border: 0; padding: 0; margin-top: 4px; font-size: 11px; }
    .panchang-card { padding: 20px; gap: 22px; }
    .panchang-facts { gap: 14px; }
    .pf-v { font-size: 13px; }
    .panchang-windows { gap: 8px; padding-top: 18px; }
    .window-col { padding: 12px; }
    .w-name { font-size: 11px; }
    .w-time { font-size: 10px; }
    .feature-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .feature { padding: 0; }
    .feature h3 { font-size: 14px; }
    .feature p { font-size: 11px; }
    .lang-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .lang-tile { padding: 14px 6px; }
    .lang-native { font-size: 14px; }
    .lang-en { font-size: 9px; }
    .calc-form { padding: 20px; }
    .form-actions { flex-wrap: wrap; }
    .form-actions .btn-primary { flex: 1; }
    .result-hero { padding: 20px; gap: 15px; }
    .result-number { font-size: 45px; }
    .result-meta h2 { font-size: 22px; }
    .result-number small { font-size: 18px; }
    .rating-hero { padding: 18px; }
    .rating-hero .sign-card-sym { width: 45px; height: 45px; }
    .rating-score { font-size: 30px; }
    .calc-table th, .calc-table td { padding: 10px 6px; font-size: 11px; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat { padding: 12px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; padding-top: 32px; }
    .footer-about { grid-column: 1 / -1; }
    .footer-bottom { align-items: start; }
    .brand-text { font-size: 20px; }
    .nav-toggle { inset-inline-end: 22px; }
}
@media (max-width: 360px) {
    .wrap { padding-inline: 16px; }
    .hero-title { font-size: 39px; }
    .font-devanagari .hero-title { font-size: 31px; }
    .hero-actions .btn { width: 100%; }
    .sign-card { padding: 12px; }
    .sky-caption { font-size: 12px; }
    .nav-toggle { inset-inline-end: 16px; }
    .brand-tagline { font-size: 7px; }
}
@media (display-mode: standalone) {
    .site-header { padding-top: env(safe-area-inset-top); }
    .hero { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .tool-card:hover, .sign-card:hover, .sign-chip:hover { transform: none; }
}
[dir="rtl"] .hero-title { max-width: 16ch; line-height: 1.55; }
[dir="rtl"] .feature { padding-inline: 0 10px; }
/* Locale artwork edition — one visual identity, twelve original scenes. */
.hero {
    background: radial-gradient(ellipse at 0 0, #32244d 0, transparent 56%), radial-gradient(ellipse at 100% 100%, #302044 0, transparent 58%), var(--midnight);
    padding-top: 0; padding-bottom: 38px; color: #fff;
}
.hero-topline { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-block: 18px; border-bottom: 1px solid rgba(231, 212, 251, .12); margin-bottom: 34px; }
.hero-topline > span { display: flex; gap: 8px; align-items: center; font-size: 11px; letter-spacing: .035em; color: #e6d1a7; }
.hero-topline .ui-icon { width: 16px; height: 16px; }
.hero-topline time { color: #c1b6d6; font-size: 11px; }
.hero-inner { gap: 48px; grid-template-columns: 1fr 1.05fr; }
.hero-eyebrow { color: #dfbc84; font-size: 11px; letter-spacing: .12em; }
.hero-title { color: #fffcf5; font-size: clamp(46px, 5.4vw, 70px); max-width: 15ch; line-height: 1.12; }
.hero-title-accent { display: block; color: #f3c77e; font-style: italic; }
.hero-sub { color: #d3cadf; font-size: 16px; line-height: 1.8; max-width: 44ch; }
.hero-actions .btn-primary { color: #2d1e24; background: linear-gradient(115deg, #f5d28b, #e9ae62); box-shadow: 0 6px 22px rgba(237, 179, 96, .17); }
.hero-actions .btn-primary:hover { background: #f8db9f; box-shadow: 0 8px 24px rgba(237, 179, 96, .28); }
.hero-actions .btn-ghost { color: #f3e6d3; background: rgba(255, 255, 255, .04); border-color: #71617f; }
.hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.hero-note { color: #c5b8d2; font-size: 12px; }
.hero .hero-artwork { min-height: 390px; aspect-ratio: 1.38; display: block; padding: 0; border-radius: 24px; border: 1px solid rgba(238, 205, 146, .3); background: #241b37; box-shadow: 0 20px 50px rgba(0, 0, 0, .22); }
.hero-artwork::before { display: none; }
.locale-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-artwork .sky-heading { position: absolute; inset-block-start: 16px; inset-inline: 16px auto; justify-content: start; background: rgba(21, 16, 39, .87); color: #f2e9d7; border: 1px solid rgba(222, 192, 139, .28); border-radius: 999px; padding: 9px 12px; font-size: 10px; backdrop-filter: blur(12px); }
.hero-artwork .sky-heading > span:last-child { color: #e1d1bd; border-color: #89758f; }
.hero-artwork .sky-caption { display: none; }
.hero-artwork .sky-almanac { position: absolute; inset-inline: 14px; bottom: 14px; display: flex; gap: 18px; flex-wrap: nowrap; margin: 0; padding: 14px 18px; border: 1px solid rgba(225, 201, 172, .25); border-radius: 14px; background: rgba(23, 17, 38, .9); backdrop-filter: blur(14px); }
.hero-artwork .sky-almanac > div { flex: 1; }
.hero-artwork .sky-almanac > div + div { border-inline-start: 1px solid #77637f; padding-inline-start: 18px; }
.hero-artwork .sky-almanac span { color: #d8c8e0; font-size: 11px; }
.hero-artwork .sky-almanac strong { color: #ffe3b0; font-size: 16px; font-weight: 600; }
.hero-artwork .sky-almanac a { display: grid; border-color: #b29464; color: #f3cd88; }
.hero-picker { background: rgba(255, 255, 255, .05); border-color: #514161; box-shadow: none; margin-top: 32px; padding: 20px 24px; }
.hero-picker-head { color: #f7ecd7; font-size: 15px; }
.picker-heading > span { color: #c5b7d5; font-size: 12px; }
.sign-chip { color: #efe5f8; min-height: 58px; }
.sign-chip-sym { color: #eaca94; }
.sign-chip-name { font-size: 11px; }
.sign-chip:hover { background: #443150; border-color: #917651; }
.reassurance-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.reassurance-row > span { display: flex; gap: 7px; align-items: center; color: #676171; font-size: 11px; }
.reassurance-row .ui-icon { width: 16px; height: 16px; color: #88634a; }
.quick-paths { margin-block: 30px 2px; }
.quick-path { background: #ffffff; padding: 22px; box-shadow: var(--shadow); border-radius: 18px; }
.quick-path:nth-child(1) .quick-icon { color: #79559b; }
.quick-path:nth-child(2) .quick-icon { color: #b25c26; }
.quick-path:nth-child(3) .quick-icon { color: #38766f; }
.quick-path strong { font-size: 16px; }
.quick-path small { font-size: 12px; }
.quick-path:hover { background: #faf6ff; border-color: #bfacce; }
.quick-icon { width: 44px; height: 44px; border-radius: 14px; background: #f5f0f9; display: grid; place-items: center; }
.section-head h2 { font-size: clamp(30px, 3vw, 39px); }
.section-head .section-kicker { color: #8b5734; font-size: 12px; }
.section-head p { font-size: 15px; line-height: 1.8; }
.updated-label { display: inline-flex; gap: 7px; align-items: center; color: #53725d; font-size: 11px; margin-top: 16px; padding: 6px 11px; background: #edf4eb; border: 1px solid #dce8d7; border-radius: 999px; }
.updated-label > span { width: 5px; height: 5px; background: #46785a; border-radius: 50%; }
.sign-card { border-top: 3px solid color-mix(in srgb, var(--sign) 45%, white); background: linear-gradient(160deg, #fff 0%, #fff 70%, #faf7fc); border-radius: 18px; box-shadow: var(--shadow); }
.sign-card:hover { border-color: color-mix(in srgb, var(--sign) 55%, white); }
.sign-card-sym { background: color-mix(in srgb, var(--sign) 9%, white); width: 50px; height: 50px; border: 1px solid color-mix(in srgb, var(--sign) 16%, white); }
.sign-card-name { font-size: 17px; }
.sign-card-range { font-size: 11px; }
.sign-card-teaser { font-size: 13px; }
.sign-card-link { font-size: 12px; padding-top: 14px; }
.stars { font-size: 13px; }
.chip { font-size: 11px; }
.tool-card { box-shadow: var(--shadow); border-radius: 18px; }
.tool-card h3 { font-size: 19px; }
.tool-card p { font-size: 14px; }
.tool-card-cta { font-size: 13px; color: #5f3b7a; }
.tool-card-icon { width: 54px; height: 54px; border-radius: 16px; background: #fff0db; }
.tool-card:nth-child(3n + 2) .tool-card-icon { background: #eee7f9; color: #76539e; }
.tool-card:nth-child(3n) .tool-card-icon { background: #e7f3f0; color: #33786e; }
.window-col { background: #f1f6ef; }
.window-bad { background: #fff1e9; }
.lang-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.lang-tile.locale-art-tile { padding: 0 0 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow); border-radius: 16px; gap: 3px; }
.locale-art-tile img { width: 100%; height: 116px; object-fit: cover; display: block; margin-bottom: 12px; }
.locale-art-tile .lang-native { font-weight: 600; font-size: 17px; }
.locale-art-tile .lang-en { font-size: 11px; }
.cta-band { background: radial-gradient(ellipse at 80% 0%, #583b69, transparent 65%), #241737; border: 1px solid #785483; }
.cta-band .btn-primary { background: #edc283; color: #2b1a35; }
.cta-band .cta-note { color: #d0c1da; }
.mobile-dock a[aria-current="page"] { background: #f2eaf7; color: #6d458c; }
.mobile-dock a { color: #736880; }
.mobile-dock { border-top-color: #e7ddec; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: #f0eaf6; color: #65477e; }
.font-devanagari .hero-title { max-width: 16ch; font-size: clamp(36px, 4.5vw, 56px); }
.font-devanagari .hero-title-accent { font-style: normal; }
[dir="rtl"] .hero-title { max-width: 16ch; }
.hero-copy, .hero-artwork { min-width: 0; }
.hero-title, .hero-sub, .sign-card-id, .tool-card h3 { overflow-wrap: anywhere; }
.section-head h1, .section-head h2, .quick-path strong, .quick-path small { overflow-wrap: anywhere; }
.quick-path > span { min-width: 0; }
.hero-artwork .sky-almanac > div { min-width: 0; overflow-wrap: anywhere; }
html:not(.font-latin) .hero-title-accent { font-style: normal; }
:is(.font-tamil, .font-telugu, .font-kannada, .font-malayalam) .hero-title { font-size: clamp(30px, 3.6vw, 47px); line-height: 1.45; letter-spacing: 0; max-width: none; }
@media (max-width: 1024px) {
    .hero-inner { gap: 28px; }
    .hero-title { font-size: 56px; }
    .hero .hero-artwork { min-height: 350px; }
    .reassurance-row { gap: 13px; }
    .reassurance-row > span { font-size: 10px; }
    .quick-path { padding: 18px; }
    .quick-path strong { font-size: 14px; }
    .lang-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .hero-title { font-size: 46px; }
    .hero-sub { font-size: 14px; }
    .hero .hero-artwork { min-height: 350px; }
    .hero-artwork .sky-almanac { padding: 12px; gap: 10px; }
    .hero-artwork .sky-almanac strong { font-size: 14px; }
    .hero-artwork .sky-almanac > div + div { padding-inline-start: 10px; }
    .hero-artwork .sky-almanac a { width: 34px; height: 34px; }
    .quick-path small { font-size: 11px; }
}
@media (max-width: 760px) {
    .hero-title { font-size: 43px; }
    .hero-topline { margin-bottom: 20px; }
    .hero-topline time { font-size: 10px; }
    .hero-topline > span { font-size: 10px; }
    .reassurance-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .quick-path { padding: 15px; }
    .quick-path strong { font-size: 12px; }
    .quick-path small { font-size: 10px; }
    .quick-icon { width: 35px; height: 35px; border-radius: 10px; }
    .lang-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .locale-art-tile img { height: 100px; }
}
@media (max-width: 600px) {
    .hero { padding-top: 0; padding-bottom: 24px; }
    .hero-topline { padding-block: 12px; margin-bottom: 18px; }
    .hero-topline > span { font-size: 9px; letter-spacing: 0; }
    .hero-topline .ui-icon { display: none; }
    .hero-topline time { font-size: 9px; }
    .hero-inner { gap: 26px; grid-template-columns: 1fr; }
    .hero-copy { padding-top: 0; }
    .hero-title { font-size: 49px; max-width: 15ch; margin-bottom: 18px; }
    .font-devanagari .hero-title { font-size: 39px; }
    :is(.font-tamil, .font-telugu, .font-kannada, .font-malayalam) .hero-title { font-size: 32px; }
    .hero-title-accent { display: block; }
    .hero-eyebrow { font-size: 9px; line-height: 1.6; letter-spacing: .08em; }
    .hero-sub { font-size: 14px; line-height: 1.8; }
    .hero-actions { gap: 10px; flex-direction: row; }
    .hero-actions .btn { min-height: 48px; font-size: 12px; padding: 12px 15px; }
    .hero-note { font-size: 11px; }
    .hero .hero-artwork { min-height: 0; aspect-ratio: 1.35; border-radius: 19px; }
    .hero-artwork .sky-heading { padding: 6px 9px; font-size: 9px; inset-inline-start: 10px; top: 10px; margin: 0; }
    .hero-artwork .sky-almanac { padding: 10px 12px; gap: 12px; inset-inline: 10px; bottom: 10px; border-radius: 12px; }
    .hero-artwork .sky-almanac > div { flex: 1; }
    .hero-artwork .sky-almanac > div + div { border-inline-start: 1px solid #77637f; padding-inline-start: 12px; }
    .hero-artwork .sky-almanac span { font-size: 10px; }
    .hero-artwork .sky-almanac strong { font-size: 14px; }
    .hero-artwork .sky-almanac a { display: grid; width: 32px; height: 32px; }
    .hero-picker { padding: 17px 12px; margin-top: 22px; border-radius: 16px; }
    .hero-picker-head { font-size: 15px; }
    .picker-heading > span { font-size: 11px; }
    .sign-chip { background: rgba(255, 255, 255, .06); }
    .sign-chip-name { font-size: 11px; }
    .sign-chip-sym { font-size: 25px; }
    .reassurance-row { padding-block: 18px; gap: 12px 8px; }
    .reassurance-row > span { font-size: 9px; align-items: start; line-height: 1.6; }
    .reassurance-row .ui-icon { width: 14px; height: 14px; }
    .quick-paths { margin-top: 22px; }
    .quick-path { padding: 14px 10px; }
    .quick-path small { font-size: 10px; }
    .section-head h2 { font-size: 29px; }
    :is(.font-tamil, .font-telugu, .font-kannada, .font-malayalam) .section-head h2 { font-size: 25px; line-height: 1.5; }
    .section-head .section-kicker { font-size: 10px; }
    .section-head p { font-size: 14px; }
    .updated-label { font-size: 10px; margin-top: 12px; }
    .sign-card { padding: 16px; }
    .sign-card-name { font-size: 16px; }
    .sign-card-sym { width: 44px; height: 44px; }
    .sign-card-teaser { font-size: 12px; }
    .sign-card-range { font-size: 10px; }
    .sign-card-link { font-size: 11px; }
    .chip { font-size: 10px; }
    .tool-card h3 { font-size: 17px; }
    .tool-card p { font-size: 13px; }
    .tool-card-icon { width: 44px; height: 44px; }
    .tool-card-cta { font-size: 12px; }
    .lang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .locale-art-tile img { height: 92px; }
    .locale-art-tile .lang-native { font-size: 16px; }
    .locale-art-tile .lang-en { font-size: 10px; }
}
@media (max-width: 360px) {
    .hero-title { font-size: 44px; }
    .font-devanagari .hero-title { font-size: 35px; }
    .hero-actions .btn { width: 100%; }
    .hero-artwork .sky-almanac strong { font-size: 12px; }
    .hero-artwork .sky-almanac { gap: 8px; padding: 9px; }
    .sign-card { padding: 13px; }
    .sign-card-name { font-size: 14px; }
}
@media print {
    body { padding-bottom: 0; background: #fff; }
    .mobile-dock, .quick-paths, .hero-sky, .hero-picker { display: none !important; }
    .reading-grid > aside { position: static; }
    .section { padding-block: 20px; }
}
