/* Theewater Weather – the page on its own at weather.theewater.co.za. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.tww-standalone {
	margin: 0;
	background: #ffffff;
	color: #333333;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
.tww-standalone img { max-width: 100%; }

.tww-top {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: calc(.55rem + env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) .55rem max(1rem, env(safe-area-inset-left));
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid #d3e1ea;
}
.tww-top-logo { display: block; line-height: 0; }
.tww-top-logo img { height: 40px; width: auto; }
.tww-top-title {
	font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
	font-weight: 700;
	font-size: 1.15rem;
	color: #17324a;
	padding-left: .75rem;
	border-left: 2px solid #d3e1ea;
}
.tww-top-site {
	margin-left: auto;
	font-size: .85rem;
	color: #1f6e9e;
	text-decoration: none;
	white-space: nowrap;
}
.tww-top-site:hover { text-decoration: underline; }
.tww-install {
	margin-left: auto;
	font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
	font-weight: 700;
	font-size: .8rem;
	color: #fff;
	background: #3798d7;
	border: 0;
	border-radius: 50px;
	padding: .45rem .9rem;
	cursor: pointer;
}
.tww-install:hover { background: #1f6e9e; }
.tww-install:not([hidden]) + .tww-top-site { margin-left: 0; }
@media (max-width: 480px) {
	.tww-top-logo img { height: 34px; }
	.tww-top-title { font-size: 1rem; padding-left: .6rem; }
	.tww-install:not([hidden]) + .tww-top-site { display: none; }
}
/* Opened from the home screen: the logo still links back to the club site. */
@media (display-mode: standalone) {
	.tww-top-site, .tww-install { display: none; }
}

.tww-ios-tip {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	margin: .75rem max(1rem, env(safe-area-inset-left)) 0;
	padding: .7rem .9rem;
	border-radius: 12px;
	background: #eef4f8;
	border: 1px solid #d3e1ea;
	color: #17324a;
	font-size: .9rem;
	line-height: 1.4;
}
.tww-ios-tip[hidden] { display: none; }
.tww-ios-tip p { margin: 0; flex: 1; }
.tww-ios-tip button { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: #5b6b78; cursor: pointer; padding: 0 .2rem; }

/* No site header image above the panel here. */
.tww-standalone .tww {
	padding-top: 1rem;
	padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}
.tww-standalone .tww .tww-section { scroll-margin-top: 76px; }
