/*
 * TrailFed holiday looks (inc/holidays.php). Loaded only while a look is on, and every rule is
 * scoped to body.tf-hol, so with the look Off nothing here applies.
 * Never changes: recipe pages' content, the Crew Recipe chip, peanut badges.
 */

/* ---------- Colour tokens ---------- */
body.tf-hol-thanksgiving {
	--h-bar: #7A3418; --h-bar-ink: #FAF1E4; --h-btn: #B5532A; --h-btn-hover: #963F1C; --h-sale: #C2622A;
	--h-tint: rgba(194, 98, 42, .40); --h-eyebrow: #F0B260;
	--h-trim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='5'%3E%3Crect width='22' height='5' fill='%237A3418'/%3E%3Cpath d='M4 2.5c2-2 4-2 6 0-2 2-4 2-6 0z' fill='%23E8A04A'/%3E%3Cpath d='M15 2.5c1.5-1.6 3-1.6 4.5 0-1.5 1.6-3 1.6-4.5 0z' fill='%23C2622A'/%3E%3C/svg%3E");
}
body.tf-hol-christmas {
	--h-bar: #1F3B2C; --h-bar-ink: #F4EFE4; --h-btn: #A3262A; --h-btn-hover: #841C20; --h-sale: #A3262A;
	--h-tint: rgba(31, 59, 44, .40); --h-eyebrow: #E9C46A;
	--h-trim: repeating-linear-gradient(135deg, #A3262A 0 7px, #FAF7F0 7px 14px);
}
body.tf-hol-easter {
	--h-bar: #5C6B51; --h-bar-ink: #FBF7EC; --h-btn: #A8654B; --h-btn-hover: #8C513B; --h-sale: #A8654B;
	--h-tint: rgba(150, 170, 130, .36); --h-eyebrow: #EAD898;
	--h-trim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='5'%3E%3Crect width='24' height='5' fill='%23C9D3BC'/%3E%3Cellipse cx='5' cy='2.5' rx='2' ry='2.4' fill='%23E7D08A'/%3E%3Cellipse cx='13' cy='2.5' rx='2' ry='2.4' fill='%23C98E74'/%3E%3Cellipse cx='20' cy='2.5' rx='2' ry='2.4' fill='%237F9070'/%3E%3C/svg%3E");
}
body.tf-hol-memorial {
	--h-bar: #1E2B44; --h-bar-ink: #EEF0F4; --h-btn: #24324F; --h-btn-hover: #1A2540; --h-sale: #24324F;
	--h-tint: rgba(30, 43, 68, .36); --h-eyebrow: #D7DCE6;
	--h-trim: linear-gradient(#1E2B44 0 40%, #B3312C 40% 60%, #1E2B44 60%);
}
body.tf-hol-july4 {
	--h-bar: #1B2A52; --h-bar-ink: #FFFFFF; --h-btn: #B22234; --h-btn-hover: #8E1A29; --h-sale: #B22234;
	--h-tint: rgba(27, 42, 82, .40); --h-eyebrow: #F2C14E;
	--h-trim: repeating-linear-gradient(90deg, #B22234 0 14px, #FFFFFF 14px 28px, #1B2A52 28px 42px, #FFFFFF 42px 56px);
}
body.tf-hol-veterans {
	--h-bar: #1E2B44; --h-bar-ink: #EEF0F4; --h-btn: var(--rust); --h-btn-hover: var(--rust-dark); --h-sale: var(--rust);
	--h-tint: rgba(30, 43, 68, .36); --h-eyebrow: #E6D3A3;
	--h-trim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='5'%3E%3Crect width='20' height='5' fill='%231E2B44'/%3E%3Cpath d='M10 .3l.6 1.4 1.5.1-1.1 1 .3 1.5L10 3.5l-1.3.8.3-1.5-1.1-1 1.5-.1z' fill='%23fff'/%3E%3C/svg%3E");
}

/* ---------- Top bar ---------- */
body.tf-hol-bar .tf-topbar { background: var(--h-bar); color: var(--h-bar-ink); }
body.tf-hol-bar .tf-topbar-links a { color: var(--h-bar-ink); }
body.tf-hol-bar .tf-topbar-links a:hover { background: rgba(255, 255, 255, .12); }
body.tf-hol-bar .tf-topbar-links .tf-topbar-cta { color: var(--ink); }
body.tf-hol-bar .tf-topbar-msg { display: flex; align-items: center; gap: 8px; }
body.tf-hol-bar .tf-topbar-msg a { color: var(--h-bar-ink); text-decoration: underline; text-underline-offset: 2px; }
.tf-hol-ic { display: inline-flex; flex: none; width: 16px; height: 16px; }
.tf-hol-ic svg { width: 100%; height: 100%; display: block; }
@media (max-width: 700px) {
	/* The normal bar hides its message on phones; the holiday line shows, on its own row, without the Join link. */
	body.tf-hol-bar .tf-topbar-inner { flex-wrap: wrap; justify-content: center; gap: 0 12px; }
	body.tf-hol-bar .tf-topbar-msg { display: flex; justify-content: center; width: 100%; padding: 7px 0 0; font-size: 12.5px; text-align: center; }
	body.tf-hol-bar .tf-hol-join { display: none; }
	body.tf-hol-bar .tf-topbar-links { width: 100%; justify-content: flex-end; padding-bottom: 4px; }
}

/* ---------- Trim under the header ---------- */
.tf-hol-trim { height: 5px; background-image: var(--h-trim); background-size: auto 100%; background-repeat: repeat-x; }
body.tf-hol .tf-header { border-bottom: 0; }

/* ---------- Hero ---------- */
.tf-hol-tint { position: absolute; inset: 0; background: var(--h-tint); opacity: var(--tf-hol-shade, .45); pointer-events: none; }
body.tf-hol .tf-hero .tf-eyebrow { color: var(--h-eyebrow); }

/* ---------- Section-heading icons (homepage sections and page titles only) ---------- */
body.tf-hol.home .tf-h2::after,
body.tf-hol .tf-page-title::after,
body.tf-hol .tf-archive-title::after {
	content: ""; display: inline-block; width: .6em; height: .6em; margin-left: .32em; vertical-align: .02em;
	background: var(--h-icon) center / contain no-repeat;
}

/* ---------- Buttons and the shop's Sale! badge ---------- */
body.tf-hol-color .tf-btn-rust,
body.tf-hol-color .tfc-submit button[type="submit"],
body.tf-hol-color .comment-form .submit,
body.tf-hol-color .tf-hero-search button,
body.tf-hol-color .tfc-pop .tfc-signup button { background: var(--h-btn); border-color: var(--h-btn); color: #fff; }
body.tf-hol-color .tf-btn-rust:hover,
body.tf-hol-color .tfc-submit button[type="submit"]:hover,
body.tf-hol-color .comment-form .submit:hover,
body.tf-hol-color .tf-hero-search button:hover,
body.tf-hol-color .tfc-pop .tfc-signup button:hover { background: var(--h-btn-hover); border-color: var(--h-btn-hover); color: #fff; }
body.tf-hol-color .tf-woo .single_add_to_cart_button,
body.tf-hol-color.woocommerce .button.alt,
body.tf-hol-color .woocommerce .button.alt,
body.tf-hol-color .wc-block-components-button:not(.is-link) { background: var(--h-btn) !important; }
body.tf-hol-color .tf-woo .single_add_to_cart_button:hover,
body.tf-hol-color .woocommerce .button.alt:hover { background: var(--h-btn-hover) !important; }
body.tf-hol-color span.onsale,
body.tf-hol-color .woocommerce span.onsale,
body.tf-hol-color .wc-block-components-product-sale-badge { background: var(--h-sale) !important; color: #fff !important; border-color: var(--h-sale) !important; }

/* ---------- Footer sign-off keeps the gold bar ---------- */
.tf-madeby-hol p { letter-spacing: .1em; }

@media print {
	.tf-hol-trim, .tf-hol-tint { display: none; }
}
