/**
 * Header / footer chrome — Tailwind parity with predictionmarketsnow.com
 * (UnifiedTopHeader, SiteLogo, SiteFooter).
 */

.pmn-chrome {
	box-sizing: border-box;
	font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
		"Noto Color Emoji";
	font-size: 16px;
	line-height: 1.5;
	font-weight: 400;
	font-feature-settings: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.pmn-chrome,
.pmn-chrome *,
.pmn-chrome *::before,
.pmn-chrome *::after {
	box-sizing: border-box;
}

.pmn-chrome a {
	color: inherit;
	text-decoration: none;
}

/* --- Marquee (bg-red-600, text-xs sm:text-sm) --- */
.pmn-chrome__marquee {
	background-color: #dc2626;
	color: #fff;
	border-bottom: 1px solid #ef4444;
	overflow: hidden;
}

.pmn-chrome__marquee-track {
	display: flex;
	width: max-content;
	padding-top: 0.375rem;
	padding-bottom: 0.375rem;
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 500;
	white-space: nowrap;
	animation: pmn-marquee-scroll 30s linear infinite;
}

@media (min-width: 640px) {
	.pmn-chrome__marquee-track {
		font-size: 0.875rem;
		line-height: 1.25rem;
	}
}

.pmn-chrome__marquee-item {
	display: inline-block;
	padding-right: 2rem;
}

@keyframes pmn-marquee-scroll {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

/* --- Header (bg-slate-900, sticky, shadow-lg, z-50) --- */
.pmn-chrome__header {
	position: sticky;
	top: 0;
	z-index: 50;
	background-color: #0f172a;
	color: #fff;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.pmn-chrome__header-wrap {
	position: relative;
	max-width: 80rem;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

@media (min-width: 640px) {
	.pmn-chrome__header-wrap {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

.pmn-chrome__header-row {
	position: relative;
	display: flex;
	height: 4rem;
	align-items: center;
	justify-content: space-between;
}

.pmn-chrome__header-left {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
	padding-right: 0.5rem;
	flex: 1 1 0;
}

.pmn-chrome__header-center {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	pointer-events: none;
}

.pmn-chrome__header-center .pmn-chrome__brand {
	pointer-events: auto;
}

.pmn-chrome__header-right {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	flex: 1 1 0;
}

/* Icon button — Button ghost size icon (h-10 w-10) */
.pmn-chrome__icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: none;
	border-radius: 0.375rem;
	background: transparent;
	color: #e2e8f0;
	cursor: pointer;
	flex-shrink: 0;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.pmn-chrome__icon-btn:hover {
	color: #fff;
	background-color: #1e293b;
}

.pmn-chrome__icon {
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
}

/* Search — w-28 sm:w-52, Input h-9 */
.pmn-chrome__search {
	position: relative;
	width: 7rem;
	flex-shrink: 0;
}

@media (min-width: 640px) {
	.pmn-chrome__search {
		width: 13rem;
	}
}

.pmn-chrome__search-icon {
	position: absolute;
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1rem;
	height: 1rem;
	color: #94a3b8;
	pointer-events: none;
}

.pmn-chrome__search-input {
	display: flex;
	width: 100%;
	height: 2.25rem;
	padding: 0 0.5rem 0 2.25rem;
	border: 1px solid #334155;
	border-radius: 0.375rem;
	background-color: #1e293b;
	color: #fff;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-family: inherit;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pmn-chrome__search-input--has-clear {
	padding-right: 2rem;
}

.pmn-chrome__search-input::placeholder {
	color: #94a3b8;
}

.pmn-chrome__search-input:focus {
	outline: none;
	border-color: #f87171;
	box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
}

.pmn-chrome__search-clear {
	position: absolute;
	right: 0.5rem;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0;
	border: none;
	border-radius: 0.25rem;
	background: transparent;
	color: #94a3b8;
	cursor: pointer;
}

.pmn-chrome__search-clear:hover {
	color: #fff;
}

.pmn-chrome__search-clear[hidden] {
	display: none;
}

/* Logo — SiteLogo md: w-9 h-9, text-xl font-extrabold */
.pmn-chrome__brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: #fff;
}

.pmn-chrome__brand-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.5rem;
	background-color: #ef4444;
	flex-shrink: 0;
	color: #fff;
}

.pmn-chrome__brand-icon--sm {
	width: 2rem;
	height: 2rem;
}

.pmn-chrome__logo-svg {
	width: 1.25rem;
	height: 1.25rem;
}

.pmn-chrome__logo-svg--sm {
	width: 1rem;
	height: 1rem;
}

.pmn-chrome__brand-text {
	font-size: 1.25rem;
	line-height: 1.75rem;
	font-weight: 800;
	letter-spacing: -0.025em;
	white-space: nowrap;
	color: inherit;
}

.pmn-chrome__brand-text--sm {
	font-size: 1.125rem;
	line-height: 1.75rem;
}

.pmn-chrome__brand-text--hide-mobile {
	display: none;
}

@media (min-width: 640px) {
	.pmn-chrome__brand-text--hide-mobile {
		display: inline;
	}
}

.pmn-chrome__brand-accent {
	color: #f87171;
}

.pmn-chrome__brand--footer .pmn-chrome__brand-text,
.pmn-chrome__brand--footer .pmn-chrome__brand-text--sm {
	color: #fff;
}

/* Sign In — Button sm bg-red-500 h-9 px-3 text-sm font-medium */
.pmn-chrome__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 500;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.pmn-chrome__btn--signin {
	height: 2.25rem;
	padding-left: 0.75rem;
	padding-right: 0.75rem;
	background-color: #ef4444;
	color: #fff !important;
}

.pmn-chrome__btn--signin:hover {
	background-color: #dc2626;
	color: #fff !important;
}

/* Mobile drawer — z-[60], w-72, aside relative */
.pmn-chrome__drawer[hidden] {
	display: none !important;
}

.pmn-chrome__drawer-scrim {
	position: fixed;
	inset: 0;
	z-index: 60;
}

.pmn-chrome__drawer-backdrop {
	position: absolute;
	inset: 0;
	border: none;
	margin: 0;
	padding: 0;
	background-color: rgba(0, 0, 0, 0.4);
	cursor: pointer;
}

.pmn-chrome__drawer-panel {
	position: relative;
	width: 18rem;
	max-width: 85vw;
	height: 100%;
	background-color: #0f172a;
	color: #fff;
	border-right: 1px solid #334155;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	padding: 1rem;
	overflow-y: auto;
}

.pmn-chrome__drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
}

.pmn-chrome__drawer-label {
	font-size: 0.875rem;
	line-height: 1.25rem;
	text-transform: uppercase;
	letter-spacing: 0.025em;
	color: #94a3b8;
}

.pmn-chrome__drawer-nav {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.pmn-chrome__drawer-nav a {
	display: block;
	padding: 0.625rem 0.75rem;
	border-radius: 0.375rem;
	font-size: 1rem;
	line-height: 1.5rem;
	color: #f1f5f9 !important;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.pmn-chrome__drawer-nav a:hover {
	background-color: #1e293b;
	color: #fff !important;
}

body.pmn-chrome-menu-open {
	overflow: hidden;
}

/* Footer — py-12, text-slate-400 */
.pmn-chrome--footer {
	background-color: #0f172a;
	color: #94a3b8;
	margin-top: auto;
	padding-top: 3rem;
	padding-bottom: 3rem;
}

.pmn-chrome__footer-wrap {
	max-width: 80rem;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

@media (min-width: 640px) {
	.pmn-chrome__footer-wrap {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

.pmn-chrome__footer-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	text-align: center;
}

@media (min-width: 640px) {
	.pmn-chrome__footer-row {
		flex-direction: row;
		align-items: center;
		text-align: left;
	}
}

.pmn-chrome__footer-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.pmn-chrome__footer-nav a {
	color: #94a3b8 !important;
	transition: color 0.15s ease;
}

.pmn-chrome__footer-nav a:hover {
	color: #fff !important;
}

.pmn-chrome__copyright {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 400;
	color: #94a3b8;
}

@media (min-width: 640px) {
	.pmn-chrome__copyright {
		max-width: 36rem;
		text-align: right;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pmn-chrome__marquee-track {
		animation: none;
	}
}
