/* TK9-PUB-007A — Public Entry / Hero Polish
   Visual-only refinement of the public registration shell. */

/* Keep runtime environment detection available to JavaScript without showing
   developer context in the applicant-facing header. */
.public-runtime-environment {
	display: none !important;
}

/* Legacy runtime nodes stay in the DOM for registration-state updates and
   compatibility tests, but the duplicate top badges are intentionally hidden. */
.hero-runtime-status,
.hero-runtime-shadow {
	display: none !important;
}

.public-event-hero.public-entry-polished {
	display: block;
	min-height: 0;
	padding: 31px 22px 24px;
}

.public-event-hero.public-entry-polished .event-copy {
	width: min(100%, 850px);
	max-width: 850px;
	margin-inline: auto;
	text-align: center;
}

.public-event-hero.public-entry-polished h2 {
	max-width: 24ch;
	margin: 0 auto 12px;
	font-size: clamp(1.58rem, 7.3vw, 2.55rem);
	line-height: 1.34;
	letter-spacing: -.028em;
	text-align: center;
}

.public-event-hero.public-entry-polished .hero-lead {
	max-width: 62ch;
	margin-inline: auto;
	font-size: .88rem;
	line-height: 1.95;
	text-align: center;
}

.public-entry-polished .event-facts {
	width: min(100%, 720px);
	margin: 24px auto 0;
	grid-template-columns: minmax(0, 1.45fr) minmax(92px, .7fr) minmax(0, .9fr);
	gap: 9px;
}

.public-entry-polished .event-fact {
	min-height: 76px;
	padding: 12px 13px;
	border-color: rgba(255, 255, 255, .12);
	background: rgba(255, 255, 255, .055);
	backdrop-filter: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.public-entry-polished .event-fact span {
	margin-bottom: 4px;
	font-size: .62rem;
}

.public-entry-polished .event-fact strong {
	font-size: .82rem;
	line-height: 1.5;
}

.public-entry-polished .event-fact-identity {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 11px;
	text-align: start;
}

.public-entry-polished .event-fact-mark {
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .2));
}

.public-entry-polished .event-fact-copy {
	min-width: 0;
}

.public-entry-polished .event-fact-copy span,
.public-entry-polished .event-fact-copy strong {
	text-align: start;
}

.public-entry-polished .event-fact-status {
	position: relative;
	overflow: hidden;
}

.public-entry-polished .event-fact-status::after {
	content: "";
	position: absolute;
	inset-inline-end: 12px;
	top: 12px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #c9d5d0;
	box-shadow: 0 0 0 4px rgba(201, 213, 208, .08);
}

body[data-registration-state="open"] .public-entry-polished .event-fact-status {
	border-color: rgba(145, 221, 169, .34);
	background: rgba(75, 145, 99, .15);
}

body[data-registration-state="open"] .public-entry-polished .event-fact-status::after {
	background: #91dda9;
	box-shadow: 0 0 0 4px rgba(145, 221, 169, .12), 0 0 18px rgba(145, 221, 169, .36);
}

body[data-registration-state="closed"] .public-entry-polished .event-fact-status {
	border-color: rgba(217, 182, 111, .35);
	background: rgba(217, 182, 111, .1);
}

body[data-registration-state="closed"] .public-entry-polished .event-fact-status::after {
	background: var(--public-gold-bright);
}

body[data-registration-state="unavailable"] .public-entry-polished .event-fact-status,
body[data-registration-state="security"] .public-entry-polished .event-fact-status {
	border-color: rgba(231, 144, 144, .3);
	background: rgba(217, 109, 109, .1);
}

body[data-registration-state="unavailable"] .public-entry-polished .event-fact-status::after,
body[data-registration-state="security"] .public-entry-polished .event-fact-status::after {
	background: #e79090;
}

body[data-app="tk9-registration"] .draft-notice {
	align-items: stretch;
	gap: 14px;
	padding: 14px 15px;
}

body[data-app="tk9-registration"] .draft-notice-copy {
	align-content: center;
	min-width: 0;
}

body[data-app="tk9-registration"] .draft-notice-action {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-inline-start: auto;
}

body[data-app="tk9-registration"] .draft-notice .draft-reset-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 9px 13px;
	border: 1px solid rgba(124, 82, 22, .2);
	border-radius: 12px;
	background: rgba(255, 255, 255, .75);
	box-shadow: 0 6px 16px rgba(96, 71, 25, .06);
	color: #6f4d16;
	font-size: .73rem;
	font-weight: 850;
	line-height: 1.45;
	text-decoration: none;
	white-space: normal;
}

body[data-app="tk9-registration"] .draft-notice .draft-reset-button:hover {
	background: #fff;
	border-color: rgba(124, 82, 22, .34);
}

@media (min-width: 720px) {
	.public-event-hero.public-entry-polished {
		padding: 42px 46px 32px;
	}

	.public-event-hero.public-entry-polished h2 {
		font-size: clamp(2rem, 3.7vw, 2.8rem);
	}

	.public-event-hero.public-entry-polished .hero-lead {
		font-size: .98rem;
	}
}

@media (max-width: 560px) {
	.public-event-hero.public-entry-polished {
		padding: 28px 18px 22px;
	}

	.public-event-hero.public-entry-polished h2 {
		max-width: 21ch;
		font-size: clamp(1.55rem, 7.5vw, 2rem);
		margin-bottom: 11px;
	}

	.public-event-hero.public-entry-polished .hero-lead {
		font-size: .82rem;
		line-height: 1.9;
	}

	.public-entry-polished .event-facts {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		margin-top: 21px;
	}

	.public-entry-polished .event-fact-name {
		grid-column: 1 / -1;
		min-height: 72px;
	}

	.public-entry-polished .event-fact {
		min-height: 68px;
		padding: 10px 11px;
	}

	.public-entry-polished .event-fact-mark {
		width: 48px;
		height: 48px;
		flex-basis: 48px;
	}

	body[data-app="tk9-registration"] .draft-notice {
		grid-template-columns: 1fr;
		gap: 11px;
	}

	body[data-app="tk9-registration"] .draft-notice-action {
		width: 100%;
		justify-content: flex-end;
		margin-inline-start: 0;
	}

	body[data-app="tk9-registration"] .draft-notice .draft-reset-button {
		width: auto;
		max-width: 100%;
		min-height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.public-entry-polished .event-fact-status::after {
		box-shadow: none !important;
	}
}
