/* Aumaujaya Jyotisham — mobile-first, scoped to .ajy so themes can't collide. */

.ajy {
	--ajy-maroon: #7a1f2b;
	--ajy-maroon-2: #5c1520;
	--ajy-saffron: #e07b24;
	--ajy-gold: #c49a2c;
	--ajy-gold-soft: #f3e3b8;
	--ajy-ink: #2b1d14;
	--ajy-muted: #6d5c50;
	--ajy-paper: #fffaf2;
	--ajy-card: #ffffff;
	--ajy-line: #ecdcc4;
	--ajy-good: #2e7d4f;
	--ajy-mixed: #b7791f;
	--ajy-low: #b23a3a;
	--ajy-radius: 16px;
	--ajy-shadow: 0 1px 2px rgba(60, 30, 10, .06), 0 6px 20px rgba(60, 30, 10, .06);
	--ajy-font: 'Noto Sans Telugu', 'Noto Sans', system-ui, sans-serif;
	--ajy-head: var(--ajy-font);

	box-sizing: border-box;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 0 32px;
	color: var(--ajy-ink);
	font-family: var(--ajy-font);
	font-size: 16px;
	line-height: 1.65;
	-webkit-text-size-adjust: 100%;
}
.ajy--hi { --ajy-font: 'Noto Sans Devanagari', 'Noto Sans', system-ui, sans-serif; }
.ajy--en { --ajy-font: 'Noto Sans', system-ui, sans-serif; --ajy-head: 'Noto Serif', Georgia, serif; }

.ajy *, .ajy *::before, .ajy *::after { box-sizing: border-box; }
/* Reset at single-class weight, so the component rules below can override it. */
.ajy :where(p, h1, h2, h3, ul, dl, dd, figure) { margin: 0; padding: 0; }
.ajy p, .ajy li, .ajy dd, .ajy td, .ajy th { overflow-wrap: anywhere; }
.ajy a { color: var(--ajy-maroon); }
.ajy :focus-visible { outline: 3px solid var(--ajy-saffron); outline-offset: 2px; border-radius: 6px; }

/* ---------- Hero ---------- */
.ajy-hero {
	position: relative;
	text-align: center;
	padding: 28px 16px 22px;
	margin-bottom: 20px;
	border-radius: var(--ajy-radius);
	background:
		radial-gradient(120% 90% at 50% -10%, rgba(224, 123, 36, .18), transparent 60%),
		linear-gradient(180deg, #fff6e6, var(--ajy-paper));
	border: 1px solid var(--ajy-line);
	overflow: hidden;
}
.ajy-hero::after {
	content: '';
	position: absolute; left: 12%; right: 12%; bottom: 0; height: 3px;
	background: linear-gradient(90deg, transparent, var(--ajy-gold), transparent);
}
.ajy-hero__emblem { display: block; width: 64px; height: 64px; object-fit: contain; margin: 0 auto 10px; }
.ajy-hero__title {
	font-family: var(--ajy-head);
	font-size: clamp(1.45rem, 4.6vw, 2.2rem);
	line-height: 1.3;
	font-weight: 700;
	color: var(--ajy-maroon);
	margin: 0 0 8px;
}
.ajy-hero__intro { max-width: 680px; margin: 0 auto; color: var(--ajy-muted); font-size: 1rem; }

.ajy-nav, .ajy-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.ajy-nav__tool, .ajy-lang {
	display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px;
	border-radius: 999px; border: 1px solid var(--ajy-line); background: #fff;
	color: var(--ajy-ink); text-decoration: none; font-size: .92rem; line-height: 1.3;
	transition: border-color .15s, background .15s;
}
.ajy-nav__tool:hover, .ajy-lang:hover { border-color: var(--ajy-gold); }
.ajy-nav__tool.is-current { background: var(--ajy-maroon); border-color: var(--ajy-maroon); color: #fff; }
.ajy-langs { margin-top: 10px; }
.ajy-lang { min-height: 34px; font-size: .85rem; }
.ajy-lang.is-current { background: var(--ajy-gold-soft); border-color: var(--ajy-gold); font-weight: 600; }

/* ---------- Panels & type ---------- */
.ajy-panel {
	background: var(--ajy-card);
	border: 1px solid var(--ajy-line);
	border-radius: var(--ajy-radius);
	box-shadow: var(--ajy-shadow);
	padding: 18px 16px;
	margin-bottom: 18px;
}
.ajy-h2 {
	font-family: var(--ajy-head);
	font-size: 1.18rem; line-height: 1.35; font-weight: 700;
	color: var(--ajy-maroon); margin: 0 0 12px;
}
.ajy-muted { color: var(--ajy-muted); }
.ajy-small { font-size: .85rem; margin-top: 8px; }
.ajy-note, .ajy-disclaimer { color: var(--ajy-muted); font-size: .88rem; margin: 18px 0; }
.ajy-disclaimer { padding: 14px 16px; border-left: 3px solid var(--ajy-gold); background: #fffcf5; border-radius: 0 12px 12px 0; }

/* ---------- Forms ---------- */
.ajy-form, .ajy-finder__form { display: grid; gap: 14px; }
.ajy-pair { display: grid; gap: 16px; }
.ajy-person { display: grid; gap: 12px; min-width: 0; border: 0; margin: 0; padding: 0; }
fieldset.ajy-person { border: 1px solid var(--ajy-line); border-radius: 14px; padding: 14px; }
.ajy-person__legend { padding: 0 8px; font-weight: 700; color: var(--ajy-maroon); }
.ajy-row2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ajy-field { display: grid; gap: 6px; min-width: 0; }
.ajy-field label { font-weight: 600; font-size: .92rem; }
.ajy .ajy-field input {
	width: 100%; min-height: 48px; padding: 10px 14px; margin: 0;
	font: inherit; font-size: 16px; color: var(--ajy-ink);
	background: #fff; border: 1.5px solid #dcc9ab; border-radius: 12px;
	box-shadow: none; appearance: none; -webkit-appearance: none;
}
.ajy .ajy-field input:focus { border-color: var(--ajy-saffron); outline: none; box-shadow: 0 0 0 3px rgba(224, 123, 36, .2); }
.ajy .ajy-field input[aria-invalid="true"] { border-color: var(--ajy-low); }
.ajy-hint { font-size: .86rem; color: var(--ajy-muted); }
.ajy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ajy-privacy { font-size: .84rem; color: var(--ajy-muted); }
.ajy-error { color: var(--ajy-low); font-weight: 600; }

.ajy .ajy-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 10px 22px; margin: 0;
	font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
	color: #fff; background: linear-gradient(180deg, var(--ajy-maroon), var(--ajy-maroon-2));
	border: 0; border-radius: 12px; cursor: pointer; text-decoration: none;
	box-shadow: 0 4px 12px rgba(122, 31, 43, .25); transition: transform .1s, box-shadow .15s;
}
.ajy .ajy-btn:hover { box-shadow: 0 6px 16px rgba(122, 31, 43, .32); }
.ajy .ajy-btn:active { transform: translateY(1px); }
.ajy .ajy-btn[disabled] { opacity: .65; cursor: progress; }
.ajy .ajy-btn--ghost { color: var(--ajy-maroon); background: #fff; border: 1.5px solid var(--ajy-line); box-shadow: none; min-height: 40px; padding: 6px 14px; font-size: .9rem; }

/* Place combobox */
.ajy-place { position: relative; }
.ajy-place__list {
	position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin-top: 4px; padding: 6px;
	list-style: none; background: #fff; border: 1px solid var(--ajy-line); border-radius: 12px;
	box-shadow: 0 12px 30px rgba(60, 30, 10, .16); max-height: 300px; overflow-y: auto;
}
.ajy-place__opt { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 8px; cursor: pointer; line-height: 1.35; }
.ajy-place__opt span { font-size: .82rem; color: var(--ajy-muted); }
.ajy-place__opt:hover, .ajy-place__opt[aria-selected="true"] { background: #fff3e2; }
.ajy-place__msg { padding: 8px 10px; color: var(--ajy-muted); font-size: .9rem; }

/* ---------- Results ---------- */
.ajy-result:empty { display: none; }
.ajy-result { scroll-margin-top: 90px; }
.ajy-summary__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ajy-summary__head .ajy-h2 { margin-bottom: 2px; }
.ajy-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.ajy-big3 { display: grid; gap: 10px; margin-bottom: 14px; }
.ajy-big3 > div {
	display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px;
	background: linear-gradient(180deg, #fff6e6, #fffaf2); border: 1px solid var(--ajy-line);
}
.ajy-big3 span { font-size: .82rem; color: var(--ajy-muted); }
.ajy-big3 b { font-size: 1.12rem; color: var(--ajy-maroon); line-height: 1.35; }
.ajy-dl { display: grid; grid-template-columns: 1fr; gap: 0; }
.ajy-kv { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--ajy-line); }
.ajy-kv:last-child { border-bottom: 0; }
.ajy-kv dt { color: var(--ajy-muted); font-size: .92rem; }
.ajy-kv dd { font-weight: 600; text-align: right; }

.ajy-panel__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.ajy-panel__bar .ajy-h2 { margin: 0; }
.ajy-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #f6ecdc; }
.ajy .ajy-seg button {
	min-height: 36px; padding: 4px 14px; margin: 0; border: 0; border-radius: 999px; background: transparent;
	font: inherit; font-size: .86rem; color: var(--ajy-ink); cursor: pointer; box-shadow: none;
}
.ajy .ajy-seg button[aria-pressed="true"] { background: #fff; color: var(--ajy-maroon); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.1); }

.ajy-charts { display: grid; gap: 18px; }
.ajy-figure { margin: 0; text-align: center; }
.ajy-figure figcaption { margin-top: 6px; font-size: .88rem; color: var(--ajy-muted); }
.ajy-chart { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; font-family: var(--ajy-font); }
.ajy-chart .frame { fill: #fffdf8; stroke: var(--ajy-maroon); stroke-width: 2.5; }
.ajy-chart .cell { fill: #fffdf8; stroke: #c9a56a; stroke-width: 1.2; }
.ajy-chart .cell.lagna { fill: #fff1dc; }
.ajy-chart .lagline { stroke: var(--ajy-maroon); stroke-width: 1.5; }
.ajy-chart text { font-size: 19px; fill: var(--ajy-ink); font-weight: 600; }
.ajy-chart .num { font-size: 12px; fill: #a08566; font-weight: 400; }
.ajy-chart .title { font-size: 15px; fill: var(--ajy-maroon); font-weight: 700; }
.ajy-chart .asc { fill: var(--ajy-maroon); font-weight: 800; }
.ajy-chart .r { font-size: 12px; fill: var(--ajy-low); baseline-shift: super; }
.ajy-chart .g0 { fill: #c25a12; } .ajy-chart .g1 { fill: #4f5d75; } .ajy-chart .g2 { fill: #b42318; }
.ajy-chart .g3 { fill: #237a45; } .ajy-chart .g4 { fill: #9a6b00; } .ajy-chart .g5 { fill: #b0457a; }
.ajy-chart .g6 { fill: #1e4fa3; } .ajy-chart .g7, .ajy-chart .g8 { fill: #5f5a52; }

.ajy-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.ajy-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.ajy-table th, .ajy-table td { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--ajy-line); vertical-align: top; }
.ajy-table thead th { font-size: .8rem; text-transform: none; color: var(--ajy-muted); font-weight: 600; background: #fcf6ec; }
.ajy-table tbody th { font-weight: 600; }
.ajy-table tr.is-asc th, .ajy-table tr.is-asc td { background: #fff7ea; }
.ajy-r { display: inline-block; font-size: .72rem; color: #fff; background: var(--ajy-low); border-radius: 4px; padding: 0 4px; margin-left: 2px; vertical-align: 1px; }

.ajy-split { display: grid; gap: 0 18px; }
.ajy-kuja.is-yes { border-left: 4px solid var(--ajy-low); }
.ajy-kuja.is-no { border-left: 4px solid var(--ajy-good); }

.ajy-dasha { display: grid; gap: 8px; }
.ajy-md { border: 1px solid var(--ajy-line); border-radius: 12px; overflow: hidden; }
.ajy-md > summary {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 14px;
	cursor: pointer; list-style: none; background: #fffaf2;
}
.ajy-md > summary::-webkit-details-marker { display: none; }
.ajy-md > summary::after { content: '+'; margin-left: auto; font-weight: 700; color: var(--ajy-gold); }
.ajy-md[open] > summary::after { content: '−'; }
.ajy-md__lord { font-weight: 700; }
.ajy-md__dates { font-size: .88rem; color: var(--ajy-muted); }
.ajy-md.is-now { border-color: var(--ajy-saffron); }
.ajy-md.is-now > summary { background: #fff1dc; }
.ajy-badge { font-size: .74rem; font-weight: 700; color: #fff; background: var(--ajy-saffron); border-radius: 999px; padding: 2px 10px; }
.ajy-table--sub { min-width: 0; font-size: .88rem; }
.ajy-table--sub tr.is-now th, .ajy-table--sub tr.is-now td { background: #fff1dc; font-weight: 700; }

/* Matching */
.ajy-score { display: grid; gap: 16px; align-items: center; justify-items: center; text-align: center; }
.ajy-score__ring { position: relative; width: 150px; height: 150px; }
.ajy-ring { width: 100%; height: 100%; }
.ajy-ring circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.ajy-ring .track { stroke: #f2e6d3; }
.ajy-ring .val { stroke: var(--ajy-gold); transition: stroke-dasharray .8s ease; }
.ajy-score--excellent .ajy-ring .val, .ajy-score--good .ajy-ring .val { stroke: var(--ajy-good); }
.ajy-score--low .ajy-ring .val { stroke: var(--ajy-low); }
.ajy-score__num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.ajy-score__num b { font-size: 2.4rem; color: var(--ajy-maroon); }
.ajy-score__num span { font-size: .8rem; color: var(--ajy-muted); }
.ajy-score__band { font-size: 1.02rem; margin-bottom: 12px; }
.ajy-score__text .ajy-tools { justify-content: center; }
.ajy-kootas th small { display: block; font-weight: 400; color: var(--ajy-muted); font-size: .8rem; }
.ajy-kootas__bar { min-width: 120px; }
.ajy-kootas__bar em { display: block; font-style: normal; font-size: .82rem; font-weight: 700; margin-top: 4px; }
.ajy-bar { display: block; height: 8px; border-radius: 99px; background: #f2e6d3; overflow: hidden; }
.ajy-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--ajy-gold), var(--ajy-saffron)); }
.ajy-kootas tr.is-dosha .ajy-bar i { background: var(--ajy-low); }
.ajy-notes { list-style: none; display: grid; gap: 8px; margin-top: 14px; }
.ajy-notes li { padding: 10px 12px 10px 36px; position: relative; background: #fffaf2; border-radius: 10px; font-size: .93rem; }
.ajy-notes li::before { content: '✦'; position: absolute; left: 13px; top: 10px; color: var(--ajy-gold); }

/* ---------- Forecast ---------- */
.ajy-tabs {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px;
	border-radius: 16px; background: #f6ecdc; margin-bottom: 14px;
	position: sticky; top: 8px; z-index: 5;
}
.ajy .ajy-tab {
	display: flex; flex-direction: column; align-items: center; gap: 0; min-height: 52px; padding: 6px 4px; margin: 0;
	border: 0; border-radius: 12px; background: transparent; cursor: pointer; box-shadow: none;
	font: inherit; color: var(--ajy-ink); line-height: 1.25;
}
.ajy .ajy-tab span { font-weight: 700; font-size: .95rem; }
.ajy .ajy-tab small { font-size: .74rem; color: var(--ajy-muted); }
.ajy .ajy-tab[aria-selected="true"] { background: #fff; box-shadow: 0 2px 8px rgba(60,30,10,.12); }
.ajy .ajy-tab[aria-selected="true"] span { color: var(--ajy-maroon); }

.ajy-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.ajy .ajy-chip {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; margin: 0;
	border: 1px solid var(--ajy-line); border-radius: 999px; background: #fff; cursor: pointer; box-shadow: none;
	font: inherit; font-size: .88rem; color: var(--ajy-ink); white-space: nowrap; line-height: 1.2;
}
.ajy .ajy-chip:hover { border-color: var(--ajy-gold); }
.ajy .ajy-chip.is-mine { background: var(--ajy-maroon); color: #fff; border-color: var(--ajy-maroon); }
.ajy-chip__g { font-size: 1.05rem; color: var(--ajy-gold); font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', sans-serif; }
.ajy-chip.is-mine .ajy-chip__g { color: var(--ajy-gold-soft); }
.ajy-findlink { margin: 0 0 14px; font-size: .92rem; }

.ajy-dayhead { margin: 6px 0 14px; display: grid; gap: 8px; }
.ajy-dayhead .ajy-h2 { margin: 0; }
.ajy-dayhead__moon { color: var(--ajy-muted); font-size: .95rem; }
.ajy-remedy { padding: 10px 14px; border-radius: 12px; background: linear-gradient(90deg, #fff1dc, #fffaf2); border: 1px solid var(--ajy-line); font-size: .94rem; }
.ajy-remedy strong { color: var(--ajy-maroon); }

.ajy-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ajy-card {
	display: flex; flex-direction: column; gap: 12px; min-width: 0;
	background: var(--ajy-card); border: 1px solid var(--ajy-line); border-radius: var(--ajy-radius);
	box-shadow: var(--ajy-shadow); padding: 16px; scroll-margin-top: 90px;
}
.ajy-card.is-mine { border-color: var(--ajy-saffron); box-shadow: 0 0 0 2px rgba(224, 123, 36, .35), var(--ajy-shadow); }
.ajy-card.is-flash { animation: ajy-flash 1.4s ease; }
@keyframes ajy-flash { 0% { background: #fff1dc; } 100% { background: #fff; } }
.ajy-card__head { display: flex; align-items: center; gap: 12px; }
.ajy-card__head > div { flex: 1; min-width: 0; }
.ajy-card__glyph {
	flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
	font-size: 1.45rem; line-height: 1; color: #fff; background: radial-gradient(circle at 30% 30%, var(--ajy-saffron), var(--ajy-maroon));
	font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', sans-serif;
}
.ajy-card__title { font-family: var(--ajy-head); font-size: 1.1rem; line-height: 1.3; font-weight: 700; color: var(--ajy-maroon); margin: 0; }
.ajy-card__sub { display: block; font-size: .8rem; color: var(--ajy-muted); }
.ajy-stars { flex: 0 0 auto; font-size: .95rem; letter-spacing: 1px; white-space: nowrap; }
.ajy-stars i { font-style: normal; color: #e8dcc8; }
.ajy-stars i.on { color: var(--ajy-gold); }
.ajy-card__lead { font-size: .97rem; }
.ajy-areas { list-style: none; display: grid; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--ajy-line); }
.ajy-area p { font-size: .9rem; color: var(--ajy-muted); margin-top: 2px; }
.ajy-area__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ajy-area__name { font-weight: 700; font-size: .92rem; }
.ajy-meter { display: inline-flex; gap: 3px; }
.ajy-meter i { width: 14px; height: 6px; border-radius: 3px; background: #efe4d2; }
.ajy-area--good .ajy-meter i.on { background: var(--ajy-good); }
.ajy-area--mixed .ajy-meter i.on { background: var(--ajy-mixed); }
.ajy-area--low .ajy-meter i.on { background: var(--ajy-low); }
.ajy-card__foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--ajy-line); }
.ajy-lucky { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #fffaf2; border: 1px solid var(--ajy-line); font-size: .82rem; line-height: 1.35; }
.ajy-lucky b { color: var(--ajy-maroon); }
.ajy-swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: 0 0 auto; }
.ajy-card__traits { font-size: .86rem; color: var(--ajy-muted); font-style: italic; }

/* Western finder */
.ajy-finder .ajy-finder__form { grid-template-columns: 1fr; align-items: end; }
.ajy-finder__out { margin-top: 16px; padding: 14px; border-radius: 14px; background: #fffaf2; border: 1px solid var(--ajy-line); display: grid; gap: 10px; }
.ajy-finder__sign { display: flex; align-items: center; gap: 12px; }
.ajy-finder__sign small { display: block; color: var(--ajy-muted); }
.ajy-finder__sign b { font-size: 1.3rem; color: var(--ajy-maroon); }

/* ---------- FAQ (bold question, plain answer, one open) ---------- */
.ajy-faq { margin-top: 26px; }
.ajy-faq__item { border-bottom: 1px solid var(--ajy-line); }
.ajy-faq__item > summary { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; cursor: pointer; list-style: none; }
.ajy-faq__item > summary::-webkit-details-marker { display: none; }
.ajy-faq__item > summary::after { content: '+'; margin-left: auto; font-size: 1.3rem; line-height: 1.2; color: var(--ajy-maroon); flex: 0 0 auto; }
.ajy-faq__item[open] > summary::after { content: '−'; }
.ajy-faq__q { font-family: var(--ajy-font); font-size: 1.02rem; font-weight: 700; line-height: 1.45; color: var(--ajy-ink); margin: 0; }
.ajy-faq__a { padding: 0 0 18px; color: var(--ajy-ink); }

@media (max-width: 559px) {
	.ajy-kootas th:nth-child(3), .ajy-kootas td:nth-child(3), .ajy-kootas th:nth-child(4), .ajy-kootas td:nth-child(4) { display: none; }
	.ajy-table { font-size: .86rem; }
}
@media (min-width: 560px) {
	.ajy-table th, .ajy-table td { padding: 9px 10px; }
}

/* ---------- Larger screens ---------- */
@media (min-width: 560px) {
	.ajy-row2 { grid-template-columns: 1fr 1fr; }
	.ajy-big3 { grid-template-columns: repeat(3, 1fr); }
	.ajy-finder .ajy-finder__form { grid-template-columns: minmax(0, 320px) auto; justify-content: start; }
}
@media (min-width: 720px) {
	.ajy-hero { padding: 36px 24px 28px; }
	.ajy-panel { padding: 22px 24px; }
	.ajy-pair { grid-template-columns: 1fr 1fr; }
	.ajy-charts { grid-template-columns: 1fr 1fr; }
	.ajy-grid { grid-template-columns: repeat(2, 1fr); }
	.ajy-split { grid-template-columns: 1fr 1fr; }
	.ajy-score { grid-template-columns: auto 1fr; justify-items: start; text-align: left; }
	.ajy-score__text .ajy-tools { justify-content: flex-start; }
	.ajy-chips { flex-wrap: wrap; overflow: visible; }
	.ajy-dl { grid-template-columns: 1fr 1fr; column-gap: 28px; }
	.ajy-split .ajy-dl, .ajy-finder__out .ajy-dl { grid-template-columns: 1fr; }
}
@media (min-width: 1040px) {
	.ajy-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Print ---------- */
@media print {
	.ajy-hero__intro, .ajy-nav, .ajy-langs, .ajy-panel--form, .ajy-faq, .ajy-tools, .ajy-seg, .ajy-tabs, .ajy-chips, .ajy-finder { display: none !important; }
	.ajy-panel, .ajy-card { box-shadow: none; break-inside: avoid; }
	.ajy-md:not([open]) .ajy-table--sub { display: none; }
	.ajy-tablewrap { overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
	.ajy * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Language names always in their own script. */
.ajy [lang="te"] { font-family: 'Noto Sans Telugu', 'Noto Sans', sans-serif; }
.ajy [lang="hi"] { font-family: 'Noto Sans Devanagari', 'Noto Sans', sans-serif; }
.ajy [lang="en"] { font-family: 'Noto Sans', system-ui, sans-serif; }
.ajy .ajy-table th, .ajy .ajy-table td { overflow-wrap: normal; word-break: normal; }
.ajy-table td:nth-child(3) { white-space: nowrap; }

/* ---------- Home-page card: [ajy_rasi_card] ---------- */
.ajy.ajy-mini {
	container-type: inline-size;
	max-width: 100%;
	padding: 0;
	margin: 0 auto;
	background: var(--ajy-card);
	border: 1px solid var(--ajy-line);
	border-radius: 20px;
	box-shadow: var(--ajy-shadow);
	overflow: hidden;
	line-height: 1.6;
}
.ajy-mini__head {
	display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px;
	background: radial-gradient(120% 140% at 0% 0%, rgba(224, 123, 36, .2), transparent 60%), linear-gradient(180deg, #fff6e6, #fffaf2);
	border-bottom: 1px solid var(--ajy-line);
}
.ajy-mini__emblem { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; }
.ajy-mini__titles { min-width: 0; }
.ajy .ajy-mini__title { font-family: var(--ajy-head); font-size: 1.2rem; line-height: 1.3; font-weight: 700; color: var(--ajy-maroon); margin: 0; }
.ajy-mini__date { font-size: .84rem; color: var(--ajy-muted); margin-top: 2px; }

.ajy-mini__body { display: grid; gap: 16px; padding: 16px; }
.ajy-mini__label { font-size: .84rem; font-weight: 600; color: var(--ajy-muted); margin-bottom: 8px; }
.ajy-mini__signs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ajy .ajy-mini__sign {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	min-height: 60px; padding: 6px 2px; margin: 0; min-width: 0;
	font: inherit; color: var(--ajy-ink); background: #fffaf2; cursor: pointer;
	border: 1px solid var(--ajy-line); border-radius: 12px; box-shadow: none; line-height: 1.2;
	transition: border-color .15s, background .15s;
}
.ajy .ajy-mini__sign:hover { border-color: var(--ajy-gold); }
.ajy-mini__g { font-size: 1.15rem; color: var(--ajy-saffron); font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', sans-serif; }
.ajy-mini__n { font-size: .74rem; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ajy .ajy-mini__sign[aria-selected="true"] { background: var(--ajy-maroon); border-color: var(--ajy-maroon); color: #fff; box-shadow: 0 4px 12px rgba(122, 31, 43, .25); }
.ajy .ajy-mini__sign[aria-selected="true"] .ajy-mini__g { color: var(--ajy-gold-soft); }

.ajy-mini__panel { display: grid; gap: 12px; align-content: start; }
.ajy-mini__panel[hidden] { display: none; }
.ajy-mini__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ajy .ajy-mini__sname { font-family: var(--ajy-head); font-size: 1.12rem; line-height: 1.3; font-weight: 700; color: var(--ajy-maroon); margin: 0; }
.ajy-mini__lead { font-size: .95rem; }
.ajy-mini__areas { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 10px 12px; border-radius: 12px; background: #fffaf2; border: 1px solid var(--ajy-line); }
.ajy-mini__areas li { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; font-weight: 600; min-width: 0; }
.ajy-mini__areas .ajy-meter i { width: 12px; }
.ajy-mini__lucky { display: flex; flex-wrap: wrap; gap: 8px; }
.ajy .ajy-mini__more { justify-self: start; min-height: 44px; padding: 8px 18px; font-size: .95rem; }

.ajy-mini__foot { display: grid; gap: 6px; padding: 12px 16px 16px; border-top: 1px dashed var(--ajy-line); font-size: .86rem; color: var(--ajy-muted); }
.ajy-mini__foot strong { color: var(--ajy-maroon); }

@container (min-width: 520px) {
	.ajy-mini__signs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.ajy-mini__head, .ajy-mini__body { padding-left: 20px; padding-right: 20px; }
	.ajy-mini__foot { padding-left: 20px; padding-right: 20px; }
}
@container (min-width: 780px) {
	.ajy-mini__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
	.ajy-mini__signs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ajy-mini__panels { padding-left: 24px; border-left: 1px dashed var(--ajy-line); }
	.ajy-mini__foot { grid-template-columns: 1fr auto; align-items: center; }
}
.ajy-mini__moon { display: block; }

/* ---------- Name typing (English letters → Telugu / Hindi) ---------- */
.ajy-tl { position: relative; }
.ajy-tl__box { position: relative; }
.ajy .ajy-tl__box .ajy-tl__input { padding-right: 56px; }
.ajy .ajy-tl__toggle {
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	display: grid; place-items: center; width: 40px; height: 36px; margin: 0; padding: 0;
	border: 1.5px solid var(--ajy-gold); border-radius: 9px; background: var(--ajy-gold-soft);
	color: var(--ajy-maroon); font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1; cursor: pointer; box-shadow: none;
}
.ajy .ajy-tl__toggle .off { display: none; }
.ajy-tl.is-off .ajy-tl__toggle { background: #fff; border-color: #dcc9ab; color: var(--ajy-muted); }
.ajy-tl.is-off .ajy-tl__toggle .on { display: none; }
.ajy-tl.is-off .ajy-tl__toggle .off { display: inline; }
.ajy-tl__opt b { font-size: 1.05rem; font-weight: 600; }
.ajy-tl__opt.is-latin b { font-weight: 400; color: var(--ajy-muted); font-size: .92rem; }
