/* sumo-team.css — person cards (§6), staff list (§6.2) and the About team section (§7.2). */

/* --- Performer grid (wrestlers / MC, §6.1) --- */
/* fixed 4 cols on desktop (owner's call 2026-10-08: 5 per row was too tight; extra people wrap to the next row);
   margin:0 resets the theme's `article * + ul`, then top space is re-added */
.sumo-person-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px 24px;
	list-style: none;
	margin: 32px 0 0;
	padding: 0;
}
/* group heading sits right above the grid, so less top space */
.sumo-team__group + .sumo-person-grid {
	margin-top: 24px;
}
/* gap between the teaser grid and its button */
.sumo-person-grid + .wp-block-buttons {
	margin-top: 48px;
}
/* 4 cols would be cramped on tablet, so 2 cols */
@media only screen and (max-width: 999px) {
	.sumo-person-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
/* phones: always 2 cols with a tighter gap (portrait photos stay small enough) */
@media only screen and (max-width: 480px) {
	.sumo-person-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px 16px;
	}
}

/* --- Performer card (§6.1) --- */
/* margin:0 on the figure and 4:5 crop so every portrait lines up regardless of the source image */
/* subgrid: photo / role / name / quote rows line up across cards in the same grid row,
   even when a long role ("Former Makushita Wrestler") wraps to 2 lines on some cards only.
   row-gap:0 overrides the parent's 32px for rows inside a card; spacing comes from margins. */
.sumo-person-card {
	list-style: none;
	display: grid;
	grid-row: span 4;
	grid-template-rows: subgrid;
	row-gap: 0;
}
.sumo-person-grid--teaser > .sumo-person-card {
	grid-row: span 3; /* teaser cards have no quote */
}
.sumo-person-card__photo {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 5;
	background: #E8E4DA;
	overflow: hidden;
}
.sumo-person-card__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* one-class selectors (0,1,0) beat the theme's `article * + p { margin-top:1em }` (0,0,2), so each <p> sets its own top space */
/* align-self:end keeps a 1-line role right above the name when its row is 2 lines tall */
.sumo-person-card__role {
	align-self: end;
	margin-top: 16px;
	font-family: "Inter", sans-serif;
	font-size: 1.1rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: #006E55;
}
.sumo-person-card__name {
	margin-top: 4px;
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(2.2rem, 2vw, 2.6rem);
	font-weight: 500;
	line-height: 1.2;
}
/* margin-left:0 — spacing comes from the preceding half-width space in the markup,
   so a wrapped line doesn't start indented (§6.1). */
.sumo-person-card__name-ja {
	margin-left: 0;
	font-family: "Inter", sans-serif;
	font-size: 1.2rem;
	color: #5F5F5F;
}
.sumo-person-card__quote {
	margin-top: 10px;
	font-family: "Cormorant Garamond", serif;
	font-style: italic;
	font-size: 1.8rem;
	line-height: 1.4;
	color: #222;
}
/* narrower 2-col cards on phones need a smaller quote to avoid long wraps */
@media only screen and (max-width: 480px) {
	.sumo-person-card__quote {
		font-size: 1.5rem;
	}
}

/* --- Staff grid (§6.2) --- */
/* 6 cols fits 12 staff in 2 full rows; margin reset/re-add as for the performer grid */
.sumo-staff-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 28px 16px;
	list-style: none;
	margin: 32px 0 0;
	padding: 0;
}
/* group heading sits right above the grid, so less top space */
.sumo-team__group + .sumo-staff-grid {
	margin-top: 24px;
}
/* the list inside <details> follows <summary>; 28px = same as the row gap so it reads as one grid */
.sumo-staff-more .sumo-staff-grid {
	margin-top: 28px;
}
/* 4 cols (3 rows of 12) on tablet, 3 cols (4 rows of 12) on phones */
@media only screen and (max-width: 999px) {
	.sumo-staff-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}
@media only screen and (max-width: 480px) {
	.sumo-staff-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* --- Staff card (§6.2) --- */
/* minimal 3-item card: round photo, name, role — centered so the grid reads as a roster */
.sumo-staff-card {
	list-style: none;
	text-align: center;
}
.sumo-staff-card__photo {
	position: relative;
	width: 88px;
	height: 88px;
	margin: 0 auto;
	border-radius: 50%;
	background: #E8E4DA;
	overflow: hidden;
}
.sumo-staff-card__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* one-class selectors (0,1,0) beat the theme's `article * + p { margin-top:1em }` (0,0,2) */
.sumo-staff-card__name {
	margin-top: 10px;
	font-family: "Cormorant Garamond", serif;
	font-size: 1.8rem;
	font-weight: 500;
	line-height: 1.2;
}
.sumo-staff-card__role {
	margin-top: 2px;
	font-family: "Inter", sans-serif;
	font-size: 1rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: #006E55;
}
/* smaller photo so 3 columns still fit at 320–480px */
@media only screen and (max-width: 480px) {
	.sumo-staff-card__photo {
		width: 72px;
		height: 72px;
	}
}

/* --- "Show all N staff" (§6.2) --- */
/* styled like the theme's `.btn a` (underlined text button), centered; native <details> keeps all staff in the HTML for search engines */
.sumo-staff-more summary {
	display: block;
	width: fit-content;
	margin: 32px auto 0;
	padding: 8px 0;
	border-bottom: 1px solid #222;
	font-family: "Cormorant Garamond", serif;
	font-size: 1.8rem;
	font-weight: 400;
	list-style: none;
	cursor: pointer;
}
.sumo-staff-more summary::-webkit-details-marker {
	display: none;
}
.sumo-staff-more summary::after {
	content: " +";
}
/* once opened there is nothing to close, so hide the button (§6.2) */
.sumo-staff-more[open] > summary {
	display: none;
}

/* --- About team section (§7.2) --- */
.sumo-team__eyebrow {
	font-family: "Inter", sans-serif;
	font-size: 1.1rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: #006E55;
}
/* theme's `article * + h2 {margin-top:2em}` leaves ~100px above the h2; tighten it */
.sumo-team__eyebrow + h2 {
	margin-top: 6px;
}

.sumo-team__group {
	margin-top: 56px !important;
	padding-bottom: 24px;
	border-bottom: 1px solid #222;
	font-family: "Inter", sans-serif;
	font-size: 1.2rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .14em;
}

/* "Enjoyed the show?" line after the staff grid (§7.2). `.sumo-team .sumo-team__review` (0,2,0)
   beats the theme's `article * + p { margin-top: 1em }`. */
.sumo-team .sumo-team__review {
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid #CCCCCC;
	font-family: "Cormorant Garamond", serif;
	font-style: italic;
	font-size: 2rem;
	color: #222;
}
