/**
 * Vedic Birth Chart — responsive breakpoints and print styles.
 */

@media (max-width: 720px) {
	.vbc-card {
		padding: 22px 16px;
		border-radius: 8px;
	}

	.vbc-date-group,
	.vbc-time-group {
		flex-wrap: wrap;
	}

	.vbc-time-group .vbc-date-part {
		flex: 1 1 100px;
	}

	.vbc-button {
		width: 100%;
		justify-content: center;
	}

	.vbc-charts-row {
		gap: 20px;
	}

	table.vbc-table {
		min-width: 560px;
	}
}

@media (max-width: 420px) {
	.vbc-card__title {
		font-size: 1.3em;
	}
}

/* ---------------------------------------------------------------------- */
/* Print                                                                    */
/* ---------------------------------------------------------------------- */

@media print {
	.vbc-form-card,
	.vbc-actions-row,
	.vbc-combobox__listbox {
		display: none !important;
	}

	/*
	 * The on-screen theme is a dark "cosmic" brand palette; printing it as-is
	 * would waste ink and often render illegibly on paper, so print gets its
	 * own light palette regardless of what the screen shows.
	 */
	.vbc-app {
		max-width: 100%;
		--vbc-bg: #ffffff;
		--vbc-primary-dark: #5c2c0d;
		--vbc-accent: #b8860b;
		--vbc-accent-soft: #7a3b12;
		--vbc-ink: #2a2119;
		--vbc-muted: #6b5f52;
		--vbc-muted-2: #6b5f52;
		--vbc-border: #d8cdb8;
		--vbc-surface: #ffffff;
		--vbc-surface-alt: #f5efe1;
		color: var(--vbc-ink);
		background: #fff;
	}

	.vbc-card {
		background: #fff;
		box-shadow: none;
		border: 1px solid #999;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		break-inside: avoid;
	}

	.vbc-chart-svg-wrap {
		background: #fff;
		border-color: #ccc;
	}

	.vbc-charts-row {
		justify-content: flex-start;
	}

	.vbc-chart-svg-wrap svg {
		max-width: 320px;
	}

	table.vbc-table {
		font-size: 11px;
	}

	table.vbc-table thead th {
		background-color: #f5efe1;
	}

	.vbc-shadbala__bars {
		background: linear-gradient(to bottom, #eaf7ef 0%, #eaf7ef 55%, #fdeaea 55%, #fdeaea 100%);
	}

	.vbc-shadbala__labels {
		background: #f5efe1;
	}

	/* Print the full Dasha detail, not just whichever Mahadasha happens to be expanded on screen. */
	.vbc-dasha-md__panel[hidden] {
		display: block !important;
	}

	.vbc-dasha-md__chevron {
		display: none;
	}

	a[href]::after {
		content: "";
	}
}
