/*
 * SL Locktober — front end (LOCKTOBER-SPEC.md decision 9).
 *
 * Colours come from the site's Elementor kit where it defines them, with the
 * kit's current values as fallbacks; the blush surfaces echo the site header.
 *
 * Specificity: Hello Elementor's reset styles every button as
 * `[type=button], button { transparent; 1px #c36 border }` and the kit colours
 * every link, both at one class/attribute. Rules here are written as
 * `.sl-lt .x` (two classes) so they win without !important.
 */

.sl-lt {
	--lt-primary: var(--e-global-color-primary, #6b0063);
	--lt-accent: var(--e-global-color-accent, #c01ba2);
	--lt-plum-deep: #4a0044;
	--lt-blush: #fdf0fa;
	--lt-blush-strong: #f8dcf1;
	--lt-text: #2e1b31;
	--lt-muted: #6b5a6e;
	--lt-grey: #efe9ee;
	--lt-grey-text: #857886;
	--lt-surface: #ffffff;
	--lt-line: #eadde7;
	--lt-radius: 1.1rem;
	--lt-shadow: 0 1px 2px rgba(74, 0, 68, 0.06), 0 6px 20px rgba(74, 0, 68, 0.06);
	--lt-font-ui: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--lt-font-body: 'Roboto', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

	max-width: 44rem;
	margin: 0 auto;
	padding-bottom: 2rem;
	color: var(--lt-text);
	font-family: var(--lt-font-body);
	font-size: 1rem;
	line-height: 1.55;
}

.sl-lt *,
.sl-lt *::before,
.sl-lt *::after {
	box-sizing: border-box;
}

/* Hello Elementor's reset gives every button display:inline-block, which beats
   the browser's own [hidden] rule; two classes' worth of specificity restores it. */
.sl-lt [hidden] {
	display: none;
}

.sl-lt :focus-visible {
	outline: 3px solid color-mix(in srgb, var(--lt-accent) 55%, transparent);
	outline-offset: 2px;
}

.sl-lt .sl-lt-muted {
	color: var(--lt-muted);
}

/* --- buttons (see specificity note above) ---------------------------------- */

.sl-lt .sl-lt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 2.9rem;
	padding: 0.7rem 1.6rem;
	border: 0;
	border-radius: 999px;
	background: var(--lt-accent);
	color: #fff;
	font-family: var(--lt-font-ui);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 4px 12px color-mix(in srgb, var(--lt-accent) 30%, transparent);
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sl-lt .sl-lt-btn:hover,
.sl-lt .sl-lt-btn:focus-visible {
	background: var(--lt-primary);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.sl-lt .sl-lt-btn:disabled {
	opacity: 0.55;
	cursor: wait;
	transform: none;
}

.sl-lt .sl-lt-btn--ghost {
	background: transparent;
	color: var(--lt-primary);
	box-shadow: inset 0 0 0 2px var(--lt-primary);
}

.sl-lt .sl-lt-btn--ghost:hover,
.sl-lt .sl-lt-btn--ghost:focus-visible {
	background: var(--lt-primary);
	color: #fff;
}

/* --- hero ------------------------------------------------------------------ */

.sl-lt-hero {
	text-align: center;
	padding: 1.8rem 1rem 1.6rem;
	margin: 0 0 1.5rem;
	border-radius: calc(var(--lt-radius) * 1.3);
	background:
		radial-gradient(120% 90% at 50% 0%, #fff 0%, transparent 70%),
		linear-gradient(180deg, var(--lt-blush) 0%, var(--lt-blush-strong) 100%);
}

.sl-lt .sl-lt-hero__kicker {
	margin: 0 0 0.3rem;
	font-family: var(--lt-font-ui);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lt-accent);
}

.sl-lt .sl-lt-hero__title {
	margin: 0;
	font-family: var(--lt-font-ui);
	font-size: clamp(2rem, 8vw, 3rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--lt-primary);
}

.sl-lt .sl-lt-hero__sub {
	max-width: 26rem;
	margin: 0.6rem auto 0;
	color: var(--lt-muted);
}

.sl-lt-hero--compact {
	padding: 0.9rem 1rem;
	margin-bottom: 1rem;
}

.sl-lt .sl-lt-hero--compact .sl-lt-hero__title {
	font-size: 1.4rem;
}

.sl-lt-stats {
	display: flex;
	justify-content: center;
	gap: 0.6rem;
	margin: 1.2rem 0 0;
	padding: 0;
	list-style: none;
}

.sl-lt-stats li {
	flex: 1 1 0;
	max-width: 8.5rem;
	margin: 0;
	padding: 0.6rem 0.4rem;
	border-radius: 0.9rem;
	background: rgba(255, 255, 255, 0.75);
	box-shadow: var(--lt-shadow);
}

.sl-lt-stats strong {
	display: block;
	font-family: var(--lt-font-ui);
	font-size: 1.5rem;
	line-height: 1.1;
	color: var(--lt-primary);
}

.sl-lt-stats span {
	display: block;
	font-size: 0.75rem;
	color: var(--lt-muted);
}

/* --- cards: rules, steps --------------------------------------------------- */

.sl-lt-rules,
.sl-lt-step {
	background: var(--lt-surface);
	border: 1px solid var(--lt-line);
	border-radius: var(--lt-radius);
	box-shadow: var(--lt-shadow);
	padding: 1.2rem 1.4rem;
	margin: 0 0 1rem;
}

.sl-lt .sl-lt-rules__title,
.sl-lt .sl-lt-cal__title,
.sl-lt .sl-lt-dayview__title {
	margin: 0 0 0.8rem;
	font-family: var(--lt-font-ui);
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--lt-primary);
}

.sl-lt-rules__body > :first-child {
	margin-top: 0;
}

.sl-lt-rules__body > :last-child {
	margin-bottom: 0;
}

.sl-lt-rules--joined {
	padding-top: 0.9rem;
	padding-bottom: 0.9rem;
}

.sl-lt-rules--joined summary {
	cursor: pointer;
	font-family: var(--lt-font-ui);
	font-weight: 700;
	color: var(--lt-primary);
}

.sl-lt-rules--joined[open] summary {
	margin-bottom: 0.8rem;
}

/* The rules inside "The Guidelines" box, before joining: a closed section. */
.sl-lt-gate-rules {
	margin: 1rem 0 0;
	padding: 0.75rem 1rem;
	border: 1px solid var(--lt-line);
	border-radius: 0.6rem;
}

.sl-lt-gate-rules summary {
	cursor: pointer;
	font-family: var(--lt-font-ui);
	font-weight: 700;
	color: var(--lt-primary);
}

.sl-lt-gate-rules[open] summary {
	margin-bottom: 0.8rem;
}

.sl-lt .sl-lt-notice {
	margin: 1rem 0;
	font-weight: 700;
	color: var(--lt-primary);
}

.sl-lt .sl-lt-error {
	margin: 0 0 0.8rem;
	padding: 0.6rem 0.9rem;
	border-radius: 0.6rem;
	background: #fdecef;
	color: #9b0030;
}

/* --- joining --------------------------------------------------------------- */

.sl-lt-join {
	margin-top: 1.2rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--lt-line);
}

.sl-lt-tz {
	margin: 0 0 1rem;
	padding: 1rem 1.1rem 0.3rem;
	border: 0;
	border-radius: 0.9rem;
	background: var(--lt-blush);
}

.sl-lt .sl-lt-tz__legend {
	float: left;
	width: 100%;
	margin: 0 0 0.3rem;
	padding: 0;
	font-family: var(--lt-font-ui);
	font-weight: 800;
	color: var(--lt-primary);
}

.sl-lt .sl-lt-tz__help,
.sl-lt .sl-lt-tz__guess {
	clear: both;
	margin: 0 0 0.9rem;
	font-size: 0.9rem;
	color: var(--lt-muted);
}

.sl-lt .sl-lt-tz__guess {
	color: var(--lt-primary);
	font-weight: 600;
}

.sl-lt-field {
	display: block;
	margin-bottom: 0.9rem;
}

.sl-lt-field > span {
	display: block;
	margin-bottom: 0.3rem;
	font-weight: 700;
}

.sl-lt .sl-lt-field select {
	width: 100%;
	max-width: 26rem;
	min-height: 2.8rem;
	padding: 0.5rem 0.7rem;
	border: 1px solid var(--lt-line);
	border-radius: 0.6rem;
	background: #fff;
	color: var(--lt-text);
	font: inherit;
}

.sl-lt .sl-lt-field select:disabled {
	background: var(--lt-grey);
	color: var(--lt-grey-text);
}

.sl-lt-check {
	display: flex;
	gap: 0.7rem;
	align-items: flex-start;
	margin: 0 0 1.1rem;
	cursor: pointer;
}

.sl-lt-check span {
	font-size: 0.95rem;
	line-height: 1.5;
}

.sl-lt-check input {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.15rem;
	accent-color: var(--lt-accent);
}

/* --- before / after October ----------------------------------------------- */

.sl-lt-season {
	margin: 0 0 1.25rem;
	padding: 1rem 1.3rem;
	border-radius: var(--lt-radius);
	background: var(--lt-blush);
	color: var(--lt-primary);
	font-weight: 700;
	text-align: center;
}

.sl-lt-season--closing {
	font-weight: 400;
	color: var(--lt-text);
}

.sl-lt-season--closing > :first-child {
	margin-top: 0;
}

.sl-lt-season--closing > :last-child {
	margin-bottom: 0;
}

/* --- calendar -------------------------------------------------------------- */

.sl-lt-cal {
	position: relative;
	padding: 1.2rem;
	border-radius: calc(var(--lt-radius) * 1.2);
	background: var(--lt-surface);
	border: 1px solid var(--lt-line);
	box-shadow: var(--lt-shadow);
}

.sl-lt .sl-lt-cal__title {
	text-align: center;
}

.sl-lt-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: clamp(0.25rem, 1.2vw, 0.5rem);
}

.sl-lt-cal__dow {
	padding-bottom: 0.2rem;
	text-align: center;
	font-family: var(--lt-font-ui);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lt-muted);
}

.sl-lt .sl-lt-day {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	padding: 0;
	border: 0;
	border-radius: clamp(0.5rem, 2vw, 0.8rem);
	background: var(--lt-grey);
	color: var(--lt-grey-text);
	font-family: var(--lt-font-ui);
	font-size: clamp(0.9rem, 3.6vw, 1.2rem);
	font-weight: 700;
	text-decoration: none;
}

.sl-lt-day__num {
	position: relative;
	z-index: 1;
}

/* A day's image (set per day in Days): faded behind the number and marks. */
.sl-lt .sl-lt-day.has-img::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--lt-cell-img) center / cover no-repeat;
	opacity: var(--lt-cell-opacity, 0.3);
	pointer-events: none;
}

.sl-lt .sl-lt-day.is-today.has-img .sl-lt-day__num,
.sl-lt .sl-lt-day.is-grace.has-img .sl-lt-day__num {
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.sl-lt-day__mark {
	z-index: 1;
	position: absolute;
	top: 0.25rem;
	right: 0.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.sl-lt-day__mark svg {
	display: block;
}

.sl-lt-day__mark--lock {
	opacity: 0.5;
}

/* Completed: the day belongs to the member now — plum tint and a badge. */
.sl-lt .sl-lt-day.is-done-yes,
.sl-lt .sl-lt-day.is-done-no {
	background: var(--lt-blush-strong);
	color: var(--lt-primary);
}

.sl-lt .sl-lt-day.is-done-yes .sl-lt-day__mark {
	width: 1.05rem;
	height: 1.05rem;
	border-radius: 50%;
	background: var(--lt-primary);
	color: #fff;
	font-size: 0.65rem;
}

.sl-lt .sl-lt-day.is-done-no .sl-lt-day__mark {
	width: 1.05rem;
	height: 1.05rem;
	border-radius: 50%;
	background: var(--lt-muted);
	color: #fff;
	font-size: 0.6rem;
}

/* Task accepted that day and reported done the next: a brand-colour ring. */
.sl-lt .sl-lt-day.is-task-done {
	box-shadow: inset 0 0 0 2.5px var(--lt-accent);
}

.sl-lt .sl-lt-day.is-today.is-task-done,
.sl-lt .sl-lt-day.is-grace.is-task-done {
	box-shadow: inset 0 0 0 2.5px #fff, 0 6px 16px color-mix(in srgb, var(--lt-accent) 40%, transparent);
}

/* Missed: a small neutral "Missed" label (readable over a picture) and the
   day's picture in black-and-white at reduced strength. */
.sl-lt .sl-lt-day.is-missed {
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--lt-grey);
	color: var(--lt-grey-text);
}

.sl-lt .sl-lt-day.is-missed.has-img::before {
	filter: grayscale(1);
	opacity: calc(var(--lt-cell-opacity, 0.3) * 0.6);
}

.sl-lt .sl-lt-day.is-missed .sl-lt-day__num {
	transform: translateY(-0.35em);
}

.sl-lt-day__missed {
	position: absolute;
	z-index: 1;
	left: 50%;
	bottom: 12%;
	transform: translateX(-50%);
	padding: 0.1em 0.45em;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.88);
	color: var(--lt-muted);
	font-family: var(--lt-font-ui);
	font-size: clamp(0.45rem, 1.9vw, 0.62rem);
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.3;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Before joining: the faintest cell of all, so it never reads as "missed". */
.sl-lt .sl-lt-day.is-not-joined {
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--lt-grey);
	color: color-mix(in srgb, var(--lt-grey-text) 45%, transparent);
	background-image: repeating-linear-gradient(-45deg, transparent 0 6px, color-mix(in srgb, var(--lt-grey) 70%, transparent) 6px 7px);
}

/* Today (and the unfinished day before 00:30): the only doors that open. */
.sl-lt .sl-lt-day.is-today,
.sl-lt .sl-lt-day.is-grace {
	z-index: 1;
	background: linear-gradient(145deg, var(--lt-accent), var(--lt-primary));
	color: #fff;
	cursor: pointer;
	box-shadow: 0 6px 16px color-mix(in srgb, var(--lt-accent) 40%, transparent);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sl-lt .sl-lt-day.is-today .sl-lt-day__mark,
.sl-lt .sl-lt-day.is-grace .sl-lt-day__mark {
	background: #fff;
	color: var(--lt-primary);
}

.sl-lt .sl-lt-day.is-grace {
	background: linear-gradient(145deg, var(--lt-primary), var(--lt-plum-deep));
}

.sl-lt .sl-lt-day.is-today:not(.is-done-yes):not(.is-done-no)::after {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: inherit;
	box-shadow: 0 0 0 2px var(--lt-accent);
	animation: sl-lt-pulse 2.2s ease-out infinite;
	pointer-events: none;
}

@keyframes sl-lt-pulse {
	0% { opacity: 0.9; transform: scale(0.96); }
	70%, 100% { opacity: 0; transform: scale(1.12); }
}

.sl-lt .sl-lt-day.is-today:hover,
.sl-lt .sl-lt-day.is-grace:hover,
.sl-lt .sl-lt-day.is-today:focus-visible,
.sl-lt .sl-lt-day.is-grace:focus-visible {
	color: #fff;
	transform: translateY(-2px) scale(1.04);
	box-shadow: 0 10px 22px color-mix(in srgb, var(--lt-accent) 45%, transparent);
}

/* Before joining the guidelines follow the calendar. */
.sl-lt-cal.is-blurred {
	margin-bottom: 1rem;
}

.sl-lt-cal.is-blurred .sl-lt-cal__grid {
	filter: blur(4px);
	opacity: 0.8;
	pointer-events: none;
	user-select: none;
}

.sl-lt .sl-lt-cal__lock {
	position: absolute;
	top: 55%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: max-content;
	max-width: calc(100% - 2rem);
	margin: 0;
	padding: 0.7rem 1.1rem;
	border-radius: 999px;
	background: var(--lt-surface);
	box-shadow: var(--lt-shadow);
	color: var(--lt-primary);
	font-family: var(--lt-font-ui);
	font-weight: 700;
	font-size: 0.9rem;
	text-align: center;
}

.sl-lt-cal__lock-icon svg {
	display: block;
	width: 1rem;
	height: 1rem;
}

.sl-lt-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem 1rem;
	margin: 1.1rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.8rem;
	color: var(--lt-muted);
}

.sl-lt-legend li {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
}

.sl-lt-legend__swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 0.3rem;
	background: var(--lt-grey);
	color: var(--lt-grey-text);
	font-size: 0.65rem;
}

.sl-lt-legend__swatch.is-today {
	background: linear-gradient(145deg, var(--lt-accent), var(--lt-primary));
}

.sl-lt-legend__swatch.is-done,
.sl-lt-legend__swatch.is-done-no {
	background: var(--lt-blush-strong);
	color: var(--lt-primary);
}

.sl-lt-legend__swatch.is-done-no {
	background: var(--lt-muted);
	color: #fff;
}

.sl-lt-legend__swatch.is-task-done {
	background: var(--lt-blush-strong);
	color: var(--lt-primary);
	box-shadow: inset 0 0 0 2px var(--lt-accent);
}

.sl-lt-legend__swatch.is-missed {
	position: relative;
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--lt-grey);
}

/* The legend's miniature of the "Missed" label: a small bar at the bottom. */
.sl-lt-legend__swatch.is-missed::after {
	content: '';
	position: absolute;
	left: 20%;
	right: 20%;
	bottom: 18%;
	height: 0.2rem;
	border-radius: 999px;
	background: var(--lt-grey-text);
}

.sl-lt-legend__swatch svg {
	width: 0.65rem;
	height: 0.65rem;
}

.sl-lt .sl-lt-cal__tz {
	margin: 0.6rem 0 0;
	text-align: center;
	font-size: 0.8rem;
	color: var(--lt-muted);
}

/* --- day view -------------------------------------------------------------- */

.sl-lt .sl-lt-back {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	margin: 0 0 0.8rem;
	color: var(--lt-primary);
	font-family: var(--lt-font-ui);
	font-weight: 700;
	text-decoration: none;
}

.sl-lt .sl-lt-back:hover {
	color: var(--lt-accent);
}

.sl-lt .sl-lt-dayview__kicker {
	margin: 0;
	font-family: var(--lt-font-ui);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lt-accent);
}

.sl-lt .sl-lt-dayview__title {
	margin-top: 0.1rem;
	font-size: 1.6rem;
}

.sl-lt .sl-lt-dayview__grace {
	margin: 0 0 1rem;
	padding: 0.7rem 1rem;
	border-radius: 0.8rem;
	background: var(--lt-blush);
	color: var(--lt-primary);
	font-weight: 600;
}

.sl-lt-step.is-answered {
	box-shadow: none;
	background: color-mix(in srgb, var(--lt-blush) 45%, #fff);
}

.sl-lt .sl-lt-step__q {
	margin: 0 0 0.7rem;
	font-family: var(--lt-font-ui);
	font-size: 1.1rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--lt-text);
}

.sl-lt-step.is-answered .sl-lt-step__q {
	margin-bottom: 0.3rem;
	font-size: 1rem;
	color: var(--lt-muted);
}

.sl-lt .sl-lt-step__context {
	margin: 0 0 0.9rem;
}

.sl-lt .sl-lt-step__answer {
	margin: 0;
	color: var(--lt-muted);
}

.sl-lt .sl-lt-step__answer strong {
	color: var(--lt-primary);
}

.sl-lt .sl-lt-step__kind {
	margin: 0.7rem 0 0;
	padding: 0.7rem 0.95rem;
	border-radius: 0.7rem;
	background: #fff;
	border: 1px solid var(--lt-line);
}

.sl-lt-yesno {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.sl-lt-yesno .sl-lt-btn {
	flex: 1 1 8rem;
	max-width: 12rem;
}

.sl-lt .sl-lt-journal__label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--lt-muted);
}

.sl-lt .sl-lt-journal textarea {
	display: block;
	width: 100%;
	min-height: 8rem;
	padding: 0.8rem 0.9rem;
	border: 1px solid var(--lt-line);
	border-radius: 0.8rem;
	background: #fff;
	color: var(--lt-text);
	font: inherit;
	resize: vertical;
}

.sl-lt .sl-lt-journal__note {
	margin: 0.5rem 0 0.9rem;
	font-size: 0.85rem;
	color: var(--lt-muted);
}

.sl-lt-journal__saved {
	padding: 0.8rem 1rem;
	border-left: 3px solid var(--lt-accent);
	border-radius: 0.4rem;
	background: #fff;
	font-style: italic;
}

.sl-lt-complete {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0 0 1rem;
	padding: 1.1rem 1.4rem;
	border-radius: var(--lt-radius);
	background: linear-gradient(135deg, var(--lt-blush), var(--lt-blush-strong));
}

.sl-lt-complete strong {
	font-family: var(--lt-font-ui);
	font-size: 1.1rem;
	color: var(--lt-primary);
}

.sl-lt .sl-lt-complete p {
	margin: 0.1rem 0 0;
	color: var(--lt-muted);
}

.sl-lt-complete__mark {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.8rem;
	height: 2.8rem;
	border-radius: 50%;
	background: var(--lt-primary);
	color: #fff;
	font-size: 1.4rem;
}

/* --- today's question ------------------------------------------------------ */

.sl-lt .sl-lt-step__label {
	margin: 0 0 0.2rem;
	font-family: var(--lt-font-ui);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--lt-accent);
}

.sl-lt .sl-lt-dayq textarea {
	display: block;
	width: 100%;
	min-height: 7rem;
	padding: 0.8rem 0.9rem;
	border: 1px solid var(--lt-line);
	border-radius: 0.8rem;
	background: #fff;
	color: var(--lt-text);
	font: inherit;
	resize: vertical;
}

.sl-lt .sl-lt-dayq.is-answered .sl-lt-step__q {
	color: var(--lt-text);
}

.sl-lt-form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1rem;
}

.sl-lt .sl-lt-link {
	padding: 0.3rem 0.2rem;
	border: 0;
	background: none;
	color: var(--lt-muted);
	font: inherit;
	font-size: 0.9rem;
	text-decoration: underline;
	cursor: pointer;
}

.sl-lt .sl-lt-link:hover,
.sl-lt .sl-lt-link:focus-visible {
	background: none;
	color: var(--lt-primary);
}

/* "Checked in" line between the check-ins and the rest of the day. */
.sl-lt .sl-lt-checked {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 1rem;
	padding: 0.6rem 1rem;
	border-radius: 0.8rem;
	background: var(--lt-blush);
	color: var(--lt-primary);
	font-weight: 600;
}

.sl-lt-checked__mark {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: var(--lt-primary);
	color: #fff;
	font-size: 0.8rem;
}

.sl-lt-checked.is-no .sl-lt-checked__mark {
	background: var(--lt-muted);
}

/* --- today's task ----------------------------------------------------------- */

.sl-lt .sl-lt-task__intro {
	margin: 0 0 1rem;
	text-align: center;
	color: var(--lt-muted);
}

/* The closed task, before it is revealed. */
.sl-lt-sealed {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 6.5rem;
	aspect-ratio: 3 / 4;
	margin: 0.2rem auto 1rem;
	border-radius: 0.9rem;
	background:
		repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 8px, transparent 8px 16px),
		linear-gradient(160deg, var(--lt-accent) 0%, var(--lt-primary) 60%, var(--lt-plum-deep) 100%);
	box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35), 0 10px 22px color-mix(in srgb, var(--lt-primary) 30%, transparent);
	transform: rotate(-3deg);
}

.sl-lt-sealed__q {
	font-family: var(--lt-font-ui);
	font-size: 2.6rem;
	font-weight: 800;
	color: #fff;
}

.sl-lt-task__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
}

.sl-lt .sl-lt-btn--reveal {
	min-width: 14rem;
	padding: 0.9rem 2rem;
	font-size: 1.05rem;
}

/* Task cards: small pink title, the text, optional image on the left. */
.sl-lt .sl-lt-cards {
	margin: 0 0 1.1rem;
	padding: 0;
	list-style: none;
	perspective: 800px;
}

.sl-lt .sl-lt-card {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	margin: 0 0 0.6rem;
	padding: 0.85rem 1rem;
	border-radius: 0.9rem;
	background: var(--lt-blush);
}

.sl-lt-card__img {
	flex: none;
	width: 3.6rem;
	height: 3.6rem;
	object-fit: contain;
	/* No background or rounding: transparent icons (PNG/WebP) sit straight on the card. */
	background: none;
}

.sl-lt-card__body {
	min-width: 0;
}

.sl-lt-card__title {
	display: block;
	font-family: var(--lt-font-ui);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lt-accent);
}

/* Admin-written formatted text (questions, task cards). */
.sl-lt .sl-lt-rich p {
	margin: 0 0 0.5em;
}

.sl-lt .sl-lt-rich > :last-child {
	margin-bottom: 0;
}

.sl-lt .sl-lt-rich ul {
	margin: 0.3em 0 0.5em;
	padding-left: 1.2em;
	list-style: disc;
}

.sl-lt .sl-lt-rich li {
	margin: 0 0 0.2em;
}

.sl-lt .sl-lt-dayq h3.sl-lt-step__label {
	margin: 0 0 0.2rem;
}

.sl-lt .sl-lt-card__text a,
.sl-lt .sl-lt-step__q a,
.sl-lt .sl-lt-entry__q a {
	color: var(--lt-primary);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sl-lt .sl-lt-card__text a:hover,
.sl-lt .sl-lt-step__q a:hover,
.sl-lt .sl-lt-entry__q a:hover {
	color: var(--lt-accent);
}

.sl-lt .sl-lt-card__text {
	margin: 0.1rem 0 0;
}

.sl-lt .sl-lt-cards--compact {
	margin-bottom: 0.9rem;
}

.sl-lt .sl-lt-cards--compact .sl-lt-card {
	padding: 0.6rem 0.8rem;
	background: #fff;
	border: 1px solid var(--lt-line);
}

.sl-lt-card.is-revealing {
	animation: sl-lt-flip 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) both;
	transform-origin: 50% 0;
	backface-visibility: hidden;
}

@keyframes sl-lt-flip {
	0% { opacity: 0; transform: rotateX(-80deg) translateY(-6px); }
	60% { opacity: 1; }
	100% { opacity: 1; transform: none; }
}

/* --- after October ------------------------------------------------------------ */

.sl-lt .sl-lt-hero--recap .sl-lt-hero__title {
	font-size: clamp(1.9rem, 7vw, 2.8rem);
}

.sl-lt .sl-lt-stats--four {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sl-lt .sl-lt-stats--four li {
	max-width: none;
}

.sl-lt .sl-lt-final .sl-lt-step__q {
	font-size: 1.15rem;
}

.sl-lt .sl-lt-lookback {
	margin-top: 1.25rem;
}

.sl-lt .sl-lt-lookback__title {
	margin: 0 0 0.3rem;
	font-family: var(--lt-font-ui);
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--lt-primary);
}

.sl-lt .sl-lt-entries {
	margin: 1rem 0;
	padding: 0;
	list-style: none;
}

.sl-lt .sl-lt-entry {
	margin: 0 0 0.7rem;
	padding: 0.85rem 1rem;
	border-radius: 0.9rem;
	background: var(--lt-blush);
}

.sl-lt .sl-lt-entry:focus {
	outline: 3px solid color-mix(in srgb, var(--lt-accent) 45%, transparent);
	outline-offset: 2px;
}

.sl-lt-entry__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.2rem 0.8rem;
	margin-bottom: 0.35rem;
}

.sl-lt-entry__date {
	font-family: var(--lt-font-ui);
	font-weight: 800;
	color: var(--lt-primary);
}

.sl-lt-entry__status {
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--lt-muted);
}

.sl-lt .sl-lt-entry__q,
.sl-lt .sl-lt-entry__label {
	margin: 0.4rem 0 0.15rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--lt-muted);
}

.sl-lt .sl-lt-entry__none {
	margin: 0;
	font-style: italic;
	color: var(--lt-muted);
}

.sl-lt-entry__answer {
	font-style: italic;
}

/* Long texts: 4 lines, then "Read more". */
.sl-lt-clamp {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	overflow: hidden;
	overflow-wrap: anywhere;
}

.sl-lt-clamp.is-open {
	display: block;
	-webkit-line-clamp: unset;
	line-clamp: none;
	overflow: visible;
}

.sl-lt .sl-lt-more {
	margin-top: 0.1rem;
	padding: 0.2rem 0;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--lt-primary);
}

.sl-lt .sl-lt-lookback__more {
	display: flex;
	margin: 0 auto;
}

.sl-lt .sl-lt-farewell {
	margin: 1.5rem 0 0;
	text-align: center;
	font-family: var(--lt-font-ui);
	font-weight: 700;
	color: var(--lt-primary);
}

@media (max-width: 480px) {
	.sl-lt .sl-lt-stats--four {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* --- end-of-October review ------------------------------------------------------ */

.sl-lt .sl-lt-review {
	margin-top: 1.25rem;
}

.sl-lt .sl-lt-review__title {
	margin: 0 0 0.3rem;
	font-family: var(--lt-font-ui);
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--lt-primary);
}

/* Hearts: radios in reverse order, laid out right-to-left, so "this one and
   everything before it" can be filled with the ~ combinator. */
.sl-lt .sl-lt-rate {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 0.25rem;
	margin: 0.6rem 0 0.9rem;
	padding: 0;
	border: 0;
}

.sl-lt .sl-lt-rate input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.sl-lt .sl-lt-rate label {
	display: flex;
	padding: 0.2rem;
	border-radius: 0.5rem;
	color: var(--lt-accent);
	cursor: pointer;
}

.sl-lt .sl-lt-rate label svg,
.sl-lt .sl-lt-heart svg {
	width: 2.1rem;
	height: 2.1rem;
}

.sl-lt .sl-lt-rate input:checked ~ label svg path,
.sl-lt .sl-lt-rate label:hover svg path,
.sl-lt .sl-lt-rate label:hover ~ label svg path,
.sl-lt .sl-lt-heart.is-on svg path {
	fill: currentColor;
}

.sl-lt .sl-lt-rate input:focus-visible + label {
	outline: 3px solid color-mix(in srgb, var(--lt-accent) 55%, transparent);
	outline-offset: 1px;
}

.sl-lt .sl-lt-review__hearts {
	display: flex;
	gap: 0.25rem;
	margin: 0.4rem 0 0.8rem;
	color: var(--lt-accent);
}

.sl-lt .sl-lt-review textarea {
	display: block;
	width: 100%;
	min-height: 6rem;
	margin-bottom: 0.9rem;
	padding: 0.8rem 0.9rem;
	border: 1px solid var(--lt-line);
	border-radius: 0.8rem;
	background: #fff;
	color: var(--lt-text);
	font: inherit;
	resize: vertical;
}

/* --- contributions -------------------------------------------------------------
 * Visible but quiet: a soft card after the calendar, never inside the day's steps.
 */

.sl-lt .sl-lt-support {
	margin: 1.25rem 0 0;
	padding: 1.1rem 1.3rem;
	border-radius: var(--lt-radius);
	background: linear-gradient(135deg, #fff 0%, var(--lt-blush) 100%);
	border: 1px solid var(--lt-line);
	text-align: center;
}

.sl-lt-support__head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	color: var(--lt-accent);
}

.sl-lt-support__icon svg {
	display: block;
}

.sl-lt .sl-lt-support__title {
	margin: 0;
	font-family: var(--lt-font-ui);
	font-size: 1rem;
	font-weight: 800;
	color: var(--lt-primary);
}

.sl-lt .sl-lt-support__text {
	max-width: 30rem;
	margin: 0.4rem auto 0.8rem;
	font-size: 0.95rem;
	color: var(--lt-muted);
}

.sl-lt-support__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.sl-lt .sl-lt-support__btn {
	min-height: 2.6rem;
	padding: 0.55rem 1.2rem;
	font-size: 0.9rem;
	box-shadow: inset 0 0 0 1.5px var(--lt-primary);
}

.sl-lt .sl-lt-support-line {
	margin: 0.5rem 0 0;
	font-size: 0.85rem;
	color: var(--lt-muted);
}

.sl-lt .sl-lt-support-line a {
	color: var(--lt-primary);
	font-weight: 600;
}

.sl-lt .sl-lt-thanks {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 0 0 1rem;
	padding: 0.8rem 1rem;
	border-radius: var(--lt-radius);
	background: var(--lt-blush);
	color: var(--lt-primary);
	font-weight: 700;
}

/* --- motion preferences ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.sl-lt .sl-lt-btn,
	.sl-lt .sl-lt-day.is-today,
	.sl-lt .sl-lt-day.is-grace {
		transition: none;
	}

	.sl-lt .sl-lt-btn:hover,
	.sl-lt .sl-lt-day.is-today:hover,
	.sl-lt .sl-lt-day.is-grace:hover {
		transform: none;
	}

	.sl-lt .sl-lt-day.is-today::after,
	.sl-lt-card.is-revealing {
		animation: none;
	}
}

/* --- phones ---------------------------------------------------------------- */

@media (max-width: 480px) {
	.sl-lt-rules,
	.sl-lt-step {
		padding: 1rem 1.05rem;
	}

	.sl-lt-cal {
		padding: 0.9rem 0.6rem;
	}

	.sl-lt-hero {
		padding: 1.4rem 0.8rem 1.2rem;
	}

	.sl-lt-day__mark {
		top: 0.15rem;
		right: 0.15rem;
	}

	.sl-lt .sl-lt-day.is-done-yes .sl-lt-day__mark,
	.sl-lt .sl-lt-day.is-done-no .sl-lt-day__mark {
		width: 0.9rem;
		height: 0.9rem;
		font-size: 0.5rem;
	}

	.sl-lt-day__mark--lock svg {
		width: 9px;
		height: 9px;
	}
}

/* --- admin test mode ------------------------------------------------------- */

.sl-lt-test {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	margin: 0 0 1.5rem;
	padding: 0.75rem 1rem;
	border: 2px dashed #d08a00;
	border-radius: 0.6rem;
	background: #fff8e6;
	font-size: 0.85rem;
}

.sl-lt-test__form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
}

.sl-lt .sl-lt-test button {
	padding: 0.3rem 0.8rem;
	border: 1px solid #b37700;
	border-radius: 0.4rem;
	background: #fff;
	color: #7a5100;
	font-size: 0.85rem;
}

.sl-lt .sl-lt-test button:hover {
	background: #b37700;
	color: #fff;
}

.sl-lt .sl-lt-test__reset {
	margin-left: auto;
}
