/* Camp Achva sample week. Every rule sits inside .achva-day, so nothing else on the page changes.
   Fonts come from the site's own theme. Colors are the J's teal and greys. */

.achva-day {
	--accent: #00adba;
	--pale: #e4f8f9;
	--white: #fff;
	--ink: #000;
	--muted: #4a5358;
	--line: #d5dee1;
	--soft-line: #737e84;
	--radius: 10px;
	max-width: 760px;
	margin: 0 0 32px;
	line-height: 1.5;
	/* Lays out by the width of the column it sits in, not the screen, so it fits any theme. */
	container-type: inline-size;
}
.achva-day *, .achva-day *::before, .achva-day *::after { box-sizing: border-box; }
.achva-day .achva-day__age:not(.is-default), .achva-day .achva-day__list:not(.is-default) { display: none; }
@supports not selector(:has(*)) { .achva-day .achva-day__choice { display: none; } }

/* Grade and day choices */
.achva-day .achva-day__choice { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.achva-day .achva-day__choice legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.achva-day .achva-day__chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.achva-day .achva-day__chips--days { grid-template-columns: repeat(5, 1fr); }
.achva-day .achva-day__chips label { position: relative; display: block; margin: 0; cursor: pointer; }
.achva-day .achva-day__chips input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.achva-day .achva-day__chips span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 4px; border: 2px solid var(--soft-line); border-radius: var(--radius); line-height: 1.2; text-align: center; }
.achva-day .achva-day__chips small { font-size: 12.8px; }
.achva-day .achva-day__chips abbr { border: 0; text-decoration: none; }
.achva-day .achva-day__chips input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--white); }
.achva-day .achva-day__chips input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

/* The day */
.achva-day .achva-day__list { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.achva-day .achva-day__list > li { margin: 0; border-bottom: 1px solid var(--line); }
.achva-day .achva-day__list > li.is-together { background: var(--pale); }
.achva-day .achva-day__row { display: flex; align-items: center; gap: 16px; min-height: 44px; padding: 6px 12px; }
.achva-day .achva-day__time { flex: 0 0 96px; color: var(--muted); font-size: 14.4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.achva-day .achva-day__name { flex: 1; font-weight: 600; }
.achva-day details { margin: 0; padding: 0; border: 0; }
.achva-day summary { cursor: pointer; list-style: none; }
.achva-day summary::-webkit-details-marker { display: none; }
.achva-day summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 700; line-height: 1; }
.achva-day details[open] summary::after { content: "–"; }
.achva-day details p { margin: 0; padding: 0 12px 12px calc(96px + 28px); color: #444; font-size: 15.2px; }
.achva-day .achva-day__note { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

@container (max-width: 479px) {
	.achva-day .achva-day__chips:not(.achva-day__chips--days) { grid-template-columns: repeat(2, 1fr); }
	.achva-day .achva-day__time { flex-basis: 82px; font-size: 13.6px; }
	.achva-day details p { padding-left: 12px; }
}
