/* Trailview Home Feature — front-end styles. Colours from the Trailview design guide. */

/* The Elementor section holding the widget has the CSS class "tvhf-slot".
   When the feature is off, the widget prints nothing; hide the empty section
   too, so the page is exactly as it was (Elementor columns are 1px tall even
   when empty). */
.tvhf-slot:not(:has(.tvhf, .tvhf-note)) { display: none !important; }

.tvhf {
	--tvhf-maroon: #660011;
	--tvhf-maroon-deep: #3D0009;
	--tvhf-gold: #F5B746;
	--tvhf-ink: #2B2523;
	--tvhf-ink-muted: #6B6563;
	--tvhf-link: #1F5FCC;
	--tvhf-linen: #F0EFEC;
	--tvhf-pad: 64px;
	box-sizing: border-box;
	width: 100%;
	padding: var(--tvhf-pad) 32px;
	font-family: Montserrat, Arial, sans-serif;
	color: var(--tvhf-ink);
}
.tvhf *,
.tvhf *::before,
.tvhf *::after { box-sizing: border-box; }

.tvhf--bg-surface { background: #FFFFFF; }
.tvhf--bg-linen { background: var(--tvhf-linen); }
.tvhf--bg-none { background: transparent; }

.tvhf .tvhf__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	gap: 48px;
	align-items: center;
}

/* Picture beside the text */
.tvhf--left .tvhf__inner,
.tvhf--right .tvhf__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tvhf--right .tvhf__media { order: 2; }

/* Picture above the text */
.tvhf--above .tvhf__inner { max-width: 960px; gap: 32px; }
.tvhf--above .tvhf__body { max-width: 720px; }

/* No picture: one reading column */
.tvhf--text .tvhf__inner { max-width: 720px; }

.tvhf .tvhf__media { margin: 0; }
.tvhf .tvhf__img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(43, 37, 35, 0.12);
}

.tvhf .tvhf__body { min-width: 0; }

.tvhf .tvhf__eyebrow {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tvhf-maroon);
}
.tvhf .tvhf__eyebrow::before {
	content: "";
	display: block;
	width: 48px;
	height: 4px;
	margin-bottom: 16px;
	border-radius: 2px;
	background: var(--tvhf-gold);
}

.tvhf .tvhf__heading {
	margin: 0 0 12px;
	font-family: Montserrat, Arial, sans-serif;
	font-size: 34px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--tvhf-ink);
	overflow-wrap: anywhere;
}

.tvhf .tvhf__when {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--tvhf-maroon);
}

.tvhf .tvhf__text {
	font-size: 18px;
	line-height: 1.6;
	color: var(--tvhf-ink);
}
.tvhf .tvhf__text > :first-child { margin-top: 0; }
.tvhf .tvhf__text > :last-child { margin-bottom: 0; }
.tvhf .tvhf__text p,
.tvhf .tvhf__text ul,
.tvhf .tvhf__text ol { margin: 0 0 16px; }
.tvhf .tvhf__text ul,
.tvhf .tvhf__text ol { padding-left: 24px; }
.tvhf .tvhf__text a { color: var(--tvhf-link); text-decoration: underline; }
.tvhf .tvhf__text a:hover { color: var(--tvhf-maroon); }

.tvhf .tvhf__actions { margin: 24px 0 0; }
.tvhf .tvhf__button,
.tvhf .tvhf__button:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 14px 24px;
	border: 0;
	border-radius: 8px;
	background: var(--tvhf-maroon);
	color: #FFFFFF;
	font-family: Montserrat, Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	transition: background-color 0.15s ease;
}
.tvhf .tvhf__button:hover,
.tvhf .tvhf__button:focus { background: var(--tvhf-maroon-deep); color: #FFFFFF; text-decoration: none; }
.tvhf a:focus-visible {
	outline: 3px solid var(--tvhf-link);
	outline-offset: 2px;
}

.tvhf .tvhf-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Staff-only preview note and faded preview */
.tvhf-note {
	box-sizing: border-box;
	margin: 0;
	padding: 12px 16px;
	border: 2px dashed #660011;
	background: #FFF8E8;
	color: #2B2523;
	font-family: Montserrat, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
}
.tvhf-note .tvhf-note__link { color: #1F5FCC; text-decoration: underline; }
.tvhf-note .tvhf-note__hint { color: #6B6563; }
.tvhf--faded { opacity: 0.55; }

/* Tablets */
@media (max-width: 1024px) {
	.tvhf .tvhf__inner { gap: 32px; }
	.tvhf .tvhf__heading { font-size: 30px; }
}

/* Phones: picture always above the text */
@media (max-width: 767px) {
	.tvhf { --tvhf-pad: 48px; padding-left: 16px; padding-right: 16px; }
	.tvhf--left .tvhf__inner,
	.tvhf--right .tvhf__inner { grid-template-columns: minmax(0, 1fr); }
	.tvhf--right .tvhf__media { order: 0; }
	.tvhf .tvhf__inner { gap: 24px; }
	.tvhf .tvhf__heading { font-size: 28px; }
	.tvhf .tvhf__button { width: 100%; }
}
