/*
 * Northpoint Duchesne Weather — front-end widget styles.
 * All classes are prefixed with npdw- to avoid theme/PageLayer conflicts.
 */

.npdw-widget {
	box-sizing: border-box;
	display: inline-block;
	width: 100%;
	max-width: 440px;
	min-width: 280px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.35;
	border-radius: 8px;
	border: 1px solid #d8e1e8;
	background-color: #ffffff;
	box-shadow: 0 1px 3px rgba( 20, 43, 69, 0.08 );
	padding: 12px 14px;
	color: #142b45;
}

.npdw-widget * {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------- *
 * Layout: two day-blocks side by side, with a vertical divider
 * ---------------------------------------------------------------- */

.npdw-days {
	display: flex;
	align-items: stretch;
	gap: 10px;
	width: 100%;
}

.npdw-day {
	flex: 1 1 50%;
	min-width: 0; /* allow text truncation/wrapping instead of overflow */
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.npdw-divider {
	flex: 0 0 1px;
	width: 1px;
	background-color: #d8e1e8;
	align-self: stretch;
}

.npdw-theme-dark .npdw-divider {
	background-color: rgba( 255, 255, 255, 0.25 );
}

.npdw-day-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #5e6b75;
}

.npdw-theme-dark .npdw-day-label {
	color: #cfe0ee;
}

.npdw-day-main {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.npdw-icon {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	display: block;
	border-radius: 4px;
}

.npdw-icon-placeholder {
	width: 36px;
	height: 36px;
	display: inline-block;
	background-color: #eef4f8;
	border-radius: 4px;
}

.npdw-theme-dark .npdw-icon-placeholder {
	background-color: rgba( 255, 255, 255, 0.12 );
}

.npdw-day-text {
	min-width: 0;
	flex: 1 1 auto;
	overflow: hidden;
}

.npdw-condition {
	font-size: 13px;
	font-weight: 600;
	color: #315d82;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.npdw-theme-dark .npdw-condition {
	color: #ffffff;
}

.npdw-temps {
	font-size: 15px;
	font-weight: 700;
	color: #142b45;
	white-space: nowrap;
}

.npdw-theme-dark .npdw-temps {
	color: #ffffff;
}

.npdw-temp-sep {
	color: #5e6b75;
	font-weight: 400;
	margin: 0 2px;
}

.npdw-theme-dark .npdw-temp-sep {
	color: #cfe0ee;
}

/* ---------------------------------------------------------------- *
 * "View Forecast" link
 * ---------------------------------------------------------------- */

.npdw-view-link {
	display: inline-block;
	margin-top: 10px;
	font-size: 12px;
	font-weight: 600;
	color: #315d82;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	min-height: 1em;
	padding: 2px 0;
}

.npdw-view-link:hover,
.npdw-view-link:focus {
	text-decoration: underline;
	border-bottom-color: currentColor;
}

.npdw-view-link:focus-visible {
	outline: 2px solid #315d82;
	outline-offset: 2px;
	border-radius: 2px;
}

.npdw-theme-dark .npdw-view-link {
	color: #eef4f8;
}

.npdw-theme-dark .npdw-view-link:focus-visible {
	outline-color: #ffffff;
}

/* ---------------------------------------------------------------- *
 * Themes
 * ---------------------------------------------------------------- */

.npdw-theme-light {
	background-color: #ffffff;
	border-color: #d8e1e8;
	color: #142b45;
}

.npdw-theme-dark {
	background-color: rgba( 20, 43, 69, 0.35 );
	border-color: rgba( 255, 255, 255, 0.2 );
	color: #ffffff;
	box-shadow: none;
}

/* ---------------------------------------------------------------- *
 * Unavailable state
 * ---------------------------------------------------------------- */

.npdw-unavailable {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
	text-align: center;
}

.npdw-unavailable-text {
	font-size: 13px;
	color: #5e6b75;
}

.npdw-theme-dark .npdw-unavailable-text {
	color: #cfe0ee;
}

/* ---------------------------------------------------------------- *
 * Compact variant — same layout, slightly tighter, with a distinct
 * class available for future custom styling.
 * ---------------------------------------------------------------- */

.npdw-compact {
	padding: 8px 10px;
	max-width: 360px;
}

.npdw-compact .npdw-day-label {
	font-size: 10px;
}

.npdw-compact .npdw-icon,
.npdw-compact .npdw-icon-placeholder {
	width: 30px;
	height: 30px;
}

.npdw-compact .npdw-condition {
	font-size: 12px;
}

.npdw-compact .npdw-temps {
	font-size: 14px;
}

.npdw-compact .npdw-view-link {
	margin-top: 6px;
	font-size: 11px;
}

/* ---------------------------------------------------------------- *
 * Responsive: stack vertically only on narrow screens
 * ---------------------------------------------------------------- */

@media ( max-width: 360px ) {
	.npdw-days {
		flex-direction: column;
		gap: 8px;
	}

	.npdw-divider {
		display: none;
	}

	.npdw-day {
		flex: 1 1 auto;
	}
}
