/**
 * Prescott Conditions — panel styles.
 * Palette: green #1f5a34, navy #16283c, orange #d9531e, gold #f5a623,
 *          cream #faf4e8, borders #ead9c2, text #4b555c.
 */

.pcx {
	--pcx-green: #1f5a34;
	--pcx-navy: #16283c;
	--pcx-orange: #d9531e;
	--pcx-gold: #f5a623;
	--pcx-cream: #faf4e8;
	--pcx-border: #ead9c2;
	--pcx-text: #4b555c;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--pcx-text);
	box-sizing: border-box;
}

.pcx *,
.pcx *::before,
.pcx *::after {
	box-sizing: border-box;
}

/* ---- Compact one-line variant ------------------------------------------ */

.pcx-compact {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 700;
	line-height: 1;
	color: var(--pcx-navy);
	white-space: nowrap;
}

.pcx-compact .pcx-emoji {
	font-size: 1.15em;
}

.pcx-compact .pcx-temp {
	font-size: 1em;
}

/* ---- Full panel -------------------------------------------------------- */

.pcx-panel {
	display: block;
	background: var(--pcx-cream);
	border: 1px solid var(--pcx-border);
	border-radius: 14px;
	padding: 14px 16px;
	max-width: 340px;
}

.pcx-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.pcx-title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--pcx-navy);
}

.pcx-updated {
	font-size: 11px;
	color: #8a8175;
	white-space: nowrap;
}

.pcx-main {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pcx-emoji-lg {
	font-size: 40px;
	line-height: 1;
}

.pcx-temp-lg {
	font-size: 40px;
	font-weight: 800;
	line-height: 1;
	color: var(--pcx-navy);
}

.pcx-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 13px;
	line-height: 1.3;
}

.pcx-cond {
	font-weight: 700;
	color: var(--pcx-green);
}

.pcx-hl {
	color: var(--pcx-text);
}

.pcx-wind {
	color: var(--pcx-text);
}

/* ---- AQI row ----------------------------------------------------------- */

.pcx-aqi-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--pcx-border);
}

.pcx-aqi-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--pcx-navy);
}

.pcx-aqi-chip {
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.12 );
}

/* ---- Alert banner ------------------------------------------------------ */

.pcx-alert {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--pcx-orange);
	color: #fff;
	border-radius: 9px;
	padding: 8px 11px;
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.pcx-alert-icon {
	flex: 0 0 auto;
}

.pcx-alert-text {
	flex: 1 1 auto;
}

.pcx-alert-link {
	flex: 0 0 auto;
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	white-space: nowrap;
}

.pcx-alert-link:hover {
	color: var(--pcx-cream);
}

/* ---- Extra places (1.1.0) --------------------------------------------- */

.pcx-place {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--pcx-navy);
}

.pcx-points {
	list-style: none;
	margin: 10px 0 0;
	padding: 8px 0 0;
	border-top: 1px solid var(--pcx-border);
	font-size: 13px;
}

.pcx-point {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0;
	padding: 2px 0;
}

.pcx-pt-name {
	flex: 1 1 auto;
	font-weight: 700;
	color: var(--pcx-navy);
}

.pcx-pt-now {
	font-weight: 700;
	white-space: nowrap;
}

.pcx-pt-hl {
	color: #8a8175;
	font-size: 12px;
	white-space: nowrap;
}

/* ---- Forecast (1.1.0) -------------------------------------------------- */

.pcx-fc {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid var(--pcx-border);
}

.pcx-fc-toggle {
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	color: var(--pcx-orange);
}

.pcx-days {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	font-size: 13px;
}

.pcx-day {
	display: grid;
	grid-template-columns: 4.2em 1.6em 5.2em 1fr;
	align-items: baseline;
	column-gap: 6px;
	margin: 0;
	padding: 4px 0;
	border-bottom: 1px dashed var(--pcx-border);
}

.pcx-day:last-child {
	border-bottom: 0;
}

.pcx-day-name {
	font-weight: 700;
	color: var(--pcx-navy);
}

.pcx-day-hl {
	white-space: nowrap;
	color: var(--pcx-navy);
}

.pcx-day-short {
	color: var(--pcx-text);
	line-height: 1.3;
}

.pcx-day-pop {
	grid-column: 4;
	font-size: 11.5px;
	color: #2f6f9f;
}

/* ---- Misc -------------------------------------------------------------- */

.pcx-unavailable {
	font-size: 13px;
	color: #8a8175;
	padding: 6px 0;
}

.pcx-attrib {
	margin-top: 10px;
	font-size: 10px;
	color: #a49b8d;
	letter-spacing: 0.02em;
}

.pcx-stale {
	color: var(--pcx-orange);
}

@media ( max-width: 400px ) {
	.pcx-panel {
		max-width: 100%;
	}
}
