/* Theewater Weather – members' page. Everything is scoped under .tww so the
   WordPress theme and this page don't restyle each other. */

.tww {
	--tww-lake: #1f6e9e;
	--tww-burgee: #3a98d8;
	--tww-fynbos: #66bf4e;
	--tww-reed: #1e8558;
	--tww-ink: #17324a;
	--tww-text: #333333;
	--tww-site: #3798d7;
	--tww-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
	--tww-muted: #5b6b78;
	--tww-mist: #eef4f8;
	--tww-line: #d3e1ea;
	--tww-warn: #9a5b00;

	font-family: inherit;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--tww-text);
	max-width: 1100px;
	margin: 0 auto;
	/* Space below the site header image, and side margins so nothing touches the screen edge. */
	padding: clamp(1.75rem, 4vw, 3rem) clamp(1rem, 4vw, 1.5rem) clamp(2rem, 5vw, 3.5rem);
	font-variant-numeric: tabular-nums;
}
/* Nothing inside the page may push it wider than the screen. */
.tww { overflow-x: hidden; overflow-x: clip; }
.tww *, .tww *::before, .tww *::after { box-sizing: border-box; }
.tww h2, .tww h3, .tww p { margin: 0; }
.tww .tww-loading { padding: 3rem 0; color: var(--tww-muted); }

/* ---------- Hero: the current reading ---------- */
.tww .tww-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	color: #fff;
	border-radius: 18px 18px 18px 4px;
	background: linear-gradient(135deg, #16557f 0%, #1f6e9e 50%, #1a7471 100%);
	background-size: 170% 170%;
	animation: tww-drift 24s ease-in-out infinite alternate;
	box-shadow: 0 20px 40px -24px rgba(23, 50, 74, .6);
}
@keyframes tww-drift { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }

/* The lake: two slow swells along the bottom of the panel. */
.tww .tww-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.tww .tww-hero-bg::before {
	content: "";
	position: absolute;
	width: 55%;
	aspect-ratio: 1;
	right: -12%;
	top: -40%;
	background: radial-gradient(circle, rgba(58, 152, 216, .5), transparent 65%);
}
.tww .tww-wave { position: absolute; left: 0; bottom: 0; width: 200%; height: 110px; }
.tww .tww-wave-a { fill: rgba(102, 191, 78, .13); animation: tww-swell 26s linear infinite; }
.tww .tww-wave-b { fill: rgba(255, 255, 255, .06); height: 80px; animation: tww-swell 38s linear infinite reverse; }
/* Rain: fine streaks drift across the panel while the station reports rain. */
.tww .tww-hero-bg::after {
	content: "";
	position: absolute;
	inset: -40px 0 0;
	opacity: 0;
	background-image: repeating-linear-gradient(105deg, transparent 0 22px, rgba(255, 255, 255, .12) 22px 23px, transparent 23px 47px);
	background-size: 47px 60px;
	transition: opacity 1.2s ease;
}
.tww .tww-raining .tww-hero-bg::after { opacity: 1; animation: tww-rain .9s linear infinite; }
@keyframes tww-rain { from { background-position: 0 0; } to { background-position: -16px 60px; } }
@keyframes tww-swell { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.tww .tww-hero-in {
	position: relative;
	z-index: 1;
	padding: clamp(1.25rem, 3vw, 2.25rem);
	display: grid;
	grid-template-columns: minmax(200px, 320px) 1fr;
	gap: clamp(1.25rem, 4vw, 3rem);
	align-items: center;
}
.tww .tww-hero-main { min-width: 0; }
.tww .tww-dial { width: 100%; height: auto; display: block; overflow: visible; }
.tww .tww-dialwrap .tww-dial { max-width: 250px; margin: 0 auto; }

/* Wind map under the compass rose */
.tww .tww-map { margin: 1.4rem 0 0; }
.tww .tww-map-in {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .3);
	box-shadow: 0 10px 24px -14px rgba(8, 30, 48, .7);
	aspect-ratio: 824 / 762;
	background: #9bbfdd;
}
.tww .tww-map-in img,
.tww .tww-map-in canvas,
.tww .tww-map-in svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; margin: 0; max-width: none; border: 0; border-radius: 0; }
.tww .tww-map-label text {
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	font-size: 12px;
	text-anchor: middle;
	fill: #2e4f73;
	stroke: rgba(255, 255, 255, .85);
	stroke-width: 2.5px;
	paint-order: stroke;
}
.tww .tww-map-label .tww-map-clubname { font-family: var(--tww-head); font-style: normal; font-weight: 700; font-size: 28px; fill: #17324a; stroke-width: 6px; }
.tww .tww-map-ping {
	fill: none;
	stroke: #d9503f;
	stroke-width: 4;
	transform-box: fill-box;
	transform-origin: center;
	animation: tww-ping 2.4s ease-out infinite;
}
@keyframes tww-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tww .tww-map-ping { animation: none; display: none; } }
.tww .tww-map figcaption { font-size: .8rem; color: #fff; line-height: 1.35; margin-top: .45rem; }
.tww .tww-map figcaption span { display: block; font-size: .7rem; color: #fff; margin-top: .15rem; }

/* Sunrise and sunset side by side, wrapping on narrow tiles */
.tww .tww-tile strong .tww-pair { display: flex; flex-wrap: wrap; column-gap: .7em; font-size: inherit; opacity: 1; line-height: inherit; }
.tww .tww-tile strong .tww-pair span { display: inline; white-space: nowrap; font-size: inherit; opacity: 1; line-height: inherit; }

/* Credit under the reading time */
.tww .tww-foot-l { display: flex; flex-direction: column; gap: .2rem; }
.tww .tww-credit { font-size: .8rem; opacity: .85; }
.tww .tww-credit a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.tww .tww-credit a:hover { opacity: .8; }
.tww .tww-vane {
	transform-box: view-box;
	transform-origin: 100px 100px;
	transition: transform 1.4s cubic-bezier(.34, 1.4, .64, 1);
}
.tww .tww-flutter {
	transform-box: view-box;
	transform-origin: 100px 100px;
	animation: tww-flutter var(--beat, 1.6s) ease-in-out infinite alternate;
}
.tww .tww-flutter.still { animation: none; }
@keyframes tww-flutter {
	from { transform: rotate(calc(var(--flap, 3deg) * -1)); }
	to { transform: rotate(var(--flap, 3deg)); }
}
.tww .tww-ring { transition: stroke .8s ease; }
.tww .tww-pulse {
	transform-box: view-box;
	transform-origin: 100px 100px;
	animation: tww-pulse 3.2s ease-out infinite;
}
@keyframes tww-pulse {
	0% { transform: scale(1); opacity: .8; }
	100% { transform: scale(1.13); opacity: 0; }
}

.tww .tww-station { font-family: var(--tww-head); font-weight: 700; font-size: 1rem; opacity: .95; display: flex; align-items: center; }
.tww .tww-station { flex-wrap: wrap; }
.tww .tww-station-t { white-space: nowrap; }
.tww .tww-station .tww-basis { font-family: inherit; font-weight: 400; font-size: .8rem; opacity: .8; margin-left: .5em; white-space: nowrap; }
.tww .tww-live {
	width: .6rem;
	height: .6rem;
	border-radius: 50%;
	background: var(--tww-fynbos);
	margin-right: .55rem;
	animation: tww-live 2.2s ease-out infinite;
}
.tww .tww-live.off { background: #f1a043; animation: none; }
@keyframes tww-live {
	0% { box-shadow: 0 0 0 0 rgba(102, 191, 78, .75); }
	70%, 100% { box-shadow: 0 0 0 .55rem rgba(102, 191, 78, 0); }
}
.tww .tww-speed {
	font-family: var(--tww-head);
	font-weight: 700;
	font-size: clamp(3.5rem, 9vw, 6rem);
	line-height: 1;
	letter-spacing: -.03em;
	margin: .3rem 0 .5rem;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 6px 28px rgba(8, 30, 48, .3);
}
.tww .tww-speed small { font-size: .3em; letter-spacing: 0; margin-left: .3em; font-weight: 600; }
.tww .tww-chip {
	display: inline-block;
	font-family: var(--tww-head);
	font-weight: 700;
	font-size: .9em;
	line-height: 1.35;
	padding: .05rem .6rem;
	border-radius: 999px;
	text-shadow: none;
	transition: background-color .6s ease;
}
.tww .tww-force .tww-chip { font-size: .85em; margin-right: .2rem; }

/* Wind bar: average (dot) and gust (tick) on the club's wind colour scale. */
.tww .tww-gauge { position: relative; max-width: 460px; margin: 1.2rem 0 .1rem; padding-top: 6px; }
.tww .tww-gauge-track { height: 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.tww .tww-gauge-band,
.tww .tww-gauge-wind,
.tww .tww-gauge-gust { position: absolute; transition: left 1.2s cubic-bezier(.34, 1.3, .64, 1), width 1.2s cubic-bezier(.34, 1.3, .64, 1), border-color .6s ease; }
.tww .tww-gauge-band { top: 6px; height: 10px; background: rgba(255, 255, 255, .35); border-radius: 999px; }
.tww .tww-gauge-gust { top: 1px; width: 3px; height: 20px; margin-left: -1.5px; background: #fff; border-radius: 2px; }
.tww .tww-gauge-wind {
	top: 0;
	width: 22px;
	height: 22px;
	margin-left: -11px;
	border-radius: 50%;
	background: #fff;
	border: 5px solid var(--c, #fff);
	box-shadow: 0 2px 10px rgba(8, 30, 48, .35);
}
.tww .tww-gauge-scale { position: relative; height: 1.1rem; margin-top: .45rem; font-size: .75rem; opacity: .8; }
.tww .tww-gauge-scale span { position: absolute; transform: translateX(-50%); }
.tww .tww-gauge-scale span:first-child { transform: none; }
.tww .tww-gauge-scale em { position: absolute; right: 0; font-style: normal; }

.tww .tww-next {
	margin-top: 1rem;
	display: block;
	max-width: 42rem;
	background: rgba(255, 255, 255, .12);
	border-left: 3px solid var(--tww-fynbos);
	border-radius: 4px 10px 10px 4px;
	padding: .5rem .85rem;
	font-size: 1rem;
}
.tww .tww-next span { font-family: var(--tww-head); font-weight: 700; font-size: .85rem; margin-right: .35rem; }
.tww .tww-next em { font-style: normal; opacity: .75; font-size: .88rem; }
.tww .tww-ago { opacity: .75; }
.tww .tww-hero-loading { grid-column: 1 / -1; display: grid; gap: .8rem; min-height: 280px; align-content: center; }
.tww .tww-hero-loading span { display: block; height: 1.2rem; border-radius: 6px; background: rgba(255, 255, 255, .15); }
.tww .tww-hero-loading span:first-child { height: 4.5rem; width: 40%; }
.tww .tww-hero-loading span:last-child { width: 70%; }

/* Jump links */
.tww .tww-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; }
.tww .tww-jump a {
	font-family: var(--tww-head);
	font-weight: 700;
	font-size: .85rem;
	color: var(--tww-site);
	text-decoration: none;
	border: 2px solid var(--tww-site);
	border-radius: 50px;
	padding: .45rem 1.1rem;
}
.tww .tww-jump a:hover { background: var(--tww-site); color: #fff; }
.tww .tww-section { scroll-margin-top: 140px; }
.tww .tww-gust { font-size: 1.3rem; }
.tww .tww-force { font-size: 1.05rem; margin-top: .35rem; }
/* Tiles size themselves in rem, so a phone set to large text gets fewer,
   wider tiles instead of clipped numbers. */
.tww .tww-extras {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr));
	gap: .6rem;
	margin-top: 1.4rem;
}
.tww .tww-tile {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	align-content: start;
	column-gap: .5rem;
	row-gap: .2rem;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 12px;
	padding: .6rem .75rem .65rem;
	min-width: 0;
}
.tww .tww-tile > div { display: contents; }
.tww .tww-tile i {
	width: 26px;
	height: 26px;
	border-radius: 8px;
	display: grid;
	place-items: center;
	color: var(--c);
	background: rgba(255, 255, 255, .12);
	background: color-mix(in srgb, var(--c) 24%, transparent);
}
.tww .tww-tile svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tww .tww-tile span { display: block; font-size: .8rem; opacity: .85; line-height: 1.2; overflow-wrap: anywhere; }
.tww .tww-tile strong { grid-column: 1 / -1; display: block; font-size: 1.2rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.tww .tww-hero-foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: .75rem;
	margin-top: 1.25rem;
	font-size: .9rem;
}
.tww .tww-stale { background: #fff3d6; color: var(--tww-warn); padding: .15rem .6rem; border-radius: 4px; }

/* ---------- Segmented controls ---------- */
.tww .tww-seg {
	display: inline-flex;
	flex-wrap: wrap;
	border: 1px solid var(--tww-line);
	border-radius: 999px;
	padding: 3px;
	background: #fff;
	gap: 2px;
}
.tww .tww-hero .tww-seg { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); flex-wrap: nowrap; }
.tww .tww-seg button {
	appearance: none;
	border: 0;
	margin: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: .92rem;
	line-height: 1.2;
	padding: .4rem .9rem;
	border-radius: 999px;
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
}
.tww .tww-seg button[aria-pressed="true"] { background: var(--tww-site); color: #fff; font-weight: 700; }
.tww .tww-hero .tww-seg button[aria-pressed="true"] { background: #fff; color: var(--tww-lake); }
.tww .tww-seg button:hover:not([aria-pressed="true"]) { background: var(--tww-mist); }
.tww .tww-hero .tww-seg button:hover:not([aria-pressed="true"]) { background: rgba(255, 255, 255, .18); }
.tww button:focus-visible, .tww select:focus-visible {
	outline: 2px solid var(--tww-burgee);
	outline-offset: 2px;
}
.tww .tww-hero button:focus-visible { outline-color: #fff; }

.tww select {
	font: inherit;
	font-size: .92rem;
	color: var(--tww-ink);
	padding: .4rem 2rem .4rem .8rem;
	border: 1px solid var(--tww-line);
	border-radius: 999px;
	background: #fff;
	max-width: 100%;
}

/* ---------- Sections ---------- */
.tww .tww-section { margin-top: 3.25rem; }
.tww .tww-section h2 {
	font-family: var(--tww-head);
	font-weight: 700;
	font-size: clamp(1.45rem, 2.8vw, 1.9rem);
	line-height: 1.2;
	letter-spacing: -.01em;
	color: var(--tww-text);
}
.tww .tww-intro { color: var(--tww-muted); max-width: 64ch; margin-top: .4rem; }
.tww .tww-controls {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1rem;
	align-items: center;
	margin: 1.25rem 0 1rem;
}
.tww .tww-controls label { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--tww-muted); }
.tww .tww-chart { position: relative; height: 320px; }
.tww .tww-chart.tww-short { height: 190px; margin-top: .5rem; }
.tww .tww-note { font-size: .88rem; color: var(--tww-muted); margin-top: .75rem; max-width: 72ch; }
.tww .tww-error {
	border-left: 3px solid var(--tww-warn);
	background: #fff8ea;
	padding: .75rem 1rem;
	color: var(--tww-ink);
}
.tww .tww-empty { color: var(--tww-muted); padding: 2rem 0; }

/* Legend keyed to the chart lines */
.tww .tww-key { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .88rem; color: var(--tww-muted); margin-bottom: .5rem; }
.tww .tww-key i { display: inline-block; width: 22px; height: 0; border-top: 2px solid; vertical-align: middle; margin-right: .4rem; }
.tww .tww-key i.dash { border-top-style: dashed; }
.tww .tww-key i.dot { width: 8px; height: 8px; border: 0; border-radius: 50%; }

/* ---------- Forecast hourly strip ---------- */
.tww .tww-strip-wrap { display: flex; margin-top: 1.25rem; border-top: 1px solid var(--tww-line); border-bottom: 1px solid var(--tww-line); }
.tww .tww-strip-labels {
	flex: 0 0 auto; display: flex; flex-direction: column; padding: .6rem .6rem .6rem 0;
	font-size: .8rem; color: var(--tww-muted); text-align: right;
}
.tww .tww-strip-labels span { height: 1.3rem; line-height: 1.3rem; }
.tww .tww-strip-labels span:nth-child(3) { height: 2.65rem; line-height: 2.65rem; }
.tww .tww-strip-labels span:nth-child(4) { height: 2.1rem; line-height: 2.1rem; margin-top: .2rem; }
.tww .tww-strip-labels span:nth-child(5),
.tww .tww-strip-labels span:nth-child(6) { height: 1.7rem; line-height: 1.7rem; margin-top: .2rem; }
.tww .tww-strip-labels span:nth-child(7),
.tww .tww-strip-labels span:nth-child(10) { height: 1.3rem; line-height: 1.3rem; margin-top: .2rem; }
.tww .tww-strip-labels span:nth-child(8) { height: 2.4rem; line-height: 2.4rem; margin-top: .2rem; }
.tww .tww-strip-labels span:nth-child(9) { height: 1.7rem; line-height: 1.7rem; margin-top: .2rem; }
.tww .tww-strip .sky { display: block; height: 2.4rem; margin-top: .2rem; }
.tww .tww-strip .sky svg { width: 1.4rem; height: 1.4rem; margin: 0 auto; }
.tww .tww-strip .sky small { display: block; font-size: .72rem; color: var(--tww-muted); height: 1rem; line-height: 1rem; }
.tww .tww-strip {
	display: flex;
	overflow-x: auto;
	flex: 1;
	scrollbar-width: thin;
}
.tww .tww-strip:focus-visible { outline: 2px solid var(--tww-burgee); outline-offset: 2px; }
.tww .tww-strip > div {
	flex: 0 0 60px;
	text-align: center;
	padding: .6rem 3px;
	font-size: .85rem;
}
.tww .tww-strip time { display: block; height: 1.3rem; line-height: 1.3rem; color: var(--tww-muted); }
.tww .tww-strip time.day { color: var(--tww-text); font-family: var(--tww-head); font-weight: 700; font-size: .8rem; }
.tww .tww-strip svg { width: 1.4rem; height: 1.4rem; margin: .25rem auto 0; display: block; }
.tww .tww-strip .pt { display: block; font-size: .72rem; color: var(--tww-muted); height: 1rem; line-height: 1rem; }
.tww .tww-strip .tile { display: block; border-radius: 6px; margin-top: .2rem; }
.tww .tww-strip strong.tile { font-family: var(--tww-head); font-weight: 700; font-size: 1.05rem; height: 2.1rem; line-height: 2.1rem; }
.tww .tww-strip span.tile { font-size: .85rem; height: 1.7rem; line-height: 1.7rem; }
.tww .tww-strip .pres { display: block; font-size: .78rem; color: var(--tww-muted); height: 1.3rem; line-height: 1.3rem; margin-top: .2rem; }
.tww .tww-chart.tww-mid { height: 240px; }
.tww .tww-scale { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; margin-top: .75rem; font-size: .75rem; }
.tww .tww-scale span { padding: .15rem .5rem; border-radius: 4px; }
.tww .tww-scale em { font-style: normal; color: var(--tww-muted); margin-left: .4rem; }

/* ---------- Accuracy results ---------- */
.tww .tww-results {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 1.5rem 0 1.75rem;
}
.tww .tww-result { border-left: 3px solid var(--tww-lake); padding: .1rem 0 .1rem 1rem; }
.tww .tww-result.gust { border-left-color: var(--tww-burgee); }
.tww .tww-result.dir { border-left-color: var(--tww-reed); }
.tww .tww-result.rain { border-left-color: #2f7fc1; }
.tww .tww-rain-head { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--tww-line); }
.tww .tww-rain-total { margin: 0 0 .5rem; color: var(--tww-muted); }
.tww .tww-rain-total strong { font-family: var(--tww-head); font-size: 1.5rem; color: var(--tww-text); margin-right: .25rem; }
.tww .tww-result h3 { font-family: var(--tww-head); font-size: .95rem; font-weight: 700; color: var(--tww-text); }
.tww .tww-result .big {
	font-family: var(--tww-head);
	font-weight: 700;
	font-size: 2.1rem;
	line-height: 1.1;
	margin: .2rem 0;
}
.tww .tww-result p { color: var(--tww-muted); font-size: .95rem; }

.tww .tww-subhead { font-family: var(--tww-head); font-size: 1.05rem; font-weight: 700; color: var(--tww-text); margin: 2.25rem 0 .5rem; }
.tww .tww-waiting { background: var(--tww-mist); border-radius: 12px; padding: 1.25rem 1.5rem; max-width: 70ch; display: grid; gap: .9rem; }
.tww .tww-btn {
	appearance: none; border: 0; cursor: pointer;
	font-family: var(--tww-head); font-weight: 700; font-size: .9rem;
	background: var(--tww-site); color: #fff; border-radius: 50px; padding: .6rem 1.3rem;
}
.tww .tww-btn:hover { filter: brightness(.95); }
.tww .tww-table-wrap { overflow-x: auto; }
.tww table.tww-table { border-collapse: collapse; width: 100%; min-width: 440px; font-size: .95rem; margin: 0; }
.tww .tww-table th, .tww .tww-table td {
	padding: .55rem .75rem;
	text-align: right;
	border: 0;
	border-bottom: 1px solid var(--tww-line);
	background: transparent;
}
.tww .tww-table th:first-child, .tww .tww-table td:first-child { text-align: left; }
.tww .tww-table thead th { font-weight: 600; color: var(--tww-muted); font-size: .88rem; }
.tww .tww-table td.best { color: var(--tww-reed); font-weight: 600; }
.tww .tww-table tr.sel td { background: var(--tww-mist); }
.tww .tww-dirtable td:first-child { white-space: nowrap; font-weight: 600; }
.tww .tww-dirtable td svg { width: 18px; height: 18px; vertical-align: -4px; margin-right: .35rem; }
.tww .tww-dirtable tr.worst td { color: var(--tww-lake); background: var(--tww-mist); font-weight: 600; }
.tww .tww-dirtable tr.worst td:first-child { box-shadow: inset 3px 0 0 var(--tww-lake); }
.tww .tww-few { font-size: .8rem; color: var(--tww-muted); }

@media (max-width: 760px) {
	.tww {
		padding-left: max(1rem, env(safe-area-inset-left));
		padding-right: max(1rem, env(safe-area-inset-right));
	}
	.tww .tww-hero-in { grid-template-columns: 1fr; }
	.tww .tww-dial { max-width: 200px; margin: 0 auto; }
	.tww .tww-dialwrap .tww-dial { max-width: 200px; }
	.tww .tww-map { max-width: 460px; margin-left: auto; margin-right: auto; }
	.tww .tww-gauge { max-width: none; }
	.tww .tww-chart.tww-mid { height: 210px; }
	.tww .tww-results { grid-template-columns: 1fr; }
	.tww .tww-chart { height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
	.tww .tww-hero,
	.tww .tww-wave,
	.tww .tww-flutter,
	.tww .tww-pulse,
	.tww .tww-live,
	.tww .tww-raining .tww-hero-bg::after { animation: none; }
	.tww .tww-pulse { display: none; }
	.tww .tww-vane,
	.tww .tww-ring,
	.tww .tww-chip,
	.tww .tww-gauge-band,
	.tww .tww-gauge-wind,
	.tww .tww-gauge-gust { transition: none; }
}

/* ---------- Safety alerts in the hero ---------- */
.tww .tww-alerts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: -.25rem; }
.tww .tww-alert {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	margin: 0;
	padding: .4rem .85rem .4rem .6rem;
	border-radius: 999px;
	font-family: var(--tww-head);
	font-weight: 700;
	font-size: .88rem;
	line-height: 1.3;
}
.tww .tww-alert svg { width: 1.1rem; height: 1.1rem; flex: none; }
.tww .tww-alert.warn { background: #f7c35c; color: #3a2600; }
.tww .tww-alert.danger { background: #d9503f; color: #fff; }

/* Pressure trend under the tile value */
.tww .tww-tile em { grid-column: 1 / -1; display: block; font-style: normal; font-size: .78rem; opacity: .85; line-height: 1.2; overflow-wrap: anywhere; }

/* ---------- On the water ---------- */
.tww .tww-out-basis { color: var(--tww-muted); margin: 0 0 1.1rem; max-width: 70ch; }
.tww .tww-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.tww .tww-act {
	border: 1px solid var(--tww-line);
	border-top: 4px solid var(--tww-line);
	border-radius: 12px;
	padding: .9rem 1rem 1rem;
	background: #fff;
	min-width: 0;
}
.tww .tww-act.lvl-good { border-top-color: #66bf4e; }
.tww .tww-act.lvl-fair { border-top-color: #f1c24b; }
.tww .tww-act.lvl-poor { border-top-color: #e0674f; }
.tww .tww-act-head { display: flex; align-items: center; gap: .7rem; }
.tww .tww-act-head > div { flex: 1; min-width: 0; }
.tww .tww-act h3 { margin: 0; font-family: var(--tww-head); font-size: 1.02rem; line-height: 1.25; }
.tww .tww-act small { color: var(--tww-muted); font-size: .8rem; }
.tww .tww-act-icon {
	flex: 0 0 38px;
	height: 38px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: #eaf3fa;
	color: var(--tww-lake);
}
.tww .tww-act-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tww .tww-pill {
	flex: none;
	font-family: var(--tww-head);
	font-weight: 700;
	font-size: .78rem;
	padding: .2rem .6rem;
	border-radius: 999px;
	white-space: nowrap;
}
.tww .tww-pill.good { background: #e1f3da; color: #1d6a2c; }
.tww .tww-pill.fair { background: #fcefc7; color: #6f5200; }
.tww .tww-pill.poor { background: #fbdfd9; color: #992a17; }
.tww .tww-pill.none { background: #eef2f5; color: var(--tww-muted); }
.tww .tww-why { margin: .6rem 0 .75rem; font-size: .95rem; }
.tww .tww-dark { display: inline-block; font-size: .75rem; background: #2c3e50; color: #fff; border-radius: 4px; padding: 0 .4rem; margin-left: .25rem; vertical-align: .1em; }
.tww .tww-ribbon { display: flex; gap: 1px; height: 12px; border-radius: 4px; overflow: hidden; }
.tww .tww-ribbon i, .tww .tww-out-key i { flex: 1; display: block; }
.tww .tww-ribbon i.good, .tww .tww-out-key i.good { background: #66bf4e; }
.tww .tww-ribbon i.fair, .tww .tww-out-key i.fair { background: #f1c24b; }
.tww .tww-ribbon i.poor, .tww .tww-out-key i.poor { background: #e0674f; }
.tww .tww-ribbon i.night, .tww .tww-out-key i.night { background: repeating-linear-gradient(135deg, #d5dde5 0 3px, #e7ecf1 3px 6px); }
.tww .tww-ribbon i.none { background: #eef2f5; }
.tww .tww-ribbon-days { position: relative; height: 1.1rem; margin-top: .25rem; font-size: .72rem; color: var(--tww-muted); }
.tww .tww-ribbon-days span { position: absolute; top: 0; white-space: nowrap; padding-left: 2px; border-left: 1px solid var(--tww-line); }
.tww .tww-ribbon-days span:first-child { border-left: 0; padding-left: 0; }
.tww .tww-ribbon-days span.end { border-left: 0; padding-left: 0; border-right: 1px solid var(--tww-line); padding-right: 2px; }
.tww .tww-best { margin: .45rem 0 0; font-size: .9rem; color: var(--tww-muted); }
.tww .tww-best strong { color: var(--tww-text); }
.tww .tww-out-key { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0 0; font-size: .82rem; color: var(--tww-muted); }
.tww .tww-out-key span { display: inline-flex; align-items: center; gap: .35rem; }
.tww .tww-out-key i { flex: none; width: 14px; height: 10px; border-radius: 2px; }

/* Forecast: how the model has compared with the station lately */
.tww .tww-localcheck {
	margin: 0 0 1rem;
	padding: .65rem .85rem;
	background: #fff7e6;
	border-left: 3px solid #f1a043;
	border-radius: 4px 8px 8px 4px;
	font-size: .92rem;
	max-width: 75ch;
}
.tww .tww-btn-small { font-size: .8rem; padding: .3rem .7rem; }

@media (max-width: 760px) {
	.tww .tww-acts { grid-template-columns: 1fr; }
}

/* ---------- The week ahead ---------- */
.tww .tww-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tww .tww-week { list-style: none; margin: 0; padding: 0; border: 1px solid var(--tww-line); border-radius: 12px; background: #fff; overflow: hidden; }
.tww .tww-day {
	display: grid;
	grid-template-columns: 6.2rem 2.4rem minmax(11rem, 1.6fr) minmax(6rem, 1fr) minmax(6.5rem, 1fr) auto 8.5rem;
	align-items: center;
	gap: .5rem 1rem;
	padding: .75rem 1rem;
	border-top: 1px solid var(--tww-line);
}
.tww .tww-day:first-child { border-top: 0; }
/* Weekends, when most members are on the water, stand out a little. */
.tww .tww-day.weekend { background: #f5f9fc; box-shadow: inset 3px 0 0 var(--tww-site); }
.tww .tww-day-name strong { display: block; font-family: var(--tww-head); font-size: 1rem; color: var(--tww-ink); line-height: 1.2; }
.tww .tww-day-name span { font-size: .8rem; color: var(--tww-muted); }
.tww .tww-day-sky svg { width: 2.1rem; height: 2.1rem; display: block; }
.tww .tww-day-wind { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.tww .tww-day-arrow { flex: none; width: 1.7rem; height: 1.7rem; }
.tww .tww-day-arrow svg { width: 100%; height: 100%; display: block; }
.tww .tww-day-wind .tww-chip { font-size: .95rem; }
.tww .tww-day small { display: block; font-size: .8rem; color: var(--tww-muted); line-height: 1.3; }
.tww .tww-day-rain span, .tww .tww-day-temp > span:first-child { font-weight: 600; color: var(--tww-ink); }
.tww .tww-day-storm { display: inline-flex; align-items: center; gap: .2rem; margin-top: .2rem; font-size: .75rem; font-weight: 700; color: #fff; background: #d9503f; border-radius: 4px; padding: .05rem .4rem .05rem .25rem; }
.tww .tww-day-storm.maybe { background: #f7c35c; color: #3a2600; }
.tww .tww-day-storm svg { width: .85rem; height: .85rem; }
.tww .tww-day-temp { display: flex; flex-direction: column; align-items: flex-start; }
.tww .tww-day-acts { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; }
.tww .tww-day-acts li { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: #e9eef2; color: #93a2af; }
.tww .tww-day-acts li.good { background: #66bf4e; color: #fff; }
.tww .tww-day-acts li.fair { background: #f1c24b; color: #3a2600; }
.tww .tww-day-acts svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tww .tww-day-conf { font-size: .8rem; color: var(--tww-muted); display: flex; align-items: center; gap: .35rem; }
.tww .tww-day-conf::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--tww-line); }
.tww .tww-day-conf:empty::before { display: none; }
.tww .tww-day-conf.hi::before { background: #66bf4e; }
.tww .tww-day-conf.mid::before { background: #f1c24b; }
.tww .tww-day-conf.lo::before { background: #e0674f; }
.tww .tww-week-key { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; margin-top: .85rem; font-size: .8rem; color: var(--tww-muted); }
.tww .tww-week-acts { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.tww .tww-week-acts span { display: inline-flex; align-items: center; gap: .3rem; }
.tww .tww-week-acts svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tww .tww-week-key .tww-out-key { margin: 0; }
.tww .tww-week-key .tww-out-key i.dim { background: #e9eef2; border: 1px solid #d3dce3; }
.tww .tww-day-conf { white-space: nowrap; }

@media (max-width: 1000px) {
	.tww .tww-day {
		grid-template-columns: 6rem 2.4rem minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
		grid-template-areas: "name sky wind rain temp" "acts acts acts acts conf";
	}
	.tww .tww-day-name { grid-area: name; }
	.tww .tww-day-sky { grid-area: sky; }
	.tww .tww-day-wind { grid-area: wind; }
	.tww .tww-day-rain { grid-area: rain; }
	.tww .tww-day-temp { grid-area: temp; }
	.tww .tww-day-acts { grid-area: acts; }
	.tww .tww-day-conf { grid-area: conf; justify-content: flex-end; }
}
@media (max-width: 640px) {
	.tww .tww-day {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "name sky" "wind wind" "rain temp" "acts conf";
		gap: .45rem .75rem;
		padding: .8rem .85rem;
	}
	.tww .tww-day-name { display: flex; align-items: baseline; gap: .5rem; }
	.tww .tww-day-temp { align-items: flex-end; text-align: right; }
	.tww .tww-day-rain span, .tww .tww-day-temp > span:first-child { font-weight: 600; }
	.tww .tww-day-rain { display: flex; gap: .4rem; align-items: baseline; flex-wrap: wrap; }
	.tww .tww-day-rain small { display: inline; }
}

/* On the club site's weather page: a pointer to the installable app, phones only. */
.tww-getapp { display: none; }
@media (max-width: 760px) {
	.tww-getapp {
		display: block;
		max-width: 1100px;
		margin: 1rem 1rem 0;
		padding: .7rem .9rem;
		border-radius: 12px;
		background: #eef4f8;
		border: 1px solid #d3e1ea;
		color: #17324a;
		font-size: .95rem;
		line-height: 1.45;
	}
	.tww-getapp a { color: #1f6e9e; }
}
