/*
 * Sipoon Wolf theme styles for the team pages (single-team.php).
 *
 * inc/assets.php loads this file only on these pages, after main.css. The tokens are in main.css.
 */

/* The social media band of a team page has a smaller title. */
.social--team {
	padding: clamp(48px, 6vw, 88px) 0;
}

.social--team .social__title {
	font-size: clamp(28px, 3vw, 44px);
	line-height: 1;
}

/* Team page ----------------------------------------------------------- */

/* The top of the page. */
.team-hero {
	position: relative;
	display: flex;
	min-height: clamp(420px, 40vw, 620px);
	overflow: hidden;
	background: var(--wolf-ink);
	color: var(--wolf-paper);
}

.team-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 60% 40%;
}

.team-hero--image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10, 10, 11, 0.9) 0%, rgba(10, 10, 11, 0.55) 50%, rgba(10, 10, 11, 0.2) 100%);
}

/* Without an image, the logo is a large watermark. */
.team-hero__logo {
	position: absolute;
	top: 50%;
	right: -8%;
	width: clamp(320px, 52vw, 820px);
	height: auto;
	opacity: 0.12;
	transform: translateY(-50%);
}

.team-hero__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 18px;
	padding-top: clamp(96px, 10vw, 160px);
	padding-bottom: clamp(32px, 4vw, 64px);
}

.team-hero__title {
	font-weight: 900;
	font-stretch: 104%;
	font-size: clamp(52px, 8vw, 120px);
	line-height: 0.88;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.team-hero__subtitle {
	font-family: var(--wolf-font-display);
	font-weight: 800;
	font-size: 18px;
	letter-spacing: 0.14em;
	color: var(--wolf-on-dark-lead);
}

.badge--large {
	padding: 10px 20px;
	font-size: 13px;
}

/* The introduction and the link cards. */
.team-about {
	padding-top: clamp(40px, 5vw, 72px);
}

.team-about__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
	gap: clamp(24px, 4vw, 64px);
	align-items: start;
}

.team-about__text {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.team-about__lead {
	font-size: clamp(19px, 1.7vw, 24px);
	font-weight: 500;
	line-height: 1.5;
}

.team-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: clamp(10px, 1.4vw, 16px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.team-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 100%;
	min-height: 88px;
	padding: 20px 24px;
	background: var(--wolf-paper-2);
	color: var(--wolf-ink);
	text-decoration: none;
	transition: background-color 0.15s;
}

.team-link:hover {
	background: var(--wolf-gold);
}

.team-link__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.team-link__title,
.team-link__arrow {
	font-family: var(--wolf-font-display);
	font-weight: 800;
	font-size: 20px;
}

.team-link__arrow {
	font-size: 22px;
}

.team-link__text {
	font-size: 15px;
	color: var(--wolf-ink-2);
}

/* The light sections with a title line. */
.team-section {
	padding-top: var(--wolf-section);
}

.team-staff {
	padding-bottom: var(--wolf-section);
}

/* The practices and the fees. */
.team-practice__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
	align-items: start;
	gap: clamp(40px, 5vw, 80px);
}

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

.team-times__item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 16px;
	padding-block: 18px;
	border-bottom: 1px solid var(--wolf-line);
}

.team-times__key {
	min-width: 2.6em;
	font-family: var(--wolf-font-display);
	font-weight: 900;
	font-size: 20px;
	text-transform: uppercase;
}

.team-times__name {
	flex: 1 1 auto;
	font-size: 18px;
	font-weight: 600;
}

.team-times__value {
	font-size: 18px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.team-times--fees .team-times__value {
	font-family: var(--wolf-font-display);
	font-weight: 900;
	font-size: 20px;
	white-space: nowrap;
}

.team-times__note {
	flex-basis: 100%;
	color: var(--wolf-ink-2);
	font-size: 15px;
}

.team-practice__note {
	max-width: 60ch;
	margin-top: 24px;
	color: var(--wolf-ink-2);
	font-size: 17px;
	line-height: 1.55;
}

.chip--small {
	font-size: 12px;
}

/* The games list. */
.game-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.game-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px clamp(20px, 3vw, 48px);
	padding: clamp(16px, 1.8vw, 24px) 0;
	border-bottom: 1px solid var(--wolf-line);
}

.game-row__when {
	display: flex;
	flex: 1 1 180px;
	flex-direction: column;
	gap: 6px;
	max-width: 260px;
}

.game-row__day {
	display: flex;
	align-items: center;
	gap: 10px;
}

.game-row__weekday,
.game-row__badge,
.game-row__vs {
	font-family: var(--wolf-font-display);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.game-row__weekday,
.game-row__vs {
	color: var(--wolf-muted);
}

.game-row__badge {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--wolf-gold);
	color: var(--wolf-ink);
	font-size: 11px;
	letter-spacing: 0.16em;
}

.game-row__badge--away {
	background: var(--wolf-ink);
	color: var(--wolf-paper);
}

.game-row__time {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.game-row__date {
	font-family: var(--wolf-font-display);
	font-weight: 900;
	font-size: clamp(28px, 2.6vw, 38px);
	line-height: 1;
}

.game-row__clock {
	font-size: 16px;
	font-weight: 600;
}

.game-row__match {
	display: flex;
	flex: 3 1 300px;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.game-row__teams {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
}

.game-row__teams img {
	display: block;
	width: 36px;
	height: 36px;
}

.game-row__team {
	font-family: var(--wolf-font-display);
	font-weight: 800;
	font-size: clamp(18px, 1.6vw, 22px);
}

.game-row__venue {
	padding-left: 48px;
	font-size: 14px;
	color: var(--wolf-muted);
}

/* The box when there are no games. */
.empty-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	margin-top: clamp(20px, 2vw, 28px);
	padding: clamp(24px, 3vw, 40px);
	background: var(--wolf-paper-2);
}

.empty-box__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 60ch;
}

.empty-box__title {
	font-family: var(--wolf-font-display);
	font-weight: 800;
	font-size: clamp(20px, 1.8vw, 26px);
}

.empty-box__text {
	font-size: 16px;
	line-height: 1.5;
	color: var(--wolf-ink-2);
}

.empty-box .button {
	min-height: 52px;
}

.team-games__more {
	margin-top: 20px;
}

.team-games__source {
	margin-top: 12px;
	font-size: 0.875rem;
	color: var(--wolf-muted);
}

/* The players. */
.roster {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: 8px clamp(24px, 3vw, 48px);
	margin-top: clamp(16px, 2vw, 24px);
}

.roster__title {
	margin-bottom: 4px;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wolf-gold-dark);
}

.roster__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.roster__list li {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--wolf-line);
}

.roster__number {
	min-width: 2.2em;
	font-family: var(--wolf-font-display);
	font-weight: 900;
	font-size: 22px;
}

.roster__name {
	font-size: 17px;
	font-weight: 600;
}

.team-staff__empty {
	padding-top: 24px;
	font-size: 17px;
	color: var(--wolf-ink-2);
}

.team-staff__empty a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--wolf-ink);
	font-weight: 600;
	text-decoration: none;
}

.team-staff__more {
	margin-top: 28px;
}

/* A text link with an arrow. */
.arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--wolf-ink);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

.arrow-link:hover,
.team-staff__empty a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

/* The supporters of the team. */
.team-sponsors {
	padding-top: 0;
	padding-bottom: var(--wolf-section);
}

.sponsors__list--small {
	grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 16vw, 240px), 1fr));
	gap: clamp(10px, 1.4vw, 20px);
	margin-top: clamp(20px, 2vw, 28px);
}

.sponsors__list--small .sponsor {
	height: clamp(76px, 7vw, 104px);
	padding: 0 clamp(18px, 2vw, 32px);
}

.sponsors__list--small .sponsor__name {
	font-size: clamp(14px, 1.1vw, 16px);
}

.team-sponsors__more {
	margin-top: 20px;
}

/* The call to action. */
.team-cta {
	padding: clamp(48px, 6vw, 88px) 0;
	background: var(--wolf-ink);
	color: var(--wolf-paper);
}

.team-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
}

.team-cta__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.team-cta .eyebrow {
	font-size: 12px;
}

.team-cta__title {
	font-weight: 900;
	font-size: clamp(26px, 3vw, 44px);
	line-height: 1.05;
	text-transform: uppercase;
}

.team-cta__text {
	font-size: 17px;
	color: var(--wolf-on-dark-2);
}

.team-cta__button {
	font-size: 17px;
	text-transform: none;
	overflow-wrap: anywhere;
}

/* The links to the other teams. */
.team-others {
	padding: clamp(48px, 6vw, 88px) 0;
}

.team-others .container {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.team-others__title {
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wolf-muted);
}
