/* DABA Staff */

:root {
	/* If the title still overlaps your menu, increase this value (it's the
	   height of your site's fixed/sticky navigation bar). */
	--csd-header-offset: 160px;

	/* Overridden by DABA Staff > Settings; these are just fallbacks. */
	--csd-desktop-columns: 3;
	--csd-mobile-columns: 1;
}

.csd-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: calc(var(--csd-header-offset) + 2rem) 1rem 2rem;
}

@media (max-width: 782px) {
	.csd-wrap {
		padding-top: calc(var(--csd-header-offset) * 0.6 + 2rem);
	}
}

.csd-page-header {
	text-align: center;
	margin-bottom: 1.5rem;
}

.csd-page-title {
	margin-bottom: 0.5rem;
}

/* Category nav (switch between staff categories) */
.csd-category-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 2rem;
}

.csd-category-nav__link {
	padding: 0.5rem 1rem;
	border-radius: 999px;
	border: 1px solid #ccc;
	text-decoration: none;
	color: inherit;
	font-size: 0.9rem;
}

.csd-category-nav__link.is-active,
.csd-category-nav__link:hover {
	background: #2c3e50;
	border-color: #2c3e50;
	color: #fff;
}

.csd-category-nav-mobile {
	display: none;
}

.csd-category-nav-mobile__select {
	display: block;
	width: 100%;
	padding: 0.65rem 0.9rem;
	border-radius: 10px;
	border: 1px solid #ccc;
	background: #fff;
	font-size: 0.95rem;
	margin-bottom: 2rem;
}

@media (max-width: 640px) {
	/* Default mobile behaviour: scroll the tabs horizontally instead of
	   wrapping them onto multiple lines. */
	.csd-category-nav {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 0.25rem;
	}

	.csd-category-nav::-webkit-scrollbar {
		display: none;
	}

	.csd-category-nav__link {
		flex: 0 0 auto;
		white-space: nowrap;
	}

	/* When "Dropdown menu" is selected in Settings, hide the tab row on
	   mobile and show the <select> instead. */
	.csd-category-nav--desktop-only {
		display: none;
	}

	.csd-category-nav-mobile {
		display: block;
	}
}

/* Category overview cards (on the main Staff archive) */
.csd-category-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-bottom: 2.5rem;
}

.csd-category-card {
	display: block;
	padding: 1.5rem;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	text-align: center;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.csd-category-card:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.csd-category-card h2 {
	margin: 0 0 0.35rem;
	font-size: 1.1rem;
}

.csd-category-card__count {
	font-size: 0.85rem;
	color: #777;
}

/* Staff grid + cards */
.csd-staff-grid {
	display: grid;
	grid-template-columns: repeat(var(--csd-desktop-columns), 1fr);
	gap: 2rem;
}

@media (max-width: 640px) {
	.csd-staff-grid {
		grid-template-columns: repeat(var(--csd-mobile-columns), 1fr);
		gap: 1.25rem;
	}
}

.csd-staff-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.csd-staff-card:hover {
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
	transform: translateY(-3px);
}

.csd-staff-card__photo {
	aspect-ratio: 1 / 1;
	background: #eeeeee;
	overflow: hidden;
}

.csd-staff-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.csd-staff-card__photo-placeholder {
	width: 100%;
	height: 100%;
	background: #e0e0e0;
}

.csd-staff-card__body {
	padding: 1.4rem 1.1rem 1.7rem;
	text-align: center;
}

.csd-staff-card__name {
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #161616;
}

.csd-staff-card__designation {
	margin: 0;
	font-weight: 500;
	color: #7a7a7a;
	font-size: 0.85rem;
}

.csd-staff-card__department {
	margin: 0.2rem 0 0;
	font-size: 0.78rem;
	color: #999;
}

/* Single staff profile */
.csd-single-staff {
	max-width: 1100px;
}

.csd-back-link {
	display: inline-block;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
	color: #555;
	text-decoration: none;
}

.csd-back-link:hover {
	color: #161616;
	text-decoration: underline;
}

.csd-staff-profile--sidebar {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 3rem;
	align-items: start;
}

/* Left column: photo card */
.csd-staff-profile__sidebar {
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.csd-staff-profile__sidebar .csd-staff-profile__photo {
	aspect-ratio: 1 / 1;
	background: #eee;
}

.csd-staff-profile__sidebar .csd-staff-profile__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.csd-staff-profile__sidebar-body {
	padding: 1.5rem 1.6rem 1.8rem;
}

.csd-staff-profile__name {
	margin: 0 0 0.2rem;
	font-size: 1.2rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: #161616;
}

.csd-staff-profile__designation {
	font-size: 0.9rem;
	font-weight: 500;
	color: #777;
	margin: 0 0 0.8rem;
}

.csd-staff-profile__department {
	color: #999;
	font-size: 0.8rem;
	margin: -0.6rem 0 0.8rem;
}

.csd-staff-profile__contact-line {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.88rem;
	margin: 0 0 0.5rem;
	color: #333;
}

.csd-staff-profile__contact-line a {
	color: #333;
	text-decoration: none;
	word-break: break-all;
}

.csd-staff-profile__contact-line a:hover {
	text-decoration: underline;
}

.csd-icon {
	flex: 0 0 auto;
	color: #999;
	font-size: 0.95rem;
	line-height: 1;
}

.csd-icon-email::before {
	content: "\2709";
}

.csd-icon-phone::before {
	content: "\260E";
}

.csd-staff-profile__joining {
	margin-top: 1.4rem;
	padding-top: 1.2rem;
	border-top: 1px solid #eee;
}

.csd-staff-profile__joining h3 {
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #161616;
	margin: 0 0 0.3rem;
}

.csd-staff-profile__joining p {
	margin: 0;
	color: #666;
	font-size: 0.88rem;
}

.csd-staff-profile__sidebar-body .csd-staff-profile__social {
	list-style: none;
	margin: 1.4rem 0 0;
	padding: 1.2rem 0 0;
	border-top: 1px solid #eee;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

/* Right column: content sections, no card */
.csd-staff-profile__categories {
	margin: 0 0 1.5rem;
}

.csd-category-badge {
	display: inline-block;
	background: #f4f4f4;
	border-radius: 999px;
	padding: 0.25rem 0.85rem;
	font-size: 0.78rem;
	text-decoration: none;
	color: #444;
	margin: 0 0.35rem 0.35rem 0;
}

.csd-profile-section {
	margin-bottom: 2.75rem;
}

.csd-profile-section:last-child {
	margin-bottom: 0;
}

.csd-section-heading {
	font-size: 1.9rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: #161616;
	line-height: 1.15;
	margin: 0 0 1.1rem;
}

.csd-personal-info p {
	margin: 0 0 0.75rem;
	font-weight: 600;
	color: #555;
	font-size: 0.95rem;
	line-height: 1.6;
}

.csd-bullet-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.csd-bullet-list li {
	position: relative;
	padding-left: 1.7rem;
	margin-bottom: 0.9rem;
	color: #444;
	font-size: 0.95rem;
	line-height: 1.6;
}

.csd-bullet-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.25em;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid #808080;
	background: radial-gradient(circle, #808080 0 3px, transparent 4px);
}

.csd-staff-profile__bio {
	line-height: 1.7;
	color: #333;
}

.csd-social-pill {
	display: inline-block;
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	border: 1px solid #ddd;
	font-size: 0.82rem;
	text-decoration: none;
	color: #333;
	transition: background 0.15s ease, color 0.15s ease;
}

.csd-social-pill:hover {
	background: #161616;
	border-color: #161616;
	color: #fff;
}

@media (max-width: 782px) {
	.csd-staff-profile--sidebar {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.csd-staff-profile__sidebar {
		max-width: 360px;
		margin: 0 auto;
	}

	.csd-section-heading {
		font-size: 1.5rem;
	}
}
