/* business.jyotesh.com — the Jyotesh Business palette (astrojay-mobile src/theme.ts, jyoteshbiz). */
:root {
  --bg: #f6f5ec;
  --paper: #fffef8;
  --ink: #1c2318;
  --ink-soft: #565b4d;
  --line: #dcdcc6;
  --green: #1f4a30;
  --green-2: #2f6b46;
  --gold: #a8672a;
  --gold-soft: #e0a63c;
  --mal: #b0402c;
  --mal-bg: #f6dfd6;
  --ben: #2f6b46;
  --ben-bg: #dcebdc;
  --mix-bg: #efe1c4;
  --steady-bg: #ece7d6;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(28, 35, 24, 0.06), 0 4px 16px rgba(28, 35, 24, 0.05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121811;
    --paper: #1a2219;
    --ink: #ecebdf;
    --ink-soft: #b4b8a8;
    --line: #2f3a2d;
    --green: #8fc9a1;
    --green-2: #6fae84;
    --gold: #e0a63c;
    --mal: #f08d78;
    --mal-bg: #43241d;
    --ben: #8fc9a1;
    --ben-bg: #1f3a28;
    --mix-bg: #3d3420;
    --steady-bg: #262e24;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.biz {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body.lang-hi, .lang-hi h1, .lang-hi h2, .lang-hi h3, [lang="hi"] { font-family: 'Tiro Devanagari Hindi', Manrope, serif; }
body.lang-hi { font-size: 17px; line-height: 1.75; }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--gold); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -0.01em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1rem; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.88rem; }
.fine { font-size: 0.78rem; color: var(--ink-soft); margin: 0.75rem 0 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 700; color: var(--gold); margin: 0 0 0.6rem; }
.lang-hi .eyebrow { text-transform: none; letter-spacing: 0.02em; font-size: 0.9rem; }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 46rem; }
.notice { background: var(--steady-bg); padding: 0.6rem 0.9rem; border-radius: 6px; font-size: 0.9rem; }
ul.plain { list-style: none; padding: 0; margin: 0; }

/* Header */
.biz-top { background: var(--green); color: #fff; }
@media (prefers-color-scheme: dark) { .biz-top { background: #0c120b; border-bottom: 1px solid var(--line); } }
.biz-top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.biz-mark { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.biz-mark img { border-radius: 50%; }
.biz-name { font-family: Cinzel, serif; font-weight: 700; letter-spacing: 0.04em; font-size: 1.05rem; }
.lang-hi .biz-name { font-family: 'Tiro Devanagari Hindi', serif; font-size: 1.2rem; letter-spacing: 0; }
.biz-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.biz-nav a { color: #e9efe3; text-decoration: none; padding: 6px 10px; border-radius: 6px; font-weight: 600; font-size: 0.92rem; }
.biz-nav a:hover, .biz-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.12); color: #fff; }
.biz-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold-soft); }
.biz-lang { border: 1px solid rgba(255, 255, 255, 0.35); }

.biz-signin { background: var(--gold-soft); color: #1c2318 !important; }
.biz-signin:hover { background: #f0bb5a !important; }
.biz-logout { display: inline; margin: 0; }
.biz-logout button { background: none; border: 0; color: #e9efe3; font: inherit; font-weight: 600; font-size: 0.92rem; padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.biz-logout button:hover { background: rgba(255, 255, 255, 0.12); }

/* Register-or-login prompt */
.gate { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(12, 18, 11, 0.62); }
.gate[hidden] { display: none; }
body.gate-open { overflow: hidden; }
.gate-card { position: relative; width: 100%; max-width: 420px; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 28px 24px 22px; text-align: center; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35); }
.gate-card img { border-radius: 50%; margin-bottom: 10px; }
.gate-card h2 { font-size: 1.3rem; }
.gate-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 1rem; }
.gate-card .btn { display: block; width: 100%; margin-top: 8px; text-align: center; }
.gate-x { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: var(--ink-soft); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
.gate-x:hover { color: var(--ink); }

/* Hero */
.hero { padding: 40px 0 24px; border-bottom: 1px solid var(--line); background:
  linear-gradient(180deg, transparent 0, transparent calc(100% - 1px), color-mix(in srgb, var(--line) 45%, transparent) 0) 0 0 / 100% 2.2rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.2rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--green); cursor: pointer; font: inherit; font-weight: 700; }
.btn:hover { background: var(--green-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--ben-bg); color: var(--green); }
.btn-small { padding: 6px 12px; font-size: 0.9rem; }
@media (prefers-color-scheme: dark) { .btn { color: #0c120b; } .btn:hover { color: #0c120b; } .btn-ghost { color: var(--green); } }

/* Cards */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.card-kicker { font-size: 0.78rem; color: var(--gold); font-weight: 700; margin: 0 0 0.3rem; }
.card-foot { margin: 0.9rem 0 0; font-weight: 600; }
.card-good { border-color: var(--ben); }
.card-warn { border-color: var(--mal); }
.trend-card { border-color: var(--gold); }
.trend-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0.8rem 0; }
.trend-cols h3 { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.3rem; }
.trend-cols li { padding: 2px 0; font-weight: 600; }
.shares-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin: 0.4rem 0; }
.sectors { display: flex; flex-wrap: wrap; gap: 6px; margin: 0.5rem 0 0; }

.band { padding-top: 28px; padding-bottom: 8px; }
.band-h { margin-bottom: 1rem; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .three, .split { grid-template-columns: 1fr; } }
.page-head { padding-top: 32px; }

dl.times { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0.6rem 0 0; }
dl.times dt { color: var(--ink-soft); }
dl.times dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Pills and chips */
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.pill-teji, .pill-pressure { background: var(--mal-bg); color: var(--mal); }
.pill-mandi, .pill-positive { background: var(--ben-bg); color: var(--ben); }
.pill-steady { background: var(--steady-bg); color: var(--ink-soft); }
.chip { font-size: 0.78rem; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); }
.chip-positive { border-color: var(--ben); color: var(--ben); }
.chip-pressure { border-color: var(--mal); color: var(--mal); }
.chip-steady { color: var(--ink-soft); }

/* The chakra */
.chakra-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; padding-top: 20px; }
@media (max-width: 920px) { .chakra-wrap { grid-template-columns: 1fr; } }
.sbc { display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--green); border-radius: 6px; padding: 2px; max-width: 640px; }
.cell { position: relative; aspect-ratio: 1 / 1; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2px; min-width: 0; overflow: hidden; transition: opacity 0.15s; }
.cell-l { font-size: clamp(0.52rem, 1.35vw, 0.78rem); line-height: 1.1; word-break: break-word; }
.k-nakshatra { background: #f3efdf; }
.k-consonant .cell-l, .k-vowel .cell-l { font-family: 'Tiro Devanagari Hindi', serif; font-size: clamp(0.8rem, 2vw, 1.15rem); }
.k-vowel { background: #efe9d3; color: var(--gold); }
.k-sign { background: #f7f3e4; font-weight: 700; }
.k-tithi { background: #e9efe0; color: var(--green); font-weight: 700; }
@media (prefers-color-scheme: dark) {
  .k-nakshatra { background: #1e271c; } .k-vowel { background: #232a1e; } .k-sign { background: #1c241a; } .k-tithi { background: #1f2c22; }
}
.cell.hit-m { box-shadow: inset 0 0 0 2px var(--mal); background: var(--mal-bg); }
.cell.hit-b { box-shadow: inset 0 0 0 2px var(--ben); background: var(--ben-bg); }
.cell.hit-x { box-shadow: inset 0 0 0 2px var(--gold); background: var(--mix-bg); }
.cell-p { display: flex; flex-wrap: wrap; gap: 1px; justify-content: center; margin-top: 1px; }
.pl { font-weight: 800; font-size: clamp(0.5rem, 1.2vw, 0.7rem); padding: 0 3px; border-radius: 3px; }
.pl-malefic { background: var(--mal); color: #fff; }
.pl-benefic { background: var(--ben); color: #fff; }
@media (prefers-color-scheme: dark) { .pl-malefic, .pl-benefic { color: #0c120b; } }
.sbc[data-focus]:not([data-focus=""]) .cell { opacity: 0.28; }
.sbc[data-focus="Sun"] .cell[data-by~="Sun"], .sbc[data-focus="Moon"] .cell[data-by~="Moon"], .sbc[data-focus="Mars"] .cell[data-by~="Mars"],
.sbc[data-focus="Mercury"] .cell[data-by~="Mercury"], .sbc[data-focus="Jupiter"] .cell[data-by~="Jupiter"], .sbc[data-focus="Venus"] .cell[data-by~="Venus"],
.sbc[data-focus="Saturn"] .cell[data-by~="Saturn"], .sbc[data-focus="Rahu"] .cell[data-by~="Rahu"], .sbc[data-focus="Ketu"] .cell[data-by~="Ketu"] { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.82rem; margin-top: 10px; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-left: 4px; }
.sw-m { background: var(--mal-bg); box-shadow: inset 0 0 0 2px var(--mal); }
.sw-b { background: var(--ben-bg); box-shadow: inset 0 0 0 2px var(--ben); }
.sw-x { background: var(--mix-bg); box-shadow: inset 0 0 0 2px var(--gold); }
.planets { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.planet-btn { width: 100%; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.planet-btn .pl { font-size: 0.85rem; align-self: flex-start; padding: 1px 8px; }
.planet-btn[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.planet-meta { font-size: 0.8rem; color: var(--ink-soft); }

/* Tables */
.scroll-x { overflow-x: auto; }
table.items { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.92rem; }
table.items th, table.items td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.items th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); background: var(--steady-bg); }
.lang-hi table.items th { text-transform: none; font-size: 0.85rem; }
td.num { font-variant-numeric: tabular-nums; text-align: right; }
table.items summary { cursor: pointer; font-weight: 700; }
ul.pts { margin: 6px 0 0; padding-left: 1rem; font-size: 0.82rem; color: var(--ink-soft); }
tr.now td { background: var(--ben-bg); }
tr.best td:first-child { box-shadow: inset 3px 0 0 var(--ben); }
tr.bad td { color: var(--ink-soft); }
tr.bad td:first-child { box-shadow: inset 3px 0 0 var(--mal); }
ul.how li { margin-bottom: 0.4rem; }

/* Today */
.zone-line { color: var(--ink-soft); margin: 0.2rem 0 0.6rem; }
.place-pickers { display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: flex-end; }
.city-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 0.8rem; }
.city-form label { width: 100%; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.city-form select, .city-form input { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); max-width: 100%; }
.place-field { position: relative; display: inline-block; }
.place-field input { width: 18rem; }
@media (max-width: 480px) { .place-field, .place-field input { width: 100%; } }
.place-suggestions { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; margin: 4px 0 0; padding: 4px 0; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); max-height: 240px; overflow-y: auto; min-width: 18rem; }
.place-suggestion-item { padding: 8px 12px; font-size: 0.88rem; color: var(--ink); cursor: pointer; }
.place-suggestion-item--active, .place-suggestion-item:hover { background: var(--steady-bg); }

/* Year */
.officers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.officer-lord { font-size: 1.4rem; font-weight: 800; margin: 0.2rem 0; display: flex; align-items: center; gap: 10px; }
.year-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 1rem 0; }
.year-nav a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.year-nav a[aria-current="page"] { background: var(--green); color: #fff; border-color: var(--green); }

/* Learn */
.learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.learn-card { display: block; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.learn-card:hover { border-color: var(--gold); color: var(--ink); }
.learn-card h2, .learn-card h3 { font-size: 1.05rem; color: var(--green); }
.learn-card p { margin: 0.3rem 0; font-size: 0.92rem; color: var(--ink-soft); }
.src { font-size: 0.78rem; color: var(--gold); font-weight: 600; }
.article { max-width: 760px; padding-top: 32px; padding-bottom: 24px; }
.article h2 { margin-top: 1.6rem; }
.article-list { padding-left: 1.1rem; }
.article-list li { margin-bottom: 0.3rem; }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan-pro { border-color: var(--gold); }
.price { font-size: 1.8rem; font-weight: 800; margin: 0.2rem 0 0.8rem; line-height: 1.2; }
.price .small { display: block; font-weight: 500; margin-top: 4px; }
ul.ticks { padding-left: 1.1rem; }
.cta-line { margin: 1.4rem 0 0.6rem; }

/* Footer */
.biz-foot { margin-top: 40px; border-top: 1px solid var(--line); padding: 20px 0 28px; font-size: 0.86rem; color: var(--ink-soft); }
.biz-foot-note { max-width: 56rem; }
