/*
 * Planetary Positions Today (2026-12). Loaded only on that page, on top of vedic-tools.css (.vt, .vt-form,
 * .vt-button, .vt-notice) and css/vd-kundali-chart.css (.vd-chart). Every selector starts with .vt-pos.
 */
.vt-pos { max-width: 1140px; }
.vt-pos-head { margin: 0 0 10px; }
.vt-pos-kicker { margin: 0; font-family: 'Philosopher', sans-serif; font-size: 22px; line-height: 1.2; color: var(--vt-accent-dark); }
.vt-pos-intro { margin: 2px 0 0; font-size: 16px; color: var(--vt-muted); max-width: 760px; }

/* One compact toolbar: location on the left, the calculation moment and Refresh on the right */
.vt-pos-toolbar { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 10px 24px; align-items: center; margin: 0 0 14px; padding: 12px 16px; background: var(--vt-bg); border: 1px solid var(--vt-line); border-radius: 8px; }
.vt-pos-form { display: flex; gap: 10px; align-items: flex-end; margin: 0; }
.vt-pos-form .vt-field { flex: 1 1 auto; min-width: 0; }
.vt-pos-form label { font-weight: 600; font-size: 14px; }
.vt-pos-form select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #b9b2a5; border-radius: 6px; font: inherit; background: #fff; }
.vt-pos-apply[hidden] { display: none !important; }
.vt-pos-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; min-width: 0; }
.vt-pos-moment { margin: 0; font-size: 16px; line-height: 1.35; }
.vt-pos-coords { color: var(--vt-muted); font-size: 13.5px; white-space: nowrap; }
.vt-pos-age { margin: 0; font-size: 13.5px; color: var(--vt-muted); display: flex; align-items: center; gap: 10px; }
.vt-pos-refresh { min-height: 40px; padding: 6px 18px; }
.vt-pos-refresh[hidden] { display: none; }
.vt-pos.is-error .vt-pos-moment { color: #b02a25; }

/* Lagna / Chandra switch */
.vt-pos-views { display: inline-flex; border: 2px solid var(--vt-accent); border-radius: 999px; overflow: hidden; margin: 0 0 16px; background: #fff; }
.vt-pos-view { appearance: none; border: 0; background: transparent; padding: 10px 22px; min-height: 44px; font: 600 15px 'Work Sans', sans-serif; color: var(--vt-accent-dark); cursor: pointer; }
.vt-pos-view.is-active { background: var(--vt-accent); color: #fff; }
.vt-pos-view:not(.is-active):hover { background: #fff2e2; }

/* Chart + table side by side on desktop */
.vt-pos-grid { display: grid; grid-template-columns: minmax(300px, 410px) minmax(0, 1fr); gap: 24px; align-items: start; }
.vt-pos-chartcol { min-width: 0; }
.vt-pos-chart[hidden] { display: none; }
.vt-pos-chart { background: #fff; border: 1px solid var(--vt-line); border-radius: 10px; padding: 12px; min-height: 280px; }
.vt-pos:not(.is-ready) .vt-pos-chart { background: repeating-linear-gradient(45deg, #fff, #fff 12px, #fff7ec 12px, #fff7ec 24px); }
.vt-pos-chart .vd-chart__svg { width: 100%; height: auto; display: block; }
.vt-pos-chartnote { margin: 8px 2px 0; font-size: 14px; color: var(--vt-muted); }
.vt-pos-tablecol { min-width: 0; }
.vt-pos-summary { margin: 0 0 12px; padding: 10px 14px; background: var(--vt-bg); border-left: 4px solid var(--vt-accent); border-radius: 4px; font-size: 16px; }
.vt-pos-summary:empty { display: none; }

/* Tables */
.vt-pos-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vt-pos-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.vt-pos-table caption { text-align: left; }
.vt-pos-table th, .vt-pos-table td { padding: 8px 8px; border-bottom: 1px solid var(--vt-line); text-align: left; vertical-align: middle; }
.vt-pos-table thead th { background: #fff2e2; font-size: 13px; text-transform: none; color: #5a3200; white-space: nowrap; }
.vt-pos-table tbody th { font-weight: 600; }
#vt-pos-table .c-planet, #vt-pos-table .c-deg { white-space: nowrap; }
#vt-pos-table .c-sign, #vt-pos-table .c-nak { min-width: 8.5em; }
.vt-pos-table tr.is-asc th, .vt-pos-table tr.is-asc td { background: #fffaf3; }
.vt-pos-table .vt-pos-subhead th { background: #f4efe6; font-size: 13px; color: var(--vt-muted); }
.vt-pos-table .c-house { text-align: center; width: 1%; }
.vt-pos-house { display: inline-block; min-width: 28px; padding: 1px 6px; border-radius: 12px; background: var(--vt-accent); color: #fff; font-weight: 700; text-align: center; }
.vt-pos-r { display: inline-block; min-width: 24px; padding: 1px 6px; border-radius: 12px; background: #fde7d0; color: #8a3a00; font-weight: 700; text-align: center; cursor: help; }
.vt-pos-r--always { background: #ece6f7; color: #4b2f8a; }
.vt-pos-direct { color: var(--vt-muted); }
.vt-pos-pada { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 10px; background: #f4efe6; font-size: 13px; color: #5a3200; white-space: nowrap; }

/* More details */
.vt-pos-more { margin: 24px 0 0; border: 1px solid var(--vt-line); border-radius: 8px; background: #fff; }
.vt-pos-more > summary { cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: 17px; color: var(--vt-accent-dark); list-style: none; display: flex; align-items: center; gap: 8px; min-height: 48px; }
.vt-pos-more > summary::-webkit-details-marker { display: none; }
.vt-pos-more > summary::before { content: '\25B8'; display: inline-block; transition: transform .15s; }
.vt-pos-more[open] > summary::before { transform: rotate(90deg); }
.vt-pos-more-body { padding: 0 18px 18px; }
.vt-pos-more-body h3 { margin-top: 22px; }
.vt-pos-panchang { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 20px; margin: 0; }
.vt-pos-panchang div { padding: 8px 0; border-bottom: 1px solid var(--vt-line); }
.vt-pos-panchang dt { font-size: 13px; color: var(--vt-muted); }
.vt-pos-panchang dd { margin: 0; font-weight: 600; word-break: break-word; }

.vt-pos-notes { margin-top: 28px; }
.vt-pos-notes h2 { font-size: 22px; margin-top: 0; }
.vt-pos-notes ul { margin: 0 0 14px 20px; padding: 0; }
.vt-pos-notes li { margin: 6px 0; }

/* Tablet: chart above, table below at full width */
@media (max-width: 960px) {
	.vt-pos-grid { grid-template-columns: 1fr; }
	.vt-pos-chartcol { max-width: 480px; margin: 0 auto; width: 100%; }
}

/* Phone: the main table becomes two-line rows, so nothing needs sideways scrolling */
@media (max-width: 640px) {
	.vt-pos { padding: 16px 12px 40px; }
	.vt-pos-kicker { font-size: 19px; }
	.vt-pos-intro { font-size: 14.5px; }
	.vt-pos-toolbar { grid-template-columns: 1fr; padding: 10px 12px; gap: 8px; }
	.vt-pos-moment { font-size: 14.5px; }
	.vt-pos-age { width: 100%; justify-content: space-between; }
	.vt-pos-views { display: flex; width: 100%; }
	.vt-pos-view { flex: 1; padding: 10px 8px; }
	.vt-pos-chart { padding: 6px; }

	#vt-pos-table .c-planet, #vt-pos-table .c-sign, #vt-pos-table .c-deg, #vt-pos-table .c-nak { white-space: normal; min-width: 0; }
	#vt-pos-table thead { display: none; }
	#vt-pos-table, #vt-pos-table tbody { display: block; }
	#vt-pos-table tr { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: 'planet r house' 'sign deg nak'; gap: 2px 10px; padding: 8px 10px; border-bottom: 1px solid var(--vt-line); background: #fff; }
	#vt-pos-table tr.is-asc { background: #fffaf3; }
	#vt-pos-table th, #vt-pos-table td { display: block; border: 0; padding: 0; background: transparent; }
	#vt-pos-table .c-planet { grid-area: planet; font-size: 16px; }
	#vt-pos-table .c-r { grid-area: r; text-align: right; }
	#vt-pos-table .vt-pos-direct { display: none; }
	#vt-pos-table .c-house { grid-area: house; width: auto; text-align: right; }
	#vt-pos-table .c-sign { grid-area: sign; font-size: 14px; }
	#vt-pos-table .c-deg { grid-area: deg; font-size: 14px; text-align: right; color: var(--vt-muted); }
	#vt-pos-table .c-nak { grid-area: nak; font-size: 14px; text-align: right; }
	.vt-pos-more-body { padding: 0 10px 14px; }
	.vt-pos-table--detail { font-size: 14px; }
}
