/**
 * Twentymans Funeral Stream Tributes - front-end styles
 * Version: 1.0.6
 *
 * Restyled to match the client-supplied slider design: burgundy palette, italic serif
 * name heading, cream funeral-details box, and full-width primary button with a
 * two-column outlined button row beneath it.
 *
 * Uses CSS custom properties with sensible fallbacks so colours/fonts can be overridden
 * from Enfold's Quick CSS (Enfold > General Styling > Quick CSS) without touching this
 * file, e.g.:  :root { --tfs-accent: #7a2333; }
 */

.tfs-slider,
.tfs-recent-list {
	--tfs-accent: #7a2333;        /* deep burgundy, per supplied design */
	--tfs-accent-bg: #fbf7ee;     /* cream background for the funeral-details box */
	--tfs-gold: #edae44;          /* CONFIGURE / VERIFY: taken from the site's registered theme palette ("maximum-yellow-red") as the closest match to the gold in the low-res design image - override from Quick CSS if the client wants a different shade */
	--tfs-text-muted: #5c5c5c;
	--tfs-border: #e6ddd0;
	--tfs-card-bg: #ffffff;
	--tfs-name-font: Georgia, 'Times New Roman', serif; /* swap for a licensed display serif (e.g. Playfair Display) if you add a webfont */
	font-family: inherit; /* inherit Enfold's body font for everything except the name heading */
}

.tfs-empty {
	color: var(--tfs-text-muted);
	font-style: italic;
}

.tfs-error {
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--tfs-accent);
	background: #f8fafc;
}

.tfs-error-detail {
	font-size: 0.8rem;
	color: var(--tfs-text-muted);
}

.tfs-icon {
	display: inline-flex;
	vertical-align: middle;
	margin-right: 0.3rem;
}

/* ---------- Buttons (shared) ---------- */

.tfs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1rem;
	border-radius: 2px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
}

.tfs-slider .tfs-slider__track .tfs-slider__card .tfs-slider__actions .tfs-btn--primary,
.tfs-btn--primary {
	background: var(--tfs-accent);
	color: #fff;
	width: 100%;
	margin-bottom: 0.6rem;
}

.tfs-btn--primary:hover {
	background: color-mix(in srgb, var(--tfs-accent) 85%, black);
	color: #fff;
}

.tfs-btn--outline {
	background: #fff;
	color: var(--tfs-accent);
	border: 1.5px solid var(--tfs-gold); /* gold outline per supplied design (was burgundy) */
	flex: 1 1 0;
	font-weight: 500;
}

.tfs-btn--outline:hover {
	background: var(--tfs-accent-bg);
	color: var(--tfs-accent);
}

/* ---------- Slider ---------- */

.tfs-slider {
	position: relative;
	overflow: hidden;
}

.tfs-slider__track {
	display: flex;
	gap: 1.5rem;
	transition: transform 0.3s ease;
}

.tfs-slider__card {
	flex: 0 0 calc((100% - 3rem) / 3); /* 3 cards per view, matching the two 1.5rem gaps */
	background: var(--tfs-card-bg);
	display: flex;
	flex-direction: column;
}

@media (max-width: 900px) {
	.tfs-slider__card {
		flex-basis: calc((100% - 1.5rem) / 2); /* 2 cards per view on tablet */
	}
}

@media (max-width: 600px) {
	.tfs-slider__card {
		flex-basis: 100%; /* 1 card per view on mobile */
	}
}

.tfs-slider__photo {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin-bottom: 1rem;
}

.tfs-slider__name {
	margin: 0 0 0.3rem;
	font-family: var(--tfs-name-font);
	font-style: italic;
	font-weight: 700;
	font-size: 1.4rem;
	color: var(--tfs-accent);
}
#top h3.tfs-slider__name {
	font-size: 24px;
	color: #7a2333 !important;
}

.tfs-slider__dates {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	color: var(--tfs-text-muted);
}

.tfs-slider__notice {
	font-family: 'aktiv-grotesk', Verdana, sans-serif; /* matches the theme's body copy - set explicitly rather than relying on inherit */
	font-style: normal;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 1rem;
	color: #222;
}

.tfs-slider__event-box {
	background: var(--tfs-accent-bg);
	border: none;
	border-left: 6px solid var(--tfs-gold); /* thick gold bar on the left, per supplied design - no other borders */
	padding: 0.75rem 1rem;
	margin-bottom: 1.25rem;
	font-size: 0.85rem;
}

.tfs-slider__event-row {
	margin: 0.2rem 0;
	color: #333;
}

.tfs-slider__event-row strong {
	color: var(--tfs-accent);
	font-weight: 700;
}

.tfs-slider__actions {
	margin-top: auto;
}

.tfs-slider__actions-row {
	display: flex;
	gap: 0.6rem;
}

.tfs-slider__controls {
	display: flex;
	justify-content: space-between;
	margin-top: 1.5rem;
}

.tfs-slider__prev,
.tfs-slider__next {
	background: transparent;
	border: none;
	padding: 0.5rem 0;
	cursor: pointer;
	color: var(--tfs-accent);
	font-weight: 600;
}

.tfs-slider__prev:disabled,
.tfs-slider__next:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* ---------- Recent list (Death Listing style) ---------- */

.tfs-recent-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tfs-recent-list__item {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--tfs-border);
}

.tfs-recent-list__item:last-child {
	border-bottom: none;
}

.tfs-recent-list__name {
	font-family: var(--tfs-name-font);
	font-style: italic;
	font-weight: 700;
	color: var(--tfs-accent);
	text-decoration: none;
}

.tfs-recent-list__date {
	font-size: 0.85rem;
	color: var(--tfs-text-muted);
	white-space: nowrap;
}
