/*
 * Wayfinding: Start Here in the header, the homepage band, and the Start Here
 * page's print buttons, help blocks, camp words and "Did this page help?".
 * Every rule is scoped to body.ca-wf (the plugin adds it to public pages), so
 * it never reaches wp-admin or Elementor's editor. Colors and type follow the
 * theme: green #1a4a2e, gold #c9843a, ink #2a1f16, tint #f1ece3, Roboto and
 * Roboto Slab.
 */

body.ca-wf {
	--ca-wf-green: #1a4a2e;
	--ca-wf-gold: #c9843a;
	--ca-wf-ink: #2a1f16;
	--ca-wf-line: #e4dccd;
	--ca-wf-tint: #f1ece3;
	--ca-wf-paper: #fff;
}

/*
 * Start Here in the header. Filled in light cream so it stands out on the
 * dark green bar, and stays clearly different from Register's gold. On a
 * computer it's in the menu row; on a phone or tablet it shows once the
 * theme compacts the header on scroll (header.is-compact), when there's room
 * beside Register.
 */

body.ca-wf .ca-wf-start {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	gap: 6px;
	min-height: 40px;
	margin-right: 10px;
	padding: 0 16px;
	border: 0;
	border-radius: 4px;
	color: var(--ca-wf-green);
	background: #f4efe3;
	font-family: Roboto, sans-serif;
	font-size: 14.4px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

body.ca-wf .ca-wf-start:hover,
body.ca-wf .ca-wf-start:focus-visible {
	background: #fff;
	color: var(--ca-wf-green);
}

body.ca-wf .ca-wf-start:focus-visible {
	outline: 3px solid var(--ca-wf-gold);
	outline-offset: 2px;
}

/* The phone header's copy: hidden until the header compacts, and never on a computer. */
body.ca-wf .ca-wf-start--bar {
	display: none;
	min-height: 36px;
	margin-right: 8px;
	padding: 0 12px;
	font-size: 14px;
}

body.ca-wf header.is-compact .ca-wf-start--bar {
	display: inline-flex;
}

@media (max-width: 359px) {
	body.ca-wf .ca-wf-start--bar {
		padding: 0 9px;
		font-size: 13px;
		margin-right: 6px;
	}
}

@media (min-width: 1025px) {
	body.ca-wf header.is-compact .ca-wf-start--bar {
		display: none;
	}
}

/*
 * Phone or tablet, at the top of the page: a strip right under the header
 * with a solid Start Here button. The whole strip is one link. It isn't part
 * of the sticky header, so it scrolls away, and the header's button takes over.
 */

body.ca-wf .ca-wf-strip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 56px;
	padding: 8px 16px;
	background: #f4efe3;
	border-bottom: 1px solid var(--ca-wf-line);
	color: var(--ca-wf-ink);
	font-family: Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.3;
	text-decoration: none;
}

body.ca-wf .ca-wf-strip strong {
	font-weight: 700;
	color: var(--ca-wf-green);
}

body.ca-wf .ca-wf-strip__btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 6px;
	background: var(--ca-wf-green);
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
}

body.ca-wf .ca-wf-strip:hover .ca-wf-strip__btn,
body.ca-wf .ca-wf-strip:focus-visible .ca-wf-strip__btn {
	background: #12361f;
}

body.ca-wf .ca-wf-strip:focus-visible {
	outline: 3px solid var(--ca-wf-gold);
	outline-offset: -3px;
}

/* Too narrow for the extra words: keep "New to camp?" and the button. */
@media (max-width: 419px) {
	body.ca-wf .ca-wf-strip__more {
		display: none;
	}
}

@media (min-width: 1025px) {
	body.ca-wf .ca-wf-strip {
		display: none;
	}
}

/* Phone menu: Start Here first, set apart from the sections below it. */

body.ca-wf .ca-wf-nav-start {
	border-bottom: 1px solid rgba(201, 132, 58, 0.45);
	margin-bottom: 6px;
	padding-bottom: 6px;
}

body.ca-wf .ca-wf-nav-start .ca-nav-link {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

body.ca-wf .ca-wf-nav-start .ca-nav-label {
	color: var(--ca-wf-gold);
	font-weight: 700;
}

body.ca-wf .ca-wf-nav-start__note {
	font-size: 14px;
	font-weight: 400;
	opacity: 0.85;
}

/* Homepage band under the hero. */

body.ca-wf .ca-wf-band {
	background: var(--ca-wf-tint);
	border-bottom: 1px solid var(--ca-wf-line);
	color: var(--ca-wf-ink);
	padding: 20px 16px;
}

body.ca-wf .ca-wf-band__inner {
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
}

body.ca-wf .ca-wf-band__lead {
	margin: 0;
	font-size: 17px;
	line-height: 1.45;
	flex: 1 1 320px;
}

body.ca-wf .ca-wf-band__lead strong {
	font-family: "Roboto Slab", serif;
	color: var(--ca-wf-green);
}

body.ca-wf .ca-wf-band__paths {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

body.ca-wf .ca-wf-band__path {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 18px;
	border: 2px solid var(--ca-wf-green);
	border-radius: 6px;
	background: var(--ca-wf-paper);
	color: var(--ca-wf-green);
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
}

body.ca-wf .ca-wf-band__path:hover,
body.ca-wf .ca-wf-band__path:focus-visible {
	background: var(--ca-wf-green);
	color: #fff;
}

/* Two rows: choosing a camp, then already registered. */
body.ca-wf .ca-wf-band__inner + .ca-wf-band__inner {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--ca-wf-line);
}

/* A door with a line under its label saying what's behind it. */
body.ca-wf .ca-wf-band__path:has(.ca-wf-band__holds) {
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 8px 18px;
	line-height: 1.25;
}

body.ca-wf .ca-wf-band__holds {
	font-weight: 400;
	font-size: 14px;
}

body.ca-wf .ca-wf-band__path--plain {
	border-width: 1px;
}

/* Links to part of a page land below the sticky header (the script measures it). */
html.ca-wf-js {
	scroll-padding-top: var(--ca-wf-anchor, 0);
}

@media (max-width: 600px) {
	body.ca-wf .ca-wf-band__paths {
		width: 100%;
		flex-direction: column;
	}

	body.ca-wf .ca-wf-band__path {
		justify-content: center;
	}

	/* The choosing links are short: side by side, two to a row, keeps the band small. */
	body.ca-wf .ca-wf-band__choose .ca-wf-band__paths {
		flex-direction: row;
	}

	body.ca-wf .ca-wf-band__choose .ca-wf-band__path {
		flex: 1 1 40%;
		min-height: 44px;
		padding: 0 12px;
		font-size: 15px;
	}
}

/* Start Here: one way to pick a path. The cards stay; the two buttons above them go. */

body.ca-wf.ca-wf-start-page .ca-pagehead .ca-btn {
	display: none;
}

/*
 * Start Here shows one path at a time. The head script marks <html> with
 * ca-wf-js and data-ca-wf-path (the path in the address, or the last one
 * picked here), so only that checklist draws. Until wayfinding.js is running
 * (ca-wf-ready), a plain #parents link works through :target too; after
 * that the script alone decides, since it changes the address without the
 * browser updating :target. Without the head script, every path shows.
 */

html.ca-wf-js:not(.ca-wf-ready):not([data-ca-wf-path="parents"]) body.ca-wf-start-page #parents:not(:target),
html.ca-wf-js:not(.ca-wf-ready):not([data-ca-wf-path="leaders"]) body.ca-wf-start-page #leaders:not(:target),
html.ca-wf-js:not(.ca-wf-ready):not([data-ca-wf-path="outback"]) body.ca-wf-start-page #outback:not(:target),
html.ca-wf-ready:not([data-ca-wf-path="parents"]) body.ca-wf-start-page #parents,
html.ca-wf-ready:not([data-ca-wf-path="leaders"]) body.ca-wf-start-page #leaders,
html.ca-wf-ready:not([data-ca-wf-path="outback"]) body.ca-wf-start-page #outback {
	display: none;
}

body.ca-wf .ca-area.ca-wf-picked {
	border-color: var(--ca-wf-green);
	box-shadow: inset 0 0 0 1px var(--ca-wf-green);
	background: #f4efe3;
}

body.ca-wf .ca-wf-switch {
	margin: 0 0 12px;
	font-size: 15px;
	color: var(--ca-wf-ink);
}

body.ca-wf .ca-wf-switch__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--ca-wf-green);
	font-weight: 700;
}

/* "Which week is your unit coming?" */

body.ca-wf .ca-wf-week {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin: 0 0 18px;
	padding: 14px 16px;
	border: 1px solid var(--ca-wf-line);
	border-radius: 10px;
	background: var(--ca-wf-paper);
}

body.ca-wf .ca-wf-week__label {
	font-weight: 700;
	font-size: 16px;
	color: var(--ca-wf-ink);
}

body.ca-wf .ca-wf-week__select {
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid #b9ad97;
	border-radius: 6px;
	background: var(--ca-wf-paper);
	color: var(--ca-wf-ink);
	font: 16px Roboto, sans-serif;
}

body.ca-wf .ca-wf-week__note {
	flex-basis: 100%;
	margin: 0;
	font-size: 14px;
	color: #5c5246;
}

/* Staged checklists: what's due now and next; the rest one tap away. */

body.ca-wf ol.ca-wf-staged:not(.ca-wf-all) > li[data-ca-wf-stage="earlier"],
body.ca-wf ol.ca-wf-staged:not(.ca-wf-all) > li[data-ca-wf-stage="later"] {
	display: none;
}

body.ca-wf .ca-wf-stage {
	grid-column: 1 / -1;
	display: block;
	margin: 0 0 10px;
	font: 600 19px/1.3 "Roboto Slab", serif;
	color: var(--ca-wf-green);
}

/* The check circle stays beside its step, not the group heading above it. */
body.ca-wf li.ca-wf-has-stage > .ca-step-check {
	transform: translateY(35px);
}

body.ca-wf ol.ca-wf-staged li[data-ca-wf-stage="now"] {
	background: #fbf8f1;
	border-radius: 8px;
}

body.ca-wf .ca-wf-when-date {
	display: block;
	margin-top: 2px;
	font: 400 14px/1.3 Roboto, sans-serif;
	color: #5c5246;
}

body.ca-wf .ca-wf-season {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-top: 14px;
	padding: 0 16px;
	border: 2px solid var(--ca-wf-green);
	border-radius: 6px;
	background: var(--ca-wf-paper);
	color: var(--ca-wf-green);
	font: 700 15px/1 Roboto, sans-serif;
	cursor: pointer;
}

body.ca-wf .ca-wf-season:hover,
body.ca-wf .ca-wf-season:focus-visible {
	background: var(--ca-wf-green);
	color: #fff;
}

/* Folded reference sections (the dates, the page index): the heading opens them. */

body.ca-wf .ca-wf-fold:not(.is-open) .ca-wf-folded {
	display: none !important;
}

body.ca-wf .ca-wf-fold__button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

body.ca-wf .ca-wf-fold__button::after {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.15s;
}

body.ca-wf .ca-wf-fold.is-open .ca-wf-fold__button::after {
	transform: rotate(180deg);
}

body.ca-wf .ca-wf-fold__button:focus-visible {
	outline: 3px solid var(--ca-wf-gold);
	outline-offset: 4px;
}

/* A closed section takes little room: a heading row and its summary line. */
body.ca-wf .ca-wf-fold:not(.is-open) {
	padding-top: 20px !important;
	padding-bottom: 20px !important;
}

body.ca-wf .ca-wf-fold:not(.is-open) .ca-lede {
	margin-top: 4px;
}

/* Guide pages (health forms, policies): a quiet line between closed sections. */
body.ca-wf.ca-wf-guide .ca-wf-fold {
	border-top: 1px solid var(--ca-wf-line);
}

body.ca-wf .ca-wf-guide-bar {
	display: flex;
	justify-content: flex-end;
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 12px 16px;
	box-sizing: border-box;
}

body.ca-wf .ca-wf-guide-all {
	min-height: 44px;
	padding: 0 16px;
	border: 2px solid var(--ca-wf-green);
	border-radius: 6px;
	background: var(--ca-wf-paper);
	color: var(--ca-wf-green);
	font: 700 15px/1 Roboto, sans-serif;
	cursor: pointer;
}

body.ca-wf .ca-wf-guide-all:hover,
body.ca-wf .ca-wf-guide-all:focus-visible {
	background: var(--ca-wf-green);
	color: #fff;
}

/* Print button, under each path's introduction. */

body.ca-wf .ca-wf-print {
	display: inline-flex;
	align-self: flex-start;
	width: auto;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin-top: 12px;
	padding: 0 16px;
	border: 2px solid var(--ca-wf-green);
	border-radius: 6px;
	background: var(--ca-wf-paper);
	color: var(--ca-wf-green);
	font: 700 15px/1 Roboto, sans-serif;
	cursor: pointer;
}

body.ca-wf .ca-wf-print::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9V2h12v7M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2M6 14h12v8H6z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.ca-wf .ca-wf-print:hover,
body.ca-wf .ca-wf-print:focus-visible {
	background: var(--ca-wf-green);
	color: #fff;
}

/* Help block after each checklist. */

body.ca-wf .ca-wf-help {
	margin-top: 24px;
	padding: 20px;
	border: 1px solid var(--ca-wf-line);
	border-radius: 10px;
	background: var(--ca-wf-paper);
	color: var(--ca-wf-ink);
}

body.ca-wf .ca-wf-help__title {
	margin: 0 0 4px;
	font: 600 20px/1.3 "Roboto Slab", serif;
	color: var(--ca-wf-green);
}

body.ca-wf .ca-wf-help__text {
	margin: 0 0 14px;
	font-size: 17px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

body.ca-wf .ca-wf-help__text a {
	color: var(--ca-wf-green);
}

body.ca-wf .ca-wf-help__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

body.ca-wf .ca-wf-help__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	min-width: 140px;
	padding: 0 20px;
	border-radius: 6px;
	background: var(--ca-wf-green);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
}

body.ca-wf .ca-wf-help__btn:hover,
body.ca-wf .ca-wf-help__btn:focus-visible {
	background: #12361f;
	color: #fff;
}

/* Camp words: dotted underline, tap to see what it means. */

body.ca-wf .ca-wf-term {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	border-bottom: 2px dotted var(--ca-wf-gold);
	background: none;
	color: inherit;
	font: inherit;
	line-height: inherit;
	text-align: inherit;
	cursor: help;
}

body.ca-wf .ca-wf-term[aria-expanded="true"] {
	border-bottom-style: solid;
}

body.ca-wf .ca-wf-term:focus-visible {
	outline: 2px solid var(--ca-wf-gold);
	outline-offset: 2px;
}

body.ca-wf .ca-wf-def {
	display: block;
	margin: 8px 0 4px;
	padding: 10px 12px;
	border-radius: 6px;
	background: var(--ca-wf-tint);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.45;
}

body.ca-wf .ca-wf-def[hidden] {
	display: none;
}

/* Printing one checklist. On screen the copy is never seen. */

body.ca-wf .ca-wf-printout {
	display: none;
}

@media print {
	/* A printed guide page has every section, open. */
	body.ca-wf .ca-wf-fold:not(.is-open) .ca-wf-folded {
		display: revert !important;
	}

	body.ca-wf .ca-wf-fold__button::after,
	body.ca-wf .ca-wf-guide-bar {
		display: none !important;
	}

	html.ca-wf-printing body.ca-wf > *:not(.ca-wf-printout) {
		display: none !important;
	}

	html.ca-wf-printing body.ca-wf .ca-wf-printout {
		display: block;
		color: #000;
		background: #fff;
		font: 11pt/1.4 Roboto, Arial, sans-serif;
	}

	body.ca-wf .ca-wf-printout * {
		animation: none !important;
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
		color: #000 !important;
		background: transparent !important;
		box-shadow: none !important;
	}

	body.ca-wf .ca-wf-printout .e-con,
	body.ca-wf .ca-wf-printout .e-con-inner {
		display: block !important;
		padding: 0 !important;
		margin: 0 !important;
		max-width: none !important;
		width: auto !important;
	}

	body.ca-wf .ca-wf-printout h2 {
		margin: 0 0 4pt;
		font: 700 18pt "Roboto Slab", Georgia, serif;
	}

	body.ca-wf .ca-wf-printout ol {
		margin: 8pt 0 0;
		padding: 0;
		list-style: none;
	}

	body.ca-wf .ca-wf-printout li {
		position: relative;
		display: block;
		padding: 5pt 0 5pt 22pt;
		border-bottom: 0.5pt solid #bbb;
		break-inside: avoid;
	}

	body.ca-wf .ca-wf-printout .ca-when {
		display: block;
		font-weight: 700;
	}

	body.ca-wf .ca-wf-printout .ca-step-check {
		position: absolute;
		left: 0;
		top: 6pt;
		width: 12pt;
		height: 12pt;
		border: 1pt solid #000 !important;
		border-radius: 2pt;
		padding: 0;
	}

	body.ca-wf .ca-wf-printout .ca-step-check svg {
		display: none;
	}

	body.ca-wf .ca-wf-printout .ca-step-check[aria-checked="true"] svg {
		display: block;
		width: 100%;
		height: 100%;
		fill: none;
		stroke: #000;
		stroke-width: 3;
	}

	body.ca-wf .ca-wf-printout a {
		text-decoration: none;
	}

	body.ca-wf .ca-wf-printout__foot {
		display: flex;
		align-items: center;
		gap: 12pt;
		margin-top: 14pt;
		padding-top: 10pt;
		border-top: 1pt solid #000;
		break-inside: avoid;
	}

	body.ca-wf .ca-wf-printout__qr {
		flex: none;
		width: 1in;
		height: 1in;
	}

	body.ca-wf .ca-wf-printout__qr svg {
		width: 100%;
		height: 100%;
	}

	body.ca-wf .ca-wf-printout__foot p {
		margin: 0;
	}

}

@media (prefers-reduced-motion: reduce) {
	body.ca-wf .ca-wf-fold__button::after {
		transition: none;
	}

	body.ca-wf .ca-wf-start,
	body.ca-wf .ca-wf-band__path,
	body.ca-wf .ca-wf-help__btn {
		transition: none;
	}
}

/* Ice Climbing and rentals have no summer camp registration: none of its buttons, from the first paint. */
body.ca-wf-no-camp-buttons .ca-register-btn,
body.ca-wf-no-camp-buttons .ca-wf-start,
body.ca-wf-no-camp-buttons .ca-wf-strip,
body.ca-wf-no-camp-buttons .ca-wf-nav-start {
	display: none !important;
}
