/* Pumpkintown SC Waterfall Flow, matched to the site's green and amber palette */
.ptsc-wf {
	--wf-ink: #29352d;
	--wf-mute: #5f6b63;
	--wf-line: #dfe7dc;
	--wf-water: #2a6f86;
	--wf-water-l: #e8f2f5;
	margin: 28px 0;
	background: #fff;
	border: 1px solid var(--wf-line);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(22, 48, 31, .08);
	overflow: hidden;
	color: var(--wf-ink);
	font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.ptsc-wf * { box-sizing: border-box; }
.ptsc-wf-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	background: linear-gradient(135deg, #203c29 0%, #24515a 100%);
	color: #fff;
}
.ptsc-wf-title {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font: 700 18px/1.2 Georgia, "Times New Roman", serif;
}
.ptsc-wf-drop {
	width: 12px;
	height: 12px;
	background: #7cc6dc;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	animation: ptscWfDrip 2.4s ease-in-out infinite;
}
@keyframes ptscWfDrip { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.ptsc-wf-updated { font-size: 12px; color: #cfdccb; white-space: nowrap; }

.ptsc-wf-scale {
	display: flex;
	justify-content: space-between;
	padding: 10px 18px 0;
	font: 700 10px/1 system-ui, sans-serif;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--wf-mute);
}
.ptsc-wf-list { list-style: none; margin: 0; padding: 4px 18px 6px; }
.ptsc-wf-row { padding: 12px 0 14px; border-bottom: 1px dashed var(--wf-line); margin: 0; }
.ptsc-wf-row:last-child { border-bottom: 0; }
.ptsc-wf-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ptsc-wf-name { font: 700 17px/1.3 Georgia, "Times New Roman", serif; color: #203c29; }
.ptsc-wf-badge {
	flex: 0 0 auto;
	padding: 4px 11px;
	border-radius: 999px;
	font: 700 12px/1.2 system-ui, sans-serif;
	letter-spacing: .04em;
	text-transform: uppercase;
	background: var(--wf-water-l);
	color: var(--wf-water);
}

/* Meter: a gradient from dry to high, with the normal band marked */
.ptsc-wf-meter {
	position: relative;
	display: block;
	height: 8px;
	margin: 10px 0 8px;
	border-radius: 999px;
	background: linear-gradient(90deg, #d9b98a 0%, #e9dcc3 18%, #cfe3ea 30%, #8cc3d6 60%, #3f8fae 82%, #1f5e78 94%, #b8412e 100%);
}
.ptsc-wf-band {
	position: absolute;
	left: 25%;
	width: 50%;
	top: -3px;
	bottom: -3px;
	border-left: 1px solid rgba(32, 60, 41, .35);
	border-right: 1px solid rgba(32, 60, 41, .35);
}
.ptsc-wf-mark {
	position: absolute;
	top: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid #203c29;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.ptsc-wf-tip { margin: 0 0 2px; font-size: 15px; }
.ptsc-wf-detail { margin: 0; font-size: 12.5px; color: var(--wf-mute); }

/* Levels */
.ptsc-wf-trickle .ptsc-wf-badge, .ptsc-wf-low .ptsc-wf-badge { background: #f6eedf; color: #8a5a1c; }
.ptsc-wf-normal .ptsc-wf-badge { background: #eef3ec; color: #245c36; }
.ptsc-wf-strong .ptsc-wf-badge { background: #e3f0f5; color: #1f5e78; }
.ptsc-wf-roaring .ptsc-wf-badge { background: #1f5e78; color: #fff; }
.ptsc-wf-flood .ptsc-wf-badge { background: #b8412e; color: #fff; }
.ptsc-wf-flood .ptsc-wf-tip { color: #8d2f20; font-weight: 600; }

.ptsc-wf-alert, .ptsc-wf-note {
	margin: 0 18px 12px;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 14px;
}
.ptsc-wf-alert { background: #fbeae6; color: #8d2f20; border: 1px solid #f0c7bd; font-weight: 600; }
.ptsc-wf-note { background: #e8f2f5; color: #1f5e78; border: 1px solid #cbe2ea; }
.ptsc-wf-src {
	margin: 0;
	padding: 10px 18px 14px;
	font-size: 12px;
	color: var(--wf-mute);
	background: #f6f8f4;
	border-top: 1px solid var(--wf-line);
}

@media (max-width: 600px) {
	.ptsc-wf { margin: 22px 0; border-radius: 14px; }
	.ptsc-wf-top { padding: 12px 14px; }
	.ptsc-wf-title { font-size: 16px; }
	.ptsc-wf-list { padding: 2px 14px 4px; }
	.ptsc-wf-scale { padding: 8px 14px 0; }
	.ptsc-wf-row { padding: 9px 0 10px; }
	.ptsc-wf-name { font-size: 15.5px; }
	.ptsc-wf-badge { font-size: 11px; padding: 3px 9px; }
	.ptsc-wf-meter { margin: 8px 0 6px; height: 7px; }
	.ptsc-wf-tip { font-size: 13.5px; line-height: 1.4; }
	.ptsc-wf-detail { font-size: 11.5px; line-height: 1.4; }
	.ptsc-wf-scale { font-size: 9px; }
	.ptsc-wf-alert, .ptsc-wf-note { font-size: 13px; padding: 8px 12px; }
	.ptsc-wf-src { font-size: 11px; }
	.ptsc-wf-alert, .ptsc-wf-note { margin: 0 14px 10px; }
	.ptsc-wf-src { padding: 10px 14px 12px; }
}
@media (prefers-reduced-motion: reduce) { .ptsc-wf-drop { animation: none; } }

/* v1.1: regional summary and waterfall picker */
.ptsc-wf-summary { padding: 14px 18px 4px; }
.ptsc-wf-kicker {
	margin: 0 0 8px;
	font: 700 10px/1 system-ui, sans-serif;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #b86a1e;
}
.ptsc-wf-summary ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 8px;
}
.ptsc-wf-region {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 2px 8px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--wf-line);
	border-radius: 12px;
	background: #fbfcfa;
}
.ptsc-wf-region-name { font: 700 14px/1.25 Georgia, "Times New Roman", serif; color: #203c29; }
.ptsc-wf-region .ptsc-wf-badge { font-size: 10.5px; padding: 3px 8px; }
.ptsc-wf-region-sub { grid-column: 1 / -1; font-size: 12px; color: var(--wf-mute); }
.ptsc-wf-pick-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 12px 18px 0;
	padding-top: 12px;
	border-top: 1px dashed var(--wf-line);
	font: 700 13px/1.2 system-ui, sans-serif;
	color: #203c29;
}
.ptsc-wf-pick {
	flex: 1 1 220px;
	min-height: 44px;
	padding: 8px 12px;
	font: 500 16px/1.2 system-ui, sans-serif; /* 16px stops iOS zooming */
	color: #203c29;
	background: #fff;
	border: 1px solid #c9d8c4;
	border-radius: 10px;
}
.ptsc-wf-pick:focus { outline: 2px solid #d9822b; outline-offset: 1px; }
.ptsc-wf-row[hidden] { display: none; }
.ptsc-wf-none .ptsc-wf-badge, .ptsc-wf-unknown .ptsc-wf-badge { background: #eef0ee; color: #5f6b63; }
.ptsc-wf-region.ptsc-wf-trickle .ptsc-wf-badge, .ptsc-wf-region.ptsc-wf-low .ptsc-wf-badge { background: #f6eedf; color: #8a5a1c; }
@media (max-width: 600px) {
	.ptsc-wf-summary { padding: 12px 14px 2px; }
	.ptsc-wf-summary ul { grid-template-columns: 1fr; gap: 6px; }
	.ptsc-wf-region { padding: 8px 10px; }
	.ptsc-wf-pick-wrap { margin: 10px 14px 0; }
}

.ptsc-wf-hub .ptsc-wf-row { border-bottom: 0; }
