/* Yalix Horoscope - the website (horoscope.yalixlabs.com).
 *
 * One stylesheet for every page. The palette is the printed jathagam's and the phone app's
 * (engine/report.py, app/android-app/lib/theme.dart), and like them there is no black anywhere:
 * text is a deep maroon, lines are brown, even shadows are maroon. A jathagam is an auspicious
 * paper (founder, 26 Sep 2026).
 */

:root {
  --cream: #faf1e2;
  --cream-deep: #f3e4cc;
  --paper: #fffbf5;
  --ink: #542014;
  --ink-soft: #6e3a2b;
  --kumkumam: #8c261a;
  --red: #a8301c;
  --red-mid: #7e1f14;
  --maroon-deep: #4a110c;
  --gold: #d29a2a;
  --gold-deep: #b07a14;
  --gold-light: #f0cf8a;
  --rule: #7a5632;
  --muted: #8c7a6e;
  --graha: #183270;
  --lagnam: #be1e14;
  --good: #2f6b3a;
  --good-bg: #e8f1e4;
  --amber: #a86a0c;
  --amber-bg: #fbefd6;
  --bad: #be1e14;
  --bad-bg: #fbe6df;
  --hair: rgba(122, 86, 50, 0.16);
  --hair-gold: rgba(210, 154, 42, 0.42);

  --hero: linear-gradient(135deg, #a8301c 0%, #7e1f14 55%, #4a110c 100%);
  --btn-red: linear-gradient(135deg, #ae3520 0%, #7a1d12 100%);
  --btn-gold: linear-gradient(135deg, #f3cf7e 0%, #e0a83d 48%, #c98a1e 100%);

  --shadow-1: 0 1px 2px rgba(84, 32, 20, 0.06), 0 8px 24px rgba(84, 32, 20, 0.08);
  --shadow-2: 0 2px 4px rgba(84, 32, 20, 0.06), 0 18px 48px rgba(84, 32, 20, 0.14);
  --shadow-3: 0 30px 80px rgba(74, 17, 12, 0.32);

  --radius: 18px;
  --radius-s: 12px;
  --wrap: 1280px;
  --gutter: 20px;
  --header-h: 62px;

  --font-display: "Cormorant Garamond", "Arima", Georgia, serif;
  --font-tamil-display: "Arima", "Cormorant Garamond", serif;
  --font-body: "Mukta Malar", "Noto Sans Tamil", system-ui, sans-serif;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;       /* clip, not hidden: hidden would make the body a scroll box and nothing could stay in view */
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--kumkumam); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
button { font: inherit; color: inherit; }
::selection { background: var(--gold-light); color: var(--maroon-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* Tamil first, English on a toggle. Static text carries both, `data-l` says which is which. */
html[data-lang="ta"] [data-l="en"],
html[data-lang="en"] [data-l="ta"] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--kumkumam);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.4em;
  font-variant-numeric: lining-nums;
  letter-spacing: -0.005em;
}
html[data-lang="ta"] h1, html[data-lang="ta"] h2, html[data-lang="ta"] h3 { font-family: var(--font-tamil-display); letter-spacing: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.55rem); }
h3 { font-size: 1.32rem; }
html[data-lang="ta"] h1 { font-size: clamp(1.9rem, 4.1vw, 3.3rem); line-height: 1.28; }
html[data-lang="ta"] h2 { font-size: clamp(1.55rem, 2.7vw, 2.2rem); line-height: 1.3; }
html[data-lang="ta"] h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* ---- buttons ------------------------------------------------------------------------------- */

.btn {
  --pad: 13px 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad); border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  font-weight: 700; font-size: 1rem; line-height: 1.25; transition: transform .15s ease, box-shadow .2s ease, filter .2s;
  white-space: nowrap; user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: default; transform: none; }
.btn--red { background: var(--btn-red); color: var(--cream); box-shadow: 0 8px 22px rgba(140, 38, 26, 0.32); }
.btn--red:hover { color: var(--cream); box-shadow: 0 12px 28px rgba(140, 38, 26, 0.4); }
.btn--gold { background: var(--btn-gold); color: var(--maroon-deep); box-shadow: 0 8px 24px rgba(201, 138, 30, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn--gold:hover { color: var(--maroon-deep); filter: brightness(1.04); }
.btn--ghost { background: transparent; color: var(--kumkumam); border: 1.5px solid var(--hair-gold); }
.btn--ghost:hover { background: rgba(210, 154, 42, 0.1); border-color: var(--gold); }
.btn--light { background: rgba(255, 251, 245, 0.12); color: var(--cream); border: 1.5px solid rgba(240, 207, 138, 0.55); }
.btn--light:hover { background: rgba(255, 251, 245, 0.2); color: var(--cream); }
.btn--sm { --pad: 8px 16px; font-size: 0.9rem; }
.btn--lg { --pad: 16px 30px; font-size: 1.08rem; }
.btn--block { display: flex; width: 100%; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover .arrow { transform: translateX(3px); }
.link-arrow .arrow { transition: transform .2s; }

/* ---- hero ---------------------------------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden; color: var(--cream); background: var(--hero);
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
  isolation: isolate;
}
.hero::before {
  /* Lamplight from the top left and a dust of stars: two gradients, no picture. */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(255, 196, 120, 0.22), transparent 60%),
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(240, 207, 138, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 68% 18%, rgba(240, 207, 138, 0.55), transparent 60%),
    radial-gradient(1px 1px at 82% 62%, rgba(240, 207, 138, 0.6), transparent 60%),
    radial-gradient(1px 1px at 40% 78%, rgba(240, 207, 138, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 92% 34%, rgba(240, 207, 138, 0.45), transparent 60%),
    radial-gradient(1px 1px at 8% 70%, rgba(240, 207, 138, 0.5), transparent 60%);
}
.hero__yali {
  position: absolute; z-index: -1; right: -60px; bottom: -40px; width: min(560px, 62vw); opacity: 0.13;
  pointer-events: none; filter: drop-shadow(0 0 40px rgba(240, 207, 138, 0.3));
}
.hero h1, .hero h2 { color: var(--cream); }
.hero__grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 16px;
}
html[data-lang="ta"] .kicker { letter-spacing: 0.02em; font-size: 0.92rem; }
.kicker::before { content: ""; width: 28px; height: 1.5px; background: currentColor; opacity: 0.7; }
.hero .kicker { color: var(--gold-light); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(250, 241, 226, 0.86); max-width: 34em; margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.9rem; color: rgba(250, 241, 226, 0.82); }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 17px; height: 17px; color: var(--gold-light); flex-shrink: 0; }

.hero--page { padding: clamp(40px, 6vw, 72px) 0 clamp(70px, 9vw, 110px); }
.hero--page .hero__lead { margin-bottom: 0; }
.rise { margin-top: clamp(-80px, -7vw, -56px); position: relative; z-index: 2; }

/* The chips above a birth form: my details, the family, somebody else (the app's "என்னுடையது / வேறு ஒருவர்"). */
.who-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.who-row .chip { cursor: pointer; font-size: 0.88rem; padding: 6px 13px; border-width: 1.5px; }
.who-row .chip:hover { border-color: var(--gold); }
.who-row .chip.is-on { background: var(--kumkumam); color: var(--cream); border-color: var(--kumkumam); }

/* The services, as big tiles - what the app's home has, so nothing is hidden behind a menu. */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  padding: 18px 10px 16px; background: var(--paper); border: 1px solid var(--hair-gold); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.98rem; line-height: 1.25; min-height: 120px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--gold); color: var(--kumkumam); }
.tile__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #fff1d6, #fbe2b4); color: var(--kumkumam); }
.tile__icon svg { width: 26px; height: 26px; }
.tile small { display: block; font-weight: 500; color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
@media (max-width: 1080px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .tile { padding: 14px 6px 12px; font-size: 0.86rem; min-height: 104px; } .tile__icon { width: 42px; height: 42px; } }

/* The real phone: the app's own first screen in a frame. */
.phone-shot { width: min(300px, 82%); margin: 0 auto; border-radius: 36px; padding: 10px; background: linear-gradient(160deg, #5a1a10, #2e0a06); box-shadow: var(--shadow-3), inset 0 0 0 2px rgba(240, 207, 138, 0.25); }
.phone-shot img { width: 100%; border-radius: 27px; display: block; }

/* ---- cards and sections ------------------------------------------------------------------- */

.card {
  background: var(--paper); border: 1px solid var(--hair-gold); border-radius: var(--radius);
  box-shadow: var(--shadow-1); padding: clamp(20px, 2.6vw, 30px);
}
.card--lift { box-shadow: var(--shadow-2); }
.card--glass {
  background: rgba(255, 251, 245, 0.97); border-color: rgba(240, 207, 138, 0.7); box-shadow: var(--shadow-3); color: var(--ink);
}
.card h3 { margin-bottom: 0.3em; }
.card__title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card__title-row h3, .card__title-row h2 { margin: 0; }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--paper { background: var(--paper); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.section--deep {
  background: var(--hero); color: var(--cream); position: relative; overflow: hidden; isolation: isolate;
}
.section--deep h2, .section--deep h3 { color: var(--cream); }
.section--deep .muted { color: rgba(250, 241, 226, 0.72); }
.section-head { max-width: 720px; margin: 0 auto clamp(30px, 4vw, 48px); text-align: center; }
.section-head .kicker { justify-content: center; }
.section-head .kicker::after { content: ""; width: 28px; height: 1.5px; background: currentColor; opacity: 0.7; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section--deep .section-head p { color: rgba(250, 241, 226, 0.78); }
.section--deep .kicker { color: var(--gold-light); }

.ornament { display: flex; justify-content: center; margin: 0 auto 18px; color: var(--gold); }
.ornament svg { width: 120px; height: 14px; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
/* A grid item may shrink below its widest table: the table scrolls inside its own box instead. */
.grid > *, .stack > *, .two-col > *, .split > *, .hero__grid > *, .today > *, .facts > * { min-width: 0; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---- forms --------------------------------------------------------------------------------- */

.form-grid { display: grid; gap: 14px; }
.form-grid--2 { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.field .hint { font-size: 0.8rem; color: var(--muted); }
.input, .select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fffdf9;
  border: 1.5px solid rgba(122, 86, 50, 0.24); border-radius: var(--radius-s); padding: 11px 14px; min-height: 48px;
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.select {
  padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238c261a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.input:focus, .select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(210, 154, 42, 0.18); }
.input::placeholder { color: #b3a294; }
.input.is-invalid, .select.is-invalid { border-color: var(--bad); }
.row-3 { display: grid; grid-template-columns: 0.8fr 1.25fr 1fr; gap: 8px; }
.row-time { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; }
.seg { display: inline-flex; border: 1.5px solid rgba(122, 86, 50, 0.24); border-radius: var(--radius-s); overflow: hidden; background: #fffdf9; min-height: 48px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 8px 10px; cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--kumkumam); color: var(--cream); }
.form-error { color: var(--bad); font-size: 0.9rem; font-weight: 600; min-height: 1.2em; margin: 2px 0 0; }
.form-note { font-size: 0.82rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; margin-top: 4px; }
.form-note svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--good); }
/* The sign-in pop-up's agreement line: one paragraph across the pop-up, its two links on a line of their own under it
   (22 Oct 2026: laid out as a row, the sentence stood squeezed in a thin column beside the links). */
.form-note.signin-legal { display: block; margin-top: 12px; line-height: 1.55; }
.signin-legal__links { display: block; margin-top: 6px; }
/* The sign-in doors (23 Oct 2026): Google, Truecaller (an Android phone), then the email door. */
.signin-doors { display: grid; gap: 10px; margin: 6px 0 2px; }
.signin-google { display: flex; justify-content: center; min-height: 44px; }
.signin-door { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border-radius: 999px; border: 0;
  padding: 8px 14px; font-size: 0.95rem; font-weight: 700; color: #ffffff; white-space: normal; text-align: center; }
.signin-door--tc { background: #0087FF; }
.signin-door--tc:hover { background: #0077e0; }
.signin-door__mark { width: 22px; height: 22px; flex-shrink: 0; }
.signin-note { margin: 0; font-size: 0.86rem; text-align: center; }
.signin-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--muted); font-size: 0.85rem; }
.signin-or::before, .signin-or::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.signin-tabs { display: flex; width: 100%; margin-bottom: 10px; }
.signin-form { gap: 10px; }
.signin-form .field { margin: 0; }
.signin-forgot { justify-self: center; font-size: 0.86rem; margin-top: 2px; }

/* The place box: a search, a list under it, and nothing left half typed. */
.place { position: relative; }
.place__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none;
  background: var(--paper); border: 1px solid var(--hair-gold); border-radius: var(--radius-s); box-shadow: var(--shadow-2);
  max-height: 300px; overflow-y: auto;
}
/* Inside a pop-up the list cannot float: the pop-up's own scroll box would cut it off. It opens in
   place instead, pushing what is below it down, and scrolls itself into view. */
.modal .place__list { position: static; margin-top: 6px; max-height: 260px; box-shadow: none; }
.place__list li { padding: 9px 12px; border-radius: 9px; cursor: pointer; line-height: 1.3; }
.place__list li small { display: block; color: var(--muted); font-size: 0.8rem; }
.place__list li[aria-selected="true"], .place__list li:hover { background: rgba(210, 154, 42, 0.16); }
.place__list .place__empty { color: var(--muted); cursor: default; }
.place__list .place__empty:hover { background: transparent; }
.place__picked { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--good); pointer-events: none; }

/* ---- the kattam ---------------------------------------------------------------------------- */

.kattam {
  position: relative; width: 100%; aspect-ratio: 1; background: url("../img/kattam-frame.webp") center / cover no-repeat;
  border-radius: 6px; box-shadow: 0 10px 30px rgba(84, 32, 20, 0.14); container-type: inline-size;
}
.kattam__cell {
  position: absolute; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 0 0.5em;
  text-align: center; padding: 2px; font-weight: 700; line-height: 1.22; color: var(--graha);
  font-size: clamp(11px, 4.4cqw, 18px);
}
.kattam__cell .lg { color: var(--lagnam); }
.kattam__cell sup { font-size: 0.62em; font-weight: 600; }
.kattam__centre {
  position: absolute; left: 25%; top: 25%; width: 50%; height: 50%; display: grid; place-items: center;
  font-family: var(--font-tamil-display); font-weight: 700; color: var(--kumkumam); font-size: clamp(15px, 6cqw, 26px);
}
.kattam-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.4vw, 28px); }

/* ---- facts, tables, chips ----------------------------------------------------------------- */

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.fact { background: #fffdf9; border: 1px solid var(--hair); border-radius: var(--radius-s); padding: 12px 14px; }
.fact__k { font-size: 0.8rem; color: var(--muted); font-weight: 600; display: block; margin-bottom: 2px; }
.fact__v { font-weight: 700; font-size: 1.05rem; color: var(--ink); line-height: 1.3; }
.fact__v small { font-weight: 500; color: var(--muted); font-size: 0.82rem; display: block; }
.fact--accent { background: linear-gradient(135deg, #fff6e3, #fdeccb); border-color: var(--hair-gold); }
.fact--accent .fact__v { color: var(--kumkumam); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-s); border: 1px solid var(--hair); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: #fffdf9; }
.tbl th { background: #fbefd9; color: var(--kumkumam); text-align: left; font-weight: 700; padding: 10px 12px; white-space: nowrap; border-bottom: 1px solid var(--hair-gold); }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.is-now td { background: rgba(210, 154, 42, 0.12); font-weight: 600; }
.tbl .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 0.82rem;
  font-weight: 700; line-height: 1.5; white-space: nowrap; border: 1px solid transparent;
}
.chip--good { background: var(--good-bg); color: var(--good); border-color: rgba(47, 107, 58, 0.2); }
.chip--mid { background: var(--amber-bg); color: var(--amber); border-color: rgba(168, 106, 12, 0.22); }
.chip--bad { background: var(--bad-bg); color: var(--bad); border-color: rgba(190, 30, 20, 0.18); }
.chip--gold { background: #fff3d8; color: var(--gold-deep); border-color: var(--hair-gold); }
.chip--plain { background: #fffdf9; color: var(--ink-soft); border-color: var(--hair); }

.stars { color: var(--gold); letter-spacing: 1px; font-size: 1.05rem; white-space: nowrap; }
.stars .off { color: rgba(122, 86, 50, 0.22); }

/* ---- today strip --------------------------------------------------------------------------- */

.today { display: grid; grid-template-columns: 0.9fr 2.1fr; gap: 0; overflow: hidden; padding: 0; }
.today__date {
  background: var(--hero); color: var(--cream); padding: 26px 24px; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.today__date::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; opacity: 0.12;
  background: url("../img/yali-cream.webp") center / contain no-repeat;
}
.today__big { font-family: "Cormorant Garamond", serif; font-size: 4rem; font-weight: 700; line-height: 0.9; color: var(--gold-light); font-variant-numeric: lining-nums; }
.today__month { font-size: 1.15rem; font-weight: 700; margin-top: 6px; }
.today__sub { font-size: 0.92rem; color: rgba(250, 241, 226, 0.78); }
.today__body { padding: 22px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 20px; align-content: center; }
.slot { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 3px solid var(--hair-gold); }
.slot__k { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.slot__v { font-weight: 700; color: var(--ink); font-size: 1rem; line-height: 1.35; }
.slot--good { border-left-color: var(--good); }
.slot--good .slot__v { color: var(--good); }
.slot--bad { border-left-color: var(--bad); }
.slot--bad .slot__v { color: var(--bad); }
.slot--warn { border-left-color: #9a5b22; }
.slot--kuligai { border-left-color: #6b4a8c; }

/* ---- rasi grid ----------------------------------------------------------------------------- */

.rasi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.rasi .chip { white-space: normal; text-align: center; justify-content: center; line-height: 1.3; padding: 3px 9px; }
.rasi {
  background: var(--paper); border: 1px solid var(--hair-gold); border-radius: var(--radius); padding: 14px 10px 14px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; text-decoration: none; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s; cursor: pointer;
}
.rasi:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--gold); color: var(--ink); }
.rasi img { width: 74%; aspect-ratio: 1; object-fit: contain; margin-bottom: 4px; }
.rasi__name { font-weight: 700; color: var(--kumkumam); font-size: 1.02rem; line-height: 1.25; }
.rasi__verdict { font-size: 0.78rem; font-weight: 600; }
.rasi.is-chandrashtamam { border-color: rgba(168, 106, 12, 0.5); background: linear-gradient(180deg, #fffaf0, #fbefd6); }

.palan-card { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; }
.palan-card img { width: 120px; height: 120px; object-fit: contain; }
.palan-card ul { margin: 10px 0 0; padding-left: 1.1em; }
.palan-card li { margin-bottom: 6px; }
.palan-card li::marker { color: var(--gold); }
details.why { margin-top: 12px; }
details.why summary { cursor: pointer; font-weight: 700; color: var(--kumkumam); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
details.why summary::-webkit-details-marker { display: none; }
details.why summary::after { content: "▾"; font-size: 0.8em; transition: transform .2s; }
details.why[open] summary::after { transform: rotate(180deg); }
details.why .table-wrap { margin-top: 10px; }

/* ---- products, pricing --------------------------------------------------------------------- */

.product {
  position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--paper);
  border: 1px solid var(--hair-gold); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-1);
  transition: transform .2s, box-shadow .2s;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.product--featured { border: 1.5px solid var(--gold); background: linear-gradient(180deg, #fffaf0 0%, var(--paper) 40%); box-shadow: var(--shadow-2); }
.product__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--btn-gold); color: var(--maroon-deep);
  font-size: 0.76rem; font-weight: 800; padding: 4px 14px; border-radius: 999px; letter-spacing: 0.03em; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(201, 138, 30, 0.35);
}
.product__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #fff1d6, #fbe2b4); color: var(--kumkumam); }
.product__icon svg { width: 26px; height: 26px; }
.product h3 { margin: 0; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price__amt { font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 2.3rem; color: var(--kumkumam); line-height: 1; font-variant-numeric: lining-nums; }
.price__per { color: var(--muted); font-size: 0.9rem; }
.price__free { font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 2rem; color: var(--good); line-height: 1; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.95rem; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.ticks li::before {
  content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--good-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%232f6b3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.product .btn { margin-top: auto; }

/* ---- steps, features ----------------------------------------------------------------------- */

.steps { counter-reset: step; }
.step { position: relative; padding-top: 6px; }
.step__n {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px;
  font-family: "Cormorant Garamond", serif; font-size: 1.5rem; font-weight: 700; color: var(--maroon-deep); background: var(--btn-gold);
  box-shadow: 0 6px 16px rgba(201, 138, 30, 0.35);
}
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(240, 207, 138, 0.16); color: var(--gold-light); border: 1px solid rgba(240, 207, 138, 0.3); }
.feature__icon svg { width: 24px; height: 24px; }
.section:not(.section--deep) .feature__icon { background: linear-gradient(135deg, #fff1d6, #fbe2b4); color: var(--kumkumam); border-color: var(--hair-gold); }
.feature h3 { font-size: 1.12rem; margin-bottom: 4px; }
.feature p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.section--deep .feature p { color: rgba(250, 241, 226, 0.74); }

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat__n { font-family: "Cormorant Garamond", serif; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--gold-light); line-height: 1; font-variant-numeric: lining-nums; }
.stat__k { font-size: 0.9rem; color: rgba(250, 241, 226, 0.78); margin-top: 6px; }

/* ---- app band, pro band -------------------------------------------------------------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.phone {
  width: min(300px, 80%); margin: 0 auto; aspect-ratio: 9 / 18.5; border-radius: 40px; padding: 12px; background: linear-gradient(160deg, #5a1a10, #2e0a06);
  box-shadow: var(--shadow-3), inset 0 0 0 2px rgba(240, 207, 138, 0.25);
}
.phone__screen { width: 100%; height: 100%; border-radius: 30px; background: var(--cream); overflow: hidden; display: flex; flex-direction: column; }
.phone__head { background: var(--hero); color: var(--cream); padding: 22px 16px 18px; text-align: center; }
.phone__head b { display: block; font-family: "Cormorant Garamond", serif; font-size: 2.6rem; color: var(--gold-light); line-height: 1; }
.phone__rows { padding: 12px; display: grid; gap: 8px; }
.phone__row { background: var(--paper); border: 1px solid var(--hair-gold); border-radius: 10px; padding: 8px 10px; font-size: 0.78rem; display: flex; justify-content: space-between; gap: 8px; }
.phone__row b { color: var(--good); }
.phone__row.bad b { color: var(--bad); }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; background: var(--maroon-deep); color: var(--cream); padding: 10px 20px; border-radius: 14px;
  text-decoration: none; border: 1px solid rgba(240, 207, 138, 0.4);
}
.store-badge small { display: block; font-size: 0.72rem; opacity: 0.8; line-height: 1.2; }
.store-badge b { display: block; font-size: 1.1rem; line-height: 1.2; }
.store-badge svg { width: 26px; height: 26px; }

/* ---- FAQ ------------------------------------------------------------------------------------ */

.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { background: var(--paper); border: 1px solid var(--hair-gold); border-radius: var(--radius-s); padding: 0 20px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-1); }
.faq summary { cursor: pointer; list-style: none; padding: 17px 0; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold-deep); font-weight: 400; line-height: 1; transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-soft); }

/* ---- CTA band ----------------------------------------------------------------------------- */

.cta-band { text-align: center; padding: clamp(48px, 7vw, 84px) 0; }
.cta-band .hero__ctas { justify-content: center; margin-bottom: 0; }

/* ---- footer -------------------------------------------------------------------------------- */

.site-footer { background: var(--maroon-deep); color: rgba(250, 241, 226, 0.78); padding: 56px 0 26px; font-size: 0.93rem; }
.site-footer a { color: rgba(250, 241, 226, 0.86); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-grid h4 { color: var(--gold-light); font-family: var(--font-body); font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; font-weight: 700; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 12px; }
.footer-brand b { font-family: "Cormorant Garamond", serif; font-size: 1.5rem; color: var(--cream); }
.footer-line { border-top: 1px solid rgba(240, 207, 138, 0.18); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.84rem; color: rgba(250, 241, 226, 0.6); }

/* ---- modal, toast, loading ------------------------------------------------------------------ */

.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(74, 17, 12, 0.5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s ease;
  /* A finger on the shade beside a pop-up moves nothing; the pop-up's own box still scrolls (22 Oct 2026). */
  overscroll-behavior: contain; touch-action: none;
}
.modal.is-open { opacity: 1; }
.modal__box {
  width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border-radius: 22px;
  border: 1px solid var(--hair-gold); box-shadow: var(--shadow-3); padding: 26px 24px 24px; transform: translateY(14px) scale(.98);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1); position: relative;
}
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; background: rgba(210, 154, 42, 0.12); border-radius: 50%; cursor: pointer; color: var(--kumkumam); font-size: 1.3rem; line-height: 1; }
.modal h3 { padding-right: 40px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 120; background: var(--maroon-deep); color: var(--cream);
  padding: 12px 20px; border-radius: 14px; box-shadow: var(--shadow-3); opacity: 0; transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px);
  font-weight: 600; font-size: 0.95rem;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(140, 38, 26, 0.18); border-top-color: var(--kumkumam); animation: spin .8s linear infinite; flex-shrink: 0; }
.btn .spinner { width: 18px; height: 18px; border-color: rgba(250, 241, 226, 0.35); border-top-color: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }
.wait { display: flex; gap: 14px; align-items: center; color: var(--ink-soft); padding: 8px 0; }
.skel { background: linear-gradient(90deg, #f3e4cc 0%, #faf1e2 50%, #f3e4cc 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; min-height: 1em; }
@keyframes shimmer { to { background-position: -200% 0; } }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-s); font-size: 0.95rem; line-height: 1.5; }
.notice--warn { background: var(--amber-bg); color: #6d4708; border: 1px solid rgba(168, 106, 12, 0.25); }
.notice--bad { background: var(--bad-bg); color: #7d1a10; border: 1px solid rgba(190, 30, 20, 0.2); }
.notice--good { background: var(--good-bg); color: #24502c; border: 1px solid rgba(47, 107, 58, 0.22); }
.notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }

/* ---- result pages -------------------------------------------------------------------------- */

.result-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.result-head h2 { margin: 0; }
.result-head p { margin: 4px 0 0; color: var(--muted); }
.stack { display: grid; gap: clamp(16px, 2vw, 24px); }
.chart-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) !important; }
.two-col { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(16px, 2vw, 24px); align-items: start; }

.score { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.ring { --p: 50; --c: var(--good); width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(122, 86, 50, 0.12) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--paper); }
.ring__in { position: relative; text-align: center; line-height: 1.1; }
.ring__in b { font-family: "Cormorant Garamond", serif; font-size: 2.6rem; color: var(--kumkumam); display: block; }
.ring__in small { color: var(--muted); font-size: 0.8rem; font-weight: 600; }

.porutham-list { display: grid; gap: 8px; }
.prow { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; padding: 12px 14px; background: #fffdf9; border: 1px solid var(--hair); border-radius: var(--radius-s); }
.prow__name { font-weight: 700; }
.prow__note { grid-column: 1 / -1; font-size: 0.86rem; color: var(--muted); line-height: 1.4; }
/* Nadi, the trees and the birds: under the ten, apart from them by a hairline, none of them in the score. */
.beside-ten { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--hair); }
.beside-ten > p { margin: 0 0 8px; font-size: 0.86rem; line-height: 1.45; }

.dasa-now { display: grid; gap: 10px; }
.dasa-row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; }
.dasa-row__k { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.dasa-row__v { font-weight: 700; }
.dasa-row__v small { display: block; color: var(--muted); font-weight: 500; font-size: 0.84rem; }
.bar { height: 7px; background: rgba(122, 86, 50, 0.12); border-radius: 99px; overflow: hidden; margin-top: 5px; }
.bar > i { display: block; height: 100%; background: var(--btn-gold); border-radius: 99px; }

/* ---- calendar ------------------------------------------------------------------------------ */

.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cal-nav { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--hair-gold); background: var(--paper); cursor: pointer; display: grid; place-items: center; color: var(--kumkumam); font-size: 1.1rem; }
.icon-btn:hover { background: #fff3d8; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__dow { text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal__dow:first-child { color: var(--bad); }
.cal__day {
  min-height: 92px; background: var(--paper); border: 1px solid var(--hair); border-radius: 12px; padding: 7px 8px; cursor: pointer;
  display: flex; flex-direction: column; gap: 1px; text-align: left; font-size: 0.74rem; line-height: 1.3; transition: border-color .15s, box-shadow .15s;
}
.cal__day:hover { border-color: var(--gold); box-shadow: var(--shadow-1); }
.cal__day.is-other { opacity: 0.45; }
.cal__day.is-today { border: 2px solid var(--kumkumam); }
.cal__day.is-picked { background: #fff3d8; border-color: var(--gold); }
.cal__day.is-sunday .cal__n { color: var(--bad); }
.cal__top { display: flex; justify-content: space-between; align-items: baseline; }
.cal__n { font-family: "Cormorant Garamond", serif; font-size: 1.5rem; font-weight: 700; color: var(--kumkumam); line-height: 1; }
.cal__tamil { font-weight: 700; color: var(--gold-deep); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cal__line { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal__fest { color: var(--bad); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.day-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gowri { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gowri div { padding: 9px 12px; border-radius: 10px; font-size: 0.88rem; border: 1px solid var(--hair); background: #fffdf9; }
.gowri div b { display: block; font-size: 0.95rem; }
.gowri .good b { color: var(--good); }
.gowri .bad b { color: var(--bad); }

/* ---- prose (policies) --------------------------------------------------------------------- */

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--gold); }

/* ---- motion --------------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---- narrow screens -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .rasi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero__grid, .split, .two-col, .chart-grid { grid-template-columns: 1fr !important; }
  .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
  .today { grid-template-columns: 1fr; }
  .today__body { grid-template-columns: 1fr 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 56px; }
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4, .form-grid--2 { grid-template-columns: 1fr; }
  .rasi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .rasi { padding: 10px 6px 12px; }
  .rasi .chip { font-size: 0.7rem; padding: 2px 6px; }
  .rasi__name { font-size: 0.92rem; }
  .select { padding: 10px 24px 10px 10px; background-position: right 8px center; font-size: 0.95rem; }
  .row-3, .row-time { gap: 6px; }
  .kattam-pair { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .palan-card { grid-template-columns: 72px 1fr; gap: 14px; }
  .palan-card img { width: 72px; height: 72px; }
  .cal { gap: 3px; }
  .cal__day { min-height: 64px; padding: 4px 4px; }
  .cal__line, .cal__fest { display: none; }
  .cal__day.has-fest::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bad); margin-top: auto; }
  .cal__n { font-size: 1.2rem; }
  .cal__tamil { font-size: 0.68rem; }
  .today__big { font-size: 3.2rem; }
  .dasa-row { grid-template-columns: 1fr; gap: 2px; }
  .btn--lg { --pad: 14px 24px; }
  .hero__ctas .btn { flex: 1 1 auto; }
}
@media (max-width: 380px) {
  .row-3 { grid-template-columns: 0.8fr 1.3fr 1fr; gap: 6px; }
  .today__body { grid-template-columns: 1fr; }
}

/* ==== the site as one app (20 Oct 2026) ======================================================== */
/* The bar at the top is the phone app's red header made small; the home's date sheet continues it. */

.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--header-h); color: var(--cream);
  background: var(--hero); box-shadow: 0 6px 22px rgba(74, 17, 12, 0.22);
}
.topbar__in { height: 100%; display: flex; align-items: center; gap: 10px; }
.topbar__back {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(240, 207, 138, 0.45);
  background: rgba(255, 251, 245, 0.1); color: var(--cream); display: grid; place-items: center; cursor: pointer; padding: 0;
}
.topbar__back:hover { background: rgba(255, 251, 245, 0.2); }
.topbar__back svg { width: 22px; height: 22px; }
.topbar__brand { flex-shrink: 0; display: block; }
.topbar__brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(240, 207, 138, 0.5); }
.topbar__name { min-width: 0; line-height: 1.1; }
.topbar__name b { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.36rem; font-weight: 700; color: var(--cream); white-space: nowrap; }
.topbar__name small { display: block; font-size: 0.7rem; color: var(--gold-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__title {
  min-width: 0; flex: 0 1 auto; font-family: var(--font-tamil-display); font-weight: 700; font-size: 1.18rem; line-height: 1.15;
  color: var(--cream); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.topnav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.topnav a {
  text-decoration: none; color: rgba(250, 241, 226, 0.88); font-weight: 600; font-size: 0.93rem; padding: 7px 12px;
  border-radius: 999px; white-space: nowrap; transition: background .2s, color .2s;
}
.topnav a:hover { background: rgba(255, 251, 245, 0.12); color: var(--cream); }
.topnav a[aria-current="page"] { background: rgba(240, 207, 138, 0.2); color: var(--gold-light); }
.topbar__acts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topnav + .topbar__acts { margin-left: 8px; }
.topbar__btn {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px 0 6px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(240, 207, 138, 0.45); background: rgba(255, 251, 245, 0.1); color: var(--cream); text-decoration: none;
  font-size: 0.88rem; font-weight: 600; white-space: nowrap; min-width: 0;
}
.topbar__btn:hover { background: rgba(255, 251, 245, 0.2); color: var(--cream); }
.topbar__btn .dot {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--btn-gold); color: var(--maroon-deep); font-weight: 800; font-size: 0.85rem;
}
.topbar__btn .dot svg { width: 16px; height: 16px; }
.topbar__btn .label { overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.topbar__menu { padding: 0 6px; }
.topbar .lang-toggle { background: rgba(255, 251, 245, 0.1); border-color: rgba(240, 207, 138, 0.45); }
.topbar .lang-toggle button { color: rgba(250, 241, 226, 0.8); }
.topbar .lang-toggle button[aria-pressed="true"] { background: var(--btn-gold); color: var(--maroon-deep); }
.menu-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 14px; flex-wrap: wrap; }
.menu-top .lang-toggle button { padding: 6px 14px; font-size: 0.95rem; }

/* Every screen sits on the cream with room above and below; the home starts with its date sheet. */
.view { padding: clamp(18px, 3vw, 30px) 0 clamp(48px, 7vw, 80px); min-height: 60vh; }
/* (the home opens with its almanac, under the bar like every screen) */
.lede { font-size: clamp(1rem, 1.4vw, 1.1rem); color: var(--ink-soft); max-width: 48em; margin: 0 0 clamp(14px, 2vw, 22px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.label-lg { display: block; font-weight: 700; color: var(--ink-soft); font-size: 0.98rem; margin: 0 0 8px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.card--link { display: block; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--gold); color: var(--ink); }

/* ---- the home's date sheet: the tear-off calendar, as the app's home draws it ---------------- */

.datehead {
  position: relative; overflow: hidden; isolation: isolate; color: var(--cream); background: var(--hero);
  padding: 14px 0 58px; margin-top: -1px;
}
.datehead::after {
  content: ""; position: absolute; z-index: -1; right: -50px; bottom: -70px; width: min(340px, 60vw); aspect-ratio: 1; opacity: 0.12;
  background: url("../img/yali-cream.webp") center / contain no-repeat; pointer-events: none;
}
.datehead__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.datehead__mid { text-align: center; min-width: 0; }
.datehead__tamil { font-weight: 700; color: var(--gold-light); font-size: clamp(0.98rem, 1.6vw, 1.15rem); }
.datehead__big {
  font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: clamp(4.4rem, 9vw, 6.4rem); line-height: 0.95;
  color: var(--cream); font-variant-numeric: lining-nums; text-shadow: 0 6px 26px rgba(30, 6, 3, 0.35);
}
.datehead__day { font-family: var(--font-tamil-display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--gold-light); }
.datehead__month { font-size: 1rem; color: rgba(250, 241, 226, 0.84); font-weight: 600; }
.datehead__nav {
  display: flex; flex-direction: column; align-items: center; gap: 4px; background: rgba(255, 251, 245, 0.1); cursor: pointer;
  border: 1px solid rgba(240, 207, 138, 0.4); border-radius: 18px; color: var(--cream); padding: 12px 12px 8px; min-width: 76px;
}
.datehead__nav:hover { background: rgba(255, 251, 245, 0.18); }
.datehead__nav svg { width: 26px; height: 26px; }
.datehead__nav--next svg { transform: rotate(180deg); }
.datehead__nav small { font-size: 0.78rem; font-weight: 600; color: rgba(250, 241, 226, 0.84); white-space: nowrap; }
.datehead__acts { position: relative; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 0 var(--gutter); }
.datehead__acts svg { width: 18px; height: 18px; }
.home { position: relative; }
.home__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(16px, 2vw, 24px); align-items: start; }
.home__h2 { margin: clamp(32px, 5vw, 52px) 0 16px; }
.home__promo { margin-top: clamp(24px, 4vw, 40px); }
.home__faq { margin-top: clamp(28px, 4vw, 44px); }
.promo { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--gold); color: var(--ink); }
.promo h3 { margin: 4px 0 0; }
.promo p { margin: 0; font-size: 0.93rem; }
.promo .price { margin-top: auto; }
.app-band { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; margin-top: clamp(24px, 4vw, 40px); }
.app-band .phone-shot { width: 100%; }

/* What this minute is - the app's now band: green for good, red for Rahu kalam. */
.nowband { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--hair-gold); background: var(--paper); box-shadow: var(--shadow-2); }
.nowband b { display: block; font-size: 1.12rem; line-height: 1.3; }
.nowband small { display: block; font-size: 0.92rem; opacity: 0.9; }
.nowband__dot { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; background: var(--muted); box-shadow: 0 0 0 5px rgba(140, 122, 110, 0.18); }
.nowband--good { background: var(--good-bg); border-color: rgba(47, 107, 58, 0.3); color: #24502c; }
.nowband--good .nowband__dot { background: var(--good); box-shadow: 0 0 0 5px rgba(47, 107, 58, 0.2); }
.nowband--bad { background: var(--bad-bg); border-color: rgba(190, 30, 20, 0.28); color: #7d1a10; }
.nowband--bad .nowband__dot { background: var(--bad); box-shadow: 0 0 0 5px rgba(190, 30, 20, 0.18); }
.nowband--warn { background: var(--amber-bg); border-color: rgba(168, 106, 12, 0.3); color: #6d4708; }
.nowband--warn .nowband__dot { background: #9a5b22; box-shadow: 0 0 0 5px rgba(154, 91, 34, 0.18); }
.nowband--kuligai { background: #f1eaf6; border-color: rgba(107, 74, 140, 0.3); color: #4b2f66; }
.nowband--kuligai .nowband__dot { background: #6b4a8c; box-shadow: 0 0 0 5px rgba(107, 74, 140, 0.18); }

.sheet { padding: clamp(16px, 2.4vw, 26px); }
.sheet__fest { background: var(--bad-bg); color: var(--bad); font-weight: 700; border-radius: var(--radius-s); padding: 10px 14px; margin-bottom: 14px; font-size: 1.02rem; }
.times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.time { padding: 12px 14px; border-radius: var(--radius-s); background: #fffdf9; border: 1px solid var(--hair); border-left: 5px solid var(--hair-gold); min-width: 0; }
.time__k { display: block; font-size: 0.86rem; font-weight: 700; color: var(--muted); }
.time__v { font-weight: 800; font-size: 1.12rem; line-height: 1.35; }
.time--good { border-left-color: var(--good); }
.time--good .time__v { color: var(--good); }
.time--bad { border-left-color: var(--bad); }
.time--bad .time__v { color: var(--bad); }
.time--warn { border-left-color: #9a5b22; }
.time--warn .time__v { color: #8a4f1a; }
.time--kuligai { border-left-color: #6b4a8c; }
.time--kuligai .time__v { color: #5a3c78; }
.angas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--hair-gold); }
.angas > div { min-width: 0; }
.angas span { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.angas b { display: block; font-size: 1.02rem; line-height: 1.3; }
.angas small { display: block; font-size: 0.82rem; color: var(--ink-soft); }
.sheet__chandra { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--radius-s); background: var(--amber-bg); color: #6d4708; font-size: 0.95rem; }

/* The rasi drawings, small: the home's card, the peyarchi and palan choosers. */
.rasi-grid--small { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.rasi--small { padding: 8px 4px 10px; border-radius: var(--radius-s); gap: 2px; }
.rasi--small img { width: 62%; margin-bottom: 2px; }
.rasi--small .rasi__name { font-size: 0.9rem; }
.rasi--small .stars { font-size: 0.82rem; letter-spacing: 0; }
.rasi.is-me { border: 2px solid var(--gold); background: linear-gradient(180deg, #fff6e0, #fdeac2); position: relative; }
.rasi.is-me::before { content: "★"; position: absolute; top: 4px; right: 8px; color: var(--gold-deep); font-size: 0.9rem; }
.tiles--menu { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px; }
.tiles--menu .tile { min-height: 96px; padding: 12px 6px 10px; font-size: 0.88rem; }
.tiles--menu .tile__icon { width: 40px; height: 40px; }
.modal__box:has(.tiles--menu) { width: min(560px, 100%); }

/* ---- the person in use: given once, used on every screen ------------------------------------ */

.avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--btn-red); color: var(--cream); font-weight: 800; font-size: 1.05rem; box-shadow: 0 4px 12px rgba(140, 38, 26, 0.25);
}
.avatar--lg { width: 54px; height: 54px; font-size: 1.35rem; }
.personbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; background: var(--paper);
  border: 1px solid var(--hair-gold); border-radius: var(--radius); box-shadow: var(--shadow-1); margin-bottom: clamp(14px, 2vw, 20px);
}
.personbar__who { flex: 1 1 150px; min-width: 0; line-height: 1.3; }
.personbar__who b { display: block; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.personbar__who small { display: block; color: var(--muted); font-size: 0.86rem; }
.personbar__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.personbar--side { margin-bottom: 0; box-shadow: none; background: #fffdf9; }
.ask { max-width: 640px; margin: 0 auto; }
.ask__title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.ask-small { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; }
.ask-small > div { flex: 1 1 260px; }
.rel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rel {
  padding: 11px 6px; border-radius: 12px; border: 1.5px solid var(--hair-gold); background: #fffdf9; color: var(--ink);
  font-weight: 700; font-size: 0.95rem; cursor: pointer; line-height: 1.25; transition: background .15s, border-color .15s;
}
.rel:hover { border-color: var(--gold); background: #fff6e3; }
.rel.is-on { background: var(--kumkumam); border-color: var(--kumkumam); color: var(--cream); }
.choice-row .rel { padding: 10px 16px; }
.people-list { display: grid; gap: 8px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.prow-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; cursor: pointer;
  border: 1px solid var(--hair-gold); border-radius: 14px; background: #fffdf9; color: var(--ink); line-height: 1.3;
}
.prow-btn:hover { border-color: var(--gold); background: #fff6e3; }
.prow-btn b { display: block; }
.prow-btn small { display: block; color: var(--muted); font-size: 0.84rem; }
.prow-btn .avatar { width: 38px; height: 38px; font-size: 0.95rem; }
.family-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; }
.family-row__who { flex: 1 1 200px; min-width: 0; line-height: 1.35; }
.family-row__who b { display: block; font-size: 1.1rem; }
.family-row__who small { display: block; color: var(--ink-soft); font-size: 0.88rem; }
.family-row__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.family-link { display: flex; align-items: center; gap: 14px; }
.family-link b { display: block; }
.family-link small { display: block; }
.family-link__go { margin-left: auto; font-size: 1.8rem; color: var(--gold-deep); line-height: 1; }
.hello-card { display: flex; align-items: center; gap: 14px; }

/* ---- small pieces of the screens -------------------------------------------------------------- */

.daynav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; }
.daynav__mid { flex: 1 1 160px; text-align: center; min-width: 0; }
.daynav__title { font-weight: 800; font-size: 1.15rem; color: var(--kumkumam); line-height: 1.3; }
.daynav__sub { font-size: 0.88rem; }
.daynav__acts { display: flex; gap: 8px; align-items: center; }
.daynav__acts .input { min-height: 40px; padding: 6px 10px; width: auto; }
.side-title { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; margin-bottom: 10px; }
.sheet-offer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, #fff6e3, #fdeccb); }
.sheet-offer > div { flex: 1 1 300px; }
.next-steps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(16px, 2.4vw, 24px); }
.product__meta { font-size: 0.86rem; color: var(--gold-deep); font-weight: 700; }
.product.is-wanted { border: 2px solid var(--gold); box-shadow: 0 0 0 5px rgba(210, 154, 42, 0.18), var(--shadow-2); }
.big-letter { font-family: var(--font-tamil-display); font-weight: 700; font-size: clamp(3.2rem, 7vw, 4.6rem); color: var(--kumkumam); line-height: 1.1; margin: 4px 0 8px; }
.ticks--plain li::before { width: 7px; height: 7px; margin-top: 0.62em; background: var(--gold); }
.pages { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--gold-deep); font-size: .95rem; }
.pages b { font-family: "Cormorant Garamond", serif; font-size: 1.7rem; color: var(--kumkumam); line-height: 1; }
.who { font-size: .86rem; color: var(--muted); font-weight: 600; margin-top: -4px; }
.pro-intro .hero__lead { color: var(--ink-soft); }
.pro-intro .trust-row { color: var(--ink-soft); }
.pro-intro .trust-row svg { color: var(--gold-deep); }
.pro-intro h1 { color: var(--kumkumam); }

@media (max-width: 1080px) {
  .topnav { display: none; }
  .topbar__acts { margin-left: auto; }
}
@media (max-width: 900px) {
  .home__grid { grid-template-columns: minmax(0, 1fr); }
  .app-band { grid-template-columns: 180px minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .topbar__in { gap: 8px; }
  .topbar__acts { gap: 6px; }
  .topbar__back { width: 38px; height: 38px; }
  .topbar__title { font-size: 1.02rem; }
  .topbar__name b { font-size: 1.18rem; }
  .topbar__name small { max-width: 150px; }
  .topbar__btn { height: 36px; padding: 0 9px 0 4px; font-size: 0.82rem; gap: 5px; }
  .topbar__btn .dot { width: 26px; height: 26px; }
  .topbar__btn .label { max-width: 74px; }
  .topbar__acct .label { display: none; }
  .topbar__acct { padding: 0 4px; }
  .topbar__menu { padding: 0 4px; }
  .topbar .lang-toggle button { padding: 3px 8px; }
  .topbar__brand img { width: 32px; height: 32px; }
  .datehead { padding-bottom: 52px; }
  .datehead__nav { min-width: 0; padding: 10px 8px 6px; border-radius: 14px; }
  .datehead__nav small { font-size: 0.7rem; }
  .times { gap: 8px; }
  .time { padding: 10px 11px; }
  .time__v { font-size: 1rem; }
  .angas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-band { grid-template-columns: minmax(0, 1fr); }
  .app-band .phone-shot { width: min(240px, 70%); }
  .rel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .daynav__acts { width: 100%; justify-content: center; }
  .family-row__acts { width: 100%; }
}
@media (max-width: 480px) {
  /* The bar keeps back, title, town, language and the menu; the account is in the menu. */
  .topbar__acct { display: none; }
}
@media (max-width: 380px) {
  .topbar__btn .label { max-width: 56px; }
  .topbar__name small { display: none; }
}
.menu-top .btn .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-red); color: var(--cream); font-size: 0.75rem; font-weight: 800; }
.menu-top .btn .dot svg { width: 14px; height: 14px; }
.lang-toggle { display: inline-flex; border: 1px solid var(--hair-gold); border-radius: 999px; padding: 3px; background: var(--paper); flex-shrink: 0; }
.lang-toggle button {
  border: 0; background: transparent; padding: 4px 11px; border-radius: 999px; cursor: pointer;
  font-size: 0.85rem; font-weight: 600; color: var(--muted); line-height: 1.4;
}
.lang-toggle button[aria-pressed="true"] { background: var(--kumkumam); color: var(--cream); }
.topbar__name { flex: 0 1 auto; overflow: hidden; }
.topbar__name b { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) {
  /* One language button on a phone: the language you can switch to. */
  .topbar .lang-toggle button[aria-pressed="true"] { display: none; }
  .topbar .lang-toggle button { padding: 3px 10px; color: var(--cream); }
  .topbar__name small { display: none; }
}
@media (max-width: 1080px) {
  .topnav + .topbar__acts { margin-left: auto; }
}
@media (max-width: 640px) {
  .topbar__back + .topbar__brand { display: none; }
  .topbar__town { padding: 0 10px 0 8px; gap: 4px; }
  .topbar__town .dot { background: none; width: 16px; height: 16px; color: var(--gold-light); }
  .topbar__town .dot svg { width: 16px; height: 16px; }
}
@media (max-width: 480px) {
  .topbar__name b { font-size: 1.12rem; }
  .topbar__title { font-size: 0.98rem; }
}
.pages b { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .link-arrow .arrow { font-size: 1.3rem; }
}
/* "என்னுடையது" is the usual answer and the longest word: it gets the first row, the nine others three by three. */
.rel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rel-grid .rel[data-rel="self"] { grid-column: 1 / -1; font-size: 1.02rem; padding: 12px 6px; }

/* ==== the dashboard: the red sidebar, the slim top bar, the bar at the bottom (20 Oct 2026) ========= */
/* The founder: "better sidebar, sticky, completely like a dashboard". The sidebar is the whole left edge
   and never moves; only the screen beside it scrolls. « folds it to icons. On a phone it slides in. */

:root { --side-w: 250px; --side-mini: 78px; }
.topbar__gap { flex: 1; }
.has-nav .topbar__menu { display: none; }

.side {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 70; width: var(--side-w);
  display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 12px;
  background: linear-gradient(180deg, #a8301c 0%, #7e1f14 50%, #4a110c 100%); color: var(--cream);
  overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(240, 207, 138, 0.35) transparent;
  box-shadow: 6px 0 26px rgba(74, 17, 12, 0.16); transition: width .2s ease, transform .25s ease;
}
.side__brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream);
  padding: 4px 6px 14px; margin-bottom: 8px; border-bottom: 1px solid rgba(240, 207, 138, 0.22);
}
.side__brand:hover { color: var(--cream); }
.side__brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(240, 207, 138, 0.5); flex-shrink: 0; }
.side__name { min-width: 0; }
.side__name b { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.32rem; line-height: 1.05; white-space: nowrap; }
.side__name small { display: block; font-size: 0.68rem; color: var(--gold-light); line-height: 1.25; margin-top: 3px; }
.side__close { display: none; }
.side__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side__item {
  display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 12px; text-decoration: none;
  color: rgba(250, 241, 226, 0.92); font-weight: 700; font-size: 0.94rem; line-height: 1.2; transition: background .15s, color .15s;
}
.side__item:hover { background: rgba(255, 251, 245, 0.10); color: var(--cream); }
.side__item.is-on { background: var(--btn-gold); color: var(--maroon-deep); box-shadow: 0 6px 16px rgba(30, 6, 3, 0.25); }
.side__icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(255, 251, 245, 0.10); color: var(--gold-light);
}
.side__icon svg { width: 18px; height: 18px; }
.side__item.is-on .side__icon { background: rgba(74, 17, 12, 0.12); color: var(--maroon-deep); }
.side__label { min-width: 0; }
.side__sep { height: 1px; background: rgba(240, 207, 138, 0.22); margin: 6px 8px; }
.side__acct { display: none; margin-top: 6px; }
.side__fold {
  margin-top: auto; align-self: flex-end; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(240, 207, 138, 0.4); background: rgba(255, 251, 245, 0.08); color: var(--cream);
  font-size: 1.15rem; cursor: pointer; display: grid; place-items: center; padding: 0;
}
.side__fold:hover { background: rgba(255, 251, 245, 0.18); }
.side-shade { display: none; }
.dock { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; content: ""; position: relative; }
.burger::before { position: absolute; top: -6px; }
.burger::after { position: absolute; top: 6px; }

@media (min-width: 1024px) {
  .has-nav .app { margin-left: var(--side-w); transition: margin-left .2s ease; }
  .side-mini .side { width: var(--side-mini); }
  .side-mini .app { margin-left: var(--side-mini); }
  .side-mini .side__name, .side-mini .side__label { display: none; }
  .side-mini .side__item { justify-content: center; padding: 7px 0; }
  .side-mini .side__brand { justify-content: center; padding: 4px 0 14px; }
  .side-mini .side__fold { align-self: center; }
  .side-mini .side__fold span { display: inline-block; transform: rotate(180deg); }
  /* The top bar beside it is slim and cream: the red is the sidebar's. */
  .has-nav .topbar { background: rgba(255, 251, 245, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); box-shadow: 0 1px 0 var(--hair-gold), 0 6px 18px rgba(84, 32, 20, 0.05); }
  .has-nav .topbar .wrap, .has-nav main .wrap { padding: 0 28px; }
  .has-nav .topbar__brand, .has-nav .topbar__name { display: none; }
  .has-nav .topbar__title { color: var(--kumkumam); font-size: 1.3rem; }
  .has-nav .topbar__back { border-color: var(--hair-gold); background: var(--paper); color: var(--kumkumam); }
  .has-nav .topbar__back:hover { background: #fff3d8; }
  .has-nav .topbar__btn { border-color: var(--hair-gold); background: var(--paper); color: var(--ink); }
  .has-nav .topbar__btn:hover { background: #fff3d8; color: var(--kumkumam); }
  .has-nav .topbar__btn .dot { background: var(--btn-red); color: var(--cream); }
  .has-nav .topbar__town .dot { background: none; color: var(--kumkumam); }
  .has-nav .topbar .lang-toggle { background: var(--paper); border-color: var(--hair-gold); }
  .has-nav .topbar .lang-toggle button { color: var(--muted); }
  .has-nav .topbar .lang-toggle button[aria-pressed="true"] { background: var(--kumkumam); color: var(--cream); }
  .has-nav .home__tiles { display: none; }
}
@media (max-width: 1023px) {
  .side { width: min(300px, 86vw); transform: translateX(-105%); box-shadow: none; }
  .side-open .side { transform: none; box-shadow: var(--shadow-3); }
  .side-shade { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(74, 17, 12, 0.45); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .side-open .side-shade { opacity: 1; pointer-events: auto; }
  .side__close {
    display: grid; place-items: center; position: absolute; top: 16px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
    border: 0; background: rgba(255, 251, 245, 0.12); color: var(--cream); font-size: 1.4rem; cursor: pointer; line-height: 1;
  }
  .side__brand { padding-right: 46px; }
  .side__acct { display: flex; }
  .side__fold { display: none; }
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    background: var(--paper); border-top: 1px solid var(--hair-gold); box-shadow: 0 -6px 20px rgba(84, 32, 20, 0.10);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  body.has-nav { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body.has-nav .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
.dock__item {
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--ink-soft);
  font-size: 0.72rem; font-weight: 700; line-height: 1.15; text-align: center; border: 0; background: none; padding: 2px; cursor: pointer; min-width: 0;
}
.dock__icon { width: 46px; height: 30px; border-radius: 15px; display: grid; place-items: center; transition: background .15s; }
.dock__icon svg { width: 22px; height: 22px; }
.dock__item.is-on { color: var(--kumkumam); }
.dock__item.is-on .dock__icon { background: rgba(210, 154, 42, 0.24); }
.dock__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- the almanac: the month on the left, the day on the right ---------------------------------- */

.alm { display: grid; gap: clamp(16px, 2vw, 24px); }
.alm__cal { order: 2; display: grid; gap: 16px; align-content: start; min-width: 0; }
.alm__day { order: 1; display: grid; gap: clamp(14px, 2vw, 20px); align-content: start; min-width: 0; }
@media (min-width: 1100px) {
  .alm { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: start; }
  .alm__cal, .alm__day { order: 0; }
  .alm__cal {
    position: sticky; top: calc(var(--header-h) + 16px);
    max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; scrollbar-width: thin;
  }
}
.cal-card { padding: 16px; }
.cal-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cal-card__title { text-align: center; min-width: 0; line-height: 1.25; }
.cal-card__title h3 { margin: 0; font-size: 1.25rem; }
.cal-card__title small { display: block; color: var(--gold-deep); font-weight: 700; font-size: 0.86rem; }
.cal--compact { gap: 4px; }
.cal--compact .cal__dow { font-size: 0.78rem; padding: 2px 0; }
.cal--compact .cal__day { position: relative; min-height: 64px; padding: 5px 5px 4px; gap: 0; font-size: 0.7rem; border-radius: 10px; }
.cal--compact .cal__n { font-size: 1.28rem; }
.cal--compact .cal__tamil { font-size: 0.72rem; }
.cal--compact .cal__line { font-size: 0.64rem; color: var(--muted); }
.cal__moon { font-size: 0.78rem; color: var(--ink); line-height: 1; }
.cal--compact .cal__day.has-fest::after {
  content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); margin: 0;
}
.cal--compact .cal__day.has-fest .cal__moon { margin-right: 10px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 0.78rem; color: var(--muted); }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 5px; }
.lg--today { border: 2px solid var(--kumkumam); }
.lg--fest { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); vertical-align: 1px; }
.fest-card { padding: 16px; }
.fest-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.fest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 280px; overflow-y: auto; scrollbar-width: thin; }
.fest-list__item {
  display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; cursor: pointer; color: var(--ink);
  border: 1px solid var(--hair); background: #fffdf9; border-radius: 12px; padding: 7px 10px; font-weight: 600; line-height: 1.3;
}
.fest-list__item:hover { border-color: var(--gold); }
.fest-list__item.is-picked { background: #fff3d8; border-color: var(--gold); }
.fest-list__date { display: grid; place-items: center; width: 40px; flex-shrink: 0; line-height: 1.05; }
.fest-list__date b { font-family: "Cormorant Garamond", serif; font-size: 1.4rem; color: var(--kumkumam); font-variant-numeric: lining-nums; }
.fest-list__date small { font-size: 0.7rem; color: var(--muted); }

.dayhead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 14px 16px; }
.dayhead__mid { text-align: center; min-width: 0; }
.dayhead__date { font-family: var(--font-tamil-display); font-weight: 700; font-size: clamp(1.12rem, 1.8vw, 1.32rem); color: var(--kumkumam); line-height: 1.3; }
.dayhead__tamil { font-weight: 700; color: var(--gold-deep); }
.dayhead__place { font-size: 0.85rem; }
.dayhead__acts { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.dayhead__acts svg { width: 16px; height: 16px; }
.anga-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.anga { border: 1px solid var(--hair); border-radius: 12px; background: #fffdf9; overflow: hidden; min-width: 0; }
.anga__title { background: #fbefd9; color: var(--kumkumam); font-weight: 700; padding: 7px 12px; font-size: 0.9rem; }
.anga__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 7px 12px; border-top: 1px solid var(--hair); font-size: 0.93rem; }
.anga__row b { font-weight: 700; }
.anga__row b small { color: var(--muted); font-weight: 500; font-size: 0.78rem; }
.anga__row span { color: var(--ink-soft); text-align: right; font-size: 0.85rem; }
.anga__row.is-first { background: rgba(210, 154, 42, 0.12); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 18px; }

/* ---- one rasi: the pop-up and the page ---------------------------------------------------------- */

.modal__box--wide { width: min(720px, 100%); }
.rasi-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; padding-right: 36px; }
.rasi-head img { width: 84px; height: 84px; object-fit: contain; flex-shrink: 0; }
.rasi-head__text { min-width: 0; }
.rasi-head__name { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--cream-deep); padding: 5px; border-radius: 14px; margin-bottom: 16px; }
.tabs__tab { border: 0; background: transparent; padding: 10px 8px; border-radius: 10px; font-weight: 700; font-size: 0.98rem; color: var(--ink-soft); cursor: pointer; line-height: 1.25; }
.tabs__tab[aria-selected="true"] { background: var(--paper); color: var(--kumkumam); box-shadow: var(--shadow-1); }
.tabs__panel .ask { max-width: none; box-shadow: none; border: 0; padding: 0; background: transparent; }
.tabs__panel .ask__title { font-size: 1.2rem; }
.rasi-page { margin-top: clamp(14px, 2vw, 20px); }
.rasi-page .rasi-head { padding-right: 0; }
.mine-strip {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px;
  background: linear-gradient(135deg, #fff6e3, #fdeccb); border: 1px solid var(--hair-gold); border-radius: var(--radius);
}
.mine-strip img { width: 56px; height: 56px; object-fit: contain; }
.mine-strip__text { flex: 1 1 200px; min-width: 0; }
.mine-strip__text b { display: block; font-size: 1.05rem; }
.mine-strip__text small { display: block; color: var(--ink-soft); }
.home__sec { margin-top: clamp(28px, 4vw, 44px); }
.home__sec .card__title-row { margin-bottom: 14px; }
.rasi-grid .rasi__verdict .chip { font-size: 0.72rem; padding: 1px 8px; }

@media (max-width: 640px) {
  .anga-grid { grid-template-columns: minmax(0, 1fr); }
  .rasi-head img { width: 64px; height: 64px; }
  .dayhead { padding: 12px; }
  .cal--compact { gap: 3px; }
  .cal--compact .cal__day { min-height: 54px; padding: 4px 3px; }
  .cal--compact .cal__n { font-size: 1.1rem; }
  .cal--compact .cal__line { display: none; }
}
.cal__n, .cal-card__title h3, .dayhead__date { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.tabs__panel .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .rasi-head__name { font-size: 1.22rem; } }

.topbar__title.is-home { display: none; }
@media (min-width: 1024px) { .has-nav .topbar__title.is-home { display: block; } }

/* The chosen day at the head of the calendar (founder, 20 Oct 2026): date, Tamil date, town, the day
   before and after, back to today, WhatsApp. The right side is only the panchangam. */
.cal-card__day {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 10px;
  margin: 2px 0 12px; padding: 10px 12px; border-radius: 14px;
  background: linear-gradient(135deg, #fff6e3, #fdeccb); border: 1px solid var(--hair-gold);
}
.cal-card__dayinfo { text-align: center; min-width: 0; line-height: 1.3; }
.cal-card__dayinfo b { display: block; font-family: var(--font-tamil-display); font-size: 0.98rem; color: var(--kumkumam); font-variant-numeric: lining-nums; }
.cal-card__dayinfo small { display: block; color: var(--gold-deep); font-weight: 700; font-size: 0.82rem; }
.cal-card__acts { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.icon-btn--sm { width: 34px; height: 34px; font-size: 1rem; }
.btn--whatsapp { background: var(--good); color: var(--cream); box-shadow: 0 6px 16px rgba(47, 107, 58, 0.25); }
.btn--whatsapp:hover { color: var(--cream); filter: brightness(1.06); }
.btn--whatsapp svg { width: 16px; height: 16px; }
.btn.is-off { opacity: 0.5; pointer-events: none; }
.alm__cal { scrollbar-width: none; }
.alm__cal::-webkit-scrollbar { display: none; }
@media (max-width: 1099px) {
  .alm__cal { display: contents; }
  .alm__cal > .cal-card { order: 1; }
  .alm__day { order: 2; }
  .alm__cal > .fest-card { order: 3; }
}

/* The calendar whole on the screen (founder, 20 Oct 2026, on a laptop at 125%: about 735 px of height).
   The squares take what the screen gives them, between a phone's and a big monitor's. */
.cal-card { padding: 12px 14px; }
.cal-card__head { margin-bottom: 8px; }
.cal-card__head .icon-btn { width: 34px; height: 34px; }
.cal-card__title h3 { font-size: 1.15rem; }
.cal-card__title small { font-size: 0.8rem; }
.cal-card__day { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 6px 8px; }
.cal-card__dayinfo { flex: 1 1 auto; }
.cal--compact { gap: 3px; }
.cal--compact .cal__dow { padding: 0; }
.cal--compact .cal__day { min-height: clamp(46px, calc((100vh - 380px) / 6), 74px); padding: 4px 5px 3px; }
.cal-legend { margin-top: 6px; font-size: 0.74rem; }
.linkish { border: 0; background: none; padding: 0; margin-top: 2px; cursor: pointer; color: var(--kumkumam); font-weight: 700; font-size: 0.8rem; text-decoration: underline; text-underline-offset: 2px; }
.icon-btn.is-off { opacity: 0.5; pointer-events: none; }
@media (max-width: 640px) {
  .cal--compact .cal__day { min-height: 50px; padding: 4px 3px; }
}

/* Share: a plain share mark, the size of the arrows beside it (founder, 20 Oct 2026: "make it small ... dont
   show app icon just show share icon"). */
.icon-btn--share { color: var(--kumkumam); text-decoration: none; }
.icon-btn--share svg { width: 16px; height: 16px; }
.cal-card__day .icon-btn { flex-shrink: 0; }
/* The now band above the calendar, on the left (founder, 20 Oct 2026); the squares give it room so the
   calendar still fits the screen. */
.alm__now:empty { display: none; }
.alm__now .nowband { padding: 10px 16px; box-shadow: var(--shadow-1); }
.alm.with-now .cal--compact .cal__day { min-height: clamp(46px, calc((100vh - 470px) / 6), 74px); }
@media (max-width: 1099px) { .alm__cal > .alm__now { order: 0; } }
@media (max-width: 640px) { .alm.with-now .cal--compact .cal__day { min-height: 50px; } }

/* The Yali at the head of the sidebar, centred, the name under it (founder, 20 Oct 2026). The rows are
   sized by the screen's height so all thirteen fit on a laptop without the sidebar scrolling. */
.side__brand { flex-direction: column; text-align: center; gap: 8px; padding: 6px 4px 14px; }
.side__brand img { width: 60px; height: 60px; border-radius: 16px; box-shadow: 0 0 0 1px rgba(240, 207, 138, 0.55), 0 8px 20px rgba(30, 6, 3, 0.35); }
.side__name b { font-size: 1.36rem; }
.side__list { gap: 1px; }
.side__item { padding: 6px 10px; }
.side__icon { width: 32px; height: 32px; }
.side__fold { width: 32px; height: 32px; }
@media (max-height: 780px) {
  .side { padding-top: 10px; }
  .side__brand { gap: 6px; padding-bottom: 10px; margin-bottom: 6px; }
  .side__brand img { width: 52px; height: 52px; border-radius: 14px; }
  .side__item { padding: 4px 10px; font-size: 0.9rem; }
  .side__icon { width: 30px; height: 30px; }
  .side__sep { margin: 4px 8px; }
}
@media (min-width: 1024px) {
  .side-mini .side__brand img { width: 46px; height: 46px; }
}
@media (max-width: 1023px) {
  .side__brand { padding-left: 40px; padding-right: 40px; }
}

/* The now band's dot beats like a live sign, in its own colour (founder, same evening). */
.nowband__dot { position: relative; }
.nowband__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: now-pulse 2s ease-out infinite;
}
@keyframes now-pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nowband__dot::after { animation: none; display: none; } }

/* The Yali as a watermark in the middle of the sidebar (founder, 20 Oct 2026: "center at the sidebar, bigger,
   look like watermark") - his cream drawing, faint, behind the features; the phone app's header does the same. */
.side { isolation: isolate; }
.side::before {
  content: ""; position: absolute; left: 50%; top: 55%; width: 230px; height: 230px; transform: translate(-50%, -50%);
  background: url("../img/yali-cream.webp") center / contain no-repeat; opacity: 0.09; pointer-events: none; z-index: -1;
}
.side-mini .side::before { display: none; }

/* The Yali once, as the watermark: the head of the sidebar is the name alone (founder, 20 Oct 2026). Folded to
   icons, where neither the name nor the watermark has room, the small logo carries the brand. */
.side__brand img { display: none; }
.side__brand { padding: 12px 4px 16px; gap: 0; }
.side__name b { font-size: 1.6rem; letter-spacing: 0.01em; }
.side__name small { font-size: 0.76rem; margin-top: 5px; }
@media (min-width: 1024px) {
  .side-mini .side__brand img { display: block; width: 46px; height: 46px; }
}

/* The screen starts right under the bar (founder, 20 Oct 2026: "why it starts with some space"): the same small
   gap above the panels when the page opens and once the calendar's column stays in view, so nothing shifts. */
@media (min-width: 1024px) {
  .has-nav .view { padding-top: 12px; }
}
@media (min-width: 1100px) {
  .alm__cal { top: calc(var(--header-h) + 12px); max-height: calc(100vh - var(--header-h) - 20px); }
}

/* ==== the home as one long page of sections (founder, 20 Oct 2026) ================================ */
.home-sec { margin-top: clamp(30px, 4vw, 48px); }
.home-sec__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.home-sec__head h2 { margin: 0; flex: 1 1 auto; min-width: 0; font-size: clamp(1.3rem, 2vw, 1.65rem); }
.home-sec__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, #fff1d6, #fbe2b4); color: var(--kumkumam); box-shadow: 0 0 0 1px var(--hair-gold);
}
.home-sec__icon svg { width: 22px; height: 22px; }
.home-sec__head .link-arrow { flex-shrink: 0; font-size: 0.92rem; }
.home-sec .ask { max-width: none; }
.sec-card { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.sec-card__text { flex: 1 1 340px; min-width: 0; }
.sec-card__acts { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.next-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.next-row {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--hair-gold); border-radius: 14px; box-shadow: var(--shadow-1);
  transition: border-color .15s, transform .15s;
}
.next-row:hover { border-color: var(--gold); transform: translateY(-1px); color: var(--ink); }
.next-row__date { width: 58px; flex-shrink: 0; text-align: center; line-height: 1.05; }
.next-row__date b { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.7rem; color: var(--kumkumam); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.next-row__date small { display: block; font-size: 0.72rem; color: var(--gold-deep); font-weight: 700; white-space: nowrap; }
.next-row__main { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.next-row__main b { display: block; }
.next-row__main small { display: block; color: var(--ink-soft); font-size: 0.86rem; }
.next-row .chip { flex-shrink: 0; }
@media (max-width: 640px) {
  .home-sec__head .link-arrow .label, .home-sec__head .link-arrow span[data-l] { display: none; }
  .next-row { gap: 10px; padding: 9px 10px; }
  .next-row .chip { font-size: 0.72rem; padding: 2px 8px; white-space: normal; text-align: center; max-width: 92px; }
}
.home-sec .home-sec__head h2 { font-size: clamp(1.25rem, 1.9vw, 1.55rem); line-height: 1.25; }
.next-row__date { width: 78px; }

/* ==== the family on the home (founder, 20 Oct 2026) =============================================== */
.home-sec__sub { margin: -6px 0 14px 54px; color: var(--gold-deep); font-weight: 700; font-size: 0.86rem; }
.fam-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.fam-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; cursor: pointer;
  min-height: 168px; padding: 16px 10px; border-radius: var(--radius); background: var(--paper); color: var(--ink);
  border: 1px solid var(--hair-gold); box-shadow: var(--shadow-1); transition: transform .15s, box-shadow .15s, border-color .15s; line-height: 1.3;
}
.fam-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--gold); }
.fam-tile b { font-size: 1.05rem; color: var(--kumkumam); }
.fam-tile small { color: var(--ink-soft); font-size: 0.84rem; font-weight: 700; }
.fam-tile .fam-tile__sub { color: var(--gold-deep); font-weight: 600; font-size: 0.8rem; }
.fam-tile__pic { width: 64px; height: 64px; object-fit: contain; margin-bottom: 4px; }
.fam-tile .avatar { margin-bottom: 4px; }
.fam-tile--add { background: transparent; border: 2px dashed var(--hair-gold); box-shadow: none; }
.fam-tile--add:hover { background: #fff6e3; }
.fam-tile__plus {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px;
  background: var(--btn-gold); color: var(--maroon-deep); font-size: 2rem; font-weight: 700; line-height: 1;
  box-shadow: 0 6px 16px rgba(201, 138, 30, 0.35);
}
.rel-grid--add .rel { padding: 14px 6px; font-size: 1rem; }
.fam-day { padding: 14px 16px; margin-bottom: 16px; }
.fam-day__title { font-weight: 800; color: var(--kumkumam); margin-bottom: 8px; }
.fam-day__row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; padding: 8px 10px; margin: 0;
  border: 0; border-top: 1px solid var(--hair); background: transparent; color: var(--ink); border-radius: 0;
}
.fam-day__row:first-of-type { border-top: 0; }
.fam-day__row:hover { background: #fff6e3; }
.fam-day__row img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.fam-day__row .avatar { width: 44px; height: 44px; }
.fam-day__who { flex: 1 1 140px; min-width: 0; line-height: 1.3; }
.fam-day__who b { display: block; }
.fam-day__who small { display: block; color: var(--ink-soft); font-size: 0.84rem; }
.fam-day__chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.fam-day__go { font-size: 1.5rem; color: var(--gold-deep); line-height: 1; }
.who-row--switch { margin-bottom: 14px; }
.who-row--switch .chip small { font-weight: 600; opacity: 0.8; }
.who-row--switch .chip.is-on { background: var(--kumkumam); color: var(--cream); border-color: var(--kumkumam); }
@media (max-width: 640px) {
  .home-sec__sub { margin-left: 0; }
  .fam-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fam-tile { min-height: 150px; }
  .fam-day__row { flex-wrap: wrap; }
  .fam-day__chips { width: 100%; justify-content: flex-start; padding-left: 56px; }
  .fam-day__go { display: none; }
}

/* A person's tile: the tile opens his chart; ✎ and 🗑 in its corner change or remove him (founder, 21 Oct 2026). */
.fam-tile--person { position: relative; padding: 0; }
.fam-tile__open {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%;
  min-height: inherit; padding: 16px 10px; border: 0; background: none; cursor: pointer; color: inherit; line-height: 1.3; border-radius: inherit;
}
.fam-tile__open b { font-size: 1.05rem; color: var(--kumkumam); }
.fam-tile__open small { color: var(--ink-soft); font-size: 0.84rem; font-weight: 700; }
.fam-tile__open .fam-tile__sub { color: var(--gold-deep); font-weight: 600; font-size: 0.8rem; }
.fam-tile__tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.fam-tile__tool {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--hair-gold); background: var(--paper); color: var(--kumkumam);
}
.fam-tile__tool svg { width: 15px; height: 15px; }
.fam-tile__tool:hover { background: #fff3d8; border-color: var(--gold); }
.fam-tile__tool--del { color: var(--bad); }
.fam-tile__tool--del:hover { background: var(--bad-bg); border-color: rgba(190, 30, 20, 0.35); }

/* The family's day as small tiles, each with the wall calendar's word at its foot (founder, 21 Oct 2026). */
.fam-day__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.fam-day__tile {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 8px 12px; cursor: pointer; text-align: center;
  border: 1px solid var(--hair-gold); border-radius: var(--radius-s); background: #fffdf9; color: var(--ink); line-height: 1.25;
  transition: transform .15s, box-shadow .15s, border-color .15s; min-width: 0;
}
.fam-day__tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); border-color: var(--gold); }
.fam-day__tile img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 2px; }
.fam-day__tile .avatar { margin-bottom: 4px; }
.fam-day__tile b { color: var(--kumkumam); font-size: 0.98rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fam-day__tile small { color: var(--ink-soft); font-size: 0.78rem; }
.fam-day__tile .chip { margin-top: 6px; font-size: 0.86rem; padding: 3px 12px; }
.rasi .rasi__verdict .chip { font-size: 0.8rem; }
@media (max-width: 640px) { .fam-day__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fam-day--bare { padding: 0; margin-bottom: 18px; background: none; border: 0; box-shadow: none; }
.fam-day--bare .fam-day__title { margin-bottom: 10px; }
.fam-day--bare .fam-day__tile { background: var(--paper); box-shadow: var(--shadow-1); }
.fam-day--bare .fam-day__tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 172px)); }
@media (max-width: 640px) { .fam-day--bare .fam-day__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The Moon's day above the rasi tiles (21 Oct 2026): the sign it holds most of the day, the change with its time. */
.palan-sky { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 10px 14px; border-radius: 12px;
  background: var(--paper); border: 1px solid rgba(168, 106, 12, 0.25); font-size: 0.95rem; line-height: 1.5; }
.palan-sky__icon { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; color: var(--kumkumam); }
.palan-sky__icon svg { width: 100%; height: 100%; }
.palan-sky b { color: var(--kumkumam); font-weight: 700; }
.rasi__part { display: block; font-size: 0.72rem; color: #6d4708; font-weight: 600; margin-top: 2px; text-align: center; }

/* Why sign in, in the sign-in pop-up (21 Oct 2026). */
.signin-why { margin: 4px 0 16px; font-size: 0.9rem; }

/* The match (21 Oct 2026): the person card's actions under it, "+ another prospect", the prospects compared. */
.match-list { display: grid; gap: 12px; }
.match-entry .acc__body { display: grid; gap: 10px; }
.match-acts { display: flex; gap: 8px; flex-wrap: wrap; }
/* "+ இன்னொரு வரன்": a quiet dashed tile under the side, not one more loud button. */
.match-more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px;
  padding: 11px 14px; border: 1.5px dashed rgba(168, 106, 12, 0.45); border-radius: 14px; background: transparent;
  color: var(--kumkumam); font: inherit; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s; }
.match-more:hover { background: #fdf3e1; border-color: var(--gold, #c9962c); }
.match-more span { font-size: 1.2rem; line-height: 1; }
/* Two or more on a side: cards that open and close, the × on the card itself (21 Oct 2026). */
.acc__head { display: none; }
.acc { border: 1px solid rgba(168, 106, 12, 0.28); border-radius: 16px; background: #fffdf9; overflow: hidden;
  transition: box-shadow .25s, border-color .25s; }
.acc.is-open { border-color: rgba(201, 150, 44, 0.75); box-shadow: 0 6px 22px rgba(122, 30, 20, 0.10); }
.acc > .acc__head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; cursor: pointer; user-select: none; }
.acc > .acc__head:hover { background: #fff7ea; }
.acc > .acc__head:focus-visible { outline: 2px solid var(--gold, #c9962c); outline-offset: -2px; }
.acc__n { flex-shrink: 0; padding: 3px 11px; border-radius: 999px; background: linear-gradient(135deg, #fff1d6, #fbe3b4);
  color: var(--kumkumam); font-weight: 700; font-size: 0.84rem; }
.acc__who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 0.92rem; }
.acc:not(.is-open) .acc__who { color: var(--muted); }
.acc__chev { flex-shrink: 0; color: var(--muted); transition: transform .25s; font-size: 0.9rem; }
.acc.is-open .acc__chev { transform: rotate(180deg); }
.acc__x { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(168, 106, 12, 0.3); background: var(--paper); color: var(--kumkumam); font-size: 1.15rem;
  line-height: 1; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.acc__x:hover { background: #fdecea; color: var(--bad); border-color: rgba(176, 38, 38, 0.4); }
.acc > .acc__body { padding: 2px 14px 14px; }
.acc:not(.is-open) > .acc__body { display: none; }
.acc .personbar--side { background: var(--paper); }
.cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 6px; }
.cmp__card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px; text-align: center;
  cursor: pointer; border: 1px solid rgba(168, 106, 12, 0.25); font: inherit; color: inherit; }
.cmp__card.is-on { border-color: var(--gold, #c9962c); box-shadow: 0 0 0 2px rgba(201, 150, 44, 0.45), var(--shadow-1); }
.cmp__n { font-size: 0.82rem; font-weight: 700; color: var(--kumkumam); }
.cmp__name { font-size: 1.05rem; }
.cmp__line { color: var(--muted); font-size: 0.85rem; }
.ring.ring--sm { width: 84px; height: 84px; }
.ring.ring--sm::before { inset: 8px; }
.ring--sm .ring__in b { font-size: 1.5rem; }
.ring--sm .ring__in small { font-size: 0.72rem; }
.plan-mini { margin-top: 14px; padding: 16px; }
.acc.is-open .acc__who { visibility: hidden; }

/* A reason to read, in a calm pop-up (21 Oct 2026): narrow, centred, a soft mark, never a red wall. */
.modal__box:has(.notice-box) { max-width: 420px; }
.notice-box { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 6px 4px 2px; }
.notice-box__mark { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem;
  font-weight: 800; font-family: var(--font-display, serif); color: #8a5a0a;
  background: radial-gradient(circle at 35% 30%, #fff6e0, #fbe2ad); box-shadow: 0 0 0 6px rgba(201, 150, 44, 0.14); }
.notice-box--bad .notice-box__mark { color: var(--bad); background: radial-gradient(circle at 35% 30%, #fff1ef, #f9d3cd);
  box-shadow: 0 0 0 6px rgba(176, 38, 38, 0.10); }
.notice-box__title { margin: 4px 0 0; font-size: 1.25rem; color: var(--kumkumam); }
.notice-box__who { padding: 3px 12px; border-radius: 999px; background: #fdf0d8; color: var(--kumkumam); font-weight: 700; font-size: 0.85rem; }
.notice-box__text { margin: 0 0 8px; line-height: 1.6; color: var(--ink); }
.notice-box .btn { margin-top: 4px; }

/* The marriage muhurtham on the home (21 Oct 2026, option B): a tab a month with its count, the days in two columns. */
.mu-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.mu-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px; border-radius: 16px;
  border: 1px solid rgba(168, 106, 12, 0.28); background: var(--paper); color: var(--ink); font: inherit; cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s; }
.mu-tab b { font-family: var(--font-tamil-display, inherit); font-size: 1.08rem; color: var(--kumkumam); }
.mu-tab__n { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.mu-tab:hover { border-color: var(--gold, #c9962c); transform: translateY(-1px); }
.mu-tab.is-on { background: linear-gradient(135deg, #8c261a, #b23a22); border-color: transparent; box-shadow: 0 8px 22px rgba(122, 30, 20, 0.22); }
.mu-tab.is-on b, .mu-tab.is-on .mu-tab__n { color: #fff6e3; }
.mu-panel { border-radius: 18px; border: 1px solid rgba(168, 106, 12, 0.22); background: #fffdf9; padding: 14px; box-shadow: var(--shadow-1); }
.mu-panel__head { margin: 0 0 12px; font-weight: 700; color: var(--kumkumam); }
.mu-panel__head span { color: var(--muted); font-weight: 600; }
.mu-days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mu-day { position: relative; display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(168, 106, 12, 0.22); background: var(--paper); color: var(--ink); text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s; }
.mu-day:hover { border-color: var(--gold, #c9962c); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(122, 30, 20, 0.08); color: var(--ink); }
.mu-day.is-next { border-color: rgba(201, 150, 44, 0.8); background: linear-gradient(135deg, #fffaf0, #fdf0d4); }
.mu-day__date { width: 54px; flex-shrink: 0; text-align: center; line-height: 1.05; }
.mu-day__date b { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.9rem; color: var(--kumkumam);
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.mu-day__date small { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.mu-day__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mu-day__main b { font-size: 0.98rem; }
.mu-day__main small { color: var(--muted); font-size: 0.84rem; }
.mu-day__main .mu-day__in { color: #8a5a0a; font-weight: 600; font-size: 0.78rem; }
.mu-day__next { position: absolute; top: 8px; right: 10px; padding: 2px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 700;
  color: #6d4708; background: #fbe2ad; }
@media (max-width: 640px) {
  .mu-tabs { gap: 6px; }
  .mu-tab { padding: 10px 6px; border-radius: 14px; }
  .mu-tab b { font-size: 0.95rem; }
  .mu-days { grid-template-columns: 1fr; }
  .mu-panel { padding: 10px; }
}

/* The muhurtham finder's options, the same on the home and its page (21 Oct 2026). */
.mu-opts { display: grid; gap: 14px; margin-bottom: 16px; padding: 16px 18px; border-radius: 18px; background: var(--paper);
  border: 1px solid rgba(168, 106, 12, 0.22); box-shadow: var(--shadow-1); }
.mu-opts__row { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: start; }
.mu-opts__label { font-weight: 700; color: var(--kumkumam); padding-top: 7px; line-height: 1.3; }
.mu-opts__label small { display: block; font-weight: 500; color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.mu-opts__rasi { margin: 0; }
.mu-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mu-chip { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(168, 106, 12, 0.3); background: #fffdf9;
  color: var(--ink); font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.mu-chip:hover { border-color: var(--gold, #c9962c); background: #fff7ea; }
.mu-chip.is-on { background: linear-gradient(135deg, #8c261a, #b23a22); border-color: transparent; color: #fff6e3; }
.mu-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 10px; font-weight: 700; color: var(--kumkumam); }
.mu-nav .icon-btn[disabled] { opacity: .35; cursor: default; }
.mu-panel { position: relative; }
.mu-panel.is-busy > :not(.mu-panel__wait) { opacity: .45; transition: opacity .2s; }
.mu-panel__wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; color: var(--kumkumam); }
.mu-panel__note { margin: -6px 0 12px; font-size: 0.86rem; color: #8a5a0a; }
button.mu-day { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.mu-day__main b em { font-style: normal; font-size: 0.78rem; font-weight: 700; color: #8a5a0a; background: #fdf0d8; padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
@media (max-width: 640px) {
  .mu-opts { padding: 12px; }
  .mu-opts__row { grid-template-columns: 1fr; gap: 6px; }
  .mu-opts__label { padding-top: 0; }
}
.modal__box:has(.mu-dayview) { max-width: 560px; }
.mu-hours { display: grid; gap: 8px; }
.mu-hour { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(168, 106, 12, 0.22); background: #fffdf9; }
.mu-hour__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.mu-hour__top b { font-size: 1rem; }
.mu-hour__lagnam { color: var(--kumkumam); font-weight: 600; }
.mu-hour__notes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mu-hour__notes .chip { white-space: normal; line-height: 1.35; }

/* The finder's fourth tab, the way back, and the wait (21 Oct 2026). */
.mu-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.9fr); }
.mu-tab--more { border-style: dashed; background: transparent; }
.mu-tab--more b { display: inline-flex; align-items: center; gap: 6px; font-size: 0.98rem; }
.mu-tab--more .mu-tab__n { font-size: 1.1rem; color: var(--kumkumam); font-weight: 700; }
.mu-tab--more[disabled] { opacity: .4; cursor: default; transform: none; }
.mu-tab__lock { display: inline-grid; width: 16px; height: 16px; color: #8a5a0a; }
.mu-tab__lock svg { width: 100%; height: 100%; }
.mu-back { display: inline-block; margin: 0 0 8px; font-weight: 700; }
.mu-panel--wait { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 150px; text-align: left; }
.mu-panel--wait b { color: var(--kumkumam); }
.mu-panel--wait small { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
@media (max-width: 640px) {
  .mu-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mu-tab--more { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 8px; padding: 9px; }
}

/* ---- Peyarchi, naming, pancha pakshi, festivals, eclipses as blocks (21 Oct 2026) ------------------------------- */
/* The rasi picker: twelve small tiles in one row, the chosen one red. */
.pe-pick { margin-bottom: 14px; padding: 14px 16px; border-radius: 18px; background: var(--paper); border: 1px solid rgba(168, 106, 12, 0.22); box-shadow: var(--shadow-1); }
.pe-pick__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 700; color: var(--kumkumam); }
.pe-rasis { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.pe-rasi { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 14px; border: 1px solid rgba(168, 106, 12, 0.22);
  background: #fffdf9; color: var(--ink); font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.pe-rasi img { width: 44px; height: 44px; }
.pe-rasi:hover { border-color: var(--gold, #c9962c); transform: translateY(-1px); }
.pe-rasi.is-on { background: linear-gradient(135deg, #fff1d6, #fbe2ad); border-color: rgba(201, 150, 44, 0.9); color: var(--kumkumam); box-shadow: 0 4px 14px rgba(122, 30, 20, 0.12); }
.mu-tabs.pe-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* A list of rows: a date block, the main line with its chip, and the small lines under it. */
.pe-list, .ec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pe-row, .ec-row { display: flex; gap: 16px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--paper);
  border: 1px solid rgba(168, 106, 12, 0.22); border-left: 4px solid var(--good); }
.pe-row.is-watch, .ec-row.is-seen { border-left-color: var(--bad); }
.ec-row__date { width: 78px; flex-shrink: 0; text-align: center; line-height: 1.15; }
.ec-row__date b { display: block; font-family: "Cormorant Garamond", serif; font-size: 2rem; color: var(--kumkumam); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.ec-row__date small { display: block; font-size: 0.76rem; color: var(--muted); font-weight: 600; }
.ec-row__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.ec-row__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; }
.ec-row__top b { font-size: 1.02rem; }
.ec-row__main small { color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.ec-row__main small b { color: var(--kumkumam); }
/* Festivals reuse the muhurtham day cards; a day with two festivals lists both. */
a.fe-day { text-decoration: none; }
.fe-day .mu-day__main b + b { margin-top: 2px; }

/* Naming: the asking on the left, the answer on the right. */
.nm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(14px, 2.2vw, 24px); align-items: start; }
.nm-left { display: grid; gap: 14px; }
.nm-gate .ask { margin: 0; }
.nm-card { padding: 16px 18px; border-radius: 18px; background: var(--paper); border: 1px solid rgba(168, 106, 12, 0.22); box-shadow: var(--shadow-1); }
.nm-card__title { margin: 0 0 10px; font-size: 1.05rem; color: var(--kumkumam); }
.nm-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; }
.nm-row--name { grid-template-columns: 1fr auto; }
.nm-right { display: grid; gap: 14px; }
.nm-tools { display: grid; gap: 14px; }
.nm-panel { padding: 18px 20px; border-radius: 20px; background: linear-gradient(180deg, #fffdf9, #fff6e8); border: 1px solid rgba(201, 150, 44, 0.45);
  box-shadow: 0 10px 30px rgba(122, 30, 20, 0.08); display: grid; gap: 14px; }
.nm-panel--empty { min-height: 260px; place-items: center; text-align: center; color: var(--muted); }
.nm-empty__mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; font-weight: 700;
  color: var(--kumkumam); background: radial-gradient(circle at 35% 30%, #fff6e0, #fbe2ad); }
.nm-head__k { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.nm-head h3 { margin: 2px 0 0; color: var(--kumkumam); }
.nm-letter { display: flex; align-items: center; gap: 14px; }
.nm-letter__big { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; font-size: 2.8rem; font-weight: 800;
  color: #fff6e3; background: linear-gradient(135deg, #8c261a, #b23a22); box-shadow: 0 8px 22px rgba(122, 30, 20, 0.25); }
.nm-block { border-top: 1px dashed rgba(168, 106, 12, 0.3); padding-top: 12px; }
.nm-block__k { margin: 0 0 8px; font-weight: 700; color: var(--kumkumam); font-size: 0.92rem; }
.nm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nm-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fffdf9; border: 1px solid rgba(168, 106, 12, 0.3);
  font-size: 1.05rem; font-weight: 600; }
.nm-chip small { font-size: 0.72rem; color: var(--muted); }
.nm-chip.is-on { background: #fbe2ad; border-color: rgba(201, 150, 44, 0.8); }
.nm-chip.is-good { background: #eef7ee; border-color: rgba(46, 125, 50, 0.35); font-size: 0.95rem; }
.nm-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nm-nums div { padding: 10px 12px; border-radius: 14px; background: #fffdf9; border: 1px solid rgba(168, 106, 12, 0.22); display: grid; }
.nm-nums span { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.nm-nums b { font-family: "Cormorant Garamond", serif; font-size: 2rem; color: var(--kumkumam); line-height: 1.1; }
.nm-nums small { color: var(--muted); }
.nm-name { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 14px; background: #fffdf9; border: 1px solid rgba(168, 106, 12, 0.22); }
.nm-name span { font-weight: 700; letter-spacing: .06em; }
.nm-name b { font-family: "Cormorant Garamond", serif; font-size: 2rem; color: var(--kumkumam); }
.nm-fit { margin: 8px 0 0; font-weight: 600; font-size: 0.9rem; }
.nm-fit.is-good { color: var(--good); }
.nm-fit.is-bad { color: var(--bad); }
@media (max-width: 900px) {
  .nm-grid { grid-template-columns: 1fr; }
  .nm-right { position: static; }
  .pe-rasis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Pancha pakshi: the bird, now, the strong hours, day and night side by side, friends and enemies. */
.pk { padding: 18px 20px; border-radius: 20px; background: var(--paper); border: 1px solid rgba(168, 106, 12, 0.22); box-shadow: var(--shadow-1); display: grid; gap: 14px; margin-top: 12px; }
.pk-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pk-bird { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #fff6e3; flex-shrink: 0;
  background: linear-gradient(135deg, #8c261a, #b23a22); box-shadow: 0 8px 22px rgba(122, 30, 20, 0.22); }
.pk-bird svg { width: 34px; height: 34px; }
.pk-head__text { flex: 1; min-width: 160px; }
.pk-head__k { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); font-weight: 700; }
.pk-head__text h3 { margin: 2px 0 2px; font-size: 1.6rem; color: var(--kumkumam); }
.pk-head__text small { color: var(--muted); }
.pk-help { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(168, 106, 12, 0.45); background: #fff7ea; color: var(--kumkumam);
  font: inherit; font-weight: 800; font-size: 0.85rem; line-height: 1; cursor: pointer; }
.pk-help:hover { background: #fbe2ad; }
.pk-day { display: flex; align-items: center; gap: 10px; }
.pk-day span { display: grid; text-align: center; line-height: 1.25; }
.pk-day small { color: var(--muted); font-size: 0.8rem; }
.pk-now { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 16px; border-radius: 14px; font-size: 1rem; }
.pk-now__k { font-size: 0.78rem; font-weight: 800; letter-spacing: .05em; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .6); }
.pk-now__till { margin-left: auto; font-size: 0.86rem; font-weight: 600; }
.pk-now--good { background: #e8f4e8; color: #1f5f23; }
.pk-now--mid { background: #fdf0d4; color: #6d4708; }
.pk-now--low { background: #eef0f4; color: #4a4f63; }
.pk-now--bad { background: #fbe6e3; color: #8c1d14; }
.pk-good { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; color: var(--good); font-size: 0.9rem; }
.pk-good__chip { padding: 4px 10px; border-radius: 999px; background: #eef7ee; border: 1px solid rgba(46, 125, 50, 0.3); font-weight: 600; }
.pk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pk-col h4 { margin: 0 0 8px; color: var(--kumkumam); font-size: 1rem; }
.pk-yamams { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pk-yamam { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px;
  background: #fffdf9; border: 1px solid rgba(168, 106, 12, 0.18); border-left: 4px solid; }
.pk-yamam__n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.78rem; font-weight: 800; background: #fbefd9; color: var(--kumkumam); }
.pk-yamam__time { font-weight: 600; font-size: 0.92rem; }
.pk-yamam__act { font-weight: 700; font-size: 0.92rem; }
.pk-yamam__act em { font-style: normal; font-size: 0.72rem; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--kumkumam); color: #fff6e3; }
.pk-yamam--good { border-left-color: #2e7d32; }
.pk-yamam--good .pk-yamam__act { color: #1f5f23; }
.pk-yamam--mid { border-left-color: #c9962c; }
.pk-yamam--mid .pk-yamam__act { color: #6d4708; }
.pk-yamam--low { border-left-color: #8a90a6; }
.pk-yamam--low .pk-yamam__act { color: #4a4f63; }
.pk-yamam--bad { border-left-color: #b23a22; }
.pk-yamam--bad .pk-yamam__act { color: #8c1d14; }
.pk-yamam.is-now { box-shadow: 0 0 0 2px rgba(201, 150, 44, 0.6); background: #fffaf0; }
.pk-rel { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 12px; border-top: 1px dashed rgba(168, 106, 12, 0.3); }
.pk-rel div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.pk-rel span { font-size: 0.84rem; color: var(--muted); font-weight: 700; margin-right: 2px; }
.pk-rel em { font-style: normal; padding: 3px 10px; border-radius: 999px; background: #fffdf9; border: 1px solid rgba(168, 106, 12, 0.3); font-weight: 600; font-size: 0.9rem; }
.pk-rel em.pk-rel__good { background: #eef7ee; border-color: rgba(46, 125, 50, 0.3); }
.pk-rel em.pk-rel__bad { background: #fbe6e3; border-color: rgba(176, 38, 38, 0.3); }
.pk-help-view h4 { margin: 14px 0 4px; color: var(--kumkumam); }
.pk-help-view p { margin: 0 0 8px; line-height: 1.6; }
.pk-help-tones { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 6px; }
.pk-help-tones li { display: flex; align-items: center; gap: 8px; }
.pk-tone { width: 14px; height: 14px; border-radius: 4px; display: inline-block; flex-shrink: 0; }
.pk-tone--good { background: #2e7d32; }
.pk-tone--mid { background: #c9962c; }
.pk-tone--low { background: #8a90a6; }
.pk-tone--bad { background: #b23a22; }
.modal__box:has(.pk-help-view) { max-width: 600px; }
@media (max-width: 760px) {
  .pk { padding: 14px; }
  .pk-grid { grid-template-columns: 1fr; }
  .pk-day { width: 100%; justify-content: space-between; }
  .pe-rasis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pe-row, .ec-row { gap: 10px; padding: 10px 12px; }
  .ec-row__date { width: 60px; }
}

/* ---- The family kala chakram (21 Oct 2026): his rasi drawings turning, the Yali breathing, the family round it ---- */
.fw { position: relative; width: min(100%, 600px); aspect-ratio: 1; margin: 0 auto; container-type: inline-size;
  border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fffaf0 0%, #fdf1da 55%, #f7e3bd 78%, rgba(247, 227, 189, 0) 79%); }
.fw-track { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.fw-track--outer { width: 90%; height: 90%; border: 1.5px dashed rgba(201, 150, 44, 0.55); }
.fw-track--inner { width: 62%; height: 62%; border: 1px dotted rgba(168, 106, 12, 0.45); }
.fw-ring { position: absolute; inset: 0; animation: fw-spin 120s linear infinite; animation-delay: var(--turn, 0s); pointer-events: none; }
.fw-sign { position: absolute; left: 50%; top: 50%; width: 9.5%; aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(-45cqw) rotate(calc(-1 * var(--a))); }
.fw-sign img { width: 100%; height: 100%; object-fit: contain; animation: fw-spin 120s linear infinite reverse; animation-delay: var(--turn, 0s); opacity: .85;
  filter: drop-shadow(0 1px 2px rgba(122, 30, 20, 0.15)); }
@keyframes fw-spin { to { transform: rotate(360deg); } }

.fw-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fw-lines line { stroke: rgba(201, 150, 44, 0.75); stroke-width: 0.35; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.fw.is-in .fw-lines line { animation: fw-draw 1.1s ease-out forwards; animation-delay: var(--d); }
.fw.is-done .fw-lines line { animation: none; stroke-dashoffset: 0; }
@keyframes fw-draw { to { stroke-dashoffset: 0; } }

.fw-centre { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30%; aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0; cursor: pointer;
  border: 2px solid rgba(201, 150, 44, 0.85); background: radial-gradient(circle at 50% 35%, #fffdf7, #fbe7c2);
  box-shadow: 0 10px 30px rgba(122, 30, 20, 0.18); font: inherit; color: var(--kumkumam); z-index: 2; }
.fw-centre__glow { position: absolute; inset: -14%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(232, 180, 70, 0.45) 0%, rgba(232, 180, 70, 0) 68%); animation: fw-breathe 4.5s ease-in-out infinite; }
@keyframes fw-breathe { 0%, 100% { transform: scale(0.92); opacity: .55; } 50% { transform: scale(1.06); opacity: 1; } }
.fw-centre__yali { width: 46%; height: auto; margin-top: -4%; }
.fw-centre b { font-size: clamp(0.78rem, 2.9cqw, 1.05rem); max-width: 86%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-centre small { font-size: clamp(0.62rem, 2.1cqw, 0.78rem); color: #8a5a0a; font-weight: 600; }
.fw-centre:hover { box-shadow: 0 12px 34px rgba(122, 30, 20, 0.26); }

.fw-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 22%; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; z-index: 3; opacity: 0; }
.fw.is-in .fw-node { animation: fw-pop .55s cubic-bezier(.2, .9, .3, 1.3) forwards; animation-delay: var(--d); }
.fw.is-done .fw-node { animation: none; opacity: 1; }
@keyframes fw-pop { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.fw-node__dot { width: clamp(44px, 13cqw, 74px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 40% 30%, #fffdf7, #fdecc8); border: 2px solid rgba(201, 150, 44, 0.8);
  box-shadow: 0 6px 16px rgba(122, 30, 20, 0.16); font-weight: 800; font-size: 1.3rem; color: var(--kumkumam); transition: transform .2s, box-shadow .2s; }
.fw-node__dot img { width: 84%; height: 84%; object-fit: contain; }
.fw-node b { font-size: clamp(0.7rem, 2.5cqw, 0.92rem); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--kumkumam); }
.fw-node small { font-size: clamp(0.6rem, 2cqw, 0.75rem); color: var(--muted); font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-node:hover .fw-node__dot { transform: scale(1.07); box-shadow: 0 8px 22px rgba(122, 30, 20, 0.24); }
.fw-node--add .fw-node__dot { background: transparent; border-style: dashed; font-size: 1.6rem; box-shadow: none; }
.fw-note { text-align: center; color: var(--muted); font-size: 0.86rem; margin: 10px 0 0; }
@media (prefers-reduced-motion: reduce) {
  .fw-ring, .fw-sign img, .fw-centre__glow { animation: none; }
  .fw.is-in .fw-lines line, .fw.is-in .fw-node { animation: none; stroke-dashoffset: 0; opacity: 1; }
}

/* ---- The jathagam screen, aligned (21 Oct 2026): full-width cards, one rhythm ---------------------------------- */
/* One column that never grows past the screen: an implicit grid column takes its widest card's longest words, which
   pushed the jathagam past a phone's edge (22 Oct 2026). */
.jh { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 2vw, 20px); margin-top: clamp(14px, 2vw, 20px); }
.jh > .card { margin: 0; }
.jh-sum { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(16px, 2.6vw, 30px); align-items: stretch; }
.jh-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jh-pillar { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 6px 10px; }
.jh-pillar + .jh-pillar { border-left: 1px solid rgba(201, 150, 44, 0.35); }
.jh-pillar img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 4px; }
.jh-pillar__star { width: 60px; height: 60px; display: grid; place-items: center; font-size: 2rem; color: #c9962c; margin-bottom: 4px; }
.jh-pillar__k { font-size: 0.8rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.jh-pillar b { font-family: var(--font-tamil-display, inherit); font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--kumkumam); line-height: 1.2; }
.jh-pillar small { font-size: 0.84rem; color: var(--muted); }
.jh-angas { display: flex; flex-direction: column; justify-content: center; padding-left: clamp(14px, 2.4vw, 28px); border-left: 1px solid rgba(201, 150, 44, 0.35); }
.jh-angas__k { margin: 0 0 6px; font-weight: 700; color: var(--kumkumam); }
/* One row each: the name on the left, the value and its note on the right, a hairline between. */
.jh-anga { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; padding: 8px 2px; border-bottom: 1px dashed rgba(168, 106, 12, 0.22); }
.jh-anga:last-child { border-bottom: 0; }
.jh-anga span { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.jh-anga b { font-size: 1rem; color: var(--ink); }
.jh-anga small { font-size: 0.8rem; color: #8a5a0a; font-weight: 600; text-align: right; }
.jh-charts .kattam-pair { max-width: 900px; margin: 0 auto; justify-items: center; align-items: center; }
.jh-dasa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2.6vw, 30px); }
.jh-dasa__all { padding-left: clamp(14px, 2.4vw, 28px); border-left: 1px solid rgba(201, 150, 44, 0.35); }
.jh-balance { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px; margin-bottom: 14px; border-radius: 12px;
  background: linear-gradient(135deg, #fff6e3, #fdeccb); border: 1px solid rgba(201, 150, 44, 0.45); }
.jh-balance span { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.jh-balance b { color: var(--kumkumam); font-size: 1.05rem; }
.jh-balance small { color: #6d4708; font-size: 0.86rem; }
.jh-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.jh-timeline li { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; border: 1px solid transparent; }
.jh-timeline li b { font-weight: 700; }
.jh-timeline li span { margin-left: auto; font-size: 0.86rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.jh-timeline li em { font-style: normal; font-size: 0.72rem; font-weight: 800; color: #fff6e3; background: var(--kumkumam); padding: 1px 8px; border-radius: 999px; }
.jh-timeline li.is-now { background: linear-gradient(135deg, #fff6e3, #fdeccb); border-color: rgba(201, 150, 44, 0.6); }
.jh-timeline li.is-now b { color: var(--kumkumam); }
.jh-timeline li.is-past { opacity: .55; }
@media (max-width: 900px) {
  /* minmax(0, 1fr), never a bare 1fr: a bare one grows to its longest word and pushed the card past a phone's edge
     (22 Oct 2026, the founder: "not responsive" - நட்சத்திரம் cut off on the right). */
  .jh-sum, .jh-dasa { grid-template-columns: minmax(0, 1fr); }
  .jh-angas, .jh-dasa__all { padding-left: 0; border-left: 0; padding-top: 14px; border-top: 1px solid rgba(201, 150, 44, 0.35); }
}
@media (max-width: 520px) {
  /* The nine dasas on a small phone: the dates a size smaller, so a row fits 320 px (23 Oct 2026). */
  .jh-timeline { grid-template-columns: minmax(0, 1fr); }
  .jh-timeline li { padding: 7px 8px; gap: 6px; }
  .jh-timeline li span { font-size: 0.76rem; }
  .jh-pillar { padding: 4px 4px; }
  .jh-pillar img, .jh-pillar__star { width: 44px; height: 44px; }
  .jh-pillar b { font-size: 1.02rem; }
  .jh-pillar small { font-size: 0.74rem; }
}

/* The printed jathagam as three buttons under the summary (21 Oct 2026): no price cards, no scrolling. */
.jh-pdf__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.jh-pdf__head h3 { margin: 0; }
.jh-pdf__head .link-arrow { font-size: 0.9rem; }
.jh-pdf__btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.jh-pdf__btn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; text-align: left; cursor: pointer;
  border: 1px solid rgba(168, 106, 12, 0.3); background: #fffdf9; color: var(--ink); font: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s; }
.jh-pdf__btn:hover { border-color: var(--gold, #c9962c); box-shadow: 0 8px 22px rgba(122, 30, 20, 0.12); transform: translateY(-1px); }
.jh-pdf__icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; font-weight: 800;
  color: var(--kumkumam); background: linear-gradient(135deg, #fff1d6, #fbe2ad); }
.jh-pdf__btn b { display: block; font-size: 1rem; color: var(--kumkumam); }
.jh-pdf__btn small { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.jh-pdf__btn.is-full { background: linear-gradient(135deg, #8c261a, #b23a22); border-color: transparent; }
.jh-pdf__btn.is-full b, .jh-pdf__btn.is-full small { color: #fff6e3; }
.jh-pdf__btn.is-full .jh-pdf__icon { background: rgba(255, 246, 227, 0.18); color: #ffd98a; }
.jh-pdf__btn.is-wanted { box-shadow: 0 0 0 3px rgba(201, 150, 44, 0.6); }
@media (max-width: 900px) { .jh-pdf__btns { grid-template-columns: 1fr; } }
/* The planets on a phone, as the app has them: the star and padam under the rasi on a small line, so the table fits
   the screen instead of sliding (22 Oct 2026). */
.tbl--grahas .gr-sub { display: none; }
@media (max-width: 760px) {
  .tbl--grahas .gr-wide { display: none; }
  .tbl--grahas .gr-sub { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
  .tbl--grahas th, .tbl--grahas td { padding-left: 8px; padding-right: 8px; }
}

/* The horai as one list: day and night side by side where there is room, one column on a phone (21 Oct 2026). */
.hora-list { list-style: none; margin: 0; padding: 0; columns: 230px 2; column-gap: 0; column-rule: 1px solid var(--hair);
  border: 1px solid var(--hair); border-radius: var(--radius-s); background: #fffdf9; font-size: 0.95rem; }
/* Two columns only where each has room (230 px); a time too long for its line goes under its graha, never past the card
   (23 Oct 2026: on a computer the horai card is half a column wide). */
.hora-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 9px 12px; border-bottom: 1px solid var(--hair); break-inside: avoid; }
.hora-list .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) { .hora-list { columns: 1; } }

/* The almanac on a phone, the way the app opens (founder, 22 Oct 2026: the month's seven squares across a phone
   were "crunched, not nice"): the day's date large on the red, joined to the bar above it; the days around it in a
   strip that slides; "மாத நாள்காட்டி", which opens the month as a screen of its own; then the day. The computer
   keeps the month beside the day. */
.alm__phone { display: none; }
.cal-card__close { display: none; }
@media (max-width: 760px) {
  .alm__phone { display: grid; gap: 12px; order: -1; min-width: 0; }
  .alm__cal > .cal-card { display: none; }
  .alm.month-open .alm__cal > .cal-card {
    display: block; position: fixed; inset: 0; z-index: 300; border-radius: 0; border: 0; margin: 0;
    overflow-y: auto; padding: 14px 14px calc(18px + env(safe-area-inset-bottom)); background: var(--paper);
  }
  .alm.month-open .cal-card__close { display: inline-grid; place-items: center; font-size: 1.4rem; }
  .alm.month-open .cal-card__day { display: none; }
  .alm.month-open .cal__line { display: none; }
  .alm.month-open .cal--compact { gap: 5px; }
  .alm.month-open .cal--compact .cal__day {
    min-height: clamp(62px, calc((100dvh - 230px) / 6), 96px); padding: 6px 2px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  }
  .alm.month-open .cal__n { font-size: 1.45rem; }
  .alm.month-open .cal__moon { position: absolute; top: 5px; right: 5px; }
  .alm.month-open .cal__tamil { font-size: 0.8rem; margin-top: 3px; white-space: normal; line-height: 1.15; text-overflow: clip; }
  .alm.month-open .cal--compact .cal__day.has-fest::after { top: 5px; left: 5px; right: auto; }
  body.no-scroll { overflow: hidden; }
  /* Today's times as rows, the name on the left and the time on the right, as the app's sheet has them. */
  .times { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .time { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
  .time__k { flex: 0 0 auto; font-size: 1rem; color: var(--ink); }
  .time__v { text-align: right; font-size: 1.1rem; }
}
.dhead {
  margin: calc(-1 * clamp(18px, 3vw, 30px)) calc(-1 * var(--gutter)) 0; padding: 14px 14px 18px;
  border-radius: 0 0 28px 28px; color: var(--cream); text-align: center;
  background: radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.08), transparent 45%), linear-gradient(160deg, #a8331f, #7a1e14 70%, #5a150e);
  box-shadow: 0 10px 24px rgba(122, 30, 20, 0.25);
  position: relative; overflow: hidden; isolation: isolate;
}
/* His Yali faint on the red, at the right, as the phone app's header carries it (founder, 22 Oct 2026). */
.dhead::after {
  content: ""; position: absolute; z-index: -1; right: -46px; bottom: -34px; width: min(250px, 64vw); aspect-ratio: 1; opacity: 0.12;
  background: url("../img/yali-cream.webp") center / contain no-repeat; pointer-events: none;
}
.dhead__tamil { color: var(--gold-light, #f0cf8a); font-weight: 700; font-size: 0.98rem; min-height: 1.3em; }
.dhead__row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; gap: 6px; margin-top: 2px; }
.dhead__face b { display: block; font-family: var(--font-display, 'Cormorant Garamond', serif); font-size: 4.6rem; line-height: 1; color: var(--cream); margin-bottom: 4px; }
.dhead__face.is-sunday b { color: var(--gold-light, #f0cf8a); }
.dhead__face span { display: block; font-family: var(--font-tamil-display, 'Arima', serif); font-size: clamp(0.9rem, 4.9vw, 1.3rem); font-weight: 700; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dhead__face small { display: block; font-size: 0.86rem; opacity: 0.82; margin-top: 2px; }
.dhead__arrow { display: grid; justify-items: center; gap: 4px; border: 0; background: none; color: var(--cream); cursor: pointer; padding: 0; font: inherit; }
.dhead__arrow span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; line-height: 1;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(240, 207, 138, 0.45); }
.dhead__arrow small { font-size: 0.78rem; opacity: 0.9; }
.dhead__acts { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.dhead__today, .dhead__pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 0.9rem; line-height: 1.2; }
.dhead__today { background: var(--gold-light, #f0cf8a); color: #4a110c; }
.dhead__pill { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(240, 207, 138, 0.55); color: var(--cream); text-decoration: none; cursor: pointer; font-family: inherit; }
.dhead__pill--gold { background: var(--gold-light, #f0cf8a); color: #4a110c; border-color: transparent; }
.dhead__pill svg { width: 15px; height: 15px; }
.dhead__pill.is-off { opacity: 0.55; pointer-events: none; }
.wkstrip { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px;
  scroll-behavior: smooth; scroll-snap-type: x mandatory; }
.wkstrip::-webkit-scrollbar { display: none; }
/* Four whole days in view, sliding (founder, 22 Oct 2026: "col-4 so that date, day and detail are visible"). */
.wk__d { flex: 0 0 calc((100% - 18px) / 4); min-width: 0; scroll-snap-align: start; display: grid; justify-items: center; gap: 2px; padding: 8px 4px 7px;
  border-radius: 14px; cursor: pointer; border: 1px solid var(--hair-gold); background: var(--paper); color: var(--ink); font: inherit; position: relative; }
.wk__d small { font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.wk__d b { font-size: 1.45rem; line-height: 1.05; color: var(--kumkumam); font-variant-numeric: lining-nums; }
.wk__d i, .wk__d em { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; line-height: 1.25; }
.wk__d i { font-size: 0.76rem; color: var(--gold-deep); font-weight: 700; }
.wk__d em { font-size: 0.72rem; color: var(--muted); }
.wk__d.is-sunday b { color: var(--bad); }
.wk__d.is-today { border: 2px solid var(--kumkumam); }
.wk__d.is-picked { background: linear-gradient(160deg, #a8331f, #7a1e14); border-color: transparent; }
.wk__d.is-picked small, .wk__d.is-picked b, .wk__d.is-picked i, .wk__d.is-picked em { color: var(--cream); }
.wk__d.has-fest::after { content: ""; position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); }
/* ‹ › at the strip's two ends (22 Oct 2026: nothing said the strip slides): slim, the height of a day. */
.wkrow { display: flex; align-items: stretch; gap: 4px; min-width: 0; }
.wkrow .wkstrip { flex: 1 1 auto; min-width: 0; }
.wk__nav { flex: 0 0 24px; display: grid; place-items: center; margin: 2px 0 4px; padding: 0; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--hair-gold); background: var(--paper); color: var(--kumkumam); font: inherit; font-size: 1.35rem; font-weight: 700; line-height: 1; }
.wk__nav:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 340px) {
  .wk__d { padding: 7px 2px 6px; }
  .wk__d small { font-size: 0.72rem; }
  .wk__d b { font-size: 1.3rem; }
  .wk__d i { font-size: 0.7rem; }
  .wk__d em { font-size: 0.66rem; }
}
.alm__monthbtn { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--paper); border: 1px solid var(--hair-gold); color: var(--kumkumam); box-shadow: var(--shadow-1); }
.alm__monthbtn svg { width: 18px; height: 18px; }

/* ==== Peyarchi and muhurtham on a phone, laid out as the phone app has them (founder, 22 Oct 2026: "the website on
   a phone needs to work like the app") - the app's kit: cards 14 padding / 18 round, titles 17, body 14, second
   lines 12.5, tags 11, chips 36 high, tabs one bar 46 high. The computer keeps its own layout. ==================== */
.mu-hint { display: none; }
@media (max-width: 760px) {
  /* Peyarchi: the twelve as one row of small drawings that slides, inside its card; his own marked ★. */
  .pe-pick { padding: 12px; border-radius: 18px; margin-bottom: 10px; }
  .pe-pick__head { margin-bottom: 8px; font-family: var(--font-tamil-display); font-size: 1.06rem; }
  .pe-pick__head .linkish { font-family: inherit; font-size: 0.8rem; }
  .pe-rasis { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .pe-rasis::-webkit-scrollbar { display: none; }
  .pe-rasi { position: relative; flex: 0 0 60px; height: 70px; justify-content: center; gap: 3px; padding: 4px 2px; border-radius: 14px;
    font-size: 0.69rem; border-color: rgba(201, 150, 44, 0.3); }
  .pe-rasi img { width: 34px; height: 34px; }
  .pe-rasi span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pe-rasi:hover { transform: none; }
  .pe-rasi.is-on { border: 1.6px solid var(--gold); font-weight: 800; box-shadow: none; }
  .pe-rasi.is-own::after { content: "★"; position: absolute; top: 2px; right: 5px; font-size: 0.72rem; line-height: 1; color: var(--gold); }
  .pe-tab__tail { display: none; }

  /* The tabs as one segmented bar, the chosen one filled kumkumam (peyarchi's grahas, muhurtham's months). */
  .mu-tabs.pe-tabs, .mu-out .mu-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 3px; margin-bottom: 10px;
    border-radius: 14px; background: var(--cream); border: 1px solid rgba(201, 150, 44, 0.3); }
  .mu-tabs.pe-tabs .mu-tab, .mu-out .mu-tab:not(.mu-tab--more) { height: 46px; justify-content: center; gap: 0; padding: 0 4px; min-width: 0;
    border: 0; border-radius: 11px; background: transparent; box-shadow: none; }
  .mu-tabs.pe-tabs .mu-tab b, .mu-out .mu-tab:not(.mu-tab--more) b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 0.875rem; font-weight: 800; }
  .mu-tabs.pe-tabs .mu-tab__n, .mu-out .mu-tab:not(.mu-tab--more) .mu-tab__n { font-size: 0.69rem; font-weight: 700; }
  .mu-tabs.pe-tabs .mu-tab:hover, .mu-out .mu-tab:hover { transform: none; }
  .mu-tabs.pe-tabs .mu-tab.is-on, .mu-out .mu-tab.is-on { background: linear-gradient(135deg, #8c261a, #b23a22); box-shadow: none; }
  .mu-tabs.pe-tabs .mu-tab.is-on .mu-tab__n, .mu-out .mu-tab.is-on .mu-tab__n { color: var(--gold-light); }
  /* Under the bar: "‹ முந்தைய" at the left, "அடுத்த மாதங்கள் ›" at the right, as small links (the app's). */
  .mu-out { position: relative; }
  .mu-out .mu-tabs { position: relative; margin-bottom: 40px; }
  .mu-out .mu-tab--more { position: absolute; right: 0; top: calc(100% + 8px); grid-column: auto; flex-direction: row; align-items: center; gap: 4px;
    height: auto; padding: 2px 0; border: 0; background: none; box-shadow: none; }
  .mu-out .mu-tab--more b { font-size: 0.84rem; font-weight: 800; }
  .mu-out .mu-tab--more .mu-tab__n { font-size: 1rem; }
  .mu-out .mu-back { position: absolute; left: 0; top: 62px; z-index: 1; margin: 0; font-size: 0.84rem; }

  /* The open tab's card and its rows. */
  .pe-tabs + .mu-panel, .mu-out .mu-panel { padding: 14px; border-radius: 18px; }
  .pe-tabs + .mu-panel .mu-panel__head, .mu-out .mu-panel__head { margin-bottom: 10px; font-size: 0.78rem; line-height: 1.4; }
  .mu-out .mu-panel__note { margin: -4px 0 10px; font-size: 0.78rem; }
  .pe-list { gap: 8px; }
  .pe-row { gap: 10px; padding: 10px 12px; border-radius: 14px; }
  .pe-row .ec-row__date { width: 60px; }
  .pe-row .ec-row__date b { font-size: 1.35rem; }
  .pe-row .ec-row__date small { font-size: 0.66rem; line-height: 1.3; }
  .pe-row .ec-row__top { gap: 4px 8px; }
  .pe-row .ec-row__top b { font-size: 0.875rem; }
  .pe-row .ec-row__main small { font-size: 0.78rem; line-height: 1.35; }
  .pe-row .chip { padding: 2px 8px; font-size: 0.69rem; }
  .pe-note { font-size: 0.69rem !important; line-height: 1.45; }
  .mu-out .mu-days { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .mu-out .mu-day { gap: 10px; padding: 10px 12px; border-radius: 14px; }
  .mu-out .mu-day:hover { transform: none; box-shadow: none; }
  .mu-out .mu-day__date { width: 46px; }
  .mu-out .mu-day__date b { font-size: 1.35rem; }
  .mu-out .mu-day__date small { font-size: 0.69rem; }
  .mu-out .mu-day__main b { font-size: 0.875rem; }
  .mu-out .mu-day__main small { font-size: 0.78rem; }
  .mu-out .mu-day__main .mu-day__in { font-size: 0.69rem; }
  .mu-out .mu-day__next { top: auto; bottom: 8px; right: 10px; padding: 1px 8px; font-size: 0.69rem; }
  .mu-hint { display: block; margin: 10px 0 0; font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
  /* The waits and the "tap your rasi" card: one calm small line, as the app's, not a tall box. */
  .pe-tabs + .mu-panel--wait, .mu-out .mu-panel--wait { min-height: 0; justify-content: flex-start; gap: 12px; padding: 14px; font-size: 0.84rem; line-height: 1.45; }
  .pe-tabs + .mu-panel--wait small, .mu-out .mu-panel--wait small { font-size: 0.78rem; }

  /* எதற்கு? and யாருக்காக?: small chips that wrap onto the next line inside the card - never a row past its edge. */
  .mu-opts { gap: 12px; margin-bottom: 10px; padding: 14px; border-radius: 18px; }
  .mu-opts__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .mu-opts__label { padding-top: 0; font-size: 0.875rem; }
  .mu-opts__label small { display: inline; margin: 0 0 0 6px; font-size: 0.69rem; }
  .mu-chips { gap: 8px; min-width: 0; }
  .mu-chip { display: inline-flex; align-items: center; height: 36px; max-width: 100%; padding: 0 13px; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; font-size: 0.84rem; font-weight: 700; }
  .mu-opts__rasi summary { font-size: 0.84rem; }
}

/* A pop-up that rises from the bottom, full width, as the phone app's sheets do (modal({ sheet: true }), used on a
   phone only). */
.modal--sheet { place-items: end stretch; padding: 0; }
.modal--sheet .modal__box, .modal--sheet .modal__box:has(.mu-dayview) { width: 100%; max-width: none; max-height: 85vh; border-radius: 22px 22px 0 0;
  border-bottom: 0; padding: 26px 16px calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.modal--sheet.is-open .modal__box { transform: none; }
.modal--sheet .modal__box::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px;
  background: rgba(168, 106, 12, 0.3); }
.modal--sheet .mu-dayview h3 { font-size: 1.15rem; }
.modal--sheet .mu-dayview > p { font-size: 0.78rem; }
.modal--sheet .mu-hour { padding: 9px 11px; }
.modal--sheet .mu-hour__top b { font-size: 0.875rem; }
.modal--sheet .mu-hour__lagnam { font-size: 0.84rem; }
.modal--sheet .mu-hour .chip { font-size: 0.69rem; }

/* On a phone a long Tamil label takes a second line rather than run off its button or chip (23 Oct 2026: "தரகர்
   திட்டத்தைத் தொடங்குங்கள் →", "இரவு 10.17 முதல் சந்திராஷ்டமம்" on a 320 px phone). */
@media (max-width: 760px) {
  .btn--block { white-space: normal; text-align: center; line-height: 1.3; }
  .chip { white-space: normal; max-width: 100%; }
}
