/**
 * Teams public archive, cards and single pages.
 */

.adam-teams-archive,
.adam-team-single {
	background: #f8fafc;
	color: #0f172a;
	font-family: inherit;
	line-height: 1.6;
}

.adam-teams-container,
.adam-team-container {
	margin: 0 auto;
	max-width: 1200px;
	padding-left: 24px;
	padding-right: 24px;
}

.adam-teams-archive {
	min-height: 70vh;
	padding: 0 0 72px;
}

.adam-teams-header {
	margin-bottom: 38px;
	max-width: none;
}

.adam-teams-header h1 {
	font-size: clamp(2.25rem, 5vw, 4rem);
	letter-spacing: -0.04em;
	line-height: 1.05;
	margin: 8px 0 14px;
}

.adam-teams-header p {
	color: #64748b;
	font-size: 1.125rem;
	margin: 0;
}

.adam-teams-kicker {
	color: var(--adam-primary);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.adam-team-filter {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.adam-team-filter label {
	font-size: 0.75rem;
	font-weight: 700;
}

.adam-team-filter input,
.adam-team-filter select {
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font: inherit;
	height: 42px;
	padding: 0 11px;
	width: 100%;
}

.adam-team-button {
	align-items: center;
	background: var(--adam-primary);
	border: 1px solid var(--adam-primary);
	border-radius: 8px;
	color: #fff;
	display: inline-flex;
	font-size: 0.875rem;
	font-weight: 700;
	justify-content: center;
	min-height: 42px;
	padding: 0 16px;
	text-decoration: none;
}

.adam-team-button:hover,
.adam-team-button:focus {
	background: #24491d;
	border-color: #24491d;
	color: #fff;
}

.adam-team-results-summary {
	color: #64748b;
	font-size: 0.875rem;
	margin-bottom: 16px;
}

.adam-team-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	transition: opacity 0.2s ease;
}

.adam-team-grid.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

.adam-team-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	overflow: hidden;
	position: relative;
}

.adam-team-card--associated {
	border-color: #88b73d;
	box-shadow: 0 8px 28px rgba(63, 92, 25, 0.12);
}

.adam-team-card__status {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	min-height: 32px;
	padding-top: 12px;
}

.adam-badge--associated {
	background: #e6f5cb;
	border: 1px solid #a7cf65;
	border-radius: 999px;
	color: #294515;
	font-size: 0.7rem;
	font-weight: 800;
	padding: 4px 9px;
}

.adam-team-card__association-badge {
	box-shadow: 0 4px 14px rgba(8, 24, 8, .28);
	max-width: calc(100% - 24px);
	position: absolute;
	right: 12px;
	top: 12px;
	z-index: 2;
}

.adam-team-card__media {
	background: #e9f4dc;
	display: block;
	height: 180px;
}

.adam-team-card__media img,
.adam-team-card__cover-placeholder,
.adam-team-card__media .adam-generated-placeholder {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.adam-team-card__cover-placeholder {
	background: linear-gradient(135deg, #e9f4dc, #e2e8f0);
}

.adam-team-card__body {
	padding: 0 20px 20px;
}

.adam-team-card__identity {
	align-items: end;
	display: flex;
	gap: 13px;
	margin-top: -32px;
	position: relative;
}

.adam-team-card__logo {
	--adam-team-logo-size: 72px;
	align-items: center;
	background: #fff;
	box-sizing: border-box;
	border-radius: 12px;
	display: flex;
	justify-content: center;
	overflow: hidden;
}

.adam-team-card__logo img,
.adam-team-card__logo .adam-generated-placeholder {
	height: 100%;
	object-fit: contain;
	object-position: center;
	width: 100%;
}

.adam-team-card h2 {
	font-size: 1.1rem;
	line-height: 1.25;
	margin: 0 0 3px;
}

.adam-team-card h2 a {
	color: #0f172a;
	text-decoration: none;
}

.adam-team-card__identity p,
.adam-team-card__meta {
	color: #64748b;
	font-size: 0.8rem;
	margin: 0;
}

.adam-team-card__meta {
	align-items: center;
	border-top: 1px solid #f1f5f9;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin-top: 16px;
	padding-top: 13px;
}

.adam-team-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 13px 0 16px;
}

.adam-team-badges span {
	background: #eef8df;
	border-radius: 999px;
	color: #315c25;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 4px 8px;
}

.adam-team-card .adam-team-button {
	width: 100%;
}

.adam-teams-empty {
	grid-column: 1 / -1;
}

.adam-teams-pagination {
	display: flex;
	gap: 7px;
	justify-content: center;
	margin-top: 32px;
}

.adam-teams-pagination :is(button, a) {
	align-items: center;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 7px;
	cursor: pointer;
	display: inline-flex;
	justify-content: center;
	min-height: 38px;
	padding: 0 12px;
	text-decoration: none;
}

.adam-teams-pagination [aria-current="page"] {
	background: var(--adam-primary);
	border-color: var(--adam-primary);
	color: #fff;
}

.adam-team-hero {
	background: #0f172a;
	color: #fff;
	overflow: hidden;
	position: relative;
}

.adam-team-hero::before {
	background: linear-gradient(180deg, rgba(2, 6, 23, .22) 0%, rgba(2, 6, 23, .5) 60%, rgba(2, 6, 23, .88) 100%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

.adam-team-hero__cover {
	height: clamp(250px, 40vw, 520px);
	overflow: visible;
	position: static;
}

.adam-team-hero__cover img,
.adam-team-hero__cover .adam-generated-placeholder {
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
	z-index: 0;
}

.adam-team-hero__content {
	align-items: end;
	display: flex;
	gap: 24px;
	margin-top: -86px;
	padding-bottom: 38px;
	position: relative;
	z-index: 2;
}

.adam-team-hero__details {
	flex: 1 1 auto;
	min-width: 0;
}

.adam-team-hero__logo {
	--adam-team-logo-size: 150px;
	align-items: center;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
	color: #64748b;
	display: flex;
	overflow: hidden;
	justify-content: center;
}

.adam-team-hero__logo img,
.adam-team-hero__logo .adam-generated-placeholder {
	height: 100%;
	object-fit: contain;
	object-position: center;
	width: 100%;
}

.adam-team-hero h1 {
	font-size: clamp(2rem, 5vw, 3.5rem);
	letter-spacing: -0.035em;
	line-height: 1.05;
	margin: 0;
}

.adam-team-hero p {
	color: #cbd5e1;
	margin: 6px 0;
}

.adam-team-hero__meta {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.adam-team-hero .adam-hero-social-links {
	flex: 0 0 auto;
	margin-bottom: 0;
}

.adam-recruitment {
	background: #334155;
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.35;
	padding: 4px 9px;
}

.adam-recruitment--recruiting,
.adam-recruitment--open { background: #15803d; }
.adam-recruitment--limited,
.adam-recruitment--invite_only { background: #2563eb; }
.adam-recruitment--not_recruiting,
.adam-recruitment--closed { background: #334155; }

.adam-team-content {
	display: grid;
	gap: 24px;
	padding-bottom: 72px;
	padding-top: 40px;
}

.adam-team-single .adam-team-button {
	background: var(--adam-team-colour);
	border-color: var(--adam-team-colour);
}

.adam-team-single .adam-team-badges span {
	color: var(--adam-team-colour);
}

.adam-team-section {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 30px;
}

.adam-team-section h2 {
	font-size: 1.45rem;
	margin: 0 0 20px;
}

.adam-team-lead {
	color: #475569;
	font-size: 1.1rem;
	font-weight: 600;
}

.adam-team-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.adam-team-stats div {
	border-left: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	padding: 4px 24px;
}

.adam-team-stats div:first-child {
	border-left: 0;
	padding-left: 0;
}

.adam-team-stats strong {
	font-size: 1.8rem;
}

.adam-team-stats span {
	color: #64748b;
	font-size: 0.78rem;
}

.adam-team-badges--large span {
	font-size: 0.78rem;
	padding: 6px 10px;
}

.adam-team-gallery {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(3, 1fr);
}

.adam-team-gallery a {
	border-radius: 9px;
	height: 230px;
	overflow: hidden;
}

.adam-team-gallery img {
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
	width: 100%;
}

.adam-team-gallery a:hover img {
	transform: scale(1.03);
}

.adam-team-contact-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.adam-team-map {
	border-radius: 10px;
	height: 380px;
	overflow: hidden;
}

.adam-team-map iframe {
	border: 0;
	height: 100%;
	width: 100%;
}

.adam-team-text-link {
	display: inline-block;
	font-weight: 700;
	margin-top: 12px;
}

.adam-lightbox {
	align-items: center;
	background: rgba(2, 6, 23, 0.94);
	bottom: 0;
	display: flex;
	justify-content: center;
	left: 0;
	padding: 50px;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 99999;
}

.adam-lightbox[hidden] {
	display: none;
}

.adam-lightbox img {
	max-height: 90vh;
	max-width: 90vw;
}

.adam-lightbox button {
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 2.5rem;
	position: absolute;
	right: 20px;
	top: 12px;
}

@media (max-width: 1100px) {
	.adam-team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
	.adam-teams-archive { padding-top: 42px; }
	.adam-team-grid { grid-template-columns: 1fr; }
	.adam-team-hero__content { align-items: flex-start; flex-direction: column; margin-top: -60px; }
	.adam-team-hero__logo { --adam-team-logo-size: 110px; }
	.adam-team-hero .adam-hero-social-links { align-self: flex-start; margin: 4px 0 0; }
	.adam-team-stats { grid-template-columns: 1fr; }
	.adam-team-stats div,
	.adam-team-stats div:first-child { border-left: 0; border-top: 1px solid #e2e8f0; padding: 14px 0; }
	.adam-team-stats div:first-child { border-top: 0; }
	.adam-team-gallery { grid-template-columns: 1fr 1fr; }
	.adam-team-gallery a { height: 170px; }
	.adam-team-section { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.adam-team-grid,
	.adam-team-gallery img { transition: none; }
}
