/* mdcamping.com — Maryland Association of Campgrounds
   One stylesheet for the whole site. Order: fonts, tokens, base, layout helpers, buttons, header,
   footer, then the home page's sections. */

/* ---------------------------------------------------------------- fonts (self-hosted, OFL) */
@font-face {
	font-family: "Young Serif";
	src: url("/fonts/young-serif-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("/fonts/figtree-latin-wght-italic.woff2") format("woff2");
	font-weight: 300 900;
	font-style: italic;
	font-display: swap;
}

/* ---------------------------------------------------------------- tokens */
:root {
	/* MAC's colors: the old site's royal blue, sunny yellow, Maryland red and sunset orange, with a deep
	   Chesapeake navy for text and dark sections: the 2027 logo's outline (#012144; Joshua, 2026-11-02). The
	   navy family (soft, deep, ink, muted, line, sky) took the outline's hue too, keeping their lightness, and
	   the deep one stays darker than the navy. */
	--chesapeake: #012144;
	--chesapeake-soft: #1D4E84;
	--royal: #2948FF;
	--susan: #FDED4F;
	--susan-hover: #FFE419;
	--red: #ED2224;
	--orange: #F37335;
	--gold: #FDC830;
	--sunset-top: var(--orange);
	--sunset-bottom: var(--gold);
	--navy-deep: #06172B;
	--sky: #EEF6FF;
	--paper: #FFFFFF;
	--ink: #162A3F;
	--muted: #4A6078;
	--line: #D9E5F2;

	--serif: "Young Serif", Georgia, "Times New Roman", serif;
	--sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--container: 1600px;
	--gutter: clamp(16px, 4vw, 48px);
	--section: clamp(56px, 7vw, 112px);        /* vertical space between sections */
	--ridge: 10vw;                             /* height of the ridge-to-shore outline (160/1600 of the width) */
	--ridge-room: calc(var(--ridge) + clamp(32px, 4vw, 64px));
	--shadow: 0 18px 44px rgba(1, 33, 68, .16);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
/* No scroll anchoring while the header grows back near the top, or while gliding to the top (js/site.js):
   it would push the page down, just short of the top. */
html.is-header-growing, html.is-gliding { overflow-anchor: none; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.1875rem/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
}
main, .site-footer { text-wrap: pretty; }
/* Design rule: text in buttons, menu items and other labels is centred on its regular letters, the box from
   the top of the capitals to the baseline. Descenders (g, p, y) hang below it and don't count, and a button's
   hard edge underneath isn't part of its face. Measure it in the pixels (_tools/check-text-centering.py) and
   correct the padding by what it finds: in Figtree the bold button labels sit ~2.5px high (--label-nudge).
   Centre optically where a shadow sits along one edge: measure from the shadow's visible edge, not the box's
   (the menu track's inset shadow takes ~2px off the top, so its links sit 1px lower). */
h1, h2, h3 {
	margin: 0 0 .45em;
	font-family: var(--serif);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -.01em;
	color: var(--chesapeake);
	text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.5rem + 3.2vw, 4.25rem); }
h2 { font-size: clamp(2rem, 1.45rem + 1.9vw, 3.1rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
a { color: var(--royal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 4px; }
.icon { width: 1em; height: 1em; flex: none; fill: currentColor; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	padding: 10px 16px; border-radius: 8px;
	background: var(--susan); color: var(--chesapeake); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.lead { font-size: clamp(1.25rem, 1.12rem + .45vw, 1.5rem); line-height: 1.55; }
.section-intro { max-width: 46rem; margin-bottom: clamp(28px, 3vw, 44px); }
.section-intro p { color: var(--muted); }

/* The ridge-to-shore outline: Maryland west to east, drawn in the colour of the section it leads into. */
.ridge-to-shore { display: block; width: 100%; height: var(--ridge); }

/* ---------------------------------------------------------------- buttons
   MAC's buttons stand up off the page like a painted park sign: a solid color, a navy outline and a hard
   edge underneath. They lift a little on hover and press down onto the edge when clicked. */
/* Quick repeated clicks on a control count as double-clicks; they mustn't select the text around it. */
button, .button { -webkit-user-select: none; user-select: none; }
.button {
	--btn-bg: var(--susan); --btn-ink: var(--chesapeake); --btn-edge: var(--chesapeake); --btn-drop: var(--chesapeake);
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	/* Capitals-to-baseline centred on the face (design rule), measured with the button moved down the page a
	   sixteenth of a pixel at a time, at 1x and 2x: it holds everywhere only in whole pixels (13px each side of a
	   20px line; padding of .7em ± 1.25px drew the label a pixel low at a third of the positions). --label-nudge
	   is for the header's button and the finder's chips, which still use it. */
	--label-nudge: 1.25px;
	min-height: 50px; padding: 13px 1.4em;
	border: 2px solid var(--btn-edge); border-radius: 12px;
	background: var(--btn-bg); color: var(--btn-ink);
	box-shadow: 0 4px 0 var(--btn-drop);
	font: 800 1.08rem/20px var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, background-color .15s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--btn-drop); }
.button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-drop); transition-duration: .05s; }
.button .icon { width: 1.05em; height: 1.05em; }
.button-sun { --btn-bg: var(--susan); }
.button-sun:hover { --btn-bg: var(--susan-hover); }
.button-orange { --btn-bg: var(--orange); }
.button-orange:hover { --btn-bg: #F6844A; }
.button-gold { --btn-bg: var(--gold); }
.button-gold:hover { --btn-bg: #FFD45C; }
.button-white { --btn-bg: #fff; }
.button-white:hover { --btn-bg: #F6F8FF; }
.button-navy { --btn-bg: var(--chesapeake); --btn-ink: #fff; --btn-drop: var(--orange); }
.button-navy:hover { --btn-bg: var(--chesapeake-soft); }
/* On navy the navy edge would vanish, so the edge drops to orange; on the sunset band, to deep navy. */
.on-navy .button { --btn-edge: var(--navy-deep); --btn-drop: var(--orange); }
.on-navy .button-orange { --btn-drop: #B24414; }
.on-sunset .button-navy { --btn-drop: var(--navy-deep); }
.on-navy :focus-visible, .site-footer :focus-visible { outline-color: var(--susan); }
@media (prefers-reduced-motion: reduce) {
	.button { transition: background-color .15s; }
	.button:hover, .button:active { transform: none; }
}

/* ---------------------------------------------------------------- header
   One sticky header laid out as a two-row grid: the navy top row and the menu row (the old site's
   top-to-bottom orange-to-gold), with a thin white line under it. The menu and the top row's links share
   one right-aligned column, so they always line up. The logo's white sign hangs from the very top across
   both rows. The header sticks at minus the top row's height: once the page scrolls the top row slides
   away, and then the sign shrinks into the menu row. */
:root {
	--topbar-h: 40px; --menu-h: 84px; --menu-h-compact: 62px;
	--brand-h: 108px;      /* the logo's height, the same at every width with the menu bar (Joshua): the menu makes room */
	--sign-drop: 15px;      /* how far the logo's sign hangs below the header: its logo and padding, less the header's height */
}
.site-header {
	position: sticky; top: calc(var(--topbar-h) * -1); z-index: 50;
	background: linear-gradient(to bottom, var(--chesapeake) var(--topbar-h), var(--orange) var(--topbar-h), var(--gold));
	border-bottom: 1px solid #fff;
	box-shadow: 0 2px 0 rgba(1, 33, 68, .1);
	transition: box-shadow .22s;
}
.site-header.is-stuck { box-shadow: 0 10px 30px rgba(1, 33, 68, .25); }
.header-grid {
	position: relative; display: grid; align-items: center;
	grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: var(--topbar-h) var(--menu-h);
	transition: grid-template-rows .22s;
}
.site-header.is-stuck .header-grid { grid-template-rows: var(--topbar-h) var(--menu-h-compact); }

.brand {
	position: absolute; z-index: 2; left: var(--gutter); top: 0;
	display: block; padding: 16px 26px;
	border-radius: 0 0 22px 22px; background: #fff; box-shadow: 0 12px 28px rgba(1, 33, 68, .25);
	transition: top .22s, padding .22s, border-radius .22s, box-shadow .22s;
}
.brand picture { display: block; translate: -1.33% 0; }      /* centered on the letters: the flower reaches 13px of 489 past the "M", so the picture sits 6.5 of 489 to the left */
.brand img { width: auto; height: var(--brand-h); transition: height .22s; }
/* Docked: the sign fills the menu row exactly, top to bottom, with its white background and a little padding.
   It stays white when shrunk: the logo's red and orange don't read on the orange bar. */
.site-header.is-docked .brand { top: var(--topbar-h); padding: 6px 18px; border-radius: 0; box-shadow: none; }
.site-header.is-docked .brand img { height: calc(var(--menu-h) - 12px); }
.site-header.is-stuck .brand img { height: calc(var(--menu-h-compact) - 12px); }
.site-header.no-anim, .site-header.no-anim * { transition: none !important; }

.topbar {
	grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: flex-end; gap: 16px;
	color: #fff; font-size: .95rem;
}
.topbar a { color: #fff; text-decoration: none; }

.social { display: flex; gap: 4px; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: inherit; }
.social a:hover { background: rgba(255, 255, 255, .14); }
.social .icon { width: 17px; height: 17px; }

.lang { position: relative; }
.lang-button {
	display: inline-flex; align-items: center; gap: .45em; padding: 6px 8px;
	border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; cursor: pointer;
}
.lang-button:hover { background: rgba(255, 255, 255, .14); }
.lang-button .chevron { width: .75em; height: .75em; transition: transform .15s; }
.lang-button[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.lang-menu {
	position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 190px; padding: 6px;
	border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); box-shadow: var(--shadow);
}
.lang-menu button {
	display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: 8px; background: none;
	color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.lang-menu button[aria-current] { font-weight: 700; }
.lang-menu button:hover { background: var(--sky); }
/* Google's translator (only for visitors who pick Español or Français): no bar across the top of the page, no
   pop-up with the original text, no highlight on hover. */
iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

.site-nav { grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: 16px; }
.nav-list {                                  /* a bright silver, inset track the links sit in */
	/* 6px on top, 4px below: the inset shadow darkens the top couple of pixels, so this centres the links
	   between the shadow's visible edge and the bottom (optical centring, design rule). */
	display: flex; align-items: center; gap: 2px; padding: 6px 5px 4px; border-radius: 14px;
	background: #F1F3F7;
	box-shadow: inset 0 2px 5px rgba(1, 33, 68, .3), inset 0 -1px 0 rgba(255, 255, 255, .9), 0 1px 0 rgba(255, 255, 255, .5);
}
.nav-item { position: relative; }
.nav-list { --nav-x: 12px; --nav-size: 1rem; }     /* the items' side padding and text size, smaller on laptops */
.nav-link {
	display: inline-flex; align-items: center; gap: .4em; padding: 10.5px var(--nav-x) 9.5px;
	border: 0; border-radius: 10px; background: none;
	color: var(--chesapeake); font: 700 var(--nav-size)/1.2 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color .25s ease, box-shadow .25s ease;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: #fff; box-shadow: 0 2px 7px rgba(1, 33, 68, .28); }
.nav-link .chevron, .nav-sub .chevron { width: .75em; height: .75em; transition: transform .15s; }
.nav-link[aria-expanded="true"] .chevron, .nav-sub[aria-expanded="true"] .chevron { transform: rotate(180deg); }
/* An item with its own page as well as a menu (Find a Campground): the label is a link, the chevron a separate
   button for the menu. Together they look and size exactly like the other items. */
.nav-split { display: inline-flex; align-items: stretch; border-radius: 10px; transition: background-color .25s ease, box-shadow .25s ease; }
.nav-split:hover, .nav-item.is-open > .nav-split { background: #fff; box-shadow: 0 2px 7px rgba(1, 33, 68, .28); }
.nav-split .nav-link { padding-right: 0; }
.nav-split .nav-link:hover { background: none; box-shadow: none; }
.nav-sub {
	display: grid; place-items: center; padding: 0 var(--nav-x) 0 .4em; border: 0; border-radius: 0 10px 10px 0;
	background: none; color: var(--chesapeake); font-size: var(--nav-size); cursor: pointer;
}
.nav-menu {
	position: absolute; left: 0; top: calc(100% + 10px); z-index: 60; min-width: 290px; padding: 8px;
	border: 2px solid var(--chesapeake); border-radius: 14px; background: #fff; box-shadow: 0 6px 0 var(--chesapeake), var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(-8px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.nav-item:last-child .nav-menu { left: auto; right: 0; }
.nav-item.is-open > .nav-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .22s ease, visibility 0s; }
.nav-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: 1.0625rem; text-decoration: none; line-height: 1.3; transition: background-color .2s; }
.nav-menu a:hover { background: var(--sky); color: var(--chesapeake); }
.has-dot { display: flex !important; align-items: baseline; gap: .6em; }
.has-dot::before {
	content: ""; flex: none; width: .7em; height: .7em; border-radius: 50%;
	background: var(--dot); box-shadow: inset 0 0 0 1px rgba(1, 33, 68, .25); transform: translateY(.05em);
}
.header-cta {
	/* Exactly as tall as the menu track (top and bottom line up), its label centred in its face and on the
	   menu's baseline. check-header-baseline.py and check-text-centering.py measure it at each width. */
	align-self: stretch; min-height: 0; padding: calc(var(--label-nudge) * 2) 1.1em 0; white-space: nowrap;
	line-height: 1.15;      /* as it was measured against the menu's baseline (buttons are 20px lines now) */
}
.nav-toggle, .nav-extra, .nav-scrim { display: none; }

/* Full width: a little larger menu text. */
@media (min-width: 1500px) {
	.nav-link { padding-block: 10px; }    /* even here: with this size the labels then share the guide button's baseline */
}
@media (min-width: 1600px) {
	.nav-list { --nav-x: 14px; --nav-size: 1.1rem; }
	.header-cta { padding-top: calc(var(--label-nudge) * 2 + 1px); }   /* half a pixel lower: same baseline as the larger menu text */
}

/* Laptop widths: the sign stays full size (a smaller one, not hanging below the menu, looked too small: Joshua),
   so the menu tightens instead: it fits with 40px+ to spare down to 1380px (check-header-fit.py). */
@media (max-width: 1499px) {
	.nav-list { --nav-x: 10px; --nav-size: .97rem; }
	.site-nav { gap: 12px; }
}

@media (max-width: 1459px) {
	.nav-list { --nav-x: 7px; --nav-size: .94rem; }
	.header-cta { padding-inline: .9em; font-size: .96rem; }
}

/* Narrow screens: no top row, and the menu becomes a panel that slides in from the right. The sign hangs large,
   the logo as wide as there's room for beside the Menu button (180-290px), until the page scrolls (Joshua);
   --sign-drop follows its height (18px of padding, less the header's 69px). */
@media (max-width: 1379px) {
	:root { --topbar-h: 0px; --menu-h: 68px; --menu-h-compact: 56px;
		--brand-h: calc(clamp(180px, 100vw - 187px, 290px) * 189 / 489); --sign-drop: calc(var(--brand-h) - 51px); }
	.topbar { display: none; }
	.brand { padding: 9px 16px; border-radius: 0 0 16px 16px; }
	.site-header.is-docked .brand { padding: 5px 12px; }
	.site-header.is-docked .brand img { height: calc(var(--menu-h) - 10px); }
	.site-header.is-stuck .brand img { height: calc(var(--menu-h-compact) - 10px); }
	.nav-toggle {
		grid-column: 2; grid-row: 2;
		display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
		border: 2px solid var(--chesapeake); border-radius: 12px; background: #fff; box-shadow: 0 3px 0 var(--chesapeake);
		color: var(--chesapeake); font: 800 1rem/1 var(--sans); cursor: pointer;
	}
	.nav-toggle .icon { width: 20px; height: 20px; }
	.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
	.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
	.site-nav {                          /* the same orange-to-gold as the menu bar, a white edge */
		position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
		flex-direction: column; align-items: stretch; gap: 20px;
		width: min(420px, 100%); margin: 0; padding: 84px 18px 32px; overflow-y: auto;
		background: linear-gradient(to bottom, var(--orange), var(--gold));
		border-left: 1px solid #fff; box-shadow: -18px 0 44px rgba(1, 33, 68, .3);
		transform: translateX(105%); visibility: hidden;
		transition: transform .28s ease, visibility 0s .28s;
	}
	.site-nav.is-open { transform: none; visibility: visible; transition: transform .28s ease; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 4px; padding: 6px; border-radius: 16px; }   /* the silver track, upright */
	.nav-link { width: 100%; justify-content: space-between; padding: 13px 14px; font-size: 1.1rem; border-radius: 11px; }
	.nav-split { display: flex; width: 100%; border-radius: 11px; }
	.nav-split .nav-link { flex: 1; width: auto; padding-right: 14px; }
	.nav-sub { padding: 0 18px; border-left: 1px solid var(--line); border-radius: 0 11px 11px 0; font-size: 1.1rem; }
	.nav-menu {                          /* submenus open as white cards under their item, fading in */
		display: none; position: static; min-width: 0; margin: 6px 0 8px; padding: 6px;
		opacity: 1; visibility: visible; transform: none; transition: none;
	}
	.nav-item.is-open > .nav-menu { display: block; animation: menu-in .22s ease both; }
	.header-cta { align-self: flex-start; height: auto; min-height: 50px; padding: calc(.7em + var(--label-nudge)) 1.4em calc(.7em - var(--label-nudge)); }
	.nav-extra { display: grid; justify-items: start; gap: 14px; color: var(--chesapeake); font-weight: 600; }
	.nav-extra .lang-button:hover, .nav-extra .social a:hover { background: rgba(255, 255, 255, .55); }
	.nav-extra .lang-menu { left: 0; right: auto; }
	.nav-scrim:not([hidden]) {
		display: block; position: fixed; inset: 0; z-index: 65; background: rgba(1, 33, 68, .45);
	}
	.nav-toggle[aria-expanded="true"] { position: relative; z-index: 80; }
}
/* Small phones: no room beside the Menu button for a larger logo, so the smaller sign throughout. */
@media (max-width: 365px) {
	:root { --brand-h: 62px; --sign-drop: 11px; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
	.site-nav { transition: none !important; }
	.nav-item.is-open > .nav-menu { animation: none; }
	.nav-menu, .nav-item.is-open > .nav-menu { transform: none; }
}

/* ---------------------------------------------------------------- hero
   The photos run clear, with nothing shading them. The words sit on a navy card, and the navy
   ridge-to-shore outline carries the hero down into the navy section below. On phones the card
   drops below the photo. */
.hero {
	position: relative; isolation: isolate;
	display: flex; align-items: flex-end;
	min-height: clamp(600px, 86svh, 920px);
	background: var(--chesapeake); color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: var(--focus, 50% 50%);
	transform-origin: var(--origin, 50% 50%);
	opacity: 0; transition: opacity 1.6s ease;
}
.hero-slide.is-current { opacity: 1; }
.hero-slide.is-moving { animation: ken-burns 9.5s linear both; }
.hero.is-paused .hero-slide { animation-play-state: paused; }
@keyframes ken-burns {
	from { transform: scale(var(--from, 1.07)); }
	to   { transform: scale(var(--to, 1)); }
}
.hero-media > .ridge-to-shore {
	/* Navy foreground over silver hills, with a light rim along the top: a clean, light band between any photo
	   and the navy, whatever the slide (Joshua chose this of six options, 2026-10-25). */
	position: absolute; left: 0; right: 0; bottom: -1px; color: var(--chesapeake);
	filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, .9));
}
.hero-media > .ridge-to-shore .far { fill: #E7EBF1; fill-opacity: .92; }
.hero-pause {                                /* frosted, like the card */
	position: absolute; z-index: 2; right: 24px; top: 24px;     /* equal from the photo's top and right edges */
	display: grid; place-items: center; width: 42px; height: 42px;
	border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; color: #fff; cursor: pointer;
	background: rgba(1, 33, 68, .4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
	-webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
}
.hero-pause:hover { background: rgba(1, 33, 68, .62); }
.hero-pause .icon { width: 16px; height: 16px; }
.hero-pause .icon-play, .hero.is-paused .hero-pause .icon-pause { display: none; }
.hero.is-paused .hero-pause .icon-play { display: block; }

/* The card is centered between the header and the peaks of the outline (its towers and ridges reach about
   74% of its height), with equal room above and below. */
.hero { align-items: stretch; }
.hero-content {
	display: flex; align-items: center;
	padding-top: clamp(32px, 4vw, 56px); padding-bottom: calc(var(--ridge) * .74 + clamp(32px, 4vw, 56px));
}
.hero-card {
	--band: linear-gradient(90deg, var(--orange), #C9466A 55%, #6E2D70) top left / 100% 6px no-repeat;
	position: relative; width: 100%; max-width: 620px; padding: clamp(26px, 2.4vw, 34px) clamp(24px, 2.4vw, 34px) clamp(24px, 2.2vw, 30px);
	border: 1px solid rgba(255, 255, 255, .5); border-radius: 22px;
	background: var(--band), rgba(1, 33, 68, .9); color: #fff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 30px 70px rgba(9, 20, 56, .3);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.hero-card {                             /* frosted glass, with a silver sheen in the lower corner */
		/* As light as it can be while white text stays readable over the brightest slides (headline 3.4:1,
		   lead 3.5:1 or better on the brightest pixels; both count as large text, 3:1 needed). The sheen sits
		   away from the headline, where it would cost contrast. _tools/check-card-contrast.py measures it. */
		background:
			var(--band),
			linear-gradient(135deg, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .14) 100%),
			rgba(1, 33, 68, .46);
		-webkit-backdrop-filter: blur(12px) saturate(165%);
		backdrop-filter: blur(12px) saturate(165%);
	}
}
/* "Let's camp in Maryland!" stays on one line: it's about 12.1em wide in Young Serif, so its size follows the
   card's width (container units), up to 48px. */
.hero-card { container-type: inline-size; }
.hero h1 {
	margin-bottom: .2em; color: #fff; text-shadow: 0 1px 3px rgba(9, 20, 56, .35);
	font-size: 2.6rem; font-size: min(3rem, 8.05cqi);
}
.hero .lead { margin-bottom: 18px; font-size: 1.5rem; color: #fff; text-shadow: 0 1px 3px rgba(9, 20, 56, .35); }

/* the search form on the card */
.hero-search { display: grid; gap: 14px; }
.search-field { display: grid; gap: 6px; }
.search-field label { font-size: 1.02rem; font-weight: 700; color: var(--susan); }
.search-field input {
	width: 100%; min-height: 54px; padding: 10px 16px;
	border: 2px solid #fff; border-radius: 12px; background: #fff;
	color: var(--ink); font: 500 1.2rem/1.3 var(--sans);
}
.search-field input:focus { outline: 3px solid var(--susan); outline-offset: 2px; }
.search-field input::placeholder { color: #566980; }   /* it's the field's label now: keep it dark */
.search-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.search-type {                               /* one toggle: a white thumb slides behind the chosen option */
	position: relative; display: grid; grid-template-columns: 1fr 1fr;
	margin: 0; padding: 4px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px;
	background: rgba(9, 20, 56, .35);
}
.search-type::before {
	content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
	border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(9, 20, 56, .3);
	transition: transform .25s cubic-bezier(.3, .7, .4, 1);
}
.search-type:has(input[value="cabins"]:checked)::before { transform: translateX(100%); }
.search-type label { position: relative; z-index: 1; }
.search-type input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.search-type span {
	display: block; padding: 9px 18px; border-radius: 999px; text-align: center;
	color: #fff; font-weight: 700; font-size: 1.06rem; white-space: nowrap; transition: color .2s;
}
.search-type input:checked + span { color: var(--chesapeake); }
.search-type input:focus-visible + span { outline: 3px solid var(--susan); outline-offset: 2px; }
@supports not selector(:has(*)) {
	.search-type::before { display: none; }
	.search-type input:checked + span { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { .search-type::before { transition: none; } }
.hero-search .button { min-height: 54px; padding-inline: 1.7em; }

@media (max-width: 760px) {
	.hero { display: block; min-height: 0; }
	.hero-media { position: relative; z-index: auto; height: clamp(300px, 56svh, 520px); }
	.hero-content { display: block; padding-top: 6px; padding-bottom: 8px; }
	.hero .lead { font-size: 1.25rem; }
	.hero-pause { top: 16px; right: 16px; }
	.hero-card { max-width: none; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.search-type { width: 100%; }
	.search-type span { padding-inline: 10px; }
	.hero-search .button { width: 100%; }
}

/* ---------------------------------------------------------------- regions: six panels, west to east */
.regions {
	padding-block: clamp(36px, 4vw, 64px) var(--section); color: #fff;
	/* navy where the outline meets it, then a sunset towards the bottom (measured up from the bottom edge, so
	   it sits behind the cards' lower half at every screen size) */
	background: linear-gradient(to top, var(--gold) 0, var(--orange) 90px, #C9466A 220px, #6E2D70 360px, #2E2766 480px, var(--chesapeake) 620px);
}
.regions h2 { color: #fff; }
.regions .section-intro p { color: rgba(255, 255, 255, .84); }
.regions .section-intro { max-width: none; }
@media (min-width: 1100px) { .regions .section-intro p { max-width: 66.666%; } }
.region-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.region a {
	display: flex; flex-direction: column; height: 100%; overflow: hidden;
	border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none;
	box-shadow: 0 16px 34px rgba(9, 20, 56, .3);
}
.region-photo { position: relative; overflow: hidden; background: var(--sky); }
.region-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .7s var(--ease-out); }
.region a:hover .region-photo img { transform: scale(1.05); }   /* a gentle zoom on hover */
.region-band { display: block; height: 12px; background: var(--region); }
.region-text { display: block; flex: 1; padding: 14px 16px 18px; }
.region-name { display: block; font: 400 1.45rem/1.15 var(--serif); color: var(--chesapeake); }
.region a:hover .region-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.region-about { display: block; margin-top: 6px; color: var(--muted); font-size: 1.08rem; line-height: 1.45; }
.region-count { display: block; margin-top: 8px; font-weight: 800; font-size: 1.02rem; color: var(--chesapeake); }

@media (max-width: 1100px) { .region-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; } }
@media (max-width: 600px)  { .region-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; } .region-name { font-size: 1.25rem; } .region-text { padding: 12px 12px 14px; } }

/* ---------------------------------------------------------------- welcome + photos from members */
.welcome { padding-block: var(--section); }
.welcome-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.welcome-text { max-width: 44rem; }
.welcome-text p { font-size: clamp(1.25rem, 1.15rem + .3vw, 1.375rem); line-height: 1.6; }
/* The five member photos as a tiled mosaic: one wide tile on top, four below it in two rows. Each name sits
   on a frosted label, like the hero card. */
.member-photos {
	display: grid; grid-template-columns: 1fr 1fr;
	grid-template-rows: clamp(220px, 19vw, 300px) repeat(2, clamp(168px, 14.5vw, 230px));
	gap: 12px; padding-top: 8px;
	position: sticky; top: calc(var(--menu-h-compact) + 28px);   /* stays in view beside the longer text */
}
.member-photo:nth-child(1) { grid-column: 1 / 3; }
.member-photo a {
	position: relative; display: block; height: 100%; overflow: hidden;
	border-radius: 14px; background: var(--sky); color: #fff; text-decoration: none;
	box-shadow: 0 10px 24px rgba(1, 33, 68, .16);
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.member-photo a:hover img { transform: scale(1.05); }
.member-photo-label {
	position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
	padding: 6px 11px 7px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 10px;
	background: rgba(1, 33, 68, .62); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
	-webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
}
.member-photo-name {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
	font-weight: 700; font-size: 1rem; line-height: 1.25;
}
.member-photo a:hover .member-photo-name { text-decoration: underline; }
.member-photo-town { display: block; font-size: .9rem; color: rgba(255, 255, 255, .88); }
@media (max-width: 600px) {
	.member-photos { grid-template-rows: 210px repeat(2, 150px); gap: 10px; }
	.member-photo-name { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { .member-photo img { transition: none; } .member-photo a:hover img { transform: none; } .region-photo img { transition: none; } .region a:hover .region-photo img { transform: none; } }
@media (max-width: 900px) {
	.welcome-grid { grid-template-columns: 1fr; }
	.member-photos { position: static; max-width: 640px; }
}

/* ---------------------------------------------------------------- plan your trip */
.plan { padding-block: var(--section); background: var(--sky); }
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.guide { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.guide img { width: clamp(120px, 12vw, 175px); border-radius: 6px; box-shadow: 0 16px 36px rgba(1, 33, 68, .22); }
/* Trip links as cards: a sunset badge with an icon, the title and a line about it, and a chevron. */
.plan-links { display: grid; gap: 14px; }
.plan-links a {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px;
	padding: 18px 20px; border: 2px solid var(--line); border-radius: 16px; background: #fff;
	color: inherit; text-decoration: none; box-shadow: 0 6px 18px rgba(1, 33, 68, .07);
	transition: border-color .2s, box-shadow .2s, transform .2s var(--ease-out);
}
.plan-links a:hover { border-color: var(--chesapeake); box-shadow: 0 10px 26px rgba(1, 33, 68, .14); transform: translateY(-2px); }
.plan-icon {
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
	background: linear-gradient(to bottom, var(--orange), var(--gold)); color: var(--chesapeake);
	box-shadow: inset 0 -2px 0 rgba(1, 33, 68, .18);
}
.plan-icon .icon { width: 26px; height: 26px; }
.plan-text strong { display: block; font: 400 1.5rem/1.2 var(--serif); color: var(--chesapeake); }
.plan-text span { display: block; margin-top: 3px; color: var(--muted); }
.plan-go { width: 22px; height: 22px; color: var(--chesapeake); transition: transform .2s var(--ease-out); }
.plan-links a:hover .plan-go { transform: translateX(4px); }
@media (max-width: 480px) {
	.plan-links a { gap: 14px; padding: 14px 14px; }
	.plan-icon { width: 46px; height: 46px; }
	.plan-text strong { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { .plan-links a, .plan-go { transition: none; } .plan-links a:hover, .plan-links a:hover .plan-go { transform: none; } }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .guide { grid-template-columns: 1fr; justify-items: center; text-align: center; } }   /* stacked on phones: centred (Joshua) */

/* ---------------------------------------------------------------- membership: a sunset over the outline */
.join {
	padding-top: var(--section); padding-bottom: var(--ridge-room);
	background: linear-gradient(to bottom, var(--sunset-top), var(--sunset-bottom) 85%);
	color: var(--chesapeake);
}
.join .container { max-width: 1200px; }        /* the band's content sits in a narrower, centered column */
.join p { font-size: 1.3125rem; }
.join-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 520px) { .join-actions .button { flex: 1 1 100%; } }

/* ---------------------------------------------------------------- campground finder (/campgrounds/, /cabins/)
   The list and its filters in a column on the left, lined up with the page's container; the map fills the
   rest out to the window's edge, held under the header while the list scrolls. Below 960px the map sits in
   the column, between the filters and the list, and a button opens it full screen. (In the page it comes
   right after the filters, so it's there in reading and tab order too; on wide screens it's lifted out into
   the right-hand column.) */
.finder {
	--stick: calc(var(--menu-h-compact) + 1px);     /* the header's height once it has shrunk */
	--panel: clamp(500px, 42vw, 760px);
	--panel-left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
	position: relative;
	min-height: calc(100vh - var(--stick) + var(--ridge-room));     /* room for the whole map, however short the list */
	min-height: calc(100svh - var(--stick) + var(--ridge-room));
	padding-left: var(--panel-left); padding-bottom: var(--ridge-room);
}
.finder-panel {      /* the heading starts well clear of the logo's sign hanging above it */
	width: var(--panel); padding: calc(var(--sign-drop) + clamp(44px, 3.6vw, 60px)) clamp(20px, 2.2vw, 36px) 0 0;
}
.finder-head h1 { margin-bottom: .2em; font-size: clamp(2.4rem, 1.9rem + 1.2vw, 3.3rem); }
.finder-head .lead { color: var(--muted); font-size: 1.25rem; }

.finder-form { display: grid; gap: 14px; margin-top: 22px; }
.finder-search { position: relative; }
.finder-search-icon { position: absolute; left: 17px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--chesapeake); pointer-events: none; }
.finder-search input {
	width: 100%; min-height: 56px; padding: 10px 16px 10px 48px;
	border: 2px solid #B9CADD; border-radius: 14px; background: #fff;
	color: var(--ink); font: 500 1.2rem/1.3 var(--sans);
	transition: border-color .15s;
}
.finder-search input:hover { border-color: #8EA4BD; }
.finder-search input:focus { border-color: var(--chesapeake); outline: 3px solid var(--royal); outline-offset: 2px; }
.finder-search input::placeholder { color: #566980; }

/* Region chips: each shows its region's color; a chosen one fills with it and stands up like a sign. */
.finder-regions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip-face {
	--label-nudge: 1px;
	display: inline-flex; align-items: center; gap: 8px;
	padding: calc(7px + var(--label-nudge)) 14px calc(7px - var(--label-nudge)) 10px;
	border: 2px solid var(--line); border-radius: 999px; background: #fff;
	color: var(--chesapeake); font-weight: 700; font-size: 1rem; line-height: 1.25; white-space: nowrap;
	transition: border-color .15s, background-color .15s, box-shadow .15s, transform .15s var(--ease-out);
}
.chip-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--region); box-shadow: inset 0 0 0 1px rgba(1, 33, 68, .3); transform: translateY(calc(var(--label-nudge) * -1)); }
.chip:hover .chip-face { border-color: var(--chesapeake); }
.chip input:checked + .chip-face { background: var(--region); border-color: var(--chesapeake); box-shadow: 0 3px 0 var(--chesapeake); transform: translateY(-2px); }
.chip input:checked + .chip-face .chip-dot { background: #fff; box-shadow: inset 0 0 0 4px var(--chesapeake); }
.chip input:focus-visible + .chip-face { outline: 3px solid var(--royal); outline-offset: 2px; }

.finder-more { border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.finder-more[open] { border-color: #B9CADD; }
.finder-more summary {
	display: flex; align-items: center; gap: 10px; padding: 10.25px 14px 9.75px; border-radius: 12px;
	color: var(--chesapeake); font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none;
}
.finder-more summary::-webkit-details-marker { display: none; }
.finder-more summary:hover { background: var(--sky); }
.finder-more summary .icon { width: 18px; height: 18px; }
.finder-more summary .chevron { width: 14px; height: 14px; margin-left: auto; transition: transform .2s; }
.finder-more[open] summary .chevron { transform: rotate(180deg); }
.finder-more-count {
	display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
	background: var(--orange); color: var(--chesapeake); font-size: .9rem; font-weight: 800; line-height: 1;
}
.finder-more-count[hidden] { display: none; }
.finder-filters {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px 24px;
	padding: 6px 16px 16px;
}
.finder-filters fieldset { margin: 0; padding: 0; border: 0; }
.finder-filters legend { padding: 8px 0 4px; color: var(--chesapeake); font-weight: 800; font-size: 1rem; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 1.06rem; line-height: 1.3; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--chesapeake); cursor: pointer; }
.finder-form.is-live .finder-submit { display: none; }
.finder-submit { justify-self: start; }

.finder-status { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin: 26px 0 14px; }
.finder-count { margin: 0; color: var(--muted); font-size: 1.15rem; }
.finder-count strong { color: var(--chesapeake); font-weight: 800; }
.finder-clear { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 1.02rem; }
.finder-clear[hidden] { display: none; }

/* The cards: photo on the left with a band of the region's color, the park on the right. */
.park-list { display: grid; gap: 14px; }
.park-card[hidden] { display: none; }
.park-card a {
	display: grid; grid-template-columns: minmax(150px, 38%) minmax(0, 1fr); height: 100%;
	border: 2px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff;
	color: inherit; text-decoration: none; box-shadow: 0 6px 18px rgba(1, 33, 68, .07);
	transition: border-color .2s, box-shadow .2s, transform .2s var(--ease-out);
}
.park-card a:hover, .park-card.is-hot a { border-color: var(--chesapeake); box-shadow: 0 10px 26px rgba(1, 33, 68, .14); transform: translateY(-2px); }
.park-card.is-picked a { border-color: var(--chesapeake); box-shadow: 0 5px 0 var(--orange), 0 10px 26px rgba(1, 33, 68, .14); }
.park-card-photo {
	position: relative; display: grid; place-items: center; min-height: 160px; overflow: hidden;
	background: color-mix(in srgb, var(--region) 55%, #fff); border-right: 8px solid var(--region);
}
.park-card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.park-card a:hover .park-card-photo img { transform: scale(1.04); }
.park-card-tent { width: 46px; height: 46px; color: rgba(1, 33, 68, .5); }
.park-card-body { display: block; padding: 16px 18px 18px; }
.park-card-name { margin: 0 0 6px; font-size: 1.45rem; line-height: 1.15; }
.park-card a:hover .park-card-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.park-card-place { color: var(--muted); font-size: 1.04rem; line-height: 1.35; }
.park-card-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.park-card-facts span {    /* 1.25px more above than below: centred on the capitals (design rule, measured) */
	padding: 4.25px 10px 2.75px; border-radius: 8px; background: var(--sky); color: var(--chesapeake); font-size: .96rem; font-weight: 600; line-height: 1.35;
}

.finder-empty { padding: 28px 24px; border: 2px dashed #B9CADD; border-radius: 16px; text-align: center; }
.finder-empty[hidden] { display: none; }
.finder-empty p { margin-bottom: 16px; }
.finder-switch { margin: 28px 0 0; color: var(--muted); }

/* The map, under the header and as tall as the window below it. */
.finder-map { position: absolute; top: 0; right: 0; bottom: var(--ridge-room); left: calc(var(--panel-left) + var(--panel)); }
.map-frame {
	position: sticky; top: var(--stick); height: calc(100vh - var(--stick)); height: calc(100svh - var(--stick));
	overflow: hidden; border-left: 1px solid var(--line); background: #D3E2F4;    /* the map's water, while it loads */
}
.map-frame .map { position: absolute; inset: 0; }     /* (MapLibre's own stylesheet makes it relative) */
.map-off { position: absolute; inset: auto 16px 16px; margin: 0; padding: 12px 16px; border-radius: 12px; background: #fff; }

/* Campground pins: round signs with a tent, like the site's buttons. The one under the pointer (or whose card
   is) turns gold; the chosen one, orange. Smaller when zoomed out. */
.map-marker { cursor: pointer; }
.map-marker.is-hot, .map-marker.is-picked { z-index: 3; }
.map-pin {
	display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
	border: 2px solid var(--chesapeake); border-radius: 50%; background: #fff; color: var(--chesapeake);
	box-shadow: 0 3px 0 var(--chesapeake); pointer-events: none;
	transition: transform .18s var(--ease-out), background-color .15s, width .2s, height .2s;
}
.map-pin .icon { width: 16px; height: 16px; transform: translateY(-1px); }
.map-marker.is-hot .map-pin { background: var(--gold); transform: translateY(-3px) scale(1.12); }
.map-marker.is-picked .map-pin { background: var(--orange); transform: translateY(-3px) scale(1.2); }
.map.is-far .map-pin { width: 24px; height: 24px; box-shadow: 0 2px 0 var(--chesapeake); }
.map.is-far .map-pin .icon { width: 12px; height: 12px; }
.map-marker[hidden] { display: none; }

/* The chosen park, in a card over the map's top left. */
.map-card {
	position: absolute; z-index: 5; left: 16px; top: 16px; width: min(330px, calc(100% - 32px));
	border: 2px solid var(--chesapeake); border-radius: 16px; overflow: hidden; background: #fff;
	box-shadow: 0 5px 0 var(--chesapeake), var(--shadow);
	animation: map-card-in .28s var(--ease-out) both;
}
.map-card[hidden] { display: none; }
@keyframes map-card-in { from { opacity: 0; transform: translateY(-8px); } }
.map-card-photo { display: block; position: relative; background: color-mix(in srgb, var(--region) 55%, #fff); border-bottom: 6px solid var(--region); }
.map-card-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.map-card-body { padding: 14px 16px 16px; }
.map-card-name { margin: 0 0 4px; font: 400 1.35rem/1.15 var(--serif); color: var(--chesapeake); }
.map-card-place { margin: 0; color: var(--muted); font-size: 1rem; }
.map-card .park-card-facts { margin-top: 10px; }
.map-card .button { width: 100%; margin-top: 14px; }
.map-card-close {
	position: absolute; z-index: 1; right: 10px; top: 10px;
	display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
	border: 2px solid var(--chesapeake); border-radius: 50%; background: #fff; color: var(--chesapeake); cursor: pointer;
	box-shadow: 0 2px 0 var(--chesapeake);
}
.map-card-close:hover { background: var(--sky); }
.map-card-close .icon { width: 14px; height: 14px; }

/* MapLibre's controls, as signs too. */
.maplibregl-ctrl-top-right .maplibregl-ctrl { margin: 16px 16px 0 0; }
.maplibregl-ctrl-group:not(:empty) {
	border: 2px solid var(--chesapeake); border-radius: 12px; overflow: hidden;
	box-shadow: 0 3px 0 var(--chesapeake);
}
.maplibregl-ctrl-group button { width: 40px; height: 40px; }
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--line); }
.maplibregl-ctrl-group button:focus-visible { outline: 3px solid var(--royal); outline-offset: -3px; box-shadow: none; }
.maplibregl-ctrl-group .map-reset { width: auto; padding: 0 12px; color: var(--chesapeake); font: 700 .95rem/1 var(--sans); }
.maplibregl-ctrl-group .map-expand { display: grid; place-items: center; color: var(--chesapeake); }
.map-expand .icon { width: 18px; height: 18px; }
.map-expand-group { display: none; }      /* phones only, and not once the map is full screen */
@media (max-width: 959px) { .finder:not(.is-map) .map-expand-group { display: block; } }
.maplibregl-ctrl-attrib { font: 500 .8rem/1.4 var(--sans); }
.maplibregl-ctrl-attrib a { color: var(--chesapeake); }

.finder-toggle { display: none; }

/* a park's name beside the pin under the pointer */
.map-tip .maplibregl-popup-content {
	padding: 5px 10px 6px; border: 2px solid var(--chesapeake); border-radius: 10px;
	box-shadow: 0 3px 0 var(--chesapeake); color: var(--chesapeake); font: 700 .98rem/1.25 var(--sans);
}
.map-tip.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--chesapeake); }
.map-tip.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--chesapeake); }
.map-tip.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--chesapeake); }
.map-tip.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--chesapeake); }

@media (max-width: 959px) {
	.finder { min-height: 0; padding-left: 0; }
	.finder-panel { width: auto; padding: calc(var(--sign-drop) + 30px) var(--gutter) 0; }
	/* the map in the column: a framed window you scroll past with one finger (two fingers move the map) */
	.finder-map { position: static; margin: 22px 0 4px; }
	.map-frame {
		position: relative; top: auto; height: clamp(280px, 42svh, 400px);     /* Maryland is wide and short */
		border: 2px solid var(--chesapeake); border-radius: 16px; box-shadow: 0 5px 0 var(--chesapeake);
	}
	/* full screen: only the map, as tall as the window below the header */
	.finder.is-map .finder-panel { padding: 0; }
	.finder.is-map .finder-panel > :not(.finder-map) { display: none; }
	.finder.is-map .finder-map { margin: 0; }
	.finder.is-map .map-frame { height: calc(100svh - var(--finder-top, 57px)); border: 0; border-radius: 0; box-shadow: none; }
	.finder-toggle:not([hidden]) {
		display: inline-flex; position: fixed; z-index: 40; left: 50%; bottom: max(18px, env(safe-area-inset-bottom));
		translate: -50% 0; min-width: 120px; box-shadow: 0 4px 0 var(--orange), 0 12px 28px rgba(9, 20, 56, .35);
	}
	.finder-toggle { transition: opacity .2s, visibility 0s; }
	.finder-toggle.is-away { opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
	.finder-toggle-list, .finder.is-map .finder-toggle-map { display: none; }
	.finder.is-map .finder-toggle-list { display: contents; }
	.finder-toggle .icon { margin-right: .55em; }
	/* the chosen park sits along the bottom (full screen: above the List button) */
	.map-card {
		top: auto; bottom: 12px; left: 12px; width: auto; right: 12px;
		display: grid; grid-template-columns: 112px minmax(0, 1fr);
	}
	.finder.is-map .map-card { bottom: 86px; }
	.map-card-photo { border-bottom: 0; border-right: 6px solid var(--region); }
	.map-card-photo img { height: 100%; aspect-ratio: auto; }
	.map-card-body { padding: 12px 44px 12px 14px; }
	.map-card-name { font-size: 1.15rem; }
	.map-card .park-card-facts { display: none; }
	.map-card .button { min-height: 42px; margin-top: 10px; padding-block: calc(.45em + var(--label-nudge)) calc(.45em - var(--label-nudge)); font-size: 1rem; }
	.map-card-close { width: 32px; height: 32px; right: 8px; top: 8px; }
}
@media (max-width: 559px) {
	.park-card a { grid-template-columns: 1fr; }
	.park-card-photo { aspect-ratio: 16 / 9; min-height: 0; border-right: 0; border-bottom: 8px solid var(--region); }
	.finder-head h1 { font-size: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
	.park-card a, .park-card-photo img, .map-pin, .chip-face { transition: none; }
	.park-card a:hover, .park-card.is-hot a, .park-card a:hover .park-card-photo img { transform: none; }
	.map-card { animation: none; }
}

/* ---------------------------------------------------------------- a campground's page (/campgrounds/SLUG)
   The name and how to book on the left, where it is on the right; its photos in a row below, kept no wider
   than they were uploaded (the old site's are 300–450 px); then the details, with the contact card held
   beside them. The region's color runs through it: the band under the head, the dots, the map. */
.park-head {      /* as much room above as the finder's heading: clear of the logo's sign */
	padding-block: calc(var(--sign-drop) + clamp(44px, 3.6vw, 60px)) clamp(24px, 3vw, 40px);
	background: var(--sky); border-bottom: 10px solid var(--region);
}
.park-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 40%); gap: clamp(24px, 4vw, 64px); align-items: center; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 14px; font-size: 1rem; font-weight: 600; }
.crumbs li { display: flex; align-items: baseline; gap: 10px; }
.crumbs li:not(:last-child)::after { content: "/"; color: var(--muted); font-weight: 400; }      /* ends its line when the next item wraps */
.crumbs .crumb-short { display: none; }
@media (max-width: 600px) { .crumbs .crumb-long { display: none; } .crumbs .crumb-short { display: inline; } }
.crumbs a { color: var(--chesapeake); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.park-title h1 { margin-bottom: .15em; font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.9rem); }
.park-where { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); font-size: 1.3rem; }
.park-where .icon { width: 20px; height: 20px; color: var(--chesapeake); }
.park-facts-top { margin: 16px 0 0; }
.park-facts-top span { background: #fff; }
.park-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.park-map {
	position: relative; aspect-ratio: 4 / 3; max-height: 360px; width: 100%;
	border: 2px solid var(--chesapeake); border-radius: 18px; overflow: hidden; background: #D3E2F4;
	box-shadow: 0 5px 0 var(--chesapeake), var(--shadow);
}
.park-map .maplibregl-ctrl-top-right .maplibregl-ctrl { margin: 12px 12px 0 0; }
.park-map .maplibregl-ctrl-group button { width: 34px; height: 34px; }

.park-gallery {      /* --n photos (up to 3), each at most --cell wide (the smallest one's own width), centered */
	max-width: calc(var(--n, 3) * var(--cell, 450px) + (var(--n, 3) - 1) * 14px); margin: clamp(24px, 3vw, 40px) auto 0;
}
.park-photos { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 14px; }
.park-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 24px rgba(1, 33, 68, .14); }

.park-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: clamp(32px, 5vw, 80px); align-items: start; padding-top: clamp(32px, 4vw, 56px); }
.park-main { max-width: 52rem; }
.park-section + .park-section { margin-top: clamp(36px, 4vw, 56px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.park-section h2 { font-size: clamp(1.9rem, 1.5rem + 1vw, 2.5rem); }
.park-section h3 { margin: 1.4em 0 .5em; font-size: 1.4rem; }
.park-text p { font-size: 1.25rem; line-height: 1.6; }
.park-text p:last-child { margin-bottom: 0; }

/* Each box is at least as wide as the longest label on one line ("Double slide-outs": 170px with its icon, plus
   the padding), so titles don't wrap: four across in the full-width column (832px), three where it's narrower.
   Every row is the same height, numbers at the bottom, so a wrapped title on a phone doesn't stagger them. */
.glance { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(198px, 100%), 1fr)); grid-auto-rows: 1fr; gap: 10px; margin: 0; }
.glance div { display: flex; flex-direction: column; padding: 12px 14px 14px; border-radius: 12px; background: var(--sky); }
.glance dt { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 1rem; }
.glance-icon { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--chesapeake); }     /* beside the first line */
.glance dd { margin: auto 0 0; padding-top: 2px; font: 400 1.6rem/1.2 var(--serif); color: var(--chesapeake); }

/* three columns (park.html: Facilities, Things to do, then the rest stacked), one on phones */
.amenity-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; align-items: start; }
.amenity-group { padding-bottom: 18px; }
@media (max-width: 600px) {
	.amenity-groups { grid-template-columns: 1fr; }
	.amenity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
	.amenity-list li { align-items: flex-start; gap: 9px; font-size: 1.04rem; }      /* the icon beside a wrapped name's first line */
	.amenity-list .amenity-icon { width: 22px; height: 22px; }
}
.amenity-group h3 { margin: 0 0 .4em; font: 800 1.05rem/1.3 var(--sans); color: var(--chesapeake); }
.amenity-list li { display: flex; align-items: center; gap: 12px; padding: 5px 0; font-size: 1.12rem; line-height: 1.35; }
.amenity-list .amenity-icon { flex: none; width: 24px; height: 24px; color: var(--chesapeake); }     /* includes/amenity-icons.svg.inc */
.amenity-dot { display: grid; place-items: center; flex: none; width: 24px; height: 24px; }        /* a member's own: no icon of its own */
.amenity-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.amenity-list small { color: var(--muted); font-size: .92rem; }

.unit { padding: 22px 24px 24px; border: 2px solid var(--line); border-radius: 16px; }
.unit + .unit { margin-top: 16px; }
.unit-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.unit-head h3 { margin: 0; }
.unit-price { margin: 0; color: var(--muted); }
.unit-price strong { color: var(--chesapeake); font-size: 1.3rem; }
.unit .park-card-facts { margin: 10px 0 14px; }
.unit .park-text p { font-size: 1.15rem; }
.unit-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); gap: 10px; margin-top: 16px; }
.unit-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.unit .button { margin-top: 18px; }

/* A video waits behind its play button: nothing loads from YouTube until it's asked for. */
.video {
	position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden;
	border-radius: 16px; background: var(--chesapeake);
}
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(1.1); }
.video-play {
	position: relative; display: inline-flex; align-items: center; gap: 12px;
	padding: 12px 22px 12px 14px; border: 2px solid var(--chesapeake); border-radius: 999px;
	background: #fff; color: var(--chesapeake); font: 800 1.1rem/1.2 var(--sans); cursor: pointer;
	box-shadow: 0 4px 0 var(--chesapeake), 0 16px 34px rgba(9, 20, 56, .35);
	transition: transform .12s ease, box-shadow .12s ease;
}
.video-play:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--chesapeake), 0 16px 34px rgba(9, 20, 56, .35); }
.video-play .icon { width: 34px; height: 34px; color: var(--orange); }
.video-note { position: absolute; right: 14px; bottom: 10px; margin: 0; color: #fff; font-size: .9rem; text-shadow: 0 1px 3px rgba(9, 20, 56, .6); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.park-aside { position: sticky; top: calc(var(--menu-h-compact) + 24px); }
.contact-card {
	padding: 22px 24px 24px; border: 2px solid var(--chesapeake); border-radius: 18px; background: #fff;
	box-shadow: 0 6px 0 var(--chesapeake), var(--shadow);
}
.contact-card h2 { margin-bottom: .3em; font-size: 1.9rem; }
.contact-hosts { color: var(--muted); }
.contact-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 7px 0; font-size: 1.1rem; line-height: 1.45; }
.contact-list .icon { width: 18px; height: 18px; color: var(--chesapeake); transform: translateY(3px); }
.contact-list a { overflow-wrap: anywhere; }
.contact-social { margin: 8px 0 0 22px; color: var(--chesapeake); }
.contact-social a:hover { background: var(--sky); }
.contact-actions { display: grid; gap: 12px; margin: 18px 0 0; }

.park-more { margin-top: var(--section); padding-block: clamp(40px, 5vw, 72px) var(--ridge-room); background: var(--sky); }
.park-more h2 { font-size: clamp(1.9rem, 1.5rem + 1vw, 2.5rem); }
.more-parks { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 28px; }
.more-parks .park-card a { grid-template-columns: 1fr; }
.more-parks .park-card-photo { aspect-ratio: 16 / 9; min-height: 0; border-right: 0; border-bottom: 8px solid var(--region); }
.park:not(:has(.park-more)) .park-grid { padding-bottom: var(--ridge-room); }

.not-found { padding-block: var(--section) var(--ridge-room); }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }

@media (max-width: 1100px) {
	.park-grid { grid-template-columns: 1fr; }
	.park-aside { position: static; max-width: 560px; }
}
@media (max-width: 959px) {
	.park-head { padding-top: calc(var(--sign-drop) + 30px); }
}
@media (max-width: 900px) {
	.park-head-grid { grid-template-columns: 1fr; }
	.park-map { aspect-ratio: 16 / 10; max-height: 300px; }
	.more-parks { grid-template-columns: 1fr; }
	.more-parks .park-card a { grid-template-columns: minmax(130px, 38%) minmax(0, 1fr); }
	.more-parks .park-card-photo { aspect-ratio: auto; min-height: 140px; border-bottom: 0; border-right: 8px solid var(--region); }
}
@media (max-width: 760px) {
	.park-photos {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
		overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
		margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
	}
	.park-photos li { scroll-snap-align: start; }
	.park-actions .button { flex: 1 1 auto; }
	.unit { padding: 18px 16px 20px; }
	.unit-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.unit-photos li:nth-child(3) { display: none; }
}
@media (max-width: 559px) {
	.glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.more-parks {      /* a row to swipe, like the photos, rather than three full cards down the page */
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory;
		margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scroll-padding-inline: var(--gutter);
	}
	.more-parks > li { scroll-snap-align: start; }
	.more-parks .park-card a { grid-template-columns: 1fr; height: 100%; }
	.more-parks .park-card-photo { aspect-ratio: 16 / 9; min-height: 0; border-right: 0; border-bottom: 8px solid var(--region); }
}
@media (prefers-reduced-motion: reduce) { .video-play { transition: none; } .video-play:hover { transform: none; } }

/* ---------------------------------------------------------------- the other pages
   About MAC, membership, contact, the camping guide, other states, shows, Explore. Each opens with the park
   page's band (crumbs, title, lead, sometimes a picture or card beside them) over a stripe: the sunset, or
   a region's color. The About pages share a menu under it. */
.page-head {
	padding-block: calc(var(--sign-drop) + clamp(44px, 3.6vw, 60px)) clamp(28px, 3.4vw, 48px);
	background: var(--sky);
	border-bottom: 10px solid var(--orange);
	border-image: linear-gradient(90deg, var(--sunset-top), var(--sunset-bottom)) 1;
}
.page-head.has-stripe { border-image: none; border-bottom-color: var(--stripe); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.page-head-grid.has-aside { grid-template-columns: minmax(0, 1fr) auto; }
.page-title { max-width: 54rem; }
.page-title h1 { margin-bottom: .2em; font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.9rem); }
.page-title .lead { margin: 0; max-width: 46rem; }
.page-title .lead-long { font-size: 1.25rem; }      /* a long introduction: body-sized, not lead-sized */
.page-head-guide .page-title .lead { max-width: 54rem; }      /* the camping guide's: two lines on desktops, not three (Joshua) */
.page-head-photo img { width: auto; max-height: 340px; aspect-ratio: 72 / 100; object-fit: cover; border: 2px solid var(--chesapeake); border-radius: 18px; box-shadow: 0 5px 0 var(--chesapeake), var(--shadow); }
.page-head-logo { display: grid; place-items: center; padding: 18px 22px; border: 2px solid var(--chesapeake); border-radius: 18px; background: #fff; box-shadow: 0 5px 0 var(--chesapeake); }
.page-head-logo img { width: 260px; }

/* the About pages' own menu: centred on the capitals above the underline (as the member portal's admin tabs, measured) */
.section-nav { border-bottom: 2px solid var(--line); background: #fff; }
.section-nav ul { display: flex; flex-wrap: wrap; gap: 0 6px; }
.section-nav a {
	display: block; margin-bottom: -2px; padding: 12px 14px 10px; border-bottom: 4px solid transparent;
	color: var(--chesapeake); font-weight: 700; line-height: 28px; text-decoration: none;
}
.section-nav a:hover { border-bottom-color: var(--line); }
.section-nav a[aria-current="page"] { border-bottom-color: var(--orange); }
@media (max-width: 760px) {      /* one row that scrolls sideways (js/site.js brings the current page into view) */
	.section-nav ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: calc(var(--gutter) - 14px); }
	.section-nav ul::-webkit-scrollbar { display: none; }
	.section-nav a { white-space: nowrap; }
}

.page-body { padding-block: clamp(40px, 5vw, 72px) var(--ridge-room); }
.page-band { padding-block: clamp(44px, 5vw, 80px); background: var(--sky); }
.page-band + .page-body, .page-body + .page-band:last-child { padding-bottom: var(--ridge-room); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: clamp(32px, 5vw, 80px); align-items: start; }
.page-aside { position: sticky; top: calc(var(--menu-h-compact) + 24px); display: grid; gap: 24px; }
.page-section:not(:first-child) { margin-top: clamp(48px, 6vw, 88px); }
.prose + .page-section { margin-top: clamp(36px, 4vw, 56px); }
.page-section > h2, .prose h2 { font-size: clamp(1.9rem, 1.5rem + 1vw, 2.5rem); }
.page-section > .section-lead { max-width: 46rem; margin-top: -.2em; color: var(--muted); font-size: 1.2rem; }
.prose { max-width: 46rem; }
.prose p, .prose li { font-size: 1.25rem; line-height: 1.6; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: .4em; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.card-plain { padding: 22px 24px 24px; border: 2px solid var(--line); border-radius: 16px; background: #fff; }
.h-small { font-size: 1.6rem; }
.contact-card .card-note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 1.05rem; }
.contact-card .card-note:last-child { margin-bottom: 0; }
@media (max-width: 1100px) {
	.page-grid { grid-template-columns: 1fr; }
	.page-aside { position: static; max-width: 620px; }
	.page-aside.aside-first { order: -1; }      /* the membership pages' dues and Apply Now, ahead of the text and the form */
}
@media (max-width: 959px) { .page-head { padding-top: calc(var(--sign-drop) + 30px); } }
@media (max-width: 760px) {
	.page-head-grid.has-aside { grid-template-columns: 1fr; }
	.page-head-photo { display: none; }      /* the region's photo: the page has the counties' own */
	.page-head-logo { justify-self: start; }
}

/* officers and directors */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.person { padding: 20px 22px 22px; border: 2px solid var(--line); border-radius: 16px; background: #fff; }
.person.is-lead { border-color: var(--chesapeake); box-shadow: 0 5px 0 var(--chesapeake); }
.person-role { margin: 0 0 4px; color: var(--muted); font-size: 1.0625rem; font-weight: 700; }
.person-name { margin: 0; font: 400 1.65rem/1.15 var(--serif); color: var(--chesapeake); }
.person-park { margin: 8px 0 0; font-size: 1.15rem; line-height: 1.4; }
.person-phone { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; font-weight: 700; }
.person-phone .icon { color: var(--chesapeake); }

/* membership: what members get, the dues */
.benefits { display: grid; }
.benefit { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.benefit:last-child { border-bottom: 1px solid var(--line); }
.benefit-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sky); color: var(--chesapeake); }
.benefit-icon .icon { width: 24px; height: 24px; }
.benefit h3 { margin: 4px 0 .3em; font-size: 1.4rem; }
.benefit p { margin: 0; font-size: 1.15rem; }
.benefit p + p { margin-top: .6em; }
.benefits + .section-lead { margin-top: 22px; }      /* clear of the list's last line, as far as the rows' own padding */
.dues { margin: 4px 0 0; }
.dues div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.dues dt { font-size: 1.15rem; }
.dues dd { margin: 0; font: 400 1.75rem/1.1 var(--serif); color: var(--chesapeake); }
.dues-one dd { font-size: 2.6rem; }

/* business members */
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.biz { display: flex; flex-direction: column; padding: 22px 24px 24px; border: 2px solid var(--line); border-radius: 16px; background: #fff; }
.biz-logo { display: flex; align-items: center; height: 100px; margin-bottom: 18px; }
.biz-logo img { width: auto; max-height: 100px; }
.biz h2 { margin: 0 0 .25em; font-size: 1.55rem; }
.biz-what { margin: 0 0 14px; color: var(--muted); font-size: 1.1rem; line-height: 1.45; }
.biz-who { margin: 0; font-size: 1.1rem; }
.biz-who a { font-weight: 700; }
.biz-site { margin: auto 0 0; padding-top: 16px; }
.biz-site a, .ext { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; overflow-wrap: anywhere; }
.biz-site .icon, .ext .icon { width: 14px; height: 14px; }
.thanks-list { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 1.15rem; }

/* links out: other states' associations, attractions */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.link-grid-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.link-card {
	display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 2px 14px; align-items: center; height: 100%;
	padding: 16px 18px 17px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none;
	transition: border-color .15s ease, box-shadow .2s ease, transform .2s var(--ease-out);
}
.link-card:hover { border-color: var(--chesapeake); box-shadow: 0 10px 26px rgba(1, 33, 68, .14); transform: translateY(-2px); }
.link-card strong { font: 400 1.4rem/1.2 var(--serif); color: var(--chesapeake); }
.link-card span { color: var(--muted); font-size: 1.05rem; line-height: 1.4; }
.link-card .icon { grid-row: 1 / span 3; grid-column: 2; width: 16px; height: 16px; color: var(--chesapeake); }
.link-card-big { padding: 22px 24px 24px; border-color: var(--chesapeake); box-shadow: 0 5px 0 var(--chesapeake); }
.link-card-big:hover { box-shadow: 0 7px 0 var(--chesapeake), 0 14px 30px rgba(1, 33, 68, .16); }
.link-card-big strong { font-size: 1.75rem; }
.link-group + .link-group { margin-top: clamp(36px, 4vw, 56px); }
.link-group > h3 { display: flex; align-items: baseline; gap: .6em; margin-bottom: .7em; font-size: 1.5rem; }
.link-group > h3 a { color: inherit; text-decoration: none; }
.link-group > h3 a:hover { text-decoration: underline; }
.link-group > h3 .dot { width: .7em; height: .7em; flex: none; border-radius: 50%; background: var(--region); box-shadow: inset 0 0 0 1px rgba(1, 33, 68, .25); }
/* the major attractions: a photo over the name, the card lifting a little on hover */
.photo-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.photo-link {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; align-items: start; height: 100%;
	border: 2px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; color: var(--ink); text-decoration: none;
	transition: border-color .15s ease, box-shadow .2s ease, transform .2s var(--ease-out);
}
.photo-link img { grid-column: 1 / -1; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s var(--ease-out); }
.photo-link-text { display: grid; gap: 2px; padding: 14px 0 16px 16px; }
.photo-link strong { font: 400 1.35rem/1.2 var(--serif); color: var(--chesapeake); }
.photo-link-text span { color: var(--muted); font-size: 1.05rem; line-height: 1.4; }
.photo-link > .icon { width: 16px; height: 16px; margin: 20px 16px 0 10px; color: var(--chesapeake); }
.photo-link:hover { border-color: var(--chesapeake); box-shadow: 0 10px 26px rgba(1, 33, 68, .14); transform: translateY(-2px); }
.photo-link:hover img { transform: scale(1.04); }
/* All of them in one grid, each photo over its region's color; the chips (the finder's) show one region's. */
.attraction-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; border: 0; }
.chip-count { margin-left: 2px; color: var(--muted); font-weight: 600; }
.chip input:checked + .chip-face .chip-count { color: var(--chesapeake); }
.photo-links > li .photo-link img { border-bottom: 6px solid var(--region); }
.photo-links > li[data-region="statewide"] .photo-link img { border-image: linear-gradient(90deg, var(--sunset-top), var(--sunset-bottom)) 1; }
.attractions-list:has(.attraction-filter input[value="statewide"]:checked) .photo-links > li:not([data-region="statewide"]),
.attractions-list:has(.attraction-filter input[value="western"]:checked) .photo-links > li:not([data-region="western"]),
.attractions-list:has(.attraction-filter input[value="northern"]:checked) .photo-links > li:not([data-region="northern"]),
.attractions-list:has(.attraction-filter input[value="central"]:checked) .photo-links > li:not([data-region="central"]),
.attractions-list:has(.attraction-filter input[value="southern"]:checked) .photo-links > li:not([data-region="southern"]),
.attractions-list:has(.attraction-filter input[value="upper-shore"]:checked) .photo-links > li:not([data-region="upper-shore"]),
.attractions-list:has(.attraction-filter input[value="lower-shore"]:checked) .photo-links > li:not([data-region="lower-shore"]) { display: none; }
@media (max-width: 600px) {      /* phones: a row each, the photo as a thumbnail beside the name */
	.photo-links { gap: 10px; }
	.photo-link { grid-template-columns: 116px minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; }
	.photo-link img { grid-column: 1; height: 100%; min-height: 84px; aspect-ratio: auto; }
	.photo-links > li .photo-link img { border-bottom: 0; border-right: 6px solid var(--region); }
	.photo-links > li[data-region="statewide"] .photo-link img { border-image: linear-gradient(180deg, var(--sunset-top), var(--sunset-bottom)) 1; }
	.photo-link-text { padding: 12px 0 12px 14px; }
	.photo-link strong { font-size: 1.2rem; }
	.photo-link > .icon { margin: 0 14px 0 8px; }
}
.credits { margin-top: clamp(36px, 4vw, 56px); color: var(--muted); font-size: 1rem; }
.credits summary { cursor: pointer; color: var(--chesapeake); font-weight: 700; }
.credits p { margin: 10px 0 6px; }
.credits ul { columns: 2 340px; column-gap: 40px; }
.credits li { margin-bottom: 6px; break-inside: avoid; }
@media (prefers-reduced-motion: reduce) { .link-card, .photo-link, .photo-link img { transition: none; } .link-card:hover, .photo-link:hover, .photo-link:hover img { transform: none; } }

/* camping shows */
.shows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.show { padding: 24px 26px 26px; border: 2px solid var(--chesapeake); border-radius: 18px; background: #fff; box-shadow: 0 5px 0 var(--chesapeake); }
.show-when { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--chesapeake); font-weight: 800; }
.show-when .icon { width: 22px; height: 22px; color: var(--orange); }
.show h2 { margin-bottom: .35em; font-size: 1.9rem; }
.show p:last-child { margin-bottom: 0; }
.show { display: flex; flex-direction: column; }
.show-link { margin-top: auto !important; padding-top: 6px; }
.show-where { display: flex; align-items: baseline; gap: 10px; font-size: 1.2rem; }
.show-where .icon { flex: none; color: var(--chesapeake); transform: translateY(3px); }

/* the free camping guide */
.guide-page { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 640px); gap: clamp(32px, 6vw, 96px); align-items: start; justify-content: center; }
.guide-cover img { width: 100%; border-radius: 6px; box-shadow: 0 2px 0 rgba(1, 33, 68, .2), 0 24px 50px rgba(1, 33, 68, .28); }
.guide-cover figcaption { margin-top: 22px; color: var(--muted); font-size: 1.05rem; text-align: center; }
@media (max-width: 860px) {
	.guide-page { grid-template-columns: 1fr; }
	.guide-cover { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; align-items: center; }
	.guide-cover figcaption { margin: 0; text-align: left; }
}

/* ---------------------------------------------------------------- forms (the server's mailer() library, restyled)
   Its table becomes a grid: labels over the fields, each field as wide as its words need (js/site.js names
   each row by its label: data-field). Its colons after labels are taken off by the script, and what to fix
   shows in its own error row (#top_mailer_error), in plain words. */
.form-box {
	scroll-margin-top: 110px; padding: clamp(22px, 3vw, 36px);
	border: 2px solid var(--chesapeake); border-radius: 20px; background: #fff; box-shadow: 0 6px 0 var(--chesapeake), var(--shadow);
}
.form-box > h2 { margin-bottom: .25em; font-size: clamp(1.8rem, 1.4rem + 1vw, 2.3rem); }
.form-box > .form-intro { color: var(--muted); }
.form-box .mailer-table { display: block; width: 100%; border: 0; border-collapse: collapse; }
.form-box .mailer-table > tbody { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 18px; }
.form-box .mailer-table > tbody > tr { display: block; grid-column: 1 / -1; }
.form-box .mailer-table > tbody > tr > td, .form-box .mailer-table > tbody > tr > th { display: block; width: auto !important; padding: 0; text-align: left !important; }
.form-box #theForm tr.ns { display: none !important; }
.form-box .mailer-table > tbody > tr:is([data-field="e-mail-address"], [data-field="phone"], [data-field="business-name"], [data-field="website"], [data-field="city"]) { grid-column: span 3; }
.form-box .mailer-table > tbody > tr[data-field="campground-name"] { grid-column: span 4; }
.form-box .mailer-table > tbody > tr:is([data-field="number-of-sites"], [data-field="zip-code"]) { grid-column: span 2; }
.form-box .mailer-table > tbody > tr[data-field="state"] { grid-column: span 1; }
.form-box #theForm .mailer_leftCol { padding-bottom: 6px; }
.form-box #theForm .mailer_leftCol label { color: var(--chesapeake); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.form-box #theForm input[type="text"], .form-box #theForm input[type="email"], .form-box #theForm input[type="tel"],
.form-box #theForm input[type="url"], .form-box #theForm input[type="number"], .form-box #theForm select, .form-box #theForm textarea {
	display: block; width: 100% !important; max-width: none !important; min-height: 54px; margin: 0; padding: 10px 14px;
	border: 2px solid #B9CADD; border-radius: 12px; background: #fff; color: var(--ink);
	font: 500 1.15rem/1.35 var(--sans) !important;
}
.form-box #theForm select { padding-right: 8px; }
/* After a refused send the library layers a fake "(Required)" placeholder (inputs named __…) under each required
   field and fades the empty ones: the form looks as it did the first time instead (the error row says what to fix). */
.form-box #theForm input[name^="__"] { display: none !important; }
.form-box #theForm input[required] { opacity: 1 !important; filter: none !important; }
.form-box #theForm textarea { min-height: 170px; resize: vertical; line-height: 1.5 !important; }
.form-box #theForm input:hover, .form-box #theForm select:hover, .form-box #theForm textarea:hover { border-color: #8EA4BD; }
.form-box #theForm input:focus, .form-box #theForm select:focus, .form-box #theForm textarea:focus { border-color: var(--chesapeake); outline: 3px solid var(--royal); outline-offset: 2px; }
/* The state list. The browser's own list is drawn outside the page and opens on whichever side of the field has
   more room on screen; near the middle of the screen Chrome's could jump from one side to the other while open,
   so a click landed on the wrong state. Where the browser allows it (Chrome, Edge, Brave: base-select) the list is
   part of the page instead: below the field, above only when there isn't room below, a fixed height that scrolls.
   Not on touch screens: phones and tablets keep their own full-screen list, and other browsers their usual one. */
@supports (appearance: base-select) {
	@media not all and (pointer: coarse) {
		.form-box #theForm select, .form-box #theForm select::picker(select) { appearance: base-select; }
		.form-box #theForm select { display: flex; align-items: center; padding-right: 12px; cursor: pointer; }
		.form-box #theForm select::picker-icon {      /* the site's chevron (as in the menu), not Chrome's filled triangle */
			content: ""; width: 16px; height: 16px; margin-left: auto; background: var(--chesapeake); transition: rotate .15s ease;
			-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E") center / contain no-repeat;
			mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E") center / contain no-repeat;
		}
		.form-box #theForm select:open { border-color: var(--chesapeake); }
		.form-box #theForm select:open::picker-icon { rotate: 180deg; }
		.form-box #theForm select::picker(select) {
			position-area: block-end span-inline-end; position-try-order: normal; position-try-fallbacks: flip-block;
			min-width: anchor-size(width); max-height: min(320px, 45vh); margin: 6px 0; padding: 6px;
			border: 2px solid var(--chesapeake); border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgba(1, 33, 68, .2);
		}
		.form-box #theForm option { gap: 10px; padding: 8px 12px; border-radius: 8px; color: var(--ink); font: 500 1.1rem/1.3 var(--sans); cursor: pointer; }
		.form-box #theForm option:hover { background: var(--sky); }
		.form-box #theForm option:focus-visible { outline: none; background: var(--chesapeake); color: #fff; }
		.form-box #theForm option:checked { font-weight: 700; }
	}
}
@media (prefers-reduced-motion: reduce) { .form-box #theForm select::picker-icon { transition: none; } }
.form-box #theForm [id$="_spaceMessage"] { margin-top: 8px; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.form-box .form-hint, .form-box .form-dues { margin: 8px 0 0; color: var(--muted); font-size: 1.0625rem; line-height: 1.45; }
.form-box .form-dues:empty { display: none; }
.form-box .form-dues strong { color: var(--chesapeake); }
.form-box #submit > td { padding-top: 6px; }
.form-box #mailer_submit {         /* the painted-sign button (an input, so set out in full here) */
	display: inline-flex; align-items: center; justify-content: center; min-height: 50px; margin: 0; padding: 13px 1.6em;
	border: 2px solid var(--chesapeake); border-radius: 12px; background: var(--susan); color: var(--chesapeake);
	box-shadow: 0 4px 0 var(--chesapeake); font: 800 1.08rem/20px var(--sans) !important; letter-spacing: .01em; cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, background-color .15s;
}
.form-box #mailer_submit:hover { background: var(--susan-hover); transform: translateY(-2px); box-shadow: 0 6px 0 var(--chesapeake); }
.form-box #mailer_submit:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--chesapeake); }
.form-box #mailer_submit:disabled { opacity: .6; cursor: default; transform: none; box-shadow: 0 4px 0 var(--chesapeake); }
.form-box #top_mailer_error td, .form-box #bottom_mailer_error td, .form-box #response_message {
	padding: 12px 14px; border: 2px solid var(--red); border-radius: 12px; background: #FDEEEE; color: #7A1213; font-weight: 600; font-size: 1.0625rem; line-height: 1.5;
}
.form-box #theForm [id^="autofill_warning"] div, .form-box #theForm [id^="new_warning_disappear"] div,
.form-box #theForm [id^="warning_disappear"] { font-size: 1.0625rem !important; line-height: 1.55; }
.form-box #theForm [id^="unofficial_warning"] td { color: #9B1C1D !important; }
.form-box #formPrivacyTr { display: none !important; }      /* the library's own statement: ours is on /privacy/ */
.form-privacy { margin: 18px 0 0; color: var(--muted); font-size: 1rem; }
.form-sent { padding: clamp(24px, 4vw, 48px) 8px; text-align: center; }
.form-sent:focus { outline: none; }
.form-sent-icon { width: 56px; height: 56px; margin: 0 auto 14px; color: #1F7A4A; }
.form-sent h2 { font-size: clamp(1.8rem, 1.4rem + 1vw, 2.3rem); }
.form-sent p { max-width: 32rem; margin-inline: auto; font-size: 1.2rem; }
@media (max-width: 600px) {
	.form-box .mailer-table > tbody > tr[data-field] { grid-column: 1 / -1; }
	.form-box .mailer-table > tbody > tr:is([data-field="state"], [data-field="zip-code"]) { grid-column: span 3; }
	.form-box #mailer_submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .form-box #mailer_submit { transition: background-color .15s; } .form-box #mailer_submit:hover, .form-box #mailer_submit:active { transform: none; } }

/* ---------------------------------------------------------------- Explore Maryland (/explore/, /explore/REGION/)
   A region's page: its counties, each with its photos, its tourism office's words, the video (waiting
   behind its play button) and a link to the county's own site. */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.jump a {
	display: block; padding: 6px 14px; border: 2px solid var(--chesapeake); border-radius: 999px; background: #fff;     /* centred on the capitals (measured) */
	color: var(--chesapeake); font-weight: 700; font-size: 1.0625rem; line-height: 24px; text-decoration: none;
}
.jump a:hover { background: var(--susan); }
.county { scroll-margin-top: 100px; }
.county + .county { margin-top: clamp(56px, 7vw, 104px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.county-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: clamp(20px, 2.4vw, 32px); }
.county-head h2 { margin: 0; font-size: clamp(2rem, 1.5rem + 1.4vw, 2.8rem); }
.county-photos { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 14px; margin-bottom: clamp(24px, 3vw, 44px); }
.county-photos figure, .guide-cover { margin: 0; }
.county-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 24px rgba(1, 33, 68, .14); }
.county-photos figcaption { margin-top: 8px; color: var(--muted); font-size: 1rem; }
.county-body { display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.county-body:not(:has(.video)) { grid-template-columns: minmax(0, 46rem); }
.county-text h3 { margin: 1.3em 0 .35em; font: 800 1.25rem/1.3 var(--sans); color: var(--chesapeake); letter-spacing: 0; }
.county-text h3:first-child { margin-top: 0; }
.county-text p { font-size: 1.2rem; line-height: 1.6; }
.county-text p:last-child { margin-bottom: 0; }
.county-body .video { position: sticky; top: calc(var(--menu-h-compact) + 24px); }
.region-more { padding-block: clamp(44px, 5vw, 80px) var(--ridge-room); background: var(--sky); }
.region-more-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.region-more h2 { font-size: clamp(1.9rem, 1.5rem + 1vw, 2.5rem); }
.region-list { display: grid; gap: 10px; }
.region-list a {
	display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 2px solid var(--line); border-radius: 14px; background: #fff;
	color: var(--chesapeake); font-weight: 700; font-size: 1.15rem; text-decoration: none;
}
.region-list a:hover { border-color: var(--chesapeake); }
.region-list .dot { width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--region); box-shadow: inset 0 0 0 1px rgba(1, 33, 68, .25); }
.region-list [aria-current="page"] { border-color: var(--chesapeake); background: var(--sky); }
@media (max-width: 900px) {
	.county-body, .county-body:not(:has(.video)) { grid-template-columns: 1fr; }
	.county-body .video { position: relative; top: 0; }
	.region-more-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.county-photos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory;
		margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 12px; scroll-padding-inline: var(--gutter); }
	.county-photos figure { scroll-snap-align: start; }
}

/* ---------------------------------------------------------------- photo galleries and the lightbox
   A park's (or a rental's) row of photos opens into a full-screen lightbox (initGallery in js/site.js) when there
   is more to see: more photos ("See all N photos" on the row), or photos uploaded bigger than the row shows them.
   The lightbox never enlarges a photo past its own size (--w), so the old 450px ones stay sharp. */
.gallery { position: relative; }
.gallery-open { position: relative; display: block; cursor: zoom-in; border-radius: 14px; }      /* holds its hidden text inside the phone scroller */
.gallery-open img { transition: filter .2s ease; }
.gallery-open:hover img { filter: brightness(1.06); }
.unit-photos .gallery-open { border-radius: 10px; }
.gallery-all { position: absolute; right: 12px; bottom: 12px; }
.unit .gallery-all { right: 8px; bottom: 8px; }
.unit .button.gallery-all { margin-top: 0; }

.lightbox {
	position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
	background: rgba(238, 242, 255, .95); color: var(--chesapeake); overscroll-behavior: contain;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.lightbox {                              /* frosted glass in the site's sky blue: the page shows through, softly */
		background: rgba(238, 242, 255, .78);
		-webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
	}
}
.lightbox[open] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; }
.lightbox::backdrop { background: transparent; }
/* Quick repeated clicks on the lightbox's controls count as double-clicks; they mustn't select text or photos (as on
   otterlake.com, where Joshua saw the photo strip highlighted; the standard for this lightbox). */
.lightbox { -webkit-user-select: none; user-select: none; }      /* (its caption can still be selected) */
.lb-caption { -webkit-user-select: text; user-select: text; }
.lb-img, .lb-thumbs img { -webkit-user-drag: none; }
html.lb-open { overflow: hidden; }
.lb-stage {      /* the photo fits inside it (and never grows past its own width, --w) */
	position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; overflow: hidden;
	padding: 64px 84px 8px; touch-action: pan-y pinch-zoom;
}
.lb-img {
	flex: none; max-width: min(100%, var(--w, 100%)); max-height: 100%; width: auto; height: auto;
	border-radius: 6px; box-shadow: 0 18px 48px rgba(1, 33, 68, .3); user-select: none; -webkit-user-drag: none;
}
.lb-caption { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 0; padding: 10px 84px 4px; font-size: 1.05rem; text-align: center; }
.lb-alt { color: var(--chesapeake); font-weight: 600; }
.lb-count { color: var(--chesapeake); white-space: nowrap; }      /* navy, not grey: 7.8:1 even over black through the glass */
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 18px; scrollbar-width: thin; }
.lb-thumbs > :first-child { margin-left: auto; }
.lb-thumbs > :last-child { margin-right: auto; }
.lb-thumbs button { flex: none; width: 76px; height: 51px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: rgba(1, 33, 68, .08); opacity: .6; cursor: pointer; transition: opacity .15s; }
.lb-thumbs button:hover { opacity: .85; }
.lb-thumbs button[aria-current="true"] { border-color: var(--chesapeake); opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb-btn {
	position: absolute; z-index: 1; display: grid; place-items: center; width: 50px; height: 50px; padding: 0;
	border: 2px solid var(--chesapeake); border-radius: 50%; background: #fff; color: var(--chesapeake);
	box-shadow: 0 4px 0 var(--chesapeake); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.lb-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--chesapeake); }
.lb-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--chesapeake); }
.lb-btn .icon { width: 20px; height: 20px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev, .lb-next { top: 50%; margin-top: -25px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
@media (max-width: 760px) {
	.gallery-all { position: static; display: flex; width: 100%; margin-top: 4px; }
	.lb-stage { padding: 64px 10px 6px; }
	.lb-caption { padding: 8px 16px 2px; }
	.lb-prev, .lb-next { top: auto; bottom: 16px; margin-top: 0; width: 44px; height: 44px; }      /* level with the thumbnails */
	.lb-prev { left: 12px; }
	.lb-next { right: 12px; }
	.lb-thumbs { margin-inline: 60px; padding-inline: 6px; }      /* scrolls between the two arrows, not under them */
	.lb-thumbs button { width: 60px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .lb-btn, .gallery-open img { transition: none; } .lb-btn:hover, .lb-btn:active { transform: none; } }

/* ---------------------------------------------------------------- footer */
.site-footer { position: relative; background: var(--chesapeake); color: rgba(255, 255, 255, .86); font-size: 1.0625rem; }
.site-footer > .ridge-to-shore { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); color: var(--chesapeake); }
.footer-grid {
	display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px 48px;
	padding-top: clamp(24px, 3vw, 40px); padding-bottom: 40px;
}
.site-footer a { color: #fff; }
.footer-name { font: 400 1.6rem/1.15 var(--serif); color: #fff; }
.footer-about address { margin-bottom: 14px; line-height: 1.7; }
.footer-about .social { margin-left: -8px; }
.footer-about .social a:hover { background: rgba(255, 255, 255, .14); }
.footer-links h2 { margin-bottom: 14px; font: 700 1.0625rem/1.3 var(--sans); color: var(--susan); letter-spacing: 0; }
.footer-links li + li { margin-top: 9px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
	padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 1rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.credit img { width: 250px; height: auto; }     /* Digital Projections Web Studio */
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) {      /* phones: two columns, About MAC's links across both, so the footer isn't two screens tall */
	.footer-grid { gap: 28px 20px; }
	.footer-links-wide { grid-column: 1 / -1; }
	.footer-links-wide ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 20px; }
	.footer-links-wide li + li { margin-top: 0; }
}

/* ---------------------------------------------------------------- reveal on scroll
   site.js marks content that starts below the fold with .rv-wait, then swaps in .rv-go plus an effect as
   each piece scrolls into view (once), and takes the classes off when it has finished. Nothing is hidden
   without the script, and nothing that is on screen when the page loads. */
:root {
	--ease-out: cubic-bezier(.23, 1, .32, 1);
	--ease-in-out: cubic-bezier(.77, 0, .175, 1);
}
.rv-wait { opacity: 0; }
.rv-go {
	animation-duration: .9s;
	animation-timing-function: var(--ease-out);
	animation-delay: var(--rv-delay, 0s);
	animation-fill-mode: both;
}
.rv-go.rv-up { animation-name: rv-up; }
.rv-go.rv-card { animation-name: rv-card; animation-duration: 1s; }
.rv-go.rv-focus { animation-name: rv-up; animation-duration: 1s; }
.rv-go.rv-focus img { animation: rv-focus 1.4s var(--ease-out) var(--rv-delay, 0s) both; }
.rv-go.rv-left { animation-name: rv-left; animation-duration: 1s; }
.rv-go.rv-right { animation-name: rv-right; animation-duration: 1s; }
.rv-go.rv-fade { animation-name: rv-fade; animation-duration: .45s; animation-timing-function: ease; }
@keyframes rv-up    { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; } }
@keyframes rv-card  { from { opacity: 0; transform: translate3d(0, 34px, 0) scale(.97); } to { opacity: 1; } }
@keyframes rv-left  { from { opacity: 0; transform: translate3d(-36px, 0, 0); } to { opacity: 1; } }
@keyframes rv-right { from { opacity: 0; transform: translate3d(36px, 0, 0); } to { opacity: 1; } }
/* A photo rises into place while the picture comes into focus, from a soft blur and a touch of zoom. */
@keyframes rv-focus { from { filter: blur(14px); transform: scale(1.05); } }
@keyframes rv-fade  { from { opacity: 0; } }
@media print {
	.rv-wait { opacity: 1 !important; }
	.rv-go, .rv-go img { animation: none !important; }
}

/* ---------------------------------------------------------------- motion preferences */
@media (prefers-reduced-motion: reduce) {
	.rv-go { animation-name: rv-fade !important; animation-duration: .45s !important; }
	.rv-go.rv-focus img { animation: none !important; }
	.hero-slide { transition: none; animation: none !important; }
}
