/* NCA member portal (members.campnca.com). The MAC portal's look (Young Serif and Figtree, self-hosted, OFL;
   navy; white cards on the sky tint; painted-sign buttons) with NCA's logo and its red (--orange) in the band;
   to be restyled after the new campnca.com once that is designed. The color names are MAC's, kept so the two
   portals' stylesheets stay comparable. Bump PORTAL_ASSET_VERSION in app/page.inc after changing this. */

@font-face {
	font-family: "Young Serif";
	src: url("/assets/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("/assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
	font-weight: 300 900; font-style: normal; font-display: swap;
}

:root {
	--chesapeake: #012144;
	--chesapeake-soft: #1D4E84;
	--royal: #2948FF;
	--orange: #CC2026;          /* NCA's red, from its logo */
	--gold: #FDC830;
	--red: #C42324;
	--sky: #EEF6FF;
	--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;
	--gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; min-height: 100vh; display: flex; flex-direction: column;
	background: var(--sky); color: var(--ink);
	font: 400 1.1875rem/1.6 var(--sans); -webkit-font-smoothing: antialiased;
	text-wrap: pretty;
}
h1, h2, h3 { margin: 0 0 .45em; font-family: var(--serif); font-weight: 400; line-height: 1.12; color: var(--chesapeake); text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
h2 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
a { color: var(--royal); text-underline-offset: .18em; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 4px; }
.lead { font-size: 1.25rem; color: var(--muted); }
.small, .hint { font-size: 1.0625rem; color: var(--muted); }
.nowrap { white-space: nowrap; }
.hint { margin: 6px 0 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 8px; background: var(--gold); color: var(--chesapeake); font-weight: 700; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
.notice-head { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.portal-wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

/* the header: white, with the logo, the portal's name, who's signed in; the site's orange-to-gold band under it */
.portal-header { background: #fff; border-bottom: 6px solid transparent; border-image: linear-gradient(90deg, var(--orange), var(--gold)) 1; }
.portal-header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; min-height: 76px; padding-block: 10px; }
.portal-brand { display: flex; align-items: center; gap: 16px; color: var(--chesapeake); text-decoration: none; }
.portal-brand img { width: auto; height: 60px; }
.portal-brand span { padding-left: 16px; border-left: 2px solid var(--line); font: 400 1.35rem/1.1 var(--serif); }
.portal-who { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--muted); }
.portal-who form { margin: 0; }

.portal-main { flex: 1; width: 100%; max-width: 1200px; margin-inline: auto; padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(40px, 6vw, 80px); }
.portal-footer { padding-block: 22px 26px; background: var(--chesapeake); color: rgba(255, 255, 255, .86); font-size: 1.0625rem; }
.portal-footer p { margin: 0; }
.portal-footer a { color: #fff; }

/* cards */
.card { padding: clamp(24px, 3.5vw, 40px); border: 2px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(1, 33, 68, .08); }
.card-narrow { max-width: 560px; margin-inline: auto; }
.card + .card { margin-top: 24px; }
.page-head { margin-bottom: 28px; }
.page-head .lead { max-width: 44rem; }

/* forms */
.form { display: grid; gap: 18px; margin: 8px 0 22px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--chesapeake); }
.input {
	width: 100%; min-height: 54px; padding: 10px 14px;
	border: 2px solid #B9CADD; border-radius: 12px; background: #fff;
	color: var(--ink); font: 500 1.15rem/1.3 var(--sans);
}
.input:hover { border-color: #8EA4BD; }
.input:focus { border-color: var(--chesapeake); outline: 3px solid var(--royal); outline-offset: 2px; }
.input[aria-invalid="true"] { border-color: var(--red); }
.input-setup { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.form-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }

.notice { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; border: 2px solid; font-weight: 600; }
.notice-error { border-color: var(--red); background: #FDEEEE; color: #7A1213; }
.notice-ok { border-color: #1F7A4A; background: #E8F6EE; color: #11502F; }

/* buttons: a solid color, a navy outline and a hard edge underneath, like a painted park sign.
   Labels here (buttons, tags, tabs, section links) are centred on their capitals, measured in pixels with the
   label at every sixteenth of a pixel down the page, at 1x and 2x. They hold only with whole-pixel heights and
   line heights: a box that's 40.5px tall is drawn 40 or 41 tall depending on where it lands, but its text
   doesn't move with it. */
.button {
	--btn-bg: var(--gold); --btn-ink: var(--chesapeake); --btn-drop: var(--chesapeake);
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 50px; padding: 13px 1.4em;
	border: 2px solid var(--chesapeake); 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-gold:hover { --btn-bg: #FFD45C; }
.button-white { --btn-bg: #fff; }
.button-white:hover { --btn-bg: #F6FAFF; }
.button-navy { --btn-bg: var(--chesapeake); --btn-ink: #fff; --btn-drop: var(--orange); }
.button-navy:hover { --btn-bg: var(--chesapeake-soft); }
.button-small {
	min-height: 41px; padding: 10px 1em 9px; font-size: .98rem; line-height: 18px; box-shadow: 0 3px 0 var(--btn-drop);
}
.form .button { justify-self: start; }
.button .icon { flex: none; width: 18px; height: 18px; }
.button-icon { width: 41px; padding: 0; }       /* a square button with only an arrow (its words are for screen readers) */
.button-icon .icon { width: 19px; height: 19px; }      /* 41 - 4 border - 19 = 18: whole pixels either side */
@media (prefers-reduced-motion: reduce) {
	.button { transition: background-color .15s; }
	.button:hover, .button:active { transform: none; }
}

.tag { display: inline-block; padding: 5px 10px 4px; border-radius: 8px; background: var(--sky); color: var(--chesapeake); font-size: .92rem; font-weight: 700; line-height: 20px; vertical-align: middle; }   /* centred on the capitals */
.tag-soon { background: #FFF4D6; color: #6B4A00; }

/* the person's campgrounds */
.park-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.park-tile { padding: 22px 24px; border: 2px solid var(--line); border-radius: 18px; background: #fff; }
.park-tile h2 { margin-bottom: .2em; }
.park-tile-town { color: var(--muted); }
.park-tile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0; }
.admin-card { margin-top: 28px; border-color: var(--chesapeake); }

@media (max-width: 560px) {
	.portal-brand img { height: 48px; }
	.portal-brand span { padding-left: 12px; font-size: 1.15rem; }
	.portal-who { width: 100%; justify-content: space-between; }
}

/* ---------------------------------------------------------------- the listing editor (/park/ID)
   The sections down the side (on phones, as a row of chips at the top), each section a card with its own
   Save button. */
.crumbs { margin-bottom: 10px; font-weight: 700; }
.crumbs a { color: var(--chesapeake); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.editor-head .lead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.editor { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.editor-nav { position: sticky; top: 20px; }
.editor-nav a { display: block; padding: 10px 12px 8px; border-radius: 10px; color: var(--chesapeake); font-weight: 700; line-height: 28px; text-decoration: none; }   /* centred on the capitals */
.editor-nav a:hover { background: #fff; }
.editor-sections { display: grid; gap: 24px; min-width: 0; }
.editor-section { scroll-margin-top: 20px; }
.editor-section h2 { margin-bottom: .25em; }
.editor-section h3 { margin: 28px 0 12px; font: 800 1.1rem/1.3 var(--sans); color: var(--chesapeake); }
.section-intro { max-width: 46rem; color: var(--muted); }
.section-foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }

.fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 22px; }
.fields + .fields { margin-top: 20px; }
.field-long, .field-wide { grid-column: span 6; }
.field-long .input { max-width: 640px; }
.field-medium { grid-column: span 3; }
.field-short { grid-column: span 2; }
.fields-counts { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); align-items: end; }
.fields-counts .field-short { grid-column: auto; }
@supports (grid-template-rows: subgrid) {      /* each count's label, box, hint and error on shared rows, so the boxes line up */
	.fields-counts { align-items: stretch; row-gap: 0; }
	.fields-counts .field { display: grid; grid-row: span 4; grid-template-rows: subgrid; margin-bottom: 20px; }
	.fields-counts .field label { align-self: end; }
}
@media (max-width: 560px) { .fields-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; } }
.field-pair { grid-column: span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 520px; }
.field-pair .field { grid-column: auto; }
.fields:has(#f-year_round:checked) .field-pair { display: none; }      /* all year: no months to choose */
textarea.input { min-height: 130px; resize: vertical; line-height: 1.55; }
.field-error { margin: 6px 0 0; color: #9B1C1D; font-weight: 700; font-size: 1.0625rem; }
.counter { margin: 4px 0 0; color: var(--muted); font-size: 1rem; text-align: right; }
.counter.is-over { color: #9B1C1D; font-weight: 700; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--chesapeake); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--chesapeake); }
.field .check { display: flex; margin-bottom: 0; }      /* not the field's own label style */

/* the map pin */
.pin-map { position: relative; height: 380px; margin-top: 22px; border: 2px solid var(--chesapeake); border-radius: 16px; overflow: hidden; background: #D3E2F4; box-shadow: 0 4px 0 var(--chesapeake); }
.pin-map .maplibregl-map { position: absolute; inset: 0; }
.map-off { position: absolute; inset: auto 12px 12px; margin: 0; padding: 10px 14px; border-radius: 10px; background: #fff; }
.map-pin {
	display: grid; place-items: center; width: 40px; height: 40px;
	border: 2px solid var(--chesapeake); border-radius: 50%; background: var(--orange); color: var(--chesapeake);
	box-shadow: 0 3px 0 var(--chesapeake); cursor: grab;
}
.map-pin svg { width: 18px; height: 18px; fill: currentColor; transform: translateY(-1px); }
.maplibregl-marker:active .map-pin { cursor: grabbing; }
.coords { margin-top: 16px; }
.coords summary { cursor: pointer; font-weight: 700; color: var(--chesapeake); }
.coords .fields { margin-top: 14px; }

/* amenities: each a row with No / Here / Nearby */
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 28px; }
.amenity { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-width: 0; margin: 0; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); }
.amenity-name { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.sprite { display: none; }
.amenity-icon { flex: none; width: 24px; height: 24px; color: var(--chesapeake); }
.unit-amenities .amenity-icon { margin-left: 2px; }
.segmented { display: inline-flex; padding: 3px; border: 2px solid var(--line); border-radius: 12px; background: var(--sky); }
.segmented label { position: relative; }
.segmented input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.segmented span { display: block; padding: 6px 12px 5px; border-radius: 9px; color: var(--chesapeake); font-weight: 700; font-size: 1rem; line-height: 24px; }   /* centred on the capitals */
.segmented input:checked + span { background: var(--chesapeake); color: #fff; }
.segmented input[value=""]:checked + span { background: #fff; color: var(--chesapeake); box-shadow: 0 1px 3px rgba(1, 33, 68, .3); }
.segmented input:focus-visible + span { outline: 3px solid var(--royal); outline-offset: 1px; }
.amenity-qty { display: none; align-items: center; gap: 8px; width: 100%; color: var(--muted); font-size: 1.0625rem; }
.amenity:has(input[value="yes"]:checked) .amenity-qty { display: flex; }
.input-qty { width: 70px; min-height: 40px; padding: 6px 10px; }
.amenity .field-error { width: 100%; }
.own { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }
.own legend { padding: 0; font-weight: 700; color: var(--chesapeake); }
.own .hint { margin: 2px 0 10px; }
.own-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px 18px; }

@media (max-width: 860px) {
	.editor { grid-template-columns: 1fr; gap: 20px; }
	.editor-nav { position: static; }
	.editor-nav ul { display: flex; flex-wrap: wrap; gap: 8px; }
	.editor-nav a { padding: 7px 12px 5px; border: 2px solid var(--line); background: #fff; }
	.field-medium { grid-column: span 6; }
	.field-short { grid-column: span 3; }
	.pin-map { height: 320px; }
}

/* ---------------------------------------------------------------- photos (in the editor)
   A drop area for new photos, then the photos as cards in their order, the first marked Cover. Without the
   script, the file picker and the Upload button work as an ordinary form; with it, photos upload as soon as
   they're chosen or dropped, one at a time with their progress. */
.dropzone { position: relative; display: grid; justify-items: start; gap: 12px; margin: 6px 0 22px; padding: 22px; border: 2px dashed #B9CADD; border-radius: 16px; background: var(--sky); }
.dropzone.is-over { border-color: var(--chesapeake); background: #E2EFFF; }
.dropzone-label { display: grid; gap: 4px; cursor: pointer; }
.dropzone-label strong { font: 400 1.4rem/1.2 var(--serif); color: var(--chesapeake); }
.dropzone-label span:not(.button) { color: var(--muted); font-size: 1.0625rem; }
.dropzone-input { max-width: 100%; font: inherit; font-size: 1rem; }
.dropzone-choose { display: none; justify-self: start; margin-top: 8px; }
.dropzone.is-live .dropzone-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone.is-live .dropzone-choose { display: inline-flex; }
.dropzone.is-live:has(.dropzone-input:focus-visible) .dropzone-choose { outline: 3px solid var(--royal); outline-offset: 3px; }
.upload-list { display: grid; gap: 4px; font-size: 1.0625rem; }
.upload-list li::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .6em; border-radius: 50%; background: #B9CADD; vertical-align: .1em; }
.upload-list li.is-done::before { background: #1F7A4A; }
.upload-list li.is-bad::before { background: #C42324; }
.notice ul { margin: 8px 0 0 1.1em; padding: 0; list-style: disc; font-weight: 500; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.photo-card { display: flex; flex-direction: column; padding: 10px 10px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s, opacity .15s; }
.photo-card.is-dragging { opacity: .45; }
.photo-card.is-target { border-color: var(--chesapeake); }
.photo-frame[draggable="true"] { cursor: grab; }
.photo-frame { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 10px; background: var(--sky); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; padding: 3px 9px 2px; border-radius: 8px; font-size: .92rem; font-weight: 800; }
.badge[hidden] { display: none; }
.badge-cover { left: 8px; top: 8px; border: 2px solid var(--chesapeake); background: var(--gold); color: var(--chesapeake); }
.badge-small { right: 8px; bottom: 8px; background: #FFF4D6; color: #6B4A00; }
.photo-frame .photo-cover { position: absolute; left: 8px; top: 8px; }     /* where the first photo says Cover */
.photo-label { display: block; margin: 10px 0 4px; color: var(--chesapeake); font-size: 1.0625rem; font-weight: 700; }
.photo-alt.input { min-height: 74px; padding: 9px 12px; font-size: 1.05rem; line-height: 1.4; resize: none; field-sizing: content; }   /* grows with its words */
.photo-actions { display: flex; flex-wrap: wrap; gap: 7px 8px; margin-top: auto; padding-top: 12px; }   /* at the card's foot, level across a row */
.button[disabled] { opacity: .4; cursor: default; transform: none; box-shadow: 0 3px 0 var(--btn-drop); }
.photo-remove { --btn-ink: #9B1C1D; }
.photo-actions .photo-remove { margin-left: auto; }
.photo-tip, .empty { margin: 14px 0 0; }
.empty { color: var(--muted); }
@media (pointer: coarse) { .photo-tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .photo-card { transition: none; } }

/* ---------------------------------------------------------------- rentals (cabins & cottages)
   In the listing editor: each kind of rental as a row (cover photo, name, a few facts, Edit, Earlier, Later).
   Its own page (/park/ID/rental/UNIT) is laid out like the listing editor. */
.unit-list { display: grid; gap: 12px; margin-bottom: 20px; }
.unit-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px; border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.unit-thumb { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 10px; background: var(--sky); }
.unit-thumb img { width: 100%; height: 100%; object-fit: cover; }
.unit-row h3 { margin: 0 0 4px; font: 400 1.3rem/1.2 var(--serif); color: var(--chesapeake); }
.unit-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.unit-facts .tag { vertical-align: baseline; }
.unit-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.notice-tip { border-color: var(--gold); background: #FFF8E1; color: var(--ink); font-weight: 500; }
.unit-amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 24px; }
.unit-amenities .check { font-weight: 600; color: var(--ink); }
.section-foot-plain { margin-top: 6px; padding-top: 0; border-top: 0; }
.editor-single { grid-template-columns: minmax(0, 880px); }
@media (max-width: 860px) {
	.unit-row { grid-template-columns: 96px minmax(0, 1fr); }
	.unit-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------------------------------------------------------------- NCA's admin pages (/admin/)
   Tabs along the top; the lists as tables, which on phones become one card per row (each cell labelled from
   its data-label). */
.portal-admin-link { font-weight: 700; color: var(--chesapeake); }
.admin-tabs { margin: -8px 0 28px; border-bottom: 2px solid var(--line); }
.admin-tabs ul { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.admin-tabs a { display: block; margin-bottom: -2px; padding: 12px 16px 10px; border-bottom: 4px solid transparent; color: var(--chesapeake); font-weight: 700; line-height: 28px; text-decoration: none; }   /* centred on the capitals, above the underline */
.admin-tabs a:hover { border-bottom-color: var(--line); }
.admin-tabs a[aria-current="page"] { border-bottom-color: var(--orange); }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }
.admin-head h1, .admin-head .lead { margin-bottom: 0; }
.admin-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.admin-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 18px; }
.admin-filter .input { width: auto; min-width: 220px; flex: 0 1 320px; }
.add-non-member { margin-top: 28px; }
.add-non-member > summary { list-style: none; cursor: pointer; }
.add-non-member > summary::-webkit-details-marker { display: none; }
.add-non-member[open] > summary { margin-bottom: 16px; }
.add-non-member .form-inline { gap: 12px; margin-bottom: 14px; }
.add-non-member .form-inline .input { width: auto; flex: 1 1 320px; max-width: 520px; }
.admin-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 1.0625rem; font-weight: 500; }
.admin-none { color: var(--muted); }
.dot { display: inline-block; width: .7em; height: .7em; margin-right: .4em; vertical-align: -.02em; }
.tag-ok { background: #E8F6EE; color: #11502F; }
.tag-muted { background: #EDF1F5; color: #4A6078; }

.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 2px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.admin-table th, .admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table thead th { background: var(--sky); color: var(--chesapeake); font-size: 1rem; font-weight: 800; }
.admin-table tbody tr:last-child > * { border-bottom: 0; }
.admin-table tbody th { font-weight: 700; }
.admin-table tbody th a { color: var(--chesapeake); }
.admin-table .tag { margin-top: 4px; }
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0; }
@media (max-width: 860px) {
	.admin-table, .admin-table tbody, .admin-table tr, .admin-table th, .admin-table td { display: block; }
	.admin-table { border: 0; background: none; overflow: visible; }
	.admin-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.admin-table tr { margin-bottom: 14px; border: 2px solid var(--line); border-radius: 16px; background: #fff; }
	.admin-table tbody th, .admin-table td { padding: 10px 16px; }
	.admin-table tbody tr > :last-child { border-bottom: 0; }
	.admin-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: .95rem; font-weight: 700; }
	.admin-table td[data-label="Actions"]::before { content: none; }
	.row-actions { justify-content: flex-start; }
}

/* one park's admin page */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; margin-bottom: 24px; align-items: start; }
.admin-grid .card + .card { margin-top: 0; }
.card h3 { margin: 26px 0 4px; font: 800 1.1rem/1.3 var(--sans); color: var(--chesapeake); }
.plain-fieldset { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.plain-fieldset legend { margin-bottom: 6px; padding: 0; font-weight: 700; color: var(--chesapeake); }
.people-list { display: grid; }
.people-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.people-list li:first-child { border-top: 1px solid var(--line); }
.people-list form { margin: 0; }
.new-code-actions .input { width: auto; flex: 1 1 260px; max-width: 360px; }
.new-code { margin-bottom: 24px; border-color: var(--chesapeake); }
.invite-card { margin-bottom: 24px; }
.invite-form { max-width: 560px; }
.account-password { margin-top: 28px; }
.code-box { display: inline-block; margin: 4px 0 16px; padding: 12px 20px 10px; border: 2px dashed var(--chesapeake); border-radius: 12px; background: #FFF8E1; color: var(--chesapeake); font: 800 2rem/1.2 var(--sans); letter-spacing: .12em; }
.new-code-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.new-code-actions .form-inline { flex: 1 1 420px; gap: 12px; }

/* needs attention */
.attention-list { display: grid; gap: 16px; }
.attention-item { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px 24px; }
.card.attention-item + .card { margin-top: 0; }
.attention-item h2 { margin-bottom: .3em; font-size: 1.45rem; }
.attention-item h2 a { color: var(--chesapeake); }
.attention-item .admin-sub { margin: 0; }
.issues { margin: 0 0 8px 1.1em; list-style: disc; }
.issues:last-child { margin-bottom: 0; }
.attention-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* the history (a park's, and all of them in Activity) */
.history { display: grid; gap: 14px; }
.history-item { padding: 16px 20px 18px; border: 2px solid var(--line); border-radius: 16px; background: #fff; }
.history-item.is-undone { border-style: dashed; background: #F7F9FC; }
.history-what { margin: 0; font-weight: 700; color: var(--chesapeake); }
.history-park { display: inline-block; margin-left: .35em; color: var(--muted); font-weight: 600; }
.history-meta { margin: 2px 0 0; color: var(--muted); font-size: 1.0625rem; }
.history-details { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 1.0625rem; }
.history-details th, .history-details td { padding: 6px 12px 6px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.history-details thead th { border-top: 0; color: var(--muted); font-size: .95rem; font-weight: 700; }
.history-details tbody th { width: 26%; font-weight: 600; }
.history-details td { width: 37%; }
.history-undo { margin: 12px 0 0; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
@media (max-width: 560px) {
	.history-details thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.history-details, .history-details tbody, .history-details tr, .history-details th, .history-details td { display: block; width: auto; }
	.history-details tr { padding: 8px 0; border-top: 1px solid var(--line); }
	.history-details th, .history-details td { padding: 0; border: 0; }
	.history-details td::before { color: var(--muted); font-weight: 700; }
	.history-details td:nth-of-type(1)::before { content: "Before: "; }
	.history-details td:nth-of-type(2)::before { content: "After: "; }
}

/* ---------------------------------------------------------------- approvals (app/review.inc) */
.notice-wait { border-color: #B7791F; background: #FFF4D6; color: #5C3D00; }
.notice-wait a { color: inherit; }
.tag-waiting { background: #FFF4D6; color: #6B4A00; }
.tag-declined { background: #FDEEEE; color: #7A1213; }
.history-note { margin: 6px 0 0; color: var(--ink); font-size: 1.0625rem; }
.tab-count { display: inline-block; min-width: 24px; margin-left: 6px; padding: 0 7px; border-radius: 12px; background: var(--orange); color: #fff; font-size: .9rem; line-height: 24px; text-align: center; vertical-align: 1px; }
.review-photo { display: block; width: 220px; max-width: 100%; height: auto; margin-top: 12px; border-radius: 10px; }
.review-decline { margin-top: 14px; }
.review-decline > summary { list-style: none; cursor: pointer; }
.review-decline > summary::-webkit-details-marker { display: none; }
.review-decline form { display: grid; gap: 10px; max-width: 560px; margin-top: 12px; }
.review-decline .field, .review-approve .field { margin: 0; }
.review-approve { display: grid; gap: 14px; max-width: 680px; margin-top: 24px; }
.review-approve .button { justify-self: start; }

/* ---------------------------------------------------------------- the listing checklist (app/checklist.inc)
   At the top of the listing editor: what the listing could still use, each a link to its place; what's done, folded
   away. A line with the same bar on Your Campgrounds and in the admins' Parks table. */
.checklist { margin-bottom: 24px; }
.checklist-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.checklist-head h2 { margin-bottom: .3em; }
.checklist-score { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--muted); white-space: nowrap; }
.checklist-score strong { color: var(--chesapeake); font-weight: 800; }
.checklist-meter { appearance: none; -webkit-appearance: none; width: 140px; height: 12px; border: 0; border-radius: 99px; overflow: hidden; background: var(--line); vertical-align: middle; }
.checklist-meter::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
.checklist-meter::-webkit-progress-value { background: #1F7A4A; border-radius: 99px; }
.checklist-meter::-moz-progress-bar { background: #1F7A4A; border-radius: 99px; }
.checklist-todo { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.checklist-todo li { position: relative; padding-left: 34px; }
.checklist-todo li::before { content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border: 2px solid var(--chesapeake-soft); border-radius: 6px; background: #fff; }
.checklist-todo a { display: block; font-weight: 800; color: var(--chesapeake); text-decoration-thickness: 2px; text-underline-offset: .15em; }
.checklist-todo a:hover { color: var(--royal); }
.checklist-todo span { display: block; margin-top: 2px; color: var(--muted); font-size: 1.0625rem; line-height: 1.45; }
.checklist-note { margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--sky); }
.checklist-done { margin-top: 18px; }
.checklist-done summary { width: fit-content; cursor: pointer; font-weight: 700; color: var(--chesapeake-soft); }
.checklist-done ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 0; padding: 0; list-style: none; color: #11502F; }
.checklist-done li::before { content: "✓ "; font-weight: 800; }
.park-tile-score { margin: 0 0 14px; font-size: 1.0625rem; }
.park-tile-score a, .admin-checklist { display: inline-flex; align-items: center; gap: 10px; color: var(--chesapeake-soft); font-weight: 700; text-decoration: none; white-space: nowrap; }
.park-tile-score a:hover, .admin-checklist:hover { text-decoration: underline; }
.park-tile-score .checklist-meter { width: 90px; }
.admin-checklist .checklist-meter { width: 64px; height: 10px; }

/* ---------------------------------------------------------------- NCA: review, non-members, business members */
.review-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 12px; margin-top: 14px; }
.review-actions .review-decline { margin-top: 0; }
.review-actions .review-decline[open] { flex: 1 1 100%; }
a.history-park { text-decoration: underline; text-underline-offset: 3px; }
a.tag { text-decoration: none; }
section.add-non-member .admin-filter { margin-bottom: 14px; }
.business-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 24px; margin: 18px 0 0; padding: 0; border: 0; }
.business-categories legend { margin-bottom: 8px; padding: 0; font: 400 1.25rem/1.2 var(--serif); color: var(--chesapeake); }
.business-remove { margin-top: 28px; }
