/* TaleRow Christmas header v1.1: cream paper, black ink sketches. */

.tr-xmas {
	--tr-ink: #1c1a17;
	--tr-paper: #f5eddb;
	box-sizing: border-box;
	position: relative;
	width: 100%;
	margin: 0 0 24px;
	padding: 18px 14px 14px;
	background: var(--tr-paper);
	color: var(--tr-ink);
	border-radius: 4px;
	font-family: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
	line-height: 1.3;
}
.tr-xmas *, .tr-xmas *::before, .tr-xmas *::after { box-sizing: border-box; }
.tr-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- the storybook animation ---------- */
.tr-xmas .tr-hero { margin: 0 auto; padding: 0; max-width: 1200px; background: none; border: 0; box-shadow: none; }
.tr-hero__media { position: relative; width: 100%; aspect-ratio: 1600 / 410; overflow: hidden; background: #233541; }
.tr-hero__vid { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.tr-stage__cap { margin: 0; padding: 12px 18px 14px; text-align: center; background: #233541; border-top: 2px solid #c6a36b; color: #f7edda; }
.tr-xmas .tr-stage__cap p { margin: 0; padding: 0; }
.tr-xmas .tr-cap__q { font-style: italic; font-size: clamp(16px, 2.2vw, 24px); line-height: 1.3; }
.tr-xmas .tr-cap__src { margin-top: 5px; font-size: clamp(10px, 1.1vw, 12px); letter-spacing: 0.14em; text-transform: uppercase; color: #c6a36b; }
@media (max-width: 700px) {
	/* phones: trim the sides so the picture is a comfortable height */
	.tr-hero__media { aspect-ratio: auto; height: 250px; }
	.tr-hero__vid { inset: auto; top: 0; height: 250px; width: 975px; max-width: none; left: calc((100% - 975px) * var(--x, 0.5)); }
	.tr-xmas .tr-cap__q { font-size: 17px; }
	.tr-xmas .tr-cap__src { font-size: 10.5px; }
	.tr-ctl { gap: 8px; }
	.tr-xmas .tr-dot { width: 32px; }
	.tr-xmas .tr-btn { padding: 7px 12px; }
}
.tr-ctl { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 10px 0 14px; }
.tr-dots { display: inline-flex; gap: 2px; }
.tr-xmas .tr-dot { position: relative; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none !important; box-shadow: none; cursor: pointer; }
.tr-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px solid var(--tr-ink); background: transparent; transition: background 0.3s; }
.tr-dot.is-on::before { background: var(--tr-ink); }
.tr-dot:focus-visible, .tr-btn:focus-visible, .tr-xmas .tr-ev__btn:focus-visible { outline: 3px solid #b98a2e; outline-offset: 2px; }
.tr-xmas .tr-btn { margin: 0; padding: 7px 16px; border: 1px solid var(--tr-ink); border-radius: 999px; background: transparent !important; box-shadow: none; color: var(--tr-ink) !important; font: 700 12px/1 "Cormorant Garamond", Georgia, serif; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.tr-xmas .tr-btn:hover { background: rgba(28, 26, 23, 0.08) !important; }

/* ---------- festival adverts: Market Harborough and Bedford ---------- */
.tr-events { max-width: 980px; margin: 0 auto; padding: 14px 16px 16px; border-top: 1px solid var(--tr-ink); text-align: center; }
.tr-xmas .tr-events p { margin: 0; padding: 0; }
.tr-xmas .tr-events__lead { margin-bottom: 12px; font-style: italic; font-size: 18px; color: #3a372f; }
.tr-events__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tr-ev { display: flex; flex-direction: column; align-items: center; padding: 8px 6px 4px; }
.tr-xmas .tr-ev__town { font-size: 17px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.tr-xmas .tr-ev__date { margin-top: 3px; font-size: 26px; font-weight: 600; letter-spacing: 0.04em; }
.tr-xmas .tr-ev__meta { margin: 4px 0 10px; font-size: 15px; line-height: 1.35; font-style: italic; color: #3a372f; }
.tr-xmas .tr-ev__btn { margin-top: auto; padding: 9px 20px; border-radius: 999px; background: var(--tr-ink); color: var(--tr-paper); font: 700 12px/1 "Cormorant Garamond", Georgia, serif; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.tr-xmas .tr-ev__btn:hover { background: #3a372f; }

@media (max-width: 900px) {
	.tr-xmas .tr-events__lead { font-size: 16px; margin-bottom: 8px; }
	.tr-events__grid { gap: 8px; }
	.tr-xmas .tr-ev__town { font-size: 14px; letter-spacing: 0.06em; }
	.tr-xmas .tr-ev__date { font-size: 21px; }
	.tr-xmas .tr-ev__meta { font-size: 13.5px; }
}
@media (max-width: 600px) {
	.tr-events__grid { grid-template-columns: 1fr; gap: 14px; }
	.tr-ev { padding-bottom: 10px; border-bottom: 1px solid rgba(28, 26, 23, 0.25); }
	.tr-ev:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.tr-xmas *, .tr-xmas *::before, .tr-xmas *::after { transition: none !important; animation: none !important; }
}

/* when it replaces the home page hero it sits at the top, full width of the content */
/* ---------- top of the home page: full width and bigger ---------- */
.tr-xmas.tr-xmas--top { max-width: none; width: 100%; margin: 0 0 28px; padding: 0 0 18px; border-radius: 0; }
.tr-xmas--top .tr-hero { max-width: none; }
@media (min-width: 701px) {
	.tr-xmas--top .tr-hero__media { aspect-ratio: 1600 / 430; max-height: 70vh; }
	.tr-xmas--top .tr-stage__cap { padding: 16px 24px 18px; }
	.tr-xmas.tr-xmas--top .tr-cap__q { font-size: clamp(20px, 2.1vw, 32px); }
	.tr-xmas.tr-xmas--top .tr-cap__src { font-size: clamp(11px, 1vw, 14px); }
	.tr-xmas--top .tr-ctl { margin: 16px 0 18px; }
	.tr-xmas--top .tr-events { max-width: 1100px; }
}

/* ---------- home page festival cards side by side (copy this block into Appearance > Customize > Additional CSS to keep it after Christmas) ---------- */
@media (min-width: 1100px) {
	.tr-section--tight > .tr-wrap:has(> .tr-eventcard) { max-width: 1400px; width: 94%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-rows: auto 1fr; column-gap: 1.25rem; row-gap: .5rem; align-items: stretch; }
	.tr-section--tight > .tr-wrap:has(> .tr-eventcard) > .tr-eyebrow { margin: 0 0 .25rem; align-self: end; }
	.tr-section--tight > .tr-wrap > .tr-eventcard { display: flex !important; flex-direction: column; margin: 0 !important; height: 100%; }
	.tr-section--tight > .tr-wrap > .tr-eventcard .tr-eventcard__date { width: auto !important; flex: 0 0 auto; display: flex; flex-direction: row; align-items: baseline; justify-content: center; gap: .5rem; padding: .9rem 1rem !important; }
	.tr-section--tight > .tr-wrap > .tr-eventcard .tr-eventcard__body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 1.1rem 1.25rem 1.4rem !important; }
	.tr-section--tight > .tr-wrap > .tr-eventcard .tr-eventcard__body > :last-child { margin-top: auto; align-self: flex-start; }
	.tr-section--tight > .tr-wrap > .tr-eventcard h2 { font-size: 1.6rem; }
}
