/* ==========================================================================
   Amal Moallem — theme stylesheet
   Measurements come from the 1024 px-wide reference designs. On desktop every
   size scales with the viewport (1 design px = --s), capped at the 1440 px
   size the references were drawn for. Hero artwork uses container units so the
   text stays locked to the picture at any width.
   ========================================================================== */

:root {
	--s: 1px;
	--am-accent: var(--wp--preset--color--primary);
	--am-heading: var(--wp--preset--color--heading);
	--am-hero-text: var(--wp--preset--color--body);
	--am-page-bg: color-mix(in srgb, var(--wp--preset--color--blush-light) 40%, var(--wp--preset--color--base));
	--am-soft: var(--wp--preset--color--blush-light);
	--am-bar: var(--wp--preset--color--secondary);
	--am-card: rgba(253, 250, 246, 0.88);
	--am-ink: #4A4A46;
	--am-line: #EAE5DE;
	--am-page-image: url("../images/page-articles.webp");
	--am-footer-leaf: url("../images/footer-leaf-articles.png");
	--am-leaf: none;
	--am-radius-card: var(--wp--custom--radius--card, 10px);
	--am-radius-btn: var(--wp--custom--radius--button, 999px);
}
@media (min-width: 700px) {
	:root { --s: 0.94px; }
}
@media (min-width: 1000px) {
	:root { --s: min(calc(100vw / 1024), 1.40625px); }
}
.am-has-book { --am-bar: var(--am-accent); }

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body {
	direction: rtl;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.am-main { margin: 0; }
.am-main > * { margin-block: 0; }
.am-main > .alignfull { margin-inline: 0 !important; max-width: none; }
img { max-width: 100%; height: auto; }
:where(a) { text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--am-accent); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.am-icon { width: 1em; height: 1em; flex: none; }
.am-empty { text-align: center; color: var(--wp--preset--color--muted); padding: 24px 16px; margin: 0; }
.am-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Buttons (shared) */
.am-btn,
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	border-radius: var(--am-radius-btn);
	font-family: inherit;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.am-btn {
	background: var(--am-accent);
	color: #fff;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	height: calc(34 * var(--s));
	padding: 0 calc(26 * var(--s));
	border: 0;
	cursor: pointer;
}
.am-btn .am-icon { width: calc(15 * var(--s)); height: calc(15 * var(--s)); }
.am-btn:hover, .am-btn:focus-visible { color: #fff; filter: brightness(0.94); transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(80, 40, 40, .45); }
.am-btn--accent { background: var(--am-accent); }
.am-btn--outline { background: transparent; color: var(--am-heading); box-shadow: inset 0 0 0 1px currentColor; }
.am-btn--outline:hover { color: var(--am-heading); }
.wp-block-button.is-style-sage .wp-block-button__link { background: var(--wp--preset--color--secondary); }
.wp-block-button.is-style-outline-rose .wp-block-button__link { background: transparent; color: var(--wp--preset--color--primary-dark); box-shadow: inset 0 0 0 1px currentColor; }

/* Section title with hairlines on both sides */
.am-sec-title,
.wp-block-heading.is-style-section-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: calc(22 * var(--s));
	margin: 0;
	color: var(--wp--preset--color--primary-dark);
	font-size: calc(26 * var(--s));
	font-weight: 600;
	line-height: 1.3;
}
.am-sec-title::before, .am-sec-title::after,
.wp-block-heading.is-style-section-title::before, .wp-block-heading.is-style-section-title::after {
	content: "";
	width: calc(56 * var(--s));
	height: 1px;
	background: #E0C1C2;
	flex: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.am-header-wrap { position: relative; z-index: 30; }
.am-header {
	background: var(--wp--preset--color--base);
	height: calc(60 * var(--s));
	padding: 0 calc(69 * var(--s)) 0 calc(100 * var(--s)) !important;
	gap: 0 !important;
	justify-content: flex-start !important;
	align-items: center;
	margin: 0;
}
.am-header .wp-block-site-logo { margin: 0 0 0 calc(285 * var(--s)); flex: none; line-height: 0; }
.am-header .wp-block-site-logo img { width: calc(83 * var(--s)) !important; height: auto; }
.am-nav { font-size: calc(12.6 * var(--s)); }
.am-nav .wp-block-navigation__container { gap: calc(32 * var(--s)); }
.am-nav .wp-block-navigation-item__content {
	color: var(--am-ink);
	padding: calc(6 * var(--s)) 0 calc(8 * var(--s));
	position: relative;
	transition: color .2s;
}
.am-nav .wp-block-navigation-item__content:hover { color: var(--am-accent); }
.am-nav .current-menu-item > .wp-block-navigation-item__content { color: color-mix(in srgb, var(--am-accent) 82%, #6b3b42); }
.am-nav .current-menu-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	inset-inline: calc(-1 * var(--s));
	bottom: calc(-3 * var(--s));
	height: 2px;
	border-radius: 2px;
	background: color-mix(in srgb, var(--am-accent) 85%, white);
}
.am-search { margin-inline-start: auto !important; }
.am-search .wp-block-search__button {
	background: none !important;
	color: #3F3F3B !important;
	padding: 0 !important;
	margin: 0 !important;
	width: calc(20 * var(--s)); height: calc(20 * var(--s));
	border: 0;
	min-width: 0;
}
.am-search .wp-block-search__button svg { width: calc(19 * var(--s)); height: calc(19 * var(--s)); fill: currentColor; }
.am-search .wp-block-search__inside-wrapper { border: 0 !important; padding: 0 !important; background: none; align-items: center; }
.am-search .wp-block-search__input {
	border: 1px solid var(--am-line) !important;
	border-radius: 999px !important;
	padding: calc(6 * var(--s)) calc(14 * var(--s)) !important;
	font-size: calc(13 * var(--s));
	background: #fff;
	height: calc(32 * var(--s));
	transition: width .25s ease;
}
.am-search.wp-block-search__searchfield-hidden .wp-block-search__input { border-width: 0 !important; padding: 0 !important; }
.am-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input { width: calc(190 * var(--s)) !important; margin-inline-end: calc(8 * var(--s)); }

/* mobile overlay menu */
.am-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base) !important;
	padding: 28px 24px !important;
}
.am-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 6px; align-items: flex-start; }
.am-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 20px; padding: 10px 0; }
.am-nav .wp-block-navigation__responsive-container-open svg,
.am-nav .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }

.am-header--centered { height: auto; flex-direction: column; padding: calc(14 * var(--s)) calc(24 * var(--s)) 0 !important; }
.am-header--centered .wp-block-site-logo { margin: 0 auto calc(6 * var(--s)); }
.am-header__bar { gap: calc(40 * var(--s)); padding-bottom: calc(8 * var(--s)); }

/* ==========================================================================
   Home hero (core/cover)
   ========================================================================== */
.wp-block-cover.am-hero {
	container-type: inline-size;
	min-height: 0 !important;
	padding: 0 !important;
	display: block;
	overflow: hidden;
	background: #F8EFE9;
}
.wp-block-cover.am-hero::after { content: ""; display: block; padding-top: 32.03125%; min-height: 0; }
.am-hero .wp-block-cover__image-background { object-position: 50% 50% !important; }
.am-hero .wp-block-cover__inner-container {
	position: absolute;
	top: calc(46 * 100cqw / 1024);
	right: calc(504 * 100cqw / 1024);
	width: calc(360 * 100cqw / 1024) !important;
	max-width: none !important;
	margin: 0 !important;
	color: inherit;
	text-align: right;
}
.am-hero .am-hero__title {
	font-size: calc(55 * 100cqw / 1024);
	line-height: 1.11;
	font-weight: 600;
	color: var(--wp--preset--color--secondary-dark);
	margin: 0;
	letter-spacing: 0;
}
.am-hero .am-hero__title mark { background: none; }
.am-hero .am-hero__title mark.has-primary-dark-color { color: var(--wp--preset--color--primary-dark); }
.am-hero .am-hero__desc {
	font-size: calc(19.5 * 100cqw / 1024);
	line-height: 1.68;
	color: #5B5C53;
	margin: calc(15 * 100cqw / 1024) 0 0;
	max-width: calc(325 * 100cqw / 1024);
	margin-inline-start: 0;
}
.am-hero .am-hero__actions { margin: calc(14 * 100cqw / 1024) calc(55 * 100cqw / 1024) 0 0; justify-content: flex-start; }
.am-hero .am-hero__btn .wp-block-button__link {
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-size: calc(14 * 100cqw / 1024);
	height: calc(38 * 100cqw / 1024);
	width: calc(173 * 100cqw / 1024);
	padding: 0;
	font-weight: 500;
}

/* ==========================================================================
   Category row
   ========================================================================== */
.am-cats { background: var(--wp--preset--color--base); padding: calc(19 * var(--s)) 0 0; height: calc(152 * var(--s)); box-sizing: border-box; }
.am-cats__list {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	display: flex;
	width: min(calc(900 * var(--s)), 100% - 24px);
}
.am-cats__item { flex: 1 1 0; position: relative; text-align: center; }
.am-cats__item + .am-cats__item::before {
	content: "";
	position: absolute;
	right: 0;
	top: calc(17 * var(--s));
	height: calc(80 * var(--s));
	width: 1px;
	background: #EDE9E2;
}
.am-cats__item a { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: #4C4C49; }
.am-cats__icon {
	width: calc(62 * var(--s)); height: calc(62 * var(--s));
	border-radius: 50%;
	background: var(--circle);
	color: var(--ink);
	display: grid;
	place-items: center;
	transition: transform .25s ease, box-shadow .25s ease;
}
.am-cats__icon .am-icon { width: calc(46 * var(--s)); height: calc(46 * var(--s)); }
.am-cats__img { width: calc(34 * var(--s)); height: calc(34 * var(--s)); object-fit: contain; }
.am-cats__label { margin-top: calc(9 * var(--s)); font-size: calc(14 * var(--s)); line-height: calc(20 * var(--s)); font-weight: 500; }
.am-cats__item a:hover .am-cats__icon { transform: translateY(-3px); box-shadow: 0 8px 16px -10px rgba(120, 80, 70, .5); }
.am-cats__item a:hover .am-cats__label { color: var(--wp--preset--color--primary-dark); }

/* ==========================================================================
   Books showcase
   ========================================================================== */
.am-books {
	background: var(--band) center top / max(100%, calc(1024 * var(--s))) auto no-repeat, #F8F3EC;
	min-height: calc(422 * var(--s));
	box-sizing: border-box;
	padding: calc(13 * var(--s)) 0 calc(16 * var(--s));
	text-align: center;
}
.am-books__head { margin: 0; }
.am-books__sub { margin: calc(6 * var(--s)) 0 0; font-size: calc(14.2 * var(--s)); color: #55554E; line-height: 1.6; }
.am-books__list {
	list-style: none;
	margin: calc(10 * var(--s)) auto 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: calc(26 * var(--s)) calc(51 * var(--s));
}
.am-books:not(:has(.am-books__head)) .am-books__list { margin-top: calc(72 * var(--s)); }
.am-books__list { max-width: min(calc(980 * var(--s)), 100%); box-sizing: border-box; padding-inline: 16px; }
.am-books__list--4 { column-gap: calc(24 * var(--s)); }
.am-books__list--5 { column-gap: calc(14 * var(--s)); }
.am-books__list--5 .am-books__item { flex-basis: calc(176 * var(--s)); }
.am-books__item { flex: 0 1 calc(209 * var(--s)); min-width: 0; display: flex; flex-direction: column; align-items: center; }
.am-books__cover { display: block; line-height: 0; height: calc(280 * var(--s)); display: flex; align-items: flex-end; }
.am-books__cover img {
	width: auto;
	max-width: min(calc(216 * var(--s)), 100%);
	max-height: calc(280 * var(--s));
	border-radius: 2px;
	filter: drop-shadow(calc(-10 * var(--s)) calc(6 * var(--s)) calc(10 * var(--s)) rgba(96, 72, 52, .22));
	transition: transform .35s ease;
}
.am-books__cover:hover img { transform: translateY(-4px) rotate(-.4deg); }
.am-books__placeholder { width: calc(190 * var(--s)); height: calc(270 * var(--s)); background: var(--btn); color: #fff; display: grid; place-items: center; padding: 20px; font-size: calc(20 * var(--s)); border-radius: 4px; }
.am-btn--book {
	background: var(--btn);
	width: min(calc(158 * var(--s)), 100%);
	height: calc(32 * var(--s));
	padding: 0;
	margin-top: calc(9 * var(--s));
	font-size: calc(13.4 * var(--s));
	font-weight: 400;
}

/* ==========================================================================
   About band (core/cover)
   ========================================================================== */
.wp-block-cover.am-about { min-height: calc(234 * var(--s)) !important; padding: calc(35 * var(--s)) 16px calc(8 * var(--s)) !important; align-items: flex-start; }
.am-about .wp-block-cover__image-background { object-position: center; }
.am-about .wp-block-cover__inner-container { width: min(calc(460 * var(--s)), 100%) !important; color: inherit; }
.am-about__title {
	font-size: calc(26 * var(--s)) !important;
	color: var(--wp--preset--color--primary-dark);
	font-weight: 600;
	margin: 0;
	line-height: calc(40 * var(--s));
	display: flex;
	align-items: center;
	justify-content: center;
	gap: calc(10 * var(--s));
}
.am-about__title::before {
	content: "";
	width: calc(28 * var(--s)); height: calc(30 * var(--s));
	background: url("../images/sprig-about.png") center / contain no-repeat;
	order: 0;
}
.am-about__text { font-size: calc(15.4 * var(--s)); line-height: calc(25.5 * var(--s)); color: #615F58; margin: calc(6 * var(--s)) auto 0; max-width: calc(372 * var(--s)); }
.am-about .wp-block-buttons { margin-top: calc(19 * var(--s)); }
.am-about__btn .wp-block-button__link { width: calc(150 * var(--s)); height: calc(36 * var(--s)); padding: 0; font-size: calc(14 * var(--s)); background: var(--wp--preset--color--primary); }

/* ==========================================================================
   Newsletter
   ========================================================================== */
.am-news { background: var(--wp--preset--color--sage-light); }
.am-news__inner {
	min-height: calc(117 * var(--s));
	box-sizing: border-box;
	display: grid;
	grid-template-columns: calc(340 * var(--s)) calc(375 * var(--s)) 1fr calc(70 * var(--s));
	column-gap: calc(52 * var(--s));
	align-items: center;
	padding: calc(18 * var(--s)) calc(72 * var(--s)) calc(16 * var(--s)) calc(70 * var(--s));
	position: relative;
}
.am-news__text { text-align: right; }
.am-news__title { font-size: calc(21.5 * var(--s)); color: var(--wp--preset--color--secondary-dark); margin: 0; font-weight: 600; line-height: 1.35; }
.am-news__sub { margin: calc(8 * var(--s)) 0 0; font-size: calc(12.6 * var(--s)); color: #75786F; line-height: 1.5; }
.am-news__form { grid-column: 2; position: relative; margin-top: calc(14 * var(--s)); }
.am-news__field {
	display: flex;
	height: calc(36 * var(--s));
	border-radius: 999px;
	background: #FCF8F5;
	box-shadow: 0 1px 2px rgba(80, 90, 70, .06);
	overflow: hidden;
}
.am-news__field input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 0 calc(20 * var(--s));
	font: inherit;
	font-size: calc(12.6 * var(--s));
	color: var(--am-ink);
}
.am-news__field input::placeholder { color: #9A9890; }
.am-news__field input:focus { outline: none; }
.am-news__field:focus-within { box-shadow: 0 0 0 2px rgba(216, 125, 141, .45); }
.am-news__btn {
	width: calc(120 * var(--s));
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font: inherit;
	font-size: calc(13 * var(--s));
	cursor: pointer;
}
.am-news__btn:hover { background: var(--wp--preset--color--primary-dark); }
.am-news__btn:disabled { opacity: .7; }
.am-news__icon {
	grid-column: 4;
	width: calc(70 * var(--s)); height: calc(70 * var(--s));
	border-radius: 50%;
	background: #F6F5EE;
	display: grid;
	place-items: center;
	color: #4A5A40;
	margin-top: calc(-4 * var(--s));
}
.am-news__icon .am-icon { width: calc(34 * var(--s)); height: calc(34 * var(--s)); stroke-width: 1.3; }
.am-consent { display: flex; gap: 6px; align-items: flex-start; font-size: max(11px, calc(10.6 * var(--s))); line-height: 1.5; color: #6E7168; margin-top: calc(6 * var(--s)); cursor: pointer; }
.am-consent input { margin: 2px 0 0; accent-color: var(--am-accent); flex: none; }
.am-consent a { color: inherit; }
.am-form__msg { margin: calc(6 * var(--s)) 0 0; font-size: max(12px, calc(12 * var(--s))); min-height: 0; }
.am-form__msg:empty { display: none; }
.am-form__msg.is-ok { color: #3F6B3A; }
.am-form__msg.is-error { color: #B23B4E; }

/* ==========================================================================
   Footer
   ========================================================================== */
.am-footer-wrap { margin: 0; }
.am-footer { background: var(--wp--preset--color--base-2); margin: 0; }
.am-footer__main {
	position: relative;
	display: grid;
	grid-template-columns: calc(155 * var(--s)) calc(195 * var(--s)) calc(100 * var(--s)) calc(93 * var(--s)) calc(100 * var(--s)) 1fr calc(135 * var(--s));
	grid-template-areas: "brand . c1 . c2 . soc";
	min-height: calc(140 * var(--s));
	box-sizing: border-box;
	padding: calc(20 * var(--s)) calc(79 * var(--s)) calc(10 * var(--s)) calc(88 * var(--s));
	margin: 0 !important;
	align-items: start;
}
body.home .am-footer__main { min-height: calc(162 * var(--s)); padding-top: calc(26 * var(--s)); }
.am-footer__main > * { margin: 0 !important; }
.am-footer__brand { grid-area: brand; text-align: center; }
.am-footer__col:nth-of-type(2) { grid-area: c1; }
.am-footer__col:nth-of-type(3) { grid-area: c2; }
.am-footer__social { grid-area: soc; text-align: center; }
.am-footer__brand .wp-block-site-logo { display: flex; justify-content: center; margin: 0 0 calc(8 * var(--s)); }
.am-footer__brand .wp-block-site-logo img { width: calc(92 * var(--s)) !important; }
.am-footer__tagline { font-size: calc(13 * var(--s)); line-height: calc(21 * var(--s)); color: #6F6F69; margin: 0; }
.am-footer__head { font-size: calc(12.6 * var(--s)) !important; color: #2F2F2B; font-weight: 600; margin: 0 0 calc(5 * var(--s)) !important; line-height: 1.6; }
body.home .am-footer__head { margin-bottom: calc(8 * var(--s)) !important; }
.am-footer__links { list-style: none; padding: 0; margin: 0; font-size: calc(12.4 * var(--s)); line-height: calc(17.4 * var(--s)); }
body.home .am-footer__links { line-height: calc(19.4 * var(--s)); }
.am-footer__links a { color: #7C7B75; text-decoration: none; }
.am-footer__links a:hover { color: var(--am-accent); }
.am-social { justify-content: center; gap: calc(10 * var(--s)) !important; margin-top: calc(14 * var(--s)) !important; }
.am-social .wp-social-link { background-color: var(--am-social, color-mix(in srgb, var(--wp--preset--color--primary) 85%, #fff)); color: #fff; }
.am-has-book .am-social .wp-social-link { --am-social: var(--am-accent); }
.am-social.wp-block-social-links .wp-social-link a { padding: calc(5.5 * var(--s)); }
.am-social.wp-block-social-links .wp-social-link svg { width: calc(13 * var(--s)); height: calc(13 * var(--s)); }
body:not(.home) .am-footer__main::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: calc(90 * var(--s));
	height: calc(118 * var(--s));
	background: var(--am-footer-leaf) left bottom / contain no-repeat;
	pointer-events: none;
}
.am-has-book .am-footer__main::before { background-image: var(--am-footer-leaf); }
.am-footer__bar {
	background: var(--am-bar);
	color: #EEF2EA;
	min-height: calc(46 * var(--s));
	padding: calc(8 * var(--s)) calc(62 * var(--s)) calc(8 * var(--s)) calc(68 * var(--s)) !important;
	box-sizing: border-box;
	margin: 0 !important;
	align-items: center;
	font-size: calc(12 * var(--s));
}
body.home .am-footer__bar { min-height: calc(61 * var(--s)); padding-inline: calc(72 * var(--s)) calc(70 * var(--s)) !important; }
.am-footer__bar p { margin: 0; color: inherit; font-size: inherit; }
.am-footer__bar a { color: inherit; text-decoration: none; }
.am-footer__bar a:hover { text-decoration: underline; }
.am-sep { opacity: .55; margin: 0 calc(14 * var(--s)); }
.am-footer--simple .am-footer__bar { min-height: 52px; }

/* ==========================================================================
   Page hero (articles archive, pages, search)
   ========================================================================== */
.am-phero {
	container-type: inline-size;
	position: relative;
	aspect-ratio: 1024 / 256;
	overflow: hidden;
	background: #F9EEE9;
	text-align: center;
}
.am-phero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.am-phero__text {
	position: relative;
	z-index: 1;
	width: calc(520 * 100cqw / 1024);
	margin: 0 auto;
	padding-top: calc(34 * 100cqw / 1024);
}
.am-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; font-size: calc(12.4 * 100cqw / 1024); line-height: 1.6; color: #7E7B72; }
.am-crumbs li + li::before { content: "/"; margin: 0 calc(7 * 100cqw / 1024); color: #B8B2A8; }
.am-crumbs a { color: #B5868A; text-decoration: none; }
.am-crumbs a:hover { text-decoration: underline; }
.am-phero__title { font-size: calc(42 * 100cqw / 1024); line-height: 1.3; font-weight: 600; color: color-mix(in srgb, var(--wp--preset--color--secondary-dark) 85%, #888); margin: calc(4 * 100cqw / 1024) 0 0; }
.am-phero__desc { font-size: calc(15.6 * 100cqw / 1024); line-height: 1.8; color: #625F57; margin: calc(10 * 100cqw / 1024) auto 0; max-width: calc(396 * 100cqw / 1024); }
.am-phero .am-divider { margin-top: calc(12 * 100cqw / 1024); }
.am-phero--post { aspect-ratio: auto; min-height: calc(256 * 100cqw / 1024); }
.am-phero--post .am-phero__text { width: min(calc(720 * 100cqw / 1024), 100%); padding: calc(34 * 100cqw / 1024) 16px calc(28 * 100cqw / 1024); }
.am-phero__title--post { font-size: calc(34 * 100cqw / 1024); color: var(--am-heading); margin-top: calc(12 * 100cqw / 1024); }
.am-phero--post .am-badge { margin-top: calc(12 * 100cqw / 1024); }
.am-phero--post .am-meta { justify-content: center; margin-top: calc(12 * 100cqw / 1024); font-size: calc(13 * 100cqw / 1024); }

/* hairline · sprig · hairline */
.am-divider { display: flex; align-items: center; justify-content: center; gap: calc(14 * 100cqw / 1024); }
.am-divider::before, .am-divider::after { content: ""; width: calc(96 * 100cqw / 1024); height: 1px; background: color-mix(in srgb, var(--am-accent) 45%, transparent); }
.am-divider img { width: calc(26 * 100cqw / 1024); height: auto; }
.am-divider__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--am-accent); }

/* ==========================================================================
   List areas (background artwork behind the cards)
   ========================================================================== */
.am-list-area {
	background: var(--am-page-image) center top / max(100%, calc(1024 * var(--s))) auto no-repeat, var(--am-page-bg);
	padding: calc(17 * var(--s)) 0 calc(12 * var(--s));
	margin: 0 !important;
}
.am-list-area--book { padding-top: calc(15 * var(--s)); }
.am-has-book .am-list-area--book { background-color: var(--am-page-bg); }

/* chips */
.am-chips ul { list-style: none; margin: 0 auto; padding: 0 16px; display: flex; justify-content: center; flex-wrap: wrap; gap: calc(11 * var(--s)) calc(12 * var(--s)); }
.am-chip {
	display: inline-flex;
	align-items: center;
	height: calc(34 * var(--s));
	padding: 0 calc(22 * var(--s));
	border-radius: 999px;
	background: var(--wp--preset--color--blush-light);
	color: #67655F;
	font-size: calc(13.4 * var(--s));
	text-decoration: none;
	transition: background .2s, color .2s;
}
.am-chip:hover { background: #F1DCD8; color: #6B3B42; }
.am-chip.is-active { background: var(--wp--preset--color--primary); color: #fff; }

/* list containers */
.am-list { margin: 0 auto; display: flex; flex-direction: column; gap: calc(15 * var(--s)); }
.am-list--articles { width: min(calc(897 * var(--s)), 100% - 32px); margin-top: calc(24 * var(--s)); }
.am-list--book { width: min(calc(833 * var(--s)), 100% - 32px); }
.am-list--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

/* cards */
.am-card {
	background: var(--am-card);
	border-radius: calc(12 * var(--s));
	box-shadow: 0 1px 2px rgba(120, 96, 80, .04), 0 calc(6 * var(--s)) calc(18 * var(--s)) rgba(120, 96, 80, .05);
	position: relative;
	transition: box-shadow .25s ease, transform .25s ease;
}
.am-card:hover { box-shadow: 0 1px 2px rgba(120, 96, 80, .05), 0 calc(12 * var(--s)) calc(26 * var(--s)) rgba(120, 96, 80, .10); }
.am-card__title { margin: 0; font-size: var(--wp--preset--font-size--x-large); line-height: 1.5; font-weight: 600; color: var(--am-heading); }
.am-card__title a { color: inherit; text-decoration: none; }
.am-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.am-card__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.am-card__excerpt { margin: calc(5 * var(--s)) 0 0; font-size: calc(13.5 * var(--s)); line-height: calc(22 * var(--s)); color: #6E6D69; }
.am-card .am-btn { position: relative; z-index: 1; }
.am-meta { display: flex; flex-wrap: wrap; align-items: center; gap: calc(6 * var(--s)) calc(40 * var(--s)); font-size: calc(12.6 * var(--s)); color: #6E6D69; margin-top: calc(10 * var(--s)); }
.am-meta__item { display: inline-flex; align-items: center; gap: calc(7 * var(--s)); }
.am-meta .am-icon { width: calc(15.5 * var(--s)); height: calc(15.5 * var(--s)); color: #5F5E59; }
.am-badge {
	display: inline-flex;
	align-items: center;
	height: calc(26 * var(--s));
	padding: 0 calc(12 * var(--s));
	border-radius: 999px;
	background: var(--badge-bg, var(--wp--preset--color--blush));
	color: var(--badge-text, var(--wp--preset--color--primary-dark));
	font-size: calc(12.4 * var(--s));
	text-decoration: none;
	position: relative;
	z-index: 1;
}

/* article card (archive) */
.am-card--article { display: grid; grid-template-columns: 1fr calc(148 * var(--s)); column-gap: calc(30 * var(--s)); padding: calc(14 * var(--s)) calc(25 * var(--s)) calc(11 * var(--s)) calc(28 * var(--s)); min-height: calc(163 * var(--s)); box-sizing: border-box; }
.am-card--article .am-card__title { margin-top: calc(4 * var(--s)); }
.am-card--article .am-card__excerpt { max-width: calc(372 * var(--s)); }
.am-card--article .am-card__action { align-self: end; margin-bottom: calc(20 * var(--s)); }
.am-card--article .am-btn { width: calc(148 * var(--s)); height: calc(34 * var(--s)); padding: 0; font-size: calc(13.6 * var(--s)); background: var(--wp--preset--color--primary); }
.am-has-book .am-card--article .am-btn { background: var(--am-accent); }

/* book card */
.am-card--book {
	display: grid;
	grid-template-columns: calc(42 * var(--s)) 1fr calc(132 * var(--s)) calc(180 * var(--s));
	column-gap: 0;
	padding: calc(19 * var(--s)) calc(20 * var(--s)) calc(12 * var(--s)) calc(31 * var(--s));
	min-height: calc(150 * var(--s));
	box-sizing: border-box;
}
.am-card__num {
	width: calc(42 * var(--s)); height: calc(42 * var(--s));
	border-radius: 50%;
	background: var(--am-soft);
	color: color-mix(in srgb, var(--am-heading) 80%, #555);
	display: grid;
	place-items: center;
	font-size: calc(14 * var(--s));
	font-family: var(--wp--preset--font-family--noto-sans-arabic);
	margin-top: calc(-3 * var(--s));
}
.am-card--book .am-card__body { padding-inline-start: calc(18 * var(--s)); }
.am-card--book .am-card__title { line-height: 1.45; font-size: calc(var(--wp--preset--font-size--x-large) * 1.05); }
.am-card--book .am-card__excerpt { margin-top: calc(6 * var(--s)); max-width: calc(364 * var(--s)); }
.am-card--book .am-meta { margin-top: calc(8 * var(--s)); }
.am-card__deco { display: grid; place-items: center; border-inline-end: 1px solid #E8E4DC; margin: calc(4 * var(--s)) 0 calc(4 * var(--s)); }
.am-card__deco img { width: auto; height: calc(102 * var(--s)); max-width: calc(90 * var(--s)); object-fit: contain; }
.am-card--book .am-card__action { display: flex; align-items: flex-end; justify-content: flex-start; padding-bottom: calc(16 * var(--s)); padding-inline-start: calc(30 * var(--s)); }
.am-card--book .am-btn { width: calc(150 * var(--s)); height: calc(36 * var(--s)); padding: 0; font-size: calc(14 * var(--s)); }

/* grid variants */
.am-list--grid .am-card { grid-template-columns: 1fr; padding: 22px; min-height: 0; }
.am-list--grid .am-card__deco { display: none; }
.am-list--grid .am-card__action { margin: 16px 0 0; padding: 0; align-self: start; }
.am-list--grid .am-card--book { grid-template-columns: 42px 1fr; }
.am-list--grid .am-card--book .am-card__action { grid-column: 1 / -1; }

/* pagination */
.am-pagination { display: flex; justify-content: center; align-items: center; gap: calc(6 * var(--s)); margin-top: calc(14 * var(--s)); direction: ltr; }
.am-pagination__num, .am-pagination__arrow, .am-pagination__dots {
	min-width: calc(30 * var(--s)); height: calc(30 * var(--s));
	box-sizing: border-box;
	border-radius: calc(6 * var(--s));
	display: inline-grid;
	place-items: center;
	padding: 0 calc(4 * var(--s));
	background: #FBF7F3;
	color: #4A4A46;
	font-size: calc(13 * var(--s));
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(100, 80, 70, .06);
}
.am-pagination__arrow .am-icon { width: calc(14 * var(--s)); height: calc(14 * var(--s)); }
.am-pagination__num:hover, .am-pagination__arrow:hover { background: #F2E6E0; }
.am-pagination .is-current { background: color-mix(in srgb, var(--am-accent) 92%, #fff); color: #fff; }
.am-pagination .is-disabled { opacity: .5; }
.am-pagination__dots { background: none; box-shadow: none; }

/* ==========================================================================
   Book hero
   ========================================================================== */
.am-bhero {
	container-type: inline-size;
	position: relative;
	overflow: hidden;
	background: var(--am-page-bg);
}
.am-bhero__media { width: 100%; }
.am-bhero__bg { display: block; width: 100%; height: 100%; object-fit: cover; }
.am-bhero__text {
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(428 * 100cqw / 1024);
	width: calc(390 * 100cqw / 1024);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding-top: calc(24 * 100cqw / 1024);
	color: var(--am-heading);
}
.am-bhero__series { display: flex; align-items: center; gap: calc(26 * 100cqw / 1024); margin: 0; font-size: calc(18 * 100cqw / 1024); line-height: 1.5; font-weight: 500; color: color-mix(in srgb, var(--am-heading) 60%, var(--am-accent)); }
.am-bhero__series::before, .am-bhero__series::after { content: ""; width: calc(44 * 100cqw / 1024); height: 1px; background: color-mix(in srgb, color-mix(in srgb, var(--am-heading), var(--am-accent)) 55%, transparent); }
.am-bhero__title { margin: calc(20 * 100cqw / 1024) 0 0; font-size: calc(64 * 100cqw / 1024); line-height: 1.22; font-weight: 700; color: var(--am-heading); letter-spacing: 0; }
.am-bhero__title.is-medium { font-size: calc(52 * 100cqw / 1024); }
.am-bhero__title.is-long { font-size: calc(48 * 100cqw / 1024); max-width: calc(300 * 100cqw / 1024); line-height: 1.25; }
.am-bhero__subtitle { margin: calc(6 * 100cqw / 1024) 0 0; font-size: calc(22 * 100cqw / 1024); line-height: 1.5; color: color-mix(in srgb, var(--am-heading) 75%, #777); font-weight: 500; }
.am-bhero__desc { margin: calc(16 * 100cqw / 1024) 0 0; font-size: calc(15.2 * 100cqw / 1024); line-height: 1.75; color: var(--am-hero-text); }
.am-bhero .am-divider { margin-top: calc(18 * 100cqw / 1024); }
.am-bhero__actions { display: flex; gap: calc(10 * 100cqw / 1024); margin-top: calc(16 * 100cqw / 1024); flex-wrap: wrap; justify-content: center; }
.am-bhero__actions .am-btn { height: calc(36 * 100cqw / 1024); font-size: calc(13.5 * 100cqw / 1024); padding: 0 calc(20 * 100cqw / 1024); }
.am-bhero__actions .am-icon { width: calc(15 * 100cqw / 1024); height: calc(15 * 100cqw / 1024); }
/* composed hero for books without a text-free banner */
.am-bhero--composed .am-bhero__media--composed {
	aspect-ratio: 1024 / 395;
	position: relative;
	background:
		radial-gradient(circle at 86% 30%, color-mix(in srgb, #FFE3C4 70%, transparent) 0 calc(70 * 100cqw / 1024), transparent calc(72 * 100cqw / 1024)),
		linear-gradient(180deg, color-mix(in srgb, var(--am-page-bg) 70%, #fff), var(--am-page-bg));
}
.am-bhero__cover { position: absolute; left: calc(128 * 100cqw / 1024); bottom: calc(36 * 100cqw / 1024); width: calc(252 * 100cqw / 1024); height: auto; max-height: calc(345 * 100cqw / 1024); object-fit: contain; filter: drop-shadow(calc(-14 * 100cqw / 1024) calc(12 * 100cqw / 1024) calc(16 * 100cqw / 1024) rgba(70, 50, 40, .25)); }
.am-bhero__pedestal { position: absolute; left: 0; bottom: 0; width: calc(500 * 100cqw / 1024); height: calc(52 * 100cqw / 1024); background: linear-gradient(180deg, #F1E7DE, #E7DBD0); box-shadow: inset 0 1px 0 #fff; }

/* ==========================================================================
   Single article
   ========================================================================== */
.am-article { padding: 34px 16px 10px; }
.am-article__image { margin-bottom: 28px !important; text-align: center; }
.am-article__image img { width: auto !important; max-width: 100%; margin-inline: auto; }
.am-article__image img { border-radius: 14px; }
.am-prose { font-size: var(--wp--preset--font-size--large); line-height: 2; color: #4F4E49; }
.am-prose > * { margin-block: 0 1.1em; }
.am-prose h2, .am-prose h3, .am-prose h4 { color: var(--am-heading); margin-top: 1.6em; margin-bottom: .6em; line-height: 1.45; }
.am-prose h2 { font-size: var(--wp--preset--font-size--xx-large); }
.am-prose h3 { font-size: var(--wp--preset--font-size--x-large); }
.am-prose a:not(.wp-element-button):not(.am-btn) { color: color-mix(in srgb, var(--am-accent) 75%, #5a2a33); }
.am-prose ul, .am-prose ol { padding-inline-start: 1.4em; }
.am-prose li { margin-bottom: .35em; }
.am-prose li::marker { color: var(--am-accent); }
.am-prose blockquote.wp-block-quote { border-right: 3px solid var(--am-accent); border-left: 0; padding: .4em 1.3em .4em 0; margin-inline: 0; font-size: 1.08em; color: var(--am-heading); background: linear-gradient(270deg, color-mix(in srgb, var(--am-soft) 70%, transparent), transparent); border-radius: 0 0 0 0; }
.am-prose blockquote p { margin: 0; }
.am-prose .wp-block-pullquote { padding: 1.4em 0; }
.am-prose figure img, .wp-block-image.is-style-rounded-soft img { border-radius: 12px; }
.am-prose figcaption { text-align: center; font-size: .82em; color: var(--wp--preset--color--muted); }
.am-prose .wp-block-table table { border-collapse: collapse; width: 100%; background: #FFFCF9; border-radius: 10px; overflow: hidden; }
.am-prose .wp-block-table th { background: var(--am-soft); color: var(--am-heading); font-weight: 600; }
.am-prose .wp-block-table td, .am-prose .wp-block-table th { border: 1px solid #EFE6E0; padding: .55em .8em; text-align: right; }
.am-prose .wp-block-file { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #FFFCF9; border: 1px solid #EFE6E0; border-radius: 12px; }
.am-prose .wp-block-file__button { background: var(--am-accent); border-radius: 999px; padding: .4em 1.2em; }
.am-prose .wp-block-embed, .am-prose .wp-block-video, .am-prose .wp-block-audio { margin-block: 1.6em; }
.am-prose .wp-block-embed iframe, .am-prose video { border-radius: 12px; }
.am-prose code { background: #F6EEE9; padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.am-article__tags { font-size: 14px; color: var(--wp--preset--color--muted); margin-top: 20px; }
.am-article__tags a { color: inherit; }

.am-share { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--am-line); border-bottom: 1px solid var(--am-line); padding: 14px 0; margin-top: 32px; }
.am-share__label { font-weight: 600; color: var(--am-heading); font-size: 15px; }
.am-share ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.am-share a, .am-share button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--am-soft); color: var(--am-heading); border: 0; cursor: pointer; position: relative; transition: background .2s, color .2s; }
.am-share a:hover, .am-share button:hover { background: var(--am-accent); color: #fff; }
.am-share .am-icon { width: 18px; height: 18px; }
.am-share__copy[data-copied]::after { content: attr(data-copied); position: absolute; bottom: 110%; white-space: nowrap; background: #333; color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 6px; }

.am-postbook { display: flex; gap: 20px; align-items: center; margin-top: 30px; padding: 20px; border-radius: 14px; background: color-mix(in srgb, var(--am-page-bg) 80%, #fff); box-shadow: 0 6px 20px rgba(120, 96, 80, .06); }
.am-postbook__cover { width: 92px; height: auto; border-radius: 3px; box-shadow: -6px 6px 14px rgba(80, 60, 40, .18); }
.am-postbook p { margin: 0; }
.am-postbook__label { font-size: 13px; color: var(--wp--preset--color--muted); }
.am-postbook__title { font-size: 22px; font-weight: 700; }
.am-postbook__title a { color: var(--am-heading); text-decoration: none; }
.am-postbook__sub { color: #6A6A63; font-size: 15px; margin-bottom: 10px !important; }
.am-postbook .am-btn { height: 36px; font-size: 14px; padding: 0 20px; margin-top: 8px; }

.am-postnav { margin-top: 30px; gap: 16px; }
.am-postnav > div { flex: 1; }
.am-postnav a { display: block; padding: 14px 18px; border-radius: 12px; background: #FFFCF9; box-shadow: 0 2px 10px rgba(120, 96, 80, .06); color: var(--am-heading); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.6; height: 100%; box-sizing: border-box; }
.am-postnav a:hover { background: var(--am-soft); }
.am-postnav__prev a::before { content: "→ المقال السابق"; display: block; font-weight: 400; font-size: 12.5px; color: var(--wp--preset--color--muted); }
.am-postnav__next { text-align: left; }
.am-postnav__next a::before { content: "المقال التالي ←"; display: block; font-weight: 400; font-size: 12.5px; color: var(--wp--preset--color--muted); }
.am-postnav .post-navigation-link__label { display: none; }

.am-related-wrap { padding: 40px 16px 10px; }
.am-related .am-sec-title { margin-bottom: 22px; font-size: 24px; }
.am-related .am-card--article { grid-template-columns: 1fr; padding: 20px; min-height: 0; }
.am-related .am-card--article .am-card__action { margin: 14px 0 0; align-self: start; }
.am-related .am-card__title { font-size: 18px; }
.am-related .am-card__excerpt, .am-related .am-meta { font-size: 13.5px; }
.am-related .am-badge { height: 24px; font-size: 12px; padding: 0 10px; }
.am-related .am-btn { width: auto; height: 34px; padding: 0 20px; font-size: 14px; }

.am-comments-wrap { padding: 10px 16px 40px; }
.am-comment { padding: 16px 0; border-bottom: 1px solid var(--am-line); }
.am-comments .wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]), .am-comments textarea { border: 1px solid #E8DED7; border-radius: 10px; padding: 10px 12px; font: inherit; width: 100%; box-sizing: border-box; }
.am-comments .wp-block-post-comments-form input[type=submit] { background: var(--am-accent); color: #fff; border: 0; border-radius: 999px; padding: 10px 26px; font: inherit; cursor: pointer; }

/* ==========================================================================
   Pages, contact, search, 404
   ========================================================================== */
.am-page-content { padding: 40px 16px 60px; }
.am-page-title { margin: 40px 0 20px; color: var(--am-heading); }
.am-about-intro { gap: 40px; margin-bottom: 40px !important; }
.am-contact { max-width: 620px; margin: 10px auto 0; background: #FFFCF9; padding: 28px; border-radius: 16px; box-shadow: 0 8px 30px rgba(120, 96, 80, .08); }
.am-contact p { margin: 0 0 14px; }
.am-contact label { display: block; font-weight: 600; font-size: 14px; color: var(--am-heading); margin-bottom: 6px; }
.am-contact input[type=text], .am-contact input[type=email], .am-contact textarea { width: 100%; box-sizing: border-box; border: 1px solid #E8DED7; border-radius: 10px; padding: 11px 14px; font: inherit; font-size: 15px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.am-contact input:focus, .am-contact textarea:focus { outline: none; border-color: var(--am-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--am-accent) 20%, transparent); }
.am-contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.am-contact .am-consent { font-size: 13px; font-weight: 400; margin: 4px 0 16px; }
.am-contact .am-btn { height: 44px; padding: 0 30px; font-size: 15px; }
.am-search-page { max-width: 560px; margin: 0 auto 10px !important; padding: 0 16px; }
.am-search-page .wp-block-search__inside-wrapper { border: 1px solid #E8DED7; border-radius: 999px; padding: 4px; background: #fff; }
.am-search-page .wp-block-search__input { border: 0; padding: 8px 16px; font: inherit; background: transparent; }
.am-search-page .wp-block-search__button { border-radius: 999px; background: var(--am-accent); color: #fff; border: 0; padding: 8px 22px; margin: 0; }
.am-404 { padding: 40px 16px 60px; text-align: center; }
.am-quote-band { background: #FBF6F1; padding: 50px 16px; }
.am-quote-band__mark { font-size: 54px; line-height: 1; color: var(--wp--preset--color--primary-dark); margin: 0; }
.am-quote-band__text { font-size: var(--wp--preset--font-size--xx-large); line-height: 1.8; color: var(--wp--preset--color--secondary-dark); }
.am-main--books .am-books { padding-top: 0; }

/* Back to top */
.am-totop { position: fixed; left: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--am-accent); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; z-index: 40; box-shadow: 0 6px 18px rgba(80, 50, 50, .25); }
.am-totop.is-visible { opacity: .92; visibility: visible; transform: none; }
.am-totop svg { width: 20px; height: 20px; }


/* Very wide screens: keep content at the 1440 px design width, backgrounds stay full-bleed */
@media (min-width: 1441px) {
	.am-header { padding-right: calc(50% - 720px + calc(69 * var(--s))) !important; padding-left: calc(50% - 720px + calc(100 * var(--s))) !important; }
	.am-news__inner { padding-right: calc(50% - 720px + calc(72 * var(--s))); padding-left: calc(50% - 720px + calc(70 * var(--s))); }
	.am-footer__main { padding-right: calc(50% - 720px + calc(79 * var(--s))) !important; padding-left: calc(50% - 720px + calc(88 * var(--s))) !important; }
	.am-footer__bar, body.home .am-footer__bar { padding-right: calc(50% - 720px + calc(66 * var(--s))) !important; padding-left: calc(50% - 720px + calc(69 * var(--s))) !important; }
	body:not(.home) .am-footer__main::before { left: calc(50% - 720px); }
}

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (min-width: 700px) and (max-width: 999.98px) {
	.am-header { padding: 0 24px !important; }
	.am-header .wp-block-site-logo { margin-left: auto; }
	.am-nav .wp-block-navigation__container { gap: 22px; }
	.am-search { margin-inline-start: 26px !important; }
	.am-footer__main { grid-template-columns: 1.3fr .3fr 1fr .2fr 1fr .2fr 1.2fr; padding-inline: 24px; }
	.am-news__inner { grid-template-columns: 1fr 1.1fr calc(70 * var(--s)); padding-inline: 24px; column-gap: 24px; }
	.am-news__form { grid-column: 2; }
	.am-news__icon { grid-column: 3; }
	.am-card--book { grid-template-columns: calc(42 * var(--s)) 1fr calc(100 * var(--s)) calc(176 * var(--s)); }
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 699.98px) {
	:root { --s: 1px; }
	.am-header { height: 64px; padding: 0 16px !important; justify-content: space-between !important; }
	.am-header .wp-block-site-logo { margin: 0; }
	.am-header .wp-block-site-logo img { width: 74px !important; }
	.am-nav { order: 3; margin-inline-start: 14px; }
	.am-search { order: 2; margin-inline-start: auto !important; }
	.am-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input { width: 46vw !important; }

	/* hero: artwork on top, text below */
	.wp-block-cover.am-hero::after { display: none; }
	.wp-block-cover.am-hero { display: flex; flex-direction: column; background: linear-gradient(180deg, #F9F0EA, #FBF6F1); }
	.am-hero .wp-block-cover__image-background { position: relative !important; inset: auto !important; height: 58vw !important; order: 2; object-position: 82% 50% !important; }
	.am-hero .wp-block-cover__inner-container { position: static; order: 1; width: auto !important; padding: 28px 22px 22px; text-align: center; }
	.am-hero .am-hero__title { font-size: 38px; }
	.am-hero .am-hero__desc { font-size: 16.5px; max-width: 320px; margin: 12px auto 0; }
	.am-hero .am-hero__actions { margin: 16px 0 0; justify-content: center; }
	.am-hero .am-hero__btn .wp-block-button__link { font-size: 15px; height: 44px; width: auto; padding: 0 30px; }

	.am-cats { height: auto; padding: 22px 0 10px; }
	.am-cats__list { flex-wrap: wrap; row-gap: 18px; }
	.am-cats__item { flex: 0 0 33.333%; }
	.am-cats__item::before { display: none; }
	.am-cats__label { font-size: 13.5px; line-height: 19px; }

	.am-books { min-height: 0; padding: 26px 0 30px; background-size: cover; background-position: 20% top; }
	.am-sec-title { font-size: 23px; gap: 14px; }
	.am-sec-title::before, .am-sec-title::after { width: 34px; }
	.am-books__sub { font-size: 14.5px; padding: 0 20px; }
	.am-books__list { gap: 30px 18px; margin-top: 22px; padding: 0 16px; }
	.am-books__item, .am-books__list--5 .am-books__item { flex: 0 1 calc(50% - 9px); max-width: 220px; }
	.am-books__list { padding-inline: 16px; }
	.am-books__cover { height: auto; }
	.am-books__cover img { max-width: 100%; max-height: none; }
	.am-btn--book { width: 100%; max-width: 170px; height: 40px; font-size: 14px; }

	.wp-block-cover.am-about { padding: 34px 20px 34px !important; }
	.am-about__title { font-size: 24px !important; }
	.am-about__text { font-size: 15.5px; line-height: 1.9; }
	.am-about__btn .wp-block-button__link { width: auto; padding: 0 28px; height: 42px; font-size: 15px; }

	.am-news__inner { grid-template-columns: 1fr; padding: 30px 20px; text-align: center; row-gap: 4px; }
	.am-news__text { text-align: center; }
	.am-news__title { font-size: 21px; }
	.am-news__sub { font-size: 14px; }
	.am-news__form { grid-column: 1; }
	.am-news__field { height: 46px; }
	.am-news__field input { font-size: 15px; }
	.am-news__btn { width: 116px; font-size: 14.5px; }
	.am-news__icon { display: none; }
	.am-consent { text-align: right; }

	.am-footer__main { grid-template-columns: 1fr 1fr; grid-template-areas: "brand brand" "c1 c2" "soc soc"; row-gap: 26px; padding: 32px 22px 26px !important; min-height: 0 !important; }
	.am-footer__col { text-align: right; }
	.am-footer__social { text-align: center; }
	.am-footer__head { font-size: 15px !important; }
	.am-footer__links { font-size: 14.5px; line-height: 30px; }
	.am-footer__tagline { font-size: 14px; line-height: 1.8; }
	.am-social.wp-block-social-links .wp-social-link a { padding: 9px; }
	.am-social.wp-block-social-links .wp-social-link svg { width: 17px; height: 17px; }
	body:not(.home) .am-footer__main::before { width: 70px; height: 84px; opacity: .7; }
	.am-footer__bar, body.home .am-footer__bar { flex-direction: column; justify-content: center !important; gap: 4px; padding: 14px 16px !important; font-size: 13px; text-align: center; }

	.am-phero { aspect-ratio: auto; min-height: 210px; }
	.am-phero__text { width: auto; padding: 30px 22px 26px; }
	.am-crumbs ol { font-size: 13px; }
	.am-phero__title { font-size: 32px; }
	.am-phero__title--post { font-size: 26px; }
	.am-phero__desc { font-size: 15px; max-width: 360px; }
	.am-phero--post .am-meta { font-size: 13px; }
	.am-divider::before, .am-divider::after { width: 64px; }
	.am-divider img { width: 18px; }

	.am-chips ul { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; scrollbar-width: none; }
	.am-chips ul::-webkit-scrollbar { display: none; }
	.am-chip { height: 36px; font-size: 14px; white-space: nowrap; padding: 0 18px; }
	.am-list-area { background-size: 220% auto; background-position: center top; padding: 18px 0 26px; }
	.am-list--articles { margin-top: 18px; }
	.am-list { gap: 14px; }
	.am-card--article, .am-card--book { grid-template-columns: 1fr; padding: 18px; min-height: 0; border-radius: 12px; }
	.am-card__title { font-size: 18.5px; }
	.am-card__excerpt { font-size: 14.5px; line-height: 1.85; }
	.am-meta { font-size: 13px; gap: 6px 22px; }
	.am-meta .am-icon { width: 16px; height: 16px; }
	.am-badge { height: 26px; font-size: 12.5px; }
	.am-card--article .am-card__action, .am-card--book .am-card__action { margin: 14px 0 0; padding: 0; align-self: start; justify-self: start; display: block; }
	.am-card--article .am-btn, .am-card--book .am-btn { width: auto; padding: 0 22px; height: 40px; font-size: 14.5px; }
	.am-card--book { grid-template-columns: 40px 1fr; column-gap: 12px; }
	.am-card__num { width: 40px; height: 40px; font-size: 14px; margin: 0; }
	.am-card--book .am-card__body { padding: 0; }
	.am-card--book .am-card__action { grid-column: 1 / -1; }
	.am-card__deco { display: none; }
	.am-pagination { gap: 6px; margin-top: 22px; }
	.am-pagination__num, .am-pagination__arrow, .am-pagination__dots { min-width: 38px; height: 38px; font-size: 15px; border-radius: 8px; }

	/* book hero: picture (book on its pedestal) above, title block below */
	.am-bhero__media { aspect-ratio: auto !important; height: 64vw; }
	.am-bhero__bg { object-position: 0% 50%; }
	.am-bhero--composed .am-bhero__media--composed { aspect-ratio: auto; height: 64vw; }
	.am-bhero__cover { left: 50%; transform: translateX(-50%); width: 34vw; bottom: 20px; }
	.am-bhero__pedestal { width: 100%; }
	.am-bhero__text { position: static; width: auto; padding: 22px 22px 28px; background: var(--am-page-bg); }
	.am-bhero__series { font-size: 15px; gap: 14px; }
	.am-bhero__series::before, .am-bhero__series::after { width: 30px; }
	.am-bhero__title, .am-bhero__title.is-medium, .am-bhero__title.is-long { font-size: 34px; max-width: none; margin-top: 8px; }
	.am-bhero__subtitle { font-size: 18px; margin-top: 6px; }
	.am-bhero__desc { font-size: 15px; margin-top: 10px; }
	.am-bhero .am-divider { margin-top: 14px; }
	.am-bhero__actions .am-btn { height: 40px; font-size: 14px; padding: 0 20px; }
	.am-bhero__actions .am-icon { width: 16px; height: 16px; }

	.am-postbook { flex-direction: column; text-align: center; }
	.am-postnav { flex-direction: column; }
	.am-contact__row { grid-template-columns: 1fr; gap: 0; }
	.am-contact { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Editor previews */
.amal-editor-preview { pointer-events: none; }
.editor-styles-wrapper .am-hero .wp-block-cover__inner-container { pointer-events: auto; }
