/* MAYAN Rev8: contrast, brand cohesion and stable book geometry. */
:root{--mayan-surface:#fbfaf6;--mayan-ink:#263c31;--mayan-muted:#4e6657;--mayan-edge:rgba(36,79,52,.16)}
html[data-theme="dark"]{--mayan-surface:#e8eee5;--mayan-ink:#20392d;--mayan-muted:#425b4c;--mayan-edge:rgba(29,78,49,.22)}
body{color:var(--mayan-ink)!important;background:linear-gradient(150deg,#fcfbf7,#f0f5ec 65%,#faf8f2)!important}
/* Preserve the animated corner marks, travelling dots, and navbar frame. Color only. */
/* readable headline colors tied to each family palette, not hard-coded green */
.family-hero .fh-title,.family-hero .fh-tagline,.family-hero .fh-english,.family-hero .fh-bgword{color:var(--fh-ink,#263c31)!important;text-shadow:none!important}
.family-hero .fh-title{font-weight:800!important}
.family-hero .fh-title-line--accent{color:var(--fh-ink,#263c31)!important}
.family-hero .fh-tagline{opacity:1!important;font-weight:600!important}
.family-hero .fh-cta{background:var(--fh-accent,#357657)!important;color:#fff!important;border:1px solid rgba(0,0,0,.09)!important}
.family-hero .fh-family-atmosphere{opacity:.92!important;background-size:150% 150%!important;animation:mayan-soft-wave 18s ease-in-out infinite alternate!important}
@keyframes mayan-soft-wave{0%{background-position:0% 45%}100%{background-position:100% 62%}}
@media(prefers-reduced-motion:reduce){.family-hero .fh-family-atmosphere{animation:none!important}}
/* Readability throughout all content and controls */
.page-hero p,.page-hero .breadcrumb,.sec p,.about-section p,.products-page p,.catalog-section p{color:var(--mayan-muted)}
.products-page .product-card__desc,.products-page .product-card__cat{color:#425a4a!important;opacity:1!important}
button,.btn,.nav-link{transition:background-color .3s ease,color .3s ease,border-color .3s ease,box-shadow .3s ease}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #55946d!important;outline-offset:3px}
/* Stable book footprint. Never scale or animate book container while pages flip. */
.catalog-luxury-section .flipbook-stage-frame{min-height:0!important;padding:26px 14px!important;background:radial-gradient(ellipse at 50% 50%,#fffefa 0%,#f1f4e9 68%,#e7ecdf 100%)!important;border-color:#d4e0d0!important;overflow:hidden!important}
.catalog-luxury-section #catalogFlipMode .flipbook-stage{height:var(--catalog-book-h,480px)!important;min-height:0!important;max-height:none!important;width:100%!important;max-width:1250px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;align-content:normal!important;transform:none!important}
.catalog-luxury-section #catalogFlipMode .flipbook{transform:none!important;margin:0 auto!important;flex:0 0 auto;transition:none!important}
.catalog-luxury-section .catalog-control-bar{box-shadow:none!important;background:transparent!important}
.catalog-luxury-section .catalog-view-title strong,.catalog-luxury-section .catalog-stat strong,.catalog-luxury-section .catalog-progress-panel__head label{color:#244733!important}
.catalog-luxury-section .flipbook-hint,.catalog-luxury-section .catalog-thumbs-head span{color:#486351!important}
.catalog-luxury-section .catalog-zoomed .flipbook-stage{cursor:zoom-in}
@media(max-width:700px){.catalog-luxury-section .flipbook-stage-frame{padding:16px 4px!important}.catalog-luxury-section #catalogFlipMode .flipbook-stage{height:var(--catalog-book-h,310px)!important}}
/* Zoom PDF page artwork without changing book dimensions or PageFlip coordinates. */
.catalog-luxury-section .catalog-lazy-page{overflow:hidden!important}
.catalog-luxury-section .catalog-lazy-page img{transform:scale(var(--catalog-zoom,1))!important;transform-origin:center!important;transition:transform .18s ease!important}
