/* BAF V8 — fit-to-frame media, editorial spacing and progressive motion. */
:root{--baf7-ink:#19372b;--baf7-gold:#aa874b;--baf7-line:#e2dacb;--baf7-paper:#fffdf9;--baf7-shadow:0 10px 30px #19372b0e,0 2px 6px #19372b08}
main :is(p,dd,li){overflow-wrap:break-word;word-break:normal}
main :is(h1,h2,h3){overflow-wrap:break-word;word-break:normal;text-wrap:balance}
main :is(.heritage-heading,.origin-catalogue-heading){margin-bottom:clamp(22px,3vw,38px)}
main :is(.heritage-heading,.heritage-intro,.origin-catalogue-hero,.heritage-about-hero,.heritage-contact-hero,.heritage-other-hero) p:not(.heritage-eyebrow){line-height:1.75;text-wrap:pretty}
main .heritage-heading>p:not(.heritage-eyebrow){max-width:76ch}
main .heritage-products{align-items:stretch;gap:clamp(16px,2vw,26px)}
main .heritage-products>.heritage-product{box-sizing:border-box;border-radius:15px;padding:8px;box-shadow:var(--baf7-shadow);min-width:0;overflow:hidden}
main .heritage-products>.heritage-product>img{display:block;width:100%!important;height:auto!important;aspect-ratio:16/9!important;object-fit:cover!important;object-position:center!important;border:0;border-radius:9px;background:#ece7dc;flex:none}
main .heritage-products>.heritage-product>div{padding:clamp(14px,1.7vw,22px) clamp(12px,1.4vw,18px) 16px;gap:0;align-items:flex-start;min-width:0}
main .heritage-product h3{margin:6px 0 10px;line-height:1.24}
main .heritage-products>.heritage-product>div>p:not(.heritage-card-kicker){font-size:14px;line-height:1.7;margin:0 0 15px;padding-bottom:0;min-height:0}
main .heritage-product .baf-media-status{margin:0 0 12px;line-height:1.55;white-space:normal}
main .heritage-origin-products>.heritage-product>div>a:last-child{display:flex;align-items:center;justify-content:space-between;gap:9px;align-self:stretch;border:1px solid #d6c39d;border-radius:8px;padding:12px 13px;margin-top:auto!important;line-height:1.45;font-size:13px;color:var(--baf7-ink);background:#faf6ed;text-decoration:none;white-space:normal;transition:background .2s,border-color .2s,color .2s}
main .heritage-origin-products>.heritage-product>div>a:last-child:hover{background:#f0e7d5;border-color:var(--baf7-gold)}
/* Series layout: media and its thumbnails remain one unit, separate from copy. */
main article.origin-series{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);align-items:start;gap:clamp(18px,3vw,38px);padding:clamp(13px,2.1vw,26px);margin-bottom:clamp(24px,3vw,44px);border:1px solid var(--baf7-line);border-radius:16px;box-shadow:var(--baf7-shadow);overflow:hidden}
.baf7-series-gallery{min-width:0;width:100%;display:flex;flex-direction:column;align-items:center;gap:12px}
main .baf7-series-gallery>.origin-series-main{position:relative;display:block;min-height:0!important;height:auto!important;max-height:none!important;width:100%;max-width:100%;aspect-ratio:var(--baf7-native-ratio,16/9)!important;box-sizing:border-box;padding:0!important;overflow:hidden;border-radius:10px;border:1px solid var(--baf7-line);background:#eee9df;isolation:isolate}
main .baf7-series-gallery>.origin-series-main::before{content:none!important;display:none!important}
main .baf7-series-gallery>.origin-series-main>img{position:absolute!important;inset:0!important;display:block;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;max-width:none!important;object-fit:cover!important;object-position:center!important;border:0;border-radius:0!important;padding:0!important;margin:0!important;transform:none!important}
main .baf7-series-gallery[data-shape=portrait]>.origin-series-main{max-width:390px}
main .baf7-series-gallery[data-shape=square]>.origin-series-main{max-width:450px}
.baf7-gallery-caption{align-self:stretch;display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 12px;font-size:11px;line-height:1.55;color:#735b32;margin:0!important;min-width:0}
main .baf7-series-gallery>.origin-series-thumbs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-column:auto;align-self:stretch;gap:9px;margin:0!important;padding:0!important;border:0!important;background:transparent;min-width:0}
main .baf7-series-gallery>.origin-series-thumbs[data-photo-count="1"]{grid-template-columns:minmax(0,1fr)!important;max-width:165px;align-self:center;width:100%}
main .baf7-series-gallery>.origin-series-thumbs>a{position:relative!important;display:block;width:100%;height:auto!important;min-height:0;min-width:0;aspect-ratio:16/9!important;padding:0!important;margin:0!important;border:1px solid var(--baf7-line);border-radius:8px;overflow:hidden;background:#eee9df!important;box-shadow:none;transition:border-color .2s,box-shadow .2s}
main .baf7-series-gallery[data-shape=portrait]>.origin-series-thumbs>a{aspect-ratio:3/4!important}
main .baf7-series-gallery[data-shape=square]>.origin-series-thumbs>a{aspect-ratio:1!important}
main .baf7-series-gallery>.origin-series-thumbs>a>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;max-width:none!important;object-fit:cover!important;object-position:center!important;border-radius:0!important;transform:none!important;padding:0!important;margin:0!important}
main .baf7-series-gallery :is(a.origin-series-main,.origin-series-thumbs>a):is(:hover,:focus-visible){border-color:var(--baf7-gold);box-shadow:0 0 0 2px #aa874b44;outline-offset:3px}
main .origin-series-copy{padding:3px 0 4px;min-width:0;text-align:start}
main .origin-series-copy h2{font-size:clamp(26px,2.65vw,37px);line-height:1.22;margin:5px 0 12px;text-wrap:balance}
main .origin-series-copy .baf-media-status{margin:0 0 12px;padding:7px 10px;line-height:1.6;max-width:100%;white-space:normal}
main .origin-series-copy dl>div{padding:8px 0;line-height:1.55}
main .origin-series-copy dt{font-size:10px;line-height:1.45;letter-spacing:.07em;margin:0 0 4px}
main .origin-series-copy dd{font-size:14px;line-height:1.65;text-wrap:pretty}
main .origin-series-copy .heritage-button{margin-top:13px;max-width:100%;white-space:normal}
main .video-gallery>figure{padding:8px;border-radius:14px;box-shadow:var(--baf7-shadow);min-width:0}
main .video-gallery video{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:#14231e;border-radius:8px}
main .video-gallery figcaption{padding:12px 10px;line-height:1.6;min-width:0}
main .heritage-media-grid>a>img{object-fit:cover;aspect-ratio:16/9}
main .heritage-steps p,main .heritage-requirements p,main .heritage-contact-grid p,main .heritage-about-grid p{line-height:1.75}
main .baf-transparency p{line-height:1.65;text-wrap:pretty}
main .heritage-commodity-grid .baf-category-copy p{line-height:1.6!important}
[dir=rtl] main .origin-series-copy h2{line-height:1.4}
[dir=rtl] main .origin-series-copy dt{letter-spacing:0;text-transform:none}
[dir=rtl] main .origin-series-copy dd{line-height:1.85}
[dir=rtl] main .heritage-product h3{line-height:1.4}
@media(max-width:900px){main article.origin-series{grid-template-columns:minmax(0,1fr);gap:20px}main .baf7-series-gallery{max-width:660px;justify-self:center}main .origin-series-copy{padding:0 2px 3px}}
@media(max-width:640px){main article.origin-series{padding:11px;border-radius:13px;gap:17px}main .origin-series-copy h2{font-size:28px}main .origin-series-copy dd{font-size:13px}main .baf7-series-gallery>.origin-series-thumbs{gap:6px}main .baf7-series-gallery[data-shape=portrait]>.origin-series-main{max-width:290px}main .heritage-products>.heritage-product>div>p:not(.heritage-card-kicker){font-size:13px}}
/* Progressive enhancement: nothing is hidden while waiting for JS or scrolling. */
@keyframes baf7-entrance{from{opacity:.5;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.baf7-enter{animation:baf7-entrance 1.1s cubic-bezier(.2,.75,.25,1) both;animation-delay:var(--baf7-delay,0ms)}
@media(prefers-reduced-motion:reduce){.baf7-enter{animation:none!important}main .baf7-series-gallery a,main .heritage-origin-products>.heritage-product>div>a:last-child{transition:none!important}}
@media print{.baf7-enter{animation:none!important;opacity:1!important;transform:none!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
