/**
 * Soft-nav shell — fades, paper crossfade, subnav, prose.
 * Do NOT override home/main max-width — that lives on main.wp-block-group
 * (--yala-shell-max). Breaking it misaligns stage vs header and hides the menu.
 */

/* Hide residual titles if a template still prints one */
body.yala-has-stage:not(.yala-front-page) .wp-block-post-title {
	display: none !important;
}

body.yala-has-stage main.yala-page-main,
body.yala-has-stage main.wp-block-group {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

.yala-layout__editorial,
.yala-layout__stage-body {
	transition: opacity 0.28s ease;
}

@media (max-width: 959px) {
	.yala-layout__editorial,
	.yala-layout__stage-body,
	.yala-paper-crossfade__pane {
		transition: none !important;
	}
}

.yala-layout__editorial.is-shell-fading,
.yala-layout__stage-body.is-shell-fading {
	pointer-events: none;
}

body.yala-shell-navigating {
	cursor: progress;
}

/* Paper crossfade layers (above body bg, below content) */
.yala-paper-crossfade {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.yala-paper-crossfade__pane {
	position: absolute;
	inset: 0;
	opacity: 0;
	background-color: #fff;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	transition: opacity 0.55s cubic-bezier(0.33, 0, 0.2, 1);
}

.yala-paper-crossfade__pane.is-active {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.yala-paper-crossfade__pane {
		transition: none;
	}

	.yala-layout__editorial,
	.yala-layout__stage-body {
		transition: none;
	}
}

/* Shell typography — editorial titles in layout.css; stage titles = .yala-ribbon */
.yala-shell__lead {
	margin: 0;
	font-family: var(--yala-font-sans, "Google Sans", system-ui, sans-serif);
	font-size: 1.12rem;
	line-height: 1.5;
	font-weight: 400;
	color: var(--yala-text, #2a1b1a);
}

.yala-shell__prose {
	font-family: var(--yala-font-sans, "Google Sans", system-ui, sans-serif);
	font-size: 1.02rem;
	line-height: 1.65;
	color: rgba(42, 27, 26, 0.9);
}

.yala-shell__prose .yala-copy-email {
	cursor: pointer;
}

.yala-shell__prose .yala-copy-email.is-copied {
	font-weight: 600;
	text-decoration: none;
}

.yala-shell__prose > *:first-child {
	margin-top: 0;
}

/* —— Shared stage floats (cartas, Sobre, Aprenda) ——
 *
 * Editorial photos (Sobre/Aprenda): pull left floats back to the yellow ribbon
 * edge (cancel prose title-inset), keep equal margin toward the wrapping text,
 * and cap height so a short paragraph doesn't leave a tall empty band beside
 * a portrait float (classic float + short copy gap).
 */
.yala-stage-float {
	--yala-float-gap: 0.85rem;
	box-sizing: border-box;
	float: left;
	width: 26%;
	max-width: calc(10.5rem + 50px);
	margin: var(--yala-float-gap);
	padding: 0;
}

.yala-stage-float--left {
	float: left;
	/* Align image left edge with the yellow ribbon (not the indented prose). */
	margin-left: calc(-1 * var(--yala-stage-title-inset, 1.15rem));
	margin-right: var(--yala-float-gap);
	margin-top: var(--yala-float-gap);
	margin-bottom: var(--yala-float-gap);
}

.yala-stage-float--right {
	float: right;
	margin-left: var(--yala-float-gap);
	margin-right: 0;
	margin-top: var(--yala-float-gap);
	margin-bottom: var(--yala-float-gap);
}

.yala-stage-float img {
	display: block;
	width: 100%;
	height: auto;
	max-height: calc(13.5rem + 50px);
	object-fit: cover;
	object-position: center top;
	box-shadow: -1px 1px 0 rgba(0, 0, 0, 0.35);
}

/* Sobre subpages: editorial floats ~20% larger. */
.yala-layout[data-yala-section="sobre"] .yala-stage-float:not(.yala-stage-float--carta) {
	width: 31.2%;
	max-width: calc(12.6rem + 60px);
}

.yala-layout[data-yala-section="sobre"] .yala-stage-float:not(.yala-stage-float--carta) img {
	max-height: calc(16.2rem + 60px);
}

/* Carta keeps a wider float than editorial photos */
.yala-stage-float--carta,
.yala-carta-stage__art {
	float: left;
	width: 36%;
	max-width: 16.5rem;
	margin: 0 1.25rem 1rem 0;
	padding: 0;
}

.yala-stage-float--carta img,
.yala-carta-stage__art img {
	max-height: none;
	object-fit: unset;
	object-position: unset;
}

/* —— Carta stage: art float-left + ribbon/tags beside; prose wraps; footer clears —— */
.yala-carta-stage {
	display: block;
	width: 100%;
}

/* Desktop: panel is transparent to layout (float + wrap still work). */
.yala-carta-stage__panel {
	display: contents;
}

.yala-carta-stage__art img,
.yala-carta-stage__art .yala-card-grid__thumb {
	display: block;
	width: 100%;
	height: auto;
	/* Solid 1px shadow — same language as home modal card */
	box-shadow: -1px 1px 0 rgba(0, 0, 0, 0.35);
}

/* flow-root = BFC beside the float without clipping the ribbon fold tip */
.yala-carta-stage__beside {
	display: flow-root;
	min-width: 0;
	overflow: visible;
}

.yala-carta-stage__beside .yala-carta-stage__title {
	margin-bottom: 0.65rem;
}

.yala-carta-stage__divider {
	display: block;
	width: 100%;
	height: 0;
	margin: 1.15rem 0 1.05rem;
	border: 0;
	border-top: 1px solid rgba(74, 20, 140, 0.35);
}

.yala-carta-stage__prose {
	display: block;
}

.yala-carta-stage__prose > *:last-child {
	margin-bottom: 0;
}

.yala-carta-stage__prose + .yala-card-nav {
	/* Stay in flow after prose — do not clear float (that created a tall empty band). */
	margin-top: 1rem;
}

.yala-carta-stage__prose p {
	text-indent: 0;
}

.yala-carta-stage__footer {
	clear: both;
	padding-top: 0;
}

/* MPB individual — landscape card fills the stage; no title ribbon */
.yala-carta-stage--mpb {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1.15rem;
	width: 100%;
}

.yala-carta-stage--mpb .yala-carta-stage__art,
.yala-carta-stage__art--mpb {
	float: none !important;
	width: 60% !important;
	max-width: 60% !important;
	margin: 0 auto !important;
}

.yala-carta-stage--mpb .yala-card-grid__thumb--text,
.yala-carta-stage--mpb .yala-card-grid__thumb--text-full,
.yala-carta-stage__art--mpb .yala-card-grid__thumb--text,
.yala-carta-stage__art--mpb .yala-card-grid__thumb--text-full {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 3 / 2;
	padding: clamp(0.85rem, 2.8vw, 1.5rem);
	border-radius: 6px;
	background: #000;
	color: #fff;
	box-shadow: -1px 1px 0 rgba(0, 0, 0, 0.35);
	box-sizing: border-box;
}

.yala-carta-stage--mpb .yala-card-grid__thumb-text,
.yala-carta-stage--mpb .yala-card-grid__thumb-text--full,
.yala-carta-stage__art--mpb .yala-card-grid__thumb-text,
.yala-carta-stage__art--mpb .yala-card-grid__thumb-text--full {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-height: 100%;
	margin: 0;
	overflow: hidden;
	font-family: "Leorio", Georgia, "Times New Roman", serif;
	font-size: clamp(0.85rem, 0.7rem + 0.85vw, 1.25rem);
	font-weight: 400;
	line-height: 1.4;
	text-align: center;
}

.yala-carta-stage__art--mpb .yala-card-grid__thumb-text p,
.yala-carta-stage__art--mpb .yala-card-grid__thumb-text--full p {
	margin: 0 0 0.45em;
}

.yala-carta-stage__art--mpb .yala-card-grid__thumb-text p:last-child,
.yala-carta-stage__art--mpb .yala-card-grid__thumb-text--full p:last-child {
	margin-bottom: 0;
}

/* Legacy: representação was a paper-chip; keep chip chrome off if any old markup remains */
.yala-carta-stage__prose .yala-carta-keywords__chip.yala-paper-chip {
	display: inline;
	margin: 0 0.25em 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-size: inherit;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
	color: inherit;
	line-height: inherit;
	vertical-align: baseline;
	white-space: normal;
	--yala-blurb-tilt: 0deg;
	transform: none;
}

.yala-carta-keywords__chip--deck {
	font-weight: 500;
	letter-spacing: normal;
	text-transform: none;
	background: var(--yala-ribbon, #fbc02d);
	box-shadow: -1px 1px 0 rgba(138, 106, 0, 0.55);
}

@media (max-width: 719px) {
	.yala-stage-float,
	.yala-stage-float--right,
	.yala-stage-float--carta,
	.yala-carta-stage__art {
		float: none;
		width: min(58%, 14rem);
		max-width: none;
		margin: 0 auto 1rem;
	}

	.yala-layout[data-yala-section="sobre"] .yala-stage-float:not(.yala-stage-float--carta) {
		width: min(70%, 16.8rem);
	}

	.yala-carta-stage__art--mpb {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 auto !important;
	}

	.yala-carta-stage__beside {
		display: block;
	}
}

/* MPB: ribbon H1 stays in the a11y tree on desktop (face shows the title);
 * visually clipped, not display:none. Mobile shows the full ribbon. */
.yala-carta-stage__title--mpb {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 959px) {
	.yala-carta-keywords,
	.yala-carta-stage__divider {
		display: none !important;
	}

	.yala-layout__stage-body .yala-carta-stage__title--mpb {
		position: relative !important;
		width: 100% !important;
		height: auto !important;
		margin: 0 0 0.85rem !important;
		padding: 0.75rem 1.15rem !important;
		overflow: visible !important;
		clip: auto !important;
		clip-path: none !important;
		white-space: normal !important;
		display: flex !important;
	}

	body.yala-has-stage .yala-layout:has(.yala-carta-stage) .yala-layout__stage {
		background-color: transparent;
		background-image: none;
		border-bottom: none;
		box-shadow: none;
		padding-bottom: 0;
	}

	body.yala-has-stage .yala-layout:has(.yala-carta-stage) .yala-layout__stage-body {
		padding-top: 0.85rem;
		padding-left: 0;
		padding-right: 0;
		padding-bottom: 0;
	}

	.yala-carta-stage__art,
	.yala-stage-float--carta,
	.yala-carta-stage__art--mpb {
		float: none !important;
		display: block;
		width: min(72%, 16rem) !important;
		max-width: min(72%, 16rem) !important;
		margin: 0 auto 0.85rem !important;
		padding: 0;
		background: transparent;
	}

	.yala-carta-stage--mpb .yala-carta-stage__art,
	.yala-carta-stage__art--mpb {
		width: min(92%, 22rem) !important;
		max-width: min(92%, 22rem) !important;
	}

	.yala-carta-stage__panel {
		display: block;
		clear: both;
		box-sizing: border-box;
		width: 100%;
		margin: 0;
		padding:
			clamp(1.25rem, 4vw, 1.75rem)
			var(--yala-shell-padding, 1rem)
			1.5rem;
		background-color: #fffef9;
		background-image:
			linear-gradient(
				rgba(255, 254, 249, 0.92),
				rgba(255, 254, 249, 0.92)
			),
			var(--yala-stage-paper, none);
		background-size: auto, cover;
		background-position: center, center;
		background-repeat: no-repeat, no-repeat;
		border-top: 1px solid rgba(42, 27, 26, 0.12);
		box-shadow:
			0 1px 0 rgba(42, 27, 26, 0.08),
			0 2px 8px -4px rgba(42, 27, 26, 0.18);
		color: var(--yala-text, #2a1b1a);
	}

	.yala-carta-stage__beside {
		display: block;
	}

	.yala-carta-stage--mpb {
		gap: 0;
	}
}

.yala-layout__editorial .yala-carta-nav,
.yala-layout__editorial .yala-card-nav,
.yala-layout__editorial .yala-carta-footer {
	margin-top: 1.75rem;
}

.yala-layout__editorial .yala-cursos-waitlist {
	margin-top: 0.35rem;
	padding: 0;
	width: 100%;
}

/* Waitlist ficha — form sits in __after like Baralhos specs. */
.yala-cursos-waitlist .yala-email-capture__form {
	max-width: none;
}

.yala-cursos-waitlist .yala-email-capture__intro {
	margin: 0 0 0.75rem;
	font-family: var(--yala-font-sans, "Google Sans", system-ui, sans-serif);
	font-size: 0.82rem;
	font-weight: 400;
	line-height: 1.4;
	color: rgba(42, 27, 26, 0.78);
}

.yala-cursos-waitlist .yala-email-capture__field {
	margin: 0 0 0.55rem;
}

.yala-cursos-waitlist .yala-email-capture__input {
	border-radius: 0;
	border: 1px solid rgba(42, 27, 26, 0.16);
	padding: 0.55rem 0.65rem;
	font-size: 0.82rem;
	font-weight: 400;
	background: #fff;
}

.yala-cursos-waitlist .yala-email-capture__input::placeholder {
	color: rgba(42, 27, 26, 0.42);
	font-weight: 400;
}

.yala-cursos-waitlist .yala-email-capture__consent {
	font-size: 0.72rem;
	font-weight: 400;
	line-height: 1.4;
	color: rgba(42, 27, 26, 0.72);
}

.yala-cursos-waitlist .yala-email-capture__button {
	display: flex;
	width: 100%;
	min-height: 2.4rem;
	margin-top: 0.35rem;
	border-radius: 0;
	border: 0;
	background: var(--yala-primary, #4a148c);
	color: #fff !important;
	font-family: var(--yala-font-sans, "Google Sans", system-ui, sans-serif);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: none;
	transform: none;
}

.yala-cursos-waitlist .yala-email-capture__button:focus,
.yala-cursos-waitlist .yala-email-capture__button:focus-visible{
	background: var(--yala-primary-dark, #38096b);
	transform: none;
	box-shadow: none;
	filter: brightness(1.05);
}

@media (hover: hover) and (pointer: fine) {
	.yala-cursos-waitlist .yala-email-capture__button:hover {
		background: var(--yala-primary-dark, #38096b);
		transform: none;
		box-shadow: none;
		filter: brightness(1.05);
}
}

/* Hub panels inside stage */
.yala-layout__stage-body .yala-baralho-hub {
	max-width: none;
}

.yala-layout__stage-body .yala-baralho-hub__hero {
	display: none;
}

.yala-layout__stage-body .yala-oraculo {
	max-width: none;
}

.yala-layout__stage-body .yala-oraculo__page-title {
	display: none;
}

@media (max-width: 959px) {
	.yala-layout__stage-body .yala-oraculo-agende-title {
		margin-bottom: 0 !important;
	}
}

.yala-stage-nav__links {
	transition: opacity 0.28s ease;
}

/* Ritual dialog is portaled; keep it out of stage flow until open */
.yala-layout__stage-body .yala-oraculo__ritual:not([open]) {
	display: none;
}

/* Let oracle card backs bleed without clipping against the stage body. */
.yala-layout__stage-body:has(.yala-oracle-card) {
	overflow: visible;
}

/*
 * Tiragens menu — reuses Baralhos ficha shell (yala-ed-menu__block + yellow
 * ribbon). Only the list rows are custom (single-column, no specs table).
 * List inherits .yala-ed-menu__after padding so text lines up with the ribbon.
 */
.yala-layout[data-yala-section="oraculo"] .yala-layout__editorial {
	gap: 0.7rem; /* tighter than default 1.25 — lead + Tiragens read as one block */
}

.yala-layout[data-yala-section="oraculo"] .yala-layout__editorial .yala-shell__lead {
	margin-bottom: 0;
}

.yala-tiragens-nav {
	margin: 0; /* cancel .yala-ed-menu top margin */
}

/* Keep Tiragens with the lead — don't sticky-park it mid-column on tall stages. */
@media (min-width: 960px) {
	.yala-layout[data-yala-section="oraculo"] .yala-tiragens-nav {
		position: static;
	}
}

/* Force yellow ficha ribbon (same as Baralhos is-current), not default purple. */
.yala-tiragens-nav .yala-ed-menu__ribbon {
	--yala-ribbon-base: var(--yala-secondary-bright, #fbc02d);
	--yala-ribbon-ink: var(--yala-text, #2a1b1a);
	background-color: var(--yala-secondary-bright, #fbc02d);
	background-image:
		linear-gradient(
			rgba(251, 192, 45, calc(1 - var(--yala-ribbon-paper-opacity, 0.3))),
			rgba(251, 192, 45, calc(1 - var(--yala-ribbon-paper-opacity, 0.3)))
		),
		var(--yala-ribbon-paper, none);
	color: var(--yala-text, #2a1b1a);
}

.yala-tiragens-nav .yala-ed-menu__ribbon::after {
	border-color: #8a6a00 transparent transparent transparent;
}

.yala-tiragens-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.yala-tiragens-nav__link {
	display: block;
	padding: 0.28rem 0;
	border-top: 1px solid rgba(42, 27, 26, 0.1);
	font-family: var(--yala-font-sans, "Google Sans", system-ui, sans-serif);
	font-size: 0.72rem;
	font-weight: 400;
	line-height: 1.35;
	color: var(--yala-text, #2a1b1a);
	text-decoration: none !important;
	transition: color 0.15s ease;
}

.yala-tiragens-nav__item:first-child .yala-tiragens-nav__link {
	border-top: 0;
	padding-top: 0;
}

.yala-tiragens-nav__link:focus-visible{
	color: var(--yala-primary, #4a148c);
}

@media (hover: hover) and (pointer: fine) {
	.yala-tiragens-nav__link:hover {
		color: var(--yala-primary, #4a148c);
}
}

.yala-tiragens-nav__item.is-current .yala-tiragens-nav__link {
	font-weight: 500;
	color: var(--yala-primary, #4a148c);
}

/*
 * Shared oracle / oraculista card shell: 1/3 art + 2/3 body.
 */
.yala-oracle-card {
	display: grid;
	grid-template-columns: minmax(8.5rem, 1fr) minmax(0, 2fr);
	width: 100%;
	margin: 2.75rem 0 3.75rem;
	padding: 0;
	border: 1px solid rgba(42, 27, 26, 0.16);
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(34, 40, 49, 0.14);
	color: inherit;
	font: inherit;
	text-align: left;
	text-decoration: none !important;
	cursor: pointer;
	appearance: none;
	/* Visible so desktop versos can bleed a bit past the art cell. */
	overflow: visible;
}

a.yala-oracle-card {
	color: inherit;
}

/* Oraculista sits under its own ribbon — standard stage rhythm, no hole. */
.yala-oracle-card--oraculista {
	margin: 0.85rem 0 0;
	overflow: hidden;
}

.yala-oracle-card__art {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 10.5rem;
	overflow: visible;
	align-self: stretch;
}

.yala-oracle-card--oraculista .yala-oracle-card__art {
	/* Let the body column set the row height — don't force the 10.5rem art min. */
	min-height: 0;
	overflow: hidden;
}

.yala-oracle-card__back {
	position: absolute;
	top: 50%;
	border-radius: 6px;
	box-shadow: 0 6px 18px rgba(34, 40, 49, 0.16);
	transition: transform 0.25s cubic-bezier(0.33, 0, 0.2, 1);
}

/*
 * Same display width — natural aspect ratios of each verso do the rest.
 * Tarô sits behind; Ciganage in front, slightly offset.
 */
.yala-oracle-card__back--taro {
	left: 8%;
	width: 58%;
	max-width: 7.75rem;
	z-index: 1;
	transform: translateY(-50%) rotate(-4deg);
}

.yala-oracle-card__back--ciganage {
	left: 30%;
	width: 58%;
	max-width: 7.75rem;
	z-index: 2;
	transform: translateY(-50%) rotate(3deg);
}

.yala-oracle-card__back--solo {
	left: 50%;
	width: 62%;
	max-width: 8.25rem;
	z-index: 1;
	transform: translate(-50%, -50%) rotate(-2deg);
}

.yala-oracle-card:focus-visible .yala-oracle-card__back--taro{
	transform: translateY(-50%) rotate(-4deg) scale(1.045);
}

@media (hover: hover) and (pointer: fine) {
	.yala-oracle-card:hover .yala-oracle-card__back--taro {
		transform: translateY(-50%) rotate(-4deg) scale(1.045);
}
}

.yala-oracle-card:focus-visible .yala-oracle-card__back--ciganage{
	transform: translateY(-50%) rotate(3deg) scale(1.045);
}

@media (hover: hover) and (pointer: fine) {
	.yala-oracle-card:hover .yala-oracle-card__back--ciganage {
		transform: translateY(-50%) rotate(3deg) scale(1.045);
}
}

.yala-oracle-card:focus-visible .yala-oracle-card__back--solo{
	transform: translate(-50%, -50%) rotate(-2deg) scale(1.045);
}

@media (hover: hover) and (pointer: fine) {
	.yala-oracle-card:hover .yala-oracle-card__back--solo {
		transform: translate(-50%, -50%) rotate(-2deg) scale(1.045);
}
}

/* Desktop consult card: versos only (photo is the mobile fallback). */
.yala-oracle-card:not(.yala-oracle-card--oraculista) .yala-oracle-card__photo {
	display: none;
}

/* Full-bleed photo in the art cell — card outer size unchanged. */
.yala-oracle-card__photo {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center top;
	border-radius: 0;
	box-shadow: none;
	transform: none;
	transition: transform 0.25s cubic-bezier(0.33, 0, 0.2, 1);
}

.yala-oracle-card--oraculista:focus-visible .yala-oracle-card__photo{
	transform: scale(1.03);
	transform-origin: center center;
}

@media (hover: hover) and (pointer: fine) {
	.yala-oracle-card--oraculista:hover .yala-oracle-card__photo {
		transform: scale(1.03);
		transform-origin: center center;
}
}

.yala-oracle-card__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border-left: 1px solid rgba(42, 27, 26, 0.16);
}

.yala-oracle-card__hint {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	padding: 1rem 1.25rem;
	background: rgba(42, 27, 26, 0.02);
	font-family: var(--yala-font-sans, "Google Sans", system-ui, sans-serif);
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--yala-text, #2a1b1a);
	transition: background-color 0.2s ease;
}

.yala-oracle-card:focus-visible .yala-oracle-card__hint{
	background: rgba(42, 27, 26, 0.06);
}

@media (hover: hover) and (pointer: fine) {
	.yala-oracle-card:hover .yala-oracle-card__hint {
		background: rgba(42, 27, 26, 0.06);
}
}

.yala-oracle-card__cta {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	padding: 0.85rem 1.5rem;
	background-color: var(--yala-accent, #006064);
	background-image: linear-gradient(rgba(0, 45, 48, 0.25), rgba(0, 45, 48, 0.25)), var(--yala-teal-paper, none);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #fff;
	transition: background-color 0.2s ease;
}

.yala-oracle-card:focus-visible .yala-oracle-card__cta{
	background-color: var(--yala-accent-dark, #004246);
	background-image: linear-gradient(rgba(0, 45, 48, 0.45), rgba(0, 45, 48, 0.45)), var(--yala-teal-paper, none);
}

@media (hover: hover) and (pointer: fine) {
	.yala-oracle-card:hover .yala-oracle-card__cta {
		background-color: var(--yala-accent-dark, #004246);
		background-image: linear-gradient(rgba(0, 45, 48, 0.45), rgba(0, 45, 48, 0.45)), var(--yala-teal-paper, none);
}
}

.yala-oracle-card__cta-text {
	font-family: var(--yala-font-sans, "Google Sans", system-ui, sans-serif);
	font-size: 0.92rem;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: center;
}

/* Free-draw CTA: desktop keeps a single label; mobile adds "Toque aqui". */
.yala-oracle-card__cta-kicker,
.yala-oracle-card__cta-text--mobile {
	display: none;
}

.yala-oracle-card__cta-text--desktop {
	display: inline;
}

@media (max-width: 719px) {
	.yala-oracle-card {
		margin: 1.25rem 0 2.5rem;
	}

	.yala-oracle-card--oraculista {
		margin: 0.85rem 0 0;
	}
}

/* Mobile: photo art, no versos, no hover motion on oracle CTAs */
@media (max-width: 959px) {
	.yala-oracle-card {
		grid-template-columns: 1fr;
		overflow: hidden;
	}

	/*
	 * Stack: description → photo → CTA (body unwraps so art can sit between).
	 */
	.yala-oracle-card__body {
		display: contents;
		border: 0;
	}

	.yala-oracle-card__hint {
		order: 1;
		flex: none;
		display: block;
		text-align: center;
		border-bottom: 1px solid rgba(42, 27, 26, 0.16);
	}

	/* Free-draw hint: keep the prompt clearly centered on a phone. */
	.yala-oracle-card:not(.yala-oracle-card--oraculista) .yala-oracle-card__hint {
		padding: 1.1rem 1.35rem;
		text-align: center;
	}

	/* Free draw only: clearer tap instruction on the teal CTA. */
	.yala-oracle-card:not(.yala-oracle-card--oraculista) .yala-oracle-card__cta {
		flex-direction: column;
		gap: 0.2rem;
		padding: 1.05rem 1.25rem 1.15rem;
	}

	.yala-oracle-card:not(.yala-oracle-card--oraculista) .yala-oracle-card__cta-kicker {
		display: block;
		font-family: var(--yala-font-sans, "Google Sans", system-ui, sans-serif);
		font-size: 1.05rem;
		font-weight: 600;
		letter-spacing: 0.04em;
		text-transform: none;
		line-height: 1.2;
	}

	.yala-oracle-card:not(.yala-oracle-card--oraculista) .yala-oracle-card__cta-text--desktop {
		display: none;
	}

	.yala-oracle-card:not(.yala-oracle-card--oraculista) .yala-oracle-card__cta-text--mobile {
		display: block;
		font-size: 0.78rem;
		font-weight: 400;
		letter-spacing: 0.08em;
		opacity: 0.92;
	}

	.yala-oracle-card__art {
		order: 2;
		min-height: 8rem;
		overflow: hidden;
	}

	.yala-oracle-card--oraculista .yala-oracle-card__art {
		min-height: 10rem;
	}

	.yala-oracle-card__cta {
		order: 3;
		flex: none;
	}

	.yala-oracle-card__back {
		display: none !important;
	}

	.yala-oracle-card:not(.yala-oracle-card--oraculista) .yala-oracle-card__photo {
		display: block;
	}

	/*
	 * Frame stays put; photo content shifts up ~40px so the crop reads better.
	 */
	.yala-oracle-card__photo {
		inset: auto;
		top: 0;
		left: 0;
		width: 100%;
		height: calc(100% + 40px);
		margin-top: -40px;
	}

	/* Hover styles live only in @media (hover: hover); nothing to cancel here. */
	.yala-oracle-card,
	.yala-oracle-card__photo,
	.yala-oracle-card__hint,
	.yala-oracle-card__cta {
		transition: none !important;
	}
}

/* Authored H2/H3 inside tiragem prose — black, not theme red (--yala-heading).
 * First section title is a yellow ribbon (rendered separately in PHP). */
main .yala-shell__prose--oraculo h2,
main .yala-shell__prose--oraculo h3,
.yala-layout__stage-body .yala-shell__prose--oraculo h2,
.yala-layout__stage-body .yala-shell__prose--oraculo h3 {
	margin: 1.6rem 0 0.55rem;
	padding-bottom: 0.35rem;
	border-bottom: 1px solid rgba(42, 27, 26, 0.14);
	font-family: var(--yala-font-display, "Fraunces", Georgia, serif);
	font-weight: 500;
	color: var(--yala-text, #2a1b1a);
}

main .yala-shell__prose--oraculo h2,
.yala-layout__stage-body .yala-shell__prose--oraculo h2 {
	font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem);
}

main .yala-shell__prose--oraculo h3,
.yala-layout__stage-body .yala-shell__prose--oraculo h3 {
	font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.2rem);
}

.yala-shell__prose--oraculo > *:first-child,
.yala-shell__prose--oraculo-lead > *:first-child {
	margin-top: 0;
}

.yala-shell__prose--oraculo-lead {
	margin-bottom: 0;
}

