/* Dale Fall Fest volunteer signup
   Palette borrowed from a town park at dusk: deep evening blue, bulb amber,
   maple red, with a warm paper ground. */

.dff-card {
	--dff-ink: #1b2a41;
	--dff-paper: #fdfaf4;
	--dff-line: #e3dbcb;
	--dff-glow: #d98b1f;
	--dff-maple: #9c3720;
	--dff-leaf: #3f6b4f;
	--dff-slate: #5f6b7d;

	box-sizing: border-box;
	max-width: 40rem;
	margin: 0 auto;
	padding: 2rem 1.5rem 2.25rem;
	background: var(--dff-paper);
	border: 1px solid var(--dff-line);
	border-radius: 4px;
	color: var(--dff-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.dff-card *,
.dff-card *::before,
.dff-card *::after {
	box-sizing: inherit;
}

.dff-card--narrow {
	max-width: 26rem;
}

.dff-card--wide {
	max-width: 52rem;
}

/* Header ------------------------------------------------------------ */

.dff-card__head {
	text-align: center;
	padding-bottom: 1.25rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid var(--dff-line);
}

.dff-eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--dff-maple);
}

.dff-title {
	margin: 0;
	font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--dff-ink);
}

.dff-subtitle {
	margin: 0.375rem 0 0;
	font-size: 0.9375rem;
	color: var(--dff-slate);
}

/* Fields ------------------------------------------------------------ */

.dff-field {
	margin-bottom: 1.25rem;
	border: 0;
	padding: 0;
}

.dff-field > label,
.dff-field > legend {
	display: block;
	margin-bottom: 0.375rem;
	padding: 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--dff-ink);
}

.dff-field input[type="text"],
.dff-field input[type="email"],
.dff-field input[type="tel"],
.dff-field input[type="password"] {
	width: 100%;
	padding: 0.6875rem 0.75rem;
	font-size: 1rem;
	font-family: inherit;
	color: var(--dff-ink);
	background: #fff;
	border: 1px solid #cfc6b4;
	border-radius: 3px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dff-field input:focus {
	outline: none;
	border-color: var(--dff-glow);
	box-shadow: 0 0 0 3px rgba(217, 139, 31, 0.22);
}

.dff-hint {
	margin: 0 0 0.875rem;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--dff-slate);
}

/* Day divider: a string of bulbs over the park path ------------------ */

.dff-daybreak {
	position: relative;
	margin: 1.5rem 0 0.75rem;
	padding-top: 0.875rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--dff-ink);
}

.dff-daybreak:first-of-type {
	margin-top: 0.25rem;
}

.dff-daybreak::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background-image: radial-gradient(circle, var(--dff-glow) 1.6px, transparent 1.9px);
	background-size: 12px 5px;
	background-repeat: repeat-x;
	opacity: 0.85;
}

/* Shift options ----------------------------------------------------- */

.dff-shift {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
	padding: 0.75rem 0.875rem;
	background: #fff;
	border: 1px solid var(--dff-line);
	border-left: 3px solid var(--dff-line);
	border-radius: 3px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.dff-shift:hover {
	border-color: #cfc6b4;
	border-left-color: var(--dff-glow);
	background: #fffdf8;
}

.dff-shift--covered {
	border-left-color: var(--dff-leaf);
}

.dff-shift--partial {
	border-left-color: var(--dff-glow);
}

.dff-shift--empty {
	border-left-color: var(--dff-maple);
}

.dff-shift input[type="radio"] {
	flex: 0 0 auto;
	width: 1.125rem;
	height: 1.125rem;
	margin: 0.1875rem 0 0;
	accent-color: var(--dff-maple);
	cursor: pointer;
}

.dff-shift input[type="radio"]:focus-visible {
	outline: 2px solid var(--dff-glow);
	outline-offset: 2px;
}

.dff-shift__body {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
}

.dff-shift__time {
	display: block;
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--dff-ink);
}

.dff-shift__meta {
	display: block;
	margin-top: 0.1875rem;
	font-size: 0.8125rem;
	color: var(--dff-slate);
}

.dff-count {
	font-weight: 700;
	color: var(--dff-ink);
}

/* Badges ------------------------------------------------------------ */

.dff-badge {
	display: inline-block;
	margin-left: 0.375rem;
	padding: 0.0625rem 0.4375rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	border-radius: 2px;
	white-space: nowrap;
}

.dff-badge--covered {
	background: #e4ede6;
	color: #2c5139;
}

.dff-badge--partial {
	background: #faeacd;
	color: #7a4e0c;
}

.dff-badge--empty {
	background: #f4e0da;
	color: #7d2c18;
}

/* Messages ---------------------------------------------------------- */

.dff-message {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	line-height: 1.5;
}

.dff-message:empty {
	display: none;
}

.dff-message--ok,
.dff-message--error {
	padding: 0.75rem 0.875rem;
	border-radius: 3px;
	border-left: 3px solid;
}

.dff-message--ok {
	background: #e9f0eb;
	border-left-color: var(--dff-leaf);
	color: #26492f;
}

.dff-message--error {
	background: #f6e3dd;
	border-left-color: var(--dff-maple);
	color: #7a2a16;
}

/* Buttons ----------------------------------------------------------- */

.dff-submit {
	display: block;
	width: 100%;
	padding: 0.8125rem 1rem;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #fdfaf4;
	background: var(--dff-maple);
	border: 0;
	border-radius: 3px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.dff-submit:hover:not(:disabled) {
	background: #7f2c18;
}

.dff-submit:focus-visible {
	outline: 2px solid var(--dff-glow);
	outline-offset: 2px;
}

.dff-submit:disabled {
	background: #a99e8c;
	cursor: default;
}

/* Dashboard --------------------------------------------------------- */

.dff-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.dff-stat {
	padding: 0.875rem;
	background: #fff;
	border: 1px solid var(--dff-line);
	border-radius: 3px;
	text-align: center;
}

.dff-stat__num {
	display: block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.625rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--dff-ink);
}

.dff-stat__label {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.75rem;
	color: var(--dff-slate);
}

.dff-daybreak--board {
	font-size: 1.25rem;
	margin-top: 2rem;
}

.dff-slot {
	margin-bottom: 0.75rem;
	padding: 0.875rem 1rem;
	background: #fff;
	border: 1px solid var(--dff-line);
	border-left: 3px solid var(--dff-line);
	border-radius: 3px;
}

.dff-slot--covered {
	border-left-color: var(--dff-leaf);
}

.dff-slot--partial {
	border-left-color: var(--dff-glow);
}

.dff-slot--empty {
	border-left-color: var(--dff-maple);
}

.dff-slot__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.dff-slot__head h4 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--dff-ink);
}

.dff-empty {
	margin: 0;
	font-size: 0.875rem;
	font-style: italic;
	color: var(--dff-slate);
}

.dff-people {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dff-person {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.5rem 0;
	border-top: 1px solid #f0ebe0;
	font-size: 0.875rem;
}

.dff-person:first-child {
	border-top: 0;
}

.dff-person strong {
	display: block;
}

.dff-person a {
	display: inline-block;
	margin-right: 0.75rem;
	color: var(--dff-slate);
	text-decoration: none;
	border-bottom: 1px solid #d8d0c0;
}

.dff-person a:hover {
	color: var(--dff-maple);
}

.dff-sync-flag {
	display: inline-block;
	padding: 0.0625rem 0.375rem;
	font-size: 0.6875rem;
	font-weight: 700;
	border-radius: 2px;
	background: #f4e0da;
	color: #7d2c18;
}

.dff-sync-flag--pending {
	background: #ece9e2;
	color: #5f6b7d;
}

.dff-remove {
	flex: 0 0 auto;
	padding: 0.25rem 0.5rem;
	font-family: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--dff-maple);
	background: transparent;
	border: 1px solid #dfc7bf;
	border-radius: 2px;
	cursor: pointer;
}

.dff-remove:hover:not(:disabled) {
	background: #f6e3dd;
}

.dff-remove:disabled {
	opacity: 0.5;
	cursor: default;
}

/* Small screens ----------------------------------------------------- */

@media (max-width: 34rem) {
	.dff-card {
		padding: 1.5rem 1rem 1.75rem;
	}

	.dff-title {
		font-size: 1.625rem;
	}

	.dff-stats {
		grid-template-columns: 1fr;
	}

	.dff-person {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dff-card * {
		transition: none !important;
	}
}

.dff-signout {
	font-size: 0.8125rem;
	color: var(--dff-slate);
	text-decoration: none;
	border-bottom: 1px solid #d8d0c0;
}

.dff-signout:hover {
	color: var(--dff-maple);
}

.dff-shift input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1.125rem;
	height: 1.125rem;
	margin: 0.1875rem 0 0;
	accent-color: var(--dff-maple);
	cursor: pointer;
}

.dff-shift input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--dff-glow);
	outline-offset: 2px;
}

.dff-shift:has(input:checked) {
	background: #fdf6e9;
	border-color: var(--dff-glow);
	border-left-color: var(--dff-glow);
}

.dff-chosen {
	margin: 0.75rem 0 0;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--dff-slate);
	min-height: 1.25rem;
}

.dff-chosen.is-active {
	color: var(--dff-maple);
}

.dff-stat__hint {
	display: block;
	margin-top: 0.125rem;
	font-size: 0.6875rem;
	color: var(--dff-slate);
	opacity: 0.85;
}

/* Manual add-entry, for transcribing the paper sheet ----------------- */

.dff-manual {
	margin-bottom: 1.5rem;
	border: 1px solid var(--dff-line);
	border-radius: 3px;
	background: #fff;
}

.dff-manual > summary {
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--dff-ink);
	cursor: pointer;
	list-style: none;
}

.dff-manual > summary::-webkit-details-marker {
	display: none;
}

.dff-manual > summary::before {
	content: "+ ";
	color: var(--dff-maple);
	font-weight: 700;
}

.dff-manual[open] > summary::before {
	content: "\2212 ";
}

.dff-manual__form {
	padding: 0 1rem 1rem;
}

.dff-optional {
	font-weight: 400;
	color: var(--dff-slate);
	font-size: 0.75rem;
}

.dff-manual__form select {
	width: 100%;
	padding: 0.6875rem 0.75rem;
	font-size: 1rem;
	font-family: inherit;
	color: var(--dff-ink);
	background: #fff;
	border: 1px solid #cfc6b4;
	border-radius: 3px;
}

.dff-submit--small {
	width: auto;
	padding: 0.5625rem 1.25rem;
	font-size: 0.875rem;
}

.dff-no-email {
	display: inline-block;
	font-size: 0.75rem;
	font-style: italic;
	color: var(--dff-slate);
	margin-right: 0.75rem;
}

/* Print roster --------------------------------------------------------
   Rachel hits Print from the dashboard. Everything interactive drops out,
   what remains is a plain black-on-white handoff sheet. */

.dff-print-only {
	display: none;
}

@media print {
	body * {
		visibility: hidden;
	}

	.dff-card,
	.dff-card * {
		visibility: visible;
	}

	.dff-card {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		max-width: none;
		border: 0;
		padding: 0.4in 0.5in;
		background: #fff;
		color: #000;
	}

	.dff-no-print {
		display: none !important;
	}

	.dff-print-only {
		display: block;
		margin-bottom: 0.35in;
		border-bottom: 2px solid #000;
		padding-bottom: 0.15in;
	}

	.dff-print-only h2 {
		margin: 0 0 4px;
		font-family: Georgia, "Times New Roman", serif;
		font-size: 18pt;
	}

	.dff-print-only p {
		margin: 0;
		font-size: 9pt;
		color: #333;
	}

	.dff-daybreak--board {
		break-after: avoid;
		break-inside: avoid;
		margin-top: 0.2in;
		border-top: none;
		font-size: 13pt;
	}

	.dff-daybreak--board::before {
		display: none;
	}

	.dff-slot {
		break-inside: avoid;
		border: 1px solid #999;
		border-left: 3px solid #666;
		margin-bottom: 8pt;
		padding: 6pt 8pt;
	}

	.dff-slot__head h4 {
		font-size: 10.5pt;
	}

	.dff-person {
		font-size: 9.5pt;
		padding: 3pt 0;
	}

	.dff-person a {
		color: #000;
		border-bottom: none;
	}

	.dff-empty {
		font-size: 9pt;
	}
}
