/* mobile v2: fluid width + drawer chrome (loads after mobile/style.css) */

body.ckc-mobile-v2 {
	padding-top: 0;
}

body.ckc-mobile-v2 .ckc-mobile-shell {
	max-width: 100%;
	width: 100%;
	min-width: 0;
	border-radius: 0;
	box-sizing: border-box;
}

.ckc-m2-topbar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	padding-left: max(14px, env(safe-area-inset-left));
	padding-right: max(14px, env(safe-area-inset-right));
	background: linear-gradient(135deg, #1e3a5f 0%, #314177 55%, #1e40af 100%);
	color: #f8fafc;
	position: sticky;
	top: 0;
	z-index: 200;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.2);
}

.ckc-m2-menu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 0;
	padding: 12px;
	min-width: 44px;
	min-height: 44px;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.12);
	color: inherit;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.ckc-m2-menu-btn:active {
	background: rgba(255, 255, 255, 0.22);
}

.ckc-m2-menu-icon {
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.ckc-m2-brand {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	text-decoration: none;
	min-width: 0;
}

body.ckc-mobile-v2 .ckc-m2-topbar a.ckc-m2-brand,
body.ckc-mobile-v2 .ckc-m2-topbar a.ckc-m2-brand:link,
body.ckc-mobile-v2 .ckc-m2-topbar a.ckc-m2-brand:visited,
body.ckc-mobile-v2 .ckc-m2-topbar a.ckc-m2-brand:active {
	color: #ffffff;
	text-decoration: none;
}

body.ckc-mobile-v2 .ckc-m2-topbar a.ckc-m2-brand:hover,
body.ckc-mobile-v2 .ckc-m2-topbar a.ckc-m2-brand:focus-visible {
	color: #ffffff;
	text-decoration: none;
}

.ckc-m2-title {
	color: #ffffff;
	font-weight: 750;
	font-size: clamp(17px, 4.5vw, 23px);
	letter-spacing: -0.02em;
	line-height: 1.15;
	text-decoration: none;
	min-width: 0;
}

.ckc-m2-brand:hover .ckc-m2-logo,
.ckc-m2-brand:focus-visible .ckc-m2-logo,
.ckc-m2-brand:hover .ckc-m2-title,
.ckc-m2-brand:focus-visible .ckc-m2-title {
	opacity: 0.92;
}

.ckc-m2-brand:hover .ckc-m2-logo,
.ckc-m2-brand:focus-visible .ckc-m2-logo {
	filter: brightness(1.08);
}

/* Beat mobile/style.css `img { max-width:100%; height:auto }` (wide flex parent was blowing the logo up). */
body.ckc-mobile-v2 .ckc-m2-topbar img.ckc-m2-logo {
	display: block;
	width: auto !important;
	height: 24px !important;
	max-height: 24px !important;
	max-width: 64px !important;
	min-width: 0;
	object-fit: contain;
	object-position: center;
	flex-shrink: 0;
}

/* Logged-in profile thumbnail (desktop header parity); override global img rules. */
.ckc-m2-user {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

body.ckc-mobile-v2 .ckc-m2-topbar a.ckc-m2-user,
body.ckc-mobile-v2 .ckc-m2-topbar a.ckc-m2-user:link,
body.ckc-mobile-v2 .ckc-m2-topbar a.ckc-m2-user:visited,
body.ckc-mobile-v2 .ckc-m2-topbar a.ckc-m2-user:active {
	color: inherit;
}

body.ckc-mobile-v2 .ckc-m2-topbar img.ckc-m2-user-img {
	display: block;
	width: 36px !important;
	height: 36px !important;
	max-width: 36px !important;
	max-height: 36px !important;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.45);
	box-sizing: border-box;
	vertical-align: middle;
}

.ckc-m2-user:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
	border-radius: 50%;
}

.ckc-m2-user:active .ckc-m2-user-img {
	opacity: 0.9;
}

/* Guests: login control in the same slot as the profile avatar */
.ckc-m2-login-top {
	flex-shrink: 0;
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 8px 12px;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.12);
	color: #f8fafc !important;
	font: inherit;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.ckc-m2-login-top:hover,
.ckc-m2-login-top:focus-visible {
	color: #fff !important;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.2);
}

.ckc-m2-login-top:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.ckc-m2-login-top:active {
	background: rgba(255, 255, 255, 0.22);
}

.ckc-m2-drawer[hidden] {
	display: none;
}

.ckc-m2-drawer:not([hidden]) {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 300;
}

.ckc-m2-drawer-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(2px);
}

.ckc-m2-drawer-panel {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: min(88vw, 320px);
	max-width: 100%;
	background: #f8fafc;
	box-shadow: 8px 0 32px rgba(15, 23, 42, 0.18);
	display: flex;
	flex-direction: column;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	animation: ckc-m2-slide-in 0.22s ease-out;
}

@keyframes ckc-m2-slide-in {
	from {
		transform: translateX(-100%);
		opacity: 0.9;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.ckc-m2-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 14px;
	border-bottom: 1px solid #e2e8f0;
	background: #fff;
}

.ckc-m2-drawer-title {
	font-weight: 800;
	font-size: 18px;
	color: #0f172a;
}

.ckc-m2-drawer-close {
	border: none;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	padding: 4px 8px;
	cursor: pointer;
	color: #64748b;
	border-radius: 8px;
}

.ckc-m2-drawer-close:hover,
.ckc-m2-drawer-close:focus-visible {
	background: #e2e8f0;
	color: #0f172a;
}

.ckc-m2-nav-login-register {
	font-weight: 700;
}

.ckc-m2-nav-list {
	list-style: none;
	margin: 0;
	padding: 8px 0 24px;
}

.ckc-m2-nav-list a {
	display: block;
	padding: 14px 18px;
	color: #1e293b;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	border-bottom: 1px solid #e2e8f0;
}

.ckc-m2-nav-list a:hover,
.ckc-m2-nav-list a:focus-visible {
	background: #e0e7ff;
	color: #1e3a8a;
}

a.ckc-m2-nav-ref-soon {
	color: #b45309;
	font-weight: 700;
}

a.ckc-m2-nav-ref-soon:hover,
a.ckc-m2-nav-ref-soon:focus-visible {
	background: #fff7ed;
	color: #9a3412;
}

a.ckc-m2-nav-avail-cta {
	color: #b91c1c;
	font-weight: 700;
}

a.ckc-m2-nav-avail-cta:hover,
a.ckc-m2-nav-avail-cta:focus-visible {
	background: #fef2f2;
	color: #991b1b;
}

a.ckc-m2-nav-avail-warn {
	color: #b45309;
	font-weight: 700;
}

a.ckc-m2-nav-avail-warn:hover,
a.ckc-m2-nav-avail-warn:focus-visible {
	background: #fffbeb;
	color: #92400e;
}

.ckc-m2-nav-divider {
	height: 8px;
	background: #e2e8f0;
	border: none;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.ckc-mobile-v2.ckc-m2-no-scroll {
	overflow: hidden;
	touch-action: none;
}

/* Fluid home tiles */
body.ckc-mobile-v2 .ckc-mobile-tiles-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
	gap: 10px;
	width: 100%;
}

body.ckc-mobile-v2 .ckc-mobile-tiles-container > a {
	width: 100%;
	height: auto;
	min-height: 120px;
	aspect-ratio: 175 / 151;
	max-width: none;
}

body.ckc-mobile-v2 .ckc-mobile-footer-table {
	width: 100%;
	table-layout: fixed;
}

body.ckc-mobile-v2 .ckc-mobile-footer-desktop-cell {
	text-align: center;
	vertical-align: middle;
	width: 100%;
}

body.ckc-mobile-v2 .ckc-mobile-footer-sep {
	color: var(--ckc-muted, #64748b);
}

/* Footer: Desktop site link (shell; visible on News and all mobile pages) */
body.ckc-mobile-v2 #ckc-desktop-site-link {
	font-size: 17px;
	font-weight: 600;
}

@media (max-width: 480px) {
	body.ckc-mobile-v2 .ckc-mobile-footer-table tr {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: center;
		gap: 0;
	}
	body.ckc-mobile-v2 .ckc-mobile-footer-desktop-cell {
		flex: 1 1 auto;
		text-align: center;
		min-width: 0;
	}
}

/* Wide screens: club-blue vertical gutters; main column capped at 1200px (matches topbar palette). */
@media (min-width: 1201px) {
	body.ckc-mobile-v2 {
		background: linear-gradient(180deg, #1e3a5f 0%, #314177 52%, #1e40af 100%) fixed;
		background-color: #1e3a5f;
	}

	body.ckc-mobile-v2 .ckc-m2-topbar {
		max-width: 1200px;
		margin-left: auto;
		margin-right: auto;
		box-sizing: border-box;
	}

	body.ckc-mobile-v2 .ckc-mobile-shell {
		max-width: 1200px;
		margin-left: auto;
		margin-right: auto;
		box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12), 0 12px 40px rgba(15, 23, 42, 0.18);
	}
}
