.page-template-page-encyclopedias,
.tax-product_cat.term-encyclopedias,
.ajyal-encyclopedias-landing {
	--ael-teal: #0f8c86;
	--ael-teal-dark: #075f5b;
	--ael-brown: #3c291f;
	--ael-cream: #f8f3e9;
	--ael-gold: #d69b3a;
	--ael-ink: #1d1815;
	--ael-muted: #6d635c;
	--ael-line: #e5dacb;
}

.page-template-page-encyclopedias .site-main { padding-block: 0; }
.tax-product_cat.term-encyclopedias .site-main,
.page-template-page-encyclopedias .site-main { padding-block: 0; }
.ajyal-encyclopedias-landing { background: #fffdf8; color: var(--ael-ink); overflow: clip; }
.ajyal-encyclopedias-landing section { padding-block: clamp(64px, 8vw, 118px); scroll-margin-top: 82px; }
.ajyal-encyclopedias-landing h1,
.ajyal-encyclopedias-landing h2,
.ajyal-encyclopedias-landing h3,
.ajyal-encyclopedias-landing p { margin-top: 0; }
.ajyal-encyclopedias-landing h1 { font-size: clamp(1.35rem, 2.8vw, 2.6rem); letter-spacing: 0; line-height: 1.45; margin-bottom: 24px; max-width: 860px; }
.ajyal-encyclopedias-landing h2 { font-size: clamp(2rem, 4.7vw, 4.25rem); letter-spacing: -.035em; line-height: 1.12; margin-bottom: 22px; }
.ajyal-encyclopedias-landing h3 { font-size: clamp(1.55rem, 2.8vw, 2.35rem); line-height: 1.22; margin-bottom: 14px; }

.ael-eyebrow { color: var(--ael-teal-dark); font-size: .76rem; font-weight: 900; letter-spacing: .035em; margin-bottom: 14px; }
.ael-product-nav { backdrop-filter: blur(18px); background: rgba(255, 253, 248, .9); border-bottom: 1px solid rgba(74, 48, 32, .12); position: sticky; top: 0; z-index: 110; }
.admin-bar .ael-product-nav { top: 32px; }
.ael-product-nav-inner { align-items: center; display: grid; gap: 22px; grid-template-columns: auto 1fr auto; min-height: 70px; }
.ael-product-nav a { color: var(--ael-ink); text-decoration: none; }
.ael-product-nav-name { font-size: .86rem; font-weight: 900; }
.ael-product-nav-links { display: flex; font-size: .7rem; gap: 24px; justify-content: center; }
.ael-product-nav-links a:hover { color: var(--ael-teal-dark); }
.ael-product-nav-buy { align-items: center; background: var(--ael-teal); border-radius: 999px; color: #fff !important; display: inline-flex; font-size: .72rem; font-weight: 900; gap: 8px; min-height: 42px; padding: 8px 17px; }
.ael-product-nav-buy .woocommerce-Price-amount { color: inherit; }

.ael-hero { background: radial-gradient(circle at 18% 24%, rgba(15, 140, 134, .12), transparent 31%), radial-gradient(circle at 82% 76%, rgba(214, 155, 58, .11), transparent 28%), linear-gradient(145deg, #fffdf8 0%, #f5efe4 100%); border-bottom: 1px solid var(--ael-line); min-height: min(720px, calc(100vh - 70px)); padding-block: clamp(54px, 6vw, 78px) !important; }
.ael-hero-grid { align-items: center; display: grid; gap: clamp(38px, 6vw, 86px); grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); }
.ael-hero-grid { row-gap: 0; }
.ael-hero-heading { align-self: end; grid-column: 1; grid-row: 1; }
.ael-hero-copy { align-self: start; grid-column: 1; grid-row: 3; }
.ael-hero-grid > .ael-hero-product { grid-column: 2; grid-row: 1 / span 3; }
.ael-lead { color: var(--ael-muted); font-size: clamp(1.03rem, 1.8vw, 1.25rem); line-height: 1.85; max-width: 720px; }
.ael-hero-actions,
.ael-card-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; }
.ael-hero-actions { align-self: start; flex-direction: column; align-items: stretch; grid-column: 1; grid-row: 2; margin: 0 0 24px; scroll-margin-top: 90px; }
.ael-direct-choices { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
.ael-direct-choice { align-items: center; background: #fff; border: 2px solid var(--ael-teal); border-radius: 16px; color: var(--ael-ink); display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; min-height: 104px; padding: 12px; text-align: center; text-decoration: none; }
.ael-direct-choice[data-ael-product="bundle"] { grid-column: 1 / -1; grid-template-columns: 84px minmax(0, 1fr); }
.ael-choice-image { display: flex; align-items: center; justify-content: center; }
.ael-choice-image img { display: block; width: 64px; height: 72px; object-fit: contain; }
.ael-direct-choice[data-ael-product="bundle"] img { width: 84px; height: 72px; }
.ael-choice-copy { display: grid; gap: 5px; }
.ael-direct-choice:hover { background: #edf8f5; border-color: var(--ael-teal-dark); }
.ael-direct-choice:focus-visible, .ael-mobile-cta > a:focus-visible { outline: 3px solid var(--ael-brown); outline-offset: 3px; }
.ael-direct-choice strong { font-size: 20px; line-height: 1.4; }
.ael-choice-price { color: var(--ael-teal-dark); font-size: 20px; font-weight: 900; }
.ael-hero-actions > .ael-text-link { align-self: center; min-height: 44px; display: inline-flex; align-items: center; }
.ael-button { align-items: center; border: 2px solid transparent; border-radius: 999px; display: inline-flex; font-size: .88rem; font-weight: 900; gap: 10px; justify-content: center; min-height: 58px; padding: 11px 25px; text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.ael-button:hover { box-shadow: 0 14px 32px rgba(7, 95, 91, .18); transform: translateY(-2px); }
.ael-button-primary { background: var(--ael-teal); color: #fff; }
.ael-button-primary:hover { background: var(--ael-teal-dark); color: #fff; }
.ael-button-secondary { background: transparent; border-color: var(--ael-brown); color: var(--ael-brown); }
.ael-button span .woocommerce-Price-currencySymbol,
.ael-button .woocommerce-Price-amount,
.ael-mobile-cta .woocommerce-Price-amount { color: inherit; }
.ael-trust-list { display: grid; gap: 1px; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 32px 0 0; max-width: 700px; padding: 0; }
.ael-trust-list li { border-inline-start: 1px solid var(--ael-line); display: grid; gap: 4px; padding: 3px 18px; }
.ael-trust-list li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.ael-trust-list strong { color: var(--ael-ink); font-size: .78rem; }
.ael-trust-list span { color: var(--ael-muted); font-size: .64rem; line-height: 1.55; }
.ael-hero-product { isolation: isolate; padding: clamp(12px, 2vw, 28px); position: relative; }
.ael-hero-product::before { background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .88); border-radius: 50%; box-shadow: 0 45px 110px rgba(74, 48, 32, .18); content: ""; inset: 7% -3% 0; position: absolute; z-index: -1; }
.ael-hero-product img { display: block; filter: drop-shadow(0 32px 28px rgba(50, 31, 20, .24)); margin: auto; max-height: 520px; object-fit: contain; width: 100%; }
.ael-hero-badge { background: var(--ael-brown); border-radius: 999px; color: #fff; font-size: .7rem; font-weight: 900; left: 50%; padding: 10px 16px; position: absolute; top: 3%; transform: translateX(-50%); white-space: nowrap; z-index: 2; }

.ael-choose { background: #fffdf8; }
.ael-choose > .site-container > .ael-eyebrow,
.ael-choose > .site-container > h2 { margin-inline: auto; text-align: center; }
.ael-section-intro { color: var(--ael-muted); font-size: .9rem; line-height: 1.85; max-width: 760px; }
.ael-difference-copy { color: var(--ael-muted); font-size: .9rem; line-height: 2; margin: 0 auto; max-width: 920px; text-align: start; }
.ael-difference-copy p:last-child { margin-bottom: 0; }
.ael-quick-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px auto 30px; max-width: 980px; }
.ael-quick-choices a { background: #fff; border: 1px solid var(--ael-line); border-radius: 18px; color: var(--ael-ink); display: grid; gap: 7px; padding: 20px; text-decoration: none; }
.ael-quick-choices a:hover { border-color: var(--ael-teal); }
.ael-quick-choices strong { font-size: .94rem; }
.ael-quick-choices span { color: var(--ael-muted); font-size: .73rem; line-height: 1.7; }
.ael-quick-choices b { color: var(--ael-teal-dark); font-size: .88rem; }
.ael-product-card { scroll-margin-top: 95px; }
.ael-product-grid { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 54px; }
.ael-product-card { background: #fff; border: 1px solid var(--ael-line); border-radius: 34px; display: grid; grid-template-rows: minmax(390px, 1fr) auto; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.ael-product-card:hover { box-shadow: 0 28px 70px rgba(74, 48, 32, .12); transform: translateY(-5px); }
.ael-card-image { align-items: center; background: radial-gradient(circle at 50% 42%, #fff 0%, rgba(255,255,255,.75) 28%, transparent 58%), var(--ael-cream); display: flex; justify-content: center; min-height: 440px; padding: clamp(30px, 5vw, 70px); }
.ael-card-image img { filter: drop-shadow(0 24px 20px rgba(50, 31, 20, .18)); max-height: 440px; object-fit: contain; }
.ael-card-copy { padding: clamp(28px, 4vw, 48px); }
.ael-age { color: var(--ael-teal-dark); font-size: .73rem; font-weight: 900; margin-bottom: 5px; }
.ael-card-copy li { color: var(--ael-muted); font-size: .76rem; line-height: 1.85; }
.ael-card-copy li strong { color: var(--ael-ink); }
.ael-card-copy ul { margin: 18px 0 28px; padding-inline-start: 24px; }
.ael-card-copy li::marker { color: var(--ael-teal); }
.ael-card-actions { align-items: flex-start; flex-direction: column; }
.ael-card-actions .ael-button { width: 100%; }
.ael-text-link { color: var(--ael-teal-dark); font-size: .76rem; font-weight: 900; text-underline-offset: 5px; }

.ael-scale { background: var(--ael-ink); color: #fff; padding-block: clamp(36px, 5vw, 58px) !important; text-align: center; }
.ael-scale .ael-eyebrow { color: #7dddd7; }
.ael-scale-grid { display: grid; gap: 1px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.ael-scale-grid > div { border-inline-start: 1px solid rgba(255, 255, 255, .18); display: grid; gap: 6px; padding: 20px 10px; }
.ael-scale-grid > div:first-child { border-inline-start: 0; }
.ael-scale-grid strong { font-size: clamp(2.35rem, 5vw, 5.1rem); font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.ael-scale-grid span { color: #cabfb8; font-size: .76rem; }

.ael-inside { background: var(--ael-cream); border-block: 1px solid var(--ael-line); }
.ael-preview-choices { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 28px 0 44px; }
.ael-preview-card { background: #fff; border: 1px solid var(--ael-line); border-radius: 24px; display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.ael-preview-card h3 { margin-bottom: 0; }
.ael-preview-card p { color: var(--ael-muted); font-size: .8rem; line-height: 1.8; margin-bottom: 0; }
.ael-preview-card .ael-button { margin-top: auto; }
.ael-preview-card .ael-sample-edition { background: var(--ael-cream); border-radius: 8px; color: var(--ael-brown); padding: 10px 12px; }
.ael-photo-title { font-size: 1.1rem !important; margin-bottom: 18px; }
.ael-gallery,
.ael-gallery-fallback { display: grid; gap: 18px; grid-auto-rows: minmax(240px, 30vw); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ael-gallery figure,
.ael-gallery-fallback img { background: #fff; border: 1px solid var(--ael-line); border-radius: 22px; box-shadow: 0 18px 45px rgba(74, 48, 32, .1); margin: 0; overflow: hidden; }
.ael-gallery figure:first-child:nth-last-child(n+3) { grid-row: span 2; }
.ael-gallery img { display: block; height: 100%; object-fit: cover; width: 100%; }

.ael-reel-section { background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .08), transparent 26%), var(--ael-brown); color: #fff; }
.ael-reviews-title { margin: 0 0 32px; text-align: center; }
.ael-reel-grid { align-items: start; direction: rtl; display: grid; gap: clamp(20px, 4vw, 48px); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: auto; max-width: 820px; }
.ael-reel-shell { background: #15110f; border: 1px solid rgba(255, 255, 255, .18); border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); margin-inline: auto; max-width: 386px; overflow: hidden; position: relative; width: 100%; }
.ael-reel-poster { background: #15110f; border: 0; color: var(--ael-ink); cursor: pointer; display: block; padding: 0; position: relative; width: 100%; }
.ael-reel-poster img { display: block; height: auto; width: 100%; }
.ael-play { align-items: center; background: rgba(255, 255, 255, .95); border-radius: 50%; box-shadow: 0 10px 32px rgba(0, 0, 0, .25); display: flex; font-size: 1.4rem; height: 72px; inset: 40% auto auto 50%; justify-content: center; padding-inline-start: 5px; position: absolute; transform: translate(-50%, -50%); width: 72px; z-index: 2; }
.ael-reel-shell iframe { border: 0; display: block; height: 720px; width: 100%; }

.ael-purchase { background: #fffdf8; }
.ael-purchase-box { background: radial-gradient(circle at 18% 20%, rgba(214, 155, 58, .17), transparent 34%), linear-gradient(135deg, #075f5b, #0f8c86); border-radius: 38px; box-shadow: 0 34px 90px rgba(7, 95, 91, .2); color: #fff; display: grid; gap: 38px; padding: clamp(34px, 6vw, 76px); }
.ael-purchase-heading { align-items: end; display: flex; gap: 24px; justify-content: space-between; }
.ael-purchase .ael-eyebrow { color: #c9f4f1; }
.ael-purchase-heading h2 { margin-bottom: 0; }
.ael-purchase-heading .woocommerce-Price-amount { color: #fff; }
.ael-purchase-name { font-size: 1.02rem; font-weight: 900; margin-bottom: 0; }
.ael-purchase-facts { display: grid; gap: 1px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ael-purchase-facts > div { border-inline-start: 1px solid rgba(255, 255, 255, .22); display: grid; gap: 6px; padding: 6px 18px; }
.ael-purchase-facts > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.ael-purchase-facts strong { font-size: .86rem; }
.ael-purchase-facts span { color: #d3efed; font-size: .68rem; line-height: 1.65; }
.ael-purchase .ael-button { background: #fff; color: var(--ael-teal-dark); justify-self: start; }

.ael-faq { background: var(--ael-cream); }
.ael-faq-wrap { max-width: 900px; }
.ael-faq details { background: transparent; border-bottom: 1px solid var(--ael-line); padding: 22px 2px; }
.ael-faq summary { cursor: pointer; font-size: .92rem; font-weight: 900; }
.ael-faq details p { color: var(--ael-muted); font-size: .78rem; line-height: 1.9; margin: 14px 0 0; }

.ael-final-cta { background: var(--ael-ink); color: #fff; }
.ael-final-cta-box { display: flex; justify-content: center; }
.ael-final-cta-actions { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; width: 100%; }
.ael-final-cta-actions .ael-button { font-size: .98rem; min-height: 66px; min-width: 300px; padding: 16px 34px; }
.ael-final-cta .ael-button-primary { background: #fff; color: var(--ael-ink); }
.ael-final-cta .ael-button-secondary { border-color: #fff; color: #fff; }
.ael-mobile-cta { display: none; }

.ael-motion-ready [data-ael-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.ael-motion-ready [data-ael-reveal].is-visible { opacity: 1; transform: translateY(0); }
.ajyal-encyclopedias-landing :focus-visible { outline: 3px solid var(--ael-gold); outline-offset: 4px; }

@media (max-width: 1050px) {
	.ael-product-nav-links { display: none; }
	.ael-product-nav-inner { grid-template-columns: 1fr auto; }
	.ael-hero-grid { grid-template-columns: 1fr 1fr; }
	.ael-purchase-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
	.ael-purchase-facts > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
}

@media (max-width: 760px) {
	.admin-bar .ael-product-nav { top: 46px; }
	.ajyal-encyclopedias-landing { padding-bottom: calc(128px + env(safe-area-inset-bottom)); }
	.ajyal-encyclopedias-landing section { padding-block: 48px; }
	.ael-product-nav-inner { min-height: 56px; }
	.ael-product-nav-name { font-size: .72rem; }
	.ael-product-nav-buy { min-height: 44px; padding: 7px 14px; }
	.ael-product-nav-buy span { display: none; }
	.ael-hero { min-height: auto; padding-block: 32px 42px !important; }
	.ael-hero-grid { grid-template-columns: 1fr; }
	.ael-hero-grid { gap: 18px; }
	.ael-hero-heading,
	.ael-hero-copy,
	.ael-hero-grid > .ael-hero-product { grid-column: 1; grid-row: auto; }
	.ael-hero-heading { grid-row: 1; }
	.ael-hero-grid > .ael-hero-actions { grid-column: 1; grid-row: 2; }
	.ael-hero-grid > .ael-hero-product { grid-row: 3; }
	.ael-hero-copy { grid-row: 4; }
	.ael-hero-heading { text-align: center; }
	.ael-hero-heading h1 { font-size: clamp(20px, 5.7vw, 28px); margin-bottom: 0; }
	.ael-hero-copy { display: flex; flex-direction: column; text-align: center; }
	.ael-lead { font-size: .96rem; line-height: 1.75; }
	.ael-hero-actions,
	.ael-trust-list { margin-inline: auto; }
	.ael-hero-actions { margin: 0; width: 100%; }
	.ael-direct-choices { gap: 7px; }
	.ael-direct-choice { grid-template-columns: 44px minmax(0, 1fr); gap: 5px; min-height: 102px; padding: 8px 5px; }
	.ael-direct-choice[data-ael-product="bundle"] { grid-template-columns: 70px minmax(0, 1fr); min-height: 86px; }
	.ael-choice-image img { width: 44px; height: 62px; }
	.ael-direct-choice[data-ael-product="bundle"] img { width: 70px; height: 66px; }
	.ael-direct-choice strong { font-size: 18px; }
	.ael-choice-price { font-size: 20px; }
	.ael-trust-list { margin-top: 22px; }
	.ael-hero-product { margin-inline: auto; max-width: 280px; padding: 4px; }
	.ael-hero-product img { max-height: 230px; }
	.ael-hero-badge { font-size: .62rem; padding: 8px 12px; }
	.ael-difference-copy { font-size: .84rem; line-height: 1.85; }
	.ael-quick-choices { grid-template-columns: 1fr; gap: 10px; }
	.ael-quick-choices a { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px; }
	.ael-quick-choices span { grid-column: 1; }
	.ael-quick-choices b { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
	.ael-product-grid { gap: 20px; grid-template-columns: 1fr; margin-top: 34px; }
	.ael-product-card { border-radius: 24px; grid-template-rows: auto auto; }
	.ael-card-image { min-height: 280px; padding: 28px; }
	.ael-card-image img { max-height: 300px; }
	.ael-card-copy { padding: 24px; }
	.ael-scale-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
	.ael-scale-grid > div:nth-child(3) { border-inline-start: 0; }
	.ael-gallery,
	.ael-gallery-fallback { grid-auto-rows: 220px; grid-template-columns: 1fr; }
	.ael-preview-choices { grid-template-columns: 1fr; }
	.ael-preview-card { padding: 22px; }
	.ael-gallery figure:first-child:nth-last-child(n+3) { grid-row: auto; }
	.ael-reel-grid { grid-template-columns: 1fr; max-width: 386px; gap: 28px; }
	.ael-reel-shell iframe { height: 640px; }
	.ael-play { height: 68px; width: 68px; }
	.ael-purchase-box { border-radius: 24px; gap: 26px; padding: 28px 24px; }
	.ael-purchase-heading { align-items: start; flex-direction: column; }
	.ael-purchase-facts { grid-template-columns: 1fr; }
	.ael-purchase-facts > div { border-inline-start: 0; border-top: 1px solid rgba(255, 255, 255, .2); padding: 18px 0 0; }
	.ael-purchase-facts > div:first-child { border-top: 0; padding-top: 0; }
	.ael-purchase .ael-button { justify-self: stretch; }
	.ael-faq details { padding-block: 18px; }
	.ael-final-cta-actions .ael-button { min-width: min(300px, 100%); }
	.ael-mobile-cta { align-items: stretch; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--ael-line); bottom: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; inset-inline: 0; padding: 7px 10px calc(7px + env(safe-area-inset-bottom)); position: fixed; z-index: 120; }
	.ael-mobile-cta > a { align-items: center; justify-content: center; background: var(--ael-teal); border-radius: 12px; color: #fff; display: flex; gap: 8px; font-size: 16px; font-weight: 900; min-height: 44px; padding: 6px 4px; text-align: center; text-decoration: none; }
	.ael-mobile-cta > a[data-ael-product="bundle"] { grid-column: 1 / -1; }
	.ael-mobile-cta > a > span { color: inherit; font-size: 16px; }
}

@media (max-width: 520px) {
	.ajyal-encyclopedias-landing h1 { font-size: clamp(20px, 5.7vw, 28px); }
	.ajyal-encyclopedias-landing h2 { font-size: 1.72rem; }
	.ajyal-encyclopedias-landing h3 { font-size: 1.42rem; }
	.ael-button { width: 100%; }
	.ael-trust-list { gap: 12px; grid-template-columns: 1fr; width: 100%; }
	.ael-trust-list li { border-inline-start: 0; border-top: 1px solid var(--ael-line); padding: 9px 0 0; text-align: center; }
	.ael-trust-list li:first-child { border-top: 0; padding-top: 0; }
	.ael-card-image { min-height: 260px; }
	.ael-reel-shell iframe { height: 620px; }
}

@media (max-width: 520px) and (max-height: 650px) {
	.ael-hero { padding-block: 20px 32px !important; }
	.ael-hero-grid { row-gap: 12px; }
	.ajyal-encyclopedias-landing h1 { font-size: 18px; line-height: 1.35; }
	.ael-hero-heading .ael-eyebrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ael-button,
	.ael-product-card,
	.ael-motion-ready [data-ael-reveal] { transition: none; }
	.ael-motion-ready [data-ael-reveal] { opacity: 1; transform: none; }
}
