/* Vaastu Ginie shared styles (all pages) */
/* Layout: one narrow column like a site-survey card; the 3x3 mandala grid is the hero, a live score rides in a bottom bar. */
:root {
  --bg: #F1F2EC; --surface: #FFFFFF; --sunk: #E6E8E0; --ink: #1D2433; --muted: #5C6474; --line: #D5D8CE;
  --accent: #A85C0C; --accent-soft: #F6E7D2; --on-accent: #FFFFFF;
  --ideal: #2C7A4D; --ideal-soft: #DDEFE3; --ok: #946A06; --ok-soft: #F5EBCB; --avoid: #B0372B; --avoid-soft: #F7DEDA;
  --font-display: "Rozha One", "Noto Serif", Georgia, serif;
  --font-body: "Hind", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 10px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #13161D; --surface: #1B1F28; --sunk: #232834; --ink: #E8E9E3; --muted: #9CA2AF; --line: #2E3441;
  --accent: #E39A3B; --accent-soft: #3A2A16; --on-accent: #1B1408;
  --ideal: #63C28B; --ideal-soft: #1C3326; --ok: #E2B54C; --ok-soft: #3A3015; --avoid: #EE7B6A; --avoid-soft: #3E1F1B;
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #13161D; --surface: #1B1F28; --sunk: #232834; --ink: #E8E9E3; --muted: #9CA2AF; --line: #2E3441;
  --accent: #E39A3B; --accent-soft: #3A2A16; --on-accent: #1B1408;
  --ideal: #63C28B; --ideal-soft: #1C3326; --ok: #E2B54C; --ok-soft: #3A3015; --avoid: #EE7B6A; --avoid-soft: #3E1F1B;
  color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font-body); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: 560px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 12px 120px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px 16px; }
.brand { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; text-align: left; }
.brand svg { flex: none; }
.brand b { font: 26px/1 var(--font-display); letter-spacing: .01em; }
.brand small { display: block; color: var(--muted); font-size: 13px; line-height: 1.2; }
.ghost { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; }

h1, h2 { font-family: var(--font-display); font-weight: 400; text-wrap: balance; margin: 0; }
h1 { font-size: 30px; line-height: 1.15; }
h2 { font-size: 21px; line-height: 1.2; }
.lede { color: var(--muted); margin: 8px 0 0; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--r); padding: 12px 18px; font-weight: 600; background: var(--accent); color: var(--on-accent); }
.btn.secondary { background: var(--sunk); color: var(--ink); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Home */
.hero { display: grid; gap: 16px; padding-block: 8px 24px; }
.list { display: grid; gap: 10px; margin-top: 12px; }
.prop { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; width: 100%; text-align: left; }
.prop .meta { min-width: 0; }
.prop .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prop .sub { color: var(--muted); font-size: 14px; }
.sample-tag { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* Steps */
.step { padding-block: 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.step-head { display: flex; gap: 12px; align-items: baseline; }
.step-num { font: 500 13px/1 var(--font-mono); color: var(--accent); }
.field { display: grid; gap: 6px; }
.field input, .field select { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.seg button { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; text-align: left; }
.seg button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }

/* Compass dial */
.dial { position: relative; width: min(300px, 100%); aspect-ratio: 1; max-width: 100%; margin: 4px auto 0; }
.dial .ring { position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed var(--line); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 13px; padding: 12px; }
.dial .ring b { display: block; font: 22px/1.1 var(--font-display); color: var(--ink); }
.dial button { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font: 500 15px var(--font-mono); transform: translate(-50%, -50%); }
.dial button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Mandala grid */
.grid-wrap { display: grid; gap: 6px; justify-items: center; }
.north { font: 500 12px var(--font-mono); color: var(--accent); display: flex; flex-direction: column; align-items: center; line-height: 1; }
.mandala { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; max-width: 420px; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 4px; background: var(--surface); }
.cell { position: relative; border: 1px solid var(--line); background: transparent; padding: 22px 4px 4px; display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: center; gap: 4px; min-width: 0; overflow: hidden; }
.cell .z { position: absolute; top: 4px; left: 6px; font: 500 11px var(--font-mono); color: var(--muted); }
.cell.c { background: var(--sunk); }
.cell.c .z::after { content: " Brahmasthan"; font-family: var(--font-body); letter-spacing: 0; }
.cell.armed:hover, .cell.armed:focus-visible { background: var(--accent-soft); }
.tok { border: 0; border-radius: 6px; padding: 2px 7px; font-size: 12px; font-weight: 600; line-height: 1.5; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tok.ideal { background: var(--ideal-soft); color: var(--ideal); }
.tok.acceptable { background: var(--ok-soft); color: var(--ok); }
.tok.avoid { background: var(--avoid-soft); color: var(--avoid); }
.hint { font-size: 14px; color: var(--muted); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { font: 500 11px var(--font-mono); margin-left: 4px; opacity: .7; }

/* Shape picker */
.shapes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.shape { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; text-align: left; font-size: 14px; line-height: 1.3; }
.shape[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.shape svg { color: var(--ink); }

/* Live bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.bar-in { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.bar .live { flex: 1; min-width: 0; }
.bar .live b { font: 24px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.bar .live span { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Result */
.score-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding-block: 8px 20px; }
.gauge text { font-family: var(--font-display); }
.band { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600; }
.band.excellent, .band.good { background: var(--ideal-soft); color: var(--ideal); }
.band.average { background: var(--ok-soft); color: var(--ok); }
.band.attention { background: var(--avoid-soft); color: var(--avoid); }
.cap { background: var(--avoid-soft); color: var(--avoid); border-radius: var(--r); padding: 10px 12px; font-size: 14px; }
.issues { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.issue { display: grid; grid-template-columns: 6px 1fr; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.issue .stripe { border-radius: 3px; }
.issue .stripe.avoid { background: var(--avoid); }
.issue .stripe.acceptable { background: var(--ok); }
.issue .stripe.ideal { background: var(--ideal); }
.issue .t { font-weight: 600; }
.issue .t small { font: 500 12px var(--font-mono); color: var(--muted); margin-left: 6px; }
.issue p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.issue .fix { color: var(--ink); }
.issue .fix::before { content: "Remedy: "; font-weight: 600; }
.lock { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 10px; text-align: center; }
.lock .price { font: 26px/1 var(--font-display); }
.demo-note { font-size: 12px; color: var(--muted); }
.disclaimer { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 20px; }
.share { display: flex; gap: 8px; }
.share input { flex: 1; min-width: 0; background: var(--sunk); border: 0; border-radius: var(--r); padding: 10px 12px; font: 500 12px var(--font-mono); }

/* Compare */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
td.num { font: 22px/1 var(--font-display); font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }

.nav { display: flex; gap: 6px; flex: none; }
.nav .ghost { padding: 6px 12px; }
.brand b { white-space: nowrap; }
@media (max-width: 420px) {
  .brand small { display: none; }
  .brand b { font-size: 22px; }
  .nav .ghost { padding: 5px 10px; font-size: 13px; }
}
.swatches { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.sw { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sw i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); flex: none; }
.zone-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; }
.zone-panel h2 small { font: 500 13px var(--font-mono); color: var(--muted); margin-left: 6px; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 6px 12px; font-size: 15px; }
.kv dt { color: var(--muted); font-size: 13px; padding-top: 2px; }
.kv dd { margin: 0; min-width: 0; }
.cell.picked { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.cell .el { font-size: 12px; color: var(--muted); align-self: center; margin-top: 8px; width: 100%; text-align: center; }
.room-colours { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.room-colours li { display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cta { display: grid; gap: 6px; background: var(--accent-soft); border-radius: var(--r); padding: 14px 16px; }
.cta a { color: var(--accent); font-weight: 600; }
/* Contact */
.contact-grid { display: grid; gap: 16px; margin-top: 16px; }
.org { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 10px; }
.org h2 small { display: block; font: 500 13px var(--font-body); color: var(--muted); margin-top: 2px; }
.org .row { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: baseline; gap: 6px 10px; }
.org .row button { grid-column: 2; justify-self: start; }
#org-email { white-space: nowrap; }
.org .row span { min-width: 0; }
.org .k { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.form { display: grid; gap: 14px; }
.form textarea { width: 100%; min-height: 130px; resize: vertical; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; font: inherit; color: inherit; }
.form .opt { font-weight: 400; text-transform: none; letter-spacing: 0; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--r); padding: 12px 14px; font-size: 15px; }
.notice.ok { background: var(--ideal-soft); color: var(--ideal); }
.notice.err { background: var(--avoid-soft); color: var(--avoid); }
.notice.info { background: var(--sunk); color: var(--muted); }
.field input:invalid:not(:placeholder-shown), .form textarea:invalid:not(:placeholder-shown) { border-color: var(--avoid); }
footer.site { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
footer.site b { color: var(--ink); font-weight: 600; }
footer.site .link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px; font-size: 14px; z-index: 9; }
@media (prefers-reduced-motion: no-preference) { .gauge .arc { transition: stroke-dashoffset .6s ease; } }

/* ---------- shared header / menu (all pages) ---------- */
a { color: var(--accent); }
.brand { text-decoration: none; color: var(--ink); }
.nav { align-items: center; }
.navlink { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: 999px; }
.navlink:hover, .navlink[aria-current="page"] { background: var(--sunk); }
.navlink.hot { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.menu-btn { display: inline-flex; align-items: center; gap: 6px; }
.menu { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: 64px; z-index: 20; width: min(300px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgba(20, 24, 33, .18); padding: 8px; display: grid; }
.menu a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.menu a small { color: var(--muted); font-size: 13px; }
.menu a:hover, .menu a:focus-visible { background: var(--sunk); }
header.top { position: relative; }
@media (max-width: 560px) { .navlink.wide { display: none; } }

/* ---------- content blocks ---------- */
.section { margin-top: 28px; display: grid; gap: 12px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-head a { font-size: 14px; font-weight: 600; text-decoration: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 10px; }
.card.feature { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.big { font: 26px/1.15 var(--font-display); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tool { display: grid; gap: 4px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); min-width: 0; }
.tool:hover { border-color: var(--accent); }
.tool b { font-size: 15px; }
.tool span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.tool .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 4px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.fact { display: grid; gap: 1px; min-width: 0; }
.fact .label { font-size: 11px; }
.fact b { font-weight: 600; font-size: 15px; }
.fact span { font-size: 13px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; }
.pill.good { background: var(--ideal-soft); color: var(--ideal); }
.pill.neutral { background: var(--ok-soft); color: var(--ok); }
.pill.bad { background: var(--avoid-soft); color: var(--avoid); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.linklist { display: flex; flex-wrap: wrap; gap: 8px; }
.linklist a { text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.linklist a:hover { border-color: var(--accent); }
.quiz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quiz-opts button { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; text-align: left; font-weight: 500; }
.quiz-opts button.right { border-color: var(--ideal); background: var(--ideal-soft); color: var(--ideal); }
.quiz-opts button.wrong { border-color: var(--avoid); background: var(--avoid-soft); color: var(--avoid); }
.quiz-opts button:disabled { cursor: default; }
.streak { font: 500 13px var(--font-mono); color: var(--accent); }
details.faq { border-bottom: 1px solid var(--line); padding-block: 12px; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; color: var(--accent); font-weight: 600; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 8px 0 0; color: var(--muted); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist label { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; cursor: pointer; }
.checklist input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ideal); }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.checklist small { display: block; color: var(--muted); }
.progress { height: 8px; background: var(--sunk); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ideal); border-radius: 999px; transition: width .3s; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.row-btns .btn { flex: 1 1 140px; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.data td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; width: 34%; }
table.data td small { display: block; color: var(--muted); font-size: 13px; }
footer.site .links { display: flex; gap: 14px; flex-wrap: wrap; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--accent); }
.prose { max-width: 65ch; }
.two-up { display: grid; gap: 12px; }
@media (min-width: 640px) { .two-up { grid-template-columns: 1fr 1fr; } }
.prose p { margin: 0 0 12px; }
@media (min-width: 640px) { .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- astrology pages (kundli, matching, numerology) ---------- */
.form.birth { gap: 12px; }
.two-up.tight { gap: 12px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); margin: 0; }
.field input:disabled { opacity: .5; }
.place-field { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 15; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 28px rgba(20, 24, 33, .18); max-height: 280px; overflow-y: auto; }
.suggest li { padding: 9px 10px; border-radius: 6px; cursor: pointer; font-size: 15px; }
.suggest li:hover, .suggest li[aria-selected="true"] { background: var(--sunk); }
details.adv summary { cursor: pointer; font-size: 14px; color: var(--accent); font-weight: 600; }
details.adv[open] { display: grid; gap: 10px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.three .label { font-size: 11px; letter-spacing: .04em; }
.saved-list { gap: 6px; }
.saved-list .chip { font-size: 13px; padding: 4px 10px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-inline: -2px; padding-inline: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.kchart { width: 100%; max-width: 360px; height: auto; display: block; margin: 0 auto; }
.kchart text { font-family: var(--font-body); }
.charts { display: grid; gap: 14px; }
@media (min-width: 640px) { .charts.pair { grid-template-columns: 1fr 1fr; } }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.seg.small { grid-template-columns: repeat(2, auto); gap: 4px; }
.seg.small button { padding: 4px 10px; font-size: 13px; text-align: center; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th, .ptable td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ptable th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ptable td small { display: block; color: var(--muted); font-size: 12px; }
.ptable .r { color: var(--avoid); font-weight: 600; font-size: 12px; }
.dasha { display: grid; gap: 8px; }
.dasha details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.dasha details.now { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.dasha summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 11px 14px; }
.dasha summary b { font-weight: 600; }
.dasha summary span { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.dasha summary .tag { grid-column: 1 / -1; }
.dasha .sub { list-style: none; margin: 0; padding: 0 14px 10px; display: grid; }
.dasha .sub li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.dasha .sub li.now { color: var(--accent); font-weight: 600; }
.dasha .sub li span { color: var(--muted); }
.dasha .sub li.now span { color: var(--accent); }
.dasha p { margin: 0; padding: 0 14px 10px; color: var(--muted); font-size: 14px; }
.timeline-bar { display: flex; height: 26px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.timeline-bar i { display: grid; place-items: center; font: 600 10px var(--font-body); font-style: normal; color: var(--ink); border-right: 1px solid var(--surface); min-width: 0; overflow: hidden; white-space: nowrap; }
.timeline-bar i.now { background: var(--accent) !important; color: var(--on-accent); }
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.ring { width: 108px; height: 108px; }
.ring text { font-family: var(--font-display); }
.koota { display: grid; gap: 0; }
.koota .k { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.koota .k:last-child { border-bottom: 0; }
.koota .k b { font-weight: 600; }
.koota .k .pts { font: 500 14px var(--font-mono); font-variant-numeric: tabular-nums; }
.koota .k .meter { grid-column: 1 / -1; height: 6px; background: var(--sunk); border-radius: 999px; overflow: hidden; }
.koota .k .meter i { display: block; height: 100%; border-radius: 999px; }
.koota .k small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.koota .k .note { grid-column: 1 / -1; font-size: 13px; color: var(--ok); }
.loshu { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; max-width: 300px; aspect-ratio: 1; margin: 0 auto; border: 2px solid var(--ink); border-radius: 4px; background: var(--surface); }
.loshu div { border: 1px solid var(--line); display: grid; place-items: center; align-content: center; gap: 2px; text-align: center; padding: 4px; }
.loshu div b { font: 24px/1 var(--font-display); letter-spacing: .04em; }
.loshu div small { font-size: 10px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.loshu div.miss { background: var(--sunk); }
.loshu div.miss b { color: var(--muted); font-size: 15px; font-family: var(--font-body); font-weight: 500; }
.numbig { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.numbig .n { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 8px; text-align: center; display: grid; gap: 2px; }
.numbig .n b { font: 34px/1 var(--font-display); color: var(--accent); }
.numbig .n span { font-size: 12px; color: var(--muted); }
.numbig .n small { font-size: 12px; font-weight: 600; }
.tool-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-pick a { text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 14px; }
.tool-pick a[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input, .inline-form select { flex: 1 1 180px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.inline-form .btn { flex: 0 0 auto; }
.privacy { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.privacy svg { flex: none; margin-top: 2px; color: var(--ideal); }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.result-actions .btn { flex: 1 1 120px; padding: 10px 14px; }
@media print {
  header.top, footer.site, .no-print, .tabs, .toast, form.birth { display: none !important; }
  body { background: #fff; color: #000; }
  .wrap { max-width: none; padding: 0; }
  [data-panel] { display: grid !important; break-inside: avoid; }
  .card { border-color: #bbb; }
}

@media (max-width: 420px) {
  .nav { gap: 2px; }
  .navlink { padding: 6px 9px; }
  .menu-btn .mtxt { display: none; }
  .menu-btn { padding: 7px 9px; }
  .brand { gap: 8px; }
  .brand svg { width: 30px; height: 30px; }
  .brand b { font-size: 21px; }
}
@media (max-width: 350px) { .navlink:not(.hot) { display: none; } }
/* simple two-column lists (panchang, kundli, numerology) */
.tlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tlist li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.tlist li:last-child { border-bottom: 0; }
.tlist li b { font-weight: 600; }
.tlist li span { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
/* rashifal */
.stars-big { font-size: 22px; letter-spacing: 2px; color: var(--accent); }
.stars-small, .rcard .stars { font-size: 13px; letter-spacing: 1px; color: var(--accent); }
.rcard b small { font-weight: 400; }
.remedy { margin: 0; padding-left: 18px; }
.remedy li { margin: 4px 0; }
.pred h3 { font: 600 16px/1.3 var(--font-body); margin: 0; }
.pred .tag { font-size: 12px; font-weight: 600; color: var(--muted); }
.sw2 { display: grid; gap: 8px; font-size: 14px; }
@media (min-width: 520px) { .sw2 { grid-template-columns: 1fr 1fr; } }
/* account */
.code-input { font: 500 26px/1 var(--font-mono) !important; letter-spacing: 8px; text-align: center; }
.person { gap: 8px; }
.person-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.person-head b { font-size: 17px; }
.row-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.row-links a { text-decoration: none; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; }
.plist li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.plist li:last-child { border-bottom: 0; }
.plist li small { display: block; color: var(--muted); font-size: 13px; }
.plist .acts { display: flex; gap: 12px; flex: none; font-size: 14px; font-weight: 600; }
.plist .acts a { text-decoration: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--avoid); font-weight: 600; font-size: 14px; }
.check a { color: var(--accent); }

/* =====================================================================================
   v2 clean-up (Oct 2026): quieter type, fewer boxes, grouped navigation, mandala home.
   Later rules here deliberately override the older ones above.
   ===================================================================================== */
.wrap { max-width: 640px; padding-block: 8px 96px; }
@media (min-width: 900px) { .wrap { max-width: 720px; } }
h1 { font-size: 32px; line-height: 1.12; letter-spacing: -.005em; }
h2 { font-size: 22px; }
.lede { font-size: 17px; max-width: 60ch; }

/* labels: sentence case, no tracking, no caps */
.label, .kicker, th, table.data th, .ptable th, .three .label, .fact .label, .org .k, .sample-tag {
  text-transform: none !important; letter-spacing: 0 !important; font-size: 13px; font-weight: 600;
}
.kicker { color: var(--muted); }
.card.feature .kicker { color: var(--accent); }
table.data th { color: var(--muted); font-weight: 500; }

/* surfaces: one level of box, no borders unless it is an input or the one featured thing */
.card { border-color: transparent; padding: 18px; gap: 12px; }
.card.feature { background: var(--surface); border: 1px solid var(--accent); }
.tool { border-color: transparent; }
.tool:hover { border-color: var(--line); }
.tool .ic { display: none; }
.section { margin-top: 36px; gap: 14px; }
.notice.info { background: var(--surface); }

/* header */
header.top { padding-block: 10px 18px; gap: 8px; }
.brand { gap: 9px; }
.brand b { font-size: 24px; }
.brand small { display: none; }
.nav { gap: 2px; align-items: center; }
.navlink { font-size: 15px; padding: 6px 10px; color: var(--muted); background: none !important; border-radius: 6px; }
.navlink:hover { color: var(--ink); }
.navlink[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.navlink.hot { color: var(--muted); font-weight: 500; }
.acct-btn, .menu-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0; margin-left: 4px; }
.acct-btn.in { border-color: var(--accent); color: var(--accent); }
.menu-btn .mtxt { display: none; }
@media (max-width: 759px) { .navlink { display: none; } }
@media (max-width: 420px) { .brand b { font-size: 22px; } }
.menu { top: 58px; width: min(560px, calc(100vw - 32px)); padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.menu a { padding: 7px 0; font-size: 15px; border-radius: 0; display: block; }
.menu a:hover, .menu a:focus-visible { background: none; color: var(--accent); }
.mgroup { display: grid; align-content: start; }
.mhead { font-size: 13px; font-weight: 600; color: var(--muted); padding-bottom: 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
@media (max-width: 380px) { .menu { grid-template-columns: 1fr; } }

/* home: the tools laid out on the 3x3 Vastu grid */
.hero { padding-block: 4px 18px; gap: 10px; }
.mandala-nav { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); border-radius: 4px; background: var(--surface); }
.mtile { position: relative; display: grid; align-content: end; gap: 2px; min-height: 108px; padding: 26px 12px 12px; text-decoration: none; color: var(--ink); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; text-align: left; font: inherit; cursor: pointer; }
.mtile:nth-child(3n) { border-right: 0; }
.mtile:nth-child(n+7) { border-bottom: 0; }
.mtile .dir { position: absolute; top: 8px; left: 12px; font-size: 12px; color: var(--muted); }
.mtile b { font-size: 16px; font-weight: 600; line-height: 1.2; }
.mtile .sub { font-size: 13px; color: var(--muted); line-height: 1.3; }
.mtile:hover, .mtile:focus-visible { background: var(--sunk); }
.mtile.centre { background: var(--accent); color: var(--on-accent); }
.mtile.centre .dir, .mtile.centre .sub { color: var(--on-accent); opacity: .85; }
.mtile.centre:hover { filter: brightness(1.06); }
@media (min-width: 640px) { .mtile { min-height: 132px; padding: 30px 16px 16px; } .mtile b { font-size: 18px; } }
@media (max-width: 380px) { .mtile { padding: 24px 8px 10px; min-height: 100px; } .mtile b { font-size: 15px; } .mtile .sub { font-size: 12px; } }
.today-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tip { margin: 0; color: var(--muted); font-size: 15px; }
.tip:empty { display: none; }

/* footer */
footer.site { margin-top: 48px; font-size: 13px; }
footer.site .links { gap: 16px; }

/* "Show all" for long lists */
.more-btn { list-style: none; display: block; padding-top: 6px; border: 0 !important; background: none !important; grid-template-columns: none !important; }
.more-btn .btn { padding: 8px 14px; font-size: 14px; }

/* tabs: lighter */
.tabs button { border-color: transparent; background: none; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
/* result actions: one main button, the rest as quiet links */
.result-actions { align-items: center; gap: 4px 14px; }
.result-actions .btn.secondary { flex: 0 0 auto; background: none; color: var(--accent); padding: 6px 0; font-weight: 600; }
.result-actions .btn:not(.secondary) { order: -1; flex: 1 0 100%; }
/* one ad slot on article pages, clearly marked */
.ad-wrap { margin-top: 36px; padding-top: 10px; border-top: 1px solid var(--line); min-height: 90px; }
.ad-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }

/* ---------- business section ---------- */
.rows { display: grid; }
.row-link, .report-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.row-link { flex-direction: column; align-items: flex-start; gap: 2px; }
.rows > a:last-child { border-bottom: 0; }
.row-link b, .report-row b { font-size: 16px; font-weight: 600; }
.row-link span, .rr-main span { font-size: 14px; color: var(--muted); }
.row-link:hover b, .report-row:hover b { color: var(--accent); }
.rr-main { display: grid; gap: 2px; min-width: 0; }
.price { flex: none; text-align: right; font-size: 14px; white-space: nowrap; }
.price s, .price-big s { color: var(--muted); }
.free-tag { font-style: normal; font-weight: 600; color: var(--ideal); }
.price-big { font: 28px/1.1 var(--font-display); }
.price-big .free-tag { font: 600 16px var(--font-body); margin-left: 6px; }
.launch-note { margin: 0; color: var(--ideal); font-size: 15px; font-weight: 500; }
.launch-note:empty { display: none; }
.card.buy { gap: 12px; }
.card.buy .btn { justify-self: start; }
.zone-grid { display: grid; gap: 8px; }
.zone-row { display: grid; grid-template-columns: 1fr 150px; gap: 10px; align-items: center; font-size: 15px; }
.zone-row select, .form select { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 9px 10px; width: 100%; }
@media (max-width: 400px) { .zone-row { grid-template-columns: 1fr 128px; font-size: 14px; } }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); width: min(260px, 100%); aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 4px; }
.mz { display: grid; place-content: center; text-align: center; gap: 2px; border: 1px solid var(--line); font-size: 12px; }
.mz b { font-size: 14px; }
.mz.ideal { background: var(--ideal-soft); color: var(--ideal); }
.mz.avoid { background: var(--avoid-soft); color: var(--avoid); }
.mz.acceptable { background: var(--ok-soft); color: var(--ok); }
.upsell .card { gap: 8px; }
.report { display: grid; gap: 22px; }
.report h2 { margin-top: 8px; }
.report .card { break-inside: avoid; }
.rep-head { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.rep-head .brandline { font-size: 13px; color: var(--muted); }
.swatches.big .sw i { width: 34px; height: 34px; border-radius: 8px; }
.myreports { display: grid; }
.biz-link { border-bottom: 0; padding: 14px 2px 0; }
