:root {
  color-scheme: light;
  --navy-950: #0b1728;
  --navy-900: #10223b;
  --navy-800: #183557;
  --blue-700: #1f4c8f;
  --blue-100: #e9f0fa;
  --gold-500: #d9a744;
  --gold-300: #f0ce83;
  --ivory: #fbfaf6;
  --paper: #ffffff;
  --ink: #172840;
  --muted: #58677a;
  --line: #dbe2ea;
  --error: #a12634;
  --warning-bg: #fff6df;
  --shadow: 0 18px 50px rgba(18, 38, 65, .09);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); }
button, input, select { font: inherit; }
a { color: var(--blue-700); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #5686d8; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--navy-950); font-weight: 600; line-height: 1.12; }
h1 { font-size: clamp(2.35rem, 6vw, 4.8rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); letter-spacing: -.025em; }
h3 { font-size: 1.35rem; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 20; background: white; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.site-header { position: relative; z-index: 10; background: rgba(251, 250, 246, .97); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.75rem; max-width: 90rem; margin: auto; padding: .8rem clamp(1rem, 4vw, 3rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--navy-950); font-size: 1.25rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.brand b { color: #a16e13; }
.brand-mark { display: grid; place-items: center; width: 2.2rem; aspect-ratio: 1; border: 1px solid var(--gold-500); border-radius: 50%; color: var(--navy-900); font: 700 .68rem/1 system-ui, sans-serif; letter-spacing: .06em; }
.primary-nav, .account-nav { display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1.5rem); }
.primary-nav a, .account-nav > a, .link-button { color: #2b3c52; font-size: .9rem; font-weight: 650; text-decoration: none; }
.account-nav form { margin: 0; }
.link-button { border: 0; background: transparent; padding: .35rem 0; cursor: pointer; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .65rem 1.15rem; border: 1px solid transparent; border-radius: .4rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.button.compact { min-height: 2.5rem; padding: .45rem .85rem; background: var(--navy-900); color: white; }
.button.primary { background: var(--navy-900); color: white; }
.button.primary:hover, .button.compact:hover { background: var(--navy-800); }
.button.secondary { border-color: #9cabbc; background: white; color: var(--navy-900); }
.button.gold { background: var(--gold-300); color: var(--navy-950); }
.button.gold:hover { background: #f8da9a; }
.button.ghost { border-color: #7187a5; color: white; background: transparent; }
.button.wide { width: 100%; }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.eyebrow { margin-bottom: .6rem; color: #966615; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.light { color: var(--gold-300); }
.lede { max-width: 52rem; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.lede.small { font-size: 1rem; }
.home-hero { position: relative; overflow: hidden; color: white; background: var(--navy-950); }
.home-hero::after { content: ""; position: absolute; width: 50rem; height: 50rem; right: -25rem; top: -29rem; border: 1px solid rgba(240, 206, 131, .2); border-radius: 50%; box-shadow: 0 0 0 6rem rgba(240, 206, 131, .025), 0 0 0 12rem rgba(240, 206, 131, .02); }
.hero-inner { position: relative; z-index: 1; display: grid; align-items: center; gap: 3rem; min-height: 39rem; max-width: 90rem; margin: auto; padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem); }
.hero-copy h1 { max-width: 13ch; color: white; }
.hero-lede { max-width: 45rem; color: #c9d5e5; font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
.hero-copy .button-row { margin-top: 2rem; }
.foundation-note { margin: 1.4rem 0 0; color: #9eafc3; font-size: .85rem; }
.hero-chart { display: none; place-items: center; }
.zodiac-ring { position: relative; width: min(31rem, 38vw); aspect-ratio: 1; border: 1px solid rgba(240, 206, 131, .55); border-radius: 50%; box-shadow: inset 0 0 0 4.2rem rgba(255,255,255,.018), inset 0 0 0 calc(4.2rem + 1px) rgba(240, 206, 131, .18); }
.zodiac-ring::before, .zodiac-ring::after { content: ""; position: absolute; inset: 27%; border: 1px solid rgba(240, 206, 131, .5); transform: rotate(45deg); }
.zodiac-ring::after { transform: rotate(0deg); }
.zodiac-ring span { position: absolute; left: calc(50% - 1rem); top: calc(50% - .75rem); width: 2rem; text-align: center; color: #dce6f4; font-size: .72rem; transform: rotate(calc(var(--n) * 30deg)) translateY(-13.7rem) rotate(calc(var(--n) * -30deg)); }
.zodiac-ring span:nth-child(1) { --n: 0; }.zodiac-ring span:nth-child(2) { --n: 1; }.zodiac-ring span:nth-child(3) { --n: 2; }.zodiac-ring span:nth-child(4) { --n: 3; }.zodiac-ring span:nth-child(5) { --n: 4; }.zodiac-ring span:nth-child(6) { --n: 5; }.zodiac-ring span:nth-child(7) { --n: 6; }.zodiac-ring span:nth-child(8) { --n: 7; }.zodiac-ring span:nth-child(9) { --n: 8; }.zodiac-ring span:nth-child(10) { --n: 9; }.zodiac-ring span:nth-child(11) { --n: 10; }.zodiac-ring span:nth-child(12) { --n: 11; }
.zodiac-ring i { position: absolute; inset: 45%; display: grid; place-items: center; color: var(--gold-300); font: 600 1rem Georgia, serif; }
.trust-strip { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 90rem; margin: auto; padding: 1.2rem clamp(1rem, 5vw, 4rem); background: white; border: 1px solid var(--line); border-top: 0; }
.trust-strip div { padding: .5rem; text-align: center; }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong { color: var(--navy-900); font-family: Georgia, serif; }
.trust-strip span { color: var(--muted); font-size: .78rem; }
.section, .page-shell, .result-shell { max-width: 90rem; margin-inline: auto; padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem); }
.section-heading { max-width: 58rem; margin-bottom: 2.5rem; }
.section-heading > p:last-child { max-width: 47rem; color: var(--muted); font-size: 1.08rem; }
.section-heading.narrow { max-width: 43rem; }
.feature-grid { display: grid; gap: 1rem; }
.feature-card { min-height: 17rem; padding: 1.7rem; background: white; border: 1px solid var(--line); box-shadow: 0 8px 26px rgba(18,38,65,.04); }
.feature-card.featured { background: var(--navy-900); color: #dce6f4; border-color: var(--navy-900); }
.feature-card.featured h3, .feature-card.featured a { color: white; }
.feature-card p { color: var(--muted); }
.feature-card.featured p { color: #c1cfe0; }
.feature-card a { display: inline-block; margin-top: 1rem; font-weight: 750; }
.card-kicker, .card-label { color: #9b6b18; font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.featured .card-kicker { color: var(--gold-300); }
.process-section { border-top: 1px solid var(--line); }
.process-list { display: grid; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-list li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.process-list li > span { color: #a16e13; font-weight: 800; }
.process-list h3 { margin-bottom: .3rem; }
.process-list p { margin: 0; color: var(--muted); }
.learning-band { display: grid; gap: 2.5rem; max-width: 82rem; margin-bottom: 5rem; background: var(--navy-900); color: #dbe6f5; }
.learning-band h2 { color: white; }
.learning-band p:not(.eyebrow) { max-width: 42rem; color: #c4d2e3; }
.lesson-stack { display: grid; gap: .65rem; align-content: center; }
.lesson-stack span { padding: 1rem 1.2rem; color: white; background: rgba(255,255,255,.06); border-left: 2px solid var(--gold-500); }
.page-shell, .result-shell { min-height: 60vh; }
.page-intro { max-width: 57rem; margin-bottom: 2rem; }
.page-intro h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.notice { display: flex; align-items: flex-start; gap: .75rem; margin: 1rem 0 1.5rem; padding: 1rem; border: 1px solid #b8c8dc; background: var(--blue-100); color: #243f65; }
.notice strong { flex: 0 0 auto; }
.notice.warning { border-color: #e2c36f; background: var(--warning-bg); color: #694b10; }
.notice.error { border-color: #d8a1a8; background: #fff1f2; color: var(--error); }
.generator-layout { display: grid; align-items: start; gap: 1.5rem; }
.generator-form { display: grid; gap: 1rem; }
.form-section, .generator-aside, .result-card, .auth-card, .planned-hero { padding: clamp(1.2rem, 3vw, 2rem); background: white; border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(18,38,65,.04); }
.form-section-heading { display: grid; grid-template-columns: 2.2rem 1fr; gap: .8rem; margin-bottom: 1.4rem; }
.form-section-heading > span { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 1px solid var(--gold-500); border-radius: 50%; font-weight: 800; }
.form-section-heading h2 { margin-bottom: .25rem; font-size: 1.5rem; }
.form-section-heading p { margin: 0; color: var(--muted); }
.field-grid { display: grid; gap: 1rem; }
.form-field label, .stack-form label { display: block; margin-bottom: .35rem; font-size: .9rem; font-weight: 750; color: #2a3c54; }
.form-field input, .form-field select, .stack-form input { width: 100%; min-height: 3rem; padding: .65rem .75rem; color: var(--ink); background: white; border: 1px solid #9cabbc; border-radius: .3rem; }
.form-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #52657c 50%), linear-gradient(135deg, #52657c 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-field.has-error input, .form-field.has-error select { border-color: var(--error); }
.help-text, .field-error { margin: .3rem 0 0; font-size: .8rem; }
.help-text { color: var(--muted); }.field-error { color: var(--error); font-weight: 650; }
.location-autocomplete { position: relative; }
.location-results { position: absolute; z-index: 15; top: calc(100% - 1.1rem); left: 0; right: 0; max-height: 19rem; overflow-y: auto; padding: .35rem; background: white; border: 1px solid #9cabbc; border-radius: .3rem; box-shadow: var(--shadow); }
.location-results button { display: block; width: 100%; padding: .65rem .7rem; color: var(--ink); text-align: left; background: white; border: 0; border-radius: .2rem; cursor: pointer; }
.location-results button:hover, .location-results button[aria-selected="true"] { background: var(--blue-100); }
.location-empty, .location-status, .geonames-attribution { color: var(--muted); font-size: .8rem; }
.location-empty { margin: 0; padding: .65rem .7rem; }
.location-status { min-height: 1.2rem; margin: .3rem 0 0; }
.geonames-attribution { margin: 1rem 0 0; }
.check-field { margin-top: 1rem; }
.check-field input { width: 1.1rem; height: 1.1rem; vertical-align: -.18rem; }
.future-options { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.future-options span { padding: .35rem .6rem; border: 1px dashed #a9b4c2; color: var(--muted); font-size: .78rem; }
.advanced-fields { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.advanced-fields summary { cursor: pointer; font-weight: 750; }
.advanced-fields .field-grid { margin-top: 1rem; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1rem 0; }
.form-actions p { margin: 0; color: var(--muted); font-size: .82rem; }
.generator-aside { position: sticky; top: 1rem; }
.generator-aside h2 { font-size: 1.4rem; }
.generator-aside ul { padding-left: 1.2rem; color: var(--muted); }
.generator-aside li + li { margin-top: .65rem; }
.aside-note { padding: .9rem; background: var(--ivory); color: var(--muted); font-size: .85rem; }
.result-shell { padding-top: 2rem; }
.result-header { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; margin: 2rem 0; }
.result-header h1 { margin-bottom: .4rem; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.result-header p:last-child { color: var(--muted); }
.time-adjustment { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1rem 1.2rem; background: var(--navy-900); color: white; }
.time-adjustment p { margin: 0; }.time-adjustment .eyebrow { color: var(--gold-300); }
.time-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.time-controls > span { color: #cbd7e6; font-size: .8rem; margin-left: .4rem; }
.time-controls button { min-width: 2.2rem; min-height: 2.2rem; border: 1px solid #7288a6; background: #1b3658; color: white; }
.time-controls button:disabled { opacity: .55; }
.time-controls .reset-button { padding-inline: .7rem; }
.result-tabs { display: flex; overflow-x: auto; gap: .1rem; margin: 1rem 0; border-bottom: 1px solid var(--line); }
.result-tabs a { flex: 0 0 auto; padding: .8rem 1rem; color: var(--muted); text-decoration: none; font-weight: 700; }
.result-tabs a[aria-current] { color: var(--navy-900); border-bottom: 3px solid var(--gold-500); }
.result-grid, .deferred-grid, .dashboard-grid { display: grid; gap: 1rem; }
.result-card { min-width: 0; box-shadow: none; }
.card-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.card-header h2 { margin: 0; font-size: 1.45rem; }
.segmented { display: flex; padding: .2rem; background: #eef2f7; border-radius: .35rem; }
.segmented a { padding: .4rem .65rem; color: #4e5f73; font-size: .8rem; font-weight: 700; text-decoration: none; border-radius: .25rem; }
.segmented a[aria-current] { color: var(--navy-900); background: white; box-shadow: 0 1px 4px rgba(18,38,65,.15); }
.vedic-chart { display: block; width: min(100%, 37rem); height: auto; margin-inline: auto; }
.chart-surface { fill: #fbfcfe; stroke: #7188a4; stroke-width: 2; }
.chart-line { fill: none; stroke: #8295ab; stroke-width: 1.5; }
.chart-text { fill: #40546d; font: 500 15px system-ui, sans-serif; text-anchor: middle; }
.chart-text .planet-text { fill: #173e76; font-weight: 800; }
.chart-text .chart-center { fill: #9c6b18; font: 600 30px Georgia, serif; }
.chart-text .chart-caption { fill: #66778b; font-size: 13px; }
.placement-list { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.placement-list summary { cursor: pointer; font-weight: 750; }
.placement-list ul { columns: 2; padding-left: 1.2rem; color: var(--muted); }
.summary-card dl, .dashboard-grid dl { margin: 1.2rem 0; }
.summary-card dl div, .dashboard-grid dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); } dd { margin: 0; font-weight: 700; text-align: right; }
.fixture-note { padding: .8rem; background: var(--warning-bg); color: #705315; font-size: .8rem; }
.table-card { margin-top: 1rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: .75rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
tbody th { color: var(--navy-900); }
.deferred-grid { margin-top: 1rem; }
.deferred-grid p:last-child { color: var(--muted); }
.dasha-card { margin-top: 1rem; }
.kp-summary { margin-top: 1rem; }
.ai-card { margin-top: 1rem; }
.ai-intro { color: var(--muted); }
.ai-card form { display: grid; gap: .75rem; max-width: 52rem; }
.ai-card textarea { width: 100%; padding: .75rem; border: 1px solid #9cabbc; border-radius: .3rem; resize: vertical; font: inherit; }
.ai-card form .button { justify-self: start; }
.ai-status { min-height: 1.5rem; margin: 1rem 0; color: var(--muted); }
.ai-output { padding-top: 1rem; border-top: 1px solid var(--line); }
.ai-output > h3 { margin-top: 1.5rem; font-size: 1.35rem; }
.ai-themes { display: grid; gap: .75rem; }
.ai-themes article { padding: 1rem; background: #f5f7fa; border-left: 3px solid var(--gold-500); }
.ai-themes h4 { margin: 0 0 .4rem; color: var(--navy-900); font: 700 1rem/1.3 Georgia, serif; }
.ai-themes p { margin-bottom: .5rem; }
.ai-themes small { color: var(--muted); overflow-wrap: anywhere; }
.kp-analysis-context { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; padding: 1rem; }
.kp-analysis-context h3 { margin-bottom: .5rem; font-size: 1rem; }
.kp-analysis-context p { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin: 0; color: var(--muted); }
.kp-analysis-context span { white-space: nowrap; }
.dasha-summary { display: grid; gap: .75rem; margin-bottom: 1rem; }
.dasha-summary div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem; background: #f5f7fa; }
.dasha-summary span { color: var(--muted); }
.dasha-periods { display: grid; gap: .65rem; margin-top: 1rem; }
.dasha-periods details { border: 1px solid var(--line); }
.dasha-periods summary { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; cursor: pointer; }
.dasha-periods summary span { color: var(--muted); font-variant-numeric: tabular-nums; }
.dasha-periods .table-scroll { padding: 0 1rem 1rem; }
.antardasha-periods { display: grid; gap: .5rem; padding: 0 .75rem .75rem; }
.dasha-periods details.antardasha { background: #fbfcfe; }
.dasha-periods details.antardasha summary { padding: .75rem; }
.topic-grid { display: grid; gap: 1rem; }
.topic-card { padding: 1.4rem; background: white; border: 1px solid var(--line); }
.topic-card h2 { font-size: 1.35rem; }.topic-card p { margin: 0; color: var(--muted); }
.planned-hero { max-width: 56rem; margin-inline: auto; padding-block: clamp(2rem, 7vw, 5rem); text-align: center; }
.planned-hero .lede { margin-inline: auto; }
.planned-hero .notice { text-align: left; }
.auth-shell { display: grid; place-items: center; min-height: 70vh; padding: 3rem 1rem; }
.auth-card { width: min(100%, 31rem); }
.auth-card h1 { font-size: 2.4rem; }
.stack-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.stack-form ul, .errorlist { color: var(--error); font-size: .82rem; }
.stack-form .helptext { display: block; margin-top: .3rem; color: var(--muted); font-size: .78rem; }
.auth-note { margin: 1rem 0 0; text-align: center; color: var(--muted); font-size: .88rem; }
.dashboard-grid .result-card { min-height: 15rem; }
.dashboard-grid .button { margin-top: 1rem; }
.site-footer { color: #c6d2e2; background: var(--navy-950); }
.footer-grid { display: grid; gap: 2rem; max-width: 90rem; margin: auto; padding: 3rem clamp(1rem, 5vw, 4rem); }
.footer-grid > div:first-child p { max-width: 27rem; }
.footer-brand { color: white; margin-bottom: 1rem; }
.footer-grid h2 { color: white; font: 700 .78rem system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid a:not(.brand) { display: block; margin: .45rem 0; color: #d6e1ef; }
.footer-grid p { color: #9fb0c6; }
.footer-bottom { margin: 0; padding: 1rem clamp(1rem, 5vw, 4rem); border-top: 1px solid #263b58; color: #8fa2ba; text-align: center; font-size: .78rem; }

@media (min-width: 42rem) {
  .field-grid.two, .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .learning-band, .dashboard-grid { grid-template-columns: 1.2fr 1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr; }
  .dasha-summary { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 60rem) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; }
  .hero-chart { display: grid; }
  .trust-strip { grid-template-columns: repeat(4, 1fr); }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .process-list { grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); }
  .process-list li { grid-template-columns: 1fr; padding: 1.5rem; border-right: 1px solid var(--line); }
  .generator-layout { grid-template-columns: minmax(0, 1fr) 20rem; }
  .result-grid { grid-template-columns: minmax(0, 1.5fr) minmax(17rem, .7fr); }
  .deferred-grid { grid-template-columns: repeat(3, 1fr); }
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 54rem) {
  .header-inner { flex-wrap: wrap; }
  .primary-nav { order: 3; width: 100%; overflow-x: auto; padding-top: .65rem; border-top: 1px solid var(--line); }
  .account-nav { margin-left: auto; }
}
@media (max-width: 34rem) {
  .account-nav > a:not(.button) { display: none; }
  .placement-list ul { columns: 1; }
  .notice { display: block; }.notice strong { display: block; margin-bottom: .3rem; }
  .result-header .button-row, .result-header .button { width: 100%; }
  .dasha-periods summary { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
