/* /for/classrooms-camps: chalkboard green, chalk white, school-bus yellow. Gochi Hand + Nunito. */
.fl-class {
	--fl-bg: #f7f2e4; --fl-ink: #1d2a24; --fl-muted: #4c5a52; --fl-surface: #fffdf7;
	--fl-line: rgba(29,42,36,.14); --fl-accent: #ffc72c; --fl-accent-ink: #1d2a24;
	--fl-display: 'Gochi Hand', 'Comic Sans MS', cursive; --fl-body: 'Nunito', system-ui, sans-serif; --fl-radius: 14px;
	--board: #22382f; --chalk: #f3efe4;
	scrollbar-color: #2f4b40 var(--fl-bg);
}
.fl-class .fl-h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); }

.cl-hero { padding: clamp(24px, 4vw, 56px) 0 clamp(32px, 5vw, 64px); background: #c99c63 linear-gradient(90deg, rgba(0,0,0,.06) 1px, transparent 1px) 0 0 / 18px 100%; }
.cl-board {
	background: radial-gradient(120% 90% at 30% 20%, #2b463b, var(--board) 60%, #1b2d26);
	color: var(--chalk); border-radius: 10px; padding: clamp(20px, 4vw, 48px);
	border: 14px solid #8a5a2b; box-shadow: inset 0 0 60px rgba(0,0,0,.45), 0 20px 40px -20px rgba(0,0,0,.55);
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 4vw, 48px); align-items: center;
}
.cl-board .fl-h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.6rem); color: var(--chalk); text-shadow: 0 0 1px rgba(243,239,228,.6); }
.cl-lead { font-size: 1.05rem; line-height: 1.6; max-width: 48ch; color: #dfe7df; margin: 1rem 0 1.4rem; }

.cl-count { display: inline-flex; align-items: center; gap: 10px; }
.cl-step { width: 52px; height: 52px; border-radius: 50%; border: 2px dashed var(--chalk); background: transparent; color: var(--chalk); font: 700 1.8rem/1 var(--fl-body); cursor: pointer; }
.cl-step:hover { background: rgba(243,239,228,.08); }
.cl-num input { width: 4.2ch; font: 400 3.4rem/1 var(--fl-display); color: var(--fl-accent); background: transparent; border: 0; border-bottom: 3px solid rgba(243,239,228,.5); text-align: center; caret-color: var(--fl-accent); -moz-appearance: textfield; }
.cl-num input::-webkit-outer-spin-button, .cl-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cl-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 14px; }
.cl-presets button { font: 700 .88rem/1 var(--fl-body); color: var(--fl-accent-ink); background: var(--fl-accent); border: 0; border-radius: 999px; padding: 10px 14px; cursor: pointer; min-height: 40px; }
.cl-presets button.is-on { box-shadow: 0 0 0 3px var(--chalk); }
.cl-each { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.cl-each input { position: absolute; opacity: 0; }
.cl-each label span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(243,239,228,.6); font: 400 1.4rem/1 var(--fl-display); cursor: pointer; }
.cl-each input:checked + span { background: var(--chalk); color: var(--board); }
.cl-each input:focus-visible + span { outline: 3px solid var(--fl-accent); outline-offset: 2px; }

.cl-tally-wrap { min-width: 0; }
.cl-tally { width: 100%; height: auto; display: block; }
.cl-tally path { fill: none; stroke: var(--chalk); stroke-width: 3.2; stroke-linecap: round; opacity: .92; }
.cl-tally text { fill: var(--fl-accent); font-family: var(--fl-display); font-size: 30px; }
.cl-tally-note { font-family: var(--fl-display); font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); line-height: 1.25; color: var(--chalk); margin: 18px 0 0; text-wrap: balance; }
.cl-tally-note a { color: var(--fl-accent); }
.cl-ledge { height: 16px; margin: 0 6px; background: #6e4520; border-radius: 0 0 6px 6px; position: relative; }
.cl-chalk { position: absolute; left: 18%; top: -6px; width: 44px; height: 8px; background: #fffaf0; border-radius: 3px; }
.cl-eraser { position: absolute; left: 30%; top: -14px; width: 70px; height: 16px; background: linear-gradient(#3b5bbd 0 55%, #d8d0bd 55%); border-radius: 3px; }

.cl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cl-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) repeat(3, minmax(84px, auto)); gap: 14px; align-items: center; background: var(--fl-surface); border: 1px solid var(--fl-line); border-radius: var(--fl-radius); padding: 10px 16px 10px 10px; }
.cl-row img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 8px; }
.cl-row-main a { font-weight: 700; text-decoration: none; line-height: 1.3; }
.cl-row-main a:hover { text-decoration: underline; }
.cl-row-meta { display: block; color: var(--fl-muted); font-size: .88rem; margin-top: 2px; }
.cl-row-fig { display: flex; flex-direction: column; align-items: flex-end; }
.cl-row-fig strong { font-size: 1.25rem; }
.cl-row-fig span { font-size: .78rem; color: var(--fl-muted); }
.cl-row-total strong { color: #1f6b47; }

@media (max-width: 860px) {
	.cl-board { grid-template-columns: 1fr; border-width: 10px; }
	.cl-row { grid-template-columns: 56px minmax(0, 1fr) repeat(3, auto); gap: 10px; }
	.cl-row img { width: 56px; height: 56px; }
}
@media (max-width: 560px) {
	.cl-row { grid-template-columns: 56px minmax(0, 1fr); }
	.cl-row-fig { grid-column: span 1; align-items: flex-start; }
	.cl-row-fig:nth-of-type(1) { grid-column: 1 / 2; }
	.cl-row { grid-template-areas: none; }
}
