/*
 * Vedic Tools — Rashiphal, Planet Transit Explorer, Compare Two Panchang
 * Dates, and the "Explore further" block on knowledge pages.
 * Every selector is prefixed .vt- to avoid collisions with the theme,
 * Elementor and the Panchang module (.panchang-calendar-*).
 */
.vt {
	--vt-accent: #ff7e00;
	--vt-accent-dark: #c25f00;
	--vt-ink: #222;
	--vt-muted: #5c5c5c;
	--vt-line: #e6e1d8;
	--vt-bg: #fffaf3;
	font-family: 'Work Sans', sans-serif;
	color: var(--vt-ink);
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	line-height: 1.55;
	box-sizing: border-box;
}
.vt *, .vt *::before, .vt *::after { box-sizing: border-box; }
.vt h1, .vt h2, .vt h3 { font-family: 'Philosopher', sans-serif; color: var(--vt-ink); line-height: 1.2; margin: 0 0 12px; }
.vt h1 { font-size: 34px; }
.vt h2 { font-size: 24px; margin-top: 32px; }
.vt h3 { font-size: 19px; }
.vt a { color: var(--vt-accent-dark); }
.vt a:focus-visible, .vt button:focus-visible, .vt select:focus-visible, .vt input:focus-visible, .vt .vt-scroll:focus-visible { outline: 3px solid #1a5fb4; outline-offset: 2px; }
.vt-symbol { color: var(--vt-accent); margin-right: 6px; }
.vt-lead { font-size: 18px; color: var(--vt-muted); margin: 0 0 20px; max-width: 720px; }
.vt-note, .vt-disclaimer { font-size: 14px; color: var(--vt-muted); }
.vt-disclaimer { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--vt-line); }
.vt-na { color: var(--vt-muted); font-style: italic; }
.vt-tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; background: #fde7d0; color: var(--vt-accent-dark); }

.vt-breadcrumb { font-size: 14px; margin-bottom: 8px; color: var(--vt-muted); }
.vt-breadcrumb a { text-decoration: none; }
.vt-breadcrumb span[aria-hidden] { margin: 0 6px; }

/* Tabs / chips */
.vt-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--vt-line); margin: 0 0 20px; flex-wrap: wrap; }
.vt-tab { padding: 10px 20px; text-decoration: none; color: var(--vt-ink) !important; border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 500; }
.vt-tab.is-active { border-bottom-color: var(--vt-accent); color: var(--vt-accent-dark) !important; font-weight: 600; }
.vt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.vt-chip { padding: 6px 14px; border: 1px solid var(--vt-line); border-radius: 20px; text-decoration: none; color: var(--vt-ink) !important; background: #fff; font-size: 15px; }
.vt-chip.is-active { background: var(--vt-accent); border-color: var(--vt-accent); color: #fff !important; }

/* Cards, notices */
.vt-card { background: var(--vt-bg); border: 1px solid var(--vt-line); border-radius: 8px; padding: 20px 24px; margin: 0 0 24px; }
.vt-period { font-weight: 600; color: var(--vt-accent-dark); margin: 0 0 8px; }
.vt-prediction { font-size: 19px; margin: 0; }
.vt-context { background: var(--vt-bg); border-left: 4px solid var(--vt-accent); padding: 10px 16px; margin: 0 0 20px; }
.vt-notice { background: var(--vt-bg); border: 1px solid var(--vt-line); border-radius: 8px; padding: 12px 20px; margin: 0 0 20px; }
.vt-notice p { margin: 4px 0; }
.vt-notice--error { border-color: #d9534f; background: #fdf1f0; }

/* Rashi grid */
.vt-grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.vt-tile-link { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; border: 1px solid var(--vt-line); border-radius: 8px; background: #fff; text-decoration: none; color: var(--vt-ink) !important; }
.vt-tile-link:hover, .vt-tile-link:focus-visible { border-color: var(--vt-accent); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.vt-tile-symbol { font-size: 26px; color: var(--vt-accent); line-height: 1; }
.vt-tile-name { font-family: 'Philosopher', sans-serif; font-size: 20px; }
.vt-tile-name small { font-size: 14px; color: var(--vt-muted); font-family: 'Work Sans', sans-serif; }
.vt-tile-text { font-size: 15px; color: var(--vt-muted); flex: 1; }
.vt-tile-more { font-size: 14px; color: var(--vt-accent-dark); font-weight: 600; }

.vt-links ul, .vt-related ul, .vt-sky-list { margin: 0 0 16px 20px; padding: 0; }
.vt-links li, .vt-related li, .vt-sky-list li { margin: 6px 0; }
.vt-sky { margin-top: 32px; padding: 4px 20px 12px; border: 1px solid var(--vt-line); border-radius: 8px; background: #fff; }
.vt-sky h2 { margin-top: 16px; font-size: 20px; }
.vt-sky-more { font-size: 14px; margin-left: 8px; }
.vt-related { font-family: 'Work Sans', sans-serif; margin: 32px 0 0; padding: 16px 24px; border: 1px solid var(--vt-line); border-radius: 8px; background: var(--vt-bg); clear: both; }
.vt-related h2 { font-family: 'Philosopher', sans-serif; font-size: 22px; margin: 0 0 8px; }

/* Forms */
.vt-form { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin: 0 0 20px; padding: 16px; background: var(--vt-bg); border: 1px solid var(--vt-line); border-radius: 8px; }
.vt-form--inline { align-items: center; margin-top: 32px; }
.vt-field { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.vt-form label { font-weight: 600; font-size: 14px; }
.vt-form select, .vt-form input { min-height: 44px; padding: 8px 10px; border: 1px solid #b9b2a5; border-radius: 6px; font: inherit; background: #fff; max-width: 100%; }
.vt-button { display: inline-block; min-height: 44px; padding: 10px 22px; border: 0; border-radius: 6px; background: var(--vt-accent); color: #fff !important; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.vt-button:hover { background: var(--vt-accent-dark); }
.vt-button--ghost { background: #fff; color: var(--vt-accent-dark) !important; border: 1px solid var(--vt-accent); }
.vt-button--ghost:hover { background: var(--vt-bg); }
.vt-year-nav { display: flex; gap: 12px; margin: 0 0 16px; }

/* Tables */
.vt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vt-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.vt-table th, .vt-table td { padding: 10px 12px; border-bottom: 1px solid var(--vt-line); text-align: left; vertical-align: top; }
.vt-table thead th { background: var(--vt-bg); font-weight: 600; white-space: nowrap; }
.vt-table--compare { min-width: 640px; }
.vt-table--compact { font-size: 14px; }
.vt-table--compact td { padding: 4px 8px; }
.vt-group th { background: #f3ede2; font-family: 'Philosopher', sans-serif; font-size: 17px; }
.vt-table tr.is-different td, .vt-table tr.is-different > th[scope="row"] { background: #fff4e6; }
.vt-state { font-size: 13px; }
.vt-state.is-different { font-weight: 700; color: var(--vt-accent-dark); }
.vt-state.is-different::before { content: '≠ '; }
.vt-cell-note { display: block; font-size: 12px; color: var(--vt-muted); }
.vt-diff-list { margin: 0 0 8px 20px; padding: 0; }
.vt-diff-list li { margin: 6px 0; }
.vt-diff-a, .vt-diff-b { padding: 1px 6px; border-radius: 4px; background: #fff4e6; }
.vt-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vt-choghadiya details { margin: 6px 0; }
.vt-choghadiya summary { cursor: pointer; font-weight: 600; }

/* Transit timeline */
.vt-timeline { position: relative; min-width: 820px; padding: 4px 0 8px; }
.vt-axis { position: relative; height: 20px; border-bottom: 1px solid var(--vt-line); }
.vt-axis-tick { position: absolute; top: 0; font-size: 12px; color: var(--vt-muted); padding-left: 3px; border-left: 1px solid var(--vt-line); height: 20px; }
.vt-lane-label { font-size: 12px; font-weight: 600; color: var(--vt-muted); text-transform: uppercase; letter-spacing: .04em; margin: 10px 0 2px; }
.vt-lane { position: relative; height: 34px; background: #faf7f1; border-radius: 4px; }
.vt-lane--events { height: 30px; }
.vt-block { position: absolute; top: 2px; bottom: 2px; overflow: hidden; white-space: nowrap; font-size: 12px; line-height: 30px; padding: 0 5px; border-radius: 3px; color: #222; border-right: 1px solid rgba(255,255,255,.7); }
.vt-block.is-retro { background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.18) 0 4px, transparent 4px 9px); font-style: italic; }
.vt-nak-0 { background: #e9eef7; }
.vt-nak-1 { background: #d8e2f3; }
.vt-r1 { background: #f8c9b8; } .vt-r2 { background: #d9e8c4; } .vt-r3 { background: #f6e9a9; } .vt-r4 { background: #cfe3f1; }
.vt-r5 { background: #fbd7a1; } .vt-r6 { background: #cfe9d4; } .vt-r7 { background: #f3d1e4; } .vt-r8 { background: #e1c9c9; }
.vt-r9 { background: #e4d6f1; } .vt-r10 { background: #d6d3c6; } .vt-r11 { background: #c9e4ea; } .vt-r12 { background: #d3dcf5; }
.vt-marker { position: absolute; top: 3px; transform: translateX(-50%); font-size: 15px; line-height: 24px; color: var(--vt-accent-dark); cursor: default; }
.vt-marker--retrograde_start { color: #b3261e; }
.vt-marker--direct_start { color: #1e7a3c; }
.vt-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--vt-muted); margin: 8px 0 0; }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }

@media (max-width: 640px) {
	.vt h1 { font-size: 27px; }
	.vt-prediction { font-size: 17px; }
	.vt-form { flex-direction: column; align-items: stretch; }
	.vt-field { min-width: 0; }
	.vt-two-col { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .vt * { transition: none !important; } }

/* Kundali comparison form */
.vt-form--stack { flex-direction: column; align-items: stretch; }
.vt-fieldset { border: 1px solid var(--vt-line); border-radius: 8px; padding: 12px 16px 16px; margin: 0; background: #fff; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vt-fieldset legend { font-family: 'Philosopher', sans-serif; font-size: 19px; padding: 0 6px; }
.vt-form--stack .vt-two-col { width: 100%; }

/* Hero banner (matches the Festival / Jyotish & Panchang / Full Year Panchang hero) */
.vt-hero { background-size: cover; background-position: center; min-height: 200px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; background-color: #1c1c1c; }
.vt-hero-inner { max-width: 1100px; }
.vt-hero .vt-hero-title { display: block; font-weight: 400; font-family: 'Philosopher', sans-serif; font-size: 40px; line-height: 1.2; color: #fff; margin: 0 0 10px; }
.vt-hero .vt-symbol { color: #ff7e00; }
.vt-hero .vt-tag { vertical-align: middle; font-family: 'Work Sans', sans-serif; }
.vt-hero-rule { width: 60px; height: 2px; background: #ff7e00; margin: 0 auto; }
.vt-header { margin-bottom: 0; }
@media (max-width: 640px) { .vt-hero { min-height: 140px; padding: 28px 16px; } .vt-hero .vt-hero-title { font-size: 28px; } }

/* Site search results */
.vt-search .vd-search-form { max-width: 640px; margin: 0 0 20px; }
.vt-search-results { list-style: none; margin: 0 0 24px; padding: 0; }
.vt-search-item { padding: 18px 20px; margin: 0 0 14px; background: #fff; border: 1px solid #f0dcc3; border-left: 4px solid #ff7e00; border-radius: 8px; }
.vt-search-item h2 { margin: 6px 0 6px; font-size: 22px; }
.vt-search-item h2 a { color: #b33a00; text-decoration: none; }
.vt-search-item h2 a:hover { color: #c83400; text-decoration: underline; }
.vt-search-item p { margin: 0; color: #4a4a4a; }
.vt-search .navigation.pagination { margin: 24px 0; }
.vt-search .page-numbers { display: inline-block; min-width: 40px; padding: 8px 14px; margin: 0 4px 6px 0; border: 1px solid #f0dcc3; border-radius: 999px; background: #fff; color: #b33a00; text-decoration: none; font-weight: 600; }
.vt-search .page-numbers.current { background: #ff7e00; border-color: #ff7e00; color: #fff; }

/* ==========================================================================
 * Compare Two Kundalis (.vt-kc-*). Meaning is never carried by colour alone:
 * every badge has text plus a symbol.
 * ========================================================================== */
.vt-kundali-compare { overflow-wrap: anywhere; }
.vt-kundali-compare .vt-two-col > * { min-width: 0; }
.vt-fieldset.has-error { border-color: #d9534f; }
.vt-kc-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.vt-kc-submit .vt-button.is-busy { opacity: .7; cursor: progress; }
.vt-kc-status { font-size: 15px; color: var(--vt-muted); }
.vt-kc-results:focus { outline: none; }
.vt-kc-section { margin: 0 0 12px; }

.vt-kc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.vt-kc-jump a { padding: 6px 12px; border: 1px solid var(--vt-line); border-radius: 18px; background: #fff; font-size: 14px; text-decoration: none; }
.vt-kc-jump a:hover, .vt-kc-jump a:focus-visible { border-color: var(--vt-accent); }

/* Badges */
.vt-kc-badge { display: inline-block; padding: 1px 9px; border-radius: 12px; border: 1px solid; font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.vt-kc-badge.is-same { background: #e8f4ec; border-color: #1e7a3c; color: #14532b; }
.vt-kc-badge.is-different { background: #fff4e6; border-color: #c25f00; color: #8a4200; }
.vt-kc-badge.is-partial { background: #eef2fb; border-color: #3a56a5; color: #24367a; }
.vt-kc-badge.is-compact { font-size: 12px; padding: 0 7px; }
.vt-kc-count { font-size: 15px; color: var(--vt-muted); font-family: 'Work Sans', sans-serif; }

/* Summary tiles */
.vt-kc-tiles { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.vt-kc-tile { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid var(--vt-line); border-radius: 8px; min-width: 0; }
.vt-kc-tile-label { font-size: 13px; color: var(--vt-muted); }
.vt-kc-tile-value { font-family: 'Philosopher', sans-serif; font-size: 20px; line-height: 1.25; }
.vt-kc-card { background: #fff; border: 1px solid var(--vt-line); border-radius: 8px; padding: 14px 16px; margin: 0 0 16px; min-width: 0; }
.vt-kc-card h3 { margin-top: 0; }
.vt-kc-yoga-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vt-kc-findings { margin-left: 18px; }

/* Planet cards */
.vt-kc-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.vt-kc-controls[hidden] { display: none; }
.vt-kc-planet { background: #fff; border: 1px solid var(--vt-line); border-radius: 8px; margin: 0 0 10px; }
.vt-kc-planet > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; cursor: pointer; min-height: 44px; }
.vt-kc-planet > summary:focus-visible, .vt-kc-more > summary:focus-visible { outline: 3px solid #1a5fb4; outline-offset: 2px; }
.vt-kc-planet[open] > summary { border-bottom: 1px solid var(--vt-line); background: var(--vt-bg); }
.vt-kc-planet-name { font-family: 'Philosopher', sans-serif; font-size: 19px; }
.vt-kc-planet-badges { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--vt-muted); }
.vt-kc-chip { display: inline-flex; align-items: center; gap: 5px; }
.vt-kc-planet-body { padding: 8px 16px 12px; }
.vt-kc-more { margin: 0 0 12px; }
.vt-kc-more > summary { cursor: pointer; font-weight: 600; min-height: 32px; padding: 4px 0; }
.vt-kc-inline-state { margin: 8px 0 16px; }

/* Comparison tables: A | B | result, stacked into labelled cards on narrow screens */
.vt-kc-table { table-layout: fixed; }
.vt-kc-table th, .vt-kc-table td { overflow-wrap: anywhere; vertical-align: middle; }
.vt-kc-table caption { text-align: left; font-weight: 600; padding: 0 0 6px; }
.vt-kc-table tbody th[scope="row"] { font-weight: 600; width: 22%; }
.vt-kc-table .vt-kc-state { white-space: nowrap; }

/* Vimshottari calendar timeline (decorative; the period tables are the text equivalent) */
.vt-kc-timeline { position: relative; margin: 8px 0 8px; padding: 0 0 4px; }
.vt-kc-axis { position: relative; height: 22px; border-bottom: 1px solid var(--vt-line); }
.vt-kc-tick { position: absolute; top: 0; height: 22px; padding-left: 3px; font-size: 12px; color: var(--vt-muted); border-left: 1px solid var(--vt-line); }
.vt-kc-lane-label { font-size: 13px; font-weight: 600; margin: 10px 0 2px; color: var(--vt-muted); }
.vt-kc-lane { position: relative; height: 38px; background: #faf7f1; border-radius: 4px; overflow: hidden; }
.vt-kc-block { position: absolute; top: 2px; bottom: 2px; overflow: hidden; white-space: nowrap; font-size: 12px; line-height: 34px; padding: 0 4px; border-radius: 3px; color: #222; border-right: 1px solid rgba(255,255,255,.8); }
.vt-kc-block.is-running { outline: 3px solid #1a5fb4; outline-offset: -3px; font-weight: 700; }
.vt-kc-today { position: absolute; top: 0; bottom: 0; width: 2px; background: #222; }
.vt-kc-md-sun { background: #fbd7a1; } .vt-kc-md-moon { background: #e9eef7; } .vt-kc-md-mars { background: #f8c9b8; }
.vt-kc-md-rahu { background: #d6d3c6; } .vt-kc-md-jupiter { background: #f6e9a9; } .vt-kc-md-saturn { background: #d3dcf5; }
.vt-kc-md-mercury { background: #cfe9d4; } .vt-kc-md-ketu { background: #e1c9c9; } .vt-kc-md-venus { background: #f3d1e4; }

@media (max-width: 900px) {
	.vt-kc-yoga-groups, .vt-kc-results .vt-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.vt-kc-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
	.vt-kc-tile-value { font-size: 17px; }
	.vt-kc-planet > summary { padding: 10px 12px; }
	.vt-kc-planet-body { padding: 4px 10px 10px; }

	/* Stacked rows: the table keeps its markup; each cell shows its column name. */
	.vt-kc-table, .vt-kc-table tbody, .vt-kc-table tr, .vt-kc-table th, .vt-kc-table td { display: block; width: 100%; }
	.vt-kc-table thead { position: absolute; clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; }
	.vt-kc-table tbody tr { border: 1px solid var(--vt-line); border-radius: 8px; margin: 0 0 10px; padding: 4px 0; background: #fff; }
	.vt-kc-table tbody th[scope="row"] { width: 100%; border-bottom: 1px solid var(--vt-line); background: var(--vt-bg); }
	.vt-kc-table td { border-bottom: 0; padding: 4px 12px; display: flex; gap: 12px; justify-content: space-between; text-align: right; }
	.vt-kc-table td::before { content: attr(data-label); font-weight: 600; text-align: left; color: var(--vt-muted); flex: 0 0 38%; }
	.vt-kc-table td:not([data-label]) { display: none; }
	.vt-kc-table .vt-kc-state { white-space: normal; }
	.vt-kc-table caption { display: block; text-align: left; font-weight: 600; padding: 0 0 8px; }
	.vt-kc-table td[colspan] { display: block; text-align: left; }
	.vt-kc-table td[colspan]::before { display: block; margin-bottom: 2px; }
}

/* Summary "at a glance" matrix */
.vt-kc-glance-lead { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.vt-kc-key { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--vt-muted); }
.vt-kc-ab { display: flex; align-items: center; gap: 6px; line-height: 1.35; }
.vt-kc-ab + .vt-kc-ab { margin-top: 2px; }
.vt-kc-ab-tag { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 4px; background: #3a56a5; color: #fff; font-size: 11px; font-weight: 700; }
.vt-kc-ab-tag.is-b { background: #7a4a14; }
.vt-kc-glance td { white-space: normal; }
.vt-kc-glance-diff { background: #fffaf3; }
.vt-kc-glance-diff .vt-kc-badge, .vt-kc-glance-same .vt-kc-badge { margin-top: 4px; }
.vt-kc-glance-same .vt-kc-glance-val { display: block; }
@media (max-width: 640px) {
	.vt-kc-glance td.vt-kc-glance-na { display: none; }
	.vt-kc-glance td { align-items: flex-start; }
	.vt-kc-glance td.vt-kc-glance-diff { display: grid; grid-template-columns: 38% 1fr; gap: 2px 12px; align-items: center; }
	.vt-kc-glance td.vt-kc-glance-diff::before { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
	.vt-kc-glance-diff .vt-kc-ab { grid-column: 2; justify-content: flex-end; text-align: right; }
	.vt-kc-glance-same .vt-kc-glance-val { text-align: right; }
}
