/* ==========================================================================
   team.css – STG Team page (founder highlight, team cards, profile pop-up,
   join-the-team box) and the team preview on the About page.
   Loaded only on the STG Team and About pages. Filter tab styles come from courses.css.
   ========================================================================== */

/* ---------- Founder highlight ---------- */
.dp-team-founder__grid { display: grid; grid-template-columns: 420px 1fr; gap: 70px; align-items: center; }
.dp-team-founder__photo { position: relative; margin: 0; }
.dp-team-founder__photo::before {
	content: ""; position: absolute; inset: -14px 14px 14px -14px;
	border: 1.5px solid var(--dp-accent); border-radius: var(--dp-radius);
}
.dp-team-founder__photo img {
	position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%;
	border-radius: var(--dp-radius); box-shadow: var(--dp-shadow);
}
.dp-team-founder__body .dp-company__stats { max-width: 520px; }

/* ---------- Featured team lead (Bibek Yadav) – mirrored founder layout ---------- */
.dp-team-lead {
	background:
		radial-gradient(ellipse 45% 60% at 85% 30%, rgba(75, 63, 166, .12), transparent 70%),
		linear-gradient(180deg, #f3f0fb, var(--dp-bg));
	border-top: 1px solid var(--dp-line);
}
.dp-team-lead__grid { display: grid; grid-template-columns: 1fr 420px; gap: 70px; align-items: center; }
.dp-team-lead__photo { position: relative; margin: 0; }
.dp-team-lead__photo::before { /* offset frame, opposite side to the founder's */
	content: ""; position: absolute; inset: -14px -14px 14px 14px;
	border: 1.5px solid #4b3fa6; border-radius: var(--dp-radius);
}
.dp-team-lead__photo img {
	position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
	border-radius: var(--dp-radius); box-shadow: var(--dp-shadow);
}
.dp-team-lead__badge {
	position: absolute; left: -28px; bottom: 34px;
	display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 16px;
	background: var(--dp-surface); box-shadow: var(--dp-shadow);
	animation: dp-lead-float 5s ease-in-out infinite;
}
.dp-team-lead__badge > .dp-icon {
	width: 42px; height: 42px; padding: 9px; border-radius: 12px;
	background: linear-gradient(145deg, #4b3fa6, #2a2f63); color: #fff;
}
.dp-team-lead__badge span { display: flex; flex-direction: column; font-size: 12.5px; color: var(--dp-muted); line-height: 1.3; }
.dp-team-lead__badge strong { font-size: 15px; color: var(--dp-ink); }
@keyframes dp-lead-float { 50% { transform: translateY(-8px); } }

.dp-team-lead__skills { list-style: none; margin: 22px 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dp-team-lead__skills li {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
	background: var(--dp-surface); border: 1px solid var(--dp-line); font-size: 13.5px; font-weight: 700; color: var(--dp-ink);
}
.dp-team-lead__skills .dp-icon { width: 15px; height: 15px; color: #4b3fa6; stroke-width: 3; }

.dp-team-lead__find { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dp-accent); }
.dp-team-lead__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.dp-team-lead__link--website { --b: #e0922f; }
.dp-team-lead__link--github { --b: #24292f; }
.dp-team-lead__link--linkedin { --b: #0a66c2; }
.dp-team-lead__link--instagram { --b: #d6249f; }
.dp-team-lead__link--facebook { --b: #1877f2; }
.dp-team-lead__link {
	display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px;
	background: var(--dp-surface); border: 1px solid var(--dp-line); color: var(--dp-ink); font-weight: 700; font-size: 14.5px;
	transition: background .3s, border-color .3s, color .3s, transform .3s var(--dp-ease), box-shadow .3s;
}
.dp-team-lead__link-icon {
	flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
	background: color-mix(in srgb, var(--b) 12%, transparent); color: var(--b); transition: background .3s, color .3s;
}
.dp-team-lead__link-icon .dp-icon { width: 19px; height: 19px; }
.dp-team-lead__link-text { flex: 1; }
.dp-team-lead__link > .dp-icon { width: 15px; height: 15px; opacity: .45; transition: opacity .3s; }
.dp-team-lead__link:hover {
	background: var(--b); border-color: var(--b); color: #fff; transform: translateY(-3px);
	box-shadow: 0 12px 24px -12px var(--b);
}
.dp-team-lead__link--instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.dp-team-lead__link:hover .dp-team-lead__link-icon { background: rgba(255, 255, 255, .2); color: #fff; }
.dp-team-lead__link:hover > .dp-icon { opacity: 1; }

/* ---------- Who to contact ---------- */
.dp-team-contacts__list { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.dp-team-contact--digital { --c: #4b3fa6; }
.dp-team-contact--yogshala { --c: #b4533b; }
.dp-team-contact {
	position: relative; overflow: hidden; display: flex; flex-direction: column;
	padding: 30px; border-radius: 24px; background: var(--dp-surface);
	box-shadow: 0 24px 50px -30px rgba(30, 34, 72, .45);
	transition: transform .4s var(--dp-ease), box-shadow .4s;
}
.dp-team-contact::before { /* coloured top band */
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 80px;
	background: linear-gradient(120deg, var(--c), color-mix(in srgb, var(--c) 55%, #16182e));
}
.dp-team-contact:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -30px var(--c); }
.dp-team-contact__head { position: relative; display: flex; gap: 18px; align-items: flex-end; margin-bottom: 20px; }
.dp-team-contact__photo {
	flex-shrink: 0; width: 108px; height: 108px; border-radius: 50%; object-fit: cover; object-position: 50% 25%;
	border: 5px solid var(--dp-surface); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); margin-top: 10px;
}
.dp-team-contact__companies { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 34px; }
.dp-team-contact__companies span {
	padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); color: #fff;
	font-size: 11.5px; font-weight: 800; letter-spacing: .04em;
}
.dp-team-contact__name { margin: 0; font-size: 28px; line-height: 1.1; }
.dp-team-contact__role { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: var(--c); }
.dp-team-contact__for {
	margin: 0 0 12px; padding: 14px 16px; border-radius: 14px; border-left: 4px solid var(--c);
	background: color-mix(in srgb, var(--c) 8%, var(--dp-surface)); font-weight: 700; color: var(--dp-ink); font-size: 16px;
}
.dp-team-contact__for span { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.dp-team-contact__topics { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dp-team-contact__topics li { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--dp-line); font-size: 13px; color: var(--dp-text); }
.dp-team-contact__lines { display: grid; gap: 8px; margin: 0 0 22px; padding-top: 16px; border-top: 1px dashed var(--dp-line); }
.dp-team-contact__lines a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--dp-ink); word-break: break-word; }
.dp-team-contact__lines a:hover { color: var(--c); }
.dp-team-contact__lines .dp-icon { flex-shrink: 0; width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); }
.dp-team-contact__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.dp-team-contact__actions .dp-btn { flex: 1; justify-content: center; }
.dp-team-contact__actions .dp-btn .dp-icon { width: 17px; height: 17px; }
.dp-team-contact .dp-btn--primary { background: var(--c); }
.dp-team-contact .dp-btn--primary:hover { background: color-mix(in srgb, var(--c) 75%, #16182e); }
.dp-team-contact__wa { background: #25d366; color: #fff; }
.dp-team-contact__wa:hover { background: #1ebe5b; color: #fff; }

@media (max-width: 1024px) {
	.dp-team-lead__grid { grid-template-columns: 1fr 340px; gap: 50px; }
}
@media (max-width: 860px) {
	.dp-team-lead__grid { grid-template-columns: 1fr; }
	.dp-team-lead__photo { order: -1; max-width: 380px; margin: 0 auto 10px; width: 100%; }
	.dp-team-contacts__list { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 600px) {
	.dp-team-lead__badge { left: -6px; bottom: 20px; }
	.dp-team-contact { padding: 22px; }
	.dp-team-contact__photo { width: 88px; height: 88px; }
	.dp-team-contact__name { font-size: 24px; }
	.dp-team-contact__actions .dp-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.dp-team-lead__badge { animation: none; }
}

/* ---------- Team grid + cards ---------- */
.dp-team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.dp-team--preview .dp-team-grid { margin-top: 0; }
.dp-team-card {
	display: flex; flex-direction: column;
	background: var(--dp-surface); border: 1px solid var(--dp-line); border-radius: var(--dp-radius); overflow: hidden;
	transition: transform .3s var(--dp-ease), box-shadow .3s, border-color .3s;
	animation: dp-fade-up .45s var(--dp-ease) both;
}
.dp-team-card:hover { transform: translateY(-5px); box-shadow: var(--dp-shadow); border-color: transparent; }
.dp-team-card[hidden] { display: none; }

.dp-team-card__photo {
	position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
	background: var(--dp-sand); overflow: hidden;
}
.dp-team-card__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s var(--dp-ease); }
.dp-team-card:hover .dp-team-card__photo img { transform: scale(1.05); }
.dp-team-card__view {
	position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 12px);
	padding: 8px 16px; border-radius: 999px; background: var(--dp-surface); color: var(--dp-ink);
	font-size: 13px; font-weight: 700; opacity: 0; transition: opacity .25s, transform .25s; white-space: nowrap;
}
.dp-team-card__photo:hover .dp-team-card__view,
.dp-team-card__photo:focus-visible .dp-team-card__view { opacity: 1; transform: translate(-50%, 0); }

.dp-team-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.dp-team-card__company {
	align-self: flex-start; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px;
	font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
}
.dp-team-card__company--group { background: #f7e6cc; color: #8a5a14; }
.dp-team-card__company--digital { background: #e4e5f6; color: #3b4190; }
.dp-team-card__company--yogshala { background: #f8e2dc; color: #9a3a2c; }
.dp-team-card__company--school { background: #e3ecf7; color: #2a5d8a; }
.dp-team-card__name { font-size: 24px; margin: 0 0 2px; }
.dp-team-card__role { margin: 0 0 8px; font-weight: 700; font-size: 14.5px; color: var(--dp-primary-3); }
.dp-team-card__exp { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13px; color: var(--dp-muted); }
.dp-team-card__exp .dp-icon { width: 15px; height: 15px; color: var(--dp-accent); }
.dp-team-card__intro { font-size: 14px; line-height: 1.6; color: var(--dp-muted); margin-bottom: 16px; }
.dp-team-card__foot {
	margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--dp-line);
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.dp-team-card__more {
	display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer;
	font-weight: 700; font-size: 14px; color: var(--dp-primary);
}
.dp-team-card__more .dp-icon { width: 16px; height: 16px; transition: transform .2s; }
.dp-team-card__more:hover { color: var(--dp-accent); }
.dp-team-card__more:hover .dp-icon { transform: translateX(4px); }
.dp-team-card__social { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.dp-team-card__social a {
	display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
	border: 1px solid var(--dp-line); color: var(--dp-primary);
	transition: background .2s, color .2s, border-color .2s;
}
.dp-team-card__social .dp-icon { width: 15px; height: 15px; }
.dp-team-card__social a:hover { color: #fff; }
.dp-team-card__social a.dp-social__instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); border-color: #d6249f; }
.dp-team-card__social a.dp-social__facebook:hover { background: #1877f2; border-color: #1877f2; }
.dp-team-card__social a.dp-social__linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.dp-team-card__social a.dp-social__github:hover { background: #24292f; border-color: #24292f; }
.dp-team-card__social a.dp-social__website:hover { background: var(--dp-accent); border-color: var(--dp-accent); }

/* ---------- STG Team page: profile cards (3 per row) ----------
   Box card with a coloured top band, round photo with a ring, centred name,
   role pill, short bio, social icons and a "View profile" button.
   Each company has its own colour (--co). Only on the STG Team page
   (.dp-team-grid--cards); the About preview keeps the classic card. */
/* Flex so an unfinished last row is centred */
.dp-team-grid.dp-team-grid--cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; max-width: 1120px; margin-left: auto; margin-right: auto; }
.dp-team-grid--cards > .dp-team-card { flex: 0 0 calc((100% - 60px) / 3); }
.dp-team-grid--cards .dp-team-card[data-company="group"] { --co: #c9821f; }
.dp-team-grid--cards .dp-team-card[data-company="digital"] { --co: #4b3fa6; }
.dp-team-grid--cards .dp-team-card[data-company="yogshala"] { --co: #b4533b; }
.dp-team-grid--cards .dp-team-card[data-company="school"] { --co: #2a6fa8; }
.dp-team-grid--cards .dp-team-card {
	position: relative; isolation: isolate; align-items: center; text-align: center;
	border: 1px solid var(--dp-line); border-radius: 26px; background: var(--dp-surface);
	box-shadow: 0 18px 40px -30px rgba(30, 34, 72, .45);
	transition: transform .4s var(--dp-ease), box-shadow .4s, border-color .4s;
}
.dp-team-grid--cards .dp-team-card::before { /* coloured top band */
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 118px; z-index: -1;
	background:
		radial-gradient(circle at 85% 0%, rgba(255, 255, 255, .22), transparent 55%),
		linear-gradient(135deg, color-mix(in srgb, var(--co) 22%, #fff), color-mix(in srgb, var(--co) 10%, #fff));
	transition: height .5s var(--dp-ease), background .4s;
}
.dp-team-grid--cards .dp-team-card:hover { transform: translateY(-8px); border-color: transparent; box-shadow: 0 30px 55px -30px var(--co); }
.dp-team-grid--cards .dp-team-card:hover::before {
	height: 132px;
	background:
		radial-gradient(circle at 85% 0%, rgba(255, 255, 255, .25), transparent 55%),
		linear-gradient(135deg, var(--co), color-mix(in srgb, var(--co) 60%, #16182e));
}

/* Round photo with a ring */
.dp-team-grid--cards .dp-team-card__photo {
	width: 168px; height: 168px; margin: 42px auto 0; border-radius: 50%; overflow: visible; background: none;
}
.dp-team-grid--cards .dp-team-card__photo img {
	width: 168px; height: 168px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: 50% 22%;
	border: 6px solid var(--dp-surface);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--co) 45%, transparent), 0 16px 30px -14px rgba(0, 0, 0, .45);
	transition: transform .5s var(--dp-ease), box-shadow .4s;
}
.dp-team-grid--cards .dp-team-card:hover .dp-team-card__photo img { transform: scale(1.05); box-shadow: 0 0 0 3px var(--co), 0 20px 34px -14px var(--co); }
.dp-team-grid--cards .dp-team-card__view {
	bottom: -6px; background: var(--co); color: #fff; box-shadow: 0 8px 18px -8px var(--co);
}

.dp-team-grid--cards .dp-team-card__body { align-items: center; width: 100%; padding: 18px 26px 26px; }
.dp-team-grid--cards .dp-team-card__company {
	align-self: center; margin: 0 0 10px; background: color-mix(in srgb, var(--co) 10%, transparent); color: var(--co);
}
.dp-team-grid--cards .dp-team-card__name { font-size: 27px; margin: 0 0 8px; transition: color .3s; }
.dp-team-grid--cards .dp-team-card:hover .dp-team-card__name { color: var(--co); }
.dp-team-grid--cards .dp-team-card__role {
	display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px;
	background: color-mix(in srgb, var(--co) 9%, var(--dp-bg)); color: var(--dp-ink);
	font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.45;
}
.dp-team-grid--cards .dp-team-card__exp { justify-content: center; }
.dp-team-grid--cards .dp-team-card__intro { font-size: 14.5px; margin-bottom: 18px; }
.dp-team-grid--cards .dp-team-card__foot {
	width: 100%; flex-direction: column-reverse; gap: 14px; padding-top: 18px;
}
.dp-team-grid--cards .dp-team-card__social { justify-content: center; gap: 8px; }
.dp-team-grid--cards .dp-team-card__social a { width: 36px; height: 36px; background: var(--dp-cream); border-color: transparent; }
.dp-team-grid--cards .dp-team-card__more {
	width: 100%; justify-content: center; padding: 11px 18px; border-radius: 999px;
	border: 1.5px solid var(--co); color: var(--co); transition: background .3s, color .3s;
}
.dp-team-grid--cards .dp-team-card__more:hover { background: var(--co); color: #fff; }

@media (max-width: 1024px) {
	.dp-team-grid.dp-team-grid--cards { max-width: 760px; gap: 24px; }
	.dp-team-grid--cards > .dp-team-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
	.dp-team-grid.dp-team-grid--cards { max-width: 420px; }
	.dp-team-grid--cards > .dp-team-card { flex-basis: 100%; }
	.dp-team-grid--cards .dp-team-card__photo,
	.dp-team-grid--cards .dp-team-card__photo img { width: 150px; height: 150px; }
}

/* ---------- Profile pop-up ---------- */
.dp-team-modal {
	width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
	padding: 0; border: 0; border-radius: calc(var(--dp-radius) + 4px);
	background: var(--dp-surface); color: var(--dp-text); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5);
	overflow: auto;
}
.dp-team-modal::backdrop { background: rgba(14, 15, 38, .65); backdrop-filter: blur(3px); }
.dp-team-modal[open] { animation: dp-fade-up .3s var(--dp-ease) both; }
.dp-team-modal__close {
	position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; z-index: 2;
	width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--dp-cream); color: var(--dp-ink); font-size: 26px; line-height: 1;
}
.dp-team-modal__close:hover { background: var(--dp-accent); }
.dp-team-profile { display: grid; grid-template-columns: 340px 1fr; }
.dp-team-profile__photo { width: 100%; height: 100%; min-height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.dp-team-profile__body { padding: 40px 40px 36px; }
.dp-team-profile__name { font-size: 34px; margin: 0 0 4px; }
.dp-team-profile__role { font-weight: 700; color: var(--dp-primary-3); margin-bottom: 18px; }
.dp-team-profile__bio { font-size: 15.5px; }
.dp-team-profile__bio blockquote {
	position: relative; margin: 18px 0 4px; padding: 16px 22px; border-radius: 14px;
	background: var(--dp-cream); border-left: 3px solid var(--dp-accent);
}
.dp-team-profile__bio blockquote p { margin: 0; font-family: var(--dp-font-head); font-size: 20px; font-style: italic; line-height: 1.4; color: var(--dp-ink); }
.dp-team-profile__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.dp-team-profile__facts > div { padding: 12px 14px; border-radius: 12px; background: var(--dp-cream); }
.dp-team-profile__facts dt { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dp-muted); }
.dp-team-profile__facts dd { margin: 2px 0 0; font-weight: 700; color: var(--dp-ink); }
.dp-team-profile__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; }
.dp-team-profile__tags li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--dp-line); font-size: 13px; font-weight: 600; }
.dp-team-profile__actions { display: flex; flex-wrap: wrap; gap: 10px; }
body.dp-modal-open { overflow: hidden; }

/* ---------- Join the team ---------- */
.dp-team-join__box {
	display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
	padding: 56px; border-radius: calc(var(--dp-radius) + 6px);
	background: var(--dp-primary) url("../images/retreat-himalaya.jpg") center / cover; position: relative; isolation: isolate; overflow: hidden;
	color: rgba(255, 255, 255, .82);
}
.dp-team-join__box::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(21, 23, 54, .86); }
.dp-team-join__box .dp-title { color: var(--dp-white); }
.dp-team-join__box p:last-child { margin: 0; max-width: 620px; }
.dp-team-join__actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Tablet & mobile ---------- */
@media (max-width: 1199px) {
	.dp-team-grid { grid-template-columns: repeat(3, 1fr); }
	.dp-team-founder__grid { grid-template-columns: 340px 1fr; gap: 50px; }
}
@media (max-width: 860px) {
	.dp-team-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
	.dp-team-founder__grid { grid-template-columns: 1fr; }
	.dp-team-founder__photo { max-width: 360px; margin: 0 auto; }
	.dp-team-profile { grid-template-columns: 1fr; }
	.dp-team-profile__photo { max-height: 380px; aspect-ratio: auto; object-position: 50% 25%; }
	.dp-team-join__box { grid-template-columns: 1fr; padding: 40px 28px; }
	.dp-team-join__actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 600px) {
	.dp-team-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
	.dp-team .dp-tabs { flex-direction: column; }
	.dp-team .dp-tab { flex: 1 1 100%; display: flex; justify-content: center; align-items: center; }
	.dp-team-profile__body { padding: 28px 22px; }
	.dp-team-profile__name { font-size: 28px; }
	.dp-team-profile__facts { grid-template-columns: 1fr; }
	.dp-team-join__actions .dp-btn { width: 100%; }
	.dp-team-modal { max-height: calc(100vh - 24px); width: calc(100vw - 20px); }
}
