/*
 * VDP Site Components
 * Shared stylesheet for small custom components that were previously printed as inline CSS.
 * Keep this file lean. Avoid adding full theme styles here.
 */

/* Follow topics / reader topic preferences */
.vd-box {
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 16px;
	margin: 14px 0;
	background: #fff;
}

.vd-muted {
	color: #6b7280;
}

.vd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	padding: 8px 13px;
	cursor: pointer;
	background: #fff;
	text-decoration: none;
	line-height: 1.2;
}

.vd-btn:hover {
	text-decoration: none;
}

.vd-simple-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
	margin: 10px 0 18px 0;
}

.vd-simple-check {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 10px 12px;
	background: #fff;
	cursor: pointer;
	font-size: 15px;
	line-height: 1.25;
}

.vd-simple-check input {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.vd-simple-email-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 8px 0 4px 0;
}

.vd-simple-email-row label {
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	padding: 8px 12px;
	background: #fff;
}

.vd-simple-notice {
	border: 1px solid #bbf7d0;
	background: #f0fdf4;
	border-radius: 10px;
	padding: 10px 12px;
	margin-bottom: 12px;
	color: #166534;
}

.vd-simple-save,
.vd-follow-teaser-button {
	background: #111827;
	color: #fff;
	border-color: #111827;
}

.vd-follow-teaser {
	padding: 14px;
}

.vd-follow-teaser form {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.vd-follow-teaser-title {
	font-size: 16px;
	margin-right: 2px;
}

.vd-follow-teaser-options {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	flex: 1;
}

.vd-follow-teaser-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	padding: 6px 10px;
	background: #fff;
	font-size: 13px;
	white-space: nowrap;
}

.vd-follow-teaser-button {
	white-space: nowrap;
}

.vd-follow-feed-item {
	padding: 10px 0;
	border-bottom: 1px solid #f3f4f6;
}

.vd-follow-feed-item:last-child {
	border-bottom: 0;
}

.vd-follow-remove {
	margin-left: 8px;
	font-size: 12px;
	padding: 5px 9px;
}

@media (max-width: 640px) {
	.vd-simple-grid {
		grid-template-columns: 1fr;
	}

	.vd-follow-teaser form {
		display: block;
	}

	.vd-follow-teaser-options {
		margin: 10px 0;
	}

	.vd-follow-teaser-button {
		width: 100%;
		justify-content: center;
	}

	.vd-simple-email-row {
		display: block;
	}

	.vd-simple-email-row label {
		display: block;
		margin: 8px 0;
	}
}

/* Airport arrivals/departures table */
.pvr-fids {
	width: 100%;
	overflow-x: auto;
}

.pvr-fids table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.pvr-fids th,
.pvr-fids td {
	border-bottom: 1px solid #e5e7eb;
	padding: .6rem .5rem;
	text-align: left;
}

.pvr-fids th {
	font-weight: 600;
	background: #f8fafc;
}

.pvr-fids .status {
	font-weight: 600;
}

.pvr-fids .on-time {
	color: #059669;
}

.pvr-fids .delayed {
	color: #dc2626;
}

.pvr-fids .cancelled {
	color: #7f1d1d;
}

.pvr-fids .meta {
	font-size: 12px;
	color: #64748b;
	margin: .4rem 0;
}

.pvr-fids caption {
	caption-side: top;
	text-align: left;
	font-weight: 600;
	margin-bottom: .4rem;
}

/* Topic post grid/cards */
.vd-tpg-wrap {
	width: 100%;
	margin: 0 auto;
}

.vd-tpg-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	align-items: stretch;
}

.vd-tpg-card {
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
	height: 100%;
}

.vd-tpg-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.10);
	border-color: rgba(0, 0, 0, 0.14);
}

.vd-tpg-image-link {
	display: block;
	background: #f3f4f6;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.vd-tpg-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 220ms ease;
}

.vd-tpg-card:hover .vd-tpg-image {
	transform: scale(1.03);
}

.vd-tpg-content {
	padding: 18px 18px 20px;
}

.vd-tpg-title {
	font-size: clamp(1.05rem, 1vw + 0.85rem, 1.35rem);
	line-height: 1.25;
	margin: 0 0 10px;
	font-weight: 750;
}

.vd-tpg-title a {
	color: inherit;
	text-decoration: none;
}

.vd-tpg-title a:hover,
.vd-tpg-title a:focus {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.vd-tpg-excerpt {
	font-size: 0.98rem;
	line-height: 1.55;
	color: #4b5563;
	margin: 0;
}

.vd-tpg-empty {
	padding: 22px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 14px;
	background: #f9fafb;
	color: #4b5563;
}

@media (max-width: 900px) {
	.vd-tpg-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}
}

@media (max-width: 640px) {
	.vd-tpg-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.vd-tpg-content {
		padding: 16px;
	}
}

/* Weather strip/cards */
.mnbws {
	font: 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
	color: #111;
}

.mnbws .card {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: .8rem;
	margin: .6rem 0;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.mnbws .row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: .5rem;
}

.mnbws .muted {
	color: #6b7280;
}

.mnbws .icon {
	width: 28px;
	height: 28px;
	vertical-align: middle;
	margin-right: .35rem;
}

.mnbws .temp {
	font-weight: 700;
	font-size: 1.3rem;
}

.mnbws .grid {
	display: grid;
	gap: .6rem;
}

.mnbws .strip {
	display: flex;
	gap: .6rem;
	overflow-x: auto;
	padding-bottom: .25rem;
	scrollbar-width: thin;
}

.mnbws .day-card {
	flex: 0 0 auto;
	min-width: 120px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: .6rem;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.mnbws .day-card .date {
	font-size: .9em;
	color: #6b7280;
	margin-bottom: .25rem;
}

.mnbws .hi {
	font-weight: 700;
}

.mnbws .lo {
	color: #6b7280;
}

/* Top 10 popular posts left-thumbnail overrides */
.tptn-left-thumbs {
	--tptn-thumb-width: 300px;
	--tptn-thumb-height: 200px;
	--tptn-thumb-aspect-ratio: 300 / 200;
}

.tptn-left-thumbs img.tptn_thumb {
	width: min(var(--tptn-thumb-width), 100%);
	height: var(--tptn-thumb-height);
	max-height: var(--tptn-thumb-height);
	aspect-ratio: var(--tptn-thumb-aspect-ratio);
	object-fit: cover;
}

.tptn-left-thumbs li > a.tptn_link {
	display: block;
	flex: 0 0 auto;
	align-self: flex-start;
	padding: var(--tptn-thumb-frame-padding, 0.25rem);
	border-width: var(--tptn-thumb-frame-border-width, 1px);
	border-style: solid;
	border-color: var(--tptn-thumb-border, #ccc);
	border-radius: var(--tptn-border-radius, 8px);
	box-shadow: var(--tptn-shadow, 0 2px 4px rgba(0, 0, 0, 0.15));
	transition: transform var(--tptn-transition, 0.2s ease), box-shadow var(--tptn-transition, 0.2s ease);
	will-change: transform;
}

.tptn-left-thumbs ul li:hover > a.tptn_link {
	transform: scale(1.03);
	box-shadow: var(--tptn-shadow-hover, 0 4px 8px rgba(0, 0, 0, 0.2));
}

.tptn-left-thumbs .tptn_title {
	width: 100%;
}

.tptn_posts_daily li {
	margin-bottom: 50px !important;
}

/* RCP upgrade cards */
.vdp-rcp-upgrade-section {
	margin: 28px 0;
	padding: 24px;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	background: #fff;
}

.vdp-rcp-upgrade-header h3 {
	margin: 0 0 6px;
	font-size: 1.35rem;
	line-height: 1.25;
}

.vdp-rcp-upgrade-header p {
	margin: 0 0 18px;
	color: #4b5563;
}

.vdp-rcp-upgrade-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.vdp-rcp-upgrade-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	border: 2px solid #e5e7eb;
	border-radius: 16px;
	cursor: pointer;
	background: #fff;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
	min-width: 0;
}

.vdp-rcp-upgrade-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}

.vdp-rcp-upgrade-card.is-selected {
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.vdp-rcp-upgrade-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 1px;
	height: 1px;
}

.vdp-rcp-card-label {
	display: inline-flex;
	align-self: flex-start;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 700;
	line-height: 1;
	background: #f3f4f6;
	color: #374151;
	white-space: nowrap;
}

.vdp-rcp-upgrade-card.is-selected .vdp-rcp-card-label {
	background: #dbeafe;
	color: #1d4ed8;
}

.vdp-rcp-upgrade-card strong {
	display: block;
	font-size: 1.12rem;
	line-height: 1.25;
	word-break: normal;
	overflow-wrap: break-word;
}

.vdp-rcp-card-price {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.vdp-rcp-card-description {
	display: block;
	color: #4b5563;
	font-size: .95rem;
	line-height: 1.45;
	overflow-wrap: break-word;
}

@media (max-width: 800px) {
	.vdp-rcp-upgrade-grid {
		grid-template-columns: 1fr;
	}

	.vdp-rcp-upgrade-section {
		padding: 18px;
	}
}
