/*
 * Camp program: every web view (schedule, lists, program pages, camp day,
 * Plan your week). The printout has its own print.css.
 *
 * Class prefixes: cs- is the schedule and the pieces every view shares (from
 * when the module was called Camp Schedule); cp- is the program lists.
 *
 * Colors and type come from the theme's page kit tokens (--ca-kit-*, --ca-*),
 * so a page palette (Scouting Blue, Ice) recolors the schedule too. Each has a
 * fallback, so the schedule still looks right under another theme.
 *
 * Wide or narrow is decided by the width of the box the schedule sits in, not
 * the screen, so it works in a full-width section and in a narrow column.
 */

.camp-program {
	--cs-ink: var(--ca-kit-ink, #2a1f16);
	--cs-muted: var(--ca-kit-ink-muted, #5c3d28);
	--cs-heading: var(--ca-kit-heading, #1a4a2e);
	--cs-accent: var(--ca-kit-btn-secondary, #1a4a2e);
	--cs-on-accent: var(--ca-kit-on-btn-secondary, #ffffff);
	--cs-double: var(--ca-kit-btn-primary, #c9843a);
	--cs-on-double: var(--ca-kit-on-btn-primary, #1b120b);
	--cs-card: var(--ca-kit-card, #ffffff);
	--cs-border: var(--ca-kit-border, #e4dccd);
	--cs-tint: var(--ca-kit-tint, #f1ece3);
	--cs-band: var(--ca-green-light, #e8f0eb);
	--cs-focus: var(--ca-focus-on-light, #1a4a2e);
	/* Borders of chips, selects, inputs and the search box: 4:1 on white, above the 3:1 WCAG asks of controls. */
	--cs-control-border: #8a7d6b;
	--cs-heading-font: "Roboto Slab", Georgia, serif;

	container-type: inline-size;
	container-name: camp-program;
	color: var(--cs-ink);
	font-size: 16px;
	line-height: 1.45;
}

.camp-program *,
.camp-program *::before,
.camp-program *::after {
	box-sizing: border-box;
}

/*
 * The Elementor widget around a program view (the Camp program widget, or a Text or Shortcode
 * widget with the shortcode) takes the full width of its container. Below 768 px wide, Elementor's
 * containers wrap their children, and a wrapping child with no width of its own is sized from its
 * content. A view is a size container (container-type above), so it has no width of its own to
 * give: the browser laid it out far taller than it is, and phones got up to 10,000 px of blank
 * page under the merit badge list. In a row next to another widget, the view shrank to nothing.
 * :where() keeps this as weak as a plain class, so a width set on the widget in Elementor wins.
 */
.elementor-widget:where(:has(
	> .camp-program,
	> .elementor-widget-container > .camp-program,
	> .elementor-shortcode > .camp-program,
	> .elementor-widget-container > .elementor-shortcode > .camp-program
)) {
	width: 100%;
}

.camp-program :focus-visible {
	outline: 3px solid var(--cs-focus);
	outline-offset: 2px;
}

.cs-sr,
.cs-js .cs-panel-title {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Heading */
.cs-head {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 20px;
}

.cs-head-text {
	display: flex;
	flex: 1 1 420px;
	flex-direction: column;
	gap: 6px;
}

.camp-program .cs-title {
	margin: 0;
	color: var(--cs-heading);
	font-family: var(--cs-heading-font);
	font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem);
	line-height: 1.15;
}

.cs-intro {
	margin: 0;
	font-size: 1.05rem;
}

.cs-updated {
	margin: 0;
	color: var(--cs-muted);
	font-size: 0.9rem;
}

.cs-draft {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	border: 1px solid var(--cs-double);
	border-radius: 3px;
	background: var(--ca-gold-light, #f5e8d6);
	color: var(--cs-ink);
	font-weight: 700;
	font-size: 0.85rem;
}

.camp-program .cs-button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 4px;
	background: var(--cs-accent);
	color: var(--cs-on-accent);
	font-weight: 600;
	text-decoration: none;
}

.camp-program .cs-button:hover {
	background: var(--ca-kit-btn-secondary-hover, #0f2e1c);
	color: var(--cs-on-accent);
}

/* Key */
.cs-key {
	margin-bottom: 16px;
	padding: 12px 16px;
	border: 1px solid var(--cs-border);
	border-radius: 6px;
	background: var(--cs-card);
}

.cs-key summary {
	min-height: 32px;
	color: var(--cs-heading);
	font-weight: 700;
	cursor: pointer;
}

.cs-key ul {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 10px 28px;
	margin: 12px 0 4px;
	padding: 0;
	list-style: none;
	font-size: 0.9rem;
}

.cs-key li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.cs-key li > .cs-tag,
.cs-key li > .cs-swatch {
	flex-shrink: 0;
}

.cs-swatch {
	display: inline-block;
	width: 40px;
	height: 18px;
	margin-top: 2px;
}

/* Filters */
.cs-filters {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 8px;
}

.cs-filters[hidden] {
	display: none;
}

.cs-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.cs-label,
.cs-select > span {
	font-weight: 700;
}

.cs-label {
	margin-right: 4px;
}

.camp-program .cs-chip {
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--cs-control-border);
	border-radius: 22px;
	background: var(--cs-card);
	color: var(--cs-heading);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.camp-program .cs-chip[aria-pressed="true"] {
	border-color: var(--cs-accent);
	background: var(--cs-accent);
	color: var(--cs-on-accent);
}

.cs-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
}

.cs-check,
.cs-select {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	min-height: 44px;
}

.cs-check input {
	width: 20px;
	height: 20px;
	accent-color: var(--cs-accent);
}

.cs-select select {
	min-height: 44px;
	padding: 0 10px;
	border: 1px solid var(--cs-control-border);
	border-radius: 4px;
	background: var(--cs-card);
	color: var(--cs-ink);
	font: inherit;
}

.cs-sort {
	margin-left: auto;
}

/* Filter and sort: only on narrow screens (below), where it folds everything but the age. */
.cs-folds {
	display: contents;
}

.camp-program .cs-fold-toggle {
	display: none;
	gap: 8px;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--cs-control-border);
	border-radius: 22px;
	background: var(--cs-card);
	color: var(--cs-heading);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.cs-fold-toggle[aria-expanded="true"] .cp-i {
	transform: rotate(180deg);
}

.cs-count {
	margin: 8px 0;
	color: var(--cs-muted);
	font-size: 0.95rem;
}

.cs-empty {
	padding: 20px;
	border: 1px dashed var(--cs-border);
	border-radius: 6px;
}

/* Plan your week's no-script note is a span (automatic paragraphs reach inside <noscript> around a <p>). */
span.cs-empty {
	display: block;
}

.cs-empty[hidden] {
	display: none;
}

/* Tags */
.cs-tags,
.cs-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.cs-tags {
	margin-top: 6px;
}

.cs-tag {
	display: inline-block;
	padding: 2px 8px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.35;
}

.cs-tag-eagle-required { background: var(--cs-accent); color: var(--cs-on-accent); }
.cs-tag-eagle-option { border-color: var(--cs-accent); color: var(--cs-heading); }
.cs-tag-swim-test { background: #e6edf6; color: #003366; }
.cs-tag-do-at-home,
.cs-tag-before-camp,
.cs-tag-prereqs-optional { background: var(--ca-gold-light, #f5e8d6); color: var(--ca-text-secondary, #3d2b1f); }
/* Required first stops a Scout from taking the class, so it stands out. Fire restrictions look the same. */
.cs-tag-prereqs,
.cs-tag-fire { background: #fff; color: var(--ca-red, #8b2020); box-shadow: inset 0 0 0 1.5px currentColor; }
.cs-tag-min-age { background: var(--ca-red-light, #fce8e8); color: var(--ca-red, #8b2020); }
.cs-tag-new { background: var(--cs-band); color: var(--cs-heading); }
.cs-tag-not-mb { border: 1px dashed var(--cs-muted); color: var(--cs-ink); }
.cs-tag-double { background: var(--cs-double); color: var(--cs-on-double); }
.cs-tag-first { background: var(--cs-tint); color: var(--cs-ink); }
.cs-tag-signup { background: var(--cs-band); color: var(--cs-heading); }
.cs-tag-limited { background: var(--ca-gold-light, #f5e8d6); color: var(--ca-text-secondary, #3d2b1f); }
.cs-tag-plain { padding-left: 0; padding-right: 0; color: var(--cs-muted); font-weight: 400; }

/* Cells */
.cs-cell-on,
.cs-cell-off,
.cs-cell-double {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 30px;
	border-radius: 3px;
}

.cs-cell-on { background: var(--cs-accent); color: var(--cs-on-accent); font-weight: 700; }
/* A check mark, so the cell still reads as offered when printing drops the fill or high contrast
   replaces it. Screen readers get the words in the cell's .cs-sr instead (the "" alt text). */
.cs-cell-on::before { content: "\2713"; content: "\2713" / ""; }
.cs-cell-off { border: 1px dashed var(--cs-border); }
.cs-cell-double { padding: 0 6px; background: var(--cs-double); color: var(--cs-on-double); font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
.cs-swatch.cs-cell-on,
.cs-swatch.cs-cell-double { height: 18px; }

/* Fills that carry meaning are kept when printing (browsers drop backgrounds by default). */
.cs-cell-on,
.cs-cell-double,
.cs-tag,
.cp-emblem-site,
.camp-program [aria-pressed="true"],
.camp-program [aria-selected="true"] {
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}

/* High contrast (forced colors) replaces fills, so offered cells and pressed or chosen buttons get
   borders and the system's highlight colors instead. */
@media (forced-colors: active) {
	.cs-cell-on,
	.cs-cell-double,
	.cs-tag-eagle-required {
		border: 2px solid CanvasText;
	}

	.camp-program .cs-chip[aria-pressed="true"],
	.camp-program .cs-tabs button[aria-selected="true"],
	.cp-list .cp-chip[aria-pressed="true"],
	.cp-list .cp-views button[aria-pressed="true"] {
		border: 2px solid Highlight;
		background: Highlight;
		color: HighlightText;
		forced-color-adjust: none;
	}

	.camp-program .cs-tabs button[aria-selected="true"] .cs-session-name,
	.cp-chip[aria-pressed="true"] .cp-chip-n {
		color: HighlightText;
	}
}

/* Wide: the table */
.cs-scroll {
	overflow-x: auto;
	border: 1px solid var(--cs-border);
	border-radius: 6px;
	background: var(--cs-card);
}

.cs-table {
	width: 100%;
	min-width: 760px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.cs-table th,
.cs-table td {
	padding: 10px 6px;
	border: 0;
	border-bottom: 1px solid var(--cs-border);
	background: none;
	vertical-align: middle;
	text-align: left;
}

.cs-table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	border-bottom: 2px solid var(--cs-heading);
	background: var(--cs-card);
	font-size: 0.85rem;
	vertical-align: bottom;
}

.cs-table .cs-col-name {
	width: 34%;
	padding-left: 16px;
	font-weight: 400;
}

.cs-table thead .cs-col-name {
	font-weight: 700;
}

.cs-col-session {
	text-align: center !important;
}

.cs-time {
	display: block;
	font-family: var(--cs-heading-font);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.2;
}

.cs-session-name {
	display: block;
	color: var(--cs-muted);
	font-size: 0.8rem;
	font-weight: 400;
}

.cs-table .cs-num {
	width: 70px;
	padding-right: 16px;
	text-align: right;
	white-space: nowrap;
}

.cs-table .cs-group th {
	padding: 20px 16px 8px;
	border-bottom: 1px solid var(--cs-border);
	color: var(--cs-heading);
	font-family: var(--cs-heading-font);
	font-size: 1.15rem;
	font-weight: 700;
}

.cs-name {
	font-weight: 600;
	line-height: 1.3;
}

.camp-program a.cs-name {
	color: var(--ca-kit-link, #1a4a2e);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.camp-program a.cs-name:hover {
	color: var(--ca-kit-link-hover, #0f2e1c);
	text-decoration-thickness: 2px;
}

/* Narrow: pick a session */
.cs-narrow {
	display: none;
}

.cs-tabs {
	position: sticky;
	top: var(--ca-header-h-mobile, 0px);
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
	gap: 6px;
	padding: 10px 0;
	background: var(--ca-bg-page, #faf8f4);
}

.cs-tabs[hidden] {
	display: none;
}

.camp-program .cs-tabs button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 4px;
	border: 1px solid var(--cs-border);
	border-radius: 6px;
	background: var(--cs-card);
	color: var(--cs-heading);
	font: inherit;
	cursor: pointer;
}

.camp-program .cs-tabs button[aria-selected="true"] {
	border-color: var(--cs-accent);
	background: var(--cs-accent);
	color: var(--cs-on-accent);
}

.camp-program .cs-tabs button[aria-selected="true"] .cs-session-name {
	color: var(--cs-on-accent);
}

.cs-panel-title {
	margin: 16px 0 4px;
	color: var(--cs-heading);
	font-family: var(--cs-heading-font);
	font-size: 1.2rem;
}

.cs-cards-title {
	margin: 18px 4px 8px;
	color: var(--cs-heading);
	font-family: var(--cs-heading-font);
	font-size: 1.05rem;
}

.cs-cards ul {
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--cs-border);
	border-radius: 6px;
	background: var(--cs-card);
	list-style: none;
}

.cs-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 12px 14px;
	border-bottom: 1px solid var(--cs-border);
}

.cs-card:last-child {
	border-bottom: 0;
}

.cs-card-top {
	display: flex;
	gap: 10px;
	align-items: baseline;
	justify-content: space-between;
}

.cs-fee {
	font-weight: 600;
	white-space: nowrap;
}

.cs-card-meta {
	color: var(--cs-muted);
	font-size: 0.85rem;
}

[data-hidden="1"] {
	display: none !important;
}

.cs-area-select {
	display: none;
}

@container camp-program (max-width: 820px) {
	.cs-wide { display: none; }
	.cs-narrow { display: block; }
	.cs-sort { margin-left: 0; }
	.cs-chips { display: none; }
	.cs-area-select { display: inline-flex; }
	.cs-controls { flex-direction: column; align-items: stretch; gap: 4px; }
	.camp-program .cs-fold-toggle { display: inline-flex; align-self: flex-start; margin: 4px 0; }
	.cs-filters:not(.cs-folds-open) .cs-folds { display: none; }
	.cs-folds { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
	.cs-select { justify-content: space-between; }
	.cs-select select { flex: 1; max-width: 240px; }
}

/* The camp day */
.cs-day-cols {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 32px;
}

@container camp-program (max-width: 760px) {
	.cs-day-cols { grid-template-columns: 1fr; gap: 8px; }
}

.cs-day .cs-day-title {
	margin: 20px 0 10px;
	color: var(--cs-heading);
	font-family: var(--cs-heading-font);
	font-size: 1.2rem;
}

.cs-timeline,
.cs-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cs-timeline li,
.cs-list li {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	gap: 12px;
	margin: 0;
	padding: 10px 12px;
	border-bottom: 1px solid var(--cs-border);
}

.cs-timeline li.cs-is-session {
	background: var(--cs-band);
}

/* Meals, flags and lights out: part of the day, quieter than the program. */
.cs-timeline li.cs-is-quiet {
	padding-top: 6px;
	padding-bottom: 6px;
	color: var(--cs-muted);
}

.cs-timeline li.cs-is-quiet .cs-when,
.cs-timeline li.cs-is-quiet strong {
	font-weight: 500;
}

.cs-when {
	font-weight: 700;
}

.cs-what {
	display: flex;
	flex-direction: column;
}

.cs-what > span {
	color: var(--cs-muted);
	font-size: 0.9rem;
}

.cs-daybox {
	margin-top: 20px;
	padding: 4px 16px 12px;
	border: 1px solid var(--cs-border);
	border-radius: 6px;
	background: var(--cs-card);
}

.cs-daybox .cs-day-title {
	margin-top: 12px;
}

.cs-daybox .cs-list li {
	grid-template-columns: 120px minmax(0, 1fr);
	padding-left: 0;
	padding-right: 0;
}

.cs-daybox .cs-list li:last-child {
	border-bottom: 0;
}

.cs-footnote {
	margin: 12px 0 0;
	color: var(--cs-muted);
	font-size: 0.9rem;
}

/* Motion is opt-in: these transitions run only for people who haven't asked for less motion. */
@media (prefers-reduced-motion: no-preference) {
	.camp-program .cs-chip,
	.camp-program .cs-tabs button {
		transition: background-color 0.15s, color 0.15s;
	}

	.cp-list .cp-chip {
		transition: background-color 0.15s, border-color 0.15s, color 0.15s;
	}

	.cp-item,
	.camp-program .cp-choice {
		transition: border-color 0.15s, box-shadow 0.15s;
	}

	.cp-toggle .cp-i {
		transition: transform 0.2s;
	}

	.camp-program .cs-related-list a {
		transition: border-color 0.15s;
	}
}

/* Program page */
.cs-class-page {
	--cs-page-width: 1140px;
	padding: 32px 16px 64px;
}

/* The body lines up with the opening above it, at a comfortable reading width. */
.cs-class-wrap {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: var(--cs-page-width);
	margin: 0 auto;
}

.cs-class-page h1.cs-title {
	font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem);
}

/* A page marked as a preview: new and still being finished. A quiet band above the page, not a warning. */
.cp-preview {
	margin: 0 0 24px;
	padding: 12px 16px;
	border: 1px solid var(--cs-double);
	border-radius: 6px;
	background: var(--ca-gold-light, #f5e8d6);
	color: var(--cs-ink);
	font-size: 0.95rem;
	line-height: 1.5;
}

.cp-preview p {
	margin: 0;
}

.cp-preview-label {
	display: inline-block;
	margin-right: 8px;
	padding: 1px 8px;
	border-radius: 3px;
	background: var(--cs-ink);
	color: #fff;
	font-size: 0.8rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	vertical-align: 0.1em;
}

.cp-preview a {
	color: inherit;
	font-weight: 600;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

@media print {
	.cp-preview {
		display: none;
	}
}

.cs-class-lede {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.55;
	color: var(--ca-kit-lede, #3d2b1f);
}

.cs-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1px;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--cs-border);
	border-radius: 6px;
	background: var(--cs-card);
}

.cs-facts > div {
	padding: 12px 16px;
	box-shadow: 1px 1px 0 var(--cs-border);
}

.cs-facts dt {
	color: var(--cs-muted);
	font-size: 0.85rem;
}

.cs-facts dd {
	margin: 2px 0 0;
	font-size: 1.05rem;
	font-weight: 600;
}

.cs-class-section h2 {
	margin: 8px 0 10px;
	color: var(--cs-heading);
	font-family: var(--cs-heading-font);
	font-size: 1.35rem;
}

.cs-class-section p {
	margin: 0 0 10px;
}

.cs-bullets {
	margin: 0;
	padding-left: 1.2em;
}

.cs-bullets li {
	margin: 0 0 6px;
}

.cs-class-section .cs-list li {
	grid-template-columns: 200px minmax(0, 1fr);
	padding-left: 0;
}

@container camp-program (max-width: 560px) {
	.cs-class-section .cs-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* "Add to my plan" beside each time a class meets: its own column, a target big enough to tap. */
.cs-class-section .cs-list li:has(.cs-add-plan) {
	grid-template-columns: 200px minmax(0, 1fr) auto;
	align-items: center;
}

.camp-program .cs-add-plan {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--cs-accent);
	border-radius: 4px;
	color: var(--cs-heading);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.camp-program .cs-add-plan:hover,
.camp-program .cs-add-plan:focus-visible {
	background: var(--cs-band);
}

@container camp-program (max-width: 560px) {
	.cs-class-section .cs-list li:has(.cs-add-plan) { grid-template-columns: 1fr; }
	.camp-program .cs-add-plan { justify-self: start; margin-top: 6px; }
}

.cs-plan-added {
	margin: 0 0 12px;
	padding: 10px 14px;
	border-radius: 4px;
	background: var(--cs-band);
	font-weight: 700;
}

.cs-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.camp-program .cs-button-quiet {
	border: 1px solid var(--cs-accent);
	background: transparent;
	color: var(--cs-heading);
}

.camp-program .cs-button-quiet:hover {
	background: var(--cs-band);
	color: var(--cs-heading);
}

/* Plan your week */
.cs-plan-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 24px;
	align-items: start;
}

@container camp-program (max-width: 860px) {
	.cs-plan-layout { grid-template-columns: 1fr; }
}

.cs-plan-main {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.cs-updated > .cs-draft:first-child,
.cs-updated > .cs-planned:first-child {
	margin-left: 0;
}

/* Planned: on the schedule's way, without times yet. Outlined, so it never reads as a warning. */
.cs-planned {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	border: 1px solid var(--cs-border);
	border-radius: 3px;
	color: var(--cs-ink);
	font-weight: 700;
	font-size: 0.85rem;
}

.cs-plan-col {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.cs-plan-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 18px;
	border: 1px solid var(--cs-border);
	border-radius: 6px;
	background: var(--cs-card);
}

.cs-plan-fields,
.cs-plan-choices {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
}

.cs-plan-fields label,
.cs-plan-choices label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.85rem;
	font-weight: 700;
}

.cs-plan input,
.cs-plan select {
	width: 100%;
	min-height: 44px;
	padding: 0 10px;
	border: 1px solid var(--cs-control-border);
	border-radius: 4px;
	background: var(--cs-card);
	color: var(--cs-ink);
	font: inherit;
	font-weight: 400;
}

.cs-plan-note {
	margin: 0;
	color: var(--cs-muted);
	font-size: 0.85rem;
}

/* The privacy note, folded so the first session shows sooner on a phone (#243). */
.cs-plan-privacy summary {
	cursor: pointer;
	min-height: 24px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cs-plan-privacy p {
	margin: 0.4rem 0 0;
}

.cs-plan-session-head {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	align-items: baseline;
}

.cs-plan-session-head .cs-plan-session-title {
	margin: 0;
	color: var(--cs-heading);
	font-family: var(--cs-heading-font);
	font-size: 1.4rem;
}

.cs-plan-session-head span {
	color: var(--cs-muted);
	font-size: 0.9rem;
}

.cs-plan-choices label[hidden] {
	display: none;
}

.cs-plan-warnings {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cs-plan-warnings:empty {
	display: none;
}

.cs-plan-continues {
	margin: 0;
	padding: 10px 14px;
	border-radius: 4px;
	background: var(--ca-gold-light, #f5e8d6);
	font-weight: 600;
}

.cs-plan-warning,
.cs-plan-alert {
	margin: 0;
	color: var(--ca-red, #8b2020);
	font-weight: 700;
}

.cs-plan-alert {
	margin-bottom: 12px;
	padding: 10px 14px;
	border-radius: 4px;
	background: var(--ca-red-light, #fce8e8);
}

.cs-plan-notreg {
	margin: 0 0 16px;
	padding: 12px 16px;
	border: 2px solid var(--ca-red, #8b2020);
	border-radius: 4px;
	background: var(--ca-red-light, #fce8e8);
}

.cs-plan-notreg p {
	margin: 0;
}

.cs-plan-notreg p + p {
	margin-top: 4px;
}

.cs-plan-summary {
	position: sticky;
	top: 16px;
}

.cs-plan-summary .cs-plan-summary-title {
	margin: 0;
	color: var(--cs-heading);
	font-family: var(--cs-heading-font);
	font-size: 1.3rem;
}

.cs-plan-summary .cs-plan-summary-sub {
	margin: 6px 0 0;
	font-size: 1rem;
}

.cs-plan-picked {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cs-plan-picked li {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid var(--cs-border);
}

.cs-plan-picked li > span:first-child {
	display: flex;
	flex-direction: column;
}

.cs-plan-picked a {
	color: var(--ca-kit-link, #1a4a2e);
	font-weight: 600;
}

.cs-plan-when {
	color: var(--cs-muted);
	font-size: 0.85rem;
}

.cs-plan-fee {
	font-weight: 600;
	white-space: nowrap;
}

.cs-plan-empty {
	color: var(--cs-muted);
}

.cs-plan-total {
	display: flex;
	justify-content: space-between;
	margin: 0;
	font-size: 1.05rem;
}

.cs-plan-shared {
	margin: 0 0 16px;
	padding: 12px 16px;
	border: 2px solid var(--cs-heading, #1a4a2e);
	border-radius: 4px;
	background: var(--ca-green-light, #e8f0ea);
}

.cs-plan-shared p {
	margin: 0 0 4px;
}

.cs-plan-who input[readonly],
.cs-plan-who select:disabled,
.cs-plan-session select:disabled {
	background: #efebe4;
	color: #3d2b1f;
	opacity: 1;
}

.cs-plan-shared .cs-plan-actions {
	margin-top: 8px;
}

.cs-plan-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cs-plan-actions .cs-button {
	justify-content: center;
	border: 1px solid var(--cs-accent);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.cs-plan-actions .cs-button-quiet {
	background: transparent;
	color: var(--cs-heading);
}

.cs-plan-print {
	display: none;
}

.cs-plan-unit {
	margin-top: 24px;
}

.cs-plan-unit > summary {
	cursor: pointer;
	color: var(--cs-heading);
	font-family: var(--cs-heading-font);
	font-size: 1.2rem;
	font-weight: 700;
	min-height: 24px;
}

.cs-plan-unit > p,
.cs-plan-unit > label {
	margin: 12px 0 0;
}

.cs-plan-unit label {
	display: block;
}

.cs-plan-unit label span {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.cs-plan-unit textarea {
	box-sizing: border-box;
	width: 100%;
	font: inherit;
	font-size: 0.9rem;
}

.cs-unit-scroll {
	overflow-x: auto;
	margin-top: 12px;
}

.cs-unit-table {
	min-width: 640px;
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.cs-unit-table th,
.cs-unit-table td {
	padding: 6px 8px;
	border-bottom: 1px solid #d8d0c4;
	text-align: left;
	vertical-align: top;
}

.cs-unit-table thead th {
	border-bottom: 2px solid var(--cs-heading, #1a4a2e);
}

.cs-unit-who {
	display: block;
	font-size: 0.85em;
	font-weight: 400;
}

.cs-unit-picks {
	margin: 0;
	padding-left: 1.3em;
}

.cs-unit-first {
	font-weight: 700;
}

.cs-unit-cover {
	list-style: none;
	margin-left: -1.3em;
	font-style: italic;
}

.cs-unit-notes ul {
	margin: 0;
	padding-left: 1.1em;
	color: var(--ca-red, #8b2020);
}

.cs-unit-fee {
	white-space: nowrap;
}

.cs-unit-heading {
	margin: 16px 0 6px;
	font-size: 1.05rem;
}

.cs-unit-counts {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 4px 12px;
	margin: 0 0 12px;
}

.cs-unit-counts dt {
	font-weight: 700;
}

.cs-unit-counts dd {
	margin: 0;
}

.cs-unit-print {
	display: none;
}

@media print {
	/* A named page, so only the worksheet prints landscape; every other page keeps the browser's setting.
	   Safari ignores page sizes and prints upright, so the sheet fills whatever width the page has. */
	@page plan { size: letter landscape; margin: 0.5in; }
	.cs-plan-print { page: plan; }
	body.cs-printing-plan { background: #ffffff !important; }
	body.cs-printing-plan > *:not(.cs-plan-print) { display: none !important; }
	body.cs-printing-plan .cs-plan-print { display: block !important; }
	@page unit { size: letter landscape; margin: 0.5in; }
	.cs-unit-print { page: unit; }
	body.cs-printing-unit { background: #ffffff !important; }
	body.cs-printing-unit > *:not(.cs-unit-print) { display: none !important; }
	body.cs-printing-unit .cs-unit-print { display: block !important; }
	.cs-unit-sheet { width: 100%; max-width: 10in; color: #1b120b; font: 11px/1.3 Roboto, Arial, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.cs-unit-sheet h2 { margin: 12px 0 4px; color: #1a4a2e; font: 700 14px 'Roboto Slab', Georgia, serif; }
	.cs-unit-sheet .cs-unit-table { min-width: 0; font-size: 11px; }
	.cs-unit-sheet .cs-unit-table tr { break-inside: avoid; }
	.cs-unit-sheet .cs-unit-table thead { display: table-header-group; }
	.cs-plan-sheet { width: 100%; max-width: 10in; color: #1b120b; font: 12px/1.35 Roboto, Arial, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.cs-ps-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 8px; border-bottom: 2px solid #1a4a2e; }
	.cs-ps-head h1 { margin: 0; color: #1a4a2e; font: 700 22px 'Roboto Slab', Georgia, serif; }
	.cs-ps-head p { margin: 3px 0 0; font-size: 13px; }
	.cs-ps-side { text-align: right; color: #3d2b1f; }
	.cs-ps-fields { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr; gap: 18px; margin: 12px 0; font-size: 13px; }
	.cs-ps-fields div { display: flex; gap: 8px; align-items: flex-end; }
	.cs-ps-fields span { flex: 1; min-height: 18px; border-bottom: 1px solid #1b120b; font-size: 15px; }
	.cs-ps-review { margin: 12px 0; padding: 8px 12px; border: 2px solid #1b120b; break-inside: avoid; }
	.cs-ps-review h2 { margin: 0 0 4px; font-size: 15px; }
	.cs-ps-review ul { margin: 0; padding-left: 18px; }
	.cs-ps-warning { margin: 4px 0 0; font-weight: 700; }
	.cs-plan-sheet tr { break-inside: avoid; }
	.cs-plan-sheet table { width: 100%; border-collapse: collapse; font-size: 13px; }
	.cs-plan-sheet th { padding: 5px 8px; border-bottom: 1.5px solid #1b120b; text-align: left; }
	.cs-plan-sheet td { height: 44px; padding: 5px 8px; border-bottom: 1px solid #b8ae9e; border-left: 1px solid #d8d0c4; }
	.cs-plan-sheet td.cs-ps-time { border-left: 0; font: 700 16px 'Roboto Slab', Georgia, serif; }
	.cs-plan-sheet td.cs-ps-first { font-weight: 700; }
	.cs-plan-sheet td.cs-ps-fee { text-align: right; width: 74px; }
	.cs-plan-sheet td.cs-ps-notes { width: 200px; font-size: 12px; }
	.cs-plan-sheet tr.cs-ps-total td { height: 30px; border: 0; font-weight: 700; text-align: right; }
	.cs-ps-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 14px; font-size: 12.5px; }
	.cs-ps-three h2 { margin: 0 0 6px; color: #1a4a2e; font: 700 15px 'Roboto Slab', Georgia, serif; }
	.cs-ps-three p { margin: 0 0 4px; }
	.cs-ps-line { display: flex; gap: 8px; margin-bottom: 8px; }
	.cs-ps-line span:last-child { flex: 1; border-bottom: 1px solid #1b120b; }
	.cs-ps-foot { margin-top: 14px; padding-top: 6px; border-top: 1px solid #d8d0c4; color: #3d2b1f; }
}

/* Class page: about the badge */
.cs-badge-about {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.cs-badge-about + .cs-badge-about {
	margin-top: 16px;
}

.camp-program .cs-badge-about h3 {
	margin: 0 0 4px;
	color: var(--cs-heading);
	font-size: 1.05rem;
}

.cs-badge-about p {
	margin: 0;
	max-width: 68ch;
}

/*
 * Badge emblems, beside the name: 40px in the table, 32px in the session
 * cards, 88px at the top of a program page. A paired class (two badges) shows
 * both, overlapping in the list views and side by side on its page. Every
 * class gets the space when any has an emblem, so names line up; a class
 * without one leaves it empty.
 */
.cs-named {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.cs-named-text {
	min-width: 0;
}

.cs-emblems {
	position: relative;
	flex: none;
	width: 40px;
	height: 40px;
}

.cs-emblem {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cs-emblems-pair .cs-emblem {
	position: absolute;
	width: 75%;
	height: 75%;
}

.cs-emblems-pair .cs-emblem:first-child {
	top: 0;
	left: 0;
}

.cs-emblems-pair .cs-emblem:last-child {
	right: 0;
	bottom: 0;
}

.cs-card .cs-named {
	align-items: center;
}

.cs-card .cs-emblems {
	width: 32px;
	height: 32px;
}

.cs-card-top:has(.cs-named) {
	align-items: center;
}

.cs-what strong .cs-emblems {
	display: inline-block;
	width: 28px;
	height: 28px;
	margin-right: 8px;
	vertical-align: middle;
}

.cs-class-title {
	display: flex;
	gap: 16px;
	align-items: center;
}

.cs-class-title .cs-title {
	margin: 0;
}

.cs-class-title .cs-emblems {
	width: 88px;
	height: 88px;
}

.cs-class-title .cs-emblems-pair {
	display: flex;
	gap: 8px;
	width: auto;
}

.cs-class-title .cs-emblems-pair .cs-emblem {
	position: static;
	width: 88px;
	height: 88px;
}

@container camp-program (max-width: 420px) {
	.cs-class-title .cs-emblems,
	.cs-class-title .cs-emblems-pair .cs-emblem {
		width: 64px;
		height: 64px;
	}

	.cs-class-title .cs-emblems-pair {
		width: auto;
	}
}

/* Program page: Getting ready. */
.cs-prep { padding: 0.85rem 0; border-top: 1px solid var(--ca-border, #e4ddd2); }
.cs-prep:first-of-type { border-top: 0; padding-top: 0.25rem; }
.cs-prep h3 { font-size: 1.05rem; margin: 0 0 0.3rem; color: var(--ca-green, #1b4d2e); }
.cs-prep p, .cs-prep ul { margin: 0.25rem 0; }
.cs-prep-required h3 { color: var(--ca-red, #8b2020); }
.cs-prep-note { margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--ca-border, #e4ddd2); }

/*
 * Program lists (merit badges and rank, awards and activities, adult programs).
 *
 * Cards by default: emblem, name, tags, key facts and the description, with
 * the rest behind Details. data-view="list" on the wrapper turns them into one
 * compact row each. .cp-js is added by lists.js; without it every detail shows
 * and nothing is clamped, so the page reads fine with no script.
 */
.cp-list {
	--cp-emblem: 88px;
	--cp-radius: 12px;
	--cp-page: var(--ca-kit-page, var(--ca-cream, #faf7f1));
	--cp-shadow: 0 1px 2px rgba(42, 31, 22, 0.06), 0 4px 14px rgba(42, 31, 22, 0.06);
	--cp-top: 0px;
}

/* Icons: masks filled with the text color, so they follow the palette. */
.cp-i {
	display: inline-block;
	flex: none;
	width: 1.15em;
	height: 1.15em;
	background-color: currentColor;
	-webkit-mask: var(--cp-icon) center / contain no-repeat;
	mask: var(--cp-icon) center / contain no-repeat;
	vertical-align: -0.2em;
}

.cp-i-calendar { --cp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.cp-i-clock { --cp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.cp-i-cost { --cp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M16.5 7.5C15.7 6.2 14.1 5.5 12 5.5c-2.6 0-4.5 1.3-4.5 3.25S9.4 11.6 12 12s4.5 1.5 4.5 3.5-1.9 3.5-4.5 3.5c-2.3 0-4-.9-4.8-2.4'/%3E%3C/svg%3E"); }
.cp-i-person { --cp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E"); }
.cp-i-pin { --cp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.cp-i-check { --cp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9.5'/%3E%3C/svg%3E"); }
.cp-i-star { --cp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.8 5.8 6.2.8-4.5 4.4 1.1 6.2L12 17.3l-5.6 2.9 1.1-6.2L3 9.6l6.2-.8z'/%3E%3C/svg%3E"); }
.cp-i-medal { --cp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='15' r='5'/%3E%3Cpath d='M8.6 11.3L6 3h4l2 5 2-5h4l-2.6 8.3'/%3E%3C/svg%3E"); }
.cp-i-water { --cp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8c1.5 0 1.5-1.5 3-1.5S7.5 8 9 8s1.5-1.5 3-1.5S13.5 8 15 8s1.5-1.5 3-1.5S19.5 8 21 8M3 13c1.5 0 1.5-1.5 3-1.5s1.5 1.5 3 1.5 1.5-1.5 3-1.5 1.5 1.5 3 1.5 1.5-1.5 3-1.5 1.5 1.5 3 1.5M3 18c1.5 0 1.5-1.5 3-1.5s1.5 1.5 3 1.5 1.5-1.5 3-1.5 1.5 1.5 3 1.5 1.5-1.5 3-1.5 1.5 1.5 3 1.5'/%3E%3C/svg%3E"); }
.cp-i-clipboard { --cp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Crect x='9' y='2' width='6' height='4' rx='1'/%3E%3Cpath d='M9 11h6M9 15h4'/%3E%3C/svg%3E"); }
.cp-i-home { --cp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11l8-7 8 7M6 9.5V20h12V9.5M10 20v-5h4v5'/%3E%3C/svg%3E"); }
.cp-i-flag { --cp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4h11l-2 4 2 4H5'/%3E%3C/svg%3E"); }
.cp-i-bag { --cp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='7' width='14' height='14' rx='3'/%3E%3Cpath d='M9 7V5a3 3 0 0 1 6 0v2M9 13h6'/%3E%3C/svg%3E"); }
.cp-i-mountain { --cp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20l6.5-11 4 6.5 2-3L21 20z'/%3E%3C/svg%3E"); }
.cp-i-info { --cp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E"); }
.cp-i-arrow { --cp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.cp-i-external { --cp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E"); }
.cp-i-chevron { --cp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.cp-i-search { --cp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E"); }
.cp-i-cards { --cp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='8' height='8' rx='1.5'/%3E%3Crect x='13' y='3' width='8' height='8' rx='1.5'/%3E%3Crect x='3' y='13' width='8' height='8' rx='1.5'/%3E%3Crect x='13' y='13' width='8' height='8' rx='1.5'/%3E%3C/svg%3E"); }
.cp-i-rows { --cp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6h12M9 12h12M9 18h12M3 6h2M3 12h2M3 18h2'/%3E%3C/svg%3E"); }

/* Buttons here are ours: undo theme button styles. */
.cp-list button {
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

.cp-list .cp-link-button {
	min-height: 44px;
	padding: 0 4px;
	color: var(--ca-kit-link, var(--cs-heading));
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cp-list [hidden] {
	display: none !important;
}

/* Search and quick filters */
.cp-tools {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	margin: 24px 0 8px;
}

.cp-searchbar {
	position: relative;
}

.cp-searchbar .cp-i {
	position: absolute;
	top: 50%;
	left: 16px;
	color: var(--cs-muted);
	font-size: 1.1rem;
	transform: translateY(-50%);
}

.cp-list .cp-searchbar input {
	width: 100%;
	min-height: 54px;
	margin: 0;
	padding: 0 16px 0 48px;
	border: 1px solid var(--cs-control-border);
	border-radius: var(--cp-radius);
	background: var(--cs-card);
	box-shadow: none;
	color: var(--cs-ink);
	font: inherit;
	font-size: 1.05rem;
}

.cp-list .cp-searchbar input:focus {
	border-color: var(--cs-accent);
	outline: 3px solid var(--cs-focus);
	outline-offset: 2px;
}

.cp-toolrow {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	justify-content: space-between;
}

.cp-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: flex-start;
	min-width: 0;
	max-width: 100%;
}

.cp-chips {
	display: flex;
	flex: 1 1 320px;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
	max-width: 100%;
}

.cp-chips:empty {
	display: none;
}

.cp-list .cp-chip {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid var(--cs-border);
	border-radius: 999px;
	background: var(--cs-card);
	color: var(--cs-ink);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1;
}

.cp-list .cp-chip:hover {
	border-color: var(--cs-accent);
}

.cp-list .cp-chip[aria-pressed="true"] {
	border-color: var(--cs-accent);
	background: var(--cs-accent);
	color: var(--cs-on-accent);
}

.cp-chip-n {
	color: var(--cs-muted);
	font-size: 0.85em;
	font-weight: 600;
}

.cp-chip[aria-pressed="true"] .cp-chip-n {
	color: inherit;
	opacity: 0.85;
}

.cp-list .cp-chip-select {
	padding-right: 8px;
	cursor: pointer;
}

.cp-list .cp-chip-select select {
	min-height: 0;
	margin: 0;
	padding: 4px 4px 4px 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--cs-heading);
	font: inherit;
	cursor: pointer;
}

.cp-viewbar {
	display: flex;
	gap: 16px;
	align-items: center;
}

.cp-views {
	display: inline-flex;
	padding: 3px;
	border: 1px solid var(--cs-border);
	border-radius: 999px;
	background: var(--cs-card);
}

.cp-list .cp-views button {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	min-height: 38px;
	padding: 0 14px;
	border-radius: 999px;
	color: var(--cs-muted);
	font-size: 0.92rem;
	font-weight: 600;
}

.cp-list .cp-views button[aria-pressed="true"] {
	background: var(--cs-accent);
	color: var(--cs-on-accent);
}

/* Area links: stick under the site header while scrolling the list. */
.cp-jump {
	position: sticky;
	top: var(--cp-top);
	z-index: 5;
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 12px 0 0;
	padding: 10px 0;
	border-bottom: 1px solid var(--cs-border);
	background: var(--cp-page);
}

.cp-jump-links {
	display: flex;
	flex: 1;
	gap: 6px;
	/* Scrolling sideways clips top and bottom too, so leave room for the 3px focus ring at 2px. */
	margin: -6px;
	padding: 6px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
	mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
}

.cp-jump-links::-webkit-scrollbar {
	display: none;
}

.camp-program .cp-jump-link {
	display: inline-flex;
	flex: none;
	gap: 6px;
	align-items: center;
	min-height: 38px;
	padding: 0 14px;
	border-radius: 999px;
	color: var(--cs-heading);
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.camp-program .cp-jump-link:hover {
	background: var(--cs-tint);
}

.camp-program .cp-jump-link[aria-current="true"] {
	background: var(--cs-band);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cs-accent) 35%, transparent);
}

.cp-list .cp-jump-search {
	display: inline-flex;
	flex: none;
	gap: 6px;
	align-items: center;
	min-height: 38px;
	padding: 0 14px;
	border: 1px solid var(--cs-border);
	border-radius: 999px;
	background: var(--cs-card);
	color: var(--cs-heading);
	font-size: 0.92rem;
	font-weight: 600;
}

.cp-status {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	align-items: center;
	margin-top: 12px;
}

.cp-status .cs-count {
	margin: 0;
}

.cp-empty {
	display: grid;
	gap: 12px;
	justify-items: start;
	margin: 20px 0;
	padding: 28px;
	border: 1px dashed var(--cs-border);
	border-radius: var(--cp-radius);
}

.cp-empty p {
	margin: 0;
	font-size: 1.1rem;
}

/* Groups */
.cp-group {
	margin-top: 44px;
	scroll-margin-top: calc(var(--cp-top) + 72px - var(--ca-wf-anchor, 0px));
}

.cp-group-head {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	align-items: baseline;
}

.camp-program .cp-group-title {
	margin: 0;
	color: var(--cs-heading);
	font-family: var(--cs-heading-font);
	font-size: clamp(1.5rem, 1.2rem + 1.2cqi, 2rem);
	font-weight: 700;
	line-height: 1.2;
}

.cp-group-count {
	color: var(--cs-muted);
	font-size: 0.95rem;
	font-weight: 600;
}

.cp-group-about {
	max-width: 68ch;
	margin: 6px 0 0;
	color: var(--cs-ink);
	font-size: 1.05rem;
	line-height: 1.55;
}

.cp-items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
	gap: 20px;
	align-items: start;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

/* A card */
.cp-item {
	display: grid;
	grid-template-columns: var(--cp-emblem-now, var(--cp-emblem)) minmax(0, 1fr);
	gap: 18px;
	align-items: start;
	margin: 0;
	padding: 22px;
	border: 1px solid var(--cs-border);
	border-radius: var(--cp-radius);
	background: var(--cs-card);
	box-shadow: var(--cp-shadow);
	scroll-margin-top: calc(var(--cp-top) + 72px - var(--ca-wf-anchor, 0px));
}

.cp-item:hover {
	border-color: color-mix(in srgb, var(--cs-accent) 40%, var(--cs-border));
}

.cp-item:target {
	border-color: var(--cs-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--cs-accent) 25%, transparent);
}

.cp-emblem,
.cp-list .cp-emblem .cs-emblems {
	width: var(--cp-emblem-now, var(--cp-emblem));
	height: var(--cp-emblem-now, var(--cp-emblem));
}

/* The camp logo (light, for the header's green) on the same green. */
.cp-emblem-site {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	border-radius: 50%;
	background: var(--ca-kit-heading, #1a4a2e);
}

.cp-list .cp-emblem-site img {
	width: 58%;
	height: 58%;
	object-fit: contain;
}

.cp-emblem-blank {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	border-radius: 50%;
	background: var(--cs-band);
	color: var(--cs-heading);
	font-family: var(--cs-heading-font);
	font-size: calc(var(--cp-emblem-now, var(--cp-emblem)) * 0.32);
	font-weight: 700;
	letter-spacing: 0.02em;
}

.cp-main {
	min-width: 0;
}

.camp-program .cp-name {
	margin: 0;
	color: var(--cs-heading);
	font-family: var(--cs-heading-font);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
}

.camp-program .cp-name a {
	color: inherit;
	text-decoration: none;
}

.camp-program .cp-name a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.cp-item .cs-tags {
	margin: 8px 0 0;
}


.cp-key {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.95rem;
	font-weight: 600;
}

.cp-key li,
.cp-facts li {
	display: flex;
	gap: 8px;
	align-items: baseline;
	margin: 0;
}

/* A wrapper that only keeps WordPress's automatic paragraphs off a button, link or script (Views::keep);
   it takes no part in the layout. */
.cs-keep {
	display: contents;
}

.cp-key-short {
	display: none;
}

.cp-key .cp-i,
.cp-facts .cp-i {
	color: var(--cs-accent);
	transform: translateY(0.15em);
}

.cp-summary {
	margin: 12px 0 0;
	line-height: 1.55;
}

/* A badge's own card: the classes that teach it, to pick from. */
.cp-pairs {
	margin: 12px 0 0;
	font-size: 0.95rem;
}

.cp-pairs-title {
	margin: 0 0 4px;
	font-weight: 600;
}

.cp-pairs ul {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cp-pairs li {
	display: flex;
	flex-wrap: wrap;
	gap: 0 10px;
	align-items: baseline;
	margin: 0;
	scroll-margin-top: calc(var(--cp-top) + 72px - var(--ca-wf-anchor, 0px));
}

.cp-pairs li span {
	color: var(--cs-muted);
}

.cp-pairs a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.cp-more {
	margin-top: 14px;
}

.cp-facts {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--cs-border);
	list-style: none;
	font-size: 0.95rem;
	line-height: 1.45;
}

.cp-facts strong {
	font-weight: 700;
}

.cp-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 14px 0 0;
}

.camp-program .cp-more-link,
.camp-program .cp-req-link {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	min-height: 32px;
	color: var(--ca-kit-link, var(--cs-heading));
	font-weight: 700;
	text-decoration: none;
}

.camp-program .cp-req-link {
	font-weight: 600;
}

.camp-program .cp-more-link:hover,
.camp-program .cp-req-link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cp-list .cp-toggle {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	min-height: 44px;
	margin-top: 8px;
	padding: 0 2px;
	color: var(--ca-kit-link, var(--cs-heading));
	font-weight: 700;
}

.cp-item.is-open .cp-toggle .cp-i {
	transform: rotate(180deg);
}

/* With the script: details wait behind the button, descriptions are clamped. */
.cp-js .cp-item:not(.is-open) .cp-more {
	display: none;
}

.cp-js[data-view="cards"] .cp-item:not(.is-open) .cp-summary {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.cp-planned {
	margin: 6px 0 0;
	color: var(--cs-ink);
	font-weight: 600;
}

/* Compact list: one row each, in one panel. */
.cp-list[data-view="list"] .cp-items {
	grid-template-columns: 1fr;
	gap: 0;
	border: 1px solid var(--cs-border);
	border-radius: var(--cp-radius);
	background: var(--cs-card);
	overflow: hidden;
}

.cp-list[data-view="list"] .cp-item {
	--cp-emblem-now: 56px;
	gap: 16px;
	align-items: center;
	padding: 14px 18px;
	border: 0;
	border-bottom: 1px solid var(--cs-border);
	border-radius: 0;
	box-shadow: none;
}

.cp-list[data-view="list"] .cp-item:last-child {
	border-bottom: 0;
}

.cp-list[data-view="list"] .cp-item.is-open {
	align-items: start;
	background: color-mix(in srgb, var(--cs-tint) 45%, var(--cs-card));
}

.cp-list[data-view="list"] .cp-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 16px;
	align-items: center;
}

.cp-list[data-view="list"] .cp-main > * {
	grid-column: 1;
}

.cp-list[data-view="list"] .cp-toggle {
	grid-row: 1 / span 3;
	grid-column: 2;
	align-self: center;
	margin: 0;
}

.cp-list[data-view="list"] .cp-item.is-open .cp-toggle {
	align-self: start;
}

/* The whole row opens its details (assets/lists.js), so say so with the pointer. */
.cp-js[data-view="list"] .cp-item:has(.cp-toggle) {
	cursor: pointer;
}

.cp-js[data-view="list"] .cp-item .cp-more {
	cursor: auto;
}

.cp-list[data-view="list"] .cp-name {
	font-size: 1.15rem;
}

.cp-list[data-view="list"] .cp-item .cs-tags,
.cp-list[data-view="list"] .cp-key {
	margin-top: 4px;
}

.cp-js[data-view="list"] .cp-item:not(.is-open) .cp-summary,
.cp-js[data-view="list"] .cp-item:not(.is-open) .cp-pairs {
	display: none;
}

/* Leader meetings */
.cp-meeting-list {
	display: grid;
	gap: 0;
	margin: 20px 0 0;
	padding: 0;
	border: 1px solid var(--cs-border);
	border-radius: var(--cp-radius);
	background: var(--cs-card);
	list-style: none;
}

.cp-meeting-list li {
	display: grid;
	grid-template-columns: minmax(10rem, 14rem) 1fr;
	gap: 6px 20px;
	margin: 0;
	padding: 14px 18px;
	border-bottom: 1px solid var(--cs-border);
}

.cp-meeting-list li:last-child {
	border-bottom: 0;
}

.cp-meeting-when {
	display: flex;
	gap: 8px;
	align-items: baseline;
	color: var(--cs-heading);
	font-weight: 700;
}

.cp-meeting-when .cp-i {
	color: var(--cs-accent);
	transform: translateY(0.15em);
}

.cp-meeting-what {
	display: grid;
	gap: 2px;
}

.cp-meeting-what span {
	color: var(--cs-muted);
}

.cp-nothing {
	margin: 24px 0;
	font-size: 1.1rem;
}

/* Narrow spaces: smaller emblems, tighter cards. */
@container camp-program (max-width: 560px) {
	.cp-item {
		--cp-emblem-now: 64px;
		gap: 14px;
		padding: 18px 16px;
	}

	/* Scout's age on its own row, then the quick filters in one row that scrolls sideways. */
	.cp-filters {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
	}

	.cp-chips {
		flex: none;
		flex-wrap: nowrap;
		align-self: stretch;
		/* Room for the focus ring, as in .cp-jump-links. */
		max-width: calc(100% + 12px);
		margin: -6px;
		padding: 6px;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
	}

	/* With the script, the fade shows only where there's more to scroll to, and wide enough to see. */
	.cp-chips[data-more] {
		-webkit-mask-image: none;
		mask-image: none;
	}

	.cp-chips[data-more="end"] {
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
	}

	.cp-chips[data-more="start"] {
		-webkit-mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent);
		mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent);
	}

	.cp-chips[data-more="both"] {
		-webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent);
		mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent);
	}

	/* Phone cards: emblem beside the name, everything else full width below. */
	.cp-list[data-view="cards"] .cp-item {
		row-gap: 0;
		align-items: center;
	}

	.cp-list[data-view="cards"] .cp-main {
		display: contents;
	}

	.cp-list[data-view="cards"] .cp-main > * {
		grid-column: 1 / -1;
	}

	.cp-list[data-view="cards"] .cp-main > .cp-name,
	.cp-list[data-view="cards"] .cp-main > .cs-tags {
		grid-column: 2;
	}

	.cp-list[data-view="cards"] .cp-emblem {
		grid-row: span 2;
	}

	.cp-list[data-view="cards"] .cp-item .cp-key {
		margin-top: 14px;
	}

	.cp-chips::-webkit-scrollbar {
		display: none;
	}

	.cp-list .cp-chip {
		flex: none;
	}

	.camp-program .cp-name {
		font-size: 1.2rem;
	}

	/* Phone list: one compact row per class (name, tags, then its facts on one line in their short
	   form, "4 days · 9:00, 1:30 · No fee · 12+"), so a screen holds eight or more. Details opens the rest. */
	.cp-list[data-view="list"] .cp-item {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		padding: 10px 12px;
	}

	.cp-list[data-view="list"] .cp-emblem {
		display: none;
	}

	.cp-list[data-view="list"] .cp-name {
		font-size: 1.05rem;
	}

	.cp-list[data-view="list"] .cp-item .cs-tags {
		margin-top: 2px;
	}

	.cp-list[data-view="list"] .cp-key {
		display: block;
		margin-top: 2px;
		font-size: 0.875rem;
		font-weight: 500;
		line-height: 1.35;
	}

	.cp-list[data-view="list"] .cp-key li {
		display: inline;
	}

	.cp-list[data-view="list"] .cp-key li + li::before {
		content: " · ";
	}

	.cp-list[data-view="list"] .cp-key .cp-i,
	.cp-list[data-view="list"] .cp-key-full {
		display: none;
	}

	.cp-list[data-view="list"] .cp-key-short {
		display: inline;
	}

	/* On a phone the list's button is just the arrow, at least 24 by 44 px, and the whole row is the
	   toggle too (assets/lists.js). The word stays for screen readers: the same hiding as .cs-sr. */
	.cp-list[data-view="list"] .cp-toggle {
		min-width: 24px;
		justify-content: center;
	}

	.cp-list[data-view="list"] .cp-toggle > span:first-child {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.cp-meeting-list li {
		grid-template-columns: 1fr;
	}

	.cp-viewbar {
		width: 100%;
		justify-content: space-between;
	}
}

@media print {
	.cp-tools,
	.cp-jump,
	.cp-status,
	.cp-toggle {
		display: none !important;
	}

	.cp-list .cp-more,
	.cp-list .cp-pairs {
		display: block !important;
	}

	.cp-list .cp-summary {
		display: block !important;
		-webkit-line-clamp: none !important;
	}

	.cp-list .cp-items {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.cp-item {
		break-inside: avoid;
		padding: 10px;
		box-shadow: none;
	}
}

/*
 * Selling the program: area photos on the lists, the program page's opening,
 * breadcrumbs, "More in", and the closing "Ready for summer?".
 */

/* The main call to action matches the site's Register button. */
.camp-program .cp-button-primary {
	background: var(--cs-double);
	color: var(--cs-on-double);
}

.camp-program .cp-button-primary:hover {
	background: var(--ca-kit-btn-primary-hover, #b5732f);
	color: var(--cs-on-double);
}

/* An area on the lists: text beside its photo on wide screens, photo first on phones. */
.cp-group-intro {
	display: grid;
	gap: 20px;
	align-items: center;
}

.cp-group.has-photo .cp-group-intro {
	padding: 0 0 4px;
}

@container camp-program (min-width: 860px) {
	.cp-group.has-photo .cp-group-intro {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 40px;
	}
}

@container camp-program (max-width: 859px) {
	.cp-group.has-photo .cp-group-media {
		order: -1;
	}
}

.cp-group-media {
	overflow: hidden;
	border-radius: var(--cp-radius);
	aspect-ratio: 16 / 9;
	background: var(--cs-tint);
}

.cp-list .cp-group-photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* "Ready for summer?" at the end of a list or a program page. */
.cp-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 40px;
	align-items: center;
	justify-content: space-between;
	margin: 56px 0 0;
	padding: 32px;
	border-radius: 16px;
	background: var(--cs-band);
}

.cp-cta h2,
.cp-cta h3 {
	margin: 0;
	color: var(--cs-heading);
	font-family: var(--cs-heading-font);
	font-size: clamp(1.4rem, 1.1rem + 1cqi, 1.85rem);
	line-height: 1.2;
}

.cp-cta p {
	max-width: 52ch;
	margin: 8px 0 0;
}

.cp-cta .cp-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}

.cs-class-page .cs-class-wrap > * {
	max-width: 860px;
}

.cs-class-page .cs-class-wrap > .cp-cta,
.cs-class-page .cs-class-wrap > .cs-related {
	max-width: none;
}

.cs-crumbs {
	max-width: var(--cs-page-width);
	margin: 0 auto 20px;
	font-size: 0.92rem;
}

.cs-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cs-crumbs li {
	display: flex;
	align-items: center;
	margin: 0;
	color: var(--cs-muted);
}

.cs-crumbs li + li::before {
	content: "/";
	margin: 0 10px;
	color: var(--cs-border);
}

.camp-program .cs-crumbs a {
	color: var(--ca-kit-link, var(--cs-heading));
	font-weight: 600;
	text-decoration: none;
}

.camp-program .cs-crumbs a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cs-hero {
	display: grid;
	gap: 28px;
	align-items: center;
	max-width: var(--cs-page-width);
	margin: 0 auto 36px;
}

@container camp-program (min-width: 900px) {
	.cs-hero.has-photo {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		gap: 48px;
	}
}

@container camp-program (max-width: 899px) {
	.cs-hero.has-photo .cs-hero-media {
		order: -1;
	}
}

.cs-hero-text {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 860px;
}

/* Without a photo the text starts on the same line as the breadcrumbs and sections below. */
.cs-hero:not(.has-photo) .cs-hero-text {
	margin: 0;
	width: 100%;
}

.cs-hero-what {
	margin: 0;
	color: var(--cs-muted);
	font-size: 1rem;
	font-weight: 600;
}

.cs-hero .cs-tags {
	margin-top: 0;
}

.cs-hero .cs-tag {
	padding: 3px 10px;
	font-size: 0.85rem;
}

.cs-hero .cs-updated {
	margin: 0;
}

.cs-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 8px 0 0;
}

.cs-hero-media {
	overflow: hidden;
	border-radius: 16px;
	aspect-ratio: 4 / 3;
	background: var(--cs-tint);
}

.camp-program .cs-hero-photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* More in the same area */
.cs-related-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 12px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.cs-related-list li {
	margin: 0;
}

.camp-program .cs-related-list a {
	display: flex;
	gap: 12px;
	align-items: center;
	height: 100%;
	padding: 12px 14px;
	border: 1px solid var(--cs-border);
	border-radius: 12px;
	background: var(--cs-card);
	color: var(--cs-ink);
	text-decoration: none;
}

.camp-program .cs-related-list a:hover {
	border-color: var(--cs-accent);
}

.cs-related-list .cs-emblems {
	width: 48px;
	height: 48px;
}

.cs-related-list a > span:last-child {
	display: grid;
	gap: 2px;
}

.cs-related-list strong {
	color: var(--cs-heading);
	font-family: var(--cs-heading-font);
	font-size: 1.05rem;
	line-height: 1.25;
}

.cs-related-list a > span:last-child > span {
	color: var(--cs-muted);
	font-size: 0.9rem;
}

@media print {
	.cp-cta,
	.cs-hero-actions,
	.cs-related,
	.cs-crumbs {
		display: none !important;
	}
}

/* Awards and activities: two parts, each with its own heading above its groups. */
.cp-part {
	margin-top: 56px;
	scroll-margin-top: calc(var(--cp-top) + 72px - var(--ca-wf-anchor, 0px));
}

/* The first part. Not :first-of-type: the status line and empty note before it are divs too. */
.cp-part:not(.cp-part ~ .cp-part) {
	margin-top: 32px;
}

.cp-part-head {
	padding-bottom: 12px;
	border-bottom: 2px solid var(--cs-heading);
}

/* A part with a photo (picked in Media, Badge and award images): words and photo side by side when
   there's room, the photo first when there isn't, like a program area with its photo. */
.cp-part.has-photo .cp-part-head {
	display: grid;
	gap: 16px;
}

@container camp-program (min-width: 860px) {
	.cp-part.has-photo .cp-part-head {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 40px;
		align-items: end;
	}
}

@container camp-program (max-width: 859px) {
	.cp-part.has-photo .cp-part-media {
		order: -1;
	}
}

.camp-program .cp-part-title {
	margin: 0;
	color: var(--cs-heading);
	font-family: var(--cs-heading-font);
	font-size: clamp(1.75rem, 1.3rem + 1.6cqi, 2.4rem);
	font-weight: 700;
	line-height: 1.15;
}

.cp-part-about {
	max-width: 68ch;
	margin: 6px 0 0;
	font-size: 1.05rem;
}

.cp-part .cp-group {
	margin-top: 32px;
}

.cp-part .cp-group-flat {
	margin-top: 8px;
}

.camp-program .cp-part .cp-group-title {
	font-size: clamp(1.3rem, 1.1rem + 0.8cqi, 1.6rem);
}

/* "What can I earn?" and "What can I do?": the first choice on the page. */
.cp-choose {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 16px;
	margin: 24px 0 8px;
}

.camp-program .cp-choice {
	display: flex;
	gap: 16px;
	align-items: center;
	min-height: 88px;
	padding: 20px 22px;
	border: 1px solid var(--cs-border);
	border-radius: 16px;
	background: var(--cs-card);
	box-shadow: var(--cp-shadow);
	color: var(--cs-ink);
	text-decoration: none;
}

.camp-program .cp-choice:hover {
	border-color: var(--cs-accent);
}

.camp-program .cp-choice-awards {
	background: var(--cs-band);
	border-color: color-mix(in srgb, var(--cs-accent) 25%, var(--cs-border));
}

.cp-choice > .cp-i:first-child {
	color: var(--cs-accent);
	font-size: 2rem;
}

.cp-choice > .cp-i:last-child {
	margin-left: auto;
	color: var(--cs-accent);
	font-size: 1.25rem;
}

.cp-choice-text {
	display: grid;
	gap: 2px;
}

.cp-choice-text strong {
	color: var(--cs-heading);
	font-family: var(--cs-heading-font);
	font-size: clamp(1.3rem, 1.1rem + 0.8cqi, 1.6rem);
	line-height: 1.2;
}

.cp-choice-text > span {
	color: var(--cs-muted);
	font-weight: 600;
}

.cp-choice-n {
	display: inline-block;
	min-width: 1.8em;
	margin-left: 4px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--cs-card);
	color: var(--cs-heading);
	font-family: inherit;
	font-size: 0.6em;
	font-weight: 700;
	text-align: center;
	vertical-align: 0.35em;
}

/* Awards sit on their own tinted band, so the two parts look different while scrolling. */
.cp-part-awards {
	padding: 28px 28px 32px;
	border-radius: 20px;
	background: var(--cs-band);
}

/* Certifications get a warmer band of their own, between awards and activities. */
.cp-part-certs {
	padding: 28px 28px 32px;
	border-radius: 20px;
	background: color-mix(in srgb, var(--ca-gold-light, #f5e8d6) 70%, var(--cs-card));
}

.camp-program .cp-choice-certs {
	background: color-mix(in srgb, var(--ca-gold-light, #f5e8d6) 70%, var(--cs-card));
}

@container camp-program (max-width: 560px) {
	.cp-part-certs,
	.cp-part-awards {
		margin-right: -8px;
		margin-left: -8px;
		padding: 20px 12px 24px;
		border-radius: 16px;
	}
}

@media print {
	.cp-choose {
		display: none !important;
	}

	.cp-part-awards,
	.cp-part-certs {
		padding: 0;
		background: none;
	}
}

/* On the white Activities choice the count needs its own tint. */
.cp-choice-days .cp-choice-n {
	background: var(--cs-tint);
}
