/* Ratio Events Page — layouts A and B. Everything is scoped under .rev. */

.rev {
	--rev-y: var(--wp--preset--color--primary, #ffcb08);
	--rev-ink: var(--wp--preset--color--foreground-1, #2e282a);
	--rev-mut: var(--wp--preset--color--foreground-3, #7d7d7d);
	--rev-line: var(--wp--preset--color--background-4, #e7e7ef);
	--rev-soft: var(--wp--preset--color--background-3, #f4f4f6);
	--rev-bg: var(--wp--preset--color--background-1, #fff);
	color: var(--rev-ink);
	font-family: var(--wp--preset--font-family--inter, "Inter", sans-serif);
	font-weight: 400;
	line-height: 1.4;
}
.rev *, .rev *::before, .rev *::after { box-sizing: border-box; }
/* :where() keeps this at one-class specificity so component rules below can set margins. */
.rev :where(h1, h2, h3, h4, p) { margin: 0; font-family: inherit; color: inherit; }
.rev a { color: inherit; text-decoration: none; line-height: inherit; height: auto; }
.rev a:focus-visible { outline: 2px solid var(--rev-ink); outline-offset: 3px; border-radius: 6px; }
.rev img { display: block; max-width: 100%; }

.rev__in {
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px var(--wp--style--root--padding-right, 24px) 72px var(--wp--style--root--padding-left, 24px);
}
.rev__title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.rev-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rev-lab {
	display: flex; align-items: center; gap: 12px;
	font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rev-mut);
}
.rev-lab::after { content: ""; flex: 1; height: 1px; background: var(--rev-line); }
.rev-cnt { background: var(--rev-y); color: #000; border-radius: 99px; padding: 1px 9px; font-size: 11px; letter-spacing: 0; }
.rev-up { margin-top: 28px; }
.rev-past { margin-top: 48px; }
.rev-empty { color: var(--rev-mut); padding: 16px 0; }
.rev-back { margin-top: 20px; font-weight: 600; }
.rev-back a { text-decoration: underline; }

.rev-media {
	display: block; position: relative; overflow: hidden;
	aspect-ratio: 16 / 9; border-radius: 8px; background: var(--rev-soft);
}
.rev-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.rev-ph {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	font-weight: 800; letter-spacing: .2em; color: var(--rev-mut);
}
.rev-meta { display: block; font-size: 13px; color: var(--rev-mut); }

.rev-btn {
	display: inline-block; background: var(--rev-y); color: #000 !important;
	font-weight: 700; font-size: 14px; line-height: 1; padding: 11px 18px; border-radius: 8px; white-space: nowrap;
	transition: background .15s, color .15s;
}
.rev a.rev-btn:hover, .rev-row__link:hover .rev-btn { background: var(--rev-ink); color: #fff !important; }
.rev-btn--ghost { background: transparent; border: 1px solid var(--rev-line); font-weight: 600; }
.rev-soldout {
	display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	color: #b42318; background: #fef3f2; border-radius: 4px; padding: 3px 8px;
}

/* Infinite-scroll footer */
.rev-more { display: flex; justify-content: center; padding: 32px 0 0; font-size: 14px; color: var(--rev-mut); }
.rev-more__link { font-weight: 600; text-decoration: underline; color: var(--rev-ink); }
.rev-more__loading, .rev-more__done { display: none; align-items: center; gap: 10px; }
.rev-more.is-js .rev-more__link { display: none; }
.rev-more.is-js .rev-more__loading { display: inline-flex; }
.rev-more.is-js.is-error .rev-more__loading { display: none; }
.rev-more.is-js.is-error .rev-more__link { display: inline; }
.rev-more.is-done .rev-more__loading, .rev-more.is-done .rev-more__link { display: none; }
.rev-more.is-done .rev-more__done { display: inline-flex; }
.rev-spin {
	width: 16px; height: 16px; border-radius: 50%;
	border: 2px solid var(--rev-line); border-top-color: var(--rev-ink);
	animation: rev-spin .8s linear infinite;
}
.rev-more:not(.is-loading) .rev-spin { animation-play-state: paused; }
@keyframes rev-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ A */

.rev-hero {
	display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: center;
	margin-top: 16px; padding: 18px; border-radius: 14px; background: var(--rev-soft);
}
.rev-hero__media { transition: transform .25s ease; }
.rev-tag {
	display: inline-block; background: #000; color: var(--rev-y);
	font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	padding: 4px 9px; border-radius: 4px;
}
.rev-hero__title { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 16px 0 12px; }
.rev-hero__when { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.rev-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }

.rev-grid { display: grid; gap: 40px 28px; margin-top: 28px; }
.rev-grid--up.rev-grid--c2 { grid-template-columns: repeat(2, 1fr); }
.rev-grid--up.rev-grid--c3, .rev-grid--past { grid-template-columns: repeat(3, 1fr); }
/* The tile bleeds 12px into the grid gap so its hover background has breathing
   room while the image edges stay aligned with the rest of the page. */
.rev-card__link {
	display: flex; flex-direction: column;
	margin: -12px; padding: 12px 12px 18px; border-radius: 14px;
	transition: background-color .2s ease, transform .25s ease;
}
.rev a.rev-card__link:focus-visible { border-radius: 14px; }
.rev-card__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.rev-badge {
	display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.3;
	background: var(--rev-soft); color: var(--rev-mut); padding: 3px 8px; border-radius: 4px;
}
.rev-card.is-up .rev-badge { background: var(--rev-y); color: #000; }
.rev-card__title { font-size: 17px; font-weight: 700; line-height: 1.35; margin: 12px 0 6px; text-wrap: pretty; }
@media (hover: hover) {
	.rev-card__link:hover { background: var(--rev-soft); transform: scale(1.025); }
	.rev-card:not(.is-up) .rev-card__link:hover .rev-badge { background: var(--rev-bg); }
	.rev-hero__media:hover { transform: scale(1.015); }
}
.rev-grid--past .rev-media img { filter: saturate(.85); }
.rev-yr {
	grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px;
	font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 16px 0 -16px;
}
.rev-yr:first-child { margin-top: 0; }
.rev-yr span { font-size: 13px; font-weight: 500; color: var(--rev-mut); letter-spacing: 0; }

/* ------------------------------------------------------------------ B */

.rev--b .rev__in { max-width: 1000px; }
.rev-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rev-jump a {
	font-size: 13px; font-weight: 600; padding: 6px 12px;
	border: 1px solid var(--rev-line); border-radius: 99px; color: var(--rev-mut);
}
.rev-jump a:hover { border-color: var(--rev-ink); color: var(--rev-ink); }
.rev-jump a.is-on { background: var(--rev-ink); border-color: var(--rev-ink); color: #fff; }
.rev--b .rev-up { margin-top: 20px; }
.rev--b .rev-past { margin-top: 0; scroll-margin-top: 24px; }

.rev-mh {
	display: flex; justify-content: space-between; align-items: baseline;
	font-size: 14px; font-weight: 700; padding: 22px 0 8px; border-bottom: 1px solid var(--rev-ink);
}
.rev-mh span { font-weight: 500; color: var(--rev-mut); font-size: 13px; }

.rev-row__link {
	display: grid; grid-template-columns: 64px 168px 1fr auto; gap: 18px; align-items: center;
	padding: 12px 0; border-bottom: 1px solid var(--rev-line);
}
.rev-row:not(.is-up) .rev-row__link { grid-template-columns: 64px 120px 1fr auto; padding: 10px 0; }
.rev-row__link:hover .rev-row__title { text-decoration: underline; }
.rev-row__link:hover img { transform: scale(1.04); }
.rev-row .rev-media { border-radius: 6px; }
.rev-row:not(.is-up) .rev-media img { filter: saturate(.85); }
.rev-db { display: flex; flex-direction: column; align-items: center; line-height: 1; text-align: center; }
.rev-db__n { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; }
.rev-db__m { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--rev-mut); margin-top: 4px; }
.rev-db__w { font-size: 11px; color: var(--rev-mut); margin-top: 4px; white-space: nowrap; }
.rev-row.is-up .rev-db { background: var(--rev-y); border-radius: 10px; padding: 10px 2px; }
.rev-row.is-up .rev-db__m, .rev-row.is-up .rev-db__w { color: #000; }
.rev-row__body { min-width: 0; }
.rev-row__title { display: inline; font-size: 17px; font-weight: 700; line-height: 1.3; }
.rev-row:not(.is-up) .rev-row__title { font-size: 15px; font-weight: 600; }
.rev-row__body .rev-meta { margin-top: 4px; }
.rev-pill {
	display: inline-block; margin-left: 8px; vertical-align: 2px;
	font-size: 11px; font-weight: 600; line-height: 1.4; padding: 1px 8px; border-radius: 99px;
	background: #000; color: var(--rev-y); white-space: nowrap;
}
.rev-lnk { font-size: 13px; color: var(--rev-mut); text-decoration: underline; white-space: nowrap; }

.rev-today {
	display: flex; align-items: center; gap: 12px; margin: 26px 0 0;
	font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.rev-today::before, .rev-today::after { content: ""; flex: 1; height: 2px; background: var(--rev-ink); }
.rev-today i { width: 10px; height: 10px; border-radius: 50%; background: var(--rev-y); border: 2px solid var(--rev-ink); }

/* ------------------------------------------------------------------ Responsive */

@media (max-width: 900px) {
	.rev-grid--up.rev-grid--c3, .rev-grid--past { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
	.rev__in { padding-top: 32px; padding-left: 16px; padding-right: 16px; }
	.rev-hero { grid-template-columns: 1fr; gap: 16px; padding: 12px; }
	.rev-row__link, .rev-row:not(.is-up) .rev-row__link { grid-template-columns: 52px 96px 1fr; gap: 12px; }
	.rev-row:not(.is-up) .rev-row__link { grid-template-columns: 52px 80px 1fr; }
	.rev-row__cta { display: none; }
	.rev-row__title { font-size: 15px; }
	.rev-db__n { font-size: 22px; }
	.rev-pill { display: table; margin: 4px 0 0; }
	.rev-jump {
		flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
		margin-left: -16px; margin-right: -16px; padding: 0 16px 4px;
	}
	.rev-jump::-webkit-scrollbar { display: none; }
	.rev-jump a { flex: none; }
}
@media (max-width: 560px) {
	.rev-grid--up.rev-grid--c2, .rev-grid--up.rev-grid--c3, .rev-grid--past { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.rev-media img, .rev-media, .rev-card__link { transition: none; }
	.rev-card__link:hover, .rev-hero__media:hover { transform: none; }
	.rev-spin { animation: none; }
}
