/* Rasa Team — front-end additions. Builds on the theme's existing
   .team-card / .team-av / .team-info / .team-role / .team-grid styles
   in main.css; only the new pieces (avatar photo, phone, socials) live here.
   Uses the theme CSS variables (--blue-600, --line, --card, --muted, --grad-blue). */

.rasa-team-grid { display: grid; }

.team-card { position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.team-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.team-card:hover, .team-card:focus-within { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(15, 23, 42, .14); }
.team-card-link:focus-visible { outline: 3px solid var(--blue-600, #2563eb); outline-offset: 4px; }

/* Avatar: show a real photo when set, otherwise the gradient circle keeps
   the initials supplied by the shortcode. */
.team-av img {
	width: 100%; height: 100%;
	object-fit: cover; border-radius: 50%;
	display: block;
}

.team-desc { margin-top: 2px; }
.team-desc p:last-child { margin-bottom: 0; }

/* Phone + socials block under the description */
.team-contact { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.team-phone, .team-socials { position: relative; z-index: 2; }

.team-phone {
	display: inline-flex; align-items: center; gap: 7px;
	color: var(--blue-600); font-weight: 700; font-size: 14px;
	text-decoration: none; width: max-content; direction: ltr;
}
.team-phone svg { width: 16px; height: 16px; flex: none; }
.team-phone:hover { text-decoration: underline; }

.team-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.team-soc {
	width: 36px; height: 36px; border-radius: 50%;
	display: grid; place-items: center;
	border: 1.5px solid var(--line); background: var(--card);
	color: var(--blue-600);
	transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.team-soc svg { width: 17px; height: 17px; }
.team-soc img { width: 18px; height: 18px; object-fit: contain; }
.team-soc:hover { background: var(--grad-blue); color: #fff; border-color: transparent; transform: translateY(-2px); }

/* On very narrow screens stack the card so the avatar sits above the text.
   Higher specificity than `.page .team-card{flex-direction:row}` in main.css. */
@media (max-width: 480px) {
	.page .team-grid .team-card,
	.team-grid .team-card { flex-direction: column; text-align: center; }
	.team-grid .team-contact { align-items: center; }
	.team-grid .team-socials { justify-content: center; }
	.team-grid .team-phone { margin-inline: auto; }
}

/* Department tabs */
.rasa-team-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 26px;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: color-mix(in srgb, var(--card) 88%, var(--blue-600));
	box-shadow: var(--shadow-sm);
}
.rasa-team-filter {
	min-height: 42px;
	padding: 9px 16px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: transparent;
	color: var(--muted);
	font: inherit;
	font-size: 14px;
	font-weight: 750;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.rasa-team-filter span {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	margin-inline-start: 6px;
	padding-inline: 5px;
	border-radius: 99px;
	background: color-mix(in srgb, var(--blue-600) 10%, var(--card));
	color: var(--blue-600);
	font-size: 11px;
}
.rasa-team-filter:hover,
.rasa-team-filter:focus-visible { color: var(--ink); border-color: color-mix(in srgb, var(--blue-600) 28%, var(--line)); transform: translateY(-1px); outline: none; }
.rasa-team-filter.is-active { background: var(--grad-blue); color: #fff; box-shadow: var(--shadow-blue); }
.rasa-team-filter.is-active span { background: rgba(255,255,255,.2); color: #fff; }
.rasa-team-grid .team-card[hidden] { display: none; }
html.theme-dark .rasa-team-filters { background: color-mix(in srgb, var(--paper-2) 90%, var(--blue-600)); }
html.theme-dark .rasa-team-filter span { background: color-mix(in srgb, var(--paper-3) 65%, var(--card)); }
@media (max-width: 560px) {
	.rasa-team-filters { gap: 7px; margin-bottom: 20px; padding: 6px; }
	.rasa-team-filter { flex: 1 1 auto; padding-inline: 11px; font-size: 13px; }
}
