/**
 * EBA Team Manager — frontend styles.
 *
 * Light, premium, structured look for a competition-BBQ platform.
 * Flat design: no drop shadows, no gradients. Red brand accent (#be1718).
 * All classes are prefixed with `eba-team-`.
 *
 * Everything is scoped to `.eba-team-wrap` so it never leaks into the theme,
 * and theme link styles (underlines) are explicitly neutralised.
 */

.eba-team-wrap {
	/* Palette (light) */
	--eba-page: #ffffff;
	--eba-surface: #ffffff;
	--eba-surface-2: #f6f6f8;
	--eba-ink: #16171c;
	--eba-ink-soft: #3c3d44;
	--eba-muted: #71727a;
	--eba-accent: #be1718;
	--eba-accent-hover: #a01315;
	--eba-accent-tint: rgba(190, 23, 24, 0.08);
	--eba-white: #ffffff;
	--eba-border: #e5e5ea;
	--eba-border-strong: #d5d5dc;

	/* Typography */
	--eba-font-head: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
	--eba-font-body: "Inter", Arial, Helvetica, sans-serif;

	/* Shape & rhythm */
	--eba-radius: 16px;
	--eba-radius-md: 12px;
	--eba-radius-sm: 9px;

	/* Subtle, premium elevation (kept soft on purpose). */
	--eba-shadow: 0 1px 2px rgba(20, 21, 26, 0.05), 0 14px 36px -16px rgba(20, 21, 26, 0.16);

	position: relative;
	/*
	 * Content is capped for a comfortable measure, while the WHITE surface
	 * bleeds across the full viewport width so no theme background (black)
	 * shows in the side gutters.
	 *
	 * The bleed uses box-shadow (which never creates horizontal scroll) and
	 * clip-path to keep it to the plugin's own vertical extent — this is a
	 * scroll-safe alternative to a 100vw element.
	 */
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 44px) clamp(40px, 5vw, 64px);
	background: var(--eba-page);
	box-shadow: 0 0 0 50vw var(--eba-page);
	clip-path: inset(0 -50vw);
	color: var(--eba-ink);
	font-family: var(--eba-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	/* overflow stays visible so the sticky save bar keeps working. */
}

/* Brand accent along the top edge of the content area. */
.eba-team-wrap::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--eba-accent);
}

@media (prefers-reduced-motion: no-preference) {
	.eba-team-wrap {
		animation: eba-team-fade 0.4s ease both;
	}

	@keyframes eba-team-fade {
		from {
			opacity: 0;
			transform: translateY(8px);
		}
		to {
			opacity: 1;
			transform: none;
		}
	}
}

/* Inline SVG icons inherit the surrounding text color. */
.eba-team-ic {
	width: 1.05em;
	height: 1.05em;
	flex: 0 0 auto;
	vertical-align: -0.15em;
}

/* -----------------------------------------------------------------------
 * Theme integration (Astra)
 *
 * This stylesheet only loads on EBA plugin views. Astra's own containers
 * are transparent and the site background is dark, so the dark colour
 * shows above/below our content. We paint the whole content column white
 * and hide the duplicate theme page title — the site header and footer
 * keep the theme's own styling.
 * --------------------------------------------------------------------- */
/*
 * IMPORTANT: target the content column only — never `.ast-container`, which
 * Astra also uses inside the site header/footer (that would turn the nav
 * white on the single-team view, where Astra's native header is used).
 */
.ast-separate-container #content,
.ast-separate-container .content-area,
.ast-separate-container #primary,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-separate-container .entry-content,
.ast-plain-container #content,
.ast-plain-container .entry-content {
	background-color: #ffffff !important;
}

/*
 * Remove the theme's entry header on plugin pages — this drops both the
 * duplicated page/team title AND the author/date byline
 * ("Von info@… / Juli 21, 2026"), since the plugin renders its own heading.
 */
.ast-separate-container .entry-header,
.ast-separate-container .ast-archive-description,
.ast-plain-container .entry-header {
	display: none !important;
}

.eba-team-wrap *,
.eba-team-wrap *::before,
.eba-team-wrap *::after {
	box-sizing: border-box;
}

/* Kill theme link underlines everywhere inside the plugin. */
.eba-team-wrap a {
	text-decoration: none !important;
}

/* Comfortable reading widths give the pages real structure. */
.eba-team-dashboard,
.eba-team-formpage {
	max-width: 920px;
	margin: 0 auto;
}

/* ---------- Typography ---------- */

.eba-team-title {
	font-family: var(--eba-font-head);
	font-weight: 400;
	font-size: clamp(2.2rem, 4.6vw, 3.4rem);
	line-height: 1.03;
	letter-spacing: 0.015em;
	margin: 0;
	color: var(--eba-ink);
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.eba-team-eyebrow {
	font-family: var(--eba-font-body);
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--eba-accent);
	margin: 0 0 10px;
}

.eba-team-subtitle {
	color: var(--eba-muted);
	margin: 10px 0 26px;
	font-size: 1rem;
}

.eba-team-subtitle-strong {
	font-family: var(--eba-font-head);
	font-size: 1.9rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin: 0 0 8px;
	color: var(--eba-ink);
}

.eba-team-section-title,
.eba-team-box-title {
	font-family: var(--eba-font-head);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--eba-ink);
	margin: 0 0 16px;
}

.eba-team-section-title {
	display: flex;
	align-items: center;
	gap: 11px;
	font-size: 1.55rem;
	padding-bottom: 12px;
	position: relative;
}

.eba-team-section-title .eba-team-ic {
	color: var(--eba-accent);
	width: 1em;
	height: 1em;
}

/* Structured red marker under section titles (decorative, not a link). */
.eba-team-section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 44px;
	height: 3px;
	background: var(--eba-accent);
	border-radius: 2px;
}

.eba-team-box-title {
	font-size: 1.2rem;
}

.eba-team-help {
	color: var(--eba-muted);
	font-size: 0.84rem;
	margin: 7px 0 0;
	line-height: 1.5;
}

.eba-team-help--lead {
	font-size: 0.96rem;
	margin: 0 0 26px;
	color: var(--eba-ink-soft);
}

/* Recommended-size hint: subtle, structured, with a small brand dot. */
.eba-team-help--rec {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	color: var(--eba-ink-soft);
	background: var(--eba-surface-2);
	border: 1px solid var(--eba-border);
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 0.78rem;
	font-weight: 500;
}

.eba-team-help--rec::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--eba-accent);
	transform: translateY(-1px);
}

.eba-team-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Cards & surfaces ---------- */

.eba-team-card {
	background: var(--eba-surface);
	border: 1px solid var(--eba-border);
	border-radius: var(--eba-radius-md);
	padding: clamp(20px, 3vw, 30px);
	box-shadow: var(--eba-shadow);
}

/* ---------- Buttons & links ---------- */

.eba-team-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--eba-font-body);
	font-weight: 600;
	font-size: 0.92rem;
	line-height: 1;
	padding: 14px 24px;
	border-radius: var(--eba-radius-sm);
	border: 1.5px solid transparent;
	cursor: pointer;
	text-align: center;
	white-space: nowrap;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.eba-team-btn--primary {
	background: var(--eba-accent);
	color: var(--eba-white);
	border-color: var(--eba-accent);
}

.eba-team-btn--primary:hover,
.eba-team-btn--primary:focus {
	background: var(--eba-accent-hover);
	border-color: var(--eba-accent-hover);
	color: var(--eba-white);
}

.eba-team-btn--ghost {
	background: var(--eba-surface);
	color: var(--eba-ink);
	border-color: var(--eba-border-strong);
}

.eba-team-btn--ghost:hover,
.eba-team-btn--ghost:focus {
	border-color: var(--eba-accent);
	color: var(--eba-accent);
}

.eba-team-btn--disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.eba-team-link {
	color: var(--eba-accent);
	font-weight: 600;
	transition: color 0.16s ease;
}

.eba-team-link:hover {
	color: var(--eba-accent-hover);
}

.eba-team-link--arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.eba-team-link--arrow .eba-team-ic {
	transition: transform 0.18s ease;
}

.eba-team-link--arrow:hover .eba-team-ic {
	transform: translateX(4px);
}

.eba-team-link-muted {
	color: var(--eba-muted);
	font-size: 0.9rem;
	font-weight: 500;
	transition: color 0.16s ease;
}

.eba-team-link-muted:hover {
	color: var(--eba-ink);
}

.eba-team-link-muted--danger:hover {
	color: var(--eba-accent);
}

/* ---------- Forms ---------- */

.eba-team-auth {
	max-width: 500px;
	margin: 0 auto;
	padding: clamp(26px, 4vw, 40px);
}

/* Brand mark on the auth cards. */
.eba-team-auth__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--eba-accent-tint);
	color: var(--eba-accent);
	margin-bottom: 18px;
}

.eba-team-auth__icon .eba-team-ic {
	width: 26px;
	height: 26px;
}

.eba-team-form .eba-team-field {
	margin-bottom: 20px;
}

.eba-team-field label {
	display: block;
	font-weight: 600;
	font-size: 0.88rem;
	margin-bottom: 8px;
	color: var(--eba-ink);
}

.eba-team-req {
	color: var(--eba-accent);
}

.eba-team-field input[type="text"],
.eba-team-field input[type="email"],
.eba-team-field input[type="url"],
.eba-team-field input[type="password"],
.eba-team-field input[type="number"],
.eba-team-field input[type="search"],
.eba-team-field select,
.eba-team-field textarea,
.eba-team-filters input[type="search"],
.eba-team-filters select {
	width: 100%;
	background: var(--eba-surface);
	border: 1px solid var(--eba-border-strong);
	border-radius: var(--eba-radius-sm);
	color: var(--eba-ink);
	font-family: var(--eba-font-body);
	font-size: 0.95rem;
	line-height: 1.4;
	padding: 12px 14px;
	transition: border-color 0.15s ease, outline-color 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

/*
 * Selects: force our own height so a theme rule (fixed height / large
 * line-height) can't clip the label. Fixes the half-cut country dropdown.
 */
.eba-team-field select,
.eba-team-filters select {
	height: auto !important;
	min-height: 50px;
	line-height: 1.4 !important;
	vertical-align: middle;
	text-overflow: ellipsis;
}

.eba-team-field textarea {
	resize: vertical;
	min-height: 96px;
	line-height: 1.6;
}

.eba-team-field input:focus,
.eba-team-field select:focus,
.eba-team-field textarea:focus,
.eba-team-filters input:focus,
.eba-team-filters select:focus {
	border-color: var(--eba-accent);
	outline: 3px solid var(--eba-accent-tint);
	outline-offset: 0;
}

.eba-team-field input::placeholder,
.eba-team-field textarea::placeholder,
.eba-team-filters input::placeholder {
	color: #a6a7ae;
}

.eba-team-field select {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2371727a' stroke-width='1.6' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 40px;
}

.eba-team-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

/* Numbered form sections: 01 Core details, 02 Images, 03 Videos, … */
.eba-team-form {
	counter-reset: eba-section;
}

.eba-team-fieldset {
	border: 1px solid var(--eba-border);
	border-radius: var(--eba-radius-md);
	background: var(--eba-surface);
	padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 30px) 12px;
	margin: 0 0 26px;
	box-shadow: var(--eba-shadow);
}

.eba-team-legend {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--eba-font-head);
	font-size: 1.4rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--eba-ink);
	padding: 0 12px;
	margin-left: -12px;
}

.eba-team-legend::before {
	counter-increment: eba-section;
	content: counter(eba-section, decimal-leading-zero);
	font-family: var(--eba-font-body);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: var(--eba-white);
	background: var(--eba-accent);
	border-radius: 999px;
	padding: 5px 10px;
	line-height: 1;
	transform: translateY(-1px);
}

.eba-team-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	color: var(--eba-ink-soft);
	cursor: pointer;
}

.eba-team-check--sm {
	font-size: 0.8rem;
	color: var(--eba-muted);
}

.eba-team-check input {
	width: 16px;
	height: 16px;
	accent-color: var(--eba-accent);
}

/* Required confirmation checkboxes */
.eba-team-consent .eba-team-field--consent {
	margin-bottom: 14px;
}

.eba-team-check--consent {
	align-items: flex-start;
	gap: 12px;
	font-weight: 500;
	color: var(--eba-ink-soft);
	line-height: 1.5;
	font-size: 0.92rem;
}

.eba-team-check--consent input {
	margin-top: 2px;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

.eba-team-check--consent a {
	color: var(--eba-accent);
	font-weight: 600;
}

/* Lighter consent block for the narrow auth (register) card. */
.eba-team-consent--auth {
	margin: 6px 0 22px;
	padding-top: 18px;
	border-top: 1px solid var(--eba-border);
}

.eba-team-consent--auth .eba-team-check--consent {
	font-size: 0.86rem;
}

.eba-team-field--inline {
	display: flex;
	align-items: center;
}

.eba-team-actions {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	margin-top: 8px;
}

/* Save bar stays reachable while scrolling the long form. */
.eba-team-actions--sticky {
	position: sticky;
	bottom: 16px;
	z-index: 30;
	background: var(--eba-surface);
	border: 1px solid var(--eba-border);
	border-radius: var(--eba-radius-md);
	padding: 14px 18px;
	box-shadow: var(--eba-shadow);
}

.eba-team-field-error {
	display: block;
	color: var(--eba-accent);
	font-size: 0.82rem;
	font-weight: 600;
	margin-top: 7px;
}

/* Honeypot — off-screen. */
.eba-team-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 0;
	overflow: hidden;
}

/* Current image preview + removal */
.eba-team-current {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
	padding: 10px;
	background: var(--eba-surface-2);
	border: 1px solid var(--eba-border);
	border-radius: var(--eba-radius-sm);
}

.eba-team-current__img {
	border: 1px solid var(--eba-border);
	border-radius: var(--eba-radius-sm);
	object-fit: cover;
	background: var(--eba-surface);
}

.eba-team-gallery-edit {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 12px;
	margin-bottom: 14px;
}

.eba-team-gallery-edit__item {
	border: 1px solid var(--eba-border);
	border-radius: var(--eba-radius-sm);
	padding: 8px;
	text-align: center;
	background: var(--eba-surface-2);
}

.eba-team-gallery-edit__img {
	width: 100%;
	height: 84px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
	margin-bottom: 8px;
}

/* File inputs — styled as friendly dropzones. */
.eba-team-field input[type="file"] {
	width: 100%;
	font-size: 0.88rem;
	color: var(--eba-ink-soft);
	background: var(--eba-surface-2);
	border: 1.5px dashed var(--eba-border-strong);
	border-radius: var(--eba-radius-sm);
	padding: 18px 16px;
	cursor: pointer;
	transition: border-color 0.16s ease, background-color 0.16s ease;
}

.eba-team-field input[type="file"]:hover {
	border-color: var(--eba-accent);
	background: var(--eba-accent-tint);
}

.eba-team-field input[type="file"]::file-selector-button {
	font-family: var(--eba-font-body);
	font-weight: 600;
	font-size: 0.82rem;
	color: var(--eba-white);
	background: var(--eba-ink);
	border: 0;
	border-radius: 6px;
	padding: 9px 14px;
	margin-right: 12px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.eba-team-field input[type="file"]::file-selector-button:hover {
	background: var(--eba-accent);
}

/* ---------- Alerts ---------- */

.eba-team-alert {
	border-radius: var(--eba-radius-sm);
	padding: 14px 16px;
	margin-bottom: 22px;
	font-size: 0.92rem;
	border: 1px solid var(--eba-border);
}

.eba-team-alert ul {
	margin: 0;
	padding-left: 18px;
}

.eba-team-alert--error {
	border-color: #f2c4c3;
	background: #fdecec;
	color: #96201d;
}

.eba-team-alert--warning {
	border-color: #efd7a8;
	background: #fdf5e2;
	color: #7c5e00;
}

.eba-team-alert--success {
	border-color: #bfe6cd;
	background: #eafaf0;
	color: #17683f;
}

/* ---------- Notice block ---------- */

.eba-team-notice {
	max-width: 520px;
	margin: 0 auto;
	text-align: center;
}

.eba-team-notice__text {
	font-size: 1.05rem;
	margin: 0 0 20px;
	color: var(--eba-ink);
}

/* ---------- Dashboard ---------- */

.eba-team-dashboard__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding-bottom: 22px;
	margin-bottom: 26px;
	border-bottom: 1px solid var(--eba-border);
}

.eba-team-status-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	flex-wrap: wrap;
	border-left: 3px solid var(--eba-accent);
}

.eba-team-status-card__info {
	flex: 1 1 300px;
}

.eba-team-status-card__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 230px;
}

.eba-team-status-line {
	margin: 6px 0 0;
	color: var(--eba-muted);
	display: flex;
	align-items: center;
	gap: 8px;
}

.eba-team-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border: 1px solid var(--eba-border);
	color: var(--eba-ink);
}

.eba-team-badge--publish {
	background: #eafaf0;
	border-color: #bfe6cd;
	color: #17683f;
}

.eba-team-badge--pending {
	background: #fdf5e2;
	border-color: #efd7a8;
	color: #7c5e00;
}

.eba-team-badge--draft {
	background: var(--eba-surface-2);
	border-color: var(--eba-border);
	color: var(--eba-muted);
}

.eba-team-dashboard__links {
	margin-top: 26px;
}

/* ---------- Profile completeness ---------- */

.eba-team-progress {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--eba-border);
	max-width: 420px;
}

.eba-team-progress__top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 8px;
}

.eba-team-progress__label {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--eba-muted);
}

.eba-team-progress__value {
	font-family: var(--eba-font-head);
	font-size: 1.35rem;
	color: var(--eba-ink);
}

.eba-team-progress__track {
	height: 8px;
	border-radius: 999px;
	background: var(--eba-border);
	overflow: hidden;
}

.eba-team-progress__fill {
	height: 100%;
	border-radius: 999px;
	background: var(--eba-accent);
	transition: width 0.5s ease;
}

.eba-team-progress__hint {
	margin: 10px 0 0;
	font-size: 0.82rem;
	color: var(--eba-muted);
}

.eba-team-progress__hint--done {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #17683f;
	font-weight: 600;
}

/* ---------- Chips ---------- */

.eba-team-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--eba-surface);
	border: 1px solid var(--eba-border);
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--eba-ink-soft);
}

.eba-team-chip .eba-team-ic {
	color: var(--eba-accent);
}

/* ---------- Facts list (single page aside) ---------- */

.eba-team-facts {
	list-style: none;
	margin: 0;
	padding: 0;
}

.eba-team-facts li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid var(--eba-border);
}

.eba-team-facts li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.eba-team-facts__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border-radius: 10px;
	background: var(--eba-accent-tint);
	color: var(--eba-accent);
}

.eba-team-facts__body {
	font-size: 0.92rem;
	color: var(--eba-ink);
	overflow-wrap: anywhere;
}

.eba-team-facts__body a {
	color: var(--eba-accent);
	font-weight: 600;
}

.eba-team-facts__label {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--eba-muted);
	margin-bottom: 1px;
}

/* ---------- Videos ---------- */

.eba-team-videos {
	display: grid;
	gap: 18px;
}

.eba-team-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--eba-radius-md);
	overflow: hidden;
	border: 1px solid var(--eba-border);
	background: var(--eba-surface-2);
	box-shadow: var(--eba-shadow);
}

.eba-team-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.eba-team-video {
	width: 100%;
	display: block;
	border-radius: var(--eba-radius-md);
	border: 1px solid var(--eba-border);
	background: var(--eba-surface-2);
	box-shadow: var(--eba-shadow);
}

/* Small video preview in the edit form. */
.eba-team-current--video {
	align-items: flex-start;
}

.eba-team-current__video {
	width: 200px;
	max-width: 50%;
	border-radius: var(--eba-radius-sm);
	border: 1px solid var(--eba-border);
	background: var(--eba-surface-2);
}

/* ---------- Form page ---------- */

.eba-team-formpage__head,
.eba-team-directory__head {
	margin-bottom: 26px;
}

.eba-team-formpage__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--eba-border);
}

/* ---------- Directory ---------- */

.eba-team-directory__head {
	padding-bottom: 20px;
	border-bottom: 1px solid var(--eba-border);
}

.eba-team-filters {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
	margin: 26px 0 32px;
	padding: 18px;
	background: var(--eba-surface);
	border: 1px solid var(--eba-border);
	border-radius: var(--eba-radius-md);
	box-shadow: var(--eba-shadow);
}

.eba-team-filters__search {
	flex: 1 1 280px;
}

.eba-team-filters__country {
	flex: 0 1 220px;
}

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

.eba-team-grid--cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.eba-team-grid--cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

.eba-team-cardlink {
	padding: 0;
	overflow: hidden;
	background: var(--eba-surface);
	border: 1px solid var(--eba-border);
	border-radius: var(--eba-radius-md);
	box-shadow: var(--eba-shadow);
	transition: transform 0.18s ease, border-color 0.18s ease;
}

.eba-team-cardlink:hover {
	transform: translateY(-3px);
	border-color: var(--eba-accent);
}

.eba-team-cardlink__anchor {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--eba-ink);
}

/* Big image on top, with an overlaid red pill badge. */
.eba-team-cardlink__media {
	position: relative;
	aspect-ratio: 16 / 11;
	background: var(--eba-surface-2);
	overflow: hidden;
}

.eba-team-cardlink__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.eba-team-cardlink:hover .eba-team-cardlink__img {
	transform: scale(1.04);
}

.eba-team-cardlink__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--eba-font-head);
	font-size: 4rem;
	color: var(--eba-accent);
	background: var(--eba-accent-tint);
}

.eba-team-cardlink__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	background: var(--eba-accent);
	color: #ffffff;
	font-weight: 700;
	font-size: 0.72rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 8px 16px;
	border-radius: 999px;
	line-height: 1;
}

.eba-team-cardlink__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 26px;
}

.eba-team-cardlink__country {
	color: var(--eba-accent);
	font-size: 0.76rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin: 0 0 10px;
}

.eba-team-cardlink__name {
	font-family: var(--eba-font-head);
	font-size: 1.95rem;
	line-height: 1.02;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin: 0 0 14px;
	color: var(--eba-ink);
}

.eba-team-cardlink__desc {
	color: var(--eba-muted);
	font-size: 0.95rem;
	line-height: 1.55;
	margin: 0 0 24px;
	flex: 1;
}

.eba-team-cardlink__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	color: var(--eba-ink);
	font-weight: 700;
	font-size: 0.95rem;
}

.eba-team-cardlink__arrow {
	transition: transform 0.18s ease, color 0.18s ease;
}

.eba-team-cardlink:hover .eba-team-cardlink__arrow {
	transform: translateX(5px);
	color: var(--eba-accent);
}

.eba-team-empty {
	text-align: center;
	color: var(--eba-muted);
}

.eba-team-pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 36px;
	flex-wrap: wrap;
}

.eba-team-pagination__item {
	min-width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--eba-border-strong);
	border-radius: var(--eba-radius-sm);
	color: var(--eba-ink);
	font-weight: 600;
	font-size: 0.9rem;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.eba-team-pagination__item:hover {
	border-color: var(--eba-accent);
	color: var(--eba-accent);
}

.eba-team-pagination__item.is-current {
	background: var(--eba-accent);
	border-color: var(--eba-accent);
	color: var(--eba-white);
}

/* ---------- Single team ---------- */

/* Full-width hero (cover image or brand placeholder). */
.eba-team-single__hero {
	position: relative;
	aspect-ratio: 16 / 6;
	border-radius: var(--eba-radius-md);
	overflow: hidden;
	border: 1px solid var(--eba-border);
	background: var(--eba-surface-2);
	box-shadow: var(--eba-shadow);
}

.eba-team-single__hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.eba-team-single__hero--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--eba-accent-tint);
	color: rgba(190, 23, 24, 0.28);
}

.eba-team-single__hero--empty .eba-team-ic {
	width: 110px;
	height: 110px;
	stroke-width: 1.2;
}

/*
 * Header row below the hero. Only the logo overlaps the image —
 * the team name always sits on a solid background (readable).
 */
.eba-team-single__head {
	display: flex;
	align-items: flex-end;
	gap: 24px;
	flex-wrap: wrap;
	padding: 0 clamp(4px, 2vw, 22px);
	margin-bottom: 38px;
}

.eba-team-single__logo {
	width: 128px;
	height: 128px;
	flex: 0 0 128px;
	margin-top: -54px;
	position: relative;
	z-index: 2;
	border-radius: var(--eba-radius-md);
	border: 4px solid var(--eba-page);
	background: var(--eba-surface);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-shadow: var(--eba-shadow);
}

.eba-team-single__logo-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.eba-team-single__logo-placeholder {
	font-family: var(--eba-font-head);
	font-size: 3.2rem;
	color: var(--eba-accent);
}

.eba-team-single__headinfo {
	flex: 1 1 320px;
	padding-top: 16px;
}

.eba-team-single__kicker {
	display: inline-block;
	background: var(--eba-accent);
	color: var(--eba-white);
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	border-radius: 999px;
	padding: 6px 14px;
	line-height: 1;
	margin: 0 0 12px;
}

.eba-team-single__name {
	font-family: var(--eba-font-head);
	font-size: clamp(2.4rem, 5.5vw, 3.8rem);
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin: 0 0 14px;
	color: var(--eba-ink);
	overflow-wrap: anywhere;
}

.eba-team-single__chips {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.eba-team-single__headactions {
	padding: 16px 0 4px;
}

.eba-team-single__back {
	padding: 4px 6px 0;
}

.eba-team-single__layout {
	display: grid;
	grid-template-columns: 1fr 330px;
	gap: 40px;
	align-items: start;
}

.eba-team-single__lead {
	font-size: 1.22rem;
	color: var(--eba-ink);
	margin: 0 0 30px;
	line-height: 1.5;
	font-weight: 500;
}

.eba-team-single__section {
	margin-bottom: 40px;
}

.eba-team-single__richtext {
	color: var(--eba-ink-soft);
}

.eba-team-single__richtext p {
	margin: 0 0 14px;
}

.eba-team-single__richtext a {
	color: var(--eba-accent);
	font-weight: 600;
}

.eba-team-single__box {
	margin-bottom: 20px;
}

.eba-team-social {
	list-style: none;
	margin: 0;
	padding: 0;
}

.eba-team-social li {
	border-bottom: 1px solid var(--eba-border);
}

.eba-team-social li:last-child {
	border-bottom: 0;
}

.eba-team-social__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 0;
	color: var(--eba-ink);
	font-weight: 600;
	transition: color 0.15s ease;
}

.eba-team-social__name {
	display: inline-flex;
	align-items: center;
	gap: 11px;
}

.eba-team-social__name .eba-team-ic {
	color: var(--eba-accent);
	width: 1.15em;
	height: 1.15em;
}

.eba-team-social__arrow {
	color: var(--eba-muted);
	font-weight: 400;
	transition: transform 0.16s ease, color 0.16s ease;
}

.eba-team-social__link:hover {
	color: var(--eba-accent);
}

.eba-team-social__link:hover .eba-team-social__arrow {
	color: var(--eba-accent);
	transform: translate(2px, -2px);
}

/* Gallery */
.eba-team-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
}

.eba-team-gallery__item {
	display: block;
	border-radius: var(--eba-radius-sm);
	overflow: hidden;
	border: 1px solid var(--eba-border);
	aspect-ratio: 1 / 1;
}

.eba-team-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}

.eba-team-gallery__item:hover .eba-team-gallery__img {
	transform: scale(1.05);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.eba-team-single__layout {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.eba-team-grid,
	.eba-team-grid--cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.eba-team-grid,
	.eba-team-grid--cols-2,
	.eba-team-grid--cols-4 {
		grid-template-columns: 1fr;
	}

	.eba-team-grid-2 {
		grid-template-columns: 1fr;
	}

	.eba-team-single__hero {
		aspect-ratio: 16 / 9;
	}

	.eba-team-single__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.eba-team-single__logo {
		width: 96px;
		height: 96px;
		flex-basis: auto;
		margin-top: -44px;
	}

	.eba-team-single__headinfo {
		padding-top: 4px;
	}

	.eba-team-actions--sticky {
		bottom: 8px;
	}

	.eba-team-status-card__actions {
		width: 100%;
		min-width: 0;
	}

	.eba-team-dashboard__head {
		flex-direction: row;
		align-items: flex-start;
	}
}
