/*
Theme Name: Asif Elkayam
Theme URI: https://asifelkayam.com/
Author: Asif Elkayam
Description: ערכת עיצוב בהתאמה אישית לאתר של אסיף אלקיים – ספרות, תקשורת, תודעה והשפעה. ערכת בלוקים, מותאמת RTL ו-WooCommerce.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Version: 0.3.1
License: Proprietary
Text Domain: asif-elkayam
*/

/* ---------- Base ---------- */
:root {
	--ae-ease: cubic-bezier(.2,.7,.1,1);
	--ae-ink: #0E1626; --ae-ink-700: #26324A; --ae-ink-500: #5B6478; --ae-ink-300: #C9CDD6;
	--ae-sand: #ECE8E1; --ae-paper: #F6F3EE; --ae-ember: #E4572E; --ae-ember-dark: #C23F17;
	--ae-champ: #E9DDC9; --ae-champ-deep: #B8976A; --ae-amber: #E7A33E; --ae-amber-dark: #8A5A10; --ae-studio: #3D6FB6; --ae-brass: #C9A66B; --ae-navy-2: #1B2740;
	--ae-gutter: clamp(20px, 5vw, 80px);
}
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "tnum" 0; }
:where(p, li) { text-wrap: pretty; }
:where(h1, h2, h3) { text-wrap: balance; letter-spacing: 0; }
img { height: auto; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ae-amber); outline-offset: 3px; }
.wp-site-blocks > * + * { margin-block-start: 0; }
main.wp-block-group { margin-block: 0; }

/* ---------- Sections & surfaces ---------- */
.ae-section { padding-block: clamp(80px, 9vw, 128px) !important; }
.ae-section--tight { padding-block: clamp(48px, 6vw, 72px) !important; }
.ae-dark { background: var(--ae-ink); color: var(--ae-paper); }
.ae-dark a:where(:not(.wp-element-button)) { color: var(--ae-amber); }
.ae-dark a:where(:not(.wp-element-button)):hover { color: var(--ae-paper); }
.ae-sand { background: var(--ae-sand); color: var(--ae-ink); }
.ae-paper { background: var(--ae-paper); color: var(--ae-ink); }
.ae-ember { background: var(--ae-ember); color: var(--ae-ink); }
.ae-ember a:where(:not(.wp-element-button)) { color: var(--ae-ink); }
.ae-blue { background: var(--ae-studio); color: var(--ae-paper); }
.ae-front { background: #0B1120; color: var(--ae-paper); }
.ae-front .ae-eyebrow { color: var(--ae-brass); }
.ae-brass { background: var(--ae-brass); color: #0B1120; }

/* ---------- Type ---------- */
.ae-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--ae-amber); margin: 0; }
.ae-paper .ae-eyebrow, .ae-sand .ae-eyebrow { color: var(--ae-amber-dark); }
.ae-ember .ae-eyebrow { color: var(--ae-ink); }
.ae-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--ae-ink-500); margin: 0; }
.ae-display, .ae-mega, .ae-h2 { font-family: var(--wp--preset--font-family--display); font-weight: 700; line-height: .82 !important; margin: 0; }
.ae-mega { font-size: var(--wp--preset--font-size--mega) !important; line-height: .78 !important; }
.ae-display { font-size: var(--wp--preset--font-size--h-1) !important; }
.ae-h2 { font-size: var(--wp--preset--font-size--h-2) !important; line-height: .85 !important; }
.ae-serif { font-family: var(--wp--preset--font-family--display); font-weight: 700; }
.ae-statement { font-family: var(--wp--preset--font-family--body); font-weight: 500; font-size: var(--wp--preset--font-size--quote); line-height: 1.28; margin: 0; }
.ae-lead { font-size: var(--wp--preset--font-size--lead); line-height: 1.7; font-weight: 300; max-width: 560px; }
.ae-muted { color: var(--ae-ink-700); }
.ae-dark .ae-muted { color: var(--ae-ink-300); }
.ae-accent { color: var(--ae-amber); }
.ae-paper .ae-accent, .ae-sand .ae-accent { color: var(--ae-ember-dark); }
.ae-num { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: clamp(48px, 6vw, 96px); line-height: .8; color: var(--ae-amber); margin: 0; }

/* ---------- Layout helpers ---------- */
.ae-row { display: flex !important; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: center; }
.ae-row--end { align-items: flex-end; }
.ae-row--start { align-items: flex-start; }
.ae-row > .ae-grow { flex: 1 1 520px; min-width: 0; }
.ae-row > .ae-side { flex: 1 1 380px; min-width: 0; }
.ae-row > .ae-narrow { flex: 0 1 220px; }
.ae-headrow { display: flex !important; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px) !important; }
.ae-stack { display: flex !important; flex-direction: column; gap: 22px; }
.ae-stack > * { margin: 0 !important; }

/* ---------- Header ---------- */
.ae-header { padding-block: 24px !important; position: relative; z-index: 20; }
.ae-header__inner { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.ae-logo { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 34px; line-height: 1; margin: 0; }
.ae-logo a { color: inherit; text-decoration: none; }
.ae-header .wp-block-navigation { font-size: 15px; font-weight: 500; gap: 30px; }
.ae-header .wp-block-navigation a { text-decoration: none; }
.ae-header .wp-block-navigation .current-menu-item > a, .ae-header .wp-block-navigation a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ae-amber); }
.ae-header--dark { background: var(--ae-ink); color: var(--ae-paper); }
.ae-header--dark a { color: var(--ae-paper); }
.ae-header .wp-block-button__link { font-size: 15px; padding: 12px 22px; }
.ae-header--dark .wp-block-navigation__responsive-container.is-menu-open { background: var(--ae-ink); color: var(--ae-paper); }

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link { transition: background-color .3s var(--ae-ease), color .3s var(--ae-ease); }
.is-style-ae-dark .wp-block-button__link { background: var(--ae-ink); color: var(--ae-paper); }
.is-style-ae-dark .wp-block-button__link:hover { background: var(--ae-ember); color: var(--ae-ink); }
.is-style-ae-outline .wp-block-button__link { background: transparent; color: currentColor; box-shadow: inset 0 0 0 2px currentColor; }
.is-style-ae-outline .wp-block-button__link:hover { background: currentColor; }
.is-style-ae-outline .wp-block-button__link:hover { color: inherit; filter: invert(1); }
.is-style-ae-amber .wp-block-button__link { background: var(--ae-amber); color: var(--ae-ink); }
.is-style-ae-whatsapp .wp-block-button__link { background: #1F8A4C; color: #fff; }
.ae-bars { display: flex !important; flex-direction: column; gap: 12px; flex: 0 1 340px; }
.ae-bars .wp-block-button, .ae-bars .wp-block-button__link { width: 100%; }
.ae-bars .wp-block-button__link { border-radius: 0; display: flex; justify-content: space-between; text-align: start; font-weight: 600; padding: 18px 24px; }
.ae-bars .wp-block-button__link::after { content: "←"; }

/* ---------- Home hero ---------- */
.ae-hero { position: relative; overflow: hidden; min-height: min(900px, 100svh); display: flex !important; flex-direction: column; justify-content: flex-end; }
.ae-hero__media { position: absolute !important; inset-block: 0; inset-inline-end: 0; width: 46%; min-width: 320px; margin: 0 !important; z-index: 0; background: var(--ae-navy-2); }
.ae-hero__media img { width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 20%; }
.ae-hero__content { position: relative; z-index: 1; padding-bottom: clamp(56px, 7vw, 88px) !important; }
.ae-dots { display: flex !important; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 15px; font-weight: 600; color: var(--ae-amber); margin: 0 0 24px; }
.ae-dots span + span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ae-ember); margin-inline-end: 14px; vertical-align: middle; }
@media (max-width: 781px) {
	.ae-hero { min-height: 0; }
	.ae-hero__media { position: relative !important; width: auto; height: 62vh; inset: auto; margin-inline: calc(var(--ae-gutter) * -1) !important; order: -1; }
}

/* ---------- Photo hero (landing) ---------- */
.ae-photohero { position: relative; overflow: hidden; min-height: 820px; display: flex !important; flex-direction: column; justify-content: flex-end; }
.ae-photohero > .ae-photohero__bg { position: absolute !important; inset: 0; margin: 0 !important; z-index: 0; }
.ae-photohero > .ae-photohero__bg img { width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 35%; }
.ae-photohero::before { content: ""; position: absolute; inset: 0; background: rgba(14,22,38,.55); z-index: 1; }
.ae-photohero > *:not(.ae-photohero__bg) { position: relative; z-index: 2; }

/* ---------- Media strip ---------- */
.ae-strip { display: flex !important; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; padding-block: 26px !important; }
.ae-strip p { margin: 0; font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 34px; line-height: 1; }
.ae-strip p.ae-label { font-family: inherit; font-size: 13px; font-weight: 500; }

/* ---------- Cards ---------- */
.ae-cards { display: flex !important; flex-wrap: wrap; gap: 24px; }
.ae-cards > * { margin: 0 !important; }
.ae-card { position: relative; overflow: hidden; display: flex !important; flex-direction: column; justify-content: space-between; padding: clamp(28px, 3vw, 40px) !important; min-height: 420px; flex: 1 1 340px; text-decoration: none; }
.ae-card--wide { flex: 7 1 560px; min-height: 560px; }
.ae-card--tall { flex: 5 1 400px; min-height: 560px; }
.ae-card > * { margin: 0 !important; position: relative; z-index: 1; }
.ae-card__title { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: clamp(40px, 5vw, 72px); line-height: .9; }
.ae-card__quote { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; }
.ae-card--photo { padding: 0 !important; justify-content: flex-end; background: var(--ae-ink); }
.ae-card--photo > .wp-block-image { position: absolute !important; inset: 0; z-index: 0; }
.ae-card--photo > .wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .6s var(--ae-ease); }
.ae-card--photo:hover > .wp-block-image img { transform: scale(1.03); }
.ae-card--photo .ae-card__label { background: var(--ae-ink); color: var(--ae-paper); padding: 20px 24px !important; margin: 0 28px 28px 0 !important; max-width: 400px; align-self: flex-start; }
.ae-card--photo .ae-card__label > * { margin: 0; }
.ae-card--line { border-top: 6px solid var(--ae-amber); }
.ae-card a.ae-cover-link { position: absolute; inset: 0; z-index: 2; }

/* ---------- Lists: steps, milestones ---------- */
.ae-steps { list-style: none; margin: 0 !important; padding: 0 !important; counter-reset: ae; flex: 2 1 620px; }
.ae-steps > li { counter-increment: ae; display: grid; grid-template-columns: 80px 1fr; gap: 6px 28px; padding: 28px 0; border-top: 1px solid currentColor; }
.ae-steps > li:last-child { border-bottom: 1px solid currentColor; }
.ae-steps > li::before { content: counter(ae, decimal-leading-zero); grid-row: span 2; font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 60px; line-height: .8; color: var(--ae-amber); }
.ae-sand .ae-steps > li::before, .ae-paper .ae-steps > li::before { color: #C27A12; }
.ae-steps > li strong { font-size: 24px; font-weight: 600; display: block; }
.ae-steps > li span { color: var(--ae-ink-700); font-size: 17px; }
.ae-dark .ae-steps > li span { color: var(--ae-ink-300); }
.ae-miles { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid currentColor; gap: 0 !important; }
.ae-miles > * { margin: 0 !important; padding: 26px 0; border-bottom: 1px solid var(--ae-ink-300); padding-inline-end: 24px !important; }
.ae-miles strong { display: block; font-family: var(--wp--preset--font-family--display); font-size: 52px; line-height: .9; }
.ae-miles span { font-size: 15px; color: var(--ae-ink-700); }

/* ---------- Feed (updates) ---------- */
.ae-feed .wp-block-post-template { gap: 20px; }
.ae-feed .wp-block-post { display: flex; flex-direction: column; gap: 12px; }
.ae-feed .wp-block-post-featured-image { margin: 0; aspect-ratio: 16/9; overflow: hidden; background: var(--ae-navy-2); }
.ae-feed--reels .wp-block-post-featured-image { aspect-ratio: 9/16; max-height: 520px; }
.ae-feed .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ae-ease); }
.ae-feed .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.ae-feed .wp-block-post-terms { font-size: 13px; font-weight: 600; color: var(--ae-amber); }
.ae-feed .wp-block-post-terms a { color: inherit; text-decoration: none; }
.ae-feed .wp-block-post-title { font-family: var(--wp--preset--font-family--body); font-size: 20px; font-weight: 600; line-height: 1.4; margin: 0; }
.ae-feed .wp-block-post-title a { color: inherit; text-decoration: none; }
.ae-feed .wp-block-post-date { font-size: 13px; color: var(--ae-ink-500); }

/* ---------- Quotes & testimonials ---------- */
.ae-quote { margin: 0 !important; display: flex !important; flex-direction: column; gap: 16px; padding: 28px !important; background: var(--ae-sand); }
.ae-quote p { font-family: var(--wp--preset--font-family--body); font-weight: 500; font-size: 20px; line-height: 1.5; margin: 0; }
.ae-quote cite, .ae-quote .ae-cite { font-style: normal; font-size: 13px; font-weight: 600; color: var(--ae-amber-dark); }
.ae-dark .ae-quote { background: var(--ae-navy-2); }
.ae-dark .ae-quote cite { color: var(--ae-amber); }

/* ---------- FAQ ---------- */
.ae-faq { flex: 2 1 620px; }
.ae-faq .wp-block-details { border-top: 1px solid currentColor; padding: 24px 0; margin: 0; }
.ae-faq .wp-block-details:last-child { border-bottom: 1px solid currentColor; }
.ae-faq summary { font-size: 22px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.ae-faq summary::-webkit-details-marker { display: none; }
.ae-faq summary::after { content: "+"; font-weight: 400; transition: transform .3s var(--ae-ease); }
.ae-faq details[open] summary::after { transform: rotate(45deg); }
.ae-faq details p { color: var(--ae-ink-700); margin: 14px 0 0; }

/* ---------- Book stack / covers ---------- */
.ae-covers { display: flex !important; gap: 16px; align-items: flex-end; flex-wrap: nowrap !important; }
.ae-covers > .wp-block-image { flex: 1; min-width: 0; margin: 0; }
.ae-covers img, .ae-cover img { aspect-ratio: 2/3; object-fit: cover; width: 100%; box-shadow: 0 30px 50px -24px rgba(14,22,38,.45); }
.ae-covers > .wp-block-image:nth-child(2) { margin-bottom: 48px; }

/* ---------- WooCommerce ---------- */
.woocommerce ul.products, .wc-block-grid__products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 40px 32px; margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; display: flex; flex-direction: column; gap: 10px; }
.woocommerce ul.products li.product img { aspect-ratio: 2/3; object-fit: cover; margin: 0 0 6px !important; box-shadow: 0 30px 50px -24px rgba(14,22,38,.45); transition: transform .6s var(--ae-ease); }
.woocommerce ul.products li.product:hover img { transform: scale(1.02); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--wp--preset--font-family--body); font-size: 20px !important; font-weight: 600; padding: 0 !important; color: var(--ae-ink); }
.woocommerce ul.products li.product .price { color: var(--ae-ink) !important; font-size: 17px !important; }
.woocommerce ul.products li.product .price del { color: var(--ae-ink-500); opacity: 1; }
.woocommerce ul.products li.product .button, .woocommerce a.button, .woocommerce button.button, .woocommerce .button.alt, .wc-block-components-button:not(.is-link) {
	background: var(--ae-ink) !important; color: var(--ae-paper) !important; border-radius: 999px !important; font-weight: 600 !important; padding: 14px 24px !important; font-family: var(--wp--preset--font-family--body) !important; align-self: flex-start;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .wc-block-components-button:not(.is-link):hover { background: var(--ae-ember) !important; color: var(--ae-ink) !important; }
.woocommerce span.onsale { background: var(--ae-ember); color: var(--ae-ink); border-radius: 999px; min-height: 0; min-width: 0; padding: 4px 12px; line-height: 1.6; font-weight: 700; }
.woocommerce div.product .product_title { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: clamp(40px, 5vw, 64px); line-height: 1.1; }
.woocommerce div.product p.price { color: var(--ae-ink); font-size: 28px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--ae-amber); }

/* ---------- Forms ---------- */
.ae-form { display: flex; flex-direction: column; gap: 22px; flex: 1 1 520px; }
.ae-form__row { display: flex; flex-wrap: wrap; gap: 20px; }
.ae-form label { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.ae-form input:not([type=radio]), .ae-form textarea, .ae-form select { background: transparent; border: 0; border-bottom: 1px solid currentColor; color: inherit; font: inherit; font-size: 18px; font-weight: 400; padding: 10px 0; border-radius: 0; }
.ae-form input:focus, .ae-form textarea:focus { outline: none; border-bottom-width: 2px; border-color: var(--ae-amber); }
.ae-form .ae-topics { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.ae-form .ae-topics label { flex: 0 0 auto; flex-direction: row; align-items: center; border: 1px solid currentColor; padding: 10px 18px; border-radius: 999px; font-weight: 500; cursor: pointer; }
.ae-form .ae-topics label:has(input:checked) { background: var(--ae-ember); border-color: var(--ae-ember); color: var(--ae-ink); }
.ae-form button { align-self: flex-start; background: var(--ae-ember); color: var(--ae-ink); border: 0; padding: 16px 32px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; }
.ae-ember .ae-form button { background: var(--ae-ink); color: var(--ae-paper); }
.ae-form .ae-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ae-form__ok { font-weight: 600; color: var(--ae-amber); }

/* ---------- WhatsApp float ---------- */
.ae-wa { position: fixed; bottom: 24px; left: 24px; width: 60px; height: 60px; border-radius: 50%; background: #1F8A4C; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px -10px rgba(14,22,38,.5); z-index: 50; }
.ae-wa svg { width: 26px; height: 26px; }

/* ---------- Footer ---------- */
.ae-footer { padding-block: 40px !important; font-size: 14px; }
.ae-footer__inner { display: flex !important; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.ae-footer a { color: var(--ae-ink-300); text-decoration: none; }
.ae-footer a:hover { color: var(--ae-paper); }
.ae-footer .wp-block-navigation { gap: 24px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
	.ae-js .ae-reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ae-ease), transform .7s var(--ae-ease); }
	.ae-js .ae-reveal.is-in { opacity: 1; transform: none; }
	@view-transition { navigation: auto; }
	::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
}

/* ---------- Front ("eight lines") ---------- */
.ae-lines { display: flex !important; gap: 14px; align-items: flex-end; height: 120px; margin: 0 0 32px !important; }
.ae-lines span { width: 6px; background: #2A3550; display: block; }
.ae-lines span:last-child { background: var(--ae-brass); }

/* ---------- Video interlude ---------- */
.ae-interlude { position: relative; overflow: hidden; min-height: 70vh; display: flex !important; align-items: center; }
.ae-interlude video, .ae-interlude > .wp-block-image { position: absolute !important; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0 !important; }
.ae-interlude > .wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; }
.ae-interlude::before { content: ""; position: absolute; inset: 0; background: rgba(14,22,38,.6); z-index: 1; }
.ae-interlude > :not(video):not(.wp-block-image) { position: relative; z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
	.ae-interlude > .wp-block-image img { animation: ae-kenburns 24s ease-in-out infinite alternate; }
}
@keyframes ae-kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }

/* ---------- v0.1 additions (block-markup friendly variants) ---------- */
.ae-dots { color: var(--ae-amber); letter-spacing: .02em; }
.ae-steps > li { color: var(--ae-ink-700); font-size: 17px; }
.ae-dark .ae-steps > li, .ae-ember .ae-steps > li { color: var(--ae-ink-300); }
.ae-ember .ae-steps > li { color: var(--ae-ink); }
.ae-steps > li strong { color: var(--ae-ink); }
.ae-dark .ae-steps > li strong { color: var(--ae-paper); }
ul.ae-miles { list-style: none; padding: 0 !important; margin: 0 !important; }
.ae-miles > li { font-size: 15px; color: var(--ae-ink-700); }
.ae-dark .ae-miles > li { color: var(--ae-ink-300); border-color: var(--ae-ink-700); }
.ae-dark .ae-miles strong { color: var(--ae-paper); }
.ae-feed .ae-src { color: var(--ae-ink-500); font-weight: 500; }
.ae-dark .ae-feed .wp-block-post-date, .ae-dark .ae-feed .ae-src { color: var(--ae-ink-300); }
.ae-embed { aspect-ratio: 16/9; margin-bottom: 32px; }
.ae-embed iframe { width: 100%; height: 100%; }
.ae-interlude > .wp-block-video { position: absolute !important; inset: 0; margin: 0 !important; }
.ae-interlude > .wp-block-video video { width: 100%; height: 100%; object-fit: cover; }
.ae-interlude > .wp-block-video figcaption { display: none; }
.ae-tabs { display: flex !important; flex-wrap: wrap; gap: 10px; margin-bottom: 40px !important; }
.ae-tabs .wp-block-button__link { background: transparent; color: currentColor; box-shadow: inset 0 0 0 1px currentColor; padding: 10px 20px; font-weight: 500; font-size: 15px; }
.ae-tabs .wp-block-button.is-active .wp-block-button__link, .ae-tabs .wp-block-button__link:hover { background: var(--ae-ink); color: var(--ae-paper); box-shadow: none; }
.ae-dark .ae-tabs .wp-block-button.is-active .wp-block-button__link, .ae-dark .ae-tabs .wp-block-button__link:hover { background: var(--ae-paper); color: var(--ae-ink); }
.ae-speakers { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 32px; list-style: none; padding: 0 !important; margin: 0 !important; border-top: 1px solid var(--ae-brass); }
.ae-speakers > li { padding: 20px 0; border-bottom: 1px solid #2A3550; font-size: 20px; font-weight: 600; }
.ae-episodes { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.ae-episodes > * { margin: 0 !important; border-top: 2px solid var(--ae-brass); padding-top: 20px !important; }
.ae-episodes .ae-num { color: var(--ae-brass); font-size: 64px; }
.ae-page-title { padding-block: clamp(56px, 7vw, 96px) 24px !important; }
.ae-prose { max-width: 760px; }
.ae-prose > * + * { margin-top: 1.1em; }
.wp-block-post-content.ae-prose a { color: var(--ae-ember-dark); }
.ae-logos { display: flex !important; flex-wrap: wrap; gap: 16px 48px; align-items: center; }
.ae-logos p { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 40px; line-height: 1; color: var(--ae-ink-500); }
.ae-video-ph { aspect-ratio: 16/9; background: var(--ae-navy-2); display: flex !important; align-items: center; justify-content: center; color: var(--ae-ink-300); padding: 24px !important; text-align: center; }
.ae-video-ph:has(> figure) { padding: 0 !important; overflow: hidden; }
.ae-video-ph > figure { margin: 0; width: 100%; height: 100%; }
.ae-video-ph > figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ae-bundle { display: flex !important; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; padding: clamp(32px, 4vw, 56px) !important; }
.wp-block-shortcode:empty { display: none; }
@media (max-width: 781px) {
	.ae-header .wp-block-buttons { display: none; }
	.ae-covers > .wp-block-image:nth-child(2) { margin-bottom: 24px; }
}
.ae-ltr { direction: ltr; text-align: left; }
.ae-ltr .ae-bars .wp-block-button__link::after { content: "→"; }
.ae-cardlink a { font-weight: 600; text-decoration: none; }
.ae-card__title a, .ae-card__label a, .ae-front a:where(:not(.wp-element-button)), .ae-blue a:where(:not(.wp-element-button)) { color: inherit; text-decoration: none; }
.ae-card__title a:hover, .ae-card__label a:hover { text-decoration: underline; text-underline-offset: 6px; }
.ae-cardlink a { text-decoration: underline; text-underline-offset: 4px; }
.ae-bundle .add_to_cart_inline { border: 0 !important; padding: 0 !important; margin: 0 !important; display: flex; align-items: center; gap: 20px; font-size: 22px; font-weight: 700; }
.ae-bundle .add_to_cart_inline .button { background: var(--ae-ink) !important; color: var(--ae-paper) !important; }
.ae-blue .ae-eyebrow { color: var(--ae-paper); opacity: .85; }
.ae-front .ae-muted, .ae-blue .ae-muted, .ae-brass .ae-muted { color: var(--ae-ink-300); }
.ae-brass .ae-muted, .ae-brass .ae-label { color: #3A2E14; }
.ae-card--photo .ae-card__label { margin: 0 !important; margin-inline-start: 28px !important; margin-block-end: 28px !important; }
.ae-card--photo .ae-card__label h3, .ae-card--photo .ae-card__label h2 { font-size: 26px; }
h1.wp-block-heading.ae-serif { line-height: .95 !important; font-size: clamp(64px, 8vw, 120px) !important; }
h2.wp-block-heading.ae-serif { font-size: clamp(40px, 5vw, 72px); line-height: .95; }
.wp-block-post-content > *, .wp-block-post-content > * + * { margin-block: 0 !important; }
.ae-photohero > .ae-photohero__bg, .ae-interlude > .wp-block-image, .ae-interlude > .wp-block-video, .ae-hero > .ae-hero__media { max-width: none !important; margin: 0 !important; }
@media (max-width: 781px) { .ae-hero > .ae-hero__media { margin-inline: calc(var(--ae-gutter) * -1) !important; height: 62vh; } }
.ae-photohero > .ae-photohero__bg, .ae-interlude > .wp-block-image, .ae-interlude > .wp-block-video { width: 100% !important; }
.ae-contactlist { list-style: none; padding: 0 !important; margin: 0 !important; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.ae-contactlist li { display: flex; gap: 12px; align-items: baseline; }
.ae-contactlist strong { color: var(--ae-amber); font-weight: 600; min-width: 90px; }
.ae-contactlist a { color: inherit !important; text-decoration: none; }
.ae-form .ae-topics input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ae-form .ae-topics label:has(input:focus-visible) { outline: 2px solid var(--ae-amber); outline-offset: 2px; }
.ae-form textarea { min-height: 120px; }
.ae-form > label { flex: none; }
@media (min-width: 782px) {
	.ae-hero__content > * { max-width: calc(54vw - var(--ae-gutter) - 40px) !important; margin-inline-start: 0 !important; margin-inline-end: auto !important; }
	.ae-hero .ae-mega { font-size: clamp(96px, 13vw, 220px) !important; }
}
.ae-hero > .ae-hero__content, .ae-photohero > .ae-stack { width: 100%; box-sizing: border-box; }

/* ---------- Media (v0.1.3) ---------- */
.ae-reel { margin: 0 !important; aspect-ratio: 9/16; background: #000; overflow: hidden; border-radius: 4px; max-width: 360px; width: 100%; }
.ae-reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ae-reels { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; align-items: start; }
.ae-reels > * { max-width: none; }
.ae-reels .ae-reelcap { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--ae-ink-300); }
.ae-wide-video { margin: 0 !important; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.ae-wide-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ae-photo { margin: 0 !important; overflow: hidden; }
.ae-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ae-duo { display: grid !important; grid-template-columns: 1.35fr 1fr; gap: 12px; align-items: stretch; }
.ae-duo .ae-photo { aspect-ratio: 4/5; }
.ae-grid3 { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ae-grid3 .ae-photo { aspect-ratio: 4/5; }
.ae-media-row { display: grid !important; grid-template-columns: 2fr 1fr; gap: 12px; align-items: stretch; }
.ae-media-row .ae-stack-photos { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.ae-media-row .ae-photo { height: 100%; }
@media (max-width: 781px) { .ae-media-row, .ae-duo { grid-template-columns: 1fr; } .ae-grid3 { grid-template-columns: 1fr 1fr; } .ae-reel { max-width: none; } }

/* Press & video cards */
.ae-press { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.ae-presscard { display: flex !important; flex-direction: column; gap: 14px; padding: 28px !important; background: var(--ae-paper); border-top: 3px solid var(--ae-ink); text-decoration: none; }
.ae-presscard .ae-label { color: var(--ae-amber-dark); }
.ae-presscard .ae-presshead { font-family: var(--wp--preset--font-family--body); font-size: 24px; line-height: 1.35; margin: 0; }
.ae-presscard .ae-presshead a { color: inherit; text-decoration: none; }
.ae-presscard .ae-presshead a::after { content: ""; position: absolute; inset: 0; }
.ae-presscard { position: relative; transition: transform .3s var(--ae-ease), box-shadow .3s var(--ae-ease); }
.ae-presscard:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(14,22,38,.12); }
.ae-yt { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ae-ytcard { position: relative; margin: 0 !important; }
.ae-ytcard .ae-ytthumb { margin: 0; aspect-ratio: 16/9; overflow: hidden; background: #000; position: relative; }
.ae-ytcard .ae-ytthumb a { display: block; height: 100%; }
.ae-ytcard img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ae-ease); }
.ae-ytcard .ae-ytthumb::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 56px; height: 56px; transform: translate(-50%,-50%); border-radius: 50%; background: rgba(228,87,46,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/26px no-repeat; }
.ae-ytcard:hover img { transform: scale(1.04); }
.ae-ytcard p:not(.ae-ytthumb) { margin: 10px 0 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.ae-ytcard p:not(.ae-ytthumb):not(.ae-label) a { color: inherit; text-decoration: none; }
.ae-ytcard p:not(.ae-ytthumb):not(.ae-label) a::after { content: ""; position: absolute; inset: 0; }
.ae-ytcard .ae-label { margin-top: 4px; }
@media (max-width: 781px) { .ae-yt { grid-template-columns: 1fr; } }

/* Testimonials grid */
.ae-tgrid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .ae-tgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ae-tgrid { grid-template-columns: 1fr; } }
.ae-tcard { margin: 0 !important; padding: 32px 28px 26px !important; background: var(--ae-navy-2); display: flex !important; flex-direction: column; gap: 18px; position: relative; border: 0 !important; }
.ae-tcard::before { content: "״"; font-family: var(--wp--preset--font-family--display); font-size: 96px; line-height: .7; color: var(--ae-amber); height: 34px; }
.ae-tcard p { font-family: var(--wp--preset--font-family--body); font-weight: 500; font-size: 18px; line-height: 1.6; margin: 0; color: var(--ae-paper); }
.ae-tcard cite { margin-top: auto; font-style: normal; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--ae-paper); }
.ae-tcard cite .ae-av { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--ae-ember); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.ae-tcard cite .ae-who { display: flex; flex-direction: column; gap: 2px; }
.ae-tcard cite small { display: block; font-weight: 400; color: var(--ae-ink-300); font-size: 12px; }

/* Carousel */
.ae-carousel { position: relative; }
.ae-carousel__track { display: flex !important; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.ae-carousel__track::-webkit-scrollbar { display: none; }
.ae-carousel__track > figure { flex: none; margin: 0 !important; height: clamp(320px, 52vh, 560px); scroll-snap-align: center; overflow: hidden; border-radius: 4px; }
.ae-carousel__track > figure img { height: 100%; width: auto; max-width: none; display: block; transition: transform .8s var(--ae-ease), filter .6s; filter: saturate(.92); }
.ae-carousel__track > figure:hover img { transform: scale(1.03); filter: none; }
.ae-carousel__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.ae-carousel__btns { display: flex; gap: 10px; }
.ae-carousel__btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.ae-carousel__btn:hover { background: var(--ae-ink); color: var(--ae-paper); }
.ae-dark .ae-carousel__btn:hover { background: var(--ae-paper); color: var(--ae-ink); }
.ae-carousel__btn svg { width: 22px; height: 22px; }
.ae-carousel__bar { flex: 1; height: 2px; background: rgba(127,127,127,.3); position: relative; overflow: hidden; max-width: 420px; }
.ae-carousel__bar span { position: absolute; inset: 0 0 0 auto; width: 20%; background: var(--ae-ember); transition: width .3s, right .3s; }

.ae-ytthumb::after { pointer-events: none; }
.ae-grid2 { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; }
.ae-grid2 .ae-photo { aspect-ratio: 3/2; }
.ae-jczc { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 300px) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.ae-jczc .ae-reel { max-width: none; }
.ae-jczc .ae-photo { height: 100%; }
@media (max-width: 781px) { .ae-grid2, .ae-jczc { grid-template-columns: 1fr; } .ae-jczc .ae-photo { aspect-ratio: 4/5; } }
.ae-reelwrap { display: flex !important; flex-direction: column; align-items: center; gap: 12px; }
.ae-row > .ae-reelwrap { flex: 0 1 340px; }

/* ---------- Topic colours (v0.1.4): books = ember, chuppot = champagne, lectures = amber, media = studio blue, front = navy/brass ---------- */
.ae-champ { background: var(--ae-champ); color: var(--ae-ink); }
.ae-champ a:where(:not(.wp-element-button)) { color: var(--ae-ink); }
.ae-champ .ae-eyebrow { color: #7A5B2E; }
.ae-champ .ae-accent { color: #8A6430; }
.ae-amberbg { background: var(--ae-amber); color: var(--ae-ink); }
.ae-amberbg a:where(:not(.wp-element-button)) { color: var(--ae-ink); }
.ae-amberbg .ae-eyebrow { color: var(--ae-ink); }
.ae-champ .ae-form button, .ae-amberbg .ae-form button { background: var(--ae-ink); color: var(--ae-paper); }
.ae-champ .ae-form .ae-topics label:has(input:checked), .ae-champ .ae-form .ae-topics label:has(input:checked) { background: var(--ae-ink); border-color: var(--ae-ink); color: var(--ae-paper); }
.is-style-ae-champ .wp-block-button__link { background: var(--ae-champ); color: var(--ae-ink); }
.is-style-ae-champ .wp-block-button__link:hover { background: var(--ae-paper); color: var(--ae-ink); }
.ae-tcard cite .ae-av { background: var(--ae-champ); color: var(--ae-ink); }
.ae-champ-page .ae-carousel__bar span { background: var(--ae-champ-deep); }
.ae-playable { position: relative; }
.ae-playable a { display: block; height: 100%; }
.ae-play { position: absolute; inset: 50% auto auto 50%; width: 64px; height: 64px; transform: translate(-50%,-50%); border-radius: 50%; background: rgba(14,22,38,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/28px no-repeat; border: 1.5px solid rgba(255,255,255,.7); backdrop-filter: blur(4px); transition: transform .3s var(--ae-ease), background-color .3s; pointer-events: none; }
.ae-playable:hover .ae-play { transform: translate(-50%,-50%) scale(1.08); background-color: rgba(228,87,46,.9); }
.ae-photo-side .ae-photo { aspect-ratio: 940/810; border-radius: 4px; }
.ae-miles > li:nth-child(5):nth-last-child(3) { grid-column: span 2; }
@media (max-width: 1000px) { .ae-miles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ae-miles > li:nth-child(5):nth-last-child(3) { grid-column: span 2; } }
@media (max-width: 560px) { .ae-miles { grid-template-columns: 1fr; } .ae-miles > li:nth-child(5):nth-last-child(3) { grid-column: auto; } }
.ae-measure { max-width: 760px; }
/* Eighth Front hero logo */
.ae-front-hero { position: relative; }
.ae-front-logo { position: absolute; top: clamp(48px, 7vw, 112px); inset-inline-end: var(--ae-gutter); width: min(36%, 460px); margin: 0 !important; z-index: 1; }
.ae-front-logo img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .ae-front-logo { position: static; width: min(78%, 340px); margin: 0 0 32px !important; } }
.ae-subhead { font-family: var(--wp--preset--font-family--body); font-size: clamp(16px, 1.6vw, 20px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ae-ink-300); margin: 14px 0 0; text-align: right; }
.ae-brass-line { margin: 0; text-align: center; }
.ae-brass .ae-hl { color: var(--ae-paper); background: #0B1120; padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
/* Lectures hero: photo melts into the page */
.ae-blend { align-self: stretch; }
.ae-row > .ae-blend { flex: 1 1 460px; }
.ae-blend figure { margin: 0 !important; height: 100%; min-height: 520px; }
.ae-blend img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; display: block;
	-webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 80%, transparent 100%);
	-webkit-mask-composite: source-in; mask-image: linear-gradient(to right, #000 55%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 80%, transparent 100%); mask-composite: intersect; }
@media (max-width: 781px) { .ae-blend figure { min-height: 0; aspect-ratio: 4/5; } .ae-blend img { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); } }
/* Line cards: titles and texts start on one line regardless of title length */
.ae-card--line { justify-content: flex-start !important; gap: 22px; min-height: 0 !important; }
.ae-card--line h3 { min-height: 2em; display: flex; align-items: flex-start; }
.ae-card--line .ae-label:last-child { margin-top: auto !important; }
@media (max-width: 781px) { .ae-card--line h3 { min-height: 0; } }
/* Video hero (chuppot) */
.ae-photohero > .ae-photohero__bg video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.ae-photohero::before { background: linear-gradient(180deg, rgba(14,22,38,.45) 0%, rgba(14,22,38,.6) 55%, rgba(14,22,38,.85) 100%); }
@media (max-width: 781px) { .ae-photohero { min-height: 100svh; } }
.ae-social { gap: 14px !important; margin: 0 !important; }
.ae-social .wp-social-link { transition: transform .2s var(--ae-ease), opacity .2s; opacity: .85; }
.ae-social .wp-social-link:hover { transform: translateY(-2px); opacity: 1; }
.ae-social .wp-social-link svg { width: 26px; height: 26px; }
.ae-social .wp-block-social-link-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ae-cards--4 { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .ae-cards--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ae-cards--4 { grid-template-columns: 1fr; } }

/* v0.1.4 */
.ae-accent--champ { color: #A27B48 !important; }
.ae-photohero .ae-accent--champ, .ae-dark .ae-accent--champ, .has-ink-background-color .ae-accent--champ { color: #E9DDC9 !important; }
.ae-carousel:has(img[src*="chuppa"]) .ae-carousel__bar span, .ae-carousel:has(img[src*="chuppa"]) .ae-carousel__bar::after { background: #A27B48 !important; }
.ae-photohero:has(video)::before { background: linear-gradient(270deg, rgba(14,22,38,.72) 0%, rgba(14,22,38,.42) 45%, rgba(14,22,38,.12) 100%); }
@media (max-width: 781px) { .ae-photohero:has(video)::before { background: linear-gradient(180deg, rgba(14,22,38,.15) 0%, rgba(14,22,38,.35) 45%, rgba(14,22,38,.8) 100%); } }
.ae-nowrap { white-space: nowrap; }
@media (max-width: 600px) { .ae-pipe { display: none; } .ae-pipe + .ae-accent { display: block; } }
.ae-brass-line .ae-hl { display: inline; }
.ae-paper-cover { background: radial-gradient(120% 90% at 50% 0%, #1B2A4A 0%, #0B1120 70%) !important; border-top: 4px solid var(--ae-brass, #C7A26A); justify-content: space-between; gap: 24px; text-align: center; align-items: center; }
.ae-paper-cover .ae-paper-logo { margin: 8px auto 0 !important; width: 78%; max-width: 360px; }
.ae-paper-cover .ae-paper-logo img { width: 100%; height: auto; box-shadow: none !important; }
.ae-paper-cover .ae-card__title { font-size: clamp(22px, 2.2vw, 30px) !important; line-height: 1.15; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { line-height: 1.35 !important; }
@media (max-width: 781px) { .ae-grid3 > :nth-child(3):last-child { grid-column: 1 / -1; aspect-ratio: 16/10; } }

/* ===== v0.1.5 ===== */
/* Statements: display face everywhere */
.ae-statement { font-family: var(--wp--preset--font-family--display) !important; font-weight: 700 !important; font-size: clamp(34px, 4.2vw, 62px) !important; line-height: 1.08 !important; letter-spacing: 0; }

/* Home hero: text sits on the photo */
.ae-hero__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.ae-hero__content { text-shadow: 0 2px 24px rgba(14,22,38,.55); }
@media (min-width: 782px) {
	.ae-hero__media { width: 60%; }
	.ae-hero__media::after { background: linear-gradient(to right, rgba(14,22,38,0) 30%, rgba(14,22,38,.55) 70%, var(--ae-ink) 100%), linear-gradient(to top, rgba(14,22,38,.45), rgba(14,22,38,0) 40%); }
}
@media (max-width: 781px) {
	.ae-hero { min-height: calc(100svh - 64px); justify-content: flex-end; }
	.ae-hero > .ae-hero__media { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; margin: 0 !important; order: 0; }
	.ae-hero__media img { object-position: 50% 15%; }
	.ae-hero__media::after { background: linear-gradient(to bottom, rgba(14,22,38,.05) 0%, rgba(14,22,38,.15) 35%, rgba(14,22,38,.72) 62%, rgba(14,22,38,.94) 100%); }
	.ae-hero__content { padding-top: 38vh !important; padding-bottom: 40px !important; }
	.ae-hero__content .ae-muted { color: #E4E7EE !important; }
}

/* "בתקשורת" strip */
@media (max-width: 781px) {
	.ae-strip { display: grid !important; grid-template-columns: 1fr 1fr; gap: 14px 20px; justify-items: start; padding-block: 28px !important; }
	.ae-strip p.ae-label { grid-column: 1 / -1; font-size: 14px; letter-spacing: .02em; margin-bottom: 4px !important; }
	.ae-strip p:not(.ae-label) { font-size: 26px; }
}

/* Cards: background photo (mobile), logo, quotes */
.ae-card__bg { display: none !important; }
.ae-card__logo { width: min(260px, 70%); margin-bottom: 18px !important; }
.ae-card__logo img { width: 100%; height: auto; display: block; }
.ae-card__big { font-family: var(--wp--preset--font-family--display); font-size: clamp(40px, 4vw, 56px) !important; line-height: 1 !important; }
.ae-card__sub { font-size: 18px; font-weight: 600; margin-top: 8px !important; }
.ae-card__pq { font-size: 19px; font-weight: 600; line-height: 1.45; }
.ae-card__pq a { color: inherit; text-decoration: none; }
.ae-card__src { width: 120px; margin-top: 16px !important; }
.ae-card__src img { width: 100%; height: auto; display: block; filter: brightness(0) invert(1); opacity: .9; }
.ae-card--photo .ae-card__label .ae-eyebrow + .ae-card__pq { margin-top: 10px !important; }

@media (max-width: 781px) {
	.ae-card--photo { min-height: 540px !important; }
	.ae-card--photo::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to bottom, rgba(14,22,38,0) 30%, rgba(14,22,38,.55) 60%, rgba(14,22,38,.92) 100%); pointer-events: none; }
	.ae-card--photo .ae-card__label { background: transparent !important; margin: 0 !important; padding: 24px !important; max-width: none !important; align-self: stretch !important; position: relative; z-index: 1; text-shadow: 0 2px 18px rgba(14,22,38,.6); }
	.ae-card--lecture > .wp-block-image img { object-position: 65% 18%; }
	.ae-card--lecture .ae-card__big { font-size: 64px !important; }
	.ae-card--books > .wp-block-image img { object-position: 50% 20%; }
	.ae-card__bg { display: block !important; position: absolute !important; inset: 0; margin: 0 !important; z-index: 0 !important; }
	.ae-card__bg img { width: 100%; height: 100% !important; object-fit: cover; }
	.ae-card:has(> .ae-card__bg)::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
	.ae-blue:has(> .ae-card__bg)::after { background: linear-gradient(to bottom, rgba(14,22,38,.55) 0%, rgba(24,44,86,.72) 45%, rgba(14,22,38,.94) 100%); }
	.ae-blue .ae-card__bg img { object-position: 50% 30%; }
	.ae-champ:has(> .ae-card__bg)::after { background: linear-gradient(to bottom, rgba(233,221,201,.45) 0%, rgba(233,221,201,.78) 45%, rgba(233,221,201,.96) 100%); }
	.ae-card:has(> .ae-card__bg) { min-height: 480px !important; }
	.ae-card > *:not(.ae-card__bg):not(.wp-block-image) { position: relative; z-index: 1; }
}

/* Feed: document covers are shown whole */
.ae-feed .ae-thumb-doc img { object-fit: contain !important; background: #F4F1EA; }
.ae-feed .wp-block-post-featured-image.ae-thumb-doc { background: #F4F1EA; }
.ae-cards--2x2 { display: grid !important; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 781px) { .ae-cards--2x2 { grid-template-columns: 1fr; } }

/* Press quotes */
.ae-pqs { display: grid !important; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 40px !important; }
.ae-pq { grid-column: span 2; background: var(--ae-paper); padding: 32px 30px 34px !important; display: flex !important; flex-direction: column; gap: 22px; position: relative; border-top: 3px solid var(--ae-ember); }
.ae-pq:nth-child(-n+2) { grid-column: span 3; }
.ae-pq > * { margin: 0 !important; }
.ae-pq__logo { height: 40px; display: flex; align-items: center; }
.ae-pq__logo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: right center; }
.ae-pq__text { font-size: 18px; line-height: 1.6; color: var(--ae-ink-500); }
.ae-pq__text strong { color: var(--ae-ink); font-weight: 700; }
.ae-pq:nth-child(-n+2) .ae-pq__text { font-size: 20px; }
@media (max-width: 1000px) { .ae-pqs { grid-template-columns: 1fr 1fr; } .ae-pq, .ae-pq:nth-child(-n+2) { grid-column: span 1; } .ae-pq:first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .ae-pqs { grid-template-columns: 1fr; gap: 14px; } .ae-pq, .ae-pq:first-child { grid-column: 1; } .ae-pq { padding: 26px 22px !important; } .ae-pq__logo { height: 34px; } }

/* Eighth Front: founders, paper cover, mobile tweaks */
.ae-founders { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; margin-top: 40px !important; }
.ae-founder { display: flex !important; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.ae-founder > * { margin: 0 !important; }
.ae-founder__ph { width: min(180px, 100%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(120% 100% at 50% 0%, #1B2A4A, var(--ae-ink) 70%); box-shadow: inset 0 0 0 3px var(--ae-brass); display: flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: clamp(40px, 4vw, 60px); color: var(--ae-brass); letter-spacing: .04em; }
.ae-founder__name { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 30px; line-height: 1.05; }
@media (max-width: 781px) { .ae-founders { grid-template-columns: 1fr 1fr; gap: 28px 16px; } .ae-founder__name { font-size: 26px; } }
.ae-paper-coverimg { margin: 0 !important; }
.ae-paper-coverimg img { width: 100%; height: auto; display: block; box-shadow: 0 30px 60px -28px rgba(14,22,38,.55), 0 0 0 1px rgba(14,22,38,.08); transition: transform .4s var(--ae-ease); }
.ae-paper-coverimg a:hover img { transform: translateY(-4px); }
@media (min-width: 782px) { .ae-paper-coverimg { max-width: 380px; } }
@media (max-width: 900px) { .ae-front-logo { margin-inline: auto !important; } }
@media (max-width: 781px) {
	.ae-stack-photos > .wp-block-image:nth-child(2) { display: none !important; }
	.ae-paper-coverimg { max-width: 320px; margin-inline: auto !important; }
}
/* Source logo on photo cards: on a light chip */
.ae-card__src { width: auto !important; display: inline-flex; background: #fff; padding: 7px 12px; border-radius: 4px; align-self: flex-start; }
.ae-card__src img { height: 26px !important; width: auto !important; filter: none !important; opacity: 1 !important; }
.ae-card--photo .ae-eyebrow, .ae-card:has(> .ae-card__bg) .ae-eyebrow { color: var(--ae-amber) !important; opacity: 1 !important; }
.ae-champ:has(> .ae-card__bg) .ae-eyebrow { color: #7A5B2E !important; }
.ae-founders > *, .ae-pqs > * { margin: 0 !important; }
.ae-founder__ph { overflow: hidden; padding: 0 !important; }
.ae-founder__ph img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; padding: 4px; box-sizing: border-box; }

/* ===== v0.1.6 ===== */
/* Media hero: photo is the background of the text */
.ae-bghero { position: relative; overflow: hidden; background: #06080C !important; min-height: min(820px, 100svh); display: flex !important; flex-direction: column; justify-content: center; }
.ae-bghero > .ae-bghero__bg { position: absolute !important; inset: 0; margin: 0 !important; max-width: none !important; width: 100% !important; z-index: 0; }
.ae-bghero > .ae-bghero__bg img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.ae-bghero__bg--wide img { object-position: 20% 30%; }
.ae-bghero__bg--tall { display: none !important; }
.ae-bghero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to left, rgba(6,8,12,.72) 0%, rgba(6,8,12,.34) 34%, rgba(6,8,12,0) 54%); }
.ae-bghero > :not(.ae-bghero__bg) { position: relative; z-index: 2; width: 100%; box-sizing: border-box; }
.ae-bghero .ae-grow { max-width: 620px; text-shadow: 0 2px 22px rgba(6,8,12,.7); }
.ae-bghero .ae-muted { color: #DDE1E8 !important; }
@media (max-width: 781px) {
	.ae-bghero { min-height: calc(100svh - 64px); justify-content: flex-end; }
	.ae-bghero__bg--wide { display: none !important; }
	.ae-bghero__bg--tall { display: block !important; }
	.ae-bghero__bg--tall img { object-position: 70% 10%; }
	.ae-bghero::before { background: linear-gradient(to bottom, rgba(6,8,12,.1) 0%, rgba(6,8,12,.2) 35%, rgba(6,8,12,.78) 60%, rgba(6,8,12,.96) 100%); }
	.ae-bghero > .ae-row { padding-top: 40vh; }
}

/* Home photo cards on desktop: text on the photo, no box */
@media (min-width: 782px) {
	.ae-card--photo::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(14,22,38,0) 35%, rgba(14,22,38,.5) 62%, rgba(14,22,38,.9) 100%); }
	.ae-card--photo .ae-card__label { background: transparent !important; margin: 0 !important; padding: 32px 36px !important; max-width: 560px !important; align-self: stretch !important; position: relative; z-index: 1; text-shadow: 0 2px 18px rgba(14,22,38,.6); }
	.ae-card--lecture > .wp-block-image img { object-position: 60% 24%; }
	.ae-card--lecture .ae-card__big { font-size: 72px !important; }
	.ae-card--books > .wp-block-image img { object-position: 50% 18%; }
}

/* v0.1.9: accessibility contrast fixes (mirrors Global Styles CSS) */
header a.wp-block-button__link.wp-element-button{background-color:#C23F17!important}
header a.wp-block-button__link.wp-element-button:hover{background-color:#A9370F!important}
.ae-paper .ae-num,.ae-sand .ae-num{color:#8A5A10!important}
.ae-blue:not(:has(.ae-card__bg)) .ae-num,.ae-blue:not(:has(.ae-card__bg)) .ae-eyebrow{color:#F6F3EE!important}
.ae-paper .taxonomy-ae_update_type,.ae-paper .taxonomy-ae_update_type a,.ae-sand .taxonomy-ae_update_type a{color:#8A5A10!important}
.ae-card.ae-front .ae-eyebrow{color:#E7A33E!important}
.ae-section.ae-sand .ae-stack .ae-cardlink a{color:#A9370F!important}
.ae-cc__prefs[hidden]{display:none!important}
.woocommerce-product-gallery:has(book-3d) .woocommerce-product-gallery__trigger{display:none}

/* ===== v0.3.0: English pages (LTR) and language switch ===== */
.ae-lang { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 34px; padding: 0 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-decoration: none; color: inherit; opacity: .85; }
.ae-lang:hover, .ae-lang:focus-visible { opacity: 1; }
.ae-header__inner > .ae-lang { order: 0; }
@media (max-width: 781px) { .ae-header__inner { gap: 12px; } }
.ae-books-en, .ae-books-en.ae-covers { list-style: none; margin: 0; padding: 0; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.ae-books-en > li { min-width: 0; }
.ae-books-en a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.ae-books-en figure { margin: 0 0 6px; }
.ae-books-en img { width: 100%; height: auto; display: block; }
.ae-books-en__t { font-family: var(--wp--preset--font-family--display); font-size: 26px; font-weight: 700; line-height: 1; }
.ae-books-en__y { font-size: 14px; opacity: .7; }
@media (max-width: 781px) { .ae-books-en { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.ae-en .ae-bars .wp-block-button__link::after { content: "→"; }
.ae-en .ae-subhead { text-align: left; }
.ae-en .ae-pq__logo img { object-position: left center; }
.ae-en .ae-wa { left: auto; right: 24px; }
.ae-en .ae-carousel__bar span { inset: 0 auto 0 0; transition: width .3s, left .3s; }
.ae-en .ae-blend img { -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 80%, transparent 100%); mask-image: linear-gradient(to left, #000 55%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 80%, transparent 100%); }
@media (max-width: 781px) { .ae-en .ae-blend img { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); } }
.ae-en .ae-bghero::before { background: linear-gradient(to right, rgba(6,8,12,.72) 0%, rgba(6,8,12,.34) 34%, rgba(6,8,12,0) 54%); }
@media (min-width: 782px) {
	.ae-en .ae-hero__media::after { background: linear-gradient(to left, rgba(14,22,38,0) 30%, rgba(14,22,38,.55) 70%, var(--ae-ink) 100%), linear-gradient(to top, rgba(14,22,38,.45), rgba(14,22,38,0) 40%); }
}
.ae-he-note { font-size: 15px; opacity: .8; }
.ae-books-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.ae-book-en { display: flex !important; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid rgba(14,22,38,.15); }
.ae-book-en h3 { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: clamp(30px, 3vw, 40px); line-height: 1; }
.ae-book-en p { margin: 0; }
@media (max-width: 781px) { .ae-books-list { grid-template-columns: 1fr; } }
