/**
 * TownGathering Core: front-end styles for the plugin's screens.
 * Mobile first; contrast AA (every text/background and button pair is listed
 * in the 1.0.2 NOTE); touch targets at least 44px; visible focus; no
 * horizontal scroll at 390px.
 *
 * Colours (1.0.3, TODO 4 §2.5: blues and greens, more blue; no browns
 * outside the images): ink #1C2430, navy #123A6B, dark blue #163F78,
 * blue #1E5AA8, sky #5EC4EA, pale sky #EAF7FD, dark grass #24520F,
 * green #2E6B12, grass #6CA11C (decoration only), mint #E8F5DF,
 * muted #4A5560; red #C4161C / dark red #9C1016 only where it means
 * something (errors, report, the test-mode banner).
 * Sizes (1.0.3): one type scale (16px body; 0.875 / 1 / 1.125 / 1.375 /
 * 1.75rem), one spacing scale (--tg-s1..s6 = 0.25 / 0.5 / 0.75 / 1 / 1.5 /
 * 2rem), one button system (primary, secondary, small) with one height each
 * (--tg-ctl 40px, --tg-ctl-sm 32px; both 44px on phones and touch screens). The display font (Fredoka) is bundled by the theme; without
 * the theme the fallbacks are used.
 */

:root {
	--tg-ink: #1C2430;
	--tg-sky: #5EC4EA;
	--tg-sky-pale: #EAF7FD;
	--tg-blue: #1E5AA8;
	--tg-blue-dark: #163F78;
	--tg-navy: #123A6B;
	--tg-mint: #E8F5DF;
	--tg-grass: #6CA11C;
	--tg-green: #2E6B12;
	--tg-grass-dark: #24520F;
	--tg-red: #C4161C;
	--tg-red-dark: #9C1016;
	--tg-muted: #4A5560;
	--tg-paper: #ffffff;
	--tg-line: #c4dbe8;
	--tg-ok-bg: #e8f5df;
	--tg-ok-ink: #24520F;
	--tg-err-bg: #fdecec;
	--tg-err-ink: #9C1016;
	--tg-radius: 10px;
	--tg-gap: 0.75rem;
	--tg-s1: 0.25rem;
	--tg-s2: 0.5rem;
	--tg-s3: 0.75rem;
	--tg-s4: 1rem;
	--tg-s5: 1.5rem;
	--tg-s6: 2rem;
	--tg-ctl: 40px;
	--tg-ctl-sm: 32px;
	--tg-font-display: Fredoka, "Trebuchet MS", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Phones and touch screens: every control at least 44 x 44 px. */
@media (max-width: 47.99rem), (pointer: coarse) {
	:root {
		--tg-ctl: 44px;
		--tg-ctl-sm: 44px;
	}
}

/* ---------- Base ---------- */

.tg-screen,
.tg-screen * {
	box-sizing: border-box;
}

.tg-screen {
	color: var(--tg-ink);
	font-size: 1rem;
	line-height: 1.5;
	max-width: 100%;
	overflow-wrap: anywhere;
}

/* Inside the theme's constrained layout, line up with the page title. */
.is-layout-constrained > .tg-screen {
	max-width: var(--wp--style--global--content-size, 100%);
}

.tg-screen h1,
.tg-screen h2,
.tg-screen h3 {
	font-family: var(--tg-font-display);
	font-weight: 700;
	color: var(--tg-blue-dark);
	line-height: 1.25;
	margin: var(--tg-s4) 0 var(--tg-s2);
}

.tg-screen h1 {
	font-size: 1.75rem;
}

.tg-screen h2 {
	font-size: 1.375rem;
}

.tg-screen h3 {
	font-size: 1.125rem;
}

.tg-screen p {
	margin: 0.5rem 0;
}

.tg-screen a {
	color: var(--tg-blue-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tg-screen a:hover {
	color: var(--tg-ink);
}

.tg-screen :focus-visible,
.tg-nav :focus-visible,
.tg-footer :focus-visible,
.tg-dialog :focus-visible,
.tg-a2hs :focus-visible {
	outline: 3px solid var(--tg-blue-dark);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px #ffffff;
}

.tg-muted {
	color: var(--tg-muted);
}

.tg-small {
	font-size: 0.875rem;
}

.tg-hp { /* 1.10: the intimate-image form's honeypot box (robots fill it; people never see it). */
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tg-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tg-intro {
	font-size: 1rem;
}

.tg-strong {
	font-weight: 700;
}

/* ---------- Buttons ---------- */

.tg-btn,
.tg-screen button,
.tg-screen input[type="submit"],
.tg-confirm > summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: var(--tg-ctl);
	min-width: 44px;
	padding: 0.35rem 1rem;
	border: 2px solid var(--tg-blue);
	border-radius: 999px;
	background: var(--tg-blue);
	color: #ffffff;
	font: inherit;
	font-family: var(--tg-font-display);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	max-width: 100%;
	white-space: normal;
}

.tg-screen a.tg-btn {
	color: #ffffff;
	text-decoration: none;
}

.tg-btn:hover,
.tg-screen button:hover,
.tg-screen input[type="submit"]:hover {
	background: var(--tg-blue-dark);
	border-color: var(--tg-blue-dark);
	color: #ffffff;
}

.tg-btn--ghost,
.tg-screen .tg-btn--ghost,
.tg-screen a.tg-btn--ghost,
.tg-confirm > summary {
	background: #ffffff;
	color: var(--tg-blue-dark);
	border-color: var(--tg-blue);
}

.tg-btn--ghost:hover,
.tg-screen .tg-btn--ghost:hover,
.tg-screen a.tg-btn--ghost:hover,
.tg-confirm > summary:hover {
	background: var(--tg-sky-pale);
	color: var(--tg-ink);
}

.tg-btn--green,
.tg-screen .tg-btn--green,
.tg-screen a.tg-btn--green {
	background: var(--tg-green);
	border-color: var(--tg-green);
	color: #ffffff;
}

.tg-btn--green:hover,
.tg-screen .tg-btn--green:hover,
.tg-screen a.tg-btn--green:hover {
	background: var(--tg-grass-dark);
	border-color: var(--tg-grass-dark);
	color: #ffffff;
}

.tg-btn--danger,
.tg-screen .tg-btn--danger {
	background: var(--tg-red);
	border-color: var(--tg-red);
	color: #ffffff;
}

.tg-btn--danger:hover,
.tg-screen .tg-btn--danger:hover {
	background: var(--tg-red-dark);
	border-color: var(--tg-red-dark);
}

.tg-btn--link,
.tg-screen .tg-btn--link {
	background: transparent;
	border-color: transparent;
	color: var(--tg-blue-dark);
	text-decoration: underline;
	font-weight: 400;
	padding-left: 0.25rem;
	padding-right: 0.25rem;
}

.tg-screen .tg-btn--link:hover {
	background: transparent;
	border-color: transparent;
	color: var(--tg-ink);
}

/* Small buttons (secondary actions in lists and boxes). */
.tg-btn--small,
.tg-screen .tg-btn--small {
	min-height: var(--tg-ctl-sm);
	padding: 0.2rem 0.75rem;
	font-size: 0.875rem;
}

.tg-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tg-s2);
	align-items: center;
	margin: var(--tg-s3) 0;
}

.tg-actions form {
	margin: 0;
}

/* ---------- Notices and boxes ---------- */

.tg-notice {
	border-radius: var(--tg-radius);
	padding: 0.75rem 1rem;
	margin: 0.75rem 0;
	border-left: 6px solid;
	font-weight: 600;
}

.tg-notice--ok {
	background: var(--tg-ok-bg);
	color: var(--tg-ok-ink);
	border-color: var(--tg-ok-ink);
}

.tg-notice--err {
	background: var(--tg-err-bg);
	color: var(--tg-err-ink);
	border-color: var(--tg-err-ink);
}

.tg-notice--info {
	background: var(--tg-sky-pale);
	color: var(--tg-ink);
	border-color: var(--tg-blue);
}

.tg-box {
	background: var(--tg-sky-pale);
	border: 1px solid var(--tg-line);
	border-radius: var(--tg-radius);
	padding: var(--tg-s3) var(--tg-s4);
	margin: var(--tg-s3) 0;
}

.tg-box > :first-child {
	margin-top: 0;
}

.tg-box > :last-child {
	margin-bottom: 0;
}

/* ---------- Safety box ---------- */

.tg-safety {
	background: var(--tg-mint);
	border: 2px solid var(--tg-green);
	border-left-width: 6px;
	border-radius: var(--tg-radius);
	padding: var(--tg-s3) var(--tg-s4);
	margin: var(--tg-s4) 0;
}

.tg-safety h2,
.tg-safety h3 {
	margin-top: 0;
	font-size: 1.15rem;
}

.tg-safety ul {
	margin: 0.5rem 0;
	padding-left: 1.25rem;
}

.tg-safety li {
	margin: 0.3rem 0;
}

.tg-safety__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin-top: 0.5rem;
}

.tg-safety__links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* ---------- Badges ---------- */

.tg-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0.4rem 0;
	padding: 0;
	list-style: none;
}

.tg-badge {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: var(--tg-blue-dark);
	color: #ffffff;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.5;
}

.tg-badge--21 {
	background: var(--tg-red);
}

.tg-badge--day {
	background: var(--tg-green);
}

.tg-badge--min,
.tg-badge--status {
	background: #ffffff;
	color: var(--tg-ink);
	border: 1px solid var(--tg-muted);
}

/* ---------- Cards and lists ---------- */

.tg-list {
	list-style: none;
	margin: 1rem 0;
	padding: 0;
	display: grid;
	gap: var(--tg-gap);
}

.tg-card {
	background: #ffffff;
	border: 1px solid var(--tg-line);
	border-radius: var(--tg-radius);
	padding: var(--tg-s3) var(--tg-s4);
}

.tg-card__title,
.tg-screen .tg-card__title {
	font-size: 1.15rem;
	margin: 0 0 0.25rem;
}

.tg-card__title a {
	text-decoration: none;
}

.tg-card__title a:hover,
.tg-card__title a:focus-visible {
	text-decoration: underline;
}

.tg-card__meta {
	margin: 0.15rem 0;
	color: var(--tg-ink);
}

.tg-card__going {
	font-weight: 700;
	color: var(--tg-blue-dark);
}

.tg-facts {
	margin: 0.75rem 0;
	padding: 0;
}

.tg-facts dt {
	font-weight: 700;
	margin-top: 0.6rem;
}

.tg-facts dd {
	margin: 0.1rem 0 0;
}

.tg-description {
	margin: 1rem 0;
	white-space: normal;
}

.tg-people {
	list-style: none;
	padding: 0;
	margin: 0.5rem 0;
	display: grid;
	gap: 0.5rem;
}

.tg-people li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
}

.tg-people a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.tg-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--tg-sky-pale);
}

.tg-photo {
	width: 160px;
	height: 160px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	margin: 0.5rem 0;
}

.tg-links {
	list-style: none;
	padding: 0;
	margin: 0.75rem 0;
}

.tg-links li {
	margin: 0;
	border-bottom: 1px solid var(--tg-line);
}

.tg-links a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0.25rem 0;
}

/* ---------- Forms ---------- */

.tg-form {
	margin: 1rem 0;
	max-width: 40rem;
}

.tg-field {
	margin: 0 0 var(--tg-s4);
}

.tg-field > label,
.tg-label,
.tg-form legend {
	display: block;
	font-weight: 700;
	margin-bottom: 0.3rem;
	padding: 0;
}

.tg-form fieldset {
	border: 1px solid var(--tg-line);
	border-radius: var(--tg-radius);
	padding: var(--tg-s3) var(--tg-s4);
	margin: 0 0 var(--tg-s4);
	min-width: 0;
}

.tg-form input[type="text"],
.tg-form input[type="email"],
.tg-form input[type="password"],
.tg-form input[type="number"],
.tg-form input[type="date"],
.tg-form input[type="time"],
.tg-form input[type="search"],
.tg-form input[type="file"],
.tg-form select,
.tg-form textarea,
.tg-filters select,
.tg-filters input {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: var(--tg-ctl);
	padding: 0.3rem 0.6rem;
	border: 2px solid #6b6b6b;
	border-radius: 6px;
	background: #ffffff;
	color: var(--tg-ink);
	font: inherit;
}

.tg-form input[type="number"] {
	max-width: 8rem;
}

.tg-form input.tg-inline-number {
	display: inline-block;
	width: 6rem;
	margin: 0 0.35rem;
	vertical-align: middle;
}

.tg-form textarea {
	min-height: 8rem;
	resize: vertical;
}

.tg-form input[readonly] {
	background: #eeeeee;
}

.tg-form [aria-invalid="true"] {
	border-color: var(--tg-err-ink);
}

.tg-help {
	display: block;
	color: var(--tg-muted);
	font-size: 0.92rem;
	margin: 0.25rem 0 0;
}

.tg-error {
	display: block;
	color: var(--tg-err-ink);
	font-weight: 700;
	margin: 0.3rem 0 0;
}

.tg-counter {
	display: block;
	color: var(--tg-muted);
	font-size: 0.85rem;
	margin-top: 0.2rem;
}

.tg-check,
.tg-radio {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	min-height: 44px;
	padding: 0.35rem 0;
	font-weight: 400;
	cursor: pointer;
}

.tg-check input,
.tg-radio input {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	min-height: 24px;
	margin: 0.1rem 0 0;
	accent-color: var(--tg-blue);
}

.tg-choices {
	display: grid;
	gap: 0.25rem;
}

.tg-row {
	display: grid;
	gap: 0 1rem;
	grid-template-columns: 1fr;
}

.tg-note {
	background: var(--tg-sky-pale);
	border-left: 4px solid var(--tg-red);
	padding: 0.5rem 0.75rem;
	margin: 0.5rem 0;
}

.tg-note[hidden],
[hidden] {
	display: none !important;
}

/* Place picker. */
.tg-place-list {
	display: grid;
	gap: 0.25rem;
	max-height: 22rem;
	overflow-y: auto;
	margin: 0.5rem 0;
	padding: 0.25rem;
	border: 1px solid var(--tg-line);
	border-radius: 6px;
	background: #ffffff;
}

.tg-place-list .tg-radio {
	border-bottom: 1px solid #eeeeee;
}

.tg-place-list .tg-radio:last-child {
	border-bottom: 0;
}

.tg-place__addr {
	display: block;
	color: var(--tg-muted);
	font-size: 0.9rem;
}

/* Interest picker. */
.tg-theme {
	border: 1px solid var(--tg-line);
	border-radius: var(--tg-radius);
	margin: 0 0 0.6rem;
	background: #ffffff;
}

.tg-theme > summary {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0.5rem 1rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.tg-theme > summary::-webkit-details-marker {
	display: none;
}

.tg-theme__toggle {
	color: var(--tg-blue-dark);
	font-weight: 400;
	text-decoration: underline;
}

.tg-theme[open] .tg-theme__show,
.tg-theme:not([open]) .tg-theme__hide {
	display: none;
}

.tg-theme fieldset {
	border: 0;
	margin: 0;
	padding: 0 1rem 0.75rem;
}

.tg-picked {
	position: sticky;
	bottom: 0;
	background: var(--tg-sky-pale);
	padding: 0.5rem 0.75rem;
	border-radius: 6px;
	font-weight: 700;
	margin: 0.75rem 0;
}

/* ---------- Filters ---------- */

.tg-filters {
	background: var(--tg-sky-pale);
	border-radius: var(--tg-radius);
	padding: var(--tg-s3);
	margin: var(--tg-s3) 0;
	display: grid;
	gap: var(--tg-s3);
	grid-template-columns: 1fr;
}

.tg-filters label {
	display: block;
	font-weight: 700;
	margin-bottom: 0.25rem;
}

.tg-filters .tg-actions {
	margin: 0;
}

/* 1.10 (Part D2): the pages of a visitor's "all our towns" list. */
.tg-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--tg-s3);
	margin: var(--tg-s3) 0;
}

/* ---------- Tabs ---------- */

.tg-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	list-style: none;
	margin: 1rem 0;
	padding: 0;
	border-bottom: 2px solid var(--tg-line);
}

.tg-tabs a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.4rem 0.9rem;
	border-radius: var(--tg-radius) var(--tg-radius) 0 0;
	text-decoration: none;
	color: var(--tg-blue-dark);
	font-weight: 700;
}

.tg-tabs a[aria-current="page"] {
	background: var(--tg-blue);
	color: #ffffff;
}

/* ---------- Map ---------- */

.tg-map-wrap {
	margin: 1rem 0;
}

.tg-map {
	height: 360px;
	width: 100%;
	border: 1px solid var(--tg-line);
	border-radius: var(--tg-radius);
	margin: 0.75rem 0;
	background: var(--tg-sky-pale);
}

.tg-map-privacy {
	font-size: 0.9rem;
	color: var(--tg-muted);
}

/* 1.9 (Part G): maps always on the page. Find and town: 280 px; a single place: 180 px, not interactive. */
.tg-map[data-tg-map="pins"] {
	height: 280px;
}

.tg-map--small {
	height: 180px;
	max-width: 40rem;
	pointer-events: none; /* A finger scrolling the page is never caught by a small map. */
}

.tg-map--small .leaflet-control-attribution {
	pointer-events: auto;
}

.tg-map--admin {
	height: 360px;
	max-width: 60rem;
}

.tg-map .leaflet-control-attribution {
	font-size: 11px;
	background: rgba(255, 255, 255, 0.85);
}

.tg-map--failed {
	height: auto;
	min-height: 0;
	padding: 0.75rem;
	background: var(--tg-sky-pale);
}

.tg-map-fail {
	margin: 0;
	color: var(--tg-muted);
	font-size: 14px; /* GO NOTE R2: readable, not Leaflet's 12 px. */
	line-height: 1.45;
}

.tg-map-popup a {
	display: inline-block;
	padding: 0.2rem 0;
}

.tg-map-popup ul {
	margin: 0.25rem 0 0;
	padding-left: 1rem;
}

/* ---------- Confirm (details + dialog) ---------- */

.tg-confirm {
	margin: 0.5rem 0;
}

.tg-confirm > summary {
	list-style: none;
	display: inline-flex;
}

.tg-confirm > summary::-webkit-details-marker {
	display: none;
}

.tg-confirm__body {
	margin-top: 0.6rem;
	padding: 1rem;
	border: 1px solid var(--tg-line);
	border-radius: var(--tg-radius);
	background: #ffffff;
}

.tg-dialog {
	width: min(32rem, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	overflow: auto;
	border: 0;
	border-radius: var(--tg-radius);
	padding: 1rem;
	color: var(--tg-ink);
	background: #ffffff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.tg-dialog::backdrop {
	background: rgba(0, 0, 0, 0.55);
}

.tg-dialog .tg-confirm__body {
	margin: 0;
	border: 0;
	padding: 0;
}

.tg-dialog__close {
	float: right;
	min-width: 44px;
	min-height: 44px;
	border: 0;
	background: transparent;
	color: var(--tg-ink);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

/* ---------- Header (1.1): wordmark, search, and one button (visitors) or Menu (members) ---------- */

.tg-header {
	--tg-hbtn: 9.5rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--tg-hbtn);
	align-items: center;
	gap: 0.375rem;
	width: 100%;
	color: #ffffff;
	font-size: 1rem;
}

.tg-header :focus-visible {
	outline: 3px solid var(--tg-sky);
	outline-offset: 2px;
	box-shadow: none;
}

.tg-wordmark {
	grid-column: 1 / -1;
	grid-row: 1;
	justify-self: start;
	display: inline-flex;
	align-items: center;
	min-height: 44px; /* 36 px on PCs with a mouse (below). */
	font-family: var(--tg-font-display);
	font-weight: 700;
	font-size: 1.375rem;
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-decoration: none;
	border-radius: 8px;
}

.tg-wordmark__town {
	color: #ffffff;
}

.tg-wordmark__gathering {
	color: #8fd8f5;
}

.tg-wordmark:hover .tg-wordmark__town {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* The search: town, what, Search. Phones: two rows under the wordmark,
   with the header button beside the town box (owner, 1.1). */
.tg-hsearch {
	grid-column: 1 / -1;
	grid-row: 2 / span 2;
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--tg-hbtn);
	gap: 0.375rem;
	margin: 0;
	min-width: 0;
}

.tg-hsearch__town {
	grid-column: 1;
	grid-row: 1;
}

.tg-hsearch__what {
	grid-column: 1;
	grid-row: 2;
}

.tg-hsearch__go {
	grid-column: 2;
	grid-row: 2;
}

.tg-hsearch select {
	display: block;
	width: 100%;
	min-width: 0;
	min-height: var(--tg-ctl);
	padding: 0 0.6rem;
	border: 2px solid #ffffff;
	border-radius: 8px;
	background: #ffffff;
	color: var(--tg-ink);
	font: inherit;
	font-size: 1rem;
}

.tg-hsearch__go,
.tg-hsearch__toggle,
.tg-nav__toggle,
.tg-nav--visitor .tg-nav__list a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: var(--tg-ctl);
	min-width: 44px;
	padding: 0 0.9rem;
	border: 2px solid var(--tg-green);
	border-radius: 999px;
	background: var(--tg-green);
	color: #ffffff;
	font: inherit;
	font-family: var(--tg-font-display);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
}

.tg-hsearch__go:hover,
.tg-nav--visitor .tg-nav__list a:hover {
	background: var(--tg-grass-dark);
	border-color: var(--tg-grass-dark);
	color: #ffffff;
}

.tg-hsearch__toggle,
.tg-nav__toggle {
	background: transparent;
	border-color: #ffffff;
}

.tg-hsearch__toggle:hover,
.tg-nav__toggle:hover {
	background: rgba(255, 255, 255, 0.14);
}

/* Three bars (drawn, not a font icon). */
.tg-nav__bars,
.tg-nav__bars::before,
.tg-nav__bars::after {
	display: block;
	width: 16px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
}

.tg-nav__bars {
	position: relative;
}

.tg-nav__bars::before,
.tg-nav__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.tg-nav__bars::before {
	top: -5px;
}

.tg-nav__bars::after {
	top: 5px;
}

/* The header button: beside the town box on phones. */
.tg-nav {
	grid-column: 2;
	grid-row: 2;
	position: relative;
	z-index: 2;
	justify-self: stretch;
	display: flex;
	justify-content: flex-end;
}

.tg-nav__toggle,
.tg-nav--visitor .tg-nav__list,
.tg-nav--visitor .tg-nav__list li,
.tg-nav--visitor .tg-nav__list a {
	width: 100%;
}

.tg-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tg-nav--member .tg-nav__list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 0.7rem;
	color: #ffffff;
	font-family: var(--tg-font-display);
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	border-radius: 999px;
	white-space: nowrap;
}

.tg-nav--member .tg-nav__list a:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.tg-nav__list a[aria-current="page"] {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.tg-nav--member .tg-nav__list a[aria-current="page"] {
	background: rgba(255, 255, 255, 0.16);
}

.tg-hsearch__toggle {
	display: none;
}

/* Phones, pages other than home and /find/ (with JavaScript): the search
   waits behind "Search"; the wordmark, Search and the button share row 1. */
.tg-header--js:not(.tg-header--search-open) {
	grid-template-columns: minmax(0, 1fr) auto auto;
}

.tg-header--js:not(.tg-header--search-open) .tg-nav__toggle,
.tg-header--js:not(.tg-header--search-open) .tg-nav--visitor .tg-nav__list,
.tg-header--js:not(.tg-header--search-open) .tg-nav--visitor .tg-nav__list li,
.tg-header--js:not(.tg-header--search-open) .tg-nav--visitor .tg-nav__list a {
	width: auto;
}

.tg-header--js:not(.tg-header--search-open) .tg-hsearch__toggle,
.tg-header--js:not(.tg-header--search-open) .tg-nav__toggle,
.tg-header--js:not(.tg-header--search-open) .tg-nav--visitor .tg-nav__list a {
	padding: 0 0.7rem;
}

@media (max-width: 23.99rem) {
	.tg-header--js:not(.tg-header--search-open) .tg-wordmark {
		font-size: 1.2rem;
	}
}

.tg-header--js:not(.tg-header--search-open) .tg-wordmark {
	grid-column: 1;
}

.tg-header--js:not(.tg-header--search-open) .tg-hsearch__toggle {
	display: inline-flex;
	grid-column: 2;
	grid-row: 1;
}

.tg-header--js:not(.tg-header--search-open) .tg-nav {
	grid-column: 3;
	grid-row: 1;
}

.tg-header--js:not(.tg-header--search-open) .tg-hsearch {
	grid-row: 2 / span 2;
}

.tg-header--js:not(.tg-header--search-open) .tg-hsearch__town {
	grid-column: 1 / -1;
}

.tg-header--js:not(.tg-header--search-open):not(.tg-header--search-shown) .tg-hsearch {
	display: none;
}

/* Members' Menu drop-down (below 1280 px, with JavaScript). */
@media (max-width: 79.99rem) {
	.tg-nav--member.tg-nav--js .tg-nav__list {
		display: none;
	}

	.tg-nav--member.tg-nav--js.tg-nav--open .tg-nav__list {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		position: absolute;
		right: 0;
		top: calc(100% + 0.375rem);
		z-index: 50;
		width: min(16rem, calc(100vw - 2rem));
		background: #ffffff;
		border: 2px solid var(--tg-blue);
		border-radius: var(--tg-radius);
		padding: var(--tg-s2);
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	}

	.tg-nav--member.tg-nav--js.tg-nav--open .tg-nav__list a {
		display: flex;
		color: var(--tg-ink);
	}

	.tg-nav--member.tg-nav--js.tg-nav--open .tg-nav__list a:hover,
	.tg-nav--member.tg-nav--js.tg-nav--open .tg-nav__list a[aria-current="page"] {
		background: var(--tg-sky-pale);
		color: var(--tg-ink);
	}

	.tg-nav--member.tg-nav--js.tg-nav--open .tg-nav__list a:focus-visible {
		outline-color: var(--tg-blue-dark);
	}

	/* Without JavaScript the member links wrap under the header. */
	.tg-nav--member:not(.tg-nav--js) {
		grid-column: 1 / -1;
		grid-row: 4;
		justify-content: flex-start;
	}
}

/* Tablets: the wordmark and the button on row 1, the search on one line. */
@media (min-width: 48rem) {
	.tg-header,
	.tg-header--js:not(.tg-header--search-open) {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: var(--tg-s2);
	}

	.tg-wordmark,
	.tg-header--js:not(.tg-header--search-open) .tg-wordmark {
		grid-column: 1;
		font-size: 1.5rem;
	}

	.tg-nav,
	.tg-header--js:not(.tg-header--search-open) .tg-nav {
		grid-column: 2;
		grid-row: 1;
	}

	.tg-nav__toggle,
	.tg-nav--visitor .tg-nav__list,
	.tg-nav--visitor .tg-nav__list li,
	.tg-nav--visitor .tg-nav__list a {
		width: auto;
	}

	.tg-hsearch__toggle,
	.tg-header--js:not(.tg-header--search-open) .tg-hsearch__toggle {
		display: none;
	}

	.tg-hsearch,
	.tg-header--js .tg-hsearch,
	.tg-header--js:not(.tg-header--search-open):not(.tg-header--search-shown) .tg-hsearch {
		display: grid;
		grid-column: 1 / -1;
		grid-row: 2;
		grid-template-columns: minmax(0, 13rem) minmax(0, 15rem) auto;
		justify-content: start;
		gap: var(--tg-s2);
	}

	.tg-hsearch__town,
	.tg-header--js:not(.tg-header--search-open) .tg-hsearch__town,
	.tg-hsearch__what,
	.tg-hsearch__go {
		grid-column: auto;
		grid-row: 1;
	}
}

/* From 1024 px: one row (wordmark, search, button or Menu). */
@media (min-width: 64rem) {
	.tg-header,
	.tg-header--js:not(.tg-header--search-open) {
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: var(--tg-s3);
	}

	.tg-hsearch,
	.tg-header--js .tg-hsearch,
	.tg-header--js:not(.tg-header--search-open):not(.tg-header--search-shown) .tg-hsearch {
		grid-column: 2;
		grid-row: 1;
		justify-content: center;
	}

	.tg-nav,
	.tg-header--js:not(.tg-header--search-open) .tg-nav {
		grid-column: 3;
	}
}

/* From 1280 px the members' links show in the row; no Menu. */
@media (min-width: 80rem) {
	.tg-nav__toggle {
		display: none !important;
	}

	.tg-nav--member .tg-nav__list {
		display: flex !important;
	}
}

/* A slimmer header on wide screens with a mouse (touch keeps 44 px). */
@media (min-width: 64rem) and (pointer: fine) {
	.tg-wordmark,
	.tg-nav--member .tg-nav__list a {
		min-height: 36px;
	}

	.tg-hsearch select,
	.tg-hsearch__go,
	.tg-nav__toggle,
	.tg-nav--visitor .tg-nav__list a {
		min-height: 36px;
	}
}

/* ---------- Footer (2.6.1, TODO 24, owner D181): one compact row on every page ----------
   One list that flows in a single line and wraps only as the screen needs: the quick links, the company line,
   the legal email, the mailing address (when set), the OpenStreetMap credit, then the share icons and the
   Monkiey LLC logo (owner Q2 D). As low as possible (owner Q8): small type, tight gaps, and every link and icon
   box at least 24 x 24 px (WCAG 2.5.8), with min-height and line-height, never a fixed height (WCAG 1.4.12). */

.tg-footer {
	color: #ffffff;
	font-size: 0.75rem;
	text-align: center;
}

.is-layout-constrained > .tg-footer {
	max-width: var(--wp--style--global--wide-size, 1240px);
}

.tg-footer__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.75rem;
	line-height: 24px;
}

.tg-footer__row > li {
	display: block;
	min-height: 24px;
	margin: 0;
	padding: 0;
}

.tg-footer__row a {
	display: inline-block;
	min-height: 24px;
	line-height: 24px;
	color: #ffffff;
	text-underline-offset: 3px;
}

/* The quick links (plain <li>): bold, as before, never broken inside. */
.tg-footer__row > li:not([class]) > a {
	padding: 0 0.125rem;
	font-family: var(--tg-font-display);
	font-weight: 600;
	white-space: nowrap;
}

/* The required information: normal weight, 18 px lines, balanced breaks (no word alone on a line). */
.tg-footer__row > .tg-footer__info {
	min-height: 18px;
	line-height: 18px;
	text-wrap: balance;
}

.tg-footer__row a:hover {
	color: #b8e986;
}

.tg-footer :focus-visible {
	outline: 3px solid #b8e986;
	outline-offset: 2px;
	box-shadow: none;
}

/* The share icons in the row (owner Q2 D): the 28 px circles stay; in the footer only, tap boxes 32 x 28. */
.tg-footer__row .tg-share__i,
.tg-footer__row .tg-share button.tg-share__i {
	display: flex; /* Review R1 FIX 2: the row's link rule must not turn the icon boxes into blocks (circle centred). */
	width: 32px;
	height: auto;
	min-height: 28px;
}

/* 2.6.1 FIX after Fable: the empty status line stays in the page (zero height from the global .tg-share__status:empty
   rule), so the role="status" text "Link copied" is announced (WCAG 4.1.3). Only the hidden copy box is taken out. */
.tg-footer__row .tg-share__fallback[hidden] {
	display: none;
}

/* Review R1 FIX 1: "Link copied" and the TikTok copy box keep normal lines (the item itself has line-height 0). */
.tg-footer__row .tg-share__status,
.tg-footer__row .tg-share__fallback {
	line-height: normal;
}

/* The Monkiey LLC logo at the end of the row: 73 x 32 px, as before; the link at least 24 px tall. */
.tg-footer__row > .tg-footer__logo,
.tg-footer__row > .tg-footer__sharebar {
	display: flex;
	align-items: center;
	line-height: 0; /* No extra line space under the logo or the icons. */
}

.tg-footer__row .tg-footer__monkiey {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	line-height: 0;
}

.tg-footer__row .tg-footer__monkiey img {
	display: block;
	width: 73px;
	height: 32px;
}

/* ---------- 1.1: tighter spacing (owner's marked screenshots) ---------- */

.tg-home .tg-town-links__title {
	margin-top: var(--tg-s3);
}

.tg-screen h1:first-child,
.tg-screen > .tg-notice:first-child + h1,
.tg-screen > h2:first-child {
	margin-top: 0;
}

/* ---------- Home page (1.0.3 compact): one screen ---------- */

.tg-screen.tg-home,
.is-layout-constrained > .tg-screen.tg-home {
	max-width: 1240px;
}

.tg-home > section {
	margin: 0 0 var(--tg-s3);
}

.tg-home h2 {
	font-size: 1.375rem;
	margin: var(--tg-s3) 0 var(--tg-s2);
}

.tg-home__hero {
	margin: 0 0 var(--tg-s2);
}

.tg-screen .tg-home__hero h1 {
	font-size: 1.375rem;
	margin: 0;
	display: inline;
}

.tg-home .tg-intro {
	display: inline;
	font-size: 0.9375rem;
	margin: 0 0 0 0.35rem;
	color: var(--tg-muted);
}

/* The art, with the six step hotspots. */
.tg-home__art {
	position: relative;
	margin: 0;
	border-radius: var(--tg-radius);
	background: var(--tg-sky);
	line-height: 0;
}

.tg-home__art img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--tg-radius);
}

.tg-spots {
	list-style: none;
	margin: 0;
	padding: 0;
	line-height: 1.4;
}

.tg-screen .tg-spot {
	position: absolute;
	left: var(--pl);
	top: var(--pt);
	width: var(--pw);
	height: var(--ph);
	min-height: 0;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: transparent;
	cursor: pointer;
}

.tg-screen .tg-spot:hover,
.tg-screen .tg-spot:focus {
	background: rgba(255, 255, 255, 0.08);
	border: 0;
}

.tg-screen .tg-spot:focus-visible,
.tg-spot-item.is-open .tg-spot {
	outline: 4px solid var(--tg-blue-dark);
	outline-offset: -4px;
	box-shadow: inset 0 0 0 7px #ffffff;
}

/* A closed bubble: visually hidden, still in the page (read in order). */
.tg-bubble {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.tg-spot-item.is-open .tg-bubble,
html:not(.tg-js) .tg-spot-item:hover .tg-bubble,
html:not(.tg-js) .tg-spot-item:focus-within .tg-bubble {
	z-index: 5;
	width: min(20rem, 92%);
	height: auto;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
	padding: var(--tg-s3);
	background: #ffffff;
	color: var(--tg-ink);
	border: 2px solid var(--tg-blue-dark);
	border-radius: var(--tg-radius);
	box-shadow: 0 8px 24px rgba(14, 47, 90, 0.3);
	font-size: 0.9375rem;
}

/* Phone art (2 x 3): below the panel for rows 1-2, above it for row 3.
 * 1.3: phone widths only. These rules are more specific than the wide reset
 * below, so at 48rem+ they used to win: step 4 got a phone "top" and a wide
 * "bottom" at once (a 28 px white strip, the text spilling over the art) and
 * step 3 sat on the left (owner, 2026-11-07). */
@media (max-width: 47.99rem) {
	.tg-spot-item[data-col-p="0"] .tg-bubble {
		left: 2%;
	}

	.tg-spot-item[data-col-p="1"] .tg-bubble {
		right: 2%;
	}

	.tg-spot-item[data-row-p="0"] .tg-bubble,
	.tg-spot-item[data-row-p="1"] .tg-bubble {
		top: calc(var(--pt) + var(--ph) - 4%);
	}

	.tg-spot-item[data-row-p="2"] .tg-bubble {
		bottom: calc(100% - var(--pt) - 4%);
	}
}

.tg-bubble__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.25rem;
	font-family: var(--tg-font-display);
	font-weight: 700;
	font-size: 1.0625rem;
	color: var(--tg-blue-dark);
}

.tg-bubble__num {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: var(--tg-blue);
	color: #ffffff;
	font-size: 0.9375rem;
}

.tg-screen .tg-bubble__text {
	margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.tg-spot-item.is-open .tg-bubble {
		animation: tg-pop 0.12s ease-out;
	}

	@keyframes tg-pop {
		from {
			opacity: 0;
			transform: translateY(4px);
		}
	}
}

/* Stay safe: one line on pale green, then the real buttons. */
.tg-home__safe {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--tg-s2) var(--tg-s3);
	margin-top: var(--tg-s3);
}

.tg-screen .tg-home__safe-line {
	flex: 1 1 26rem;
	margin: 0;
	padding: var(--tg-s2) var(--tg-s3);
	background: var(--tg-mint);
	border-left: 6px solid var(--tg-green);
	border-radius: 8px;
	color: var(--tg-ink);
	font-size: 0.9375rem;
}

.tg-screen .tg-home__safe-line a {
	color: var(--tg-grass-dark);
	font-weight: 700;
}

.tg-home__buttons {
	flex: 0 0 auto;
	margin: 0;
}

/* Coming up near you: cards and the town links. */
.tg-card,
.tg-home .tg-card {
	border: 1px solid var(--tg-line);
	border-top: 4px solid var(--tg-sky);
}

.tg-screen .tg-town-links__title {
	font-size: 1rem;
	margin: var(--tg-s3) 0 var(--tg-s2);
}

.tg-town-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tg-s2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.tg-screen .tg-town-links a {
	display: inline-flex;
	align-items: center;
	min-height: var(--tg-ctl-sm);
	padding: 0 0.75rem;
	border: 2px solid var(--tg-blue);
	border-radius: 999px;
	background: #ffffff;
	color: var(--tg-blue-dark);
	font-family: var(--tg-font-display);
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none;
}

.tg-screen .tg-town-links a:hover {
	background: var(--tg-sky-pale);
	color: var(--tg-ink);
	text-decoration: underline;
}

@media (min-width: 48rem) {
	.tg-screen .tg-spot {
		left: var(--wl);
		top: var(--wt);
		width: var(--ww);
		height: var(--wh);
	}

	.tg-spot-item .tg-bubble {
		left: auto;
		right: auto;
		top: auto;
		bottom: auto;
	}

	/* Wide art (3 x 2): below the panel's heading for row 1, above row 2. */
	.tg-spot-item[data-col-w="0"] .tg-bubble {
		left: calc(var(--wl) + 1%);
	}

	.tg-spot-item[data-col-w="1"] .tg-bubble {
		left: calc(var(--wl) + var(--ww) / 2 - 10rem);
	}

	.tg-spot-item[data-col-w="2"] .tg-bubble {
		right: calc(100% - var(--wl) - var(--ww) + 1%);
	}

	.tg-spot-item[data-row-w="0"] .tg-bubble {
		top: calc(var(--wt) + var(--wh) - 6%);
	}

	.tg-spot-item[data-row-w="1"] .tg-bubble {
		bottom: calc(100% - var(--wt) + 0.5%);
	}

	.tg-screen .tg-home__hero h1 {
		font-size: 1.5rem;
	}

	.tg-home .tg-list--cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 75rem) {
	.tg-home .tg-list--cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* "Add to home screen" hint (phones). */
.tg-a2hs {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 900;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 0.75rem 1rem;
	background: var(--tg-blue-dark);
	color: #ffffff;
	border-radius: var(--tg-radius);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.tg-a2hs p {
	margin: 0;
	flex: 1 1 12rem;
}

.tg-a2hs button {
	min-height: 44px;
	min-width: 44px;
	padding: 0.4rem 1rem;
	border: 2px solid #ffffff;
	border-radius: var(--tg-radius);
	background: transparent;
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

/* 1.4: the Add button (filled, so it reads as the main choice) and the iPhone steps. */
.tg-a2hs .tg-a2hs__add {
	background: #ffffff;
	color: var(--tg-blue-dark);
}

.tg-a2hs .tg-a2hs__add:hover {
	background: var(--tg-sky-pale);
}

.tg-a2hs .tg-a2hs__steps {
	flex: 1 1 100%;
	font-weight: 700;
}

/* Admin banner (test mode), fixed red bar at the bottom. */
.tg-admin-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	padding: 0.5rem 1rem;
	background: var(--tg-red-dark);
	color: #ffffff;
	font-weight: 700;
	text-align: center;
	font-size: 0.95rem;
}

body:has(.tg-admin-banner) {
	padding-bottom: 2.75rem;
}

/* 1.6: with the sticky footer, the page column leaves room for the owner's red bar, so the bar never covers the footer. */
body:has(.tg-admin-banner) .wp-site-blocks {
	min-height: calc(100vh - 2.75rem);
	min-height: calc(100dvh - 2.75rem);
}

body.admin-bar:has(.tg-admin-banner) .wp-site-blocks {
	min-height: calc(100vh - 32px - 2.75rem);
	min-height: calc(100dvh - 32px - 2.75rem);
}

@media screen and (max-width: 782px) {
	body.admin-bar:has(.tg-admin-banner) .wp-site-blocks {
		min-height: calc(100vh - 46px - 2.75rem);
		min-height: calc(100dvh - 46px - 2.75rem);
	}
}

/* ---------- Small helpers ---------- */

.tg-inline-form {
	display: inline;
	margin: 0;
}

.tg-confirm > summary.tg-btn--danger {
	background: var(--tg-red);
	border-color: var(--tg-red);
	color: #ffffff;
}

.tg-confirm > summary.tg-btn--danger:hover {
	background: var(--tg-red-dark);
	border-color: var(--tg-red-dark);
	color: #ffffff;
}

.tg-legal ol,
.tg-legal ul {
	padding-left: 1.25rem;
}

.tg-legal li {
	margin: 0.6rem 0;
}

.tg-legal__list {
	list-style: none;
	padding-left: 0 !important;
}

/* ---------- Wider screens ---------- */

@media (min-width: 40rem) {
	.tg-row--2 {
		grid-template-columns: 1fr 1fr;
	}

	.tg-row--3 {
		grid-template-columns: 1fr 1fr 1fr;
	}

	.tg-filters {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: end;
	}

	.tg-filters .tg-actions {
		grid-column: 1 / -1;
	}
}

@media (min-width: 60rem) {
	.tg-list--cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.tg-screen *,
	.tg-dialog {
		transition: none !important;
		animation: none !important;
	}
}

@media print {
	.tg-nav,
	.tg-a2hs,
	.tg-footer--share,
	.tg-map-wrap,
	.tg-admin-banner {
		display: none !important;
	}
}

/* ---------- 1.0.3 compact: cards and the find filters ---------- */

.tg-screen .tg-card p,
.tg-screen .tg-card .tg-card__meta {
	margin: 0.1rem 0;
}

@media (min-width: 40rem) {
	.tg-find .tg-filters {
		grid-template-columns: minmax(0, 14rem) minmax(0, 10rem) auto;
		align-items: end;
		justify-content: start;
	}
}

/* Phones: keep the home page's buttons on the first screen (390 x 844). */
@media (max-width: 47.99rem) {
	.tg-home .tg-intro,
	.tg-screen .tg-home__safe-line {
		font-size: 0.875rem;
	}

	.tg-screen .tg-home__hero h1 {
		font-size: 1.25rem;
	}

	.tg-home__safe {
		margin-top: var(--tg-s2);
		gap: var(--tg-s2);
	}

	.tg-home__buttons .tg-btn {
		flex: 1 1 0;
	}

	.tg-home__buttons {
		flex: 1 1 100%;
	}

	.tg-home__hero {
		margin-bottom: var(--tg-s1);
		line-height: 1.4;
	}

	.tg-screen .tg-home__safe-line {
		padding: 0.375rem var(--tg-s3);
		line-height: 1.4;
	}

}

/* "Clear filters" is a link but a control: a full-size target. */
.tg-filters .tg-actions a {
	display: inline-flex;
	align-items: center;
	min-height: var(--tg-ctl);
	padding: 0 0.25rem;
}

/* ---------- 1.0.3 GO (D59): PC a little more compact (1024 px and wider) ---------- */

@media (min-width: 64rem) {
	.tg-screen.tg-home,
	.is-layout-constrained > .tg-screen.tg-home {
		max-width: min(1120px, 88vw);
	}

	.tg-screen .tg-home__hero h1 {
		font-size: 1.375rem;
	}

	.tg-home .tg-intro {
		font-size: 0.875rem;
	}

	.tg-home > .tg-home__hero {
		margin-bottom: var(--tg-s1);
		line-height: 1.35;
	}

	.tg-home .tg-list--cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tg-home > section {
		margin-bottom: var(--tg-s2);
	}

	.tg-home__safe {
		margin-top: var(--tg-s2);
	}

	.tg-screen .tg-home__safe-line {
		padding: 0.375rem var(--tg-s3);
		font-size: 0.875rem;
	}

	.tg-home h2 {
		margin: var(--tg-s3) 0 var(--tg-s2);
	}
}

/* 2.1.0 (POLISH 13): from 1200 to 1279 px the home content is as wide as the header's and the footer's 1100 px row,
   so the three left edges match (88vw left the footer 10-22 px off). 1280 px and up keep min(1120px, 88vw). */
@media (min-width: 75rem) and (max-width: 79.99rem) {
	.tg-screen.tg-home,
	.is-layout-constrained > .tg-screen.tg-home {
		max-width: var(--wp--style--global--wide-size, 1100px);
	}
}

/* From 1280 px the header row has these links: no repeat under the art (D59). */
@media (min-width: 80rem) {
	.tg-home__buttons {
		display: none;
	}

	.tg-screen .tg-home__safe-line {
		flex-basis: 100%;
	}
}

/* ---------- 1.0.3 GO (D59): the Find page, spruced up ---------- */

.tg-find__count {
	font-family: var(--tg-font-body, inherit);
	font-weight: 400;
	font-size: 1rem;
	color: var(--tg-muted);
}

.tg-find h1,
.tg-find h2 {
	margin-top: var(--tg-s2);
}

/* One pale-sky bar: When, How far, Show, Clear filters, then Show map. */
.tg-find__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--tg-s2) var(--tg-s3);
	background: var(--tg-sky-pale);
	border: 1px solid var(--tg-line);
	border-radius: var(--tg-radius);
	padding: var(--tg-s3);
	margin: var(--tg-s2) 0 var(--tg-s3);
}

.tg-find__bar .tg-filters {
	background: none;
	padding: 0;
	margin: 0;
	flex: 1 1 22rem;
}

.tg-find__bar .tg-map-wrap {
	display: contents;
}

.tg-find__bar .tg-map-wrap > button {
	flex: 0 0 auto;
}

.tg-find__bar .tg-map-privacy,
.tg-find__bar .tg-map,
.tg-find__bar [data-tg-map-fail] {
	flex: 1 1 100%;
	margin: 0;
}

.tg-find__bar .tg-map-privacy {
	font-size: 0.875rem;
	color: var(--tg-muted);
}

@media (min-width: 64rem) {
	.tg-find .tg-list--cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.tg-filters input[type="hidden"] {
	display: none;
}

.tg-find h2 {
	margin-top: 0;
}

@media (min-width: 40rem) {
	.tg-find__bar .tg-filters {
		grid-template-columns: minmax(0, 14rem) minmax(0, 10rem) max-content;
	}

	.tg-find__bar .tg-filters .tg-actions {
		grid-column: auto;
		flex-wrap: nowrap;
	}
}

/* Phones and touch: the small in-text controls are full-size targets too
   (plan check F2): Report and Block in the going list, and "Open map". */
@media (max-width: 47.99rem), (pointer: coarse) {
	.tg-people a.tg-small {
		min-width: 44px;
		justify-content: center;
		padding: 0 0.25rem;
	}

}

/* One link per destination (D59): from 1280 px the header row shows
   "Sign up / Log in" and the member links, so a page's own link to the same
   place is hidden there (a plain-text twin keeps a sentence whole). Below
   1280 px the links sit behind Menu, so the page's own link shows. */
.tg-show-wide {
	display: none;
}

@media (min-width: 80rem) {
	.tg-hide-wide,
	.tg-screen .tg-hide-wide {
		display: none !important;
	}

	.tg-show-wide {
		display: inline;
	}
}

@media (min-width: 80rem) {
	.tg-safety__links .tg-show-wide {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
}

/* ---------- 1.1: the members area hub (/my-gatherings/) ---------- */

.tg-hub__hello {
	font-family: var(--tg-font-display);
	font-weight: 600;
	font-size: 1.125rem;
	color: var(--tg-blue-dark);
	margin: 0 0 var(--tg-s2);
}

.tg-hub__grid {
	display: grid;
	gap: var(--tg-s3);
}

.tg-hub__card {
	background: #ffffff;
	border: 1px solid var(--tg-line);
	border-top: 4px solid var(--tg-sky);
	border-radius: var(--tg-radius);
	padding: var(--tg-s3) var(--tg-s4);
}

.tg-screen .tg-hub__card h2 {
	font-size: 1.125rem;
	margin: 0 0 var(--tg-s2);
}

.tg-hub__list {
	list-style: none;
	margin: 0 0 var(--tg-s2);
	padding: 0;
}

.tg-hub__list li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 var(--tg-s2);
	padding: var(--tg-s1) 0;
	border-bottom: 1px solid var(--tg-line);
}

.tg-hub__list li > a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
}

.tg-hub__tabs {
	margin: var(--tg-s2) 0 0;
}

.tg-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tg-s1);
	list-style: none;
	margin: 0;
	padding: 0;
}

.tg-chips li {
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	background: var(--tg-sky-pale);
	border: 1px solid var(--tg-line);
	font-size: 0.875rem;
}

.tg-hub__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--tg-s3);
	margin: var(--tg-s2) 0 0;
}

.tg-hub__links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.tg-hub__me {
	display: flex;
	align-items: center;
	gap: var(--tg-s2);
	margin: 0;
}

@media (min-width: 48rem) {
	.tg-hub__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tg-hub__card--wide {
		grid-column: 1 / -1;
	}
}

/* ---------- 1.1: Add to my calendar and Share (gathering pages) ---------- */

.tg-tools {
	background: var(--tg-sky-pale);
	border: 1px solid var(--tg-line);
	border-radius: var(--tg-radius);
	padding: var(--tg-s2) var(--tg-s3);
	margin: var(--tg-s3) 0;
}

.tg-screen .tg-tools__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--tg-s2);
	margin: var(--tg-s1) 0;
}

.tg-tools__label {
	font-weight: 700;
	flex: 1 1 100%;
}

@media (min-width: 48rem) {
	.tg-tools__label {
		flex: 0 0 9.5rem;
	}
}

.tg-tools__link {
	font-size: 0.875rem;
	overflow-wrap: anywhere;
}

.tg-screen .tg-tools [data-tg-copied]:empty {
	display: none;
}

/* ---------- 1.1: TownGathering nights and the weekly number ---------- */

.tg-nights {
	background: var(--tg-sky-pale);
	border: 1px solid var(--tg-line);
	border-left: 6px solid var(--tg-blue);
	border-radius: var(--tg-radius);
	padding: var(--tg-s2) var(--tg-s3);
	margin: var(--tg-s3) 0;
}

.tg-screen .tg-nights h2 {
	font-size: 1.125rem;
	margin: 0 0 var(--tg-s1);
}

.tg-nights__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--tg-s2);
}

.tg-screen .tg-nights__title {
	margin: 0;
	font-family: var(--tg-font-display);
	font-weight: 700;
	color: var(--tg-blue-dark);
}

.tg-screen .tg-nights__meta,
.tg-screen .tg-nights__text {
	margin: 0;
	font-size: 0.9375rem;
}

.tg-screen .tg-happened {
	margin: calc(-1 * var(--tg-s1)) 0 var(--tg-s2);
	color: var(--tg-muted);
	font-size: 0.875rem;
}

/* Phones and tablets: the open member Menu never half-covers the search
   (review B F3, as in 1.0.3): the search rows step aside while it's open. */
@media (max-width: 63.99rem) {
	.tg-header:has(.tg-nav--open) .tg-hsearch {
		visibility: hidden;
	}
}

/* ---------- 1.2: the owner's logo in the header and footer ---------- */

.tg-logo,
.tg-logo img {
	display: block;
}

.tg-logo--header img {
	height: 40px;
	width: auto;
	max-width: 100%;
}

@media (max-width: 23.99rem) {
	.tg-logo--header img {
		height: 34px;
	}
}

@media (min-width: 64rem) and (pointer: fine) {
	.tg-logo--header img {
		height: 36px;
	}
}

/* ---------- 1.2: repeat choice, series dates, comments ---------- */
.tg-repeat .tg-field--narrow input {
	max-width: 8rem;
}
.tg-h3 {
	font-size: 1.125rem;
	margin: 0 0 var(--tg-s2);
}
.tg-series,
.tg-comments {
	border: 1px solid var(--tg-line);
	border-radius: var(--tg-radius);
	padding: var(--tg-s3) var(--tg-s4);
	margin: var(--tg-s4) 0;
	background: var(--tg-paper);
}
.tg-series__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tg-series__list li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--tg-s2);
	min-height: 44px;
	border-top: 1px solid var(--tg-line);
}
.tg-series__list li:first-child {
	border-top: 0;
}
.tg-series__list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
}
.tg-comments__list {
	list-style: none;
	margin: 0 0 var(--tg-s3);
	padding: 0;
}
.tg-comment {
	border-top: 1px solid var(--tg-line);
	padding: var(--tg-s2) 0;
}
.tg-comment:first-child {
	border-top: 0;
}
.tg-comment--hidden {
	background: var(--tg-err-bg);
	padding-left: var(--tg-s2);
	padding-right: var(--tg-s2);
	border-radius: 6px;
}
.tg-comment__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--tg-s2);
	margin: 0;
	font-size: 0.875rem;
	color: var(--tg-muted);
}
.tg-comment__meta strong {
	color: var(--tg-ink);
}
.tg-comment__body {
	margin: var(--tg-s1) 0;
	overflow-wrap: anywhere;
}
.tg-comment__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--tg-s3);
}
.tg-comment__report summary {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	cursor: pointer;
	color: var(--tg-blue-dark);
	text-decoration: underline;
}
.tg-form--inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--tg-s2);
	margin: 0;
}
.tg-form--inline select {
	width: auto;
	max-width: 100%;
}
.tg-comment__tools .tg-btn--link {
	min-height: 44px;
}

/* ---------- 1.10's compact-footer layout (TODO 14 addendum 2) was replaced by the 2.6.1 row (see "Footer (2.6.1)" above). ---------- */

/* 1.9 (GO R3-2): who's coming, for the host: names with Report and Block, wrapping on phones. */
.tg-whos-coming p {
	margin: 0.25rem 0;
}

.tg-whos-coming__people {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin: 0.25rem 0;
	padding: 0;
	list-style: none;
}

.tg-whos-coming__people li {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0 0.5rem;
	align-items: baseline;
}

.tg-whos-coming__people .tg-small {
	min-height: 24px;
	padding: 0.15rem 0;
}

/* 2.1.0 (POLISH 158): on a phone, Report and Block are 44 px tall tap targets (same width, same wrapping). */
@media (max-width: 47.99rem) {
	.tg-whos-coming__people .tg-small {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding: 0;
	}
}

/* 1.9.1 (GO §2 C9): numbered pins on the admin waiting-places map. */
.tg-pin-num {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #0b3d6e;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
	color: #fff;
	font: 700 14px/1 system-ui, sans-serif;
}

/* 1.9.2 (GO 2005 §2 item 5): the share bar. 1.10 (TODO 14 addendum 2): inside the footer (2.6.1: an item at the end of the footer row, before the logo);
   the 1.9.2 drawing rule (271 × 51 pill, 36 px circles) is withdrawn: 28 px brand circles with a thin grey
   ring, no pill; tap boxes 36 × 44 (34 × 44 below 24rem). The ring is #8F98A5, a step lighter than the
   picture's #7F8895, which is only 2.6:1 on the footer green (#24520F); #8F98A5 is 3.15:1 (WCAG 1.4.11). */
.tg-footer.tg-footer--share {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
}

.tg-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tg-share li {
	display: flex;
	margin: 0;
	padding: 0;
}

.tg-share li[hidden] {
	display: none;
}

.tg-share__i {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.tg-share__c {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	overflow: hidden; /* Nothing drawn past the circle; the ring is a box-shadow, so it stays. */
	box-shadow: 0 0 0 1.5px #8f98a5;
}

.tg-share__c svg {
	display: block;
	width: auto;
	height: 10px; /* Small white glyphs, 8-11 px on the 28 px circle (the owner's picture, scaled). */
	fill: #ffffff;
}

.tg-share__i--facebook .tg-share__c { background: #1877f2; }
.tg-share__i--whatsapp .tg-share__c { background: #25d366; }
.tg-share__i--whatsapp .tg-share__c svg { height: 11px; }
.tg-share__i--x .tg-share__c { background: #000000; }
.tg-share__i--x .tg-share__c svg { height: 11px; }
.tg-share__i--linkedin .tg-share__c { background: #0a66c2; }
.tg-share__i--linkedin .tg-share__c svg { height: 9px; }
.tg-share__i--reddit .tg-share__c { background: #ff4500; }
.tg-share__i--reddit .tg-share__c svg { height: 8px; }
.tg-share__i--tiktok .tg-share__c { background: #000000; }

.tg-share__i:hover .tg-share__c {
	box-shadow: 0 0 0 2px #ffffff;
}

.tg-share__status {
	min-height: 1.4em;
	margin: 0 0 var(--tg-s1);
	color: #ffffff;
	font-size: 0.8125rem;
}

.tg-share__status:empty {
	min-height: 0;
	margin: 0;
}

.tg-share__fallback {
	margin: 0 0 var(--tg-s2);
	color: #ffffff;
	font-size: 0.8125rem;
}

.tg-share__fallback input {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 22rem;
	min-width: 0;
	margin-top: 0.25rem;
	padding: 0.35rem 0.5rem;
	font-size: 0.875rem;
}

.tg-share button.tg-share__i {
	min-width: 0;
	width: 36px;
	padding: 0;
	box-shadow: none;
}

/* The smallest phones, outside the footer: circles 6 px apart, boxes ≥ 24 × 24. */
@media (max-width: 23.99rem) {
	.tg-share__i,
	.tg-share button.tg-share__i {
		width: 34px;
	}
}

/* 1.10: while the "Add to home screen" hint shows, the footer leaves room under the icons, so the hint (fixed
   at the bottom of the window) never sits over them once the page is scrolled to the end; "Not now" removes it. */
body:has(.tg-a2hs:not([hidden])) .tg-footer:not(.tg-footer--share) {
	padding-bottom: var(--tg-a2hs-room, 14rem); /* Set by tg-forms.js to the hint's height + 2rem. */
}

/* ---------- 2.0 ads (Stream B): the home-page ad section (MyBrooksville's mdci-ads look, renamed tg-ads-*) ----------
   On the home page only, just above the footer. PC (48rem and up): a 24-column grid whose rows and gaps are in
   container units, so each tile stays close to its picture's own shape at every width (the pictures fill their
   tiles, never stretched). Phones: one column, each picture at its true proportions (never wider than its own
   size), with its price and "Reserve this spot" under it. */
.tg-ads {
	position: relative;
	padding: clamp(30px, 3.6vw, 44px) 0 clamp(56px, 7vw, 96px);
	background: radial-gradient(900px 420px at 8% 0, #e6f0c8 0, #e6f0c800 70%), radial-gradient(800px 500px at 100% 40%, #d3e7ee 0, #d3e7ee00 70%), linear-gradient(180deg, #cbdcad 0, #eef3dd 18%, #f6f8ec 100%);
	color: #08283b;
	font-family: Arial, Helvetica, sans-serif;
	overflow: hidden;
}
.tg-ads *,
.tg-ads *::before,
.tg-ads *::after {
	box-sizing: border-box;
}
.tg-ads::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 14px;
	background: linear-gradient(90deg, #ffb21e, #ff7a3d, #e83e8c, #7c5cff, #168fff, #19b653);
	opacity: .9;
}
.tg-ads__wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 clamp(16px, 3vw, 32px);
	container-type: inline-size;
}
.tg-ads__head {
	margin: 0 0 clamp(28px, 4vw, 48px) clamp(0px, 6vw, 96px);
	max-width: 820px;
}
.tg-ads__kicker {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: #b03a0a;
}
.tg-ads__head h2 {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(34px, 5.4vw, 66px);
	font-weight: 300;
	letter-spacing: .045em;
	line-height: 1.08;
	color: #0b2d42;
}
.tg-ads__head h2 span {
	display: block;
	font-weight: 800;
	letter-spacing: .02em;
	background: linear-gradient(95deg, #0b6b8a, #168fff 45%, #7c3aed);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.tg-ads__lede {
	margin: 18px 0 0;
	font-size: clamp(16px, 1.5vw, 19px);
	line-height: 1.6;
	color: #27495d;
	max-width: 640px;
}
.tg-ads__lede b {
	color: #0b2d42;
	background: linear-gradient(transparent 62%, #ffd77a 62%);
}
.tg-ads__key {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 18px 0 0;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	color: #27495d;
}
.tg-ads__key li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}
.tg-ads__key i,
.tg-ad__tag::before {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #7f8bc4;
	flex: 0 0 auto;
}
.tg-ads__key i.is-prem,
.tg-ad__tag.is-prem::before {
	background: #b98bc9;
}
.tg-ads__grid {
	display: grid;
	grid-template-columns: repeat(24, minmax(0, 1fr));
	grid-auto-rows: 9px;
	gap: 14px;
}
@supports (width: 1cqw) {
	.tg-ads__grid {
		grid-auto-rows: .8cqw;
		gap: 1.2cqw;
	}
}
.tg-ad {
	position: relative;
	display: block;
	overflow: hidden;
	isolation: isolate;
	color: #fff;
	text-decoration: none;
	background: #2a3b4a;
	border-radius: 18px;
	box-shadow: 0 2px 4px #0a233a26, 0 10px 22px #0a233a2e, 0 22px 44px -8px #0a233a38;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
	animation: tgAdFloat 7s ease-in-out infinite;
	animation-delay: calc(var(--d, 0) * -.7s);
}
@keyframes tgAdFloat {
	50% { transform: translateY(-4px); }
}
.tg-ad picture {
	display: contents;
}
.tg-ad .tg-ad__art {
	position: absolute;
	inset: 0;
	z-index: -1;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}
.tg-ad__tag,
.tg-ad__price,
.tg-ad__label {
	position: absolute;
	top: 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: 800 12px/1.3 Arial, Helvetica, sans-serif;
	letter-spacing: .02em;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .78);
	color: #fff;
	white-space: nowrap;
}
.tg-ad__tag {
	left: 10px;
	text-transform: uppercase;
}
.tg-ad__tag::before {
	content: "";
	width: 9px;
	height: 9px;
}
.tg-ad__price {
	right: 10px;
}
.tg-ad__label {
	left: 10px;
	font-size: 11px;
	font-weight: 700;
	background: rgba(255, 255, 255, .92);
	color: #0b2d42;
}
.tg-ad__cta {
	position: absolute;
	right: 10px;
	bottom: 9px;
	font: 800 12px/1.2 Arial, Helvetica, sans-serif;
	padding: 7px 12px;
	border-radius: 999px;
	background: #fff;
	color: #0b2d42;
	white-space: nowrap;
	box-shadow: 0 3px 10px #0004;
	transition: transform .3s;
}
a.tg-ad:hover,
a.tg-ad:focus-visible {
	animation-play-state: paused;
	transform: translateY(-8px) scale(1.012);
	box-shadow: 0 4px 8px #0a233a30, 0 18px 34px #0a233a40, 0 36px 64px -10px #0a233a55;
	z-index: 3;
}
a.tg-ad:hover .tg-ad__art {
	transform: scale(1.05);
}
.tg-ads a.tg-ad:focus-visible {
	outline: 3px solid #ffbf28;
	outline-offset: 4px;
}
.tg-ad.is-booked .tg-ad__art {
	filter: grayscale(.6) brightness(.75);
}
.tg-ads__note {
	margin: 30px 0 0;
	text-align: center;
	font-size: 14px;
	color: #3d5a6b;
}
.tg-ads__note a {
	color: #0b5f7c;
	font-weight: 700;
	text-decoration: underline;
}

/* PC: the mosaic (rows 1-51 of 0.8cqw, gaps 1.2cqw; each tile within about 8% of its picture's shape). */
@media (min-width: 48rem) {
	.tg-ad--billboard { grid-area: 1 / 1 / 11 / 19; border-radius: 28px; }
	.tg-ad--medium { grid-area: 1 / 19 / 11 / 25; border-radius: 20px; }
	.tg-ad--leader { grid-area: 11 / 1 / 16 / 17; border-radius: 999px; }
	.tg-ad--half { grid-area: 11 / 17 / 32 / 22; border-radius: 24px; }
	.tg-ad--wsky { grid-area: 11 / 22 / 32 / 25; border-radius: 16px; }
	.tg-ad--large { grid-area: 16 / 1 / 32 / 10; border-radius: 30px 8px 30px 8px; }
	.tg-ad--square { grid-area: 16 / 10 / 32 / 17; border-radius: 24px; }
	.tg-ad--vrect { grid-area: 32 / 1 / 49 / 6; border-radius: 18px; }
	.tg-ad--smsquare { grid-area: 32 / 6 / 49 / 13; border-radius: 22px; }
	.tg-ad--mlarge { grid-area: 32 / 13 / 40 / 25; border-radius: 22px; }
	.tg-ad--mleader { grid-area: 40 / 13 / 44 / 25; border-radius: 12px; }
	.tg-ad--mbanner { grid-area: 44 / 13 / 49 / 25; border-radius: 20px; }
	.tg-ad--lgleader { grid-area: 49 / 1 / 52 / 15; border-radius: 999px; }
	.tg-ad--banner { grid-area: 49 / 15 / 52 / 25; border-radius: 16px; }
	/* The thin spots: smaller pills along the top edge, clear of the picture's own words (they sit in its middle);
	   the price at the right end, the badge at the left; the button is for screen readers only there. */
	.tg-ad--leader .tg-ad__price,
	.tg-ad--lgleader .tg-ad__price,
	.tg-ad--banner .tg-ad__price,
	.tg-ad--mleader .tg-ad__price,
	.tg-ad--mbanner .tg-ad__price,
	.tg-ad--leader .tg-ad__tag,
	.tg-ad--lgleader .tg-ad__tag,
	.tg-ad--banner .tg-ad__tag,
	.tg-ad--mleader .tg-ad__tag,
	.tg-ad--mbanner .tg-ad__tag,
	.tg-ad--lgleader .tg-ad__label,
	.tg-ad--banner .tg-ad__label,
	.tg-ad--leader .tg-ad__label,
	.tg-ad--mleader .tg-ad__label,
	.tg-ad--mbanner .tg-ad__label {
		top: 3px;
		font-size: 11px;
		padding: 1px 7px;
	}
	.tg-ad--leader .tg-ad__price,
	.tg-ad--lgleader .tg-ad__price {
		right: 2.6cqw;
	}
	.tg-ad--leader .tg-ad__tag,
	.tg-ad--lgleader .tg-ad__tag,
	.tg-ad--leader .tg-ad__label,
	.tg-ad--lgleader .tg-ad__label {
		left: 2.6cqw;
	}
	.tg-ad--leader .tg-ad__cta,
	.tg-ad--lgleader .tg-ad__cta,
	.tg-ad--banner .tg-ad__cta,
	.tg-ad--mleader .tg-ad__cta,
	.tg-ad--mbanner .tg-ad__cta {
		position: absolute !important;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		border: 0;
	}
	/* The tall spots: the price at the bottom, the button above it. */
	.tg-ad--half .tg-ad__price,
	.tg-ad--wsky .tg-ad__price,
	.tg-ad--vrect .tg-ad__price {
		top: auto;
		bottom: 10px;
		left: 50%;
		right: auto;
		transform: translateX(-50%);
	}
	.tg-ad--half .tg-ad__cta,
	.tg-ad--wsky .tg-ad__cta,
	.tg-ad--vrect .tg-ad__cta {
		left: 50%;
		right: auto;
		bottom: 40px;
		transform: translateX(-50%);
	}
	.tg-ad--wsky .tg-ad__price,
	.tg-ad--wsky .tg-ad__cta {
		font-size: 11px;
		padding-left: 6px;
		padding-right: 6px;
	}
	.tg-ad--wsky .tg-ad__cta {
		white-space: normal;
		width: max-content;
		max-width: calc(100% - 12px);
		text-align: center;
	}
	.tg-ad--mlarge .tg-ad__cta {
		display: none;
	}
}

/* Phones: one column, true proportions, the price and the button under each picture (over it on every empty spot, 2.1.0). No sideways scroll at 320 px. */
@media (max-width: 47.99rem) {
	.tg-ads__head {
		margin-left: 0;
	}
	.tg-ads__grid {
		grid-template-columns: minmax(0, 1fr);
		grid-auto-rows: auto;
		gap: 14px;
	}
	.tg-ad {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 6px 8px;
		width: 100%;
		max-width: var(--w, 100%);
		justify-self: center;
		padding: 0 0 8px;
		background: #ffffff;
		color: #0b2d42;
		border-radius: 14px;
		animation: none;
	}
	.tg-ad .tg-ad__art {
		position: static;
		flex: 0 0 100%;
		width: 100%;
		height: auto;
		aspect-ratio: var(--ar);
		z-index: auto;
	}
	.tg-ad__tag,
	.tg-ad__price,
	.tg-ad__label,
	.tg-ad__cta {
		position: static;
		margin: 0 0 0 8px;
		transform: none;
		white-space: normal;
	}
	.tg-ad__price + .tg-ad__cta,
	.tg-ad__tag + .tg-ad__price {
		margin-left: 0;
	}
	.tg-ad__cta {
		padding: 3px 8px;
		box-shadow: none;
		border: 2px solid #0b2d42;
	}
	a.tg-ad:hover,
	a.tg-ad:focus-visible {
		transform: none;
	}
	/* 2.1.0: on the empty spots tall enough for it, the price and the button sit on the picture, the button over
	   the bottom of it on a dark fade (the owner's pictures keep their words in the middle; the bottom strip is clear),
	   the badge top-left as on PC. Tall spots: button above price at the bottom. Square-ish spots (their clear bottom
	   strip is only about 60 px): price top-right as on PC, button at the bottom. 320x100: one short row at the bottom.
	   The thin spots (970x250, 728x90, 468x60, 320x50, 300x50, 970x90) have their own block below.
	   Booked and rented tiles are untouched (every rule here needs .is-art). */
	.tg-ad.is-art:is(.tg-ad--half, .tg-ad--wsky, .tg-ad--vrect, .tg-ad--large, .tg-ad--medium, .tg-ad--square, .tg-ad--smsquare, .tg-ad--mlarge) {
		aspect-ratio: var(--ar);
		align-content: flex-end;
		justify-content: center;
		padding: 0 8px 10px;
		background: #0b2d42;
		color: #fff;
	}
	.tg-ad.is-art:is(.tg-ad--half, .tg-ad--wsky, .tg-ad--vrect, .tg-ad--large, .tg-ad--medium, .tg-ad--square, .tg-ad--smsquare, .tg-ad--mlarge) .tg-ad__art {
		position: absolute;
		inset: 0;
		height: 100%;
		aspect-ratio: auto;
		z-index: -1;
	}
	.tg-ad.is-art:is(.tg-ad--half, .tg-ad--wsky, .tg-ad--vrect, .tg-ad--large, .tg-ad--medium, .tg-ad--square, .tg-ad--smsquare, .tg-ad--mlarge)::after {
		content: "";
		position: absolute;
		inset: auto 0 0;
		height: min(40%, 110px);
		background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, .34) 55%, rgba(0, 0, 0, 0));
		z-index: -1;
		pointer-events: none;
	}
	.tg-ad.is-art:is(.tg-ad--half, .tg-ad--wsky, .tg-ad--vrect, .tg-ad--large, .tg-ad--medium, .tg-ad--square, .tg-ad--smsquare, .tg-ad--mlarge) :is(.tg-ad__tag, .tg-ad__price, .tg-ad__cta) {
		margin: 0;
		white-space: nowrap;
	}
	.tg-ad.is-art:is(.tg-ad--half, .tg-ad--wsky, .tg-ad--vrect, .tg-ad--large, .tg-ad--medium, .tg-ad--square, .tg-ad--smsquare, .tg-ad--mlarge) .tg-ad__tag {
		position: absolute;
	}
	.tg-ad.is-art:is(.tg-ad--half, .tg-ad--wsky, .tg-ad--vrect, .tg-ad--large, .tg-ad--medium, .tg-ad--square, .tg-ad--smsquare, .tg-ad--mlarge) .tg-ad__cta {
		padding: 5px 12px;
		border-color: #fff;
		background: #0b2d42;
		color: #fff;
		box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
	}
	/* Tall spots, as on PC: the price at the bottom, the button on its own line above it. */
	.tg-ad.is-art:is(.tg-ad--half, .tg-ad--wsky, .tg-ad--vrect)::before {
		content: "";
		order: 2;
		flex: 0 0 100%;
		height: 0;
	}
	.tg-ad.is-art:is(.tg-ad--half, .tg-ad--wsky, .tg-ad--vrect) .tg-ad__cta {
		order: 1;
	}
	.tg-ad.is-art:is(.tg-ad--half, .tg-ad--wsky, .tg-ad--vrect) .tg-ad__price {
		order: 3;
	}
	/* Square-ish spots: the price in the top-right corner, a shorter fade. */
	.tg-ad.is-art:is(.tg-ad--large, .tg-ad--medium, .tg-ad--square, .tg-ad--smsquare) .tg-ad__price {
		position: absolute;
	}
	.tg-ad.is-art:is(.tg-ad--large, .tg-ad--medium, .tg-ad--square, .tg-ad--smsquare)::after {
		height: 32%;
	}
	/* 320x100 (100 px tall, about 34 px clear at the bottom): price and button side by side, smaller. */
	.tg-ad.is-art.tg-ad--mlarge {
		padding-bottom: 8px;
	}
	.tg-ad.is-art.tg-ad--mlarge::after {
		height: 48%;
	}
	.tg-ad.is-art.tg-ad--mlarge :is(.tg-ad__price, .tg-ad__cta) {
		font-size: 11px;
	}
	.tg-ad.is-art.tg-ad--mlarge .tg-ad__cta {
		padding: 2px 9px;
	}
	/* 160x600 (160 px wide): price and button stacked, a little smaller. */
	.tg-ad.is-art.tg-ad--wsky :is(.tg-ad__price, .tg-ad__cta) {
		font-size: 11px;
	}
	.tg-ad.is-art.tg-ad--wsky .tg-ad__cta {
		padding: 4px 8px;
	}
	/* Badge plus price on the small squares: at 390 px a badge (top left, about 90-131 px wide) and the price (top right,
	   about 131 px) collide on 250x250 (250 px wide) and 200x200 (200 px). Today only 970x250, 300x250, 728x90 and
	   300x600 carry a badge (TG_Ad_Spots::SPOTS; tested), but the owner can mark any spot on the Ads screen: then the
	   price drops below the badge row (the pictures' words start lower, at about 57 px on 200x200). */
	.tg-ad.is-art:is(.tg-ad--square, .tg-ad--smsquare):has(.tg-ad__tag) .tg-ad__price {
		top: 34px;
	}
	/* 2.1.0, the thin spots (owner, 2026-11-11): the price and the button on the picture too, small (10-11 px), at the
	   right edge, so the picture's "ADVERTISE HERE" stays readable; they may cover its size pill ("728 x 90").
	   At 390 px: 970x250 (358x92): badge top left, price top right, button bottom right (as on PC; 11 px; the words sit
	   at 20-38 px, the size pill at 49-72 px left of the button). 728x90 (358x44), 970x90, 468x60 (358x46), 320x50,
	   300x50: price top right, button bottom right, a narrow column over the size pill (10 px); the words end 5-12 px
	   left of it; the 728x90 badge sits in the clear strip above the words (they start at about 15 px).
	   970x90 is only 33 px tall at 390 px: min-height 44px keeps the tile (the one link) a 44 px tap target; the
	   picture then fills it like a cover (its sides trimmed about 58 px each, clear of the words). */
	.tg-ad.is-art:is(.tg-ad--billboard, .tg-ad--leader, .tg-ad--lgleader, .tg-ad--banner, .tg-ad--mleader, .tg-ad--mbanner) {
		display: block;
		aspect-ratio: var(--ar);
		min-height: 44px;
		padding: 0;
		background: #0b2d42;
		color: #fff;
	}
	.tg-ad.is-art:is(.tg-ad--billboard, .tg-ad--leader, .tg-ad--lgleader, .tg-ad--banner, .tg-ad--mleader, .tg-ad--mbanner) .tg-ad__art {
		position: absolute;
		inset: 0;
		height: 100%;
		aspect-ratio: auto;
		z-index: -1;
	}
	.tg-ad.is-art:is(.tg-ad--billboard, .tg-ad--leader, .tg-ad--lgleader, .tg-ad--banner, .tg-ad--mleader, .tg-ad--mbanner) :is(.tg-ad__tag, .tg-ad__price, .tg-ad__cta) {
		position: absolute;
		margin: 0;
		white-space: nowrap;
		font-size: 10px;
		line-height: 1.1;
		padding: 1px 6px;
	}
	.tg-ad.is-art:is(.tg-ad--billboard, .tg-ad--leader, .tg-ad--lgleader, .tg-ad--banner, .tg-ad--mleader, .tg-ad--mbanner) .tg-ad__tag {
		top: 1px;
		left: 6px;
	}
	.tg-ad.is-art:is(.tg-ad--billboard, .tg-ad--leader, .tg-ad--lgleader, .tg-ad--banner, .tg-ad--mleader, .tg-ad--mbanner) .tg-ad__price {
		top: 1px;
		right: 6px;
	}
	.tg-ad.is-art:is(.tg-ad--billboard, .tg-ad--leader, .tg-ad--lgleader, .tg-ad--banner, .tg-ad--mleader, .tg-ad--mbanner) .tg-ad__cta {
		bottom: 3px;
		right: 6px;
		border: 1px solid #fff;
		background: #0b2d42;
		color: #fff;
		box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
	}
	.tg-ad.is-art.tg-ad--billboard :is(.tg-ad__tag, .tg-ad__price, .tg-ad__cta) {
		font-size: 11px;
		line-height: 1.2;
		padding: 1px 7px;
	}
	.tg-ad.is-art.tg-ad--billboard :is(.tg-ad__tag, .tg-ad__price) {
		top: 3px;
	}
	.tg-ad.is-art.tg-ad--billboard .tg-ad__cta {
		bottom: 4px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.tg-ad,
	.tg-ad .tg-ad__art {
		animation: none;
		transition: none;
	}
}
.tg-myads {
	list-style: none;
	margin: 0 0 var(--tg-s5);
	padding: 0;
	display: grid;
	gap: var(--tg-s3);
}
.tg-myad {
	min-width: 0; /* 2.6.0 (C1): a wide (or broken) picture can't stretch the card past a phone screen. */
}
.tg-myad__img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin: 0 0 var(--tg-s2);
}
.tg-myad__link {
	color: var(--tg-muted);
	overflow-wrap: anywhere;
}
.tg-ad-rules ul {
	margin: 0 0 var(--tg-s3);
	padding-left: 1.2rem;
}
/* ---------- end 2.0 ads ---------- */

/* ---------- 2.5.0: Featured places (Create and Edit, the town page, My ads) ---------- */
.tg-featured { border: 2px solid var(--tg-sky); background: var(--tg-sky-pale); border-radius: var(--tg-radius); padding: 12px 14px; margin: 12px 0; }
.tg-featured__head { font-weight: 700; margin: 0 0 2px; font-size: 1.05em; }
.tg-featured__help { font-size: .9em; color: var(--tg-muted); margin: 0 0 8px; }
.tg-sponsored { display: inline-block; font-size: .72em; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: #fff; border: 1px solid var(--tg-muted); color: var(--tg-muted); border-radius: 4px; padding: 0 6px; margin-left: 6px; vertical-align: 2px; line-height: 1.6; }
.tg-featured .tg-radio { background: #fff; border-radius: 8px; margin: 6px 0; }
.tg-featured--town h2 { margin: 0 0 2px; font-size: 1.2em; }
.tg-featured--town ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.tg-featured--town li { background: #fff; border: 1px solid var(--tg-line); border-radius: 8px; padding: 10px 12px; }
.tg-featured__addr { display: block; color: var(--tg-muted); font-size: .9em; }
.tg-featured__go { display: inline-block; margin-top: 6px; font-weight: 600; }
.tg-myad__featured { margin: 12px 0; }
.tg-myad__featured select { max-width: 100%; }
@media (min-width: 900px) { .tg-featured--town ul { grid-template-columns: repeat(3, 1fr); } }
