/*
 Theme Name:   GCT 2025
 Description:  Groton Conservation Trust theme. A Twenty Twenty-Five child theme that reproduces the classic Twenty Eleven design (1000px white page, logo over a rotating header photo, black menu bar, right sidebar).
 Author:       Groton Conservation Trust
 Template:     twentytwentyfive
 Version:      0.1.0
 Requires at least: 6.7
 Requires PHP: 8.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  gctrust
*/

/* ---------- Page frame (Twenty Eleven #page) ---------- */
.wp-site-blocks {
	padding: 0 30px;
}
.gct-page {
	max-width: 1000px;
	margin: 30px auto 0 !important;
	background: var(--wp--preset--color--base);
}
.gct-page > * {
	margin-block-start: 0 !important;
}

/* ---------- Header: white band, logo overlapping the photo ---------- */
.gct-branding {
	position: relative;
	padding-top: 75px;
	padding-bottom: 0;
}
.gct-branding .gct-logo {
	position: absolute;
	top: 3px;
	left: 75px;
	margin: 0;
	z-index: 2;
	max-width: calc(100% - 90px);
}
.gct-branding .gct-logo img {
	width: 592px;
	max-width: 100%;
	height: auto;
}
.gct-branding .gct-header-image {
	margin: 0 !important;
	line-height: 0;
}
/* Tagline over the bottom-left of the header photo */
.gct-branding .gct-tagline {
	position: absolute;
	left: 7.6%;
	bottom: 18px;
	margin: 0 !important;
	z-index: 2;
	color: var(--wp--preset--color--base);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 30px;
	font-style: italic;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 0 18px rgba(0, 0, 0, 0.45);
	/* Translucent box so the white text stays readable over snow/sky */
	background: rgba(0, 0, 0, 0.55);
	padding: 6px 16px 8px;
	border-radius: 4px;
	pointer-events: none;
}
/* Donate button at the right end of the menu bar, always visible */
.gct-access {
	align-items: center;
	gap: 12px;
}
.gct-access .gct-nav {
	flex: 1 1 auto;
	min-width: 0;
}
.gct-header-donate {
	flex: none;
	margin: 0 !important;
}
.gct-header-donate .wp-block-button__link {
	font-size: 14px !important;
	padding: 6px 18px !important;
	line-height: 1.4;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
/* header photo sits directly on the menu bar */
header.wp-block-template-part > * {
	margin-block-start: 0 !important;
}
.gct-branding .gct-header-image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 400px;
	object-fit: cover;
	object-position: center 40%;
}

/* ---------- Menu bar (Twenty Eleven #access) ---------- */
.gct-access {
	background: linear-gradient(to bottom, #252525, #0a0a0a);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
	margin: 0 0 6px !important;
	padding: 0 7.6%;
	min-height: 43px;
}
.gct-access .wp-block-navigation {
	gap: 0;
	font-size: 15px !important;
}
.gct-access .wp-block-navigation .wp-block-navigation-item__content {
	color: #eee;
	line-height: 43px;
	padding: 0 1.2125em;
	font-weight: 300;
}
.gct-access .wp-block-navigation > .wp-block-navigation__container > .wp-block-navigation-item:first-child > .wp-block-navigation-item__content {
	padding-left: 0.4em;
}
.gct-access .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
.gct-access .wp-block-navigation-item:focus-within > .wp-block-navigation-item__content {
	background: linear-gradient(to bottom, var(--wp--preset--color--subtle), #e5e5e5);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.gct-access .current-menu-item > .wp-block-navigation-item__content,
.gct-access .current-menu-ancestor > .wp-block-navigation-item__content {
	font-weight: bold;
}
/* drop-downs */
.gct-access .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--subtle) !important;
	border: 0 !important;
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	min-width: 188px !important;
	padding: 0 !important;
}
.gct-access .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: #444 !important;
	font-size: 13px;
	line-height: 1.4em;
	padding: 10px !important;
	border-bottom: 1px dotted var(--wp--preset--color--border);
	width: 168px;
}
.gct-access .wp-block-navigation__submenu-container .wp-block-navigation-item:hover > .wp-block-navigation-item__content {
	background: #efefef;
}
.gct-access .wp-block-navigation__submenu-icon {
	display: none;
}
/* mobile overlay menu button: icon plus a "Menu" label, big tap target */
.gct-access .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--base);
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 12px 0 0;
	font-size: 16px;
	font-weight: 400;
}
.gct-access .wp-block-navigation__responsive-container-open svg {
	width: 28px;
	height: 28px;
}
.gct-access .wp-block-navigation__responsive-container-open::after {
	content: "Menu";
}
/* Only below WordPress's 600px overlay breakpoint; core hides the button above it. */
@media (max-width: 599px) {
	.gct-access .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
}

/* ---------- Mobile overlay menu (open) ----------
   Full-screen dark panel; the top-level items become section headings
   and every page link is a full-width row at least 44px tall. */
.gct-access .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--nav) !important;
	color: #f2f2f2 !important;
	padding: 12px 24px 40px !important;
}
.gct-access .is-menu-open .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--base);
	top: 10px;
	right: 14px;
	padding: 8px;
}
.gct-access .is-menu-open .wp-block-navigation__responsive-container-close svg {
	width: 30px;
	height: 30px;
}
.gct-access .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 44px !important;
	align-items: stretch !important;
	gap: 0 !important;
}
.gct-access .is-menu-open .wp-block-navigation__container,
.gct-access .is-menu-open .wp-block-navigation-item {
	width: 100%;
	gap: 0 !important;
	align-items: stretch !important;
}
.gct-access .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	color: #3ccf40 !important;
	background: none !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.3;
	padding: 24px 0 8px !important;
	border-bottom: 1px solid #3a3a3a;
}
.gct-access .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:first-child > .wp-block-navigation-item__content {
	padding-top: 4px !important;
}
.gct-access .is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important;
	box-shadow: none;
	min-width: 0 !important;
	width: 100%;
	padding: 0 !important;
	gap: 0 !important;
}
.gct-access .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: #f2f2f2 !important;
	background: none !important;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.35;
	padding: 12px 0 !important;
	width: auto;
	border-bottom: 1px solid #2a2a2a;
}
.gct-access .is-menu-open .wp-block-navigation-item__content:hover,
.gct-access .is-menu-open .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--base) !important;
	text-decoration: underline;
}
.gct-access .is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	color: #3ccf40 !important;
	font-weight: 700;
}

/* ---------- Main area ---------- */
.gct-main {
	padding: 1.625em 0 0;
	margin: 0 !important;
}
.gct-columns {
	gap: 0 76px !important;
	margin: 0 76px !important;
	align-items: flex-start !important;
}
.gct-columns > .gct-content {
	flex: 0 1 584px !important;
	min-width: 0;
}
.gct-columns > .gct-sidebar {
	flex: 0 0 188px !important;
	margin-left: auto;
}

/* Posts on the blog/home page */
.gct-content .wp-block-post-template > li {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-bottom: 1.625em;
	margin-bottom: 1.625em;
}
.gct-entry-meta {
	font-size: 12px;
	color: var(--wp--preset--color--muted);
	margin-top: 0 !important;
	gap: 0.3em !important;
}
.gct-entry-meta p,
.gct-entry-meta .wp-block-post-date,
.gct-entry-meta .wp-block-post-author-name {
	margin: 0;
	font-size: 12px;
}
.gct-entry-meta a {
	font-weight: bold;
	color: var(--wp--preset--color--link);
}
.gct-content .wp-block-post-title {
	padding-right: 76px;
	line-height: 39px;
	margin: 0 !important;
}
.gct-content .wp-block-post-content {
	padding-top: 1.625em;
	margin-top: 0 !important;
}
.wp-block-post-title a {
	color: var(--wp--preset--color--heading);
}
.wp-block-post-title a:hover {
	color: var(--wp--preset--color--link);
	text-decoration: none;
}
.gct-older-newer {
	margin: 1.625em 0 !important;
	font-size: 12px;
}
/* Older on the left, newer on the right, like the previous/next links on a post
   (core pushes a lone "Older posts" link to the right edge) */
.gct-older-newer .wp-block-query-pagination-next {
	margin-inline-start: 0 !important;
	margin-inline-end: auto !important;
}
.gct-older-newer .wp-block-query-pagination-previous {
	margin-inline-start: auto !important;
	margin-inline-end: 0 !important;
}

/* Singular pages/posts: centered 584px column, big title.
   Also the size container the map and directory break out to (100cqw). */
.gct-singular {
	container-type: inline-size;
}
.gct-singular .wp-block-post-title {
	font-size: 36px;
	line-height: 48px;
	padding-top: 15px;
}
.gct-singular .wp-block-post-content {
	padding-top: 0.6em;
}
.gct-post-nav {
	font-size: 12px;
}

/* Content defaults carried over from Twenty Eleven */
.wp-block-post-content p {
	margin-bottom: 1.625em;
}
.wp-block-post-content img {
	height: auto;
}
.wp-block-post-content figure.wp-caption,
.wp-block-post-content .alignleft,
.wp-block-post-content .alignright {
	max-width: 100%;
}
.wp-block-post-content .alignleft { float: left; margin-right: 1.625em; }
.wp-block-post-content .alignright { float: right; margin-left: 1.625em; }
.wp-block-post-content .aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-post-content strong,
.wp-block-post-content b { font-weight: 700; }

/* ---------- Sidebar (Twenty Eleven #secondary widgets) ---------- */
.gct-sidebar {
	font-size: 12px;
	line-height: 1.625;
	hyphens: auto;
}
.gct-sidebar > * + * {
	margin-top: 26.4px !important;
}
.gct-sidebar .gct-widget-title {
	color: var(--wp--preset--color--muted);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 2.6em;
	text-transform: uppercase;
	margin: 0 !important;
}
.gct-sidebar .gct-widget-title + * {
	margin-top: 0 !important;
}
/* Outlined sidebar boxes (mission, sponsors) */
.gct-side-box {
	border: 1px solid var(--wp--preset--color--leaf-edge);
	border-top: 3px solid var(--wp--preset--color--green);
	border-radius: 4px;
	padding: 12px 14px 14px !important;
	background: var(--wp--preset--color--base);
}
.gct-side-box > * {
	margin: 0 !important;
}
.gct-side-box > * + * {
	margin-top: 10px !important;
}
.gct-side-box__title {
	color: var(--wp--preset--color--forest-ink) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em;
	line-height: 1.3 !important;
	text-transform: uppercase;
	hyphens: none;
}
.gct-mission {
	background: var(--wp--preset--color--leaf-tint);
}
.gct-sidebar aside > * + * {
	margin-top: 22px !important;
}
.gct-mission p {
	color: var(--wp--preset--color--heading);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	hyphens: none;
}
/* Recent wildlife (server-rendered iNaturalist list) */
.gct-inat {
	list-style: none;
	margin: 0;
	padding: 0;
}
.gct-inat li {
	display: flex;
	gap: 10px;
	align-items: center;
	line-height: 1.35;
}
.gct-inat li + li {
	margin-top: 10px;
}
.gct-inat__nophoto {
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 2px;
	background: var(--wp--preset--color--leaf-tint);
}
.gct-inat img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 2px;
}
.gct-inat__date {
	display: block;
	color: var(--wp--preset--color--muted);
}
.gct-inat__more {
	margin-top: 10px !important;
}
.gct-sponsors p {
	color: #555;
	font-size: 12px;
	line-height: 1.5;
}
.gct-sponsors .wp-block-image img {
	width: 100%;
	height: auto;
}
.gct-sidebar strong { font-weight: 700; }
.gct-sidebar .wp-block-image { margin-bottom: 0; }
.gct-sidebar .wp-block-search__inside-wrapper {
	border: 0;
	padding: 0;
}
.gct-sidebar .wp-block-search__input {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='6.5' cy='6.5' r='5'/%3E%3Cpath d='M10.5 10.5 15 15'/%3E%3C/svg%3E") no-repeat 8px 50% / 14px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 2px;
	padding: 4px 10px 4px 28px;
	font-size: 14px;
	height: 31px;
	width: 184px;
	flex: none;
}
/* Search field outside the sidebar (404, search results): same plain field, not a pill */
.wp-block-search__input {
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 8px 10px;
	font-size: 15px;
}
.gct-sidebar .wp-block-search__button {
	display: none;
}

/* Donate button (old .button-donate) */
.wp-block-button.gct-donate .wp-block-button__link,
a.button-donate {
	background: linear-gradient(to bottom, var(--wp--preset--color--forest-ink), #296b2c);
	border-radius: 28px;
	color: var(--wp--preset--color--base) !important;
	font-family: Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	padding: 10px 20px;
	text-decoration: none;
}
.wp-block-button.gct-donate .wp-block-button__link:hover,
a.button-donate:hover {
	background: linear-gradient(to bottom, #276629, #1f5222);
	text-decoration: none;
}

/* Visible keyboard focus on theme buttons */
.wp-block-button__link:focus-visible,
.gct-dir__filters button:focus-visible,
.gct-dir__links button:focus-visible,
.gct-dir__empty button:focus-visible,
.gct-map__buttons button:focus-visible {
	outline: 3px solid var(--wp--preset--color--link);
	outline-offset: 2px;
}
/* ---------- Footer (Twenty Eleven #site-generator) ---------- */
.gct-site-generator {
	background: var(--wp--preset--color--subtle);
	border-top: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--muted);
	font-size: 12px;
	line-height: 2.2em;
	padding: 2.2em 0.5em !important;
	text-align: center;
	margin-top: 1.625em !important;
}
.gct-site-generator a {
	color: #555;
	font-weight: bold;
}

/* ---------- Front page intro + cards ---------- */
.gct-front-intro {
	margin-bottom: 1.625em;
}
.paged .gct-front-intro {
	display: none;
}
.gct-lede {
	font-size: 18px;
	line-height: 1.5;
	color: var(--wp--preset--color--heading);
	margin: 0 0 1.2em !important;
}
.gct-cards {
	gap: 18px !important;
	margin: 0 !important;
}
.gct-card {
	background: var(--wp--preset--color--subtle);
	border: 1px solid var(--wp--preset--color--border);
	font-size: 13px;
	line-height: 1.5;
}
.gct-card > * {
	margin: 0 !important;
}
.gct-card .wp-block-image img {
	display: block;
	width: 100%;
	height: 90px;
	object-fit: cover;
}
.gct-card h2 {
	font-size: 15px;
	padding: 10px 10px 2px;
}
.gct-card h2 a {
	color: var(--wp--preset--color--heading);
}
.gct-card p {
	padding: 0 10px 12px;
	color: #555;
}
.gct-card:hover {
	border-color: #bbb;
}
.gct-section-title {
	color: var(--wp--preset--color--muted);
	font-size: 12px !important;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--wp--preset--color--border);
	margin: 2em 0 1.625em !important;
	padding-bottom: 4px;
}

/* ---------- Featured property (front page) ---------- */
.gct-featured {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 14px 20px;
	align-items: start;
	background: var(--wp--preset--color--leaf-tint);
	border: 1px solid var(--wp--preset--color--leaf-edge);
	border-radius: 4px;
	padding: 14px;
	font-size: 14px;
	line-height: 1.5;
}
.gct-featured__map {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;   /* must match $aspect in inc/featured-property.php */
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--leaf-edge);
	border-radius: 2px;
}
.gct-featured__map img {
	position: absolute;
	max-width: none;
	height: auto;
}
/* Same orange "this one" ring the Explore map uses when you arrive from the directory */
.gct-featured__spot {
	position: absolute;
	width: 22px;
	height: 22px;
	transform: translate(-50%, -50%);
	border: 3px solid #e8590c;
	border-radius: 50%;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 7px rgba(232, 89, 12, 0.3);
}
.gct-featured__body > * {
	margin: 0 !important;
}
.gct-featured__body h3 {
	font-size: 20px;
	line-height: 1.3;
}
.gct-featured__body h3 a {
	color: var(--wp--preset--color--heading);
}
.gct-featured__num {
	color: var(--wp--preset--color--moss-ink);
	font-size: 13px;
}
.gct-featured__meta {
	margin-top: 6px !important;
}
.gct-featured .gct-activities {
	border-top: 0;
	margin-top: 8px !important;
	padding: 0;
}
.gct-featured__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-top: 10px !important;
	font-weight: 700;
}
/* ---------- Post list (excerpts with thumbnails) ---------- */
.gct-post-list .wp-block-post-template > li {
	overflow: hidden;
}
.gct-post-list .gct-thumb {
	float: left;
	margin: 6px 18px 6px 0 !important;
}
.gct-post-list .gct-thumb img {
	object-fit: cover;
	border: 1px solid var(--wp--preset--color--border);
}
.gct-post-list .wp-block-post-title {
	font-size: 20px !important;
	line-height: 1.4 !important;
	padding-right: 0 !important;
	margin: 0 !important;
}
.gct-post-list .gct-entry-meta {
	margin: 2px 0 6px !important;
}
.gct-post-list .wp-block-post-excerpt {
	margin: 0 !important;
}
.gct-post-list .wp-block-post-excerpt__excerpt {
	margin: 0 0 0.4em;
}
.gct-post-list .wp-block-post-excerpt__more-link {
	font-weight: bold;
	font-size: 13px;
}

/* ---------- Footer columns ---------- */
.gct-footer-cols {
	max-width: 760px;
	margin: 0 auto 1em !important;
	gap: 2em !important;
	text-align: left;
	line-height: 1.6;
}
.gct-footer-cols .wp-block-column:last-child {
	text-align: center;
}
.gct-footer-cols .gct-widget-title {
	color: var(--wp--preset--color--muted);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0 0 0.4em !important;
}
.gct-footer-cols p {
	margin: 0 !important;
}
.gct-site-generator .gct-footer-cols a {
	font-weight: normal;
	color: var(--wp--preset--color--link);
}
.gct-social {
	margin: 0.4em 0 0.6em !important;
	gap: 12px !important;
}
.gct-copyright {
	border-top: 1px solid #e5e5e5;
	padding-top: 1em;
	margin: 0 !important;
	color: var(--wp--preset--color--muted);
}

/* ---------- Single post: support box + post navigation ---------- */
.gct-singular .gct-byline {
	margin-top: 0 !important;
}
.gct-support {
	background: var(--wp--preset--color--leaf-tint);
	border: 1px solid var(--wp--preset--color--leaf-edge);
	border-radius: 4px;
	padding: 18px 20px !important;
	margin-top: 2em !important;
}
.gct-support-text {
	margin: 0 0 12px !important;
	font-size: 14px;
	line-height: 1.5;
}
.gct-support-text strong,
.gct-front-intro strong {
	font-weight: 700;
}
.gct-post-list .wp-block-post-excerpt__more-text {
	margin-top: 0.2em !important;
}
.gct-support .wp-block-buttons {
	gap: 10px;
}
.wp-block-button.gct-secondary .wp-block-button__link {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--green);
	border-radius: 28px;
	color: var(--wp--preset--color--forest-ink) !important;
	font-size: 14px;
	padding: 9px 18px;
}
.gct-cats {
	margin-top: 1.2em !important;
}
.gct-post-nav {
	border-top: 1px solid var(--wp--preset--color--border);
	margin-top: 1.625em !important;
	padding-top: 1em;
	font-size: 13px;
	gap: 2em !important;
}
.gct-post-nav .post-navigation-link-previous,
.gct-post-nav .post-navigation-link-next {
	max-width: 48%;
}
.gct-post-nav .post-navigation-link-next {
	text-align: right;
	margin-left: auto;
}

/* ---------- Property pages ---------- */
.gct-property .gct-byline {
	display: none !important;
}
.gct-property-box {
	box-sizing: border-box;
	background: var(--wp--preset--color--leaf-tint);
	border: 1px solid var(--wp--preset--color--leaf-edge);
	border-radius: 4px;
	padding: 16px 20px 14px;
	margin: 0.4em 0 1.8em;
	font-size: 14px;
	line-height: 1.5;
}
.gct-property-box__title {
	color: #4a7a3a !important;
	font-size: 12px !important;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.5 !important;
	text-transform: uppercase;
	margin: 0 0 10px !important;
}
.gct-property-box dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 6px 18px;
	margin: 0;
}
.gct-property-box dl > div {
	display: contents;
}
.gct-property-box dt {
	font-weight: 700;
	color: var(--wp--preset--color--heading);
}
.gct-property-box dd {
	margin: 0;
}
.gct-property-box a {
	font-weight: 600;
}
.gct-activities {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0 0;
	padding: 10px 0 0;
	border-top: 1px solid #dceccf;
}
.gct-activities li {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--leaf-edge);
	border-radius: 14px;
	padding: 1px 10px;
	font-size: 12px;
	color: var(--wp--preset--color--moss-ink);
}

/* ---------- Interactive property map (Explore GCT Land) ---------- */
.gct-map {
	/* break out of the 584px text column to the full 1000px page */
	width: 100cqw;
	margin: 1.2em 0 2em calc(50% - 50cqw) !important;
	max-width: none !important;
}
.gct-map__toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px 16px;
	padding: 8px 12px;
	background: var(--wp--preset--color--leaf-tint);
	border: 1px solid var(--wp--preset--color--leaf-edge);
	border-bottom: 0;
	font-size: 13px;
	line-height: 1.4;
}
.gct-map__hint {
	color: var(--wp--preset--color--moss-ink);
}
.gct-map__buttons {
	display: flex;
	gap: 6px;
	align-items: center;
	white-space: nowrap;
}
.gct-map__buttons button {
	background: var(--wp--preset--color--base);
	border: 1px solid #b9d6aa;
	border-radius: 4px;
	color: var(--wp--preset--color--heading);
	cursor: pointer;
	font: 600 14px/1 Arial, sans-serif;
	min-width: 32px;
	padding: 7px 9px;
}
.gct-map__buttons button:hover,
.gct-map__buttons button:focus-visible {
	background: #e8f3e1;
}
.gct-map__buttons a {
	font-weight: 600;
	margin-left: 6px;
}
.gct-map__viewport {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--leaf-edge);
	background: var(--wp--preset--color--base);
	cursor: zoom-in;
	touch-action: pan-y;
}
.gct-map.is-zoomed .gct-map__viewport {
	cursor: grab;
	touch-action: none;
}
.gct-map__viewport.is-dragging {
	cursor: grabbing;
}
.gct-map__viewport:focus-visible {
	outline: 3px solid var(--wp--preset--color--link);
	outline-offset: 2px;
}
.gct-map__canvas {
	position: relative;
	transform-origin: 0 0;
	transition: transform 0.15s ease-out;
}
.gct-map__viewport.is-dragging .gct-map__canvas {
	transition: none;
}
.gct-map__canvas img {
	display: block;
	width: 100%;
	height: auto;
	user-select: none;
}
.gct-map__spot {
	position: absolute;
	width: calc(1.6% / var(--z, 1));
	min-width: calc(14px / var(--z, 1));
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	border: calc(2px / var(--z, 1)) solid rgba(43, 184, 47, 0.9);
	border-radius: 50%;
	background: transparent;
	box-shadow: 0 0 0 calc(2px / var(--z, 1)) rgba(255, 255, 255, 0.75);
	transition: background 0.15s, transform 0.15s;
}
.gct-map__spot:hover,
.gct-map__spot:focus-visible {
	background: rgba(52, 217, 110, 0.55);
	transform: translate(-50%, -50%) scale(1.25);
	outline: none;
}
.gct-map__legend {
	position: absolute;
	border-radius: 2px;
}
.gct-map__legend:hover {
	background: rgba(52, 217, 110, 0.28);
}
.gct-map__tip {
	position: absolute;
	transform: translate(-50%, calc(-100% - 8px));
	background: var(--wp--preset--color--heading);
	color: var(--wp--preset--color--base);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	padding: 5px 9px;
	border-radius: 4px;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.1s;
	z-index: 5;
}
.gct-map__tip.is-visible {
	opacity: 1;
}

.gct-map__spot.is-focus {
	border-color: #e8590c;
	box-shadow: 0 0 0 calc(3px / var(--z, 1)) rgba(255, 255, 255, 0.9), 0 0 0 calc(8px / var(--z, 1)) rgba(232, 89, 12, 0.35);
	animation: gct-pulse 1.2s ease-out 3;
}
@keyframes gct-pulse {
	50% { transform: translate(-50%, -50%) scale(1.6); }
}
/* Fingers need a bigger target than the drawn ring; it stays the same size on screen at any zoom. */
@media (pointer: coarse) {
	.gct-map__spot::after {
		content: "";
		position: absolute;
		left: 50%;
		top: 50%;
		width: calc(28px / var(--z, 1));
		height: calc(28px / var(--z, 1));
		transform: translate(-50%, -50%);
		border-radius: 50%;
	}
}
@media (prefers-reduced-motion: reduce) {
	.gct-map__canvas,
	.gct-map__spot,
	.gct-dir__item {
		transition: none;
	}
	.gct-map__spot.is-focus {
		animation: none;
	}
}

/* ---------- Property directory (replaces the old land list table) ---------- */
.gct-dir {
	width: 100cqw;
	margin: 2.4em 0 2em calc(50% - 50cqw);
	padding: 0 24px;
	box-sizing: border-box;
}
.gct-dir__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1em;
	border-bottom: 1px solid var(--wp--preset--color--border);
	margin-bottom: 14px;
}
.gct-dir__head h2 {
	font-size: 22px !important;
	margin: 0 0 6px !important;
}
.gct-dir__count {
	color: var(--wp--preset--color--muted);
	font-size: 13px;
	margin: 0 !important;
}
.gct-dir__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-bottom: 18px;
}
.gct-dir__controls input[type="search"] {
	flex: 0 1 260px;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 8px 10px 8px 30px;
	font-size: 14px;
	background: var(--wp--preset--color--base) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='6.5' cy='6.5' r='5'/%3E%3Cpath d='M10.5 10.5 15 15'/%3E%3C/svg%3E") no-repeat 9px 50% / 14px;
}
.gct-dir__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.gct-dir__filters button {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--leaf-edge);
	border-radius: 16px;
	color: var(--wp--preset--color--moss-ink);
	cursor: pointer;
	font-size: 12px;
	padding: 5px 12px;
}
.gct-dir__filters button[aria-pressed="true"] {
	background: var(--wp--preset--color--forest-ink);
	border-color: var(--wp--preset--color--forest-ink);
	color: var(--wp--preset--color--base);
}
.gct-dir__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.gct-dir__item {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-top: 3px solid var(--wp--preset--color--green);
	border-radius: 4px;
	padding: 12px 14px 10px 50px;
	font-size: 13px;
	line-height: 1.45;
	transition: box-shadow 0.15s, border-color 0.15s;
}
.gct-dir__item:hover {
	border-color: #bbb;
	border-top-color: var(--wp--preset--color--green);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.gct-dir__item[hidden] {
	display: none;
}
.gct-dir__num {
	position: absolute;
	left: 12px;
	top: 12px;
	width: 26px;
	height: 26px;
	border: 2px solid var(--wp--preset--color--green);
	border-radius: 50%;
	color: var(--wp--preset--color--forest-ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
}
.gct-dir__item.is-multi {
	padding-left: 14px;
	padding-top: 40px;
}
.gct-dir__item.is-multi .gct-dir__num {
	width: auto;
	border-radius: 13px;
	padding: 0 9px;
}
.gct-dir__also {
	color: var(--wp--preset--color--moss-ink);
	font-size: 12px;
	font-style: italic;
	margin: -2px 0 6px !important;
}
.gct-dir__item h3 {
	font-size: 16px !important;
	line-height: 1.3 !important;
	margin: 2px 0 4px !important;
}
.gct-dir__item h3 a {
	color: var(--wp--preset--color--heading);
}
.gct-dir__meta {
	color: #555;
	margin: 0 0 8px !important;
}
.gct-dir__meta strong {
	color: var(--wp--preset--color--heading);
	font-weight: 700;
}
.gct-dir__acts {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
}
.gct-dir__acts li {
	background: var(--wp--preset--color--leaf-tint);
	border-radius: 10px;
	color: var(--wp--preset--color--moss-ink);
	font-size: 12px;
	padding: 1px 8px;
}
.gct-dir__acts li.more {
	background: #eee;
	color: var(--wp--preset--color--muted);
}
.gct-dir__links {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: auto 0 0 !important;
	padding-top: 6px;
	border-top: 1px dotted var(--wp--preset--color--border);
}
.gct-dir__links a {
	font-weight: 700;
}
.gct-dir__links button,
.gct-dir__empty button {
	background: none;
	border: 0;
	color: var(--wp--preset--color--link);
	cursor: pointer;
	font-size: 12px;
	padding: 2px 0;
}
.gct-dir__links button:hover,
.gct-dir__empty button:hover {
	text-decoration: underline;
}
.gct-dir__empty {
	color: var(--wp--preset--color--muted);
	padding: 1em 0;
}

/* ---------- Small screens ---------- */
@media (max-width: 800px) {
	.wp-site-blocks { padding: 0 2%; }
	.gct-page { margin-top: 2% !important; }
	.gct-branding { padding-top: 12%; }
	.gct-branding .gct-logo { left: 4%; top: 0; width: 60%; }
	.gct-access { padding: 0 2%; }
	.gct-branding .gct-tagline { font-size: 18px; left: 4%; bottom: 10px; padding: 4px 10px 5px; }
	.gct-header-donate .wp-block-button__link { padding: 5px 14px !important; }
	.gct-columns { margin: 0 4% !important; flex-wrap: wrap !important; }
	.gct-columns > .gct-content,
	.gct-columns > .gct-sidebar { flex-basis: 100% !important; margin-left: 0; }
	.gct-singular { padding: 0 4% !important; }
	.gct-singular .wp-block-post-title { font-size: 26px; line-height: 1.25; }

	/* Mobile typography: bigger, regular-weight body (Helvetica Neue Light reads
	   thin on phones), and headings that stay a step above the body text. */
	body {
		--wp--preset--font-size--medium: 17px;
		--wp--preset--font-size--small: 14px;
		font-size: 17px;
		font-weight: 400;
		line-height: 1.6;
	}
	body h2 { font-size: 22px; line-height: 1.35; }
	body h3 { font-size: 18px; line-height: 1.4; }
	body h4 { font-size: 17px; line-height: 1.45; }
	.gct-post-list .wp-block-post-title { font-size: 22px !important; line-height: 1.35 !important; }
	.gct-lede { font-size: 19px; }
	.gct-card { font-size: 15px; }
	.gct-card h2 { font-size: 18px; }
	.gct-sidebar,
	.gct-mission p,
	.gct-sponsors p { font-size: 15px; }
	.gct-side-box__title { font-size: 17px !important; }
	.gct-sidebar .gct-widget-title,
	.gct-footer-cols .gct-widget-title,
	.gct-section-title,
	.gct-property-box__title { font-size: 12px !important; }
	.gct-entry-meta,
	.gct-entry-meta p,
	.gct-entry-meta .wp-block-post-date,
	.gct-entry-meta .wp-block-post-author-name,
	.gct-post-nav,
	.gct-older-newer,
	.gct-site-generator,
	.gct-post-list .wp-block-post-excerpt__more-link { font-size: 14px; }
	footer { font-size: 14px; }
	/* 16px+ stops iOS zooming the page when a field is tapped */
	input, select, textarea,
	.gct-sidebar .wp-block-search__input,
	.gct-dir__controls input[type="search"] { font-size: 16px !important; }
	/* Old layout tables in page content carry width="672" (e.g. About) */
	.wp-block-post-content table[width],
	.wp-block-post-content td[width] { width: auto !important; max-width: 100%; }
	.gct-featured { grid-template-columns: 1fr; font-size: 16px; }
	.gct-featured__body h3 { font-size: 22px; }
	.gct-featured__num { font-size: 15px; }
	.gct-cards { flex-wrap: wrap !important; }
	.gct-cards > .gct-card { flex-basis: 100% !important; }
	.gct-footer-cols { flex-wrap: wrap !important; }
	.gct-footer-cols > .wp-block-column { flex-basis: 100% !important; text-align: center; }
}
/* Visually hidden, still read by screen readers */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
