/*
 * Single public player profile (/player/{registration number}) — mobile
 * first, single column; two-column from 900px (header card | sections).
 * Tokens come from the noakhali-cricket plugin (assets/css/nc-tokens.css):
 * the green accent, rounded surfaces, minimal shadows.
 */
.nc-profile-wrap{
	background-color: var(--dl-bg-grey, #f3f3f3);
	margin: 15px 0 30px;
}
.nc-profile-wrap .container{
	max-width: 800px;
}
.nc-profile__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 14px;
	color: var(--nc-primary-600, #059669);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.nc-profile__back svg {
	width: 16px;
	height: 16px;
}

.nc-profile__back:hover svg {
	transform: translateX(-3px);
}

.nc-profile__back:focus-visible {
	outline: none;
	box-shadow: var(--nc-focus-ring, 0 0 0 3px var(--nc-primary-100, #d1fae5));
	border-radius: 6px;
}

/* ---------- Header: photo + identity ---------- */

.nc-profile__head {
	background-color: var(--dl-bg-white, #fff);
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	text-align: center;
	gap: 20px;
	padding: 30px;
	border-radius: 10px;
	margin-bottom: 15px;
}

.nc-profile__photo {
	width: 108px;
	height: 108px;
	margin: 0 auto;
}

.nc-profile__photo img,
.nc-profile__photo .nc-profile__initials {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	object-position: top;
}

.nc-profile__initials {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--nc-primary-50, #ecfdf5);
	border: 1px solid var(--nc-primary-100, #d1fae5);
	color: var(--nc-primary-600, #059669);
	font-size: 36px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.nc-profile__name {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--nc-text-strong, #0b1220);
	margin: 0 0 10px;
}

.nc-profile-badge,
.nc-profile__reg {
	background-color: #e7a352;
	font-size: 12px;
	color: var(--dl-white-color, #fff);
	letter-spacing: 0.5px;
	font-weight: 500;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: 5px;
	display: inline-block;
	margin: 0;
}

.nc-profile-badge {
	background-color: var(--nc-primary, #dc3644);
	color: var(--dl-white-color, #fff);
}

.nc-profile-badge.nc-profile-badge-all-rounder{
	background-color: #5a65ff;
}

.nc-profile-badge.nc-profile-badge-bowler{
	background-color: #ff6968;
}

.nc-profile-badge.nc-profile-badge-batsman{
	background-color: #96da45;
}

.nc-profile-badge.nc-profile-badge-wicket{
	background-color: #ff8661;
}

.player-meta{
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
}

/* ---------- Active ban banner (header): red/warning tone from the same
   palette the other profile chips come from; spans the header grid. */

.nc-profile__ban {
	grid-column: 1 / -1;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--nc-danger, #dc3644);
	background: rgba(220, 54, 68, 0.08);
	border-left-width: 4px;
	color: var(--nc-text-strong, #0b1220);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	border-radius: 6px;
}

/* ---------- Sections: label/value rows ---------- */

.nc-profile__sections {
	background-color: #fff;
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	padding: 20px;
	border-radius: 10px;
}

.nc-profile__section-title {
	font-size: 18px;
	line-height: 1;
	font-weight: 700;
	color: var(--dl-heading-color, #092236);
	text-transform: capitalize;
	border-bottom: 1px solid var(--nc-border, #e6eaf2);
	padding-bottom: 15px;
	margin: 0 0 20px;
}

.nc-profile__section-title::before{
	content: '';
	border-left: 4px solid var(--nc-primary, #dc3644);
	padding-left: 5px;
}

.nc-profile__rows {
	margin: 0;
}

.nc-profile__row {
	display: grid;
	grid-template-columns: minmax(104px, 32%) 1fr;
	align-items: center;
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px solid var(--nc-border, #e6eaf2);
}

.nc-profile__row:last-child {
	border-bottom: 0;
}

.nc-profile__row dt {
    font-size: 16px;
    color: var(--dl-heading-color, #092236);
    text-transform: capitalize;
    letter-spacing: -0.2px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nc-profile__row dt:after{
	content: ':';
}

.nc-profile__row dd {
	margin: 0;
	font-size: 14.5px;
	color: var(--nc-text, #0f172a);
	overflow-wrap: anywhere;
}

.btn-wrap{
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 20px;
}

.nc-profile__back{
	background-color: var(--dl-primary-color);
	display: inline-flex;
	color: var(--dl-white-color, #fff);
	padding: 8px 20px;
	border-radius: 5px;
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
}

.nc-profile__back:hover,
.nc-profile__back:focus {
	background-color: var(--dl-secondary-color);
	color: var(--dl-white-color, #fff);
}

@media (max-width: 767px) {
	.nc-profile__section-title {
		font-size: 16px;
		line-height: 1;
		font-weight: 600;
	}
	.nc-profile__row{
		grid-template-columns: 1fr;
		gap: 3px;
	}
	.nc-profile__row dt{
		justify-content: flex-start;
		font-size: 10px;
		line-height: 1;
		font-weight: 600;
		color: #888;
	}
	.nc-profile__row dt:after{
		margin-left: 2px;
	}
	.nc-profile__row dd{
		font-size: 14px;
	}
}