/*
 * Extra styles that theme.json can't express go here.
 * Prefer theme.json settings/styles where possible.
 */

/* ---------- Header ---------- */

/* Remove the default gap between the two header rows. */
.trb-header + .trb-menu-bar {
	margin-block-start: 0;
}

.trb-logo {
	margin: 0;
}

.trb-logo img {
	display: block;
	height: auto;
}

/* Square "Merch Store" button. */
.trb-store-button .wp-block-button__link {
	font-family: var(--wp--preset--font-family--oswald);
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 0.45rem 1rem;
	border: 2px solid var(--wp--preset--color--bull-red);
	transition: background-color 0.15s, color 0.15s;
}

.trb-store-button .wp-block-button__link:hover,
.trb-store-button .wp-block-button__link:focus {
	background-color: transparent !important;
	color: var(--wp--preset--color--white) !important;
}

/* Icon-only search toggle (currently not in the header; kept for later): white magnifier on a transparent button. */
.trb-search .wp-block-search__button {
	background: transparent;
	border: 0;
	color: var(--wp--preset--color--white);
	padding: 0.5rem;
	margin-left: 0;
}

.trb-search .wp-block-search__button svg {
	width: 28px;
	height: 28px;
	fill: currentColor;
}

.trb-search .wp-block-search__input {
	background: var(--wp--preset--color--black);
	border: 1px solid #333;
	color: var(--wp--preset--color--white);
	padding: 0.5rem 0.75rem;
}

/* Category menu. */
.trb-nav {
	width: 100%;
	font-size: 0.95rem;
}

.trb-nav .wp-block-navigation__container {
	width: 100%;
}

.trb-nav .wp-block-navigation-item__content:hover,
.trb-nav .wp-block-navigation-item__content:focus {
	color: var(--wp--preset--color--bull-red);
}



/* Dropdowns. */
.trb-nav .wp-block-navigation__submenu-container {
	border: 0 !important;
	border-top: 2px solid var(--wp--preset--color--bull-red) !important;
	padding: 0.5rem 0;
	min-width: 220px !important;
}

.trb-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.5rem 1.25rem;
}

.trb-nav .wp-block-navigation__submenu-icon svg {
	width: 12px;
	height: 12px;
	stroke-width: 2;
}


/* Mobile menu overlay. */
.trb-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 2rem 1.5rem;
	border-top: 3px solid var(--wp--preset--color--bull-red);
}

.trb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 1.25rem;
}

.trb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 2rem;
	letter-spacing: 0.04em;
}

.trb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	border-top: 0 !important;
}

/* ---------- Footer ---------- */

.trb-footer a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.trb-footer a:hover {
	color: var(--wp--preset--color--bull-red);
}

.trb-footer .trb-footer-heading {
	font-family: var(--wp--preset--font-family--oswald);
	font-size: 1.1rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.trb-footer .trb-footer-links {
	font-size: var(--wp--preset--font-size--small);
	list-style: none;
	padding: 0;
	margin: 0;
}

.trb-footer .trb-footer-links li + li {
	margin-top: 0.5rem;
}

.trb-footer .trb-footer-rule {
	border: 0;
	border-top: 1px solid #2a2a2a;
	opacity: 1;
}

/* ---------- Layout ---------- */

/* Header, main and footer sit flush against each other (no block gap). */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* Keep the footer at the bottom of the screen on short pages. */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

.admin-bar .wp-site-blocks {
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}

.wp-site-blocks > main {
	flex: 1 0 auto;
}

/* ---------- Home hero ---------- */

.trb-hero {
	background:
		/* Red glow behind the photo. */
		radial-gradient(ellipse 40% 55% at 72% 48%, rgba(200, 16, 46, 0.28), transparent 70%),
		/* Faint red wash in the bottom-left corner. */
		radial-gradient(ellipse 45% 40% at 0% 100%, rgba(200, 16, 46, 0.12), transparent 70%),
		linear-gradient(180deg, #1c1f22 0%, #0d0e10 60%, #050506 100%);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--barlow);
	overflow: hidden;
}

.trb-hero-columns {
	/* Fill the screen below the header (~150px tall). */
	min-height: max(560px, calc(100dvh - 150px));
	margin-bottom: 0;
}

.trb-hero-text {
	padding-block: 4rem;
}

/* Short red accent bar above the name. */
.trb-hero .trb-hero-name::before {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	background: var(--wp--preset--color--bull-red);
	margin-bottom: 1.5rem;
}

.trb-hero .trb-hero-name {
	font-family: var(--wp--preset--font-family--barlow);
	font-size: clamp(2.5rem, 5.5vw, 5rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.01em;
	margin-block: 0.75rem 2.5rem;
}

.trb-hero-record {
	gap: 0.75rem 2.5rem;
	margin-bottom: 1.25rem;
}

.trb-hero-record p {
	color: #8b8d90;
	font-size: clamp(1.25rem, 2vw, 1.6rem);
	font-weight: 700;
	text-transform: uppercase;
	margin: 0;
}

.trb-hero-details {
	gap: 0.5rem 2.5rem;
	margin-block-start: 0;
}

.trb-hero-details p {
	color: #8b8d90;
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0;
}

.trb-hero-record strong,
.trb-hero-details strong {
	color: var(--wp--preset--color--white);
	font-weight: inherit;
	margin-left: 0.35em;
}

.trb-hero-details strong {
	font-weight: 500;
}

/* Management / Signed by row. */
.trb-hero-team {
	gap: 1.5rem 3rem;
	margin-top: 2.5rem;
	padding-top: 1.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trb-hero-team .trb-team-item {
	gap: 0.6rem;
}

.trb-hero-team .trb-team-label {
	color: #8b8d90;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0;
}

.trb-hero-team .trb-team-logo {
	margin: 0;
}

/* Logos link out to SJAM / Zuffa Boxing. */
.trb-hero-team .trb-team-logo a {
	display: block;
	transition: opacity 0.15s ease;
}

.trb-hero-team .trb-team-logo a:hover,
.trb-hero-team .trb-team-logo a:focus-visible {
	opacity: 0.75;
}

.trb-hero-team .trb-team-logo img {
	display: block;
	width: auto;
	height: 90px;
}

/* Zuffa Boxing stacked wordmark: sized by width, centred against the 90px logo. */
.trb-hero-team .trb-team-wordmark {
	display: flex;
	align-items: center;
	height: 90px;
}

.trb-hero-team .trb-team-wordmark img {
	width: 210px;
	max-width: 100%;
	height: auto;
}

/* Stacked on phones, so no need to line up with the SJAM logo. */
@media (max-width: 781px) {
	.trb-hero-team .trb-team-wordmark {
		height: auto;
	}
}

/* Fixed-width digits so the numbers don't jiggle while counting up. */
.trb-hero-record,
.trb-hero-details {
	font-variant-numeric: tabular-nums;
}

/* Each result: label + number, with the KO count underneath. */
.trb-hero-record .trb-stat {
	gap: 0.2rem;
}

/* Losses: KO count sits on the right, under the number. */
.trb-hero-record .trb-stat-loss {
	align-items: flex-end;
}

.trb-hero-record .trb-stat-sub {
	font-size: 1rem;
	font-weight: 600;
	text-transform: none;
}

/* Record colours: wins green, draws blue (not shown yet), losses red. */
.trb-hero-record .trb-stat-win strong,
.trb-hero-record .trb-stat-win .trb-stat-sub {
	color: #2fbf5b;
}

.trb-hero-record .trb-stat-draw strong,
.trb-hero-record .trb-stat-draw .trb-stat-sub {
	color: #7fb0ff;
}

.trb-hero-record .trb-stat-loss strong,
.trb-hero-record .trb-stat-loss .trb-stat-sub {
	color: #e5243b;
}

.trb-hero-photo {
	align-self: center;
	padding-block: 3rem;
}

.trb-hero-photo figure {
	margin: 0;
	position: relative;
}

/* Photo can't be clicked, dragged, selected or long-pressed to save. */
.trb-hero-photo figure,
.trb-hero-photo img {
	pointer-events: none;
	-webkit-user-select: none;
	user-select: none;
	-webkit-user-drag: none;
	-webkit-touch-callout: none;
}

.trb-hero-photo img {
	display: block;
	position: relative;
	z-index: 1;
	width: 100%;
	max-height: 78vh;
	object-fit: contain;
	object-position: center;
	/* Fade out the bottom of the photo so it doesn't end in a hard cut. */
	-webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 98%);
	mask-image: linear-gradient(180deg, #000 70%, transparent 98%);
}

/* Soft floor shadow under the fighter. */
.trb-hero-photo figure::after {
	content: "";
	position: absolute;
	left: 10%;
	right: 10%;
	bottom: -4%;
	height: 14%;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, rgba(40, 4, 10, 0.45) 45%, transparent 72%);
	filter: blur(6px);
	pointer-events: none;
}

@media (max-width: 781px) {
	.trb-hero-columns {
		min-height: 0;
	}

	.trb-hero-text {
		padding-block: 3rem 0;
	}

	.trb-hero-record {
		gap: 0.5rem 1rem;
	}

	.trb-hero-record p {
		font-size: 1.05rem;
	}

	.trb-hero-record .trb-stat-sub {
		font-size: 0.9rem;
	}

	.trb-hero-details {
		gap: 0.5rem 1.5rem;
	}

	.trb-hero-photo img {
		max-height: 70vh;
		margin-inline: auto;
		width: auto;
		max-width: 100%;
	}
}

/* ---------- Home: slim header over the hero, full header on scroll ---------- */

.home .wp-site-blocks > header {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 100;
	transition: box-shadow 0.35s ease;
}

.home .trb-header,
.home .trb-menu-bar {
	position: relative;
}

/* Top row sits above the menu bar so the menu can slide out from behind it. */
.home .trb-header {
	z-index: 2;
	transition: background-color 0.35s ease, padding 0.35s ease;
}

.home .trb-menu-bar {
	z-index: 1;
	transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
}

/* When the mobile burger menu is open, lift the menu bar (which holds the
   full-screen menu) above the top row so the menu and its close button aren't covered. */
.home .trb-menu-bar:has(.wp-block-navigation__responsive-container.is-menu-open) {
	z-index: 3;
}

.home .trb-logo img {
	transition: width 0.35s ease;
}

/* At the top: transparent, slimmer top row with a smaller logo, menu bar tucked away. */
.home:not(.trb-scrolled) .trb-header {
	background-color: transparent !important;
	padding-top: 0.5rem !important;
	padding-bottom: 0.5rem !important;
}

.home:not(.trb-scrolled) .trb-logo img {
	width: 68px !important;
}

.home:not(.trb-scrolled) .trb-menu-bar {
	transform: translateY(-100%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* Scrolled, or a keyboard user tabs into the header: full header.
   `transform: none` (not translateY(0)) so the mobile menu overlay can still go full screen. */
.home.trb-scrolled .wp-site-blocks > header {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.home .wp-site-blocks > header:focus-within .trb-menu-bar {
	transform: none;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Without the header taking up space, the hero fills the whole screen. */
.home .trb-hero-columns {
	min-height: max(560px, calc(100dvh - var(--wp-admin--admin-bar--height, 0px)));
}

.home .trb-hero-photo img {
	max-height: 80vh;
}

/* Phones: leave room for the slim header above the hero text. */
@media (max-width: 781px) {
	.home .trb-hero-text {
		padding-top: 6.5rem;
	}
}

/* Sit the text a little above centre. */
@media (min-width: 782px) {
	.home .trb-hero-text {
		padding-bottom: 6vh;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home .wp-site-blocks > header,
	.home .trb-header,
	.home .trb-menu-bar,
	.home .trb-logo img {
		transition: none;
	}
}

/* ---------- Home sections (fight, YouTube, social) ---------- */

.trb-section {
	background: #0b0c0e;
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--barlow);
	padding-block: clamp(3.5rem, 7vw, 6rem);
	margin-block: 0;
}

.trb-section.trb-youtube {
	background: #121316;
}

.trb-section-head {
	margin-bottom: 2.5rem;
}

.trb-section-head.has-action {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.25rem;
}

.trb-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--wp--preset--color--bull-red);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	margin: 0 0 0.5rem;
}

.trb-eyebrow::before {
	content: "";
	width: 32px;
	height: 3px;
	background: currentColor;
}

.trb-section .trb-section-title {
	font-family: var(--wp--preset--font-family--barlow);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1.05;
	margin: 0;
}

/* Buttons used across the sections, matching the header's Merch Store button. */
.trb-btn {
	display: inline-block;
	background: var(--wp--preset--color--bull-red);
	border: 2px solid var(--wp--preset--color--bull-red);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--oswald);
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.55rem 1.25rem;
	transition: background-color 0.15s, color 0.15s;
}

.trb-btn:hover,
.trb-btn:focus-visible {
	background: transparent;
	color: var(--wp--preset--color--white);
}

.trb-btn-ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.25);
}

.trb-btn-ghost:hover,
.trb-btn-ghost:focus-visible {
	border-color: var(--wp--preset--color--white);
}

/* Fight cards. */
.trb-fight-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}

/* Only the latest fight (no next fight set): one full-width card. */
.trb-fight-grid.is-single {
	grid-template-columns: minmax(0, 1fr);
}

.trb-fight-card {
	background: linear-gradient(160deg, #17191c, #101113);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-top: 3px solid var(--wp--preset--color--bull-red);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Opponent cut-out on the right of the card, fading into the background. */
.trb-fight-card.has-photo {
	position: relative;
	overflow: hidden;
}

.trb-fight-card.has-photo > :not(.trb-fight-photo) {
	position: relative;
	z-index: 1;
}

.trb-fight-card.has-photo > .trb-fight-main,
.trb-fight-card.has-photo > .trb-fight-opponent,
.trb-fight-card.has-photo > .trb-fight-detail,
.trb-fight-card.has-photo > .trb-countdown {
	max-width: 64%;
}

.trb-fight-photo {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 0;
	width: auto;
	max-width: 55%;
	height: 100%;
	object-fit: contain;
	object-position: bottom right;
	pointer-events: none;
	user-select: none;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(180deg, #000 60%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(180deg, #000 60%, transparent 100%);
	mask-composite: intersect;
	opacity: 0.9;
}

.trb-card-label {
	color: #8b8d90;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0;
}

.trb-fight-main {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.trb-result-badge {
	flex: none;
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--wp--preset--color--white);
}

.trb-result-badge.is-win { background: #1f9d4a; }
.trb-result-badge.is-loss { background: #c8102e; }
.trb-result-badge.is-draw { background: #4a7bd0; }

.trb-section .trb-fight-opponent {
	font-family: var(--wp--preset--font-family--barlow);
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	font-weight: 700;
	line-height: 1.1;
	margin: 0;
}

.trb-fight-opponent span {
	color: #8b8d90;
	font-weight: 500;
}

.trb-fight-method {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0.35rem 0 0;
}

.trb-fight-method.is-win { color: #2fbf5b; }
.trb-fight-method.is-loss { color: #e5243b; }
.trb-fight-method.is-draw { color: #7fb0ff; }

.trb-fight-detail {
	color: #b5b7ba;
	font-size: 1rem;
	margin: 0.25rem 0 0;
}

.trb-fight-meta {
	color: #8b8d90;
	font-size: 0.95rem;
	font-weight: 500;
	white-space: pre-wrap;
	margin: auto 0 0;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.trb-fight-card .trb-btn {
	align-self: flex-start;
}

.trb-countdown {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.5rem;
	font-variant-numeric: tabular-nums;
}

.trb-countdown div {
	background: rgba(255, 255, 255, 0.04);
	text-align: center;
	padding: 0.75rem 0.25rem;
}

.trb-countdown span {
	display: block;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 700;
	line-height: 1;
}

.trb-countdown small {
	display: block;
	color: #8b8d90;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-top: 0.35rem;
}

/* YouTube. */
.trb-yt-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
}

.trb-yt,
.trb-yt-frame {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border: 0;
	overflow: hidden;
}

.trb-yt img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease, opacity 0.2s;
	opacity: 0.85;
}

.trb-yt:hover img,
.trb-yt:focus-visible img {
	transform: scale(1.04);
	opacity: 1;
}

.trb-yt-play {
	position: absolute;
	inset: 50% auto auto 50%;
	width: 52px;
	height: 36px;
	transform: translate(-50%, -50%);
	background: var(--wp--preset--color--bull-red);
	border-radius: 10px;
	transition: transform 0.2s;
}

.trb-yt-play::after {
	content: "";
	position: absolute;
	inset: 50% auto auto 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent #fff;
}


.trb-yt:hover .trb-yt-play {
	transform: translate(-50%, -50%) scale(1.1);
}

.trb-yt-title {
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 0.75rem 0 0.2rem;
}

.trb-yt-date {
	color: #8b8d90;
	font-size: 0.85rem;
	margin: 0;
}

/* Social. */
.trb-social-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.trb-social-card {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: #15171a;
	border: 1px solid rgba(255, 255, 255, 0.06);
	color: var(--wp--preset--color--white);
	text-decoration: none;
	padding: 1.25rem;
	transition: border-color 0.2s, transform 0.2s;
}

.trb-social-card:hover,
.trb-social-card:focus-visible {
	border-color: var(--wp--preset--color--bull-red);
	transform: translateY(-3px);
}

.trb-social-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
}

.trb-social-icon svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.trb-social-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.trb-social-text strong {
	font-size: 1.05rem;
}

.trb-social-text span {
	color: #8b8d90;
	font-size: 0.9rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.trb-social-arrow {
	margin-left: auto;
	color: #8b8d90;
	transition: color 0.2s, transform 0.2s;
}

.trb-social-card:hover .trb-social-arrow {
	color: var(--wp--preset--color--bull-red);
	transform: translateX(3px);
}

.trb-tiktok-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin-top: 2.5rem;
}

.trb-tiktok-item .tiktok-embed {
	margin: 0 auto !important;
	min-width: 0 !important;
}

@media (max-width: 1000px) {
	.trb-yt-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.trb-social-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.trb-tiktok-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 781px) {
	.trb-fight-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Phones: text gets the full width, the photo becomes a faint background. */
	.trb-fight-card.has-photo > .trb-fight-main,
	.trb-fight-card.has-photo > .trb-fight-opponent,
	.trb-fight-card.has-photo > .trb-fight-detail,
	.trb-fight-card.has-photo > .trb-countdown {
		max-width: none;
	}

	.trb-fight-photo {
		max-width: 60%;
		height: 85%;
		opacity: 0.3;
	}

	.trb-tiktok-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	/* One TikTok is plenty on a phone. */
	.trb-tiktok-item:nth-child(n + 2) {
		display: none;
	}
}

@media (max-width: 480px) {
	.trb-social-cards {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- News ---------- */

.trb-section.trb-news {
	background: #0b0c0e;
	padding-top: 0;
}

.trb-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.trb-news-card {
	display: flex;
	flex-direction: column;
	background: #15171a;
	border: 1px solid rgba(255, 255, 255, 0.06);
	color: var(--wp--preset--color--white);
	text-decoration: none;
	transition: border-color 0.2s, transform 0.2s;
}

.trb-news-card:hover,
.trb-news-card:focus-visible {
	border-color: var(--wp--preset--color--bull-red);
	transform: translateY(-3px);
	color: var(--wp--preset--color--white);
}

.trb-news-thumb {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #101113;
}

.trb-news-thumb > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.trb-news-card:hover .trb-news-thumb > img {
	transform: scale(1.04);
}

/* Posts without a featured image. */
.trb-news-fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(ellipse 60% 70% at 50% 60%, rgba(200, 16, 46, 0.3), transparent 70%),
		linear-gradient(160deg, #1c1f22, #0b0c0e);
}

.trb-news-fallback img {
	width: 34%;
	height: auto;
	opacity: 0.85;
}

.trb-news-body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem 1.25rem 1.5rem;
}

.trb-news-cat {
	color: var(--wp--preset--color--bull-red);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.trb-news-title {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
}

/* "By Ross Levine · 27 September 2026", pinned to the bottom of the card. */
.trb-news-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	color: #8b8d90;
	font-size: 0.85rem;
	margin-top: auto;
}

.trb-news-author {
	color: #c9cacc;
	font-weight: 600;
}

.trb-news-author + .trb-news-date::before {
	content: "·";
	margin: 0 0.4rem;
	color: var(--wp--preset--color--bull-red);
}

.trb-news-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: -1rem 0 2rem;
}

.trb-news-filter a {
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #c9cacc;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	padding: 0.4rem 0.9rem;
}

.trb-news-filter a:hover {
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--white);
}

.trb-news-filter a[aria-current="page"] {
	background: var(--wp--preset--color--bull-red);
	border-color: var(--wp--preset--color--bull-red);
	color: var(--wp--preset--color--white);
}

.trb-news-empty {
	color: #8b8d90;
}

.trb-pagination {
	margin-top: 2.5rem;
}

.trb-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.trb-pagination .page-numbers {
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: var(--wp--preset--color--white);
	text-decoration: none;
	padding: 0.4rem 0.85rem;
}

.trb-pagination .page-numbers.current {
	background: var(--wp--preset--color--bull-red);
	border-color: var(--wp--preset--color--bull-red);
}

/* Article page. */
.trb-article {
	padding-top: clamp(3rem, 6vw, 5rem);
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
	margin-block: 0;
}

.trb-article .trb-article-cat {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	margin-bottom: 0.75rem;
}

.trb-article .trb-article-cat a {
	color: var(--wp--preset--color--bull-red);
	text-decoration: none;
}

.trb-article .trb-article-title {
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	line-height: 1.05;
	margin-block: 0 0.75rem;
}

/* "By Ross Levine · 27 September 2026" */
.trb-article .trb-article-meta {
	gap: 0.35rem;
	color: #8b8d90;
	font-weight: 500;
	margin-bottom: 2rem;
}

.trb-article-meta > * {
	margin: 0;
}

.trb-article .trb-article-author {
	color: var(--wp--preset--color--white);
	font-weight: 600;
}

.trb-article .trb-article-date::before {
	content: "·";
	margin: 0 0.4rem 0 0.15rem;
	color: var(--wp--preset--color--bull-red);
}

.trb-article .trb-article-image {
	margin-bottom: 2.5rem;
}

.trb-article-content {
	color: #d4d5d7;
	font-size: 1.125rem;
	line-height: 1.7;
}

.trb-article-content > * + * {
	margin-block-start: 1.25em;
}

.trb-article-content .trb-lead {
	color: var(--wp--preset--color--white);
	font-size: 1.35rem;
	font-weight: 500;
	line-height: 1.5;
}

.trb-article-content h2,
.trb-article-content h3 {
	color: var(--wp--preset--color--white);
	margin-block-start: 2em;
}

.trb-article-content ul li::marker {
	color: var(--wp--preset--color--bull-red);
}

.trb-section.trb-news-more {
	background: #121316;
}

@media (max-width: 1000px) {
	.trb-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.trb-news-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- News photo credits ---------- */

/* Credit from the featured image's caption, in the corner of the article photo. */
.trb-article-image {
	position: relative;
}

/* Keep faces in frame when a tall photo is cropped to 16:9. */
.trb-article-image img,
.trb-news-thumb > img {
	object-position: 50% 20%;
}

.trb-article-image .trb-photo-credit {
	position: absolute;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 0.35rem 0.6rem;
	background: rgba(0, 0, 0, 0.55);
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	line-height: 1.2;
}

/* Captions on images inside the article text. */
.trb-article-content .wp-element-caption {
	color: #8b8d90;
	font-size: 0.85rem;
	text-align: left;
}

/* ---------- Sponsors ---------- */

.trb-section-intro {
	color: #b5b7ba;
	font-size: 1.15rem;
	max-width: 42rem;
	margin: 1rem 0 0;
}

.trb-sponsor-group + .trb-sponsor-group {
	margin-top: 3.5rem;
}

.trb-section .trb-sponsor-group-title {
	color: #8b8d90;
	font-family: var(--wp--preset--font-family--barlow);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	margin: 0 0 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trb-sponsor-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

/* Main partner: one big card, logo beside the text. */
.trb-sponsor-group.is-main .trb-sponsor-grid {
	grid-template-columns: minmax(0, 1fr);
}

.trb-sponsor-group.is-main .trb-sponsor-card {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

.trb-sponsor-group.is-main .trb-sponsor-logo {
	aspect-ratio: auto;
	min-height: 240px;
}

.trb-sponsor-group.is-main .trb-sponsor-title {
	font-size: 2rem;
}

.trb-sponsor-card {
	display: flex;
	flex-direction: column;
	background: #15171a;
	border: 1px solid rgba(255, 255, 255, 0.06);
	color: var(--wp--preset--color--white);
	text-decoration: none;
	transition: border-color 0.2s, transform 0.2s;
}

.trb-sponsor-card:hover,
.trb-sponsor-card:focus-visible {
	border-color: var(--wp--preset--color--bull-red);
	transform: translateY(-3px);
	color: var(--wp--preset--color--white);
}

/* Logo panel: light for dark/coloured logos, dark for white logos. */
.trb-sponsor-logo {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	padding: 2rem;
}

.trb-sponsor-logo.is-light {
	background: #f4f4f5;
	color: #111;
}

.trb-sponsor-logo.is-dark {
	background: #0b0c0e;
	color: #fff;
}

.trb-sponsor-logo img {
	display: block;
	width: auto;
	height: auto;
	max-width: 75%;
	max-height: 120px;
	object-fit: contain;
}

.trb-sponsor-name-fallback {
	font-size: 1.5rem;
	font-weight: 700;
	text-align: center;
}

.trb-sponsor-body {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.5rem;
}

.trb-sponsor-title {
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
}

.trb-sponsor-summary {
	color: #b5b7ba;
	line-height: 1.5;
}

.trb-sponsor-more {
	color: var(--wp--preset--color--bull-red);
	font-size: 0.9rem;
	font-weight: 700;
	margin-top: auto;
	padding-top: 0.5rem;
}

.trb-partner-cta {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	margin-top: 4rem;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	background:
		radial-gradient(ellipse 50% 120% at 100% 50%, rgba(200, 16, 46, 0.25), transparent 70%),
		#15171a;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-left: 3px solid var(--wp--preset--color--bull-red);
}

.trb-partner-cta h2 {
	font-family: var(--wp--preset--font-family--barlow);
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 0.35rem;
}

.trb-partner-cta p {
	color: #b5b7ba;
	margin: 0;
	max-width: 36rem;
}

/* Single sponsor page. */
.trb-back-link {
	display: inline-block;
	color: #8b8d90;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	margin-bottom: 2rem;
}

.trb-back-link:hover {
	color: var(--wp--preset--color--white);
}

.trb-sponsor-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3rem);
}

.trb-sponsor-hero .trb-sponsor-logo {
	aspect-ratio: 4 / 3;
}

.trb-sponsor-hero .trb-sponsor-logo img {
	max-height: 180px;
}

.trb-sponsor-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin-top: 1.75rem;
}

.trb-sponsor-code {
	margin: 0;
	color: #b5b7ba;
}

.trb-sponsor-code strong {
	display: inline-block;
	margin-left: 0.35rem;
	padding: 0.3rem 0.7rem;
	border: 1px dashed var(--wp--preset--color--bull-red);
	color: var(--wp--preset--color--white);
	letter-spacing: 0.08em;
}

.trb-sponsor-about {
	padding-top: 0;
}

@media (max-width: 1000px) {
	.trb-sponsor-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 781px) {
	.trb-sponsor-group.is-main .trb-sponsor-card,
	.trb-sponsor-hero-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	.trb-sponsor-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Fights ---------- */

.trb-fight-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: -0.5rem 0 3rem;
}

.trb-fight-summary > div {
	min-width: 120px;
	padding: 1rem 1.25rem;
	background: #15171a;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-top: 3px solid rgba(255, 255, 255, 0.15);
}

.trb-fight-summary > div.is-win { border-top-color: #1f9d4a; }
.trb-fight-summary > div.is-loss { border-top-color: #c8102e; }
.trb-fight-summary > div.is-draw { border-top-color: #4a7bd0; }

.trb-fight-summary dt {
	color: #8b8d90;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.trb-fight-summary dd {
	margin: 0.25rem 0 0;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.trb-fight-year + .trb-fight-year {
	margin-top: 2.5rem;
}

.trb-section .trb-fight-year-title {
	font-family: var(--wp--preset--font-family--barlow);
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trb-fight-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.trb-fight-row {
	display: grid;
	grid-template-columns: 56px 44px minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, 2fr) 64px;
	align-items: center;
	gap: 1.25rem;
	padding: 0.9rem 1.25rem;
	background: #15171a;
	border: 1px solid rgba(255, 255, 255, 0.06);
	color: var(--wp--preset--color--white);
	text-decoration: none;
	transition: border-color 0.2s, background-color 0.2s;
}

.trb-fight-row:hover,
.trb-fight-row:focus-visible {
	border-color: var(--wp--preset--color--bull-red);
	background: #181a1e;
	color: var(--wp--preset--color--white);
}

/* Opponent photo (round) or initials. */
.trb-fight-row-photo {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	background: #22252a;
}

.trb-fight-row-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
	pointer-events: none;
}

/* Framed photos: size and position come from the zoom/focus set on the fight. */
.trb-fight-row-photo {
	position: relative;
}

.trb-fight-row-photo img.trb-framed {
	position: absolute;
	max-width: none;
	object-fit: fill;
}

.trb-fight-initials {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: #8b8d90;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.trb-result-badge.is-small {
	width: 44px;
	height: 44px;
	font-size: 1.35rem;
}

.trb-result-badge.is-nc {
	background: #55585d;
	font-size: 1rem;
}

.trb-fight-row-main {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.trb-fight-row-name {
	font-size: 1.2rem;
	font-weight: 700;
}

.trb-fight-row-name span {
	color: #8b8d90;
	font-weight: 500;
}

.trb-fight-row-notes {
	color: #d4a017;
	font-size: 0.85rem;
	font-weight: 600;
}

.trb-fight-row-how {
	font-weight: 700;
}

.trb-fight-row-how.is-win { color: #2fbf5b; }
.trb-fight-row-how.is-loss { color: #e5243b; }
.trb-fight-row-how.is-draw { color: #7fb0ff; }

.trb-fight-row-where {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	color: #b5b7ba;
	font-size: 0.9rem;
}

.trb-fight-row-where span:first-child {
	color: var(--wp--preset--color--white);
	font-weight: 600;
}

.trb-fight-row-record {
	color: #8b8d90;
	font-weight: 700;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* Single fight page. */
.trb-fight-hero-photo {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background:
		radial-gradient(ellipse 70% 60% at 50% 60%, rgba(200, 16, 46, 0.25), transparent 70%),
		linear-gradient(160deg, #1c1f22, #0b0c0e);
}

.trb-fight-hero-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
	pointer-events: none;
	user-select: none;
}

/* Full-body photos: show the whole photo, standing on the bottom of the frame. */
.trb-fight-hero-photo.is-body {
	place-items: end center;
}

.trb-fight-hero-photo.is-body img {
	object-fit: contain;
	object-position: 50% 100%;
	padding-top: 1.5rem;
}

.trb-fight-hero-photo .trb-fight-initials {
	font-size: 5rem;
	color: rgba(255, 255, 255, 0.2);
}

.trb-fight-hero .trb-eyebrow {
	margin-bottom: 1rem;
}

.trb-fight-details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.5rem;
	margin: 2rem 0 0;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trb-fight-details dt {
	color: #8b8d90;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.trb-fight-details dd {
	margin: 0.25rem 0 0;
	font-weight: 600;
}

@media (max-width: 1000px) {
	.trb-fight-row {
		grid-template-columns: 56px 44px minmax(0, 1fr) minmax(0, 1fr);
		grid-template-areas:
			"photo badge main main"
			"photo badge how where";
		row-gap: 0.5rem;
	}

	.trb-fight-row-photo { grid-area: photo; }
	.trb-fight-row .trb-result-badge { grid-area: badge; }
	.trb-fight-row-main { grid-area: main; }
	.trb-fight-row-how { grid-area: how; }
	.trb-fight-row-where { grid-area: where; }
	.trb-fight-row-record { display: none; }
}

@media (max-width: 600px) {
	.trb-fight-row {
		grid-template-columns: 48px minmax(0, 1fr) 40px;
		grid-template-areas:
			"photo main badge"
			"how how how"
			"where where where";
		gap: 0.6rem 0.9rem;
		padding: 1rem;
	}

	.trb-fight-row-photo {
		width: 48px;
		height: 48px;
	}

	.trb-result-badge.is-small {
		width: 40px;
		height: 40px;
		font-size: 1.2rem;
	}

	.trb-fight-details {
		grid-template-columns: minmax(0, 1fr);
	}
}
