/* Original Bezadome geometric and landscape artwork. Decorative layers stay outside reading surfaces. */
:root{--heritage-cream:#fbf7ee;--heritage-clay:#ac5739;--heritage-gold:#b58b49}
.heritage-auth{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:1080px;margin:32px auto 48px;border:1px solid #e3dece;border-radius:20px;overflow:hidden;background:white;box-shadow:0 16px 48px #243d3010}
.heritage-welcome{position:relative;display:flex;flex-direction:column;background:#f5ead2;overflow:hidden;color:#234936}
.heritage-story{padding:38px 36px 20px;background:url('brand/woven-light.svg') right top/96px,linear-gradient(#faf5e9,#f5ead2)}
.heritage-kicker{display:block;color:#76512d;font-size:10px;font-weight:750;letter-spacing:.12em;line-height:1.8}
.heritage-welcome h2{font-size:clamp(30px,3.5vw,42px);line-height:1.13;letter-spacing:-1px;margin:18px 0;color:#214a37}
.heritage-story p{font-size:15px;line-height:1.7;color:#46593f;margin:0}
.heritage-welcome>img{display:block;width:100%;height:auto;min-height:240px;max-height:390px;object-fit:cover;object-position:center 58%;margin-top:auto}
.heritage-caption{display:flex;align-items:center;gap:9px;background:#214b3b;color:#f5e9cc;padding:16px 24px;font-size:12px;line-height:1.5}
.heritage-dot{width:7px;height:7px;border-radius:50%;background:#e4b45e;flex:none}
.heritage-auth-form{display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:20px;padding:clamp(24px,4vw,44px);min-width:0;background:#fff}
.heritage-auth-form>.auth-intent-notice{width:100%;margin:0;padding:14px 16px;border-radius:12px;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.heritage-auth-form .auth.panel{width:100%;max-width:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:#fff}
.heritage-auth-form .auth h1{font-size:30px;line-height:1.2;letter-spacing:-.6px}.heritage-auth-form .auth>.eyebrow{color:#8c6235;font-size:10px}
.heritage-auth-form .auth label{font-size:14px}.heritage-auth-form .auth input{background:#fffdf8;border-color:#d9dfcf}.heritage-auth-form .auth input:focus-visible{outline:2px solid #708f53;outline-offset:2px}
.heritage-auth-form .auth .button,.heritage-auth-form .auth button{min-height:44px}.heritage-auth-form .auth p{font-size:14px;line-height:1.7}
/* Fabric-inspired border and very light framing, with plain lesson pages. */
.lp-page{position:relative}.lp-page:before{content:'';position:absolute;inset:-16px -30px -20px;z-index:-1;background:url('brand/woven-light.svg') repeat;opacity:.22;pointer-events:none;border-radius:24px}
.lp-page .lp-hero{position:relative!important;overflow:hidden;border-bottom:6px solid #b78b49}
.lp-page .lp-hero:after{content:'';position:absolute;inset:0 0 0 64%;background:url('brand/woven-light.svg') repeat;opacity:.28;pointer-events:none}
.lp-page .lp-hero>*{position:relative;z-index:1}.lp-page .lp-hero .lp-badge{background:#ead6a0;color:#244a37}
.lp-page .lp-next{background:linear-gradient(100deg,#f5edda,#f1f5e8);border-color:#ded5ba;border-left:5px solid #b78b49}
.lp-page .lp-next .lp-badge{background:#ead6a0}.lp-page .lp-reading{box-shadow:0 6px 25px #4c543107}
.heritage-home{position:relative}.heritage-home:before{content:'';position:absolute;inset:0 -14px;border-radius:24px;background:url('brand/woven-light.svg') repeat;opacity:.1;pointer-events:none;z-index:-1}
.heritage-home .hero-visual{border-bottom:6px solid #bd9658}.heritage-home-origin{display:flex;align-items:center;gap:9px;margin-top:20px;font-size:12px;font-weight:600;color:#795332}.heritage-home-origin>span{font-size:20px;color:#a8623f}
.site-learning-footer{border-top:5px solid #b58b49}.site-learning-footer .heritage-footer-origin{color:#e6d5ac;font-size:12px;line-height:1.7;margin:14px 0}
@media(max-width:760px){.heritage-auth{grid-template-columns:1fr;margin:18px auto 28px;border-radius:14px}.heritage-story{padding:24px 24px 18px}.heritage-welcome h2{font-size:30px;margin:12px 0}.heritage-story p{font-size:14px}.heritage-welcome>img{min-height:0;height:150px;object-position:center 53%}.heritage-caption{padding:11px 24px;font-size:11px}.heritage-auth-form{padding:28px 24px}.heritage-auth-form .auth h1{font-size:27px}.heritage-kicker{font-size:9px}.lp-page:before{inset:-10px -10px;opacity:.13}.heritage-home-origin{line-height:1.6;font-size:11px}}
@media(prefers-reduced-motion:reduce){.heritage-auth,.lp-page{scroll-behavior:auto}}@media print{.heritage-welcome,.lp-page:before,.lp-page .lp-hero:after,.heritage-home:before{display:none}.heritage-auth{display:block;box-shadow:none;border:0}}
.heritage-auth>section.heritage-welcome{margin:0}.heritage-story{background-image:linear-gradient(#faf5e980,#f5ead280),url("brand/woven-light.svg");background-size:auto,96px}.heritage-auth .heritage-welcome>img{max-height:320px}
@media(max-width:760px){.heritage-story{padding:18px 22px 14px}.heritage-welcome h2{font-size:26px;margin:10px 0}.heritage-story p{display:none}.heritage-auth .heritage-welcome>img{height:85px;object-position:center 58%}.heritage-caption{padding:9px 22px}.heritage-auth-form{padding:24px 22px}}
@media (max-width: 760px) {
  .heritage-auth { max-width: 520px; border-top: 3px solid #b69556; }
  .heritage-auth > .heritage-welcome { display: none; }
}
