@charset "utf-8";

/*
 * Fighter directory
 * Portrait-led cards inspired by the supplied vertical-name reference while
 * keeping the existing TLP Team records, profile links, and social URLs.
 */

body.cave-fighter-index-page .post_content > h1:first-child {
	display: none;
}

body.cave-fighter-index-page .rt-team-container {
	--cave-fighter-name-rail: 66px;
	--cave-fighter-social-size: 36.4px;
	margin: 0;
	padding: 0;
	overflow: visible;
}

body.cave-fighter-index-page .rt-team-container > .rt-row,
body.cave-fighter-index-page .rt-team-container[data-layout*="layout"] > .rt-row.ttp-even {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(30px, 3.2vw, 44px) clamp(10px, 1vw, 14px);
	align-items: start;
	justify-content: start;
	margin: 0;
}

/* Bootstrap's clearfix pseudo-elements must not consume grid cells. */
body.cave-fighter-index-page .rt-team-container > .rt-row::before,
body.cave-fighter-index-page .rt-team-container > .rt-row::after,
body.cave-fighter-index-page .rt-team-container[data-layout*="layout"] > .rt-row.ttp-even::before,
body.cave-fighter-index-page .rt-team-container[data-layout*="layout"] > .rt-row.ttp-even::after {
	display: none;
	content: none;
}

body.cave-fighter-index-page .rt-team-container .rt-grid-item {
	float: none;
	width: auto !important;
	min-width: 0;
	padding: 0;
}

body.cave-fighter-index-page .rt-team-container .single-team-area {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--cave-fighter-name-rail);
	isolation: isolate;
	width: 100%;
	margin: 0;
	border: 0;
	background: transparent;
}

body.cave-fighter-index-page .rt-team-container .single-team-area:hover,
body.cave-fighter-index-page .rt-team-container .single-team-area:focus-within {
	border: 0;
	box-shadow: none;
	transform: none;
}

body.cave-fighter-index-page .rt-team-container .single-team {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
	height: clamp(248px, 20.5vw, 268px);
	background: #eef0f1;
	overflow: hidden;
}

body.cave-fighter-index-page .rt-team-container .single-team figure,
body.cave-fighter-index-page .rt-team-container .single-team figure > a {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
}

body.cave-fighter-index-page .rt-team-container .single-team img.rt-team-img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: center;
	backface-visibility: hidden;
	transform: scale(1.002) !important;
	transition: transform 700ms cubic-bezier(0.2, 0.68, 0.2, 1) !important;
}

body.cave-fighter-index-page .rt-team-container .single-team-area:hover img.rt-team-img,
body.cave-fighter-index-page .rt-team-container .single-team-area:focus-within img.rt-team-img {
	transform: scale(1.045) !important;
}

body.cave-fighter-index-page .rt-team-container .tlp-content {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 8px;
	min-width: 0;
	padding: 0 3px;
	background: #fff !important;
	color: #111 !important;
}

/* TLP Team writes a shortcode-specific !important background rule. */
body.cave-fighter-index-page .rt-team-container[class*="rt-team-container-"] .layout1 .tlp-content {
	background: #fff !important;
}

body.cave-fighter-index-page .rt-team-container .tlp-content h3 {
	order: 1;
	margin: 0 !important;
	padding: 0;
	border: 0;
	font-size: 0;
	line-height: 1;
}

body.cave-fighter-index-page .rt-team-container .tlp-content h3::before,
body.cave-fighter-index-page .rt-team-container .tlp-content h3::after {
	display: none;
	content: none;
}

body.cave-fighter-index-page .rt-team-container .team-name,
body.cave-fighter-index-page .rt-team-container .team-name > a {
	display: block;
}

body.cave-fighter-index-page .rt-team-container .team-name > a {
	width: 1em;
	color: #111 !important;
	font-family: "Noto Serif JP", "Yu Mincho", YuMincho, serif;
	font-size: 29px !important;
	font-weight: 400;
	line-height: 1.14;
	letter-spacing: 0.08em;
	overflow-wrap: anywhere;
	text-decoration: none;
	white-space: normal;
	word-break: break-all;
	writing-mode: horizontal-tb;
	transform: translateY(-3px);
}

body.cave-fighter-index-page .rt-team-container .team-name > a:hover {
	color: #007dac !important;
}

body.cave-fighter-index-page .rt-team-container .team-name > a:focus-visible,
body.cave-fighter-index-page .rt-team-container .single-team figure > a:focus-visible,
body.cave-fighter-index-page .rt-team-container .social-icons > :is(a, button):focus-visible {
	outline: 3px solid #00a9e8;
	outline-offset: 3px;
}

body.cave-fighter-index-page .rt-team-container .tlp-position {
	order: 2;
	margin: 0 !important;
	line-height: 1;
}

body.cave-fighter-index-page .rt-team-container .tlp-position > a {
	display: block;
	color: #111 !important;
	font-size: 0;
	text-decoration: none;
}

body.cave-fighter-index-page .rt-team-container .tlp-position > a::after {
	display: block;
	content: "FIGHTER";
	color: #253238;
	font-family: "Noto Serif JP", "Yu Mincho", YuMincho, serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.22em;
	text-orientation: mixed;
	writing-mode: vertical-rl;
}

body.cave-fighter-index-page .rt-team-container .social-icons {
	position: absolute;
	z-index: 3;
	top: auto;
	right: calc((var(--cave-fighter-name-rail) - var(--cave-fighter-social-size)) / 2);
	bottom: 0;
	width: var(--cave-fighter-social-size);
	height: var(--cave-fighter-social-size);
	margin: 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
}

body.cave-fighter-index-page .rt-team-container .social-icons > :is(a, button) {
	position: absolute;
	right: 0;
	bottom: 0;
	display: grid;
	place-items: center;
	width: var(--cave-fighter-social-size);
	height: var(--cave-fighter-social-size);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #0d1012;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
	color: #fff !important;
	cursor: pointer;
	font-size: 15.4px;
	line-height: 1;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease, transform 240ms ease, visibility 180ms ease;
}

body.cave-fighter-index-page .rt-team-container .social-icons > a {
	z-index: 1;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(0);
}

body.cave-fighter-index-page .rt-team-container .social-icons > .cave-fighter-share {
	z-index: 2;
}

body.cave-fighter-index-page .rt-team-container .social-icons:is(:hover, :focus-within, .is-open) > a {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

body.cave-fighter-index-page .rt-team-container .social-icons:is(:hover, :focus-within, .is-open) > a:nth-of-type(1) {
	transform: translateX(-36.4px);
}

body.cave-fighter-index-page .rt-team-container .social-icons:is(:hover, :focus-within, .is-open) > a:nth-of-type(2) {
	transform: translateX(-72.8px);
}

body.cave-fighter-index-page .rt-team-container .social-icons:is(:hover, :focus-within, .is-open) > a:nth-of-type(3) {
	transform: translateX(-109.2px);
}

body.cave-fighter-index-page .rt-team-container .social-icons > :is(a, button):hover,
body.cave-fighter-index-page .rt-team-container .social-icons > :is(a, button):focus-visible {
	background: #007dac;
	color: #fff !important;
}

body.cave-fighter-index-page .rt-team-container .social-icons .wpel-image {
	display: none !important;
}

@media only screen and (max-width: 1180px) and (min-width: 992px) {
	body.cave-fighter-index-page .rt-team-container {
		--cave-fighter-name-rail: 68px;
	}

	body.cave-fighter-index-page .rt-team-container > .rt-row,
	body.cave-fighter-index-page .rt-team-container[data-layout*="layout"] > .rt-row.ttp-even {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 30px 22px;
	}

	body.cave-fighter-index-page .rt-team-container .tlp-content {
		padding: 0 3px;
	}

	body.cave-fighter-index-page .rt-team-container .team-name > a {
		font-size: 28px !important;
	}
}

@media only screen and (max-width: 700px) {
	body.cave-fighter-index-page .rt-team-container {
		--cave-fighter-name-rail: clamp(64px, 18vw, 70px);
	}

	body.cave-fighter-index-page .rt-team-container > .rt-row,
	body.cave-fighter-index-page .rt-team-container[data-layout*="layout"] > .rt-row.ttp-even {
		grid-template-columns: minmax(0, 1fr);
		gap: 34px;
	}

	body.cave-fighter-index-page .rt-team-container .tlp-content {
		padding: 0 2px;
	}

	body.cave-fighter-index-page .rt-team-container .team-name > a {
		font-size: clamp(26px, calc(8vw - 2px), 30px) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.cave-fighter-index-page .rt-team-container .single-team-area,
	body.cave-fighter-index-page .rt-team-container .single-team img.rt-team-img,
	body.cave-fighter-index-page .rt-team-container .social-icons,
	body.cave-fighter-index-page .rt-team-container .social-icons > :is(a, button) {
		transition: none;
	}
}
