/**
 * REAL Revista — public styles v1.3.4
 * Full-bleed hero, tilted cover, tall PDF viewer, mobile-ready.
 */

/* Page chrome: hide WP title, flush under header, true full-bleed */
body.page-id-6318 .page-header,
body.page-id-6318 .entry-title,
body:has(.real-revista-public) .page-header,
body:has(.real-revista-public) h1.entry-title {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
}
body.page-id-6318 #content.site-main,
body.page-id-6318 .page-content,
body:has(.real-revista-public) #content.site-main,
body:has(.real-revista-public) .page-content {
	padding-top: 0 !important;
	margin-top: 0 !important;
}
body.page-id-6318 .page-content,
body:has(.real-revista-public) .page-content {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}


/* Break Elementor/theme overflow that clips 100vw hero */
body.page-id-6318 #content,
body.page-id-6318 #content.site-main,
body.page-id-6318 .page-content,
body.page-id-6318 article.page,
body.page-id-6318 .entry-content,
body:has(.real-revista-public) #content,
body:has(.real-revista-public) #content.site-main,
body:has(.real-revista-public) .page-content,
body:has(.real-revista-public) article.page,
body:has(.real-revista-public) .entry-content,
body:has(.real-revista-public) .site-main {
	overflow: visible !important;
	overflow-x: visible !important;
	max-width: none !important;
}
body.page-id-6318 .site,
body:has(.real-revista-public) .site,
body:has(.real-revista-public) #page {
	overflow-x: clip;
}
.real-revista-public {
	--rr-navy: #001832;
	--rr-blue: #0170B9;
	--rr-orange: #FE8108;
	--rr-white: #fff;
	--rr-muted: #6b7c8f;
	--rr-bg: #f0f4f8;
	--rr-radius: 16px;
	font-family: inherit;
	color: var(--rr-navy);
	line-height: 1.55;
	overflow-x: clip;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.real-revista-public *,
.real-revista-public *::before,
.real-revista-public *::after {
	box-sizing: border-box;
}

/* ===== Hero full-bleed ===== */
.rr-hero {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-top: 0;
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	left: auto;
	right: auto;
	transform: none;
	padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
	padding-top: clamp(2.75rem, 5vw, 4.25rem);
	background:
		radial-gradient(ellipse 80% 70% at 85% 20%, rgba(1, 112, 185, 0.45) 0%, transparent 55%),
		radial-gradient(ellipse 60% 50% at 10% 90%, rgba(254, 129, 8, 0.18) 0%, transparent 50%),
		linear-gradient(125deg, #001020 0%, #001832 35%, #003a6b 70%, #0170B9 100%);
	color: var(--rr-white);
	overflow: hidden;
}

.rr-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at center, #000 15%, transparent 70%);
	pointer-events: none;
	opacity: 0.55;
}

.rr-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(1.75rem, 4vw, 3.5rem);
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

.rr-hero__text { min-width: 0; }

.rr-badge {
	display: inline-flex;
	align-items: center;
	background: var(--rr-orange);
	color: var(--rr-white);
	font-size: clamp(0.7rem, 1.2vw, 0.8rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.4rem 0.95rem;
	border-radius: 999px;
	margin-bottom: clamp(0.85rem, 2vw, 1.25rem);
	box-shadow: 0 6px 20px rgba(254, 129, 8, 0.35);
}


.rr-hero__page-title {
	margin: 0 0 clamp(0.75rem, 1.8vw, 1.1rem);
	font-size: clamp(2.1rem, 5vw, 3.5rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--rr-white);
}
.rr-hero__title {
	margin: 0 0 clamp(0.6rem, 1.5vw, 1rem);
	font-size: clamp(1.85rem, 4.2vw, 3.25rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--rr-white);
	text-wrap: balance;
}

.rr-hero__meta {
	margin: 0 0 clamp(0.85rem, 2vw, 1.25rem);
	font-size: clamp(0.95rem, 1.6vw, 1.15rem);
	opacity: 0.9;
	font-weight: 500;
}

.rr-hero__desc {
	margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
	font-size: clamp(1rem, 1.7vw, 1.2rem);
	opacity: 0.92;
	max-width: 36em;
	line-height: 1.6;
}

.rr-hero__desc p { margin: 0 0 0.6em; }
.rr-hero__desc p:last-child { margin-bottom: 0; }

.rr-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.rr-hero__cover {
	display: flex;
	justify-content: center;
	align-items: center;
	perspective: 1100px;
	padding: 0.5rem 0;
}

.rr-hero__cover-frame {
	position: relative;
	width: min(100%, 360px);
	/* Looking toward the right */
	transform: rotateY(-16deg) rotateZ(5deg) translateX(6%);
	transform-style: preserve-3d;
	transition: transform 0.35s ease;
}

.rr-hero__cover-frame:hover {
	transform: rotateY(-9deg) rotateZ(2deg) translateX(2%);
}

.rr-hero__cover-frame::after {
	content: "";
	position: absolute;
	inset: 10% 50% -10% -14%;
	background: rgba(0, 0, 0, 0.4);
	filter: blur(30px);
	z-index: -1;
	border-radius: 24px;
}

.rr-hero__cover img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow:
		0 28px 55px rgba(0, 0, 0, 0.5),
		0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Buttons */
.rr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.85rem 1.45rem;
	border-radius: 10px;
	font-weight: 700;
	font-size: clamp(0.9rem, 1.4vw, 1.05rem);
	text-decoration: none !important;
	border: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.rr-btn:hover { transform: translateY(-2px); }

.rr-btn--orange {
	background: var(--rr-orange);
	color: var(--rr-white) !important;
	box-shadow: 0 8px 24px rgba(254, 129, 8, 0.4);
}
.rr-btn--orange:hover { box-shadow: 0 12px 28px rgba(254, 129, 8, 0.5); }

.rr-btn--ghost {
	background: rgba(255, 255, 255, 0.1);
	color: var(--rr-white) !important;
	border: 1px solid rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(6px);
}

.rr-btn--blue {
	background: var(--rr-blue);
	color: var(--rr-white) !important;
}

.rr-btn--sm {
	padding: 0.45rem 0.9rem;
	font-size: 0.85rem;
}

/* Sections */
.rr-section {
	max-width: 1100px;
	margin: 0 auto 2.75rem;
	padding: 0 clamp(0.75rem, 3vw, 1rem);
}

.rr-section-title {
	color: var(--rr-navy);
	font-size: clamp(1.25rem, 2.5vw, 1.6rem);
	font-weight: 800;
	margin: 0 0 1.25rem;
	letter-spacing: -0.01em;
}
.rr-section-title::after {
	content: "";
	display: block;
	width: 3rem;
	height: 3px;
	margin-top: 0.5rem;
	background: var(--rr-orange);
	border-radius: 2px;
}

.rr-viewer-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}
.rr-viewer-toolbar .rr-section-title { margin-bottom: 0; }
.rr-viewer-toolbar .rr-section-title::after { display: none; }

/* PDF — tall on desktop */
.rr-iframe-wrap {
	position: relative;
	width: 100%;
	height: min(92vh, 1400px);
	min-height: 780px;
	background: #1a1a1a;
	border-radius: var(--rr-radius);
	overflow: hidden;
	border: 1px solid rgba(0, 24, 50, 0.1);
	box-shadow: 0 16px 40px rgba(0, 24, 50, 0.12);
}
.rr-iframe-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #525659;
}

.rr-viewer-mobile-note {
	display: none;
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
	color: var(--rr-muted);
	text-align: center;
}

.rr-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1.35rem;
}

.rr-card {
	background: var(--rr-white);
	border-radius: var(--rr-radius);
	overflow: hidden;
	border: 1px solid rgba(0, 24, 50, 0.08);
	box-shadow: 0 6px 18px rgba(0, 24, 50, 0.06);
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.rr-card:hover {
	box-shadow: 0 14px 32px rgba(0, 24, 50, 0.12);
	transform: translateY(-3px);
}
.rr-card__cover {
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--rr-bg);
}
.rr-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.rr-card__body {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	flex: 1;
}
.rr-card__edition {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--rr-blue);
	text-transform: uppercase;
}
.rr-card__title {
	margin: 0;
	font-size: 1rem;
	color: var(--rr-navy);
	line-height: 1.3;
}
.rr-card__date {
	margin: 0;
	font-size: 0.85rem;
	color: var(--rr-muted);
}
.rr-card__body .rr-btn {
	margin-top: auto;
	align-self: flex-start;
}

.rr-empty {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--rr-muted);
	background: var(--rr-bg);
	border-radius: var(--rr-radius);
}

/* Desktop: native PDF only */
@media (min-width: 641px) {
	.rr-iframe-wrap--mobile { display: none !important; }
	.rr-iframe-wrap--native { display: block; }
}

/* Tablet */
@media (max-width: 900px) {
	.rr-hero__inner {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.rr-hero__desc { margin-left: auto; margin-right: auto; }
	.rr-hero__actions { justify-content: center; }
	.rr-hero__cover-frame {
		width: min(72vw, 290px);
		transform: rotateY(-12deg) rotateZ(6deg);
	}
	.rr-iframe-wrap {
		min-height: 680px;
		height: 85vh;
	}
}

/* Mobile */
@media (max-width: 640px) {
	.rr-hero { padding: 2rem 1.15rem 2.75rem; }
	.rr-hero__title { font-size: clamp(1.7rem, 8vw, 2.15rem); }
	.rr-hero__meta,
	.rr-hero__desc { font-size: 1rem; }
	.rr-hero__cover-frame {
		width: min(70vw, 250px);
		transform: rotateY(-10deg) rotateZ(7deg) translateX(0);
	}
	.rr-hero__actions {
		flex-direction: column;
		width: 100%;
	}
	.rr-hero__actions .rr-btn { width: 100%; }

	.rr-iframe-wrap {
		min-height: 78vh;
		height: 82vh;
		border-radius: 12px;
	}
	.rr-viewer-mobile-note { display: block; }
	.rr-iframe-wrap--native { display: none !important; }
	.rr-iframe-wrap--mobile { display: block !important; }
}



/* ===== Hero committee + collaborators ===== */
.rr-hero__people {
	display: flex;
	flex-direction: column;
	gap: clamp(0.85rem, 2vw, 1.25rem);
	margin: 0 0 clamp(1.1rem, 2.2vw, 1.5rem);
}

.rr-hero__collabs {
	margin: 0;
}

.rr-hero__collabs-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.75;
	margin-bottom: 0.55rem;
}

.rr-collabs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 0.85rem;
	align-items: center;
}

.rr-collab {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	max-width: 100%;
}

.rr-collab__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	box-shadow:
		0 0 0 2px rgba(255, 255, 255, 0.35),
		0 4px 12px rgba(0, 0, 0, 0.25);
	background: rgba(255, 255, 255, 0.12);
}

.rr-collab__name {
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.25;
	opacity: 0.95;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 11rem;
}

@media (max-width: 900px) {
	.rr-hero__collabs { display: flex; flex-direction: column; align-items: center; }
	.rr-collabs { justify-content: center; }
}

@media (max-width: 640px) {
	.rr-collab__avatar { width: 36px; height: 36px; }
	.rr-collab__name { font-size: 0.8rem; max-width: 9.5rem; }
}

/* ===== Archive / previous editions — full-bleed ===== */
.rr-archive {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-bottom: 0;
	padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
	background:
		radial-gradient(ellipse 70% 60% at 0% 0%, rgba(1, 112, 185, 0.08) 0%, transparent 55%),
		linear-gradient(180deg, #f3f6fa 0%, #e8eef5 100%);
}

.rr-archive__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.rr-archive__header {
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
	max-width: 40rem;
}

.rr-archive__eyebrow {
	display: inline-block;
	font-size: clamp(0.7rem, 1.2vw, 0.8rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--rr-orange);
	margin-bottom: 0.5rem;
}

.rr-archive__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.45rem, 3vw, 2rem);
	font-weight: 800;
	color: var(--rr-navy);
	letter-spacing: -0.02em;
}

.rr-archive__title::after {
	content: "";
	display: block;
	width: 3rem;
	height: 3px;
	margin-top: 0.55rem;
	background: var(--rr-orange);
	border-radius: 2px;
}

.rr-archive__lead {
	margin: 0.75rem 0 0;
	font-size: clamp(0.95rem, 1.5vw, 1.1rem);
	color: var(--rr-muted);
	line-height: 1.5;
}

.rr-archive .rr-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: clamp(1rem, 2.5vw, 1.75rem);
}

.rr-archive .rr-card {
	background: var(--rr-white);
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(0, 24, 50, 0.07);
	box-shadow: 0 8px 24px rgba(0, 24, 50, 0.07);
}

.rr-archive .rr-card__cover {
	aspect-ratio: 3 / 4;
}

.rr-archive .rr-card__body {
	padding: clamp(0.85rem, 2vw, 1.15rem);
}

@media (max-width: 640px) {
	.rr-archive {
		padding: 2rem 1.15rem 2.75rem;
	}
	.rr-archive .rr-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.85rem;
	}
	.rr-archive .rr-card__title {
		font-size: 0.9rem;
	}
	.rr-archive .rr-btn--sm {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 380px) {
	.rr-archive .rr-grid {
		grid-template-columns: 1fr;
	}
}
