/*
 * Sticks & Sparks static-content pages (About, etc.) — plain title + prose
 * layout, no blog hero/breadcrumb/tag chrome. Header/footer/newsletter
 * chrome lives in shared.css (reused from the homepage). Prose rules mirror
 * single-post.css's .body-copy so static pages read consistently with post
 * bodies, without pulling in the rest of that blog-specific stylesheet.
 */

.ss-static {
	background: var(--ss-cream);
	color: var(--ss-navy);
	font-family: 'Sora', system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	max-width: 100%;
	overflow-x: hidden;
}

.ss-static * {
	box-sizing: border-box;
}

.ss-static a {
	text-decoration: none;
}

.ss-static-article {
	max-width: 1080px;
	margin: 0 auto;
	padding: 56px 6vw 0;
}

.ss-breadcrumb {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: rgba(44, 50, 66, .55);
}

.ss-breadcrumb a {
	color: var(--ss-clay);
	font-weight: 600;
}

.ss-breadcrumb-current {
	color: rgba(44, 50, 66, .55);
}

.ss-static-body {
	padding: 26px 0 96px;
	max-width: 100%;
}

.ss-static-body p {
	font-family: 'Lora', serif;
	font-size: 19px;
	line-height: 1.75;
	color: #3a4152;
	margin: 0 0 26px;
}

.ss-static-body h2 {
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 28px;
	line-height: 1.2;
	color: var(--ss-navy);
	margin: 48px 0 18px;
}

.ss-static-body h3 {
	font-family: 'Sora', sans-serif;
	font-weight: 600;
	font-size: 21px;
	color: var(--ss-navy);
	margin: 36px 0 12px;
}

.ss-static-body a {
	color: var(--ss-trail-green);
	text-decoration: underline;
	text-decoration-color: rgba(61, 122, 92, .35);
	text-underline-offset: 3px;
}

.ss-static-body a:hover {
	color: var(--ss-trail-green-hover);
}

/* .ss-amberbtn (shared.css) is a button-style link, not prose -- override
   the .ss-static-body a color/underline above for it specifically. Needs
   matching (0,2,*) specificity to actually win; see the .ss-guide-link-card
   comment above for why. */
.ss-static-body a.ss-amberbtn,
.ss-static-body a.ss-amberbtn:hover {
	color: var(--ss-navy);
	text-decoration: none;
}

.ss-static-body ul,
.ss-static-body ol {
	margin: 0 0 26px;
	padding-left: 22px;
}

.ss-static-body li {
	font-family: 'Lora', serif;
	font-size: 19px;
	line-height: 1.7;
	color: #3a4152;
	margin-bottom: 10px;
}

.ss-static-body strong {
	color: var(--ss-navy);
	font-weight: 600;
}

.ss-static-body img {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
}

/* Gravity Forms (Contact page): retint the plugin's default blue "Orbital"
   theme to the site's palette via its own CSS custom-property system,
   rather than fighting its rules with !important overrides. Matches the
   amber CTA button used by the newsletter signup elsewhere on this page. */

.ss-static-body .gform_wrapper {
	/* !important needed: Gravity Forms enqueues its own theme stylesheets
	   (which redeclare these same custom properties on this same selector)
	   after static-page.css, so equal-specificity source order would
	   otherwise win over this override. */
	--gf-color-primary: var(--ss-flame-outer) !important;
	--gf-color-primary-darker: var(--ss-clay) !important;
	--gf-color-primary-lighter: var(--ss-flame-outer) !important;
	--gf-color-primary-contrast: var(--ss-navy) !important;
	--gf-font-family-base: 'Sora', system-ui, sans-serif !important;
	--gf-radius: 13px !important;
}

/* "Go Deeper" internal cross-link cards (camping guide pages) -- a small
   title + arrow card instead of a plain bullet list, matching the site's
   general card treatment (white surface, --ss-card-border, subtle hover). */

.ss-guide-links {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 8px 0 40px;
}

/* Compound selectors here (.ss-static-body .ss-guide-link-card, etc.) --
   .ss-static-body a above has specificity (0,1,1), which beats a plain
   single-class rule like .ss-guide-link-card (0,1,0) regardless of source
   order, so these need matching specificity to actually override it. */

.ss-static-body .ss-guide-link-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	background: #fff;
	border: 1px solid var(--ss-card-border);
	border-radius: 14px;
	color: var(--ss-navy);
	font-family: 'Sora', sans-serif;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	transition: transform .18s, border-color .18s, box-shadow .18s;
}

.ss-guide-link-card:hover {
	transform: translateX(4px);
	border-color: var(--ss-clay);
	box-shadow: 0 10px 24px rgba(44, 50, 66, .10);
}

.ss-guide-link-card svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: var(--ss-clay);
}

/* In-page jump nav (destination guides with #anchor sections, e.g. the
   Rhode Island guide) -- a pill/tab row matching the site's button
   language. Anchored headings get scroll-margin-top so the sticky header
   doesn't cover them when jumped to; scroll-behavior:smooth (shared.css,
   site-wide) makes the jump itself smooth rather than an instant cut. */

.ss-jumpnav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 8px 0 40px;
}

/* Compound selector -- same .ss-static-body a specificity issue as
   .ss-guide-link-card/.ss-amberbtn above. */
.ss-static-body .ss-jumpnav-link {
	padding: 10px 20px;
	border: 1.5px solid var(--ss-trail-green);
	border-radius: 100px;
	color: var(--ss-trail-green);
	font-family: 'Sora', sans-serif;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: background .15s, color .15s;
}

.ss-static-body .ss-jumpnav-link:hover {
	background: var(--ss-trail-green);
	color: #fff;
}

.ss-static-body h2[id],
.ss-static-body h3[id] {
	scroll-margin-top: 100px;
}

/* Non-heading sub-group divider within a guide's H2 section (e.g. "The
   State Campgrounds" vs "Private Campgrounds Worth Booking") -- styled as
   a small eyebrow label rather than a real heading, so the actual heading
   outline stays a clean H2 -> H3 (each individual entry) with no
   ambiguous in-between level. */

/* Compound selector -- .ss-static-body p above is (0,1,1) specificity,
   which beats a plain .ss-guide-group-label (0,1,0) regardless of file
   order; see the .ss-guide-link-card comment further up for the same
   issue. */
.ss-static-body .ss-guide-group-label {
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ss-clay);
	margin: 40px 0 4px;
	padding-top: 20px;
	border-top: 1px solid var(--ss-card-border);
}

.ss-static-body .wp-block-separator {
	border: none;
	border-top: 1px solid var(--ss-card-border);
	margin: 48px 0;
}

/* Category H2 icon badge (destination guides, e.g. Campgrounds/Hiking
   Trails/Beaches/RV Spots) -- same icon-badge language as the homepage's
   .ss-idea-icon cards, just inline with the heading text instead of above
   it. Only adds layout (flex/gap); font-size/color/margin still come from
   .ss-static-body h2 above, so no specificity fight needed here. */

.ss-guide-h2 {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ss-guide-h2-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--ss-flame-core);
}

/* Individual entry card (each named campground/trail/beach/RV pick) --
   the single biggest fix for how flat this template read as a plain wall
   of H3+paragraph pairs; matches the site's established white-card
   convention (.ss-relcard, .ss-guide-link-card, .ss-idea-card). */

.ss-guide-entry {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	background: #fff;
	border: 1px solid var(--ss-card-border);
	border-radius: 16px;
	padding: 26px 28px;
	margin: 0 0 16px;
	transition: transform .18s, box-shadow .18s;
}

/* Small place thumbnail (Openverse/Wikimedia CC-licensed, or the fws.gov
   photo for the 2 federal refuge entries). Entries with no sourced photo
   (the 4 RV Spots groupings) simply omit the img -- .ss-guide-entry-body
   fills the full width via flex:1, no empty gap left behind. */
/* Compound selector -- .ss-static-body img (0,1,1) beats a plain
   .ss-guide-entry-thumb (0,1,0) and would otherwise win with its own
   height:auto/max-width:100%, same specificity issue as .ss-guide-link-card
   etc. above. */
.ss-static-body .ss-guide-entry-thumb {
	width: 120px;
	height: 120px;
	max-width: 120px;
	border-radius: 12px;
	object-fit: cover;
	flex-shrink: 0;
}

.ss-guide-entry-body {
	flex: 1;
	min-width: 0;
}

@media (max-width: 640px) {
	.ss-guide-entry {
		flex-direction: column;
	}

	.ss-static-body .ss-guide-entry-thumb {
		width: 100%;
		max-width: 100%;
		height: 160px;
	}
}

/* RV Spots section -- these 4 entries are thematic "best for X" groupings,
   not single places, so they never got a photo or Learn More link and were
   sitting as plain .ss-guide-entry cards. Without the .ss-guide-entry-thumb
   img, .ss-guide-entry's flex:row laid the bare h3+p out as two side-by-side
   flex items instead of stacking (a real bug, not just a style choice) --
   fixed by giving this section its own grid/card treatment entirely rather
   than reusing .ss-guide-entry. Icon badge instead of a photo signals "this
   is a category, not a destination" at a glance. */

.ss-rv-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin: 0 0 16px;
}

.ss-rv-card {
	background: #fff;
	border: 1px solid var(--ss-card-border);
	border-radius: 16px;
	padding: 26px 24px;
	transition: transform .18s, box-shadow .18s;
}

.ss-rv-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(44, 50, 66, .08);
}

.ss-rv-card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ss-flame-core);
	margin-bottom: 14px;
	flex-shrink: 0;
}

.ss-rv-card-icon svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* Compound selectors -- .ss-static-body h3/p are (0,1,1), same specificity
   issue as everywhere else in this file. */
.ss-static-body .ss-rv-card h3 {
	margin: 0 0 8px;
	font-size: 19px;
}

.ss-static-body .ss-rv-card p {
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
}

@media (max-width: 640px) {
	.ss-rv-grid {
		grid-template-columns: 1fr;
	}
}

.ss-guide-entry:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(44, 50, 66, .08);
}

.ss-static-body .ss-guide-entry h3 {
	margin: 0 0 10px;
}

.ss-static-body .ss-guide-entry p {
	margin: 0;
}

/* "Learn more" link on an entry card -- opens the place's official page in a
   new tab. Compound selector needed to beat .ss-static-body a (0,1,1); same
   issue as .ss-guide-link-card/.ss-jumpnav-link above. */

.ss-static-body .ss-guide-entry-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	color: var(--ss-trail-green);
	font-family: 'Sora', sans-serif;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}

.ss-static-body .ss-guide-entry-link:hover {
	color: var(--ss-trail-green-hover);
	text-decoration: underline;
}

.ss-guide-entry-link svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

/* Optional hero title + featured photo for destination guide pages (e.g.
   Rhode Island) -- mirrors single.php's .ss-post-title/.ss-featured-media
   treatment (single-post.css), under a distinct .ss-static-hero-* prefix
   since single-post.css isn't enqueued on this template and to avoid
   confusion with front-page.php's unrelated .ss-hero-* pattern. Renders
   only when has_post_thumbnail() -- none of the other static pages have
   one, so they're unaffected. Sits outside .ss-static-body, so no
   specificity clash with the .ss-static-body compound-selector rules
   above; .ss-static-article already constrains width, so no max-width/
   padding needed here. */

.ss-static-hero-title {
	font-weight: 700;
	font-size: clamp(32px, 4.6vw, 50px);
	line-height: 1.08;
	margin: 26px 0 22px;
	color: var(--ss-navy);
	text-wrap: balance;
}

.ss-static-hero-media {
	margin: 0 0 8px;
}

.ss-static-hero-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 8;
	border-radius: 24px;
	overflow: hidden;
	background: #e3d6c2;
}

.ss-static-hero-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ss-static-hero-caption {
	font-size: 13px;
	color: rgba(44, 50, 66, .5);
	margin-top: 10px;
	text-align: center;
	font-style: italic;
	font-family: 'Lora', serif;
}

/* Destinations page: clickable US map (replaces the old .ss-guide-links
   list). Each state is a real <a href> wrapping its <path> so it works
   without JS and reads correctly to screen readers/keyboard nav -- the
   hover status bar and state-name announcement are a JS enhancement on
   top of genuine links, not a substitute for them. District of Columbia
   has no destination guide, so it renders as an inert, dimmed path with
   no wrapping <a> rather than leaving a hole in Maryland's border. */

.ss-map-status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: #fff;
	border: 1px solid var(--ss-card-border);
	border-radius: 14px;
	padding: 16px 22px;
	margin: 0 0 20px;
	min-height: 30px;
}

.ss-map-status-text {
	font-family: 'Sora', sans-serif;
	font-size: 15px;
	font-weight: 500;
	color: var(--ss-navy);
}

.ss-map-status-go {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Sora', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--ss-trail-green);
	opacity: 0;
	transition: opacity .15s ease;
}

.ss-map-status-go.visible {
	opacity: 1;
}

.ss-map-card {
	background: #fff;
	border: 1px solid var(--ss-card-border);
	border-radius: 24px;
	padding: 28px;
	margin: 0 0 40px;
}

.ss-map-svg {
	display: block;
	width: 100%;
	height: auto;
}

.ss-map-state {
	fill: var(--ss-navy);
	stroke: var(--ss-cream);
	stroke-width: 0.045;
	transition: fill .12s ease;
}

/* Compound selector -- same .ss-static-body a specificity issue as
   .ss-guide-link-card/.ss-amberbtn above; needs matching specificity to
   actually win over the shared anchor color/underline rule. */

.ss-static-body .ss-map-state-link {
	cursor: pointer;
	text-decoration: none;
}

.ss-map-state-link:hover .ss-map-state,
.ss-map-state-link:focus-visible .ss-map-state {
	fill: var(--ss-trail-green);
}

.ss-map-state-link:focus-visible .ss-map-state {
	stroke: var(--ss-flame-outer);
	stroke-width: 0.12;
	outline: none;
}

.ss-map-state-inactive {
	fill: var(--ss-bark);
	opacity: .35;
}

.ss-map-legend {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 20px;
	font-family: 'Sora', sans-serif;
	font-size: 13px;
	color: rgba(44, 50, 66, .65);
}

.ss-map-swatch {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 3px;
	margin-right: 6px;
	vertical-align: -1px;
}
