/* TDF Campaigns — hero, announcement, purchase options */

.tdf-hero,
.tdf-announce,
.tdf-campaign-products,
.tdf-buy-elsewhere,
.tdf-format {
	--tdf-bg: #0e1a33;          /* deep navy */
	--tdf-ink: #fbf8f1;         /* ivory */
	--tdf-accent: #c9a44c;      /* restrained gold */
	--tdf-accent-ink: #0e1a33;
	--tdf-shade: linear-gradient(90deg, rgba(10, 18, 36, .82) 0%, rgba(10, 18, 36, .55) 45%, rgba(10, 18, 36, .05) 100%);
	--tdf-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
	--tdf-sans: inherit;
}

.tdf-theme-ivory      { --tdf-bg: #f6f1e6; --tdf-ink: #0e1a33; --tdf-accent: #0e1a33; --tdf-accent-ink: #fbf8f1; --tdf-shade: linear-gradient(90deg, rgba(251, 248, 241, .92) 0%, rgba(251, 248, 241, .6) 50%, rgba(251, 248, 241, 0) 100%); }
.tdf-theme-black-gold { --tdf-bg: #0a0a0a; --tdf-accent: #d4af37; --tdf-accent-ink: #0a0a0a; --tdf-shade: linear-gradient(90deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .5) 50%, rgba(0, 0, 0, .1) 100%); }
.tdf-theme-christmas  { --tdf-bg: #10291f; --tdf-accent: #c9a44c; --tdf-accent-ink: #10291f; --tdf-shade: linear-gradient(90deg, rgba(12, 32, 24, .85) 0%, rgba(12, 32, 24, .5) 50%, rgba(90, 16, 20, .1) 100%); }
.tdf-theme-hanukkah   { --tdf-bg: #0f2a5c; --tdf-accent: #dfe6ee; --tdf-accent-ink: #0f2a5c; --tdf-shade: linear-gradient(90deg, rgba(12, 34, 78, .85) 0%, rgba(12, 34, 78, .5) 50%, rgba(12, 34, 78, .05) 100%); }
.tdf-theme-newyear    { --tdf-bg: #111827; --tdf-accent: #e6cf9a; --tdf-accent-ink: #111827; }
.tdf-theme-easter     { --tdf-bg: #f4f1e8; --tdf-ink: #23322a; --tdf-accent: #8a9a78; --tdf-accent-ink: #fbf8f1; --tdf-shade: linear-gradient(90deg, rgba(248, 245, 236, .92) 0%, rgba(248, 245, 236, .6) 50%, rgba(248, 245, 236, 0) 100%); }
.tdf-theme-valentine  { --tdf-bg: #3a0f1d; --tdf-accent: #d9b26a; --tdf-accent-ink: #3a0f1d; --tdf-shade: linear-gradient(90deg, rgba(58, 15, 29, .85) 0%, rgba(58, 15, 29, .5) 50%, rgba(58, 15, 29, .05) 100%); }

/* ---------- Hero ---------- */

.tdf-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: clamp(560px, 88vh, 920px);
	padding: clamp(96px, 12vh, 140px) clamp(20px, 6vw, 96px) clamp(56px, 8vh, 96px);
	overflow: hidden;
	background: var(--tdf-bg) radial-gradient(120% 90% at 80% 20%, rgba(201, 164, 76, .14), transparent 60%);
	color: var(--tdf-ink);
}

.tdf-hero__media,
.tdf-hero__shade { position: absolute; inset: 0; z-index: -1; }

.tdf-hero__media picture,
.tdf-hero__poster,
.tdf-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tdf-hero__video { opacity: 0; transition: opacity .9s ease; }
.tdf-hero.has-video .tdf-hero__video { opacity: 1; }

.tdf-hero__shade { background: var(--tdf-shade); }

.tdf-hero__content { position: relative; max-width: 640px; }

.tdf-hero__offer {
	display: inline-block;
	margin: 0 0 18px;
	padding: 6px 14px;
	border: 1px solid var(--tdf-accent);
	border-radius: 999px;
	font-size: 13px;
	letter-spacing: .04em;
	color: var(--tdf-accent);
}

.tdf-hero__eyebrow {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--tdf-accent);
}

.tdf-hero__title {
	margin: 0 0 18px;
	font-family: var(--tdf-serif);
	font-weight: 500;
	font-size: clamp(40px, 6vw, 76px);
	line-height: 1.04;
	letter-spacing: -.01em;
	color: inherit;
	text-wrap: balance;
}

.tdf-hero__text {
	margin: 0 0 32px;
	max-width: 52ch;
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.6;
	opacity: .9;
}

.tdf-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.tdf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 26px;
	border-radius: 2px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .02em;
	text-decoration: none !important;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.tdf-btn--primary { background: var(--tdf-accent); color: var(--tdf-accent-ink) !important; border: 1px solid var(--tdf-accent); }
.tdf-btn--primary:hover { filter: brightness(1.06); }
.tdf-btn--secondary { background: transparent; color: var(--tdf-ink) !important; border: 1px solid currentColor; }
.tdf-btn--secondary:hover { background: var(--tdf-ink); color: var(--tdf-bg) !important; border-color: var(--tdf-ink); }
.tdf-btn:focus-visible,
.tdf-hero__toggle:focus-visible { outline: 2px solid var(--tdf-accent); outline-offset: 3px; }

.tdf-hero__toggle {
	position: absolute;
	right: clamp(16px, 3vw, 32px);
	bottom: clamp(16px, 3vw, 32px);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 50%;
	background: rgba(0, 0, 0, .35);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(6px);
}
.tdf-hero__toggle svg { fill: currentColor; }
.tdf-hero__toggle .tdf-i-pause { display: none; }
.tdf-hero.is-playing .tdf-hero__toggle .tdf-i-pause { display: block; }
.tdf-hero.is-playing .tdf-hero__toggle .tdf-i-play { display: none; }

@media (max-width: 767px) {
	.tdf-hero {
		align-items: flex-end;
		min-height: min(92svh, 760px);
		padding: 96px 20px 88px;
	}
	.tdf-hero__shade { background: linear-gradient(0deg, var(--tdf-bg) 0%, rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, .05) 100%); }
	.tdf-theme-ivory .tdf-hero__shade,
	.tdf-theme-easter .tdf-hero__shade { background: linear-gradient(0deg, var(--tdf-bg) 5%, rgba(255, 255, 255, .55) 60%, rgba(255, 255, 255, 0) 100%); }
	.tdf-hero__actions { flex-direction: column; }
	.tdf-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.tdf-hero__video { transition: none; }
}

/* ---------- Announcement bar ---------- */

.tdf-announce {
	position: relative;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--tdf-bg);
	color: var(--tdf-ink);
	font-size: 14px;
	letter-spacing: .02em;
	text-align: center;
}
.tdf-announce a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--tdf-accent); }

/* ---------- Campaign products ---------- */

.tdf-campaign-products { margin: 0 auto; }
.tdf-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.tdf-section-head h2 { margin: 0; font-family: var(--tdf-serif); font-weight: 500; }
.tdf-link { font-weight: 600; text-underline-offset: 4px; }

/* ---------- Product page ---------- */

.tdf-format {
	display: inline-block;
	margin: 0 0 14px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .03em;
}
.tdf-format--digital  { background: #eef2fb; color: #0e1a33; }
.tdf-format--physical { background: #f6efdc; color: #5a4413; }

.tdf-buy-elsewhere { margin: 20px 0 24px; padding-top: 18px; border-top: 1px solid rgba(14, 26, 51, .12); }
.tdf-buy-elsewhere__label { margin: 0 0 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.tdf-buy-elsewhere__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.tdf-btn--store { background: transparent; color: #0e1a33 !important; border: 1px solid #0e1a33; }
.tdf-btn--store:hover { background: #0e1a33; color: #fbf8f1 !important; }

.tdf-amazon-stores { margin-top: 12px; font-size: 13px; }
.tdf-amazon-stores summary { cursor: pointer; opacity: .75; }
.tdf-amazon-stores p { margin: 8px 0 0; line-height: 1.9; }
