/*
 * O Porquê de Servir: theme styles that theme.json cannot express.
 * Direction E "Luz" (design-options/option-e.html): floating pill header, pill
 * tags, rounded cards (22 px, 14 px), gold pill buttons, accordions.
 * Only tokens from theme.json (CSS variables). Mobile first.
 * Motion-owned effects live in assets/css/motion.css; this file is the final,
 * static state (what visitors see with animations turned off: html.m-off).
 */

/* ── Base ─────────────────────────────────────────────────────────────── */

html {
	overflow-x: clip;
	scroll-padding-top: calc(var(--wp--custom--header--top) + var(--wp--custom--header--height) + 1rem);
	/* The leaf from the cover (assets/images/mark.svg), for masks on pseudo-elements. */
	--opds-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='20 16 24 32'%3E%3Cpath fill-rule='evenodd' d='M32 18c7 5 10 11 0 28-10-17-7-23 0-28zm-.45 7.5v14h.9v-14z'/%3E%3C/svg%3E");
	--opds-muted: var(--wp--preset--color--ebony-muted);
	--opds-line: var(--wp--custom--line);
	--opds-r: var(--wp--custom--radius--card);
	--opds-r-s: var(--wp--custom--radius--small);
}

@media screen {
	html {
		scroll-behavior: smooth;
	}
}

body {
	overflow-x: clip;
	font-variant-numeric: lining-nums;
	-webkit-font-smoothing: antialiased;
}

/*
 * Header, main and footer touch; full-width sections inside the section
 * templates (front page, page-seccoes) touch too. Text pages (page.html, whose
 * main is also .opds-section) keep the normal block gap between their blocks.
 */
.wp-site-blocks > * + *,
.opds-main:not(.opds-section) > .wp-block-post-content > * {
	margin-block-start: 0;
}

.opds-main:not(.opds-section) > .wp-block-post-content > * {
	margin-block-end: 0;
}

/* Text pages: headings open a new part of the text. */
.opds-main.opds-section > .wp-block-post-content > :is(h2, h3):not(:first-child) {
	margin-block-start: var(--wp--preset--spacing--50);
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: text-decoration-thickness 150ms var(--wp--custom--ease--out), color 150ms var(--wp--custom--ease--out), opacity 150ms var(--wp--custom--ease--out);
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 2px solid var(--opds-ring, var(--wp--preset--color--ebony));
	outline-offset: 3px;
	border-radius: 6px;
}

.opds-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0 !important;
}

/* ── Surfaces ─────────────────────────────────────────────────────────── */

.is-style-dark {
	--opds-ring: var(--wp--preset--color--gold-light);
	--opds-muted: var(--wp--custom--muted-on-dark);
	--opds-line: var(--wp--custom--line-on-dark);
}

.is-style-dark .is-style-eyebrow,
.is-style-dark .is-style-author,
.is-style-dark .is-style-chapter {
	color: var(--wp--preset--color--sage);
}

.opds-section {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}

.opds-section--tight {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

/* First section of a page: clears the floating header. */
.opds-section--top,
.opds-main > .wp-block-post-content > .opds-section:first-child.opds-section--top {
	padding-top: calc(var(--wp--custom--header--top) + var(--wp--custom--header--height) + var(--wp--preset--spacing--50));
	padding-bottom: var(--wp--preset--spacing--60);
}

.opds-panel {
	padding: var(--wp--preset--spacing--40);
	border-radius: var(--opds-r);
}

@media (min-width: 48rem) {
	.opds-panel {
		padding: var(--wp--preset--spacing--50);
	}
}

.opds-panel__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
}

/* ── Text ─────────────────────────────────────────────────────────────── */

/* Pill tag ("O novo livro de Débora Chaves", "Edições"): colours and type in theme.json (paragraph style "tag"). */
.is-style-tag {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	width: fit-content;
	padding: 0.38rem 0.85rem;
	border-radius: var(--wp--custom--radius--pill);
	margin-block: 0;
}

.has-text-align-center.is-style-tag {
	margin-inline: auto;
}

.is-style-tag strong {
	font-weight: 600;
	color: var(--wp--preset--color--gold-ink);
}

.is-style-dark .is-style-tag {
	background-color: color-mix(in srgb, var(--wp--preset--color--bone) 10%, transparent);
	color: var(--wp--preset--color--bone);
}

.is-style-dark .is-style-tag strong {
	color: var(--wp--preset--color--gold);
}

.opds-tag--mark::before {
	content: "";
	flex: none;
	width: 0.8rem;
	height: 1.1rem;
	background: var(--wp--preset--color--gold);
	-webkit-mask: var(--opds-mark) center / contain no-repeat;
	mask: var(--opds-mark) center / contain no-repeat;
}

/* The tag sits closer to the heading under it. */
:is(.is-layout-constrained, .is-layout-flow) > .is-style-tag + * {
	margin-block-start: 1.4rem;
}

.is-style-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.is-style-eyebrow::before {
	content: "";
	flex: 0 0 2.25rem;
	height: 1px;
	background: currentColor;
	opacity: 0.6;
}

.is-style-chapter {
	display: flex;
	align-items: center;
	gap: 0 0.9rem;
	margin-block: 0 var(--wp--preset--spacing--40);
}

.is-style-chapter strong {
	font-weight: 500;
	color: var(--wp--preset--color--gold-ink);
}

.is-style-chapter::after {
	content: "";
	flex: 0 0 3rem;
	height: 1px;
	background: var(--opds-line);
}

.is-style-lead {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 400;
	line-height: 1.45;
}

.is-style-dark .is-style-lead {
	color: var(--wp--preset--color--bone);
}

/* Lead under a section heading (Jost, muted). */
.opds-lead {
	max-width: 36rem;
	font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem);
	line-height: 1.6;
	color: var(--opds-muted);
}

.has-text-align-center.opds-lead {
	margin-inline: auto;
}

:is(.is-layout-constrained, .is-layout-flow) > h2 + .opds-lead,
:is(.is-layout-constrained, .is-layout-flow) > h1 + .opds-lead {
	margin-block-start: 1.25rem;
}

/* Gold ink for the word in italics ("de", "propósito", "exemplar"). */
:where(h1, h2, h3) em {
	font-style: italic;
	font-weight: 400;
	color: var(--wp--preset--color--gold-ink);
}

.is-style-dark :where(h1, h2, h3) em {
	color: var(--wp--preset--color--gold);
}

.opds-synopsis,
.opds-bio {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.6;
}

.opds-synopsis > p:first-child,
.opds-bio > p:first-child {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.45;
}

.opds-price-line {
	margin-block-end: 0;
	font-size: var(--wp--preset--font-size--small);
	font-variant-numeric: tabular-nums;
	color: var(--opds-muted);
}

.opds-draft-note {
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	border-left: 3px solid var(--wp--preset--color--gold-ink);
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--card);
	font-size: var(--wp--preset--font-size--small);
}

/* Content still to come (editors only see it; visitors never get it, see inc/setup.php). */
.opds-todo {
	outline: 1px dashed var(--wp--preset--color--gold-ink);
	outline-offset: 4px;
}

/* ── The mark: fleuron divider and tailpiece ──────────────────────────── */

.wp-block-separator.is-style-fleuron {
	--opds-rule: var(--wp--custom--rule--gold);
	--opds-rule-length: min(6rem, 22vw);
	--opds-mark-size: var(--wp--custom--mark--size);
	position: relative;
	width: calc(2 * var(--opds-rule-length) + 2 * var(--wp--preset--spacing--20) + var(--opds-mark-size));
	max-width: 100%;
	height: var(--opds-mark-size);
	margin-block: var(--wp--preset--spacing--40);
	margin-inline: auto !important;
	border: 0;
	background: none;
	color: var(--wp--preset--color--gold-ink);
	opacity: 1;
}

.is-style-dark .wp-block-separator.is-style-fleuron {
	--opds-rule: var(--wp--custom--rule--gold-on-dark);
	color: var(--wp--preset--color--gold);
}

.wp-block-separator.is-style-fleuron::before,
.wp-block-separator.is-style-fleuron::after {
	content: "";
	position: absolute;
}

.wp-block-separator.is-style-fleuron::before {
	inset: 50% 0 auto;
	height: 1px;
	background: linear-gradient(90deg, var(--opds-rule) 0 calc(50% - var(--opds-mark-size) / 2 - var(--wp--preset--spacing--20)), transparent 0 calc(50% + var(--opds-mark-size) / 2 + var(--wp--preset--spacing--20)), var(--opds-rule) 0);
}

.wp-block-separator.is-style-fleuron::after {
	inset: 0 calc(50% - var(--opds-mark-size) / 2);
	background: currentColor;
	-webkit-mask: var(--opds-mark) center / contain no-repeat;
	mask: var(--opds-mark) center / contain no-repeat;
}

.opds-synopsis::after,
.opds-bio::after {
	content: "";
	display: block;
	width: var(--wp--custom--mark--tail);
	height: var(--wp--custom--mark--tail);
	margin: var(--wp--preset--spacing--50) auto 0;
	background: var(--wp--preset--color--gold-ink);
	-webkit-mask: var(--opds-mark) center / contain no-repeat;
	mask: var(--opds-mark) center / contain no-repeat;
}

@media (forced-colors: active) {
	.wp-block-separator.is-style-fleuron::after,
	.opds-tag--mark::before,
	.opds-wordmark a::before,
	.opds-synopsis::after,
	.opds-bio::after {
		background: CanvasText;
	}
}

/* ── Buttons: gold pill (theme.json), dark and outline styles ─────────── */

.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 3rem;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 300ms var(--wp--custom--ease--out), color 300ms var(--wp--custom--ease--out), box-shadow 350ms var(--wp--custom--ease--out), transform 350ms var(--wp--custom--ease--out);
}

@media (hover: hover) {
	.wp-block-button__link:hover {
		transform: translateY(-2px);
		box-shadow: var(--wp--custom--shadow--button-hover);
	}
}

.is-style-dark > .wp-block-button__link,
.wp-block-button.is-style-dark > .wp-block-button__link {
	background-color: var(--wp--preset--color--night);
	color: var(--wp--preset--color--bone);
	box-shadow: none;
}

.wp-block-button.is-style-dark > .wp-block-button__link:hover,
.wp-block-button.is-style-dark > .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--ebony);
	color: var(--wp--preset--color--bone);
	box-shadow: none;
}

.wp-block-button.is-style-light > .wp-block-button__link {
	background-color: var(--wp--preset--color--bone);
	color: var(--wp--preset--color--night);
}

.wp-block-button.is-style-light > .wp-block-button__link:hover,
.wp-block-button.is-style-light > .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--card);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 0;
	background-color: transparent;
	color: inherit;
	box-shadow: inset 0 0 0 1px currentColor;
	padding: 0.75rem 1.4rem;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	background-color: color-mix(in srgb, currentColor 8%, transparent);
	color: inherit;
	box-shadow: inset 0 0 0 1px currentColor;
}

/* Optional trailing arrow (class opds-button-arrow on the Button block). */
.opds-button-arrow > .wp-block-button__link::after {
	content: "";
	width: 1.1em;
	height: 0.7em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M0 6h16M11 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M0 6h16M11 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 350ms var(--wp--custom--ease--out);
}

.opds-button-arrow > .wp-block-button__link:hover::after,
.opds-button-arrow > .wp-block-button__link:focus-visible::after {
	transform: translateX(4px);
}

/* ── Header: floating centred pill ────────────────────────────────────── */

.wp-site-blocks > header.wp-block-template-part {
	position: fixed;
	z-index: 50;
	top: var(--wp--custom--header--top);
	left: 50%;
	width: min(37rem, calc(100% - 1.5rem));
	translate: -50% 0;
}

.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--wp--custom--header--top));
}

.opds-header {
	gap: 1rem;
	min-height: 3.3rem;
	padding: 0.4rem 0.4rem 0.4rem 1rem;
	border-radius: var(--wp--custom--radius--pill);
	background: color-mix(in srgb, var(--wp--preset--color--card) 88%, transparent);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	backdrop-filter: blur(14px) saturate(1.2);
	box-shadow: var(--wp--custom--shadow--header);
	color: var(--wp--preset--color--ebony);
	transition: background-color 400ms var(--wp--custom--ease--out), color 400ms var(--wp--custom--ease--out), box-shadow 400ms var(--wp--custom--ease--out);
}

/* Phones and tablets: a backdrop blur on a fixed bar is redrawn on every scroll frame and makes scrolling stutter; a near-solid pill looks the same. */
@media (pointer: coarse), (max-width: 47.99rem) {
	.opds-header {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: color-mix(in srgb, var(--wp--preset--color--card) 97%, transparent);
	}
}

.opds-header.is-on-dark {
	--opds-ring: var(--wp--preset--color--gold-light);
	background: color-mix(in srgb, var(--wp--preset--color--night) 78%, transparent);
	box-shadow: inset 0 0 0 1px var(--wp--custom--line-on-dark);
	color: var(--wp--preset--color--bone);
}

.opds-header.is-on-dark .is-style-dark > .wp-block-button__link {
	background-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--night);
}

.opds-header > * {
	margin: 0;
}

.opds-wordmark {
	margin: 0;
	font-size: 0.74rem;
	letter-spacing: 0.2em;
	white-space: nowrap;
}

.opds-wordmark a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.5rem;
	color: inherit;
	text-decoration: none;
}

.opds-wordmark a::before {
	content: "";
	flex: none;
	width: 0.95rem;
	height: 1.3rem;
	background: var(--wp--preset--color--gold);
	-webkit-mask: var(--opds-mark) center / contain no-repeat;
	mask: var(--opds-mark) center / contain no-repeat;
}

@media (max-width: 22.5rem) {
	.opds-wordmark {
		font-size: 0.66rem;
		letter-spacing: 0.14em;
	}
}

.opds-nav-main {
	display: none;
}

@media (min-width: 44rem) {
	.opds-nav-main {
		display: flex;
	}
}

.opds-nav-main .wp-block-navigation__container {
	gap: 1.2rem;
}

.opds-nav-main .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 2.5rem;
	font-size: 0.85rem;
	font-weight: 500;
	text-decoration: none;
	opacity: 0.75;
}

.opds-nav-main .wp-block-navigation-item__content:hover,
.opds-nav-main .wp-block-navigation-item__content:focus-visible {
	opacity: 1;
}

.opds-header__actions {
	gap: 0.35rem;
	margin-inline-start: auto;
}

.opds-header__actions > *,
.opds-header__buy {
	margin: 0;
}

.opds-header__buy .wp-block-button__link {
	min-height: 2.5rem;
	padding: 0 1.1rem;
	font-size: 0.85rem;
	white-space: nowrap;
}

@media (max-width: 22.5rem) {
	.opds-header__buy .wp-block-button__link {
		padding: 0 0.85rem;
	}
}

.opds-mini-cart {
	display: none;
}

@media (min-width: 30rem) {
	.opds-mini-cart {
		display: block;
	}
}

.opds-header--checkout .opds-mini-cart {
	display: block;
}

.opds-mini-cart .wc-block-mini-cart__button {
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding: 0.4rem;
	border-radius: 50%;
	color: inherit;
}

.opds-mini-cart .wc-block-mini-cart__button:hover {
	background: color-mix(in srgb, currentColor 8%, transparent);
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.opds-footer {
	padding-top: clamp(3.5rem, 8vw, 5.5rem);
	padding-bottom: 7rem; /* room for the floating buy bar on phones */
	font-size: 0.95rem;
}

@media (min-width: 48rem) {
	.opds-footer {
		padding-bottom: 2rem;
	}
}

.opds-footer--checkout {
	padding-top: var(--wp--preset--spacing--40);
	padding-bottom: var(--wp--preset--spacing--40);
}

.opds-footer__grid {
	display: grid;
	gap: 2rem;
}

@media (min-width: 48rem) {
	.opds-footer__grid {
		grid-template-columns: 2fr 1fr 1fr 1fr;
	}
}

.opds-footer__grid > *,
.opds-footer__grid > * > * {
	margin: 0;
}

.opds-footer__col > * + * {
	margin-top: 0.45rem;
}

.opds-footer .opds-footer__wordmark {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
	letter-spacing: 0.14em;
	line-height: 1.4;
	white-space: normal;
	color: var(--wp--preset--color--gold);
}

.opds-footer__wordmark a {
	color: inherit;
}

.opds-footer .opds-footer__title {
	margin-bottom: 1rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--wp--preset--color--sage);
}

.opds-footer__muted {
	color: var(--wp--custom--muted-on-dark);
}

.opds-footer a,
.opds-footer .wp-block-navigation-item__content {
	color: var(--wp--preset--color--bone);
	text-decoration: none;
	opacity: 0.85;
}

.opds-footer a:hover,
.opds-footer a:focus-visible {
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

.opds-footer .wp-block-navigation {
	gap: 0.45rem 1.25rem;
}

/* Footer links: 44 px tap targets on touch screens, compact with a mouse. */
.opds-footer .wp-block-navigation-item__content,
.opds-footer__col p > a,
.opds-footer__wordmark a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0;
}

.opds-footer .wp-block-navigation {
	gap: 0 1.25rem;
}

.opds-footer__col > p {
	margin-top: 0;
}

@media (hover: hover) and (pointer: fine) {
	.opds-footer .wp-block-navigation-item__content,
	.opds-footer__col p > a,
	.opds-footer__wordmark a {
		min-height: 1.75rem;
	}

	.opds-footer .wp-block-navigation {
		gap: 0.45rem 1.25rem;
	}
}

.opds-footer__bottom {
	gap: 0.5rem 2.5rem;
	text-align: center;
	margin-top: 3rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--wp--custom--line-on-dark);
	font-size: 0.82rem;
}

.opds-footer__bottom p {
	margin: 0;
}

.opds-footer--checkout .opds-footer__bottom {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

/* ── Home hero ────────────────────────────────────────────────────────── */

.opds-hero {
	position: relative;
	isolation: isolate;
	overflow: clip;
	padding-top: clamp(7.5rem, 14vw, 10rem);
	padding-bottom: 0;
	text-align: center;
}

/* Soft gold glow behind the book (clipped by the section: no sideways scroll). */
.opds-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 50%;
	top: 30rem;
	width: min(46rem, 120vw);
	aspect-ratio: 1;
	translate: -50% -50%;
	border-radius: 50%;
	background: radial-gradient(closest-side, var(--wp--custom--glow), transparent 70%);
	pointer-events: none;
}

.opds-hero .opds-hero__title {
	margin-block-start: 0;
	line-height: 0.96;
	letter-spacing: -0.035em;
}

.opds-hero .is-style-tag + .opds-hero__title {
	margin-block-start: 1.4rem;
}

.opds-hero .opds-hero__book {
	width: min(19rem, 64vw);
	margin-block-start: clamp(2.5rem, 5vw, 3.5rem);
	perspective: 1200px;
}

.opds-card-photo {
	margin: 0;
	overflow: hidden;
	border-radius: var(--opds-r);
	background: var(--wp--preset--color--sand);
	box-shadow: var(--wp--preset--shadow--card);
}

.opds-card-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.opds-hero__book .opds-card-photo {
	aspect-ratio: 992 / 1586;
	transform-origin: 50% 100%;
}

.opds-hero .opds-lead {
	margin-block-start: 2.5rem;
}

.opds-hero .opds-hero__cta {
	margin-block-start: 1.75rem;
}

.opds-hero__cta > * {
	margin: 0;
}

.opds-hero__cta .opds-price-line {
	margin-top: 0.8rem;
}

/* Video card (the video, or the plate "em breve" until it is uploaded). */
.opds-hero .opds-hero__video {
	max-width: 44rem;
	margin-block-start: clamp(3rem, 7vw, 5rem);
}

.opds-video-card > * {
	margin: 0;
}

.opds-video-card > .is-style-tag {
	margin: 0 auto 1rem;
}

.opds-video video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--opds-r);
	background: var(--wp--preset--color--night);
}

/*
 * The client's photos are shown whole, in their own shape: never cropped by a
 * frame (decision 2026-12-01). The launch photo stands in for the video.
 */
.opds-photo-wide img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--opds-r);
}

/* Author portrait on /autora/. */
.opds-portrait {
	width: 100%;
	max-width: 22rem;
	margin-inline: auto;
}

.opds-portrait img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--opds-r);
}

/* Hero: the author with the book, whole photo (the card takes its shape). */
.opds-hero__book .opds-card-photo--free {
	aspect-ratio: auto;
}

.opds-card-photo--free img {
	height: auto;
}


@media (min-width: 64rem) {
	.opds-author__cols--page .opds-portrait {
		max-width: none;
	}
}

/* The synopsis' three points. */
.opds-synopsis-list {
	padding-inline-start: 1.1em;
}

.opds-synopsis-list li + li {
	margin-top: 0.4em;
}

.opds-synopsis-list li::marker {
	color: var(--wp--preset--color--gold);
}

.opds-video-placeholder {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	place-items: center;
	aspect-ratio: 16 / 9;
	border-radius: var(--opds-r);
	background:
		radial-gradient(ellipse at 50% 45%, var(--wp--custom--plate), var(--wp--preset--color--night) 75%);
	color: var(--wp--preset--color--bone);
	overflow: clip;
	isolation: isolate;
}

.opds-video-placeholder > * {
	grid-area: 1 / 1;
	margin: 0;
}

/* An empty player frame: timeline along the bottom (decoration only). */
.opds-video-placeholder::after {
	content: "";
	position: absolute;
	left: clamp(1rem, 4%, 2rem);
	right: clamp(1rem, 4%, 2rem);
	bottom: clamp(1rem, 5%, 1.75rem);
	height: 3px;
	border-radius: 3px;
	background:
		linear-gradient(var(--wp--preset--color--gold), var(--wp--preset--color--gold)) left / 12% 100% no-repeat,
		color-mix(in srgb, var(--wp--preset--color--bone) 22%, transparent);
}

.opds-video-placeholder__caption {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 1rem;
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.04em;
}

/* Play disc (drawn, not a button: there is nothing to play until the video is uploaded). */
.opds-video-placeholder__caption::before {
	content: "";
	width: clamp(3.5rem, 9vw, 5rem);
	aspect-ratio: 1;
	border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--gold) 70%, transparent);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 0l10 6-10 6z' fill='%23C9A74C'/%3E%3C/svg%3E") 56% 50% / 30% no-repeat;
}

.opds-video-placeholder .opds-todo {
	align-self: start;
	justify-self: start;
	max-width: 22rem;
	margin: 1rem;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--custom--muted-on-dark);
}

/* ── Phrase band (pattern "frases"); motion.css turns it into a marquee ── */

.opds-marquee {
	margin-top: clamp(4rem, 8vw, 6rem) !important;
	padding-block: clamp(3rem, 6vw, 4.5rem);
	border-block: 1px solid var(--wp--custom--line);
	overflow: clip;
}

.opds-marquee__track {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.25rem 0;
	padding-inline: var(--wp--custom--gutter);
}

.opds-marquee__track > p {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
	font-style: italic;
	font-weight: 400;
	line-height: 1.3;
	white-space: nowrap;
	color: var(--wp--preset--color--ebony);
}

.opds-marquee__track > p::after {
	content: "";
	display: inline-block;
	width: 1.1rem;
	height: 1.5rem;
	margin-inline: 1.25rem;
	vertical-align: -0.1em;
	background: var(--wp--preset--color--gold);
	-webkit-mask: var(--opds-mark) center / contain no-repeat;
	mask: var(--opds-mark) center / contain no-repeat;
}

.opds-marquee__track > p:last-child::after {
	display: none;
}

/* ── "A ideia do livro" (static here; motion.css pins it and flies the cards) ── */

.opds-idea {
	position: relative;
}

.opds-idea__stage {
	padding-block: var(--wp--preset--spacing--70);
}

.opds-idea__text {
	position: relative;
	z-index: 5;
	max-width: 46rem;
	margin-inline: auto;
	padding-inline: var(--wp--custom--gutter);
	text-align: center;
}

.opds-idea__text > * {
	margin-block: 0;
}

.opds-idea__text > .opds-lead {
	margin-top: 1.25rem;
}

.opds-idea__text > .wp-block-buttons {
	margin-top: 2rem;
}

.opds-fly {
	display: none;
	position: absolute;
	z-index: 1;
	flex-direction: column;
	justify-content: flex-end;
	width: clamp(9.5rem, 22vw, 15rem);
	aspect-ratio: 4 / 5;
	padding: 1.1rem;
	overflow: hidden;
	isolation: isolate;
	border-radius: var(--opds-r);
	background: var(--wp--preset--color--ebony);
	color: var(--wp--preset--color--bone);
	box-shadow: var(--wp--custom--shadow--plate);
}

.opds-fly > * {
	margin: 0;
}

.opds-fly__img {
	position: absolute !important;
	inset: 0;
	z-index: -2;
}

.opds-fly__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.opds-fly--photo::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, transparent 45%, var(--wp--custom--scrim));
}

.opds-fly--gold {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--night);
}

.opds-fly__num {
	position: absolute;
	top: 1rem;
	left: 1.1rem;
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	line-height: 1;
	opacity: 0.8;
}

.opds-fly__word {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.2rem, 1rem + 0.8vw, 1.7rem);
	font-weight: 500;
	line-height: 1.1;
}

.opds-fly--ebony .opds-fly__word,
.opds-fly:last-child .opds-fly__word {
	font-style: italic;
	font-weight: 400;
}

/* ── A autora (dark, curved top) ──────────────────────────────────────── */

.opds-author-e {
	position: relative;
	overflow: hidden;
	border-radius: 50% 50% 0 0 / clamp(3rem, 8vw, 7rem) clamp(3rem, 8vw, 7rem) 0 0;
}

.opds-author-e > .opds-author-e__name {
	display: flex;
	justify-content: center;
	max-width: none;
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(4rem, 2rem + 12vw, 13rem);
	font-weight: 500;
	line-height: 0.9;
	letter-spacing: -0.04em;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1px color-mix(in srgb, var(--wp--preset--color--gold) 70%, transparent);
}

/* Phones: the name wraps onto two centred lines so all of it shows. */
@media (max-width: 39.99rem) {
	.opds-author-e > .opds-author-e__name {
		display: block;
		text-align: center;
		white-space: normal;
		overflow-wrap: normal;
		line-height: 0.95;
	}
}

@media (forced-colors: active) {
	.opds-author-e > .opds-author-e__name {
		color: CanvasText;
	}
}

.opds-author-e > .opds-duo {
	position: relative;
	display: grid;
	gap: 1.25rem;
	margin-block-start: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 40rem) {
	.opds-author-e > .opds-duo {
		grid-template-columns: 1fr 1fr;
	}
}

.opds-duo > * {
	aspect-ratio: 4 / 5;
	margin: 0;
	overflow: hidden;
	border-radius: var(--opds-r);
}

/* The author's photos whole, in their own shape (decision 2026-12-01). */
.opds-duo > .wp-block-image {
	aspect-ratio: auto;
	align-self: start;
}

.opds-duo > .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
}

.opds-duo .opds-portrait-placeholder {
	max-width: none;
	background: var(--wp--custom--plate);
}

/* Second photo slot: gold plate with a dark leaf until the photo is in. */
.opds-duo .opds-portrait-placeholder.is-gold {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--night);
}

.opds-duo .opds-portrait-placeholder.is-gold .opds-todo {
	color: var(--wp--preset--color--night);
}

.opds-author-e > .opds-author-e__bio {
	max-width: 38rem;
	margin-block-start: 3rem;
	text-align: center;
}

.opds-author-e__bio > * {
	margin-block: 0;
}

.opds-author-e__bio > .opds-lead {
	margin-top: 1.25rem;
}

.opds-author-e__bio > .wp-block-buttons {
	margin-top: 2rem;
}

/* ── O livro: accordion beside a sand panel with the book ─────────────── */

.opds-inside__grid {
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

@media (min-width: 56rem) {
	.opds-inside__grid {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
}

.opds-inside__grid > *,
.opds-inside__text > * {
	margin-block: 0;
}

.opds-inside__text > .opds-acc {
	margin-top: 2rem;
}

.opds-inside__panel {
	padding: clamp(1.25rem, 4vw, 2.5rem);
	border-radius: var(--opds-r);
	background: var(--wp--preset--color--sand);
}

/* Phones and small tablets (one column): no photo under the list; the book is shown just below in the edition cards (user, 2026-12-01). */
@media (max-width: 55.99rem) {
	.opds-inside__panel {
		display: none;
	}
}

.opds-inside__frame {
	display: grid;
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: transform 600ms var(--wp--custom--ease--out);
}

.opds-inside__frame > figure {
	grid-area: 1 / 1;
	aspect-ratio: 4 / 5;
}

.opds-inside__frame > figure + figure {
	display: none;
}

/* With site.js: every photo is stacked and the open item's photo shows. */
.has-photo-swap .opds-inside__frame > figure {
	display: block;
	opacity: 0;
	visibility: hidden;
	scale: 0.96;
	transition: opacity 500ms var(--wp--custom--ease--out), scale 800ms var(--wp--custom--ease--out), visibility 0s linear 500ms;
}

.has-photo-swap .opds-inside__frame > figure.is-current {
	opacity: 1;
	visibility: visible;
	scale: 1;
	transition: opacity 500ms var(--wp--custom--ease--out), scale 800ms var(--wp--custom--ease--out);
}

/* ── Accordions: Details blocks in .opds-acc ──────────────────────────── */

.opds-acc {
	display: grid;
	gap: 0.6rem;
}

.opds-acc > * {
	margin: 0 !important;
}

.opds-acc details {
	border-radius: var(--opds-r-s);
	background: var(--wp--preset--color--card);
}

.is-style-dark .opds-acc details {
	background: color-mix(in srgb, var(--wp--preset--color--bone) 6%, transparent);
}

.opds-acc summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.1rem 1.25rem;
	border-radius: var(--opds-r-s);
	cursor: pointer;
	list-style: none;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
	font-weight: 500;
	line-height: 1.25;
}

.opds-acc summary::-webkit-details-marker {
	display: none;
}

.opds-acc summary:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -4px;
}

/* Plus that turns into a minus on a gold disc. */
.opds-acc summary::after {
	content: "";
	flex: none;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background:
		linear-gradient(currentColor, currentColor) center / 0.75rem 1.5px no-repeat,
		linear-gradient(currentColor, currentColor) center / 1.5px 0.75rem no-repeat,
		var(--wp--preset--color--sand);
	transition: transform 450ms var(--wp--custom--ease--out);
}

.opds-acc details[open] > summary::after {
	background:
		linear-gradient(var(--wp--preset--color--night), var(--wp--preset--color--night)) center / 0.75rem 1.5px no-repeat,
		var(--wp--preset--color--gold);
	transform: rotate(180deg);
}

.opds-acc details > :not(summary) {
	max-width: 40rem;
	margin: 0;
	padding: 0 1.25rem;
	font-size: 0.98rem;
	color: var(--opds-muted);
}

.opds-acc details > :not(summary) + :not(summary) {
	padding-top: 0.6rem;
}

.opds-acc details > :last-child {
	padding-bottom: 1.2rem;
}

.opds-acc .opds-book-details__list {
	margin: 0;
}

@media screen {
	@supports (interpolate-size: allow-keywords) {
		.opds-acc {
			interpolate-size: allow-keywords;
		}

		.opds-acc details::details-content {
			block-size: 0;
			overflow: clip;
			transition: block-size 500ms var(--wp--custom--ease--out), content-visibility 500ms allow-discrete;
		}

		.opds-acc details[open]::details-content {
			block-size: auto;
		}
	}
}

/* ── Edições: selectable cards and the buy bar ────────────────────────── */

.opds-editions > .opds-eds-form {
	margin-block-start: 2.5rem;
}

.opds-eds {
	display: grid;
	gap: 1rem;
	text-align: left;
}

@media (min-width: 40rem) {
	.opds-eds {
		grid-template-columns: 1fr 1fr;
	}
}

.opds-eds > * {
	margin: 0 !important;
}

.opds-ed {
	position: relative;
	display: grid;
	gap: 1rem;
	padding: 0.75rem 0.75rem 1.25rem;
	border-radius: var(--opds-r);
	background: var(--wp--preset--color--card);
	box-shadow: inset 0 0 0 1px var(--wp--custom--line);
	transition: transform 450ms var(--wp--custom--ease--out), box-shadow 350ms var(--wp--custom--ease--out);
}

.opds-ed > * {
	margin: 0;
}

.opds-ed:has(.opds-ed__input:checked) {
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--gold), var(--wp--custom--shadow--chosen);
}

.opds-ed:has(.opds-ed__input:focus-visible) {
	outline: 2px solid var(--wp--preset--color--ebony);
	outline-offset: 3px;
}

.opds-ed.is-sold-out {
	opacity: 0.6;
}

@media (hover: hover) {
	.opds-ed:not(.is-sold-out):hover {
		transform: translateY(-4px);
	}

	.opds-ed:not(.is-sold-out):hover .opds-ed__photo img {
		transform: scale(1.05);
	}
}

.opds-ed__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

/* The whole card is the radio's label. */
.opds-ed__hit {
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	cursor: pointer;
}

.is-sold-out .opds-ed__hit {
	cursor: not-allowed;
}

.opds-ed__photo {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--opds-r);
	background: var(--wp--preset--color--sand);
}

.opds-ed__photo img {
	width: 100%;
	height: 100%;
	/* Cut-out photo (transparent background): the whole book, standing, with its own shadow. */
	padding: 9% 14% 11%;
	object-fit: contain;
	filter: drop-shadow(0 1.1rem 1rem rgb(33 35 26 / 0.28)) drop-shadow(0 0.15rem 0.2rem rgb(33 35 26 / 0.2));
	transition: transform 900ms var(--wp--custom--ease--out);
}

.opds-ed__row {
	gap: 0.5rem;
	padding-inline: 0.5rem;
}

.opds-ed__row > * {
	margin: 0;
}

.opds-ed__name {
	font-size: 1.6rem;
	line-height: 1;
}

.opds-ed__name a {
	color: inherit;
	text-decoration: none;
}

/* Without the form (no product, or the editor): the name links to /livro/ and covers the card. */
.opds-ed:not(:has(.opds-ed__input)) .opds-ed__name a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--opds-r);
}

.opds-ed__price {
	font-size: 1.3rem;
	font-weight: 500;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.opds-ed__note {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-inline: 0.5rem;
	font-size: 0.85rem;
	color: var(--opds-muted);
}

.opds-ed__note::before {
	content: "";
	flex: none;
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--reseda);
	transition: box-shadow 300ms var(--wp--custom--ease--out);
}

.opds-ed:has(.opds-ed__input:checked) .opds-ed__note::before {
	box-shadow: inset 0 0 0 5px var(--wp--preset--color--gold);
}

.opds-eds-form > .opds-buybar {
	gap: 1rem 1.5rem;
	margin-top: 2rem;
}

.opds-buybar > * {
	margin: 0;
}

.opds-buybar__note {
	font-size: 0.9rem;
	color: var(--opds-muted);
}

.opds-eds-submit button[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.opds-faq > .opds-acc {
	margin-block-start: 2.5rem;
}

/* ── Final CTA: dark rounded block, blurred book, white card ──────────── */

.opds-final-wrap {
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

.opds-final {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(4rem, 10vw, 7rem) var(--wp--custom--gutter);
	border-radius: var(--opds-r);
	text-align: center;
}

.opds-final > * {
	margin-block: 0;
}

.opds-final > .opds-final__bg {
	position: absolute;
	inset: -10%;
	z-index: -1;
}

.opds-final__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(18px) brightness(0.45) saturate(0.8);
}

.opds-final > .opds-final__box {
	max-width: 24rem;
	margin: 2.5rem auto 0;
	padding: 1.75rem 1.25rem;
	border-radius: var(--opds-r);
	background: var(--wp--preset--color--card);
	color: var(--wp--preset--color--ebony);
	--opds-muted: var(--wp--preset--color--ebony-muted);
	--opds-ring: var(--wp--preset--color--ebony);
}

.opds-final__box > * {
	margin: 0;
}

.opds-final__box .opds-price-line {
	margin-bottom: 1rem;
	font-size: 0.95rem;
}

/* ── Floating buy card (pattern "mini-compra"): bottom bar on phones ──── */

.opds-mini {
	position: fixed;
	z-index: 35;
	left: 0.75rem;
	right: 0.75rem;
	bottom: 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 !important;
	padding: 0.6rem;
	border-radius: 18px;
	background: var(--wp--preset--color--card);
	color: var(--wp--preset--color--ebony);
	box-shadow: var(--wp--custom--shadow--floating), 0 0 0 1px var(--wp--custom--line);
	transform: translateY(140%);
	visibility: hidden;
	transition: transform 700ms var(--wp--custom--ease--out), visibility 0s linear 700ms;
}

html.is-past-hero .opds-mini:not(.is-closed) {
	transform: none;
	visibility: visible;
	transition: transform 700ms var(--wp--custom--ease--out);
}

/* Out of the way while the page's own edition chooser or final buy section is on screen (site.js). */
html.is-near-buy .opds-mini:not(.is-closed) {
	transform: translateY(140%);
	visibility: hidden;
	transition: transform 700ms var(--wp--custom--ease--out), visibility 0s linear 700ms;
}

@media (min-width: 48rem) {
	.opds-mini {
		right: auto;
		left: 1rem;
		bottom: 1rem;
		width: 22rem;
	}
}

.opds-mini > * {
	margin: 0;
}

.opds-mini__img {
	flex: none;
}

.opds-mini__img img {
	width: 3rem;
	height: 4rem;
	object-fit: contain;
	filter: drop-shadow(0 0.3rem 0.35rem rgb(33 35 26 / 0.3));
}

.opds-mini__text {
	flex: 1;
	min-width: 0;
}

.opds-mini__text > * {
	margin: 0;
}

.opds-mini__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.1rem;
	font-weight: 500;
	line-height: 1.1;
}

.opds-mini__price {
	font-size: 0.8rem;
	color: var(--wp--preset--color--ebony-muted);
}

.opds-mini > .opds-mini__buy {
	flex: none;
}

.opds-mini__buy .wp-block-button__link {
	white-space: nowrap;
	min-height: 2.6rem;
	padding: 0 1rem;
	font-size: 0.85rem;
}

.opds-mini__close {
	display: grid;
	place-items: center;
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--ebony-muted);
	font: inherit;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
}

.opds-mini__close:hover {
	background: var(--wp--preset--color--sand);
}

/* ── Photos and plates (/livro/, /autora/) ────────────────────────────── */

.opds-detail {
	margin: 0;
	overflow: clip;
	border-radius: var(--opds-r);
}

.opds-detail img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 21 / 9;
	object-fit: cover;
	object-position: 50% 32%;
	scale: 1.35;
	transform-origin: 50% 40%;
}

/* Author portrait placeholder (until the photo arrives): a dark plate with the name and the mark. */
.opds-portrait-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--30);
	aspect-ratio: 4 / 5;
	width: 100%;
	max-width: 22rem;
	margin-inline: auto;
	padding: var(--wp--preset--spacing--40);
	border-radius: var(--opds-r);
	background: var(--wp--preset--color--ebony-deep);
	color: var(--wp--preset--color--gold);
	text-align: center;
}

.opds-portrait-placeholder::before {
	content: "";
	width: var(--wp--custom--mark--large);
	height: var(--wp--custom--mark--large);
	background: currentColor;
	-webkit-mask: var(--opds-mark) center / contain no-repeat;
	mask: var(--opds-mark) center / contain no-repeat;
}

.opds-portrait-placeholder > * {
	margin: 0;
}

.opds-portrait-placeholder__name {
	font-family: var(--wp--preset--font-family--title);
	font-size: 1.6rem;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.opds-portrait-placeholder .opds-todo {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--custom--muted-on-dark);
}

/* ── Tagline (pattern "citacao-escura", on /livro/) ───────────────────── */

.opds-tagline {
	margin-inline: auto;
	padding: 0;
	text-align: center;
}

.opds-tagline p {
	margin: 0;
}

.opds-tagline em {
	color: var(--wp--preset--color--gold-ink);
}

.is-style-dark .opds-tagline em {
	color: var(--wp--preset--color--gold);
}

.opds-backcover .wp-block-separator.is-style-fleuron {
	margin-top: 0;
	margin-bottom: var(--wp--preset--spacing--50);
}

.opds-tagline.opds-tagline--large {
	font-size: var(--wp--preset--font-size--xxx-large);
	line-height: 1.04;
	letter-spacing: -0.025em;
	text-wrap: balance;
	color: var(--wp--preset--color--bone);
}

.opds-tagline cite {
	display: block;
	width: fit-content;
	margin: var(--wp--preset--spacing--50) auto 0;
	padding: 0.38rem 0.85rem;
	border-radius: var(--wp--custom--radius--pill);
	background: color-mix(in srgb, var(--wp--preset--color--bone) 10%, transparent);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-style: normal;
	font-weight: 500;
	line-height: 1.2;
	color: var(--wp--preset--color--bone);
}

/* On /livro/ the dark band is a rounded block, like the home final CTA. */
.opds-backcover {
	margin-inline: var(--wp--custom--gutter) !important;
	border-radius: var(--opds-r);
}

/* ── Author page (/autora/) ───────────────────────────────────────────── */

.opds-author__cols {
	gap: var(--wp--preset--spacing--50);
}

.opds-author__text .is-style-tag + h1 {
	margin-top: 1.4rem;
}

@media (min-width: 64rem) {
	.opds-author__cols > .opds-author__media {
		flex-basis: 42%;
	}

	.opds-author__cols > .opds-author__text {
		flex-basis: 58%;
	}

	.opds-author__cols--page {
		align-items: flex-start !important;
	}

	.opds-author__cols--page > .opds-author__media {
		position: sticky;
		top: calc(var(--wp--custom--header--top) + var(--wp--custom--header--height) + var(--wp--preset--spacing--40));
	}

	.opds-author__cols--page .opds-portrait-placeholder {
		max-width: none;
	}
}

.opds-author__cols--page .opds-portrait-placeholder {
	box-shadow: var(--wp--preset--shadow--card);
}

.opds-bio {
	margin-top: var(--wp--preset--spacing--40);
	max-width: var(--wp--style--global--content-size);
}

/* ── Pickup note ──────────────────────────────────────────────────────── */

.opds-pickup-note {
	padding: 0.75rem 1rem;
	border-radius: var(--opds-r-s);
	background: var(--wp--preset--color--sand);
	font-size: var(--wp--preset--font-size--small);
}

.opds-pickup-note p {
	margin: 0;
}

/* ── Reduced motion: no transform-based transitions ───────────────────── */

html.m-off .wp-element-button,
html.m-off .wp-block-button__link,
html.m-off .wp-block-button__link::after,
html.m-off .opds-header,
html.m-off .opds-ed,
html.m-off .opds-ed__photo img,
html.m-off .opds-inside__frame,
html.m-off .opds-acc summary::after,
html.m-off .opds-mini,
html.m-off .has-photo-swap .opds-inside__frame > figure {
	transition-property: background-color, color, opacity, visibility, box-shadow !important;
}

html.m-off .opds-button-arrow > .wp-block-button__link:hover::after,
html.m-off .opds-button-arrow > .wp-block-button__link:focus-visible::after,
html.m-off .opds-acc details[open] > summary::after {
	transform: none;
}

html.m-off .has-photo-swap .opds-inside__frame > figure {
	scale: 1;
}

html.m-off {
	scroll-behavior: auto;
}

html.m-off .opds-acc details::details-content {
	transition: none;
}

html.m-off .wp-block-button__link:hover,
html.m-off .opds-ed:not(.is-sold-out):hover,
html.m-off .opds-ed:not(.is-sold-out):hover .opds-ed__photo img {
	transform: none;
}
