/* ==========================================================================
   MuktoBuddhi Books — front-end components
   Tokens read Elementor's global colours/fonts (Site Settings), so changing
   them in Elementor re-themes every widget. Declared on body because
   Elementor defines its globals on body.elementor-kit-*.
   ========================================================================== */

body {
	--mb-primary: var(--e-global-color-primary, #7a1416);
	--mb-ink: var(--e-global-color-secondary, #1f1a17);
	--mb-text: var(--e-global-color-text, #4a403a);
	--mb-gold: var(--e-global-color-accent, #c8963e);
	--mb-paper: #fbf7f0;
	--mb-paper-2: #f4ecdf;
	--mb-line: #e8dece;
	--mb-muted: #6b5e55;
	--mb-white: #fff;
	--mb-radius: 16px;
	--mb-radius-sm: 10px;
	--mb-shadow-sm: 0 1px 2px rgba(60, 30, 15, .06), 0 2px 8px rgba(60, 30, 15, .06);
	--mb-shadow: 0 6px 24px -6px rgba(60, 30, 15, .18), 0 2px 6px rgba(60, 30, 15, .06);
	--mb-shadow-lg: 0 30px 60px -20px rgba(60, 20, 10, .35), 0 12px 24px -12px rgba(60, 20, 10, .2);
	--mb-font-head: var(--e-global-typography-primary-font-family, "Nikosh"), "Nikosh", system-ui, sans-serif;
	--mb-font-body: var(--e-global-typography-text-font-family, "Nikosh"), "Nikosh", system-ui, sans-serif;
	--mb-container: 1240px;
	--mb-ease: cubic-bezier(.2, .8, .2, 1);
}

[class^="mb-"], [class*=" mb-"] { box-sizing: border-box; }
[class^="mb-"] *, [class*=" mb-"] * { box-sizing: border-box; }
.mb-icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: middle; }
.mb-wrap { width: 100%; max-width: var(--mb-container); margin-inline: auto; padding-inline: 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.mb-btn {
	--_bg: var(--mb-primary);
	--_fg: #fff;
	--_bd: var(--mb-primary);
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .78em 1.45em; border-radius: 999px; border: 1.5px solid var(--_bd);
	background: var(--_bg); color: var(--_fg) !important; text-decoration: none !important;
	font-family: var(--mb-font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
	cursor: pointer; transition: transform .25s var(--mb-ease), box-shadow .25s, background-color .2s, color .2s, border-color .2s;
	white-space: nowrap;
}
.mb-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--_bg) 70%, transparent); }
.mb-btn:active { transform: translateY(0); }
.mb-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--mb-gold) 70%, transparent); outline-offset: 3px; }
.mb-btn--primary:hover { --_bg: color-mix(in srgb, var(--mb-primary) 82%, #000); --_bd: var(--_bg); }
.mb-btn--outline { --_bg: transparent; --_fg: var(--mb-primary); }
.mb-btn--outline:hover { --_bg: var(--mb-primary); --_fg: #fff; }
.mb-btn--ghost { --_bg: transparent; --_fg: var(--mb-ink); --_bd: color-mix(in srgb, var(--mb-ink) 25%, transparent); }
.mb-btn--ghost:hover { --_bd: var(--mb-ink); --_bg: var(--mb-ink); --_fg: #fff; }
.mb-btn--light { --_bg: #fff; --_fg: var(--mb-ink); --_bd: #fff; }
.mb-btn--light:hover { --_fg: var(--mb-primary); }
.mb-btn--ghost-light { --_bg: rgba(255, 255, 255, .06); --_fg: #fff; --_bd: rgba(255, 255, 255, .45); }
.mb-btn--ghost-light:hover { --_bg: #fff; --_fg: var(--mb-ink); --_bd: #fff; }
.mb-btn--gold { --_bg: var(--mb-gold); --_fg: #2a1a05; --_bd: var(--mb-gold); }
.mb-btn--gold:hover { --_bg: color-mix(in srgb, var(--mb-gold) 85%, #000); }
.mb-btn--sm { padding: .55em 1.05em; font-size: .92rem; }
.mb-btn--lg { padding: .95em 1.8em; font-size: 1.06rem; }
.mb-btn--block { display: flex; width: 100%; }
.mb-btn[disabled] { opacity: .55; pointer-events: none; }

.mb-icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--mb-line); background: #fff; color: var(--mb-ink); cursor: pointer; padding: 0;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.mb-icon-btn:hover { background: var(--mb-primary); border-color: var(--mb-primary); color: #fff; }
.mb-icon-btn .mb-icon { width: 20px; height: 20px; }

.mb-eyebrow {
	display: inline-flex; align-items: center; gap: .7em; margin-bottom: .9rem;
	font-family: var(--mb-font-body); font-weight: 600; font-size: .95rem; letter-spacing: .02em; color: var(--mb-primary);
}
.mb-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--mb-gold); border-radius: 2px; }
.mb-eyebrow--light { color: var(--mb-gold); }

.mb-section-title {
	font-family: var(--mb-font-head); font-weight: 700; color: var(--mb-ink);
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); line-height: 1.45; margin: 0 0 1.1rem;
	display: flex; align-items: center; gap: .6em;
}
.mb-section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--mb-line), transparent); }

.mb-tag {
	display: inline-flex; align-items: center; padding: .28em .85em; border-radius: 999px; font-size: .86rem; font-weight: 600;
	background: color-mix(in srgb, var(--mb-primary) 9%, #fff); color: var(--mb-primary) !important; text-decoration: none !important;
	transition: background-color .2s, color .2s;
}
.mb-tag:hover { background: var(--mb-primary); color: #fff !important; }

.mb-badge {
	display: inline-flex; align-items: center; gap: .3em; padding: .3em .65em; border-radius: 999px;
	font-size: .78rem; font-weight: 700; letter-spacing: .02em; line-height: 1;
	background: rgba(255, 255, 255, .92); color: var(--mb-ink); box-shadow: var(--mb-shadow-sm); backdrop-filter: blur(4px);
}
.mb-badge .mb-icon { width: 12px; height: 12px; }
.mb-badge--gold { background: var(--mb-gold); color: #2a1a05; }
.mb-badge--pdf { background: var(--mb-primary); color: #fff; }

.mb-empty { display: grid; place-items: center; gap: .6rem; text-align: center; padding: 3rem 1.5rem; border: 1.5px dashed var(--mb-line); border-radius: var(--mb-radius); color: var(--mb-muted); grid-column: 1 / -1; }
.mb-empty .mb-icon { width: 40px; height: 40px; color: var(--mb-gold); }
.mb-empty p { margin: 0; }
.mb-empty--small { padding: 1.25rem; }

/* --------------------------------------------------------------------------
   Covers
   -------------------------------------------------------------------------- */
.mb-cover { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.mb-cover--mockup img {
	width: 100%; height: 100%; object-fit: contain; display: block;
	filter: drop-shadow(0 18px 18px rgba(50, 25, 10, .28)) drop-shadow(0 4px 4px rgba(50, 25, 10, .12));
}

/* Flat cover → CSS 3D book */
.mb-book3d {
	--t: 22px;
	position: relative; width: 74%; aspect-ratio: 0.7; transform-style: preserve-3d;
	transform: perspective(1400px) rotateY(16deg) rotateX(2deg); transition: transform .6s var(--mb-ease);
}
.mb-book3d__front, .mb-book3d__back {
	position: absolute; inset: 0; border-radius: 2px 6px 6px 2px; overflow: hidden; backface-visibility: hidden;
	container-type: inline-size;
}
.mb-book3d__front { transform: translateZ(calc(var(--t) / 2)); box-shadow: 0 22px 34px -12px rgba(40, 18, 8, .45); }
.mb-book3d__front::after { /* binding crease + sheen */
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(90deg, rgba(0, 0, 0, .28) 0, rgba(255, 255, 255, .18) 2.2%, rgba(0, 0, 0, .12) 4%, transparent 8%, transparent 70%, rgba(255, 255, 255, .08) 100%);
}
.mb-book3d__front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-book3d__back { transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); background: #3a2a22; }
.mb-book3d__back img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-book3d__spine {
	position: absolute; top: 0; bottom: 0; left: 0; width: var(--t);
	transform: translateX(calc(var(--t) / -2)) rotateY(-90deg);
	background: linear-gradient(90deg, #3a0a0b, #5c1012 50%, #2b0708); border-radius: 2px 0 0 2px;
}
.mb-book3d__pages {
	position: absolute; top: 1.5%; bottom: 1.5%; right: 0; width: var(--t);
	transform: translateX(calc(var(--t) / 2 - 3px)) rotateY(90deg);
	background: repeating-linear-gradient(90deg, #fffdf8 0 2px, #e9e1d3 2px 3px);
}
.mb-cover--flat.is-flipped .mb-book3d { transform: perspective(1400px) rotateY(180deg); }

/* Generated typographic cover (when a book has no image yet) */
.mb-gencover {
	--c1: #7a1416; --c2: #4a0a0c; --fg: #fbf3e6; --ac: #d8ab5a;
	position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
	padding: 12% 11%; gap: 6cqw; color: var(--fg);
	background: radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(160deg, var(--c1), var(--c2));
}
.mb-gencover::before { content: ""; position: absolute; inset: 5cqw; border: 1px solid color-mix(in srgb, var(--ac) 60%, transparent); pointer-events: none; }
.mb-gencover__rule { width: 22cqw; height: 2px; background: var(--ac); }
.mb-gencover__title { font-family: var(--mb-font-head); font-weight: 700; font-size: clamp(7px, 8.4cqw, 26px); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.mb-gencover__author { font-size: clamp(9px, 5.6cqw, 16px); opacity: .9; }
.mb-gencover__publisher { position: absolute; bottom: 9cqw; left: 0; right: 0; font-size: clamp(8px, 4.4cqw, 13px); color: var(--ac); letter-spacing: .04em; }
.mb-gencover--ink    { --c1: #2c2622; --c2: #14100e; --ac: #c8963e; }
.mb-gencover--forest { --c1: #1f4a3a; --c2: #0f2a20; --ac: #d9b86a; }
.mb-gencover--navy   { --c1: #1d3557; --c2: #0e1c30; --ac: #e0b562; }
.mb-gencover--ochre  { --c1: #b8792b; --c2: #7a4a12; --fg: #fff8ec; --ac: #2b1a08; }
.mb-gencover--plum   { --c1: #5b2147; --c2: #2e0f24; --ac: #e2b66a; }
.mb-cover--flat .mb-book3d__spine { background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.25) 50%, rgba(0,0,0,.6)), var(--mb-primary); }

/* --------------------------------------------------------------------------
   Book card
   -------------------------------------------------------------------------- */
.mb-card {
	--mb-card-bg: transparent; --mb-card-radius: var(--mb-radius); --mb-cover-bg: linear-gradient(165deg, #f7f0e5 0%, #efe3d0 100%);
	position: relative; display: flex; flex-direction: column; height: 100%;
	background: var(--mb-card-bg); border-radius: var(--mb-card-radius);
	font-family: var(--mb-font-body); color: var(--mb-text);
}
.mb-card__media {
	position: relative; aspect-ratio: 4 / 5; border-radius: var(--mb-card-radius); background: var(--mb-cover-bg);
	overflow: hidden; isolation: isolate;
}
.mb-card__media::before { /* soft spotlight */
	content: ""; position: absolute; inset: auto 10% -30% 10%; height: 60%; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255, 255, 255, .7), transparent); z-index: -1;
}
.mb-card__cover { position: absolute; inset: 0; display: grid; place-items: center; padding: 9% 12% 11%; }
.mb-card__cover .mb-cover { transition: transform .55s var(--mb-ease); }
.mb-card:hover .mb-card__cover .mb-cover { transform: translateY(-6px) scale(1.035); }
.mb-card:hover .mb-book3d { transform: perspective(1400px) rotateY(6deg) rotateX(0); }
.mb-card__badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; pointer-events: none; }
.mb-card__quick {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; display: flex; justify-content: center; z-index: 3;
	background: linear-gradient(0deg, rgba(31, 18, 12, .55), transparent);
	opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .35s var(--mb-ease);
}
@media (hover: hover) {
	.mb-card:hover .mb-card__quick, .mb-card:focus-within .mb-card__quick { opacity: 1; transform: none; }
}
@media (hover: none) { .mb-card__quick { display: none; } }

.mb-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 4px 4px; }
.mb-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: .3em .7em; font-size: .82rem; color: var(--mb-muted); margin-bottom: .35rem; }
.mb-card__cat { color: var(--mb-primary); font-weight: 600; }
.mb-card__year::before { content: "•"; margin-right: .6em; color: var(--mb-line); }
.mb-card__cat + .mb-card__year::before { display: inline; }
.mb-card__meta > .mb-card__year:first-child::before { display: none; }
.mb-card__title { font-family: var(--mb-font-head); font-weight: 700; font-size: 1.06rem; line-height: 1.55; margin: 0 0 .35rem; color: var(--mb-ink); }
.mb-card__title a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--mb-ease), color .2s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mb-card__title a:hover { color: var(--mb-primary); }
.mb-card__author { display: flex; align-items: flex-start; gap: .4em; font-size: .9rem; color: var(--mb-muted); margin-bottom: .5rem; }
.mb-card__author .mb-icon { width: 15px; height: 15px; margin-top: .25em; color: var(--mb-gold); }
.mb-card__excerpt { font-size: .92rem; line-height: 1.7; margin: 0 0 .6rem; }
.mb-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .55rem; border-top: 1px dashed var(--mb-line); }
.mb-card__price { font-weight: 700; font-size: 1.05rem; color: var(--mb-primary); }
.mb-card__link { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; font-size: .9rem; color: var(--mb-ink); text-decoration: none !important; margin-left: auto; }
.mb-card__link .mb-icon { width: 16px; height: 16px; transition: transform .25s var(--mb-ease); }
.mb-card__link:hover { color: var(--mb-primary); }
.mb-card__link:hover .mb-icon { transform: translateX(4px); }

.mb-card--minimal .mb-card__body { text-align: center; align-items: center; padding-top: 12px; }
.mb-card--minimal .mb-card__foot { border: 0; justify-content: center; }
.mb-card--minimal .mb-card__author { justify-content: center; }

.mb-card--horizontal { flex-direction: row; gap: 18px; align-items: stretch; background: #fff; padding: 12px; border: 1px solid var(--mb-line); }
.mb-card--horizontal .mb-card__media { flex: 0 0 38%; aspect-ratio: 3 / 4; border-radius: calc(var(--mb-card-radius) - 4px); }
.mb-card--horizontal .mb-card__body { padding: 6px 4px; }

/* --------------------------------------------------------------------------
   Grid, filter bar, pagination
   -------------------------------------------------------------------------- */
.mb-books { position: relative; }
.mb-grid { display: grid; grid-template-columns: repeat(var(--mb-cols, 4), minmax(0, 1fr)); gap: var(--mb-gap, 32px) var(--mb-gap, 28px); transition: opacity .3s; }
.mb-books.is-loading .mb-grid { opacity: .35; pointer-events: none; }
.mb-books.is-loading::after {
	content: ""; position: absolute; left: 50%; top: 180px; width: 42px; height: 42px; margin-left: -21px; border-radius: 50%;
	border: 3px solid var(--mb-line); border-top-color: var(--mb-primary); animation: mb-spin .8s linear infinite;
}
@keyframes mb-spin { to { transform: rotate(360deg); } }

.mb-books.is-list .mb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mb-books.is-list .mb-card { flex-direction: row; gap: 18px; background: #fff; padding: 12px; border: 1px solid var(--mb-line); }
.mb-books.is-list .mb-card__media { flex: 0 0 36%; aspect-ratio: 3 / 4; }
.mb-books.is-list .mb-card__body { padding: 6px 4px; }
@media (max-width: 767px) { .mb-books.is-list .mb-grid { grid-template-columns: 1fr; } }

.mb-filter {
	display: grid; grid-template-columns: 1fr auto; gap: 14px 16px; align-items: center;
	padding: 16px; margin-bottom: 18px; border-radius: calc(var(--mb-radius) + 4px);
	background: #fff; border: 1px solid var(--mb-line); box-shadow: var(--mb-shadow-sm);
}
.mb-filter__search { position: relative; display: block; margin: 0; }
.mb-filter__search .mb-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--mb-muted); pointer-events: none; }
.mb-filter__search input {
	width: 100%; height: 50px; padding: 0 18px 0 46px; border-radius: 999px; border: 1.5px solid var(--mb-line); background: var(--mb-paper);
	font: inherit; font-family: var(--mb-font-body); color: var(--mb-ink); outline: none; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.mb-filter__search input:focus { border-color: var(--mb-primary); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--mb-primary) 12%, transparent); }
.mb-filter__selects { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mb-select { position: relative; margin: 0; }
.mb-select select {
	appearance: none; -webkit-appearance: none; height: 50px; padding: 0 40px 0 18px; border-radius: 999px; border: 1.5px solid var(--mb-line);
	background: var(--mb-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237a1416' stroke-width='2'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center;
	font: inherit; font-family: var(--mb-font-body); color: var(--mb-ink); cursor: pointer; min-width: 150px;
}
.mb-select select:focus { outline: none; border-color: var(--mb-primary); }
.mb-view-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--mb-paper); border: 1.5px solid var(--mb-line); }
.mb-view-toggle button { display: grid; place-items: center; width: 40px; height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--mb-muted); cursor: pointer; padding: 0; }
.mb-view-toggle button.is-active { background: var(--mb-primary); color: #fff; }
.mb-chips { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.mb-chip {
	display: inline-flex; align-items: center; gap: .5em; padding: .5em 1.05em; border-radius: 999px; border: 1.5px solid var(--mb-line);
	background: #fff; color: var(--mb-ink); font: inherit; font-family: var(--mb-font-body); font-size: .93rem; font-weight: 500; cursor: pointer;
	transition: all .2s;
}
.mb-chip:hover { border-color: var(--mb-primary); color: var(--mb-primary); }
.mb-chip.is-active { background: var(--mb-primary); border-color: var(--mb-primary); color: #fff; }
.mb-chip__count { font-size: .76rem; padding: .1em .55em; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); }
.mb-books__status { display: flex; justify-content: space-between; align-items: center; margin: 0 4px 20px; color: var(--mb-muted); font-size: .95rem; }
.mb-books__status strong { color: var(--mb-ink); }

.mb-pager { display: flex; justify-content: center; margin-top: 42px; }
.mb-pager:empty { display: none; }
.mb-pages { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.mb-page { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--mb-line); background: #fff; color: var(--mb-ink); font: inherit; font-weight: 600; cursor: pointer; transition: all .2s; }
.mb-page:hover { border-color: var(--mb-primary); color: var(--mb-primary); }
.mb-page.is-active { background: var(--mb-primary); border-color: var(--mb-primary); color: #fff; }

@media (max-width: 860px) {
	.mb-filter { grid-template-columns: 1fr; }
	.mb-filter__selects { justify-content: space-between; }
	.mb-select { flex: 1; }
	.mb-select select { width: 100%; min-width: 0; }
	.mb-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
	.mb-chips::-webkit-scrollbar { display: none; }
	.mb-chip { flex: none; }
}

/* --------------------------------------------------------------------------
   Carousel
   -------------------------------------------------------------------------- */
.mb-carousel { --mb-slides: 5; position: relative; }
.mb-carousel__track {
	display: grid; grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--mb-slides) - 1) * var(--mb-gap, 28px)) / var(--mb-slides));
	gap: var(--mb-gap, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; padding: 6px 2px 10px; outline: none;
}
.mb-carousel__track::-webkit-scrollbar { display: none; }
.mb-carousel__slide { scroll-snap-align: start; min-width: 0; }
.mb-carousel__arrow {
	position: absolute; top: calc(50% - 60px); z-index: 4; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
	border: 1px solid var(--mb-line); background: #fff; color: var(--mb-ink); cursor: pointer; box-shadow: var(--mb-shadow);
	transition: opacity .25s, transform .25s var(--mb-ease), background-color .2s, color .2s;
}
.mb-carousel__arrow:hover { background: var(--mb-primary); color: #fff; border-color: var(--mb-primary); }
.mb-carousel__arrow--prev { left: -22px; }
.mb-carousel__arrow--next { right: -22px; }
.mb-carousel__arrow[disabled] { opacity: 0; pointer-events: none; }
.mb-carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.mb-carousel__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--mb-line); cursor: pointer; transition: width .3s var(--mb-ease), background-color .3s; }
.mb-carousel__dots button.is-active { width: 28px; background: var(--mb-primary); }
@media (max-width: 1024px) { .mb-carousel__arrow--prev { left: 4px; } .mb-carousel__arrow--next { right: 4px; } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.mb-hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; min-height: 620px; font-family: var(--mb-font-body); }
.mb-hero__title { font-family: var(--mb-font-head); font-weight: 700; color: var(--mb-ink); font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.7rem); line-height: 1.3; margin: 0 0 1.2rem; letter-spacing: -.005em; }
.mb-hero__hl { color: var(--mb-primary); position: relative; white-space: nowrap; }
.mb-hero__hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .16em; background: var(--mb-gold); opacity: .45; border-radius: 4px; z-index: -1; transform-origin: left; animation: mb-underline 1.2s .5s var(--mb-ease) both; }
@keyframes mb-underline { from { transform: scaleX(0); } }
.mb-hero__text { font-size: clamp(1.02rem, .95rem + .3vw, 1.18rem); line-height: 1.85; color: var(--mb-text); max-width: 34em; margin: 0 0 2rem; }
.mb-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mb-hero__stats { display: flex; gap: 0; margin-top: 2.6rem; flex-wrap: wrap; }
.mb-hero__stat { padding: 0 28px; border-left: 1px solid var(--mb-line); }
.mb-hero__stat:first-child { padding-left: 0; border-left: 0; }
.mb-hero__stat strong { display: block; font-family: var(--mb-font-head); font-size: 1.9rem; line-height: 1.2; color: var(--mb-ink); }
.mb-hero__stat span { font-size: .9rem; color: var(--mb-muted); }

.mb-hero__books { position: relative; height: 560px; display: grid; place-items: center; perspective: 1600px; }
.mb-hero__glow { position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--mb-gold) 38%, transparent), transparent); filter: blur(10px); }
.mb-hero__books::before { /* concentric rings */
	content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
	border: 1px dashed color-mix(in srgb, var(--mb-primary) 30%, transparent);
	box-shadow: 0 0 0 46px color-mix(in srgb, var(--mb-primary) 4%, transparent), 0 0 0 47px color-mix(in srgb, var(--mb-primary) 12%, transparent);
	animation: mb-rotate 60s linear infinite;
}
@keyframes mb-rotate { to { transform: rotate(360deg); } }
.mb-fan { position: relative; width: 58%; max-width: 330px; aspect-ratio: 0.74; }
.mb-fan__item {
	--pos: 0; --abs: 0;
	position: absolute; inset: 0; display: block; text-decoration: none;
	transform: translateX(calc(var(--pos) * 46%)) translateY(calc(var(--abs) * 5%)) rotate(calc(var(--pos) * 9deg)) scale(calc(1 - var(--abs) * .14));
	transition: transform .9s var(--mb-ease), filter .9s, opacity .9s;
	filter: brightness(calc(1 - var(--abs) * .12)) saturate(calc(1 - var(--abs) * .1));
}
.mb-fan__item .mb-cover { height: 100%; }
.mb-fan__item.is-active .mb-cover--mockup img { filter: drop-shadow(0 34px 30px rgba(50, 20, 8, .38)) drop-shadow(0 8px 8px rgba(50, 20, 8, .16)); }
.mb-fan__item .mb-book3d { width: 86%; }
.mb-fan__item.is-active { animation: mb-float 6s ease-in-out infinite; }
@keyframes mb-float { 50% { translate: 0 -10px; } }
.mb-hero__note {
	position: absolute; left: 2%; bottom: 7%; z-index: 20; display: flex; align-items: center; gap: 12px; max-width: 290px;
	padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px);
	box-shadow: var(--mb-shadow-lg); color: var(--mb-ink) !important; text-decoration: none !important; transition: transform .3s var(--mb-ease);
	animation: mb-pop .8s .6s var(--mb-ease) both;
}
.mb-hero__note:hover { transform: translateY(-4px); }
@keyframes mb-pop { from { opacity: 0; transform: translateY(20px) scale(.95); } }
.mb-hero__note-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--mb-primary); color: #fff; }
.mb-hero__note small { display: block; font-size: .78rem; color: var(--mb-muted); }
.mb-hero__note strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--mb-font-head); font-size: .95rem; line-height: 1.45; }

@media (max-width: 1024px) {
	.mb-hero { grid-template-columns: 1fr; text-align: center; min-height: 0; gap: 10px; }
	.mb-hero .mb-eyebrow { justify-content: center; }
	.mb-hero__text { margin-inline: auto; }
	.mb-hero__actions, .mb-hero__stats { justify-content: center; }
	.mb-hero__books { height: 470px; order: -1; }
}
@media (max-width: 600px) {
	.mb-hero__books { height: 380px; }
	.mb-fan { width: 54%; }
	.mb-hero__note { left: 0; bottom: 0; max-width: 230px; }
	.mb-hero__stat { padding: 0 16px; }
	.mb-hero__stat strong { font-size: 1.5rem; }
}

/* --------------------------------------------------------------------------
   Spotlight
   -------------------------------------------------------------------------- */
.mb-spotlight {
	position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; overflow: hidden;
	padding: clamp(28px, 5vw, 70px); border-radius: 30px; color: #f5ebe0; font-family: var(--mb-font-body);
	background:
		radial-gradient(60% 80% at 15% 50%, rgba(200, 150, 62, .22), transparent 60%),
		radial-gradient(40% 60% at 100% 0%, rgba(255, 255, 255, .08), transparent 70%),
		linear-gradient(135deg, var(--mb-primary) 0%, color-mix(in srgb, var(--mb-primary) 55%, #120304) 100%);
}
.mb-spotlight::after { /* fine line pattern */
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
	background-image: repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 14px);
	mask-image: linear-gradient(90deg, transparent 40%, #000);
}
.mb-spotlight--reverse { grid-template-columns: 1.1fr .9fr; }
.mb-spotlight--reverse .mb-spotlight__media { order: 2; }
.mb-spotlight__media { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-height: 520px; }
.mb-spotlight__media .mb-cover { width: 74%; height: 92%; position: relative; z-index: 1; }
.mb-spotlight__ring { position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(200, 150, 62, .45); box-shadow: inset 0 0 80px rgba(0, 0, 0, .25), 0 0 0 26px rgba(255, 255, 255, .03); }
.mb-spotlight__info { position: relative; z-index: 1; }
.mb-spotlight__title { font-family: var(--mb-font-head); font-weight: 700; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); line-height: 1.4; margin: 0 0 .6rem; }
.mb-spotlight__title a { color: #fff; text-decoration: none; }
.mb-spotlight__subtitle { font-size: 1.05rem; opacity: .85; margin: 0 0 .9rem; line-height: 1.7; }
.mb-spotlight__author { display: flex; align-items: center; gap: .5em; color: var(--mb-gold); font-weight: 600; margin-bottom: 1.1rem; }
.mb-spotlight__author a { color: inherit; text-decoration: none; }
.mb-spotlight__text { line-height: 1.9; font-size: 1.03rem; opacity: .9; margin: 0 0 1.4rem; }
.mb-spotlight__facts { list-style: none; padding: 0; margin: 0 0 1.8rem; display: flex; flex-wrap: wrap; gap: 10px; }
.mb-spotlight__facts li { display: inline-flex; align-items: center; gap: .45em; padding: .45em .9em; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; }
.mb-spotlight__facts .mb-icon { color: var(--mb-gold); width: 16px; height: 16px; }
.mb-spotlight__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mb-spotlight .mb-price { margin-right: 10px; }
.mb-spotlight .mb-price__label { color: rgba(255, 255, 255, .6); }
.mb-spotlight .mb-price__main { color: #fff; }
@media (max-width: 900px) {
	.mb-spotlight, .mb-spotlight--reverse { grid-template-columns: 1fr; gap: 24px; text-align: center; }
	.mb-spotlight--reverse .mb-spotlight__media { order: 0; }
	.mb-spotlight__media { max-height: 380px; }
	.mb-spotlight__author, .mb-spotlight__facts, .mb-spotlight__actions { justify-content: center; }
	.mb-spotlight .mb-eyebrow { justify-content: center; }
}

/* --------------------------------------------------------------------------
   Categories
   -------------------------------------------------------------------------- */
.mb-cats { font-family: var(--mb-font-body); }
.mb-cats--cards { display: grid; grid-template-columns: repeat(var(--mb-cols, 4), minmax(0, 1fr)); gap: 20px; }
.mb-cats--cards .mb-cat {
	position: relative; display: flex; flex-direction: column; gap: .35rem; min-height: 190px; padding: 26px 24px 22px; overflow: hidden;
	border-radius: var(--mb-radius); background: #fff; border: 1px solid var(--mb-line); color: var(--mb-ink) !important; text-decoration: none !important;
	transition: transform .35s var(--mb-ease), box-shadow .35s, background-color .3s, color .3s;
}
.mb-cats--cards .mb-cat:hover { transform: translateY(-6px); box-shadow: var(--mb-shadow-lg); background: var(--mb-primary); color: #fff !important; border-color: var(--mb-primary); }
.mb-cat__spines { display: flex; align-items: flex-end; gap: 4px; height: 44px; margin-bottom: 14px; }
.mb-cat__spines i { display: block; width: 12px; border-radius: 2px 2px 0 0; transition: height .4s var(--mb-ease), background-color .3s; }
.mb-cat__spines i:nth-child(1) { height: 34px; background: var(--mb-primary); }
.mb-cat__spines i:nth-child(2) { height: 44px; background: var(--mb-gold); }
.mb-cat__spines i:nth-child(3) { height: 28px; background: var(--mb-ink); transform: rotate(10deg); transform-origin: bottom left; margin-left: 2px; }
.mb-cat:hover .mb-cat__spines i { background: #fff; }
.mb-cat:hover .mb-cat__spines i:nth-child(2) { background: var(--mb-gold); height: 38px; }
.mb-cat__name { font-family: var(--mb-font-head); font-weight: 700; font-size: 1.2rem; line-height: 1.45; }
.mb-cat__desc { font-size: .9rem; line-height: 1.65; opacity: .75; }
.mb-cat__count { margin-top: auto; font-size: .88rem; font-weight: 600; color: var(--mb-primary); transition: color .3s; }
.mb-cat:hover .mb-cat__count { color: var(--mb-gold); }
.mb-cat__arrow { position: absolute; right: 22px; bottom: 20px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; opacity: .35; transition: opacity .3s, transform .3s var(--mb-ease); }
.mb-cat:hover .mb-cat__arrow { opacity: 1; transform: rotate(-45deg); }
.mb-cats--pills { display: flex; flex-wrap: wrap; gap: 10px; }
.mb-cats--pills .mb-cat { display: inline-flex; align-items: center; gap: .55em; padding: .55em 1.1em; border-radius: 999px; background: #fff; border: 1.5px solid var(--mb-line); color: var(--mb-ink) !important; text-decoration: none !important; transition: all .2s; }
.mb-cats--pills .mb-cat:hover { background: var(--mb-primary); border-color: var(--mb-primary); color: #fff !important; }
.mb-cats--pills .mb-cat__name { font-family: var(--mb-font-body); font-weight: 600; font-size: .95rem; }
.mb-cats--pills .mb-cat__count { margin: 0; font-size: .78rem; opacity: .8; color: inherit; }
.mb-cats--list { display: flex; flex-direction: column; gap: 10px; }
.mb-cats--list .mb-cat { display: flex; justify-content: space-between; gap: 1em; color: inherit !important; text-decoration: none !important; opacity: .82; transition: opacity .2s, transform .2s; }
.mb-cats--list .mb-cat:hover { opacity: 1; transform: translateX(4px); }
.mb-cats--list .mb-cat__name { font-family: var(--mb-font-body); font-weight: 400; font-size: 1rem; }
.mb-cats--list .mb-cat__count { margin: 0; color: inherit; opacity: .6; font-weight: 400; }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.mb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; font-family: var(--mb-font-body); }
.mb-stat { position: relative; display: flex; flex-direction: column; gap: .25rem; padding: 26px 24px; border-radius: var(--mb-radius); background: #fff; border: 1px solid var(--mb-line); overflow: hidden; }
.mb-stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: color-mix(in srgb, var(--mb-gold) 12%, transparent); }
.mb-stat__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--mb-primary) 9%, #fff); color: var(--mb-primary); margin-bottom: .6rem; }
.mb-stat__icon .mb-icon { width: 26px; height: 26px; }
.mb-stat__num { font-family: var(--mb-font-head); font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.6rem); font-weight: 700; line-height: 1.15; color: var(--mb-ink); }
.mb-stat__label { color: var(--mb-muted); font-size: .98rem; }
.mb-stats--inline .mb-stat { background: transparent; border: 0; border-left: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 0; padding: 6px 28px; }
.mb-stats--inline .mb-stat:first-child { border-left: 0; }
.mb-stats--inline .mb-stat::after { display: none; }

/* --------------------------------------------------------------------------
   Author
   -------------------------------------------------------------------------- */
.mb-author { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 26px; background: #fff; border: 1px solid var(--mb-line); font-family: var(--mb-font-body); }
.mb-author--vertical { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.mb-author__photo { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; }
.mb-author__photo::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--mb-gold) 70%, transparent); animation: mb-rotate 40s linear infinite; }
.mb-author__img, .mb-author__monogram { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; }
.mb-author__monogram { font-family: var(--mb-font-head); font-size: 6rem; font-weight: 700; color: #fff; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--mb-primary) 70%, #fff), var(--mb-primary) 55%, color-mix(in srgb, var(--mb-primary) 60%, #000)); }
.mb-author__name { font-family: var(--mb-font-head); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin: 0 0 .2rem; color: var(--mb-ink); line-height: 1.35; }
.mb-author__role { color: var(--mb-primary); font-weight: 600; margin: 0 0 1rem; }
.mb-author__bio { line-height: 1.9; color: var(--mb-text); }
.mb-author__bio p { margin: 0 0 .8em; }
.mb-author__stats { display: flex; gap: 34px; margin: 1.2rem 0; }
.mb-author--vertical .mb-author__stats { justify-content: center; }
.mb-author__stats strong { display: block; font-family: var(--mb-font-head); font-size: 1.8rem; color: var(--mb-ink); line-height: 1.2; }
.mb-author__stats span { font-size: .9rem; color: var(--mb-muted); }
.mb-author__books { display: flex; gap: 8px; margin: 0 0 1.5rem; }
.mb-author--vertical .mb-author__books { justify-content: center; }
.mb-author__books a { width: 64px; aspect-ratio: .74; display: block; transition: transform .3s var(--mb-ease); }
.mb-author__books a:hover { transform: translateY(-6px) rotate(-3deg); }
.mb-author__books .mb-book3d { width: 100%; --t: 8px; }
@media (max-width: 860px) { .mb-author { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 28px; } .mb-author__photo { max-width: 220px; } .mb-author__stats, .mb-author__books { justify-content: center; } }

/* --------------------------------------------------------------------------
   Distributors
   -------------------------------------------------------------------------- */
.mb-dist { display: grid; grid-template-columns: repeat(var(--mb-cols, 3), minmax(0, 1fr)); gap: 20px; font-family: var(--mb-font-body); }
.mb-dist__item { display: flex; gap: 16px; padding: 24px; border-radius: var(--mb-radius); background: #fff; border: 1px solid var(--mb-line); transition: transform .3s var(--mb-ease), box-shadow .3s; }
.mb-dist__item:hover { transform: translateY(-4px); box-shadow: var(--mb-shadow); }
.mb-dist__icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--mb-primary) 9%, #fff); color: var(--mb-primary); }
.mb-dist__name { font-family: var(--mb-font-head); font-size: 1.1rem; font-weight: 700; margin: 0 0 .35rem; color: var(--mb-ink); line-height: 1.45; }
.mb-dist__address { margin: 0 0 .5rem; font-size: .93rem; line-height: 1.7; color: var(--mb-text); }
.mb-dist__phone { display: flex; align-items: center; gap: .45em; margin: 0; font-weight: 600; font-size: .93rem; color: var(--mb-ink); }
.mb-dist__phone .mb-icon { width: 15px; height: 15px; color: var(--mb-gold); }
.mb-dist__link { display: inline-flex; align-items: center; gap: .35em; margin-top: .6rem; font-weight: 600; color: var(--mb-primary) !important; text-decoration: none !important; }
.mb-dist__link .mb-icon { width: 15px; height: 15px; }
.mb-dist__item.is-highlight { background: var(--mb-primary); border-color: var(--mb-primary); color: #fff; }
.mb-dist__item.is-highlight .mb-dist__name, .mb-dist__item.is-highlight .mb-dist__address, .mb-dist__item.is-highlight .mb-dist__phone { color: #fff; }
.mb-dist__item.is-highlight .mb-dist__icon { background: rgba(255, 255, 255, .14); color: var(--mb-gold); }

/* --------------------------------------------------------------------------
   Page header & breadcrumb
   -------------------------------------------------------------------------- */
.mb-pagehead { display: flex; flex-direction: column; align-items: var(--mb-align-items, center); text-align: var(--mb-align, center); font-family: var(--mb-font-body); }
.mb-pagehead .mb-breadcrumb ol { justify-content: var(--mb-align-items, center); }
.mb-pagehead__title { font-family: var(--mb-font-head); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); line-height: 1.35; margin: .4rem 0 .5rem; color: var(--mb-ink); }
.mb-pagehead__subtitle { max-width: 46em; margin: 0; font-size: 1.08rem; line-height: 1.8; color: var(--mb-text); }
.mb-breadcrumb { font-family: var(--mb-font-body); font-size: .92rem; color: var(--mb-muted); }
.mb-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .2em; list-style: none; margin: 0; padding: 0; }
.mb-breadcrumb li { display: inline-flex; align-items: center; gap: .2em; }
.mb-breadcrumb li + li::before { content: "/"; margin: 0 .45em; opacity: .5; }
.mb-breadcrumb a { color: inherit; text-decoration: none; }
.mb-breadcrumb a:hover { color: var(--mb-primary); }
.mb-breadcrumb [aria-current] { color: var(--mb-ink); font-weight: 500; max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }

/* --------------------------------------------------------------------------
   Single book — details hero
   -------------------------------------------------------------------------- */
.mb-details { --mb-media-w: 42%; display: grid; grid-template-columns: var(--mb-media-w) 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; font-family: var(--mb-font-body); }
.mb-details__media { --mb-stage-bg: linear-gradient(160deg, #f7efe2, #ecdfca); position: sticky; top: 110px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.mb-details__stage {
	position: relative; width: 100%; aspect-ratio: .86; display: grid; place-items: center; padding: 9% 13%;
	border-radius: 28px; background: var(--mb-stage-bg); overflow: hidden; perspective: 1400px;
}
.mb-details__stage::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .85), transparent); }
.mb-details__stage::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 6%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 30, 10, .28), transparent); }
.mb-details__stage .mb-cover { position: relative; z-index: 1; transition: transform .2s ease-out; }
.mb-details__stage .mb-book3d { width: 80%; --t: 30px; }
.mb-flip-toggle { display: inline-flex; align-items: center; gap: .5em; border: 0; background: none; color: var(--mb-primary); font: inherit; font-weight: 600; cursor: pointer; }

.mb-details__info { min-width: 0; padding-top: 6px; }
.mb-details__info .mb-breadcrumb { margin-bottom: 1.1rem; }
.mb-details__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: .9rem; }
.mb-details__title { font-family: var(--mb-font-head); font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.7rem); line-height: 1.4; color: var(--mb-ink); margin: 0 0 .6rem; }
.mb-details__subtitle { font-size: 1.12rem; line-height: 1.75; color: var(--mb-text); margin: 0 0 1rem; font-family: var(--mb-font-head); font-weight: 500; opacity: .9; }
.mb-details__author { display: flex; align-items: center; gap: .55em; font-size: 1.05rem; color: var(--mb-text); margin-bottom: 1.3rem; }
.mb-details__author .mb-icon { color: var(--mb-gold); }
.mb-details__author a { color: var(--mb-primary); font-weight: 600; text-decoration: none; border-bottom: 1px dashed currentColor; }
.mb-details__excerpt { font-size: 1.04rem; line-height: 1.9; color: var(--mb-text); margin-bottom: 1.5rem; padding-left: 18px; border-left: 3px solid var(--mb-gold); }
.mb-details__excerpt p { margin: 0 0 .6em; }
.mb-details__excerpt p:last-child { margin: 0; }
.mb-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 1.6rem; }
.mb-fact { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--mb-line); }
.mb-fact__icon { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--mb-primary) 8%, #fff); color: var(--mb-primary); }
.mb-fact__icon .mb-icon { width: 19px; height: 19px; }
.mb-fact dt { font-size: .78rem; color: var(--mb-muted); margin: 0; line-height: 1.4; }
.mb-fact dd { margin: 0; font-weight: 600; color: var(--mb-ink); font-size: .95rem; line-height: 1.4; word-break: break-word; }
.mb-details__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 20px 22px; border-radius: 20px; background: var(--mb-paper-2); margin-bottom: 1.4rem; }
.mb-details__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mb-price { display: flex; flex-direction: column; line-height: 1.25; }
.mb-price__label { font-size: .8rem; color: var(--mb-muted); }
.mb-price__main { font-family: var(--mb-font-head); font-size: 2rem; font-weight: 700; color: var(--mb-primary); }
.mb-price__alt { font-size: .85rem; color: var(--mb-muted); }

.mb-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mb-share__label { font-size: .92rem; color: var(--mb-muted); margin-right: 4px; }
.mb-share a, .mb-share button {
	position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; padding: 0;
	border: 1px solid var(--mb-line); background: #fff; color: var(--mb-ink); cursor: pointer; transition: all .2s;
}
.mb-share a:hover, .mb-share button:hover { background: var(--mb-primary); color: #fff; border-color: var(--mb-primary); transform: translateY(-2px); }
.mb-share .mb-icon { width: 17px; height: 17px; }
.mb-copy-link__done { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 10px; border-radius: 6px; background: var(--mb-ink); color: #fff; font-size: .78rem; opacity: 0; pointer-events: none; transition: opacity .2s; }
.mb-copy-link.is-done .mb-copy-link__done { opacity: 1; }

@media (max-width: 960px) {
	.mb-details { grid-template-columns: 1fr; }
	.mb-details__media { position: static; max-width: 460px; width: 100%; margin-inline: auto; }
	.mb-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
	.mb-details__actions, .mb-details__actions .mb-btn { width: 100%; }
}

/* Description & specs */
.mb-desc { font-family: var(--mb-font-body); }
.mb-desc__body { font-size: 1.06rem; line-height: 1.95; color: var(--mb-text); }
.mb-desc__body > *:first-child { margin-top: 0; }
.mb-desc__body p { margin: 0 0 1.1em; }
.mb-desc.is-collapsed .mb-desc__body { max-height: 15em; overflow: hidden; mask-image: linear-gradient(180deg, #000 60%, transparent); }
.mb-desc__toggle { margin-top: .6rem; border: 0; background: none; padding: 0; color: var(--mb-primary); font: inherit; font-weight: 600; cursor: pointer; border-bottom: 1.5px solid currentColor; }
.mb-specs { font-family: var(--mb-font-body); }
.mb-specs__table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--mb-line); border-radius: 16px; overflow: hidden; background: #fff; margin: 0; }
.mb-specs__table th, .mb-specs__table td { padding: 13px 18px; text-align: left; border: 0; border-bottom: 1px solid var(--mb-line); vertical-align: top; font-size: .96rem; line-height: 1.6; }
.mb-specs__table tr:last-child th, .mb-specs__table tr:last-child td { border-bottom: 0; }
.mb-specs__table tr:nth-child(odd) { background: var(--mb-paper); }
.mb-specs__table th { width: 36%; font-weight: 600; color: var(--mb-muted); }
.mb-specs__table td { color: var(--mb-ink); }

/* --------------------------------------------------------------------------
   Inline reader (intro card → reader)
   -------------------------------------------------------------------------- */
.mb-reader-embed { --mb-reader-h: min(86vh, 860px); --mb-reader-bg: #241d1a; position: relative; border-radius: 26px; overflow: hidden; font-family: var(--mb-font-body); }
.mb-reader-embed__intro {
	display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; padding: clamp(24px, 4vw, 50px); color: #f2e8dc;
	background: radial-gradient(70% 120% at 0% 50%, rgba(200, 150, 62, .2), transparent 60%), linear-gradient(135deg, #2c2420, #171210);
}
.mb-reader-embed__intro .mb-section-title { color: #fff; }
.mb-reader-embed__intro .mb-section-title::after { background: linear-gradient(90deg, rgba(255, 255, 255, .2), transparent); }
.mb-reader-embed__intro p { line-height: 1.85; opacity: .85; margin: 0 0 1.4rem; max-width: 40em; }
.mb-reader-embed__cover { aspect-ratio: .75; display: grid; place-items: center; }
.mb-reader-embed__cover .mb-cover { height: 100%; }
.mb-reader-embed--empty .mb-reader-embed__intro { grid-template-columns: auto 1fr; gap: 18px; padding: 26px 30px; }
.mb-reader-embed--empty .mb-icon { width: 34px; height: 34px; color: var(--mb-gold); }
.mb-reader-embed--empty p { margin: 0; }
.mb-reader-embed.is-open .mb-reader-embed__intro { display: none; }
.mb-reader-embed.is-open .mb-reader { height: var(--mb-reader-h); }
@media (max-width: 700px) {
	.mb-reader-embed__intro { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 18px; }
	.mb-reader-embed__cover { width: 150px; }
}

/* --------------------------------------------------------------------------
   Reader (shared by modal + inline)
   -------------------------------------------------------------------------- */
.mb-reader {
	--rb: var(--mb-reader-bg, #241d1a);
	position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; color: #eee3d6; font-family: var(--mb-font-body);
	background: radial-gradient(80% 60% at 50% 40%, color-mix(in srgb, var(--rb) 80%, #fff 8%), var(--rb));
	user-select: none;
}
.mb-reader__top, .mb-reader__bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.mb-reader__top { justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mb-reader__title { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--mb-font-head); font-weight: 600; font-size: 1rem; }
.mb-reader__title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-reader__title .mb-icon { color: var(--mb-gold); }
.mb-reader__tools { display: flex; align-items: center; gap: 6px; }
.mb-reader__bar { justify-content: center; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .08); }
.mb-rbtn {
	display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12);
	background: rgba(255, 255, 255, .06); color: inherit; cursor: pointer; font: inherit; font-size: .9rem; gap: 6px; grid-auto-flow: column;
	transition: background-color .2s, border-color .2s, color .2s;
}
.mb-rbtn:hover { background: rgba(255, 255, 255, .14); }
.mb-rbtn.is-active { background: var(--mb-gold); border-color: var(--mb-gold); color: #241505; }
.mb-rbtn[disabled] { opacity: .35; pointer-events: none; }
.mb-rbtn .mb-icon { width: 19px; height: 19px; }
.mb-rbtn--primary { background: var(--mb-primary); border-color: var(--mb-primary); color: #fff; }
.mb-reader__page { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; padding: 0 6px; }
.mb-reader__page input { width: 64px; height: 36px; text-align: center; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .25); color: #fff; font: inherit; }
.mb-reader__seek { flex: 1 1 200px; max-width: 360px; accent-color: var(--mb-gold); }
.mb-reader__sep { width: 1px; height: 24px; background: rgba(255, 255, 255, .14); margin: 0 4px; }
.mb-reader__stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; padding: 18px; }
.mb-reader__book { position: relative; }
.mb-reader__book .stf__parent { margin: 0 auto; }
.mb-rpage { background: #fff; overflow: hidden; }
.mb-rpage::after { content: ""; position: absolute; top: 0; bottom: 0; width: 9%; pointer-events: none; z-index: 2; }
.mb-rpage.--left::after { right: 0; background: linear-gradient(to left, rgba(0, 0, 0, .16), rgba(0, 0, 0, .04) 35%, transparent); }
.mb-rpage.--right::after { left: 0; background: linear-gradient(to right, rgba(0, 0, 0, .16), rgba(0, 0, 0, .04) 35%, transparent); }
.mb-reader__book .stf__parent { filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .45)); }
.mb-rpage canvas, .mb-spage canvas { display: block; width: 100%; height: 100%; }
.mb-rpage__num, .mb-spage__num { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-size: 11px; color: #999; pointer-events: none; }
.mb-rpage.is-loading::after, .mb-spage.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px; border-radius: 50%; border: 3px solid #eee; border-top-color: var(--mb-primary); animation: mb-spin .8s linear infinite; }
.mb-reader__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background-color .2s, opacity .2s; }
.mb-reader__nav:hover { background: var(--mb-primary); }
.mb-reader__nav--prev { left: 12px; }
.mb-reader__nav--next { right: 12px; }
.mb-reader__nav[disabled] { opacity: 0; pointer-events: none; }
.mb-reader__scroll { position: absolute; inset: 0; overflow: auto; padding: 24px 16px 40px; display: none; }
.mb-reader.is-scroll .mb-reader__scroll { display: block; }
.mb-reader.is-scroll .mb-reader__book, .mb-reader.is-scroll .mb-reader__nav { display: none; }
.mb-spage { position: relative; margin: 0 auto 18px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.mb-reader__loading { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; background: var(--rb); }
.mb-reader__loading[hidden] { display: none; }
.mb-reader__progress { width: 220px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.mb-reader__progress i { display: block; height: 100%; width: 0; background: var(--mb-gold); transition: width .2s; }
.mb-reader__spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--mb-gold); animation: mb-spin .8s linear infinite; }
.mb-reader__toast { position: absolute; left: 50%; bottom: 76px; z-index: 7; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 14px; background: #fff; color: var(--mb-ink); box-shadow: var(--mb-shadow-lg); font-size: .93rem; white-space: nowrap; }
.mb-reader__toast[hidden] { display: none; }
@media (max-width: 640px) {
	.mb-reader__seek, .mb-reader__sep, .mb-reader__hide-sm { display: none; }
	.mb-reader__nav { display: none; }
	.mb-reader__stage { padding: 8px; }
}

/* Modal */
.mb-modal { position: fixed; inset: 0; z-index: 100000; display: flex; padding: 2vh 2vw; background: rgba(15, 10, 8, .82); backdrop-filter: blur(6px); animation: mb-fade .3s ease; }
.mb-modal .mb-reader { border-radius: 18px; overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
@keyframes mb-fade { from { opacity: 0; } }
body.mb-modal-open { overflow: hidden; }
@media (max-width: 640px) { .mb-modal { padding: 0; } .mb-modal .mb-reader { border-radius: 0; } }

/* --------------------------------------------------------------------------
   Live search
   -------------------------------------------------------------------------- */
.mb-search { position: relative; width: 100%; font-family: var(--mb-font-body); }
.mb-search__field { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--mb-line); box-shadow: var(--mb-shadow-sm); transition: border-color .2s, box-shadow .2s; }
.mb-search__field:focus-within { border-color: var(--mb-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mb-primary) 12%, transparent); }
.mb-search__field > .mb-icon { color: var(--mb-muted); }
.mb-search__field input { flex: 1; min-width: 0; height: 44px; border: 0 !important; outline: 0; background: transparent; font: inherit; color: var(--mb-ink); padding: 0 !important; box-shadow: none !important; }
.mb-search--lg .mb-search__field { padding: 8px 8px 8px 24px; }
.mb-search--lg .mb-search__field input { height: 56px; font-size: 1.15rem; }
.mb-search--sm .mb-search__field input { height: 38px; }
.mb-search__results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50; padding: 8px; border-radius: 18px; background: #fff; box-shadow: var(--mb-shadow-lg); border: 1px solid var(--mb-line); max-height: 70vh; overflow: auto; text-align: left; }
.mb-sr { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--mb-ink) !important; text-decoration: none !important; }
.mb-sr:hover, .mb-sr.is-focus { background: var(--mb-paper-2); }
.mb-sr__img { flex: none; width: 42px; height: 56px; border-radius: 4px; object-fit: contain; background: var(--mb-paper); }
.mb-sr__img--none { display: grid; place-items: center; color: var(--mb-primary); }
.mb-sr__title { display: block; font-weight: 600; line-height: 1.45; }
.mb-sr__meta { display: block; font-size: .84rem; color: var(--mb-muted); }
.mb-sr__all { display: block; text-align: center; padding: 10px; margin-top: 4px; border-top: 1px solid var(--mb-line); font-weight: 600; color: var(--mb-primary) !important; text-decoration: none !important; }
.mb-sr__none { padding: 14px; text-align: center; color: var(--mb-muted); margin: 0; }
.mb-sr mark { background: color-mix(in srgb, var(--mb-gold) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }

/* --------------------------------------------------------------------------
   Site header (widget)
   -------------------------------------------------------------------------- */
/* Sticky header: the topbar scrolls away (negative top) and nothing changes height
   on scroll — height changes above the content make browsers re-anchor the scroll
   position, which makes a shrinking header jump back and forth. */
.mb-location--header:has(.mb-header.is-sticky), .mb-location--header.is-sticky { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--mb-topbar-h, 0px)); z-index: 999; overflow-anchor: none; }
.mb-header { --mb-header-bg: rgba(251, 247, 240, .92); --mb-menu-active: var(--mb-primary); font-family: var(--mb-font-body); position: relative; }
.mb-topbar { background: var(--mb-ink); color: rgba(255, 255, 255, .78); font-size: .86rem; }
.mb-topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 40px; }
.mb-topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.mb-topbar a:hover { color: var(--mb-gold); }
.mb-topbar .mb-icon { width: 14px; height: 14px; color: var(--mb-gold); }
.mb-topbar__contact, .mb-topbar__right { display: flex; align-items: center; gap: 20px; }
.mb-topbar__social .mb-icon { width: 15px; height: 15px; color: inherit; }
.mb-header__bar { background: var(--mb-header-bg); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--mb-line) 70%, transparent); transition: box-shadow .3s; }
.is-scrolled .mb-header__bar { box-shadow: 0 8px 30px -12px rgba(60, 30, 15, .25); }
.mb-header__inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.mb-logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.mb-logo img { height: 52px; width: auto; display: block; transform-origin: left center; transition: transform .3s var(--mb-ease); }
.is-scrolled .mb-logo img { transform: scale(.88); }
.mb-logo__text { font-family: var(--mb-font-head); font-weight: 700; font-size: 1.4rem; color: var(--mb-ink); }
.mb-nav { flex: 1; display: flex; justify-content: center; }
.mb-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.mb-menu > li { position: relative; }
.mb-menu > li > a { position: relative; display: block; padding: 10px 16px; font-weight: 500; font-size: 1.02rem; color: var(--mb-ink); text-decoration: none; transition: color .2s; }
.mb-menu > li > a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--mb-menu-active); transform: scaleX(0); transform-origin: center; transition: transform .3s var(--mb-ease); }
.mb-menu > li > a:hover, .mb-menu > li.current-menu-item > a, .mb-menu > li.current-menu-ancestor > a { color: var(--mb-menu-active); }
.mb-menu > li > a:hover::after, .mb-menu > li.current-menu-item > a::after, .mb-menu > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.mb-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px; border-radius: 14px; background: #fff; box-shadow: var(--mb-shadow-lg); border: 1px solid var(--mb-line); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--mb-ease); z-index: 20; }
.mb-menu li:hover > .sub-menu, .mb-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.mb-menu .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--mb-ink); text-decoration: none; }
.mb-menu .sub-menu a:hover { background: var(--mb-paper-2); color: var(--mb-primary); }
.mb-menu .menu-item-has-children > a { padding-right: 26px; }
.mb-menu .menu-item-has-children > a::before { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); }
.mb-header__tools { display: flex; align-items: center; gap: 10px; flex: none; }
.mb-burger { display: none; }
@media (max-width: 1024px) {
	.mb-nav, .mb-header__cta { display: none; }
	.mb-burger { display: inline-grid; }
	.mb-header__inner { justify-content: space-between; min-height: 72px; }
	.mb-topbar__text { display: none; }
}
@media (max-width: 600px) { .mb-topbar__contact a:nth-child(2) { display: none; } .mb-logo img { height: 44px; } }

.mb-search-overlay { position: fixed; inset: 0; z-index: 100001; display: grid; place-items: start center; padding: 14vh 20px 20px; background: rgba(251, 247, 240, .96); backdrop-filter: blur(8px); animation: mb-fade .25s ease; }
.mb-search-overlay[hidden] { display: none; }
.mb-search-overlay__inner { position: relative; width: 100%; max-width: 760px; text-align: center; }
.mb-search-overlay__label { font-family: var(--mb-font-head); font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.2rem); color: var(--mb-ink); margin: 0 0 1.4rem; }
.mb-search-overlay__close { position: fixed; top: 24px; right: 24px; }

.mb-drawer { position: fixed; inset: 0; z-index: 100001; }
.mb-drawer[hidden] { display: none; }
.mb-drawer__backdrop { position: absolute; inset: 0; background: rgba(20, 12, 8, .5); animation: mb-fade .3s ease; }
.mb-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); display: flex; flex-direction: column; gap: 18px; padding: 20px; overflow-y: auto; background: var(--mb-paper); box-shadow: -20px 0 60px rgba(0, 0, 0, .2); animation: mb-slide-in .4s var(--mb-ease); }
@keyframes mb-slide-in { from { transform: translateX(100%); } }
.mb-drawer__head { display: flex; justify-content: space-between; align-items: center; }
.mb-drawer__logo { height: 44px; width: auto; }
.mb-drawer__menu, .mb-drawer__menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.mb-drawer__menu .sub-menu { padding-left: 16px; }
.mb-drawer__menu a { display: block; padding: 13px 4px; font-size: 1.1rem; font-weight: 500; color: var(--mb-ink); text-decoration: none; border-bottom: 1px solid var(--mb-line); }
.mb-drawer__menu .current-menu-item > a, .mb-drawer__menu a:hover { color: var(--mb-primary); }
.mb-drawer__contact { display: flex; align-items: center; gap: .5em; margin: auto 0 0; color: var(--mb-muted); }

/* Footer link lists (Nav Menu widget) */
.mb-links { display: flex; list-style: none; margin: 0; padding: 0; gap: 10px; font-family: var(--mb-font-body); }
.mb-links--vertical { flex-direction: column; }
.mb-links--horizontal { flex-wrap: wrap; gap: 18px; }
.mb-links a { color: inherit; text-decoration: none; opacity: .82; transition: opacity .2s, color .2s, padding .2s; }
.mb-links a:hover { opacity: 1; color: var(--mb-gold); }
.mb-links--vertical a:hover { padding-left: 6px; }

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */
.mb-form { display: flex; flex-direction: column; gap: 16px; font-family: var(--mb-font-body); }
.mb-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mb-form__field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.mb-form__field span { font-weight: 600; font-size: .93rem; color: var(--mb-ink); }
.mb-form input:not([type=hidden]), .mb-form textarea {
	width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--mb-line); background: var(--mb-paper);
	font: inherit; color: var(--mb-ink); outline: none; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.mb-form input:focus, .mb-form textarea:focus { border-color: var(--mb-primary); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--mb-primary) 12%, transparent); }
.mb-form .is-invalid { border-color: #c0392b !important; }
.mb-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mb-form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mb-form__status { margin: 0; font-weight: 500; }
.mb-form__status.is-ok { color: #1e7a3c; }
.mb-form__status.is-error { color: #c0392b; }
@media (max-width: 600px) { .mb-form__row { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Reveal-on-scroll
   -------------------------------------------------------------------------- */
.mb-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--mb-ease), transform .7s var(--mb-ease); transition-delay: calc(var(--d, 0) * 70ms); }
.mb-reveal.is-in { opacity: 1; transform: none; }
.elementor-editor-active .mb-reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.mb-reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Guard against Elementor Site Settings (kit) styles, which target every
   <a> and <button> as `.elementor-kit-N a|button`. `html body` + class wins.
   -------------------------------------------------------------------------- */
html body .mb-card__title a { color: inherit; }
html body .mb-card__title a:hover { color: var(--mb-primary); }
html body .mb-card__link { color: var(--mb-ink); }
html body .mb-card__link:hover { color: var(--mb-primary); }
html body .mb-breadcrumb a { color: inherit; }
html body .mb-breadcrumb a:hover { color: var(--mb-primary); }
html body .mb-share a { color: var(--mb-ink); }
html body .mb-share a:hover { color: #fff; }
html body .mb-spotlight__title a { color: #fff; }
html body .mb-spotlight__author a { color: inherit; }
html body .mb-details__author a { color: var(--mb-primary); }
html body .mb-topbar a { color: inherit; }
html body .mb-topbar a:hover { color: var(--mb-gold); }
html body .mb-menu > li > a { color: var(--mb-ink); }
html body .mb-menu > li > a:hover, html body .mb-menu > li.current-menu-item > a, html body .mb-menu > li.current-menu-ancestor > a { color: var(--mb-menu-active); }
html body .mb-menu .sub-menu a, html body .mb-drawer__menu a { color: var(--mb-ink); }
html body .mb-menu .sub-menu a:hover, html body .mb-drawer__menu a:hover, html body .mb-drawer__menu .current-menu-item > a { color: var(--mb-primary); }
html body .mb-links a { color: inherit; }
html body .mb-links a:hover { color: var(--mb-gold); }
html body .mb-logo { color: inherit; }

html body :is(.mb-icon-btn, .mb-chip, .mb-page, .mb-carousel__arrow, .mb-view-toggle button, .mb-carousel__dots button, .mb-rbtn, .mb-reader__nav, .mb-share button, .mb-flip-toggle, .mb-desc__toggle, .mb-copy-link) {
	font-family: var(--mb-font-body); text-transform: none; letter-spacing: normal; box-shadow: none;
}
html body .mb-icon-btn { background: #fff; color: var(--mb-ink); border: 1px solid var(--mb-line); border-radius: 50%; padding: 0; }
html body .mb-icon-btn:hover, html body .mb-icon-btn:focus-visible { background: var(--mb-primary); border-color: var(--mb-primary); color: #fff; }
html body .mb-chip { background: #fff; color: var(--mb-ink); border: 1.5px solid var(--mb-line); border-radius: 999px; padding: .5em 1.05em; font-size: .93rem; font-weight: 500; }
html body .mb-chip:hover { background: #fff; border-color: var(--mb-primary); color: var(--mb-primary); }
html body .mb-chip.is-active, html body .mb-chip.is-active:hover { background: var(--mb-primary); border-color: var(--mb-primary); color: #fff; }
html body .mb-page { background: #fff; color: var(--mb-ink); border: 1.5px solid var(--mb-line); border-radius: 50%; padding: 0; }
html body .mb-page:hover { background: #fff; border-color: var(--mb-primary); color: var(--mb-primary); }
html body .mb-page.is-active { background: var(--mb-primary); border-color: var(--mb-primary); color: #fff; }
html body .mb-view-toggle button { background: transparent; color: var(--mb-muted); border: 0; border-radius: 999px; padding: 0; }
html body .mb-view-toggle button.is-active { background: var(--mb-primary); color: #fff; }
html body .mb-carousel__arrow { background: #fff; color: var(--mb-ink); border: 1px solid var(--mb-line); border-radius: 50%; padding: 0; }
html body .mb-carousel__arrow:hover { background: var(--mb-primary); color: #fff; border-color: var(--mb-primary); }
html body .mb-carousel__dots button { background: var(--mb-line); border: 0; border-radius: 99px; padding: 0; }
html body .mb-carousel__dots button.is-active { background: var(--mb-primary); }
html body .mb-share button { background: #fff; color: var(--mb-ink); border: 1px solid var(--mb-line); border-radius: 50%; padding: 0; }
html body .mb-share button:hover { background: var(--mb-primary); color: #fff; border-color: var(--mb-primary); }
html body .mb-flip-toggle, html body .mb-desc__toggle { background: none; color: var(--mb-primary); border-radius: 0; padding: 0; }
html body .mb-desc__toggle { border: 0; border-bottom: 1.5px solid currentColor; }
html body .mb-flip-toggle { border: 0; }
html body .mb-rbtn { background: rgba(255, 255, 255, .06); color: inherit; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; padding: 0 10px; }
html body .mb-rbtn:hover { background: rgba(255, 255, 255, .14); color: inherit; }
html body .mb-rbtn.is-active { background: var(--mb-gold); border-color: var(--mb-gold); color: #241505; }
html body .mb-rbtn--primary, html body .mb-rbtn--primary:hover { background: var(--mb-primary); border-color: var(--mb-primary); color: #fff; }
html body .mb-reader__nav { background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 50%; padding: 0; }
html body .mb-reader__nav:hover { background: var(--mb-primary); color: #fff; }
html body .mb-btn { border-radius: 999px; }

/* Generated covers at thumbnail size: title only. */
@container (max-width: 110px) {
	.mb-gencover { padding: 14% 10%; gap: 0; }
	.mb-gencover::before { inset: 6%; }
	.mb-gencover__author, .mb-gencover__publisher, .mb-gencover__rule { display: none; }
	.mb-gencover__title { font-size: 10cqw; line-height: 1.35; -webkit-line-clamp: 4; }
}

/* Small-screen polish */
@media (max-width: 600px) {
	.mb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.mb-stat { padding: 18px 16px; }
	.mb-stat__icon { width: 42px; height: 42px; margin-bottom: .3rem; }
	.mb-author__books { flex-wrap: wrap; justify-content: center; }
	.mb-author__books a { width: 52px; }
	.mb-author__stats { gap: 24px; }
}
.mb-cats--list .mb-cat__count { opacity: .75; }

/* Long multi-author credits: keep cards even */
.mb-card__author span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Author photo: round. Elementor's `.elementor img { border-radius: 0; height: auto }` would
   otherwise flatten it, hence the extra specificity. */
.mb-author .mb-author__photo img.mb-author__img { width: 100%; height: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: 50% 35%; box-shadow: 0 18px 40px -16px rgba(60, 30, 15, .45); }
.mb-author .mb-author__photo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 6px #fff; pointer-events: none; }
.mb-author__books .mb-cover--mockup img { filter: drop-shadow(0 6px 6px rgba(50, 25, 10, .25)); }

/* Spotlight: price on its own row so the action buttons stay together */
.mb-spotlight__actions .mb-price { flex-basis: 100%; flex-direction: row; align-items: baseline; gap: .6em; margin: 0 0 4px; }

/* ---- QA polish ---- */
/* Live search: loading state */
.mb-sr__loading::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 50%; border: 2px solid var(--mb-line); border-top-color: var(--mb-primary); animation: mb-spin .8s linear infinite; }

/* Stats: 2×2 on tablets instead of 3 + 1 */
@media (min-width: 601px) and (max-width: 1024px) {
	.mb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	/* Two-column cards: category and year on their own lines, no stray bullet */
	.mb-card__meta { flex-direction: column; align-items: flex-start; gap: 0; }
	.mb-card__year::before, .mb-card__cat + .mb-card__year::before { display: none; }
	/* Filter bar: give the dropdowns the full width; the grid/list toggle is hidden */
	.mb-view-toggle { display: none; }
	.mb-filter__selects { flex-wrap: nowrap; gap: 8px; }
	.mb-select { flex: 1 1 0; min-width: 0; }
	.mb-select select { height: 46px; padding: 0 30px 0 14px; font-size: .9rem; background-position: right 12px center; text-overflow: ellipsis; }
}

@media (max-width: 480px) {
	/* Book facts: one per row so ISBNs and long edition names don't break awkwardly */
	.mb-facts { grid-template-columns: 1fr; }
	.mb-fact { padding: 10px 14px; }
}
