/* ==========================================================================
   Just Name IT, ny design: the team on Kontakt (F-0092)
   --------------------------------------------------------------------------
   One or two people sit under "Ring eller mejla", in the narrow column of the
   contact pair: the cards fill it two by two at most (the column is about
   22rem from 64em, the full width on a phone). Three or more are their own
   section after "Våra kontor". The cards are the parent's (team.css).
   Under "Ring eller mejla" the headings "Medarbetare" and the group name are
   left to screen readers: the column already says who to call (Director
   2026-10-29: "när det är fler och de visas längst ner på sidan kvarstår det
   men just här blir det överflödigt"). The cards keep the air above them.
   ========================================================================== */

.section-pair__narrow .ny-team--aside .team {
	margin-block: var(--space-80) 0;
}

.section-pair__narrow .ny-team--aside :is(.team__title, .team__group-title) {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.section-pair__narrow .ny-team--aside .team__list {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr));
}

.section-team-kontakt .ny-team--section .team {
	margin-block: 0;
}

/* The first name over the rest on every card (Director 2026-10-29), so the
   cards line up whatever the name's length (`split_names()`). */
.ny-team .team-card__first,
.ny-team .team-card__last {
	display: block;
}
