/*
 * MakeAIbusiness Site Patterns
 *
 * Scoped styles for the MakeAIbusiness patterns. Every selector starts from a
 * .mab-* class (or an .is-style-mab-* button style), so nothing outside these
 * components is affected.
 *
 * Palette: graphite #111827, ivory #f8f6f1, gold #b89452 (accent only).
 * Gold text on light backgrounds uses the darker #7a5c24 for contrast.
 *
 * Customize the heading font for these components with, for example:
 *   :root { --mab-font-display: var(--global-heading-font-family); }
 */

/* -------------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------------- */

:where(.mab-page, .mab-section, .mab-note, .wp-block-button[class*="is-style-mab-"]) {
	--mab-ink: #111827;
	--mab-ink-hover: #2b3445;
	--mab-ivory: #f8f6f1;
	--mab-paper: #ffffff;
	--mab-gold: #b89452;
	--mab-gold-hover: #cbab6c;
	--mab-gold-text: #7a5c24;
	--mab-gold-soft: #e3cfa3;
	--mab-muted: #4b5563;
	--mab-muted-dark: #d3cec4;
	--mab-line: #e6e0d4;
	--mab-line-strong: #d6cdbb;
	--mab-line-dark: rgba(248, 246, 241, 0.16);
	--mab-radius: 14px;
	--mab-radius-sm: 6px;
	--mab-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 14px 34px -22px rgba(17, 24, 39, 0.28);
	--mab-font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "TeX Gyre Pagella", Georgia, serif;
	--mab-font-body: inherit;

	/* Context-dependent values (overridden on dark surfaces below). */
	--mab-focus: #111827;
	--mab-accent-text: #7a5c24;
	--mab-secondary-text: #4b5563;
	--mab-subtitle: #1f2937;
	--mab-rule: #e6e0d4;
}

.mab-section--dark,
.mab-ledger,
.mab-panel,
.mab-price-card {
	--mab-focus: #e3cfa3;
	--mab-accent-text: #b89452;
	--mab-secondary-text: #d3cec4;
	--mab-subtitle: #e3cfa3;
	--mab-rule: rgba(248, 246, 241, 0.16);
}

/* -------------------------------------------------------------------------
   Editor parity
   For classic themes, WordPress caps every block in the editor at 840px
   (html :where(.wp-block)) and centers it. Inside MakeAIbusiness components
   that would distort the layout, so it is reset here. The .wp-block class only
   exists in the editor, so this has no effect on the front end. Component rules
   further down still win where they set their own widths.
   ------------------------------------------------------------------------- */

:where(.mab-page, .mab-section, .mab-note) .wp-block.wp-block {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

/* -------------------------------------------------------------------------
   Page wrapper and sections
   ------------------------------------------------------------------------- */

.mab-page {
	margin-block: 0;
}

.mab-section {
	position: relative;
	box-sizing: border-box;
	margin-block: 0;
	font-family: var(--mab-font-body);
	line-height: 1.7;
	overflow-wrap: break-word;
}

.mab-section *,
.mab-note * {
	box-sizing: border-box;
}

.mab-section [id] {
	scroll-margin-top: 6rem;
}

.mab-section[id] {
	scroll-margin-top: 4rem;
}

@media (prefers-reduced-motion: no-preference) {
	html:has(.mab-page) {
		scroll-behavior: smooth;
	}
}

/* Vertical rhythm. "html" raises specificity above typical theme content rules. */
html .mab-section :is(p, h1, h2, h3, h4, ul, ol),
html .mab-note :is(p, h1, h2, h3, h4, ul, ol) {
	margin-top: 0;
}

html .mab-section p,
html .mab-note p {
	margin-bottom: 1em;
}

html .mab-section :is(p, ul, ol):last-child,
html .mab-note :is(p, ul, ol):last-child {
	margin-bottom: 0;
}

html .mab-section :is(h1, h2, h3, h4),
html .mab-note :is(h1, h2, h3, h4) {
	font-family: var(--mab-font-display);
	font-weight: 600;
	color: inherit;
	letter-spacing: -0.012em;
	text-wrap: balance;
}

html .mab-section p {
	text-wrap: pretty;
}

html .mab-section a:not(.wp-block-button__link) {
	color: inherit;
	text-decoration-color: var(--mab-gold);
	text-underline-offset: 0.2em;
}

.mab-section a:focus-visible,
.mab-note a:focus-visible,
.mab-section summary:focus-visible {
	outline: 2px solid var(--mab-focus);
	outline-offset: 3px;
	border-radius: 3px;
}

/* -------------------------------------------------------------------------
   Typography components
   ------------------------------------------------------------------------- */

html .mab-section .mab-display {
	font-size: 2.5rem;
	font-size: clamp(2.5rem, 1.55rem + 3.4vw, 4.375rem);
	line-height: 1.05;
	letter-spacing: -0.022em;
	margin-bottom: 1.5rem;
}

html .mab-section.mab-hero--book .mab-display {
	font-size: clamp(2.5rem, 1.5rem + 3.1vw, 3.875rem);
}

html .mab-section .mab-title {
	font-size: 2rem;
	font-size: clamp(2rem, 1.45rem + 2vw, 3.125rem);
	line-height: 1.1;
	letter-spacing: -0.018em;
	margin-bottom: 1.25rem;
}

html .mab-section .mab-card__title,
html .mab-section .mab-approval__title {
	font-size: 1.25rem;
	font-size: clamp(1.2rem, 1.12rem + 0.3vw, 1.375rem);
	line-height: 1.3;
	letter-spacing: -0.006em;
	margin-bottom: 0.6rem;
}

html .mab-section .mab-eyebrow,
html .mab-note .mab-eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mab-accent-text);
	margin-bottom: 1rem;
}

html .mab-section .mab-lead {
	font-size: 1.125rem;
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
	line-height: 1.65;
	color: var(--mab-secondary-text);
	max-width: 40rem;
}

html .mab-section .mab-subtitle {
	font-family: var(--mab-font-display);
	font-style: italic;
	font-size: 1.25rem;
	font-size: clamp(1.2rem, 1.05rem + 0.55vw, 1.5rem);
	line-height: 1.4;
	color: var(--mab-subtitle);
	margin-bottom: 1.25rem;
}

html .mab-section .mab-muted,
html .mab-section .mab-fineprint {
	color: var(--mab-secondary-text);
}

html .mab-section .mab-fineprint {
	font-size: 0.875rem;
	margin-top: 1.25rem;
}

html .mab-section .mab-badge {
	display: flex;
	align-items: center;
	gap: 0.6em;
	width: fit-content;
	max-width: 100%;
	padding: 0.45em 0.95em;
	border: 1px solid rgba(184, 148, 82, 0.6);
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mab-accent-text);
	margin-bottom: 1.5rem;
}

.mab-section .mab-badge::before {
	content: "";
	flex: none;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--mab-gold);
	box-shadow: 0 0 0 3px rgba(184, 148, 82, 0.25);
}

html .mab-section .mab-status-note {
	max-width: 34rem;
	margin-top: 2rem;
	padding-left: 1rem;
	border-left: 2px solid var(--mab-gold);
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--mab-secondary-text);
}

html .mab-section .mab-tag {
	display: block;
	width: fit-content;
	padding: 0.3em 0.75em;
	border-radius: 999px;
	background: #f1e8d6;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #6b4f1d;
	margin-bottom: 1rem;
}

.mab-center {
	text-align: center;
}

.mab-center :is(.mab-lead, .mab-badge, .mab-eyebrow) {
	margin-inline: auto;
}

.mab-section .mab-center .wp-block-buttons {
	justify-content: center;
}

/* Section heading group */
.mab-section .mab-section-head {
	max-width: 46rem;
	margin-bottom: 2.5rem;
	margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.mab-section .mab-section-head.mab-center {
	margin-inline: auto;
}

/* -------------------------------------------------------------------------
   Buttons (block styles: MAB Graphite, MAB Gold, MAB Outline)
   ------------------------------------------------------------------------- */

html .mab-section .wp-block-buttons,
html .mab-note .wp-block-buttons {
	gap: 0.75rem;
	margin-top: 2rem;
	margin-bottom: 0;
}

.wp-block-button[class*="is-style-mab-"] > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	min-height: 3rem;
	padding: 0.8em 1.5em;
	border: 1px solid transparent;
	border-radius: var(--mab-radius-sm);
	box-shadow: none;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.005em;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wp-block-button.is-style-mab-solid > .wp-block-button__link {
	background: var(--mab-ink);
	border-color: var(--mab-ink);
	color: var(--mab-ivory);
}

.wp-block-button.is-style-mab-solid > .wp-block-button__link:hover {
	background: var(--mab-ink-hover);
	border-color: var(--mab-ink-hover);
	color: var(--mab-ivory);
}

.wp-block-button.is-style-mab-gold > .wp-block-button__link {
	background: var(--mab-gold);
	border-color: var(--mab-gold);
	color: var(--mab-ink);
}

.wp-block-button.is-style-mab-gold > .wp-block-button__link:hover {
	background: var(--mab-gold-hover);
	border-color: var(--mab-gold-hover);
	color: var(--mab-ink);
}

.wp-block-button.is-style-mab-outline > .wp-block-button__link {
	background: transparent;
	border-color: currentColor;
	border-color: color-mix(in srgb, currentColor 45%, transparent);
	color: inherit;
}

.wp-block-button.is-style-mab-outline > .wp-block-button__link:hover {
	background: rgba(127, 127, 127, 0.1);
	background: color-mix(in srgb, currentColor 8%, transparent);
	border-color: currentColor;
	color: inherit;
}

.wp-block-button[class*="is-style-mab-"] > .wp-block-button__link:focus-visible {
	outline: 2px solid var(--mab-focus);
	outline-offset: 3px;
}

.wp-block-button.mab-btn-arrow > .wp-block-button__link::after {
	content: "\2192" / "";
	display: inline-block;
	transition: transform 0.2s ease;
}

.wp-block-button.mab-btn-arrow > .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

/* -------------------------------------------------------------------------
   Grids and cards
   ------------------------------------------------------------------------- */

.mab-section .mab-grid {
	gap: 1.25rem;
	gap: clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 600px) and (max-width: 1099px) {
	.mab-section .mab-grid.mab-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 600px) and (max-width: 899px) {
	.mab-section .mab-grid.mab-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.mab-section .mab-card {
	height: 100%;
	padding: 1.75rem;
	padding: clamp(1.5rem, 2.5vw, 2rem);
	border: 1px solid var(--mab-line);
	border-radius: var(--mab-radius);
	background: var(--mab-paper);
	box-shadow: var(--mab-shadow);
}

.mab-section--paper .mab-card {
	background: var(--mab-ivory);
	box-shadow: none;
}

.mab-section .mab-card :where(p) {
	font-size: 1rem;
	line-height: 1.65;
	color: var(--mab-muted);
}

html .mab-section .mab-num {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--mab-font-display);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--mab-accent-text);
	margin-bottom: 1.25rem;
}

.mab-section .mab-num::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--mab-line-strong);
}

html .mab-section .mab-card .mab-card__meta {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--mab-line);
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
	color: var(--mab-gold-text);
}

/* Problems: editorial items with a gold lead line */
.mab-section .mab-problem {
	position: relative;
	padding-top: 1.5rem;
	border-top: 1px solid var(--mab-line-strong);
}

.mab-section .mab-problem::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 2.5rem;
	height: 2px;
	background: var(--mab-gold);
}

.mab-section .mab-problem :where(p) {
	color: var(--mab-muted);
}

/* -------------------------------------------------------------------------
   Home: hero ledger, intro split, latest posts, final panel
   ------------------------------------------------------------------------- */

html .mab-section .mab-hero__cols,
html .mab-section .mab-split {
	gap: 3rem;
	gap: clamp(2.5rem, 6vw, 5rem);
	margin: 0;
}

.mab-hero .mab-lead {
	max-width: 36rem;
}

.mab-section .mab-ledger {
	position: relative;
	padding: 2rem;
	padding: clamp(1.75rem, 3vw, 2.5rem);
	border-radius: 18px;
	box-shadow: 0 30px 60px -32px rgba(17, 24, 39, 0.6);
}

.mab-section .mab-ledger::before {
	content: "";
	position: absolute;
	top: 0;
	left: clamp(1.75rem, 3vw, 2.5rem);
	width: 3rem;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: var(--mab-gold);
}

html .mab-section .mab-ledger__label,
html .mab-section .mab-approval__label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mab-gold-soft);
	margin-bottom: 1.5rem;
}

/* Column gaps on grid groups stay at or below 24px: WordPress sizes grid
   columns assuming a 24px gap, so a wider gap would drop a column. */
.mab-section .mab-ledger__grid,
.mab-section .mab-approval__grid {
	row-gap: 1.75rem;
	column-gap: 1.5rem;
}

html .mab-section .mab-ledger__title {
	font-family: var(--mab-font-display);
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--mab-rule);
}

html .mab-section .mab-ledger li {
	font-size: 0.9375rem;
	color: var(--mab-ivory);
}

html .mab-section .mab-ledger__note {
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--mab-rule);
	font-size: 0.9375rem;
	color: var(--mab-secondary-text);
}

.mab-hero--book {
	background-image: radial-gradient(circle at 78% 42%, rgba(184, 148, 82, 0.16), transparent 42%);
}

.mab-book-intro {
	background-image: radial-gradient(circle at 22% 50%, rgba(184, 148, 82, 0.13), transparent 38%);
}

.mab-section .mab-latest__query {
	margin: 0;
}

.mab-section .mab-post-grid {
	gap: 1.25rem;
	gap: clamp(1rem, 2vw, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 960px) {
	.mab-section .mab-post-grid.mab-post-grid.mab-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

html .mab-section .mab-post-grid > li {
	margin: 0;
	padding: 0;
}

.mab-section .mab-post-card {
	position: relative;
	height: 100%;
	padding: 1.75rem;
	padding: clamp(1.5rem, 2.5vw, 2rem);
	border: 1px solid var(--mab-line);
	border-radius: var(--mab-radius);
	background: var(--mab-paper);
	box-shadow: var(--mab-shadow);
	transition: border-color 0.2s ease;
}

.mab-section .mab-post-card:hover,
.mab-section .mab-post-card:focus-within {
	border-color: var(--mab-gold);
}

html .mab-section .mab-post-card__date {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--mab-gold-text);
	margin: 0 0 0.75rem;
}

html .mab-section .mab-post-card__title {
	font-size: 1.3rem;
	line-height: 1.3;
	margin: 0 0 0.75rem;
}

html .mab-section .mab-post-card__title a {
	color: inherit;
	text-decoration: none;
}

.mab-section .mab-post-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--mab-radius);
}

.mab-section .mab-post-card__title a:focus-visible {
	outline: none;
}

.mab-section .mab-post-card__title a:focus-visible::after {
	outline: 2px solid var(--mab-focus);
	outline-offset: 3px;
}

html .mab-section .mab-post-card__excerpt,
html .mab-section .mab-post-card__excerpt p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--mab-muted);
}

html .mab-section .mab-empty-note {
	padding: 2rem;
	border: 1px dashed var(--mab-line-strong);
	border-radius: var(--mab-radius);
	background: rgba(255, 255, 255, 0.6);
	color: var(--mab-muted);
}

html .mab-section .mab-latest__more {
	margin-top: 2.5rem;
}

.mab-section .mab-panel {
	position: relative;
	overflow: hidden;
	padding: 4rem 1.5rem;
	padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
	border-radius: 24px;
	background-image: radial-gradient(ellipse at 50% -10%, rgba(184, 148, 82, 0.24), transparent 58%);
}

.mab-section .mab-panel .mab-title {
	max-width: 36rem;
	margin-inline: auto;
}

/* -------------------------------------------------------------------------
   Book cover concept (pure CSS on editable blocks)
   ------------------------------------------------------------------------- */

.mab-section .mab-book {
	container-type: inline-size;
	position: relative;
	width: 100%;
	max-width: 22rem;
	margin-inline: auto;
	padding-bottom: 2.25rem;
}

.mab-section .mab-book--compact {
	max-width: 18.5rem;
}

.mab-section .mab-book::after {
	content: "";
	position: absolute;
	z-index: 0;
	left: 10%;
	right: 4%;
	bottom: 0.6rem;
	height: 1.75rem;
	border-radius: 50%;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 70%);
	filter: blur(6px);
	pointer-events: none;
}

.mab-section .mab-cover {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: flex-start;
	gap: 0;
	aspect-ratio: 2 / 3;
	padding: 2.4rem 2rem 2rem 2.6rem;
	padding: 11cqi 10cqi 9cqi 13cqi;
	border-radius: 3px 8px 8px 3px;
	background-image:
		linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 45%),
		radial-gradient(circle at 100% 100%, rgba(184, 148, 82, 0.14), rgba(184, 148, 82, 0) 55%);
	box-shadow:
		inset 0 0 0 1px rgba(17, 24, 39, 0.06),
		20px 26px 50px -20px rgba(0, 0, 0, 0.55),
		2px 3px 8px rgba(0, 0, 0, 0.18);
	transform-style: preserve-3d;
	transform: perspective(1600px) rotateY(-22deg) rotateX(2deg) translateY(0);
}

/* Spine fold */
.mab-section .mab-cover::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 8%;
	border-radius: 3px 0 0 3px;
	background: linear-gradient(90deg, rgba(17, 24, 39, 0.2) 0%, rgba(17, 24, 39, 0.05) 35%, rgba(255, 255, 255, 0.55) 55%, rgba(17, 24, 39, 0.08) 72%, rgba(17, 24, 39, 0) 100%);
	pointer-events: none;
}

/* Page edges, folded back in 3D */
.mab-section .mab-cover::after {
	content: "";
	position: absolute;
	top: 1.2%;
	bottom: 1.2%;
	right: 0;
	width: 9%;
	transform-origin: 100% 50%;
	transform: rotateY(-90deg);
	background: repeating-linear-gradient(90deg, #fbf8f1 0, #fbf8f1 1.5px, #e2d9c6 1.5px, #e2d9c6 2.5px);
	box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.18);
	pointer-events: none;
}

.mab-section .mab-cover :where(p) {
	margin: 0;
	color: inherit;
	text-wrap: balance;
}

html .mab-section .mab-cover__brand {
	font-size: 0.75rem;
	font-size: 3.3cqi;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: #7a5c24;
}

.mab-section .mab-cover__brand::after {
	content: "";
	display: block;
	width: 12cqi;
	height: 1px;
	margin-top: 5cqi;
	background: var(--mab-gold);
}

html .mab-section .mab-cover__title {
	margin-top: 13cqi;
	font-family: var(--mab-font-display);
	font-size: 2.5rem;
	font-size: 11.5cqi;
	font-weight: 600;
	line-height: 1.03;
	letter-spacing: -0.02em;
	color: #111827;
}

.mab-section .mab-cover__title em {
	font-style: italic;
	font-weight: 500;
	color: #7a5c24;
}

html .mab-section .mab-cover__subtitle {
	margin-top: 6cqi;
	max-width: 30ch;
	font-size: 0.95rem;
	font-size: 4.3cqi;
	line-height: 1.45;
	color: #4b5563;
}

html .mab-section .mab-cover__tag {
	margin-top: auto;
	font-size: 0.65rem;
	font-size: 2.9cqi;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #4b5563;
}

.mab-section .mab-cover__tag::before {
	content: "";
	display: block;
	height: 9px;
	margin-bottom: 5cqi;
	background:
		radial-gradient(circle, #b89452 0 3px, transparent 3.5px) 0% 50% / 9px 9px no-repeat,
		radial-gradient(circle, #b89452 0 3px, transparent 3.5px) 33.333% 50% / 9px 9px no-repeat,
		radial-gradient(circle, #b89452 0 3px, transparent 3.5px) 66.666% 50% / 9px 9px no-repeat,
		radial-gradient(circle, #f3eee3 0 2px, #b89452 2.5px 3.5px, transparent 4px) 100% 50% / 9px 9px no-repeat,
		linear-gradient(#b89452, #b89452) 0 50% / 100% 1px no-repeat;
}

html .mab-section .mab-cover-caption {
	margin: 0.25rem 0 0;
	text-align: center;
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
	color: var(--mab-secondary-text);
}

@media (prefers-reduced-motion: no-preference) {
	.mab-section .mab-cover {
		animation: mab-book-in 1.2s cubic-bezier(0.2, 0.65, 0.2, 1) 0.15s backwards;
		transition: transform 0.7s cubic-bezier(0.2, 0.65, 0.2, 1), box-shadow 0.7s ease;
	}

	@media (hover: hover) {
		.mab-section .mab-book:hover .mab-cover {
			transform: perspective(1600px) rotateY(-12deg) rotateX(1deg) translateY(-6px);
			box-shadow:
				inset 0 0 0 1px rgba(17, 24, 39, 0.06),
				26px 34px 60px -22px rgba(0, 0, 0, 0.55),
				2px 3px 8px rgba(0, 0, 0, 0.16);
		}
	}
}

@keyframes mab-book-in {
	from {
		opacity: 0;
		transform: perspective(1600px) rotateY(-42deg) rotateX(4deg) translateY(18px);
	}
}

/* No entrance animation while editing. */
.editor-styles-wrapper .mab-cover,
.block-editor-block-list__layout .mab-cover {
	animation: none !important;
}

/* A real cover image can reuse the same treatment: add the class
   "mab-book-image" to an Image block. */
.mab-section .mab-book-image {
	max-width: 22rem;
	margin-inline: auto;
}

.mab-section .mab-book-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 3px 8px 8px 3px;
	box-shadow: 20px 26px 50px -20px rgba(0, 0, 0, 0.55), 2px 3px 8px rgba(0, 0, 0, 0.18);
	transform: perspective(1600px) rotateY(-14deg);
}

@media (prefers-reduced-motion: reduce) {
	.mab-section .mab-cover,
	.mab-section .mab-book-image img {
		animation: none;
		transition: none;
	}
}

/* -------------------------------------------------------------------------
   Book page sections
   ------------------------------------------------------------------------- */

/* Lists with drawn markers */
html .mab-section :is(.mab-list-check, .mab-list-dash, .mab-list-cross),
html .mab-note :is(.mab-list-check, .mab-list-dash, .mab-list-cross) {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}

html .mab-section :is(.mab-list-check, .mab-list-dash, .mab-list-cross) li {
	position: relative;
	margin: 0 0 0.7rem;
	padding-left: 1.75rem;
	line-height: 1.55;
}

html .mab-section :is(.mab-list-check, .mab-list-dash, .mab-list-cross) li:last-child {
	margin-bottom: 0;
}

.mab-section :is(.mab-list-check, .mab-list-dash, .mab-list-cross) li::before {
	content: "";
	position: absolute;
	left: 0.1rem;
}

.mab-section .mab-list-check li::before {
	top: 0.42em;
	width: 0.7rem;
	height: 0.4rem;
	border-left: 2px solid var(--mab-accent-text);
	border-bottom: 2px solid var(--mab-accent-text);
	transform: rotate(-45deg);
}

.mab-section .mab-list-dash li::before {
	top: 0.75em;
	width: 0.75rem;
	height: 2px;
	background: var(--mab-accent-text);
}

.mab-section .mab-list-cross li::before {
	top: 0.4em;
	width: 0.75rem;
	height: 0.75rem;
	color: var(--mab-muted);
	background:
		linear-gradient(45deg, transparent 43%, currentColor 43%, currentColor 57%, transparent 57%),
		linear-gradient(-45deg, transparent 43%, currentColor 43%, currentColor 57%, transparent 57%);
}

/* Process stages */
.mab-section .mab-stage {
	position: relative;
	padding-top: 1.75rem;
	border-top: 1px solid var(--mab-line-dark);
}

.mab-section .mab-stage::before {
	content: "";
	position: absolute;
	top: -5px;
	left: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--mab-gold);
	box-shadow: 0 0 0 4px var(--mab-ink);
}

html .mab-section .mab-stage__num {
	font-family: var(--mab-font-display);
	font-size: 2.5rem;
	font-weight: 500;
	line-height: 1;
	color: var(--mab-gold);
	margin-bottom: 0.9rem;
}

html .mab-section .mab-stage__area {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mab-muted-dark);
	margin-bottom: 0.5rem;
}

html .mab-section .mab-stage p:last-child,
html .mab-section .mab-limit p {
	color: var(--mab-muted-dark);
}

.mab-section .mab-approval {
	margin-top: 3.5rem;
	margin-top: clamp(3rem, 6vw, 4.5rem);
	padding: 2rem;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border: 1px solid var(--mab-line-dark);
	border-radius: var(--mab-radius);
	background: rgba(255, 255, 255, 0.03);
}

html .mab-section .mab-approval__title {
	font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
	margin-bottom: 1.5rem;
}

html .mab-section .mab-approval li {
	color: var(--mab-ivory);
}

/* Table of contents */
.mab-section .mab-toc {
	gap: 1.25rem;
	gap: clamp(1rem, 2vw, 1.5rem);
	margin-block: 1.25rem;
	margin-block: clamp(1rem, 2.5vw, 1.75rem);
	align-items: start;
}

.mab-section .mab-toc-part {
	padding: 2rem;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 1px solid var(--mab-line);
	border-radius: var(--mab-radius);
	background: var(--mab-paper);
	box-shadow: var(--mab-shadow);
}

html .mab-section .mab-toc-part__label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mab-gold-text);
	margin-bottom: 0.5rem;
}

html .mab-section .mab-toc-part__title {
	font-size: 1.75rem;
	font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
	line-height: 1.15;
	margin-bottom: 1rem;
}

.mab-section .mab-toc-item {
	padding: 1.25rem 0 0;
	margin-top: 1.25rem;
	border-top: 1px solid var(--mab-line);
}

html .mab-section .mab-toc-num {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mab-gold-text);
	margin-bottom: 0.35rem;
}

html .mab-section .mab-toc-title {
	font-size: 1.1875rem;
	line-height: 1.35;
	margin-bottom: 0.4rem;
}

html .mab-section .mab-toc-desc {
	font-size: 0.975rem;
	line-height: 1.6;
	color: var(--mab-muted);
}

.mab-section .mab-toc-aside {
	padding: 1.5rem 2rem;
	padding: 1.5rem clamp(1.5rem, 3vw, 2.25rem);
	border: 1px dashed var(--mab-line-strong);
	border-radius: var(--mab-radius);
}

html .mab-section .mab-toc-aside__title {
	font-size: 1.375rem;
	line-height: 1.3;
	margin-bottom: 0.35rem;
}

/* Audience fit */
.mab-section .mab-fit--no {
	background: transparent;
	border-style: dashed;
	border-color: var(--mab-line-strong);
	box-shadow: none;
}

html .mab-section .mab-fit li {
	color: var(--mab-ink);
}

html .mab-section .mab-fit--no li {
	color: var(--mab-muted);
}

html .mab-section .mab-requirement li {
	font-size: 1rem;
	color: var(--mab-muted);
}

/* Limitations */
.mab-section .mab-limit {
	position: relative;
	padding-top: 1.5rem;
	border-top: 1px solid var(--mab-line-dark);
}

.mab-section .mab-limit::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 2.5rem;
	height: 2px;
	background: var(--mab-gold);
}

/* FAQ (core Details blocks) */
.mab-section .mab-faq {
	max-width: 52rem;
	border-top: 1px solid var(--mab-line-strong);
}

html .mab-section .mab-faq .wp-block-details {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--mab-line-strong);
}

.mab-section .mab-faq .wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.35rem 0;
	list-style: none;
	cursor: pointer;
	font-family: var(--mab-font-display);
	font-size: 1.15rem;
	font-size: clamp(1.1rem, 1.05rem + 0.25vw, 1.25rem);
	font-weight: 600;
	line-height: 1.35;
	color: inherit;
}

.mab-section .mab-faq .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.mab-section .mab-faq .wp-block-details summary::after {
	content: "";
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	border: 1px solid var(--mab-line-strong);
	border-radius: 50%;
	background:
		linear-gradient(var(--mab-gold-text), var(--mab-gold-text)) 50% 50% / 10px 2px no-repeat,
		linear-gradient(var(--mab-gold-text), var(--mab-gold-text)) 50% 50% / 2px 10px no-repeat;
	transition: transform 0.2s ease;
}

.mab-section .mab-faq .wp-block-details[open] summary::after {
	background: linear-gradient(var(--mab-gold-text), var(--mab-gold-text)) 50% 50% / 10px 2px no-repeat;
}

html .mab-section .mab-faq .wp-block-details > :not(summary) {
	max-width: 46rem;
	margin: 0;
	padding: 0 0 1.35rem;
	color: var(--mab-muted);
}

/* Final call to action */
.mab-section .mab-final__inner {
	max-width: 44rem;
	margin-inline: auto;
}

/* Launch offer price card */
.mab-section .mab-price-card {
	padding: 2.25rem;
	padding: clamp(1.75rem, 4vw, 2.75rem);
	border: 1px solid rgba(184, 148, 82, 0.35);
	border-radius: var(--mab-radius);
}

html .mab-section .mab-price {
	font-family: var(--mab-font-display);
	font-size: 3rem;
	font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
	line-height: 1;
	margin-bottom: 0.5rem;
}

/* -------------------------------------------------------------------------
   Article book note (for blog posts)
   ------------------------------------------------------------------------- */

.mab-note {
	margin-block: 2.5rem;
	padding: 2rem;
	padding: clamp(1.5rem, 4vw, 2.25rem);
	border: 1px solid var(--mab-line);
	border-left: 3px solid var(--mab-gold);
	border-radius: var(--mab-radius);
	line-height: 1.65;
}

html .mab-note .mab-note__title {
	font-family: var(--mab-font-display);
	font-size: 1.5rem;
	line-height: 1.25;
	margin-bottom: 0.75rem;
}

html .mab-note .mab-note__title strong {
	font-weight: 600;
}

/* -------------------------------------------------------------------------
   Small screens
   ------------------------------------------------------------------------- */

@media (max-width: 781px) {
	.mab-section .mab-book {
		max-width: 16rem;
	}

	.mab-section .mab-book--compact {
		max-width: 14rem;
	}

	.mab-section .mab-cover {
		transform: perspective(1400px) rotateY(-16deg) rotateX(1deg) translateY(0);
	}

	.mab-section .mab-hero__media {
		margin-top: 0.5rem;
	}
}

@media (max-width: 480px) {
	html .mab-section .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.mab-section .wp-block-button[class*="is-style-mab-"] {
		width: 100%;
	}

	.mab-section .wp-block-button[class*="is-style-mab-"] > .wp-block-button__link {
		width: 100%;
	}
}

/* Windows High Contrast / forced colors: keep borders visible. */
@media (forced-colors: active) {
	.mab-section .mab-cover,
	.mab-section .mab-card,
	.mab-section .mab-ledger,
	.mab-section .mab-panel {
		border: 1px solid CanvasText;
	}

	.mab-section .mab-cover {
		transform: none;
	}
}
