/* =====================================================================
   VLY · National Team profile — single-national-team.php styles
   Drop at: wp-content/themes/<your-theme>/assets/css/national-team.css
   Youth + Poppins are provided site-wide by the theme — not redeclared here.
   Tokens scoped to .vly-nt so they won't leak site-wide.
   ===================================================================== */

/* Youth + Poppins are already @font-face'd site-wide by the theme
   (self-hosted at wp-content/uploads/2020/10/), so this file does not
   redeclare them — it just references the families below. */

.vly-nt {
	--vly-blue:        #2851AC;
	--vly-blue-pale:   #BBC6DF;
	--vly-yellow:      #DBFF4D;
	--vly-turquoise:   #38C9D4;
	--vly-pink:        #F5D1F2;
	--vly-light-blue:  #CCEDF5;
	--vly-text-mute:   #54595F;
	--vly-text-body:   #7A7A7A;
	--vly-surface:     #FFFFFF;
	--vly-surface-alt: #F9FAFB;

	--font-display: 'Youth', 'Poppins', system-ui, sans-serif;
	--font-body:    'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	background: var(--vly-surface);
	color: var(--vly-blue);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}

.vly-nt *,
.vly-nt *::before,
.vly-nt *::after { box-sizing: border-box; }

.vly-nt__container {
	max-width: 1188px;
	margin: 0 auto;
	padding: 28px 24px 80px;
}

/* ---- Breadcrumb ---------------------------------------------------- */
.vly-nt__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-weight: 500;
	font-size: 13px;
	color: var(--vly-text-mute);
}
.vly-nt__crumbs a { color: var(--vly-text-mute); text-decoration: none; transition: color 0.15s; }
.vly-nt__crumbs a:hover { color: var(--vly-blue); }
.vly-nt__crumbs span[aria-hidden="true"] { color: var(--vly-blue-pale); }
.vly-nt__crumbs-current { font-weight: 700; color: var(--vly-blue); }

/* ---- Header -------------------------------------------------------- */
.vly-nt__head {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 24px 0 16px;
}
.vly-nt__logo-mark {
	flex-shrink: 0;
	width: 104px;
	height: 104px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--vly-blue);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 30px;
	letter-spacing: -0.02em;
}
.vly-nt__head-text { display: flex; flex-direction: column; gap: 4px; }
.vly-nt__eyebrow {
	font-weight: 800;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--vly-text-mute);
}
.vly-nt__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 52px;
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--vly-blue);
	margin: 0;
}

/* ---- Sections ------------------------------------------------------ */
.vly-nt__section { margin-top: 48px; }
.vly-nt__section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
/* Headings are scoped under .vly-nt (specificity 0,2,0) so the theme's
   `body.elementor-kit-NNN h2/h3` rules (0,1,1) can't override our font,
   size, or line-height. */
.vly-nt .vly-nt__h2 {
	display: inline-block;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 38px;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--vly-blue);
	margin: 0 0 24px;
	padding-bottom: 11px;
	border-bottom: 5px solid var(--vly-yellow);
}
.vly-nt__section-head .vly-nt__h2 { margin-bottom: 0; }
.vly-nt__more {
	font-weight: 700;
	font-size: 13px;
	color: var(--vly-blue);
	text-decoration: none;
}
.vly-nt__more:hover { text-decoration: underline; }
.vly-nt__section-head { margin-bottom: 24px; }

/* ---- Card grids ---------------------------------------------------- */
.vly-nt__cards { display: grid; gap: 24px; align-items: stretch; }
.vly-nt__cards--3 { grid-template-columns: repeat(3, 1fr); }
.vly-nt__cards--4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Ranking + tournament cards ----------------------------------- */
.vly-nt__rank-card {
	background: var(--vly-yellow);
	border-radius: 6px;
	padding: 28px 26px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	text-align: center;
}
.vly-nt__rank-eyebrow {
	font-weight: 800; font-size: 11px; text-transform: uppercase;
	letter-spacing: 0.1em; color: var(--vly-blue);
}
.vly-nt__rank-number {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 85px;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--vly-blue);
}
.vly-nt__rank-label {
	font-weight: 600; font-size: 13px; text-transform: uppercase;
	letter-spacing: 0.06em; color: var(--vly-blue);
}

.vly-nt__tourn-card {
	background: var(--vly-surface);
	border: 1px solid var(--vly-blue-pale);
	border-top: 6px solid var(--vly-turquoise);
	border-radius: 6px;
	padding: 24px 26px;
	display: flex;
	flex-direction: column;
	min-height: 204px;
}
.vly-nt__tourn-card--next { border-top-color: var(--vly-blue); }
.vly-nt__card-eyebrow {
	font-weight: 800; font-size: 11px; text-transform: uppercase;
	letter-spacing: 0.1em; color: var(--vly-text-mute);
}
.vly-nt .vly-nt__card-title {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.2;
	color: var(--vly-blue);
	margin: 11px 0 14px;
}
.vly-nt__kv-list { display: flex; flex-direction: column; gap: 8px; }
.vly-nt__kv {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
}
.vly-nt__kv-key {
	font-weight: 700; font-size: 11px; text-transform: uppercase;
	letter-spacing: 0.08em; color: var(--vly-text-mute);
}
.vly-nt__kv-val { font-weight: 600; font-size: 15px; color: var(--vly-blue); text-align: right; }
.vly-nt__card-foot {
	margin-top: auto;
	padding-top: 14px;
	font-weight: 500; font-size: 13px; color: var(--vly-text-body);
}

/* ---- News cards ---------------------------------------------------- */
.vly-nt__news-card {
	background: var(--vly-surface);
	border: 1px solid var(--vly-blue-pale);
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;          /* fill the grid row → all cards equal height */
}
.vly-nt__news-media {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--vly-light-blue);
	border-top: 8px solid var(--vly-yellow);
}
.vly-nt__accent-top--0 { border-top-color: var(--vly-yellow); }
.vly-nt__accent-top--1 { border-top-color: var(--vly-blue); }
.vly-nt__accent-top--2 { border-top-color: var(--vly-turquoise); }
.vly-nt__news-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vly-nt__news-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vly-nt .vly-nt__news-title { font-family: var(--font-body); font-weight: 700; font-size: 18px; line-height: 1.3; margin: 0; }
.vly-nt__news-title a { color: var(--vly-blue); text-decoration: none; }
.vly-nt__news-title a:hover { text-decoration: underline; }
.vly-nt__news-excerpt {
	font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--vly-text-body); margin: 0;
}
.vly-nt__news-foot {
	margin-top: auto;
	padding-top: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.vly-nt__news-date { font-weight: 500; font-size: 12px; color: var(--vly-text-body); }
.vly-nt__news-more { font-weight: 700; font-size: 12px; color: var(--vly-blue); text-decoration: none; }
.vly-nt__news-more:hover { text-decoration: underline; }

/* ---- Avatars (athlete + staff) ------------------------------------ */
.vly-nt__avatar {
	position: relative;
	width: 104px;
	height: 104px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: visible;
}
.vly-nt__avatar--sm { width: 80px; height: 80px; }
.vly-nt__avatar img {
	width: 100%; height: 100%; object-fit: cover; border-radius: 999px;
}
.vly-nt__avatar-initials {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 30px;
	letter-spacing: 0.02em;
	color: var(--vly-blue);
}
.vly-nt__avatar--sm .vly-nt__avatar-initials { font-size: 24px; }
.vly-nt__avatar--0 { background: var(--vly-light-blue); }
.vly-nt__avatar--1 { background: var(--vly-turquoise); }
.vly-nt__avatar--2 { background: var(--vly-pink); }
.vly-nt__avatar--3 { background: var(--vly-blue); }
.vly-nt__avatar--1 .vly-nt__avatar-initials,
.vly-nt__avatar--3 .vly-nt__avatar-initials { color: #fff; }
.vly-nt__avatar-badge {
	position: absolute;
	right: -2px;
	bottom: -2px;
	min-width: 36px;
	height: 36px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--vly-yellow);
	border: 3px solid #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 13px;
	color: var(--vly-blue);
}

/* ---- Athlete cards ------------------------------------------------- */
.vly-nt__athlete-card {
	background: var(--vly-surface);
	border: 1px solid var(--vly-blue-pale);
	border-radius: 6px;
	padding: 29px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
	text-decoration: none;
	transition: box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}
.vly-nt__athlete-card:hover {
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.10);
	transform: translateY(-2px);
}
.vly-nt .vly-nt__athlete-name {
	font-family: var(--font-body); font-weight: 700; font-size: 20px; line-height: 1.25; color: var(--vly-blue); margin: 16px 0 0;
}
.vly-nt__athlete-pos {
	font-weight: 700; font-size: 12px; text-transform: uppercase;
	letter-spacing: 0.08em; color: var(--vly-turquoise);
}
.vly-nt__athlete-meta { font-weight: 500; font-size: 14px; color: var(--vly-text-body); }
.vly-nt__athlete-county { color: var(--vly-text-mute); }

/* ---- Staff cards --------------------------------------------------- */
.vly-nt__staff-card {
	background: var(--vly-surface-alt);
	border-radius: 6px;
	padding: 28px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
}
.vly-nt .vly-nt__staff-name {
	font-family: var(--font-body); font-weight: 700; font-size: 18px; line-height: 1.25; color: var(--vly-blue); margin: 16px 0 0;
}
.vly-nt__staff-role {
	font-weight: 700; font-size: 11px; text-transform: uppercase;
	letter-spacing: 0.08em; color: var(--vly-text-mute);
}

/* ---- Responsive ---------------------------------------------------- */
@media (max-width: 960px) {
	.vly-nt__cards--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
	.vly-nt__cards--3 { grid-template-columns: repeat(2, 1fr); }
	.vly-nt__title { font-size: 40px; }
	.vly-nt .vly-nt__h2 { font-size: 30px; }
}
@media (max-width: 520px) {
	.vly-nt__cards--3,
	.vly-nt__cards--4 { grid-template-columns: 1fr; }
	.vly-nt__head { gap: 16px; }
	.vly-nt__logo-mark { width: 72px; height: 72px; font-size: 22px; }
	.vly-nt__title { font-size: 34px; }
}

@media print {
	.vly-nt__athlete-card:hover { box-shadow: none; transform: none; }
}
