/* Find Your Camp — Trailhead component styles.
 * Tokens live in theme.json; this file covers what theme.json can't express. */

:root {
	--fyc-focus: rgba(142, 199, 232, 0.7);
	--fyc-card-border: #E7D6B8;
	--fyc-field-border: #DFCAAA;
}

/* ---------- Accessibility ---------- */
.skip-link.screen-reader-text:focus,
.screen-reader-text:focus {
	background: var(--wp--preset--color--sun);
	color: var(--wp--preset--color--ink);
	border-radius: 999px;
	padding: 0.75rem 1.25rem;
	font-weight: 800;
	z-index: 100000;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--fyc-focus);
	outline-offset: 2px;
	border-radius: 6px;
}

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

/* ---------- Buttons ---------- */
.wp-element-button,
.wp-block-button__link {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wp-block-button.is-style-sun .wp-block-button__link {
	background: var(--wp--preset--color--sun);
	color: #4A2E13;
}
.wp-block-button.is-style-sun .wp-block-button__link:hover,
.wp-block-button.is-style-sun .wp-block-button__link:focus {
	background: #F9C443;
	color: #4A2E13;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus {
	border-color: var(--wp--preset--color--camp-green);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--pine);
}

/* Chip buttons (popular searches, filters) */
.wp-block-button.is-style-chip .wp-block-button__link {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--pine);
	border: 1.5px solid var(--fyc-field-border);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	padding: 0.5rem 1rem;
	min-height: 40px;
}
.wp-block-button.is-style-chip .wp-block-button__link:hover,
.wp-block-button.is-style-chip .wp-block-button__link:focus {
	border-color: var(--wp--preset--color--camp-green);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--pine);
}

/* ---------- Groups ---------- */
.wp-block-group.is-style-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--fyc-card-border);
	border-radius: 24px;
	padding: clamp(1.25rem, 3vw, 1.75rem);
}

.wp-block-group.is-style-trail-band {
	border-radius: 32px;
	overflow: hidden;
}

/* ---------- Eyebrow + labels ---------- */
.fyc-eyebrow {
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--camp-green);
	margin: 0;
}
.fyc-eyebrow.is-bark { color: var(--wp--preset--color--bark); }

/* ---------- Header ---------- */
.fyc-header .wp-block-site-title { margin: 0; line-height: 1; }
.fyc-header .wp-block-site-tagline { margin: 0; }
.fyc-header .wp-block-site-logo img,
.fyc-logo-fallback img { display: block; height: auto; }
.fyc-header .wp-block-navigation .wp-block-navigation-item__content {
	padding-block: 0.625rem;
}
.fyc-header .wp-block-navigation .current-menu-item > a,
.fyc-header .wp-block-navigation a[aria-current="page"] {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--sun);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
}
@media (max-width: 781px) {
	.fyc-header .wp-block-site-tagline { display: none; }
}
/* Phones: logo + menu button on one row; the hero search replaces the header CTA. */
@media (max-width: 599px) {
	.fyc-header > .alignwide { flex-wrap: nowrap !important; gap: 12px; }
	.fyc-header .fyc-brand { min-width: 0; }
	.fyc-header .wp-block-site-logo img { width: 44px !important; }
	.fyc-header .wp-block-site-title { font-size: 1.25rem !important; }
	.fyc-header .wp-block-buttons { display: none; }
	.fyc-header .alignwide > .wp-block-group:last-child { flex-wrap: nowrap; flex-shrink: 0; }
}

/* ---------- Title band ---------- */
.fyc-title-band .wp-block-query-title,
.fyc-title-band h1 { margin-top: 0; }
.fyc-breadcrumb {
	font-weight: 700;
	color: var(--wp--preset--color--muted);
}
.fyc-breadcrumb a { color: var(--wp--preset--color--camp-green); }

/* ---------- Hero ---------- */
.fyc-hero {
	background-image: linear-gradient(180deg, #D8F0FA 0%, #EAF6F4 60%, #FFF9EA 100%);
}
.fyc-hero__art img {
	width: 100%;
	max-width: 460px;
	height: auto;
}
.fyc-popular__label {
	margin: 0;
	font-weight: 700;
	color: #6E6252;
	font-size: var(--wp--preset--font-size--small);
}

/* ---------- Trail steps ---------- */
.fyc-trail-steps { counter-reset: fyc-step; }
.fyc-step__marker {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--camp-green);
}
.fyc-step:nth-child(2) .fyc-step__marker { background: #4F7F3E; }
.fyc-step:nth-child(3) .fyc-step__marker { background: var(--wp--preset--color--cabin); color: #3A2615; }
.fyc-step:nth-child(4) .fyc-step__marker { background: var(--wp--preset--color--campfire-orange); color: #3A2615; }
.fyc-step h3 { margin: 0; }

/* ---------- Need cards ---------- */
.fyc-need {
	min-height: 170px;
	position: relative;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fyc-need h3 { margin: 0; }
.fyc-need h3 a {
	color: var(--wp--preset--color--pine);
	text-decoration: none;
}
/* Whole card is clickable via the heading link. */
.fyc-need h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 24px;
}
.fyc-need:hover,
.fyc-need:focus-within {
	border-color: var(--wp--preset--color--camp-green);
	box-shadow: var(--wp--preset--shadow--soft);
}
.fyc-need:focus-within h3 a:focus-visible { outline: none; }
.fyc-need:focus-within { outline: 3px solid var(--fyc-focus); outline-offset: 2px; }

/* ---------- Checklist band ---------- */
.fyc-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.875rem;
}
.fyc-checklist li {
	position: relative;
	padding-left: 2.25rem;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.45;
}
.fyc-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.1em;
	width: 1.5rem;
	height: 1.5rem;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD36A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Submit CTA ---------- */
.fyc-submit-cta.is-style-card {
	border: 2px dashed var(--wp--preset--color--cabin);
	background: #FFFDF6;
}

/* ---------- Footer ---------- */
.fyc-footer-heading {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0 0 0.75rem;
}
.fyc-plain-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}
.fyc-plain-list a {
	text-decoration: none;
	display: inline-block;
	padding-block: 0.25rem;
}
.fyc-plain-list a:hover { text-decoration: underline; }

/* ---------- Shared form controls (plugin search form inherits these) ---------- */
.fyc-field label,
.fyc-label {
	display: block;
	font-weight: 800;
	color: var(--wp--preset--color--pine);
	font-size: 0.875rem;
	margin-bottom: 0.375rem;
}
.fyc-input,
.fyc-field input:not([type="checkbox"]):not([type="radio"]),
.fyc-field select,
.fyc-field textarea {
	width: 100%;
	min-height: 52px;
	border: 1.5px solid var(--fyc-field-border);
	border-radius: 14px;
	padding: 0 0.875rem;
	font: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--white);
	box-sizing: border-box;
}
.fyc-field textarea { padding: 0.75rem 0.875rem; min-height: 120px; }
.fyc-input:focus,
.fyc-field input:focus,
.fyc-field select:focus,
.fyc-field textarea:focus {
	outline: 3px solid var(--fyc-focus);
	border-color: var(--wp--preset--color--sky);
}

/* Tag pills used by plugin cards */
.fyc-tag {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 800;
	background: #E4F1DC;
	color: var(--wp--preset--color--pine);
}
.fyc-tag.is-sky { background: var(--wp--preset--color--sky-soft); color: #1E4A63; }
.fyc-tag.is-sun { background: #FFF0C2; color: #6B4A12; }

/* Star ratings */
.fyc-stars { color: #B7790F; letter-spacing: 2px; }

/* ---------- Editor tweaks ---------- */
.editor-styles-wrapper .fyc-need h3 a::after { display: none; }

@media (max-width: 781px) {
	.fyc-hero__art img { max-width: 220px; }
	.fyc-header .wp-block-buttons .wp-block-button__link { padding-inline: 1.125rem; }
}

/* ---------- Retreat host accent (sky / bark) ---------- */
.wp-block-button.is-style-sky .wp-block-button__link {
	background: #1E4A63; /* 9.6:1 with white */
	color: #FFFFFF;
}
.wp-block-button.is-style-sky .wp-block-button__link:hover,
.wp-block-button.is-style-sky .wp-block-button__link:focus {
	background: #163849;
	color: #FFFFFF;
}
.fyc-title-band.is-retreat .fyc-breadcrumb a { color: #1E4A63; }

.fyc-hero__alt { margin: 0; font-weight: 800; }
.fyc-hero__alt a { color: #1E4A63; text-underline-offset: 4px; }

/* Split band: retreat hosts + jobs */
.fyc-split-card {
	border-radius: 24px;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	border: 1px solid var(--fyc-card-border);
}
.fyc-split-card > * { margin: 0; }
.fyc-split-card .wp-block-buttons { margin-top: auto; padding-top: 0.5rem; }
.fyc-split-card.is-retreat { background: var(--wp--preset--color--sky-soft); border-color: #B9D9E8; }
.fyc-split-card.is-jobs { background: #FFFDF6; border: 2px dashed var(--wp--preset--color--cabin); }

/* Subscriber benefits */
.fyc-benefit h3 { margin: 0; }
.fyc-benefit { border-top: 4px solid var(--wp--preset--color--sun); }

/* Footer credit (Press Check Marketing) */
.fyc-credit{margin:var(--wp--preset--spacing--30,16px) 0 0;font-size:.875rem}
.fyc-credit__link{display:inline-flex;flex-wrap:wrap;align-items:center;gap:10px 14px;min-height:44px;color:#AFC0B4!important;text-decoration:none}
.fyc-credit__link:hover .fyc-credit__text,.fyc-credit__link:focus-visible .fyc-credit__text{color:var(--wp--preset--color--sun,#F2B84B);text-decoration:underline}
.fyc-credit__link:focus-visible{outline:3px solid var(--wp--preset--color--sun,#F2B84B);outline-offset:4px;border-radius:6px}
.fyc-credit__logo{display:block;width:188px;max-width:100%;height:auto}
