/*
Theme Name: TownGathering
Description: Block theme for TownGathering, a free site where adults meet at public places in their Florida town around shared interests. Every app screen is drawn by the TownGathering Core plugin through shortcodes.
Author: Monkiey LLC
Version: 1.10.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.1
License: All rights reserved, Monkiey LLC
Text Domain: towngathering-theme
*/

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	overflow-wrap: break-word;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

/* Skip link: visible when focused. */
.skip-link.screen-reader-text:focus,
.tgt-skip-link:focus {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 100000;
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
	padding: 12px 16px;
	background: #ffffff;
	color: #1C2430;
	font-weight: 700;
	text-decoration: underline;
	outline: 3px solid #163F78;
	outline-offset: 2px;
}

/* Visible focus everywhere. */
:focus-visible {
	outline: 3px solid #163F78;
	outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 3px solid #163F78;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px #ffffff;
}

/* Comfortable touch targets. */
button,
input[type="submit"],
input[type="button"],
.wp-element-button,
.wp-block-button__link {
	min-height: 44px;
	min-width: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

input,
select,
textarea {
	font: inherit;
	min-height: 44px;
	max-width: 100%;
}

/* Header: a navy band with a sky stripe (1.0.3: blues and greens only). */
.tgt-header {
	background: #123A6B;
	border-bottom: 4px solid #5EC4EA;
	position: relative;
	z-index: 20;
}

/* Phones and tablets keep the 1.0.3 preview's header padding (8 px). */
@media (max-width: 63.99rem) {
	.tgt-header.wp-block-group {
		padding-top: 0.5rem !important;
		padding-bottom: 0.5rem !important;
	}
}

.tgt-header__bar {
	min-height: 0;
}

.tgt-header__bar > .tg-header {
	flex: 1 1 auto;
}

/* 1.6 (TODO 10 §1): the footer stays at the bottom on short pages. The page is
   a column at least as tall as the window (minus the admin bar), and the main
   area takes the spare room. */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

.admin-bar .wp-site-blocks {
	min-height: calc(100vh - 32px);
	min-height: calc(100dvh - 32px);
}

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

.wp-site-blocks > main {
	flex: 1 0 auto;
}

.wp-site-blocks > header,
.wp-site-blocks > footer {
	flex-shrink: 0;
}

/* Footer: a grass band with a lighter grass stripe on top. */
.tgt-footer {
	border-top: 3px solid #6CA11C;
}

/* Headings in the rounded display font (bundled, see readme). */
h1,
h2,
h3,
.wp-block-post-title {
	font-family: var(--wp--preset--font-family--display);
	letter-spacing: 0.005em;
}

/* Keep long content from causing horizontal scroll on phones. */
.wp-site-blocks,
main {
	overflow-x: clip;
}

table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

pre {
	white-space: pre-wrap;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
