/* ==========================================================================
   Club League/Tournament detail page v2 — scoped "chv2-lg-" namespace,
   companion to home_v2.css's "chv2-" homepage rebuild. Self-contained (does
   not depend on home_v2.css being loaded) so this page always renders
   correctly on its own.
   ========================================================================== */

:root{
	--chv2-bg: #f5f6f8;
	--chv2-card-bg: #ffffff;
	--chv2-border: #e5e8ee;
	--chv2-text: #22262b;
	--chv2-text-muted: #6b7280;
	--chv2-accent: #ff8a00;
	--chv2-accent-dark: #d97400;
	--chv2-accent-soft: #fff3e2;
	--chv2-secondary: #2f5ea8;
	--chv2-secondary-dark: #24487f;
	--chv2-secondary-soft: #eaf1fb;
	--chv2-green: #2fa84f;
	--chv2-red: #e0483e;
	--chv2-radius: 12px;
	--chv2-radius-sm: 8px;
	--chv2-shadow: 0 2px 10px rgba(20, 24, 33, 0.06);
	--chv2-shadow-hover: 0 10px 26px rgba(20, 24, 33, 0.14);
}

/* ---------- Hero (image / title-meta-actions / register panel) ---------- */
.chv2-lg-hero{
	/* This element also carries Bootstrap's col-md-12 class (float:left),
	   which stops "margin: auto" below from centering it -- floated
	   elements ignore auto margins entirely, so without this override the
	   card renders flush against the left edge instead of centered. */
	float: none;
	display: grid;
	grid-template-columns: 200px 1fr 260px;
	column-gap: 28px;
	row-gap: 20px;
	background: var(--chv2-card-bg);
	border: 1px solid var(--chv2-border);
	border-radius: var(--chv2-radius);
	box-shadow: var(--chv2-shadow);
	padding: 28px;
	margin: 28px auto;
	max-width: 1170px;
	box-sizing: border-box;
}
/* Neutralize the Bootstrap col-md-* widths/gutters these three still carry
   (kept for backwards compatibility / in case JS elsewhere selects them) -
   float is already ignored on grid items per spec, only width/padding need
   resetting here. */
.chv2-lg-hero-media, .chv2-lg-hero-body, .chv2-lg-hero-actions{
	width: auto;
	padding-left: 0;
	padding-right: 0;
	min-height: 0;
}

.chv2-lg-hero-img{
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: var(--chv2-radius-sm);
	display: block;
	background: #f0f0f0;
}

.chv2-lg-hero-title{
	font-size: 25px;
	font-weight: 800;
	color: var(--chv2-text);
	line-height: 1.3;
	margin-bottom: 16px;
}

.chv2-lg-hero-meta{ margin-bottom: 16px; }
.chv2-lg-meta-row{
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--chv2-text-muted);
	margin-bottom: 8px;
}
.chv2-lg-meta-row i{
	width: 16px;
	flex: 0 0 auto;
	margin-top: 3px;
	text-align: center;
	color: var(--chv2-accent);
}
.chv2-lg-link{ color: var(--chv2-secondary-dark); font-weight: 600; text-decoration: none; cursor: pointer; }
.chv2-lg-link:hover{ text-decoration: underline; }

.chv2-lg-status{
	display: inline-block;
	padding: 2px 10px;
	margin-left: 6px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.chv2-lg-status-on{ background: #e6f6ea; color: var(--chv2-green); }
.chv2-lg-status-off{ background: #fdeceb; color: var(--chv2-red); }

.chv2-lg-chip-row{ display: flex; flex-wrap: wrap; gap: 10px; }
.chv2-lg-chip{
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 20px;
	background: var(--chv2-accent-soft);
	color: var(--chv2-accent-dark) !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.chv2-lg-chip:hover{ background: var(--chv2-accent); color: #fff !important; }

/* Actions column: admin dropdown + big CTA buttons */
.chv2-lg-hero-actions{ display: flex; flex-direction: column; align-items: stretch; }
.chv2-lg-actions-select{
	font-weight: 600;
	text-align: center;
	border: 1px solid var(--chv2-border);
	border-radius: var(--chv2-radius-sm);
	box-shadow: none;
	height: auto;
	padding: 10px;
}
.chv2-lg-actions-select:focus{ border-color: var(--chv2-secondary); box-shadow: 0 0 0 3px var(--chv2-secondary-soft); }

.chv2-lg-cta-spacer{ height: 20px; }

.chv2-lg-cta{
	display: block;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	padding: 14px 20px;
	margin: 10px 0 0;
	border: none;
	border-radius: var(--chv2-radius-sm);
	font-weight: 700;
	font-size: 15px;
	color: #fff !important;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: var(--chv2-shadow);
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.chv2-lg-cta:first-child{ margin-top: 0; }
.chv2-lg-cta:hover{ transform: translateY(-2px); box-shadow: var(--chv2-shadow-hover); color: #fff !important; }
.chv2-lg-cta-primary{ background: var(--chv2-secondary); }
.chv2-lg-cta-primary:hover{ background: var(--chv2-secondary-dark); }
.chv2-lg-cta-secondary{ background: var(--chv2-accent); }
.chv2-lg-cta-secondary:hover{ background: var(--chv2-accent-dark); }
.chv2-lg-cta-inline{ display: inline-block; width: auto; margin: 0 0 0 12px; padding: 10px 22px; box-shadow: none; vertical-align: middle; }

@media (max-width: 900px){
	.chv2-lg-hero{ grid-template-columns: 1fr; }
	.chv2-lg-hero-img{ height: 200px; }
}

/* ---------- Fee-pending banner ---------- */
.chv2-lg-fee-banner{
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	max-width: 1170px;
	margin: 20px auto 0;
	padding: 16px 20px;
	background: #fffbe6;
	border: 1px solid #f2e2a1;
	border-radius: var(--chv2-radius);
	box-sizing: border-box;
}
.chv2-lg-fee-banner span{ flex: 1 1 280px; font-size: 14px; color: #7a5b00; }

/* ---------- Tabs ---------- */
/* Same max-width as the hero/fee-banner above -- matches root's page, whose
   equivalent tab bar sits in the same Bootstrap .container (1170px) as
   everything else and wraps to a second row at this width too when there
   are ~9 tab labels, rather than getting its own wider allowance. */
.chv2-lg-tabs-wrap{ max-width: 1170px; margin: 28px auto 0; }
ul.chv2-lg-tabs.nav-tabs{
	border-bottom: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 2px;
	margin-bottom: 0;
}
.chv2-lg-tabs.nav-tabs > li{ float: none; }
.chv2-lg-tabs.nav-tabs > li > a{
	margin-right: 0;
	border: 1px solid var(--chv2-border);
	border-radius: 999px;
	padding: 9px 18px;
	font-weight: 600;
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--chv2-text-muted);
	background: var(--chv2-card-bg);
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chv2-lg-tabs.nav-tabs > li > a:hover,
.chv2-lg-tabs.nav-tabs > li > a:focus{
	border-color: var(--chv2-accent);
	color: var(--chv2-accent-dark);
	background: var(--chv2-accent-soft);
}
.chv2-lg-tabs.nav-tabs > li.active > a,
.chv2-lg-tabs.nav-tabs > li.active > a:hover,
.chv2-lg-tabs.nav-tabs > li.active > a:focus{
	background: var(--chv2-secondary);
	border-color: var(--chv2-secondary);
	color: #fff;
}
.chv2-lg-tabs.nav-tabs > li > a.member_login{ color: var(--chv2-text-muted); }

.chv2-lg-tab-content{
	max-width: 1170px;
	margin: 18px auto 40px;
	background: var(--chv2-card-bg);
	border: 1px solid var(--chv2-border);
	border-radius: var(--chv2-radius);
	box-shadow: var(--chv2-shadow);
	padding: 26px;
	box-sizing: border-box;
}
.chv2-lg-tab-content .fromtitle{
	font-size: 16px;
	font-weight: 700;
	color: var(--chv2-text);
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--chv2-border);
}

@media (max-width: 600px){
	.chv2-lg-tab-content{ padding: 16px; }
	.chv2-lg-tabs.nav-tabs > li > a{ padding: 8px 14px; font-size: 12.5px; }
}
