/*
 * Honey Chronicles — Entrance Tightening v1.5.7
 * Strong final overrides, loaded after the museum stylesheet.
 */

/* =========================================================
   Entrance room teasers
   ========================================================= */

body.hc-room-entrance .hc-public-briefing,
body.home .hc-public-briefing {
	gap: 8px !important;
	padding-top: 0 !important;
	padding-bottom: 4px !important;
}

body.hc-room-entrance .hc-brief-card,
body.home .hc-brief-card {
	--hc-room-accent: var(--hc-honey-gold);
	position: relative;
	min-height: 84px !important;
	padding: 11px 14px 10px 16px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background:
		linear-gradient(135deg,
			color-mix(in srgb, var(--hc-room-accent) 9%, #fffdf7),
			rgba(255,253,247,.96)) !important;
	box-shadow: 0 6px 15px rgba(36,28,22,.06) !important;
	overflow: hidden;
}

body.hc-room-entrance .hc-brief-card::after,
body.home .hc-brief-card::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 4px;
	background: var(--hc-room-accent);
	opacity: .9;
}

body.hc-room-entrance .hc-brief-kicker,
body.home .hc-brief-kicker {
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: .5rem !important;
}

body.hc-room-entrance .hc-brief-room,
body.home .hc-brief-room {
	font-size: .66rem !important;
	margin: 0 !important;
}

body.hc-room-entrance .hc-brief-card strong,
body.home .hc-brief-card strong {
	margin: 1px 0 0 !important;
	font-size: clamp(.95rem, 1.15vw, 1.13rem) !important;
	line-height: 1.02 !important;
}

body.hc-room-entrance .hc-brief-card span:not(.hc-brief-kicker):not(.hc-brief-room),
body.home .hc-brief-card span:not(.hc-brief-kicker):not(.hc-brief-room) {
	font-size: .66rem !important;
	line-height: 1.2 !important;
}

body.hc-room-entrance .hc-brief-card em,
body.home .hc-brief-card em {
	min-width: 0 !important;
	min-height: 0 !important;
	margin-top: 3px !important;
	padding: 0 !important;
	background: none !important;
	font-size: .52rem !important;
}

/* Tighten the transition between teaser rail and exhibit. */
body.hc-room-entrance .hc-public-header::after,
body.home .hc-public-header::after {
	height: 13px !important;
	margin-top: 0 !important;
	transform: translateY(3px) !important;
}

body.hc-room-entrance .hc-main,
body.home .hc-main {
	padding-top: 5px !important;
}

/* =========================================================
   Featured entrance — remove duplicated labels
   ========================================================= */

body.hc-room-entrance .hc-featured-exhibit .hc-room-label,
body.home .hc-featured-exhibit .hc-room-label {
	display: none !important;
}

body.hc-room-entrance .hc-featured-exhibit__eyebrow,
body.home .hc-featured-exhibit__eyebrow {
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 0 6px !important;
	padding: 5px 11px 4px !important;
	border: 1px solid rgba(60,43,31,.22) !important;
	border-radius: 999px !important;
	background: rgba(255,253,247,.86) !important;
	background-image: none !important;
	box-shadow: 0 2px 7px rgba(36,28,22,.06) !important;
	font-size: 0 !important;
}

body.hc-room-entrance .hc-featured-exhibit__eyebrow::after,
body.home .hc-featured-exhibit__eyebrow::after {
	content: "Featured";
	font-size: .56rem;
	font-weight: 900;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--hc-walnut-ink);
}

/* Hide the generic "Now on Exhibit" heading entirely.
   The actual featured story title carries the exhibit. */
body.hc-room-entrance .hc-featured-exhibit h1,
body.home .hc-featured-exhibit h1 {
	display: none !important;
}

body.hc-room-entrance .hc-featured-exhibit,
body.home .hc-featured-exhibit {
	margin-top: 5px !important;
	margin-bottom: 28px !important;
	padding: clamp(20px, 2.5vw, 32px) !important;
	gap: clamp(20px, 3.4vw, 42px) !important;
	align-items: center !important;
}

body.hc-room-entrance .hc-featured-exhibit__text,
body.home .hc-featured-exhibit__text {
	gap: 5px !important;
}

body.hc-room-entrance .hc-featured-exhibit .hc-entry-dek,
body.home .hc-featured-exhibit .hc-entry-dek {
	margin: 2px 0 0 !important;
	font-size: .88rem !important;
	line-height: 1.38 !important;
}

/* =========================================================
   Mobile featured exhibit — enforce clean vertical order
   ========================================================= */

@media (max-width: 900px) {
	body.hc-room-entrance .hc-public-briefing,
	body.home .hc-public-briefing {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 6px !important;
		padding-left: 9px !important;
		padding-right: 9px !important;
	}

	body.hc-room-entrance .hc-brief-card,
	body.home .hc-brief-card {
		display: grid !important;
		min-height: 54px !important;
		padding: 8px 7px 7px 10px !important;
		align-content: center !important;
	}

	body.hc-room-entrance .hc-brief-kicker,
	body.home .hc-brief-kicker,
	body.hc-room-entrance .hc-brief-room,
	body.home .hc-brief-room,
	body.hc-room-entrance .hc-brief-card span:not(.hc-brief-kicker):not(.hc-brief-room),
	body.home .hc-brief-card span:not(.hc-brief-kicker):not(.hc-brief-room),
	body.hc-room-entrance .hc-brief-card em,
	body.home .hc-brief-card em {
		display: none !important;
	}

	body.hc-room-entrance .hc-brief-card strong,
	body.home .hc-brief-card strong {
		font-family: var(--hc-sans) !important;
		font-size: .64rem !important;
		font-weight: 900 !important;
		letter-spacing: .025em !important;
		line-height: 1.05 !important;
		text-align: center !important;
		text-transform: uppercase !important;
	}

	body.hc-room-entrance .hc-featured-exhibit,
	body.home .hc-featured-exhibit {
		display: flex !important;
		flex-direction: column !important;
		margin-top: 4px !important;
		padding: 16px !important;
		gap: 12px !important;
		text-align: center !important;
	}

	body.hc-room-entrance .hc-featured-exhibit__image,
	body.home .hc-featured-exhibit__image {
		order: 1 !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 8px !important;
	}

	body.hc-room-entrance .hc-featured-exhibit__image img,
	body.home .hc-featured-exhibit__image img {
		display: block !important;
		width: 100% !important;
		height: auto !important;
		max-height: none !important;
		object-fit: contain !important;
	}

	body.hc-room-entrance .hc-featured-exhibit__text,
	body.home .hc-featured-exhibit__text {
		order: 2 !important;
		display: grid !important;
		justify-items: center !important;
		width: 100% !important;
		max-width: none !important;
		padding: 0 4px 5px !important;
	}

	body.hc-room-entrance .hc-featured-exhibit__eyebrow,
	body.home .hc-featured-exhibit__eyebrow {
		order: -1 !important;
		margin: 0 auto 2px !important;
	}

	body.hc-room-entrance .hc-featured-exhibit .hc-entry-dek,
	body.home .hc-featured-exhibit .hc-entry-dek {
		max-width: 34rem !important;
		margin: 0 auto !important;
		font-size: .88rem !important;
		line-height: 1.35 !important;
		text-align: center !important;
	}

	body.hc-room-entrance .hc-featured-exhibit__cta,
	body.home .hc-featured-exhibit__cta {
		justify-self: center !important;
		margin-top: 6px !important;
	}
}

@media (max-width: 420px) {
	body.hc-room-entrance .hc-public-briefing,
	body.home .hc-public-briefing {
		gap: 4px !important;
	}

	body.hc-room-entrance .hc-brief-card strong,
	body.home .hc-brief-card strong {
		font-size: .58rem !important;
	}

	body.hc-room-entrance .hc-featured-exhibit,
	body.home .hc-featured-exhibit {
		padding: 13px !important;
	}
}
