/* Literary surfaces and interactions; typography stays in polish.css. */
.portrait-bookplate.portrait-interactive .portrait-signature{left:50%;top:auto;bottom:15%;width:125px;max-width:58%;padding:9px 10px;border-radius:6px;transform:translate(-50%,8px)}
.portrait-bookplate.portrait-interactive[aria-pressed=true] .portrait-signature{transform:translate(-50%,0)}
@media(hover:hover) and (pointer:fine){.portrait-bookplate.portrait-interactive:hover .portrait-signature{transform:translate(-50%,0)}}
/* A small editorial masthead and a numbered mobile contents menu. */
#header{position:relative;z-index:45;background:var(--paper);border-bottom:1px solid #9f855827}
#header .site-header{border-bottom:0}
.desktop-nav{gap:3px;padding:5px;background:#efece5;border:1px solid #9f855833;border-radius:10px}
.desktop-nav a{padding:10px 13px;border-radius:6px;color:#506279;font-size:13px;transition:background .2s,color .2s}
.desktop-nav a:hover,.desktop-nav a:focus-visible{background:#fff9;color:var(--navy)}
.desktop-nav a.active{background:var(--navy);color:#fff;box-shadow:0 3px 9px #092d6114}
.desktop-nav a.active:after{bottom:5px;inset-inline-start:50%;width:16px;height:1px;background:#d3b780;transform:translateX(50%)}
html[dir=ltr] .desktop-nav a.active:after{transform:translateX(-50%)}
.header-actions .language{font-family:var(--body);font-weight:500;padding:7px 9px;border-radius:6px;transition:background .2s;color:var(--navy)}
.header-actions .language:hover{background:#efece5}
.header-actions .contact-nav{background:transparent;border-color:#9f855866;border-radius:6px;transition:background .2s,color .2s}
.header-actions .contact-nav:hover{background:var(--navy);color:white}
.menu-button{background:#f5f1e9;border-color:#9f855855;color:var(--navy)}
.menu-button[aria-expanded=true]{background:var(--navy);color:white}
.menu-caption{font:500 11px/1.6 var(--body);color:#876d43;letter-spacing:.04em;padding:0 12px 14px;border-bottom:1px solid #9f85583b;margin-bottom:7px}
.menu-index{font:12px/1.5 var(--body);color:#94764b;width:24px;flex-shrink:0}
.menu-direction{margin-inline-start:auto;font:18px/1 Arial;color:#94764b}
html[dir=rtl] .menu-direction{transform:scaleX(-1)}
@media(min-width:1051px){.mobile-nav{display:none!important}}
@media(min-width:1051px) and (max-width:1200px){.desktop-nav a{font-size:11px;padding:10px 9px}.header-actions{gap:7px}}
@media(max-width:1050px){.desktop-nav{display:none}.menu-button{display:flex}.contact-nav{display:none}.mobile-nav{display:flex;flex-direction:column;position:absolute;top:100%;inset-inline:0;max-width:650px;margin-inline:auto;width:calc(100% - 36px);max-height:calc(100dvh - 140px);overflow-y:auto;padding:22px 16px 15px;background:#faf8f3;border:1px solid #9f855855;border-radius:0 0 12px 12px;box-shadow:0 20px 45px #092d6124;animation:menu-appear .2s ease-out}.mobile-nav[hidden]{display:none}.mobile-nav a{display:flex;align-items:center;gap:15px;padding:13px 12px;border:0;border-radius:6px;font-size:16px;min-height:49px;transition:background .2s,color .2s}.mobile-nav a.active{background:var(--navy);color:white}.mobile-nav a.active .menu-index,.mobile-nav a.active .menu-direction{color:#d3b780}.mobile-nav a:hover:not(.active){background:#ede7da;color:var(--navy)}}
@keyframes menu-appear{from{opacity:.65;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.mobile-nav{animation:none}.desktop-nav a,.header-actions .language,.header-actions .contact-nav,.mobile-nav a{transition:none}}
body[data-page=home] .section{padding-block:72px}
.chapter-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;border-block:1px solid var(--line);margin-bottom:36px}
.chapter-nav a{display:flex;align-items:center;gap:10px;padding:20px 12px;min-width:0;border-inline-end:1px solid var(--line);font-size:13px;transition:background .2s,color .2s}
.chapter-nav a:last-child{border-inline-end:0}.chapter-number{font:12px/1 var(--body);color:#876d43}.chapter-arrow{margin-inline-start:auto;color:var(--blue)}
.chapter-nav a:hover,.chapter-nav a:focus-visible{background:#efe9dc;color:var(--navy)}
html[dir=ltr] .chapter-arrow{transform:scaleX(-1)}
.chapter-section{scroll-margin-top:28px}.chapter-section h2:focus{outline:2px solid var(--gold);outline-offset:8px}
.paper-band{position:relative;isolation:isolate;background:#f5f1e9;overflow:hidden}
.paper-band:before{content:'';position:absolute;inset:0;z-index:-1;background:url('assets/decor/paper-texture.webp') 0 0/640px repeat;opacity:.33;pointer-events:none}
.paper-band .large-copy,.paper-band .bio-facts{background:#f5f1e9}
.paper-band .bio-intro{position:relative;padding-bottom:75px}
.paper-band .bio-intro:after{display:block;content:'';position:absolute;inset-inline-start:0;bottom:0;width:150px;height:100px;background:url('assets/decor/footer-quill.webp') center/contain no-repeat;opacity:.7;pointer-events:none}
.paper-band .bio-intro:before{content:'';position:absolute;inset-inline-start:0;bottom:15px;width:70px;border-top:1px solid #9f855860}
body[data-page=home] .publication-strip{padding-block:30px 38px}
.article-section.paper-band{background:#edf2f7}.article-section.paper-band:before{opacity:.18}
.article-section.paper-band .source-note{background:#edf2f7}
.editorial-stories .article-body{min-width:0}
.article-section .section-head{position:relative;border-bottom:1px solid #9f855855;padding-bottom:24px}
.editorial-stories{grid-template-columns:1.12fr 1fr;grid-template-rows:1fr 1fr;gap:20px}
.editorial-stories .article-card:first-child{grid-row:1/3}
.editorial-stories .article-card:first-child .article-image{height:280px}
.editorial-stories .article-card:first-child h3{font-size:29px}
.editorial-stories .article-card:not(:first-child){display:grid;grid-template-columns:.7fr 1fr}
.editorial-stories .article-card:not(:first-child) .article-image{height:100%;min-height:205px}
.editorial-stories .article-card:not(:first-child) .article-body{padding:22px 20px}
.editorial-stories .article-card:not(:first-child) h3{font-size:21px}
.article-card .article-image img{transition:transform .4s ease}
.article-card h3{text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:1px;text-underline-offset:6px;transition:text-decoration-color .25s}
.article-card:hover h3,.article-card:focus-visible h3{text-decoration-color:var(--gold)}
.article-card:hover .article-image img,.article-card:focus-visible .article-image img{transform:scale(1.025)}
.yisb-band{background:#e7eef6}.yisb-band .yisb-feature{box-shadow:0 20px 50px #092d6110}
.yisb-mosaic{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(255px,1.35fr) minmax(160px,1fr);gap:5px;background:#faf9f6}
.mosaic-main{grid-column:1/-1;min-width:0;min-height:0}.mosaic-small{min-width:0;min-height:0}
.yisb-mosaic .gallery-photo{height:100%}.yisb-mosaic .gallery-photo img{object-position:center}
.yisb-mosaic .mosaic-main .gallery-photo img{object-position:63% 40%}
.yisb-mosaic .mosaic-small .gallery-photo img{object-position:65% 45%}
.yisb-mosaic .yisb-logo{width:105px;bottom:auto;top:18px;inset-inline-start:18px}
.talks-band{background:#faf8f3;border-bottom:1px solid #9f855830}
.talks-band .section-head{border-bottom:1px solid #9f855850;padding-bottom:22px;margin-bottom:0}
.talks-band .events-list{border-top:0}
body[data-page=home] #chapter-elections{padding-block:45px}
body[data-page=home] #chapter-instagram{padding-top:32px}
.reading-progress{position:fixed;inset:0 0 auto;width:100%;height:3px;z-index:90;appearance:none;border:0;background:transparent;pointer-events:none;color:var(--gold)}
.reading-progress::-webkit-progress-bar{background:transparent}.reading-progress::-webkit-progress-value{background:#aa854c}.reading-progress::-moz-progress-bar{background:#aa854c}
.back-to-top{position:fixed;inset-inline-end:24px;bottom:24px;z-index:80;display:flex;align-items:center;gap:9px;padding:11px 15px;border:1px solid #c5a05d80;border-radius:30px;background:var(--navy);color:white;box-shadow:0 8px 22px #092d6124;font:500 12px/1.5 var(--body)}
.back-to-top:hover{background:var(--blue)}
/* Only approaching sections animate; no pre-hidden content or observer dependency. */
.section-entering{animation:chapter-enter .38s ease-out both}
@keyframes chapter-enter{from{opacity:.65;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1050px){.chapter-nav a{padding:18px 8px;font-size:11px;gap:7px}.chapter-arrow{display:none}.editorial-stories .article-card:not(:first-child){grid-template-columns:.6fr 1fr}.editorial-stories .article-card:not(:first-child) .article-body{padding:18px 15px}.editorial-stories .article-card:not(:first-child) h3{font-size:18px}}
@media(max-width:900px){.editorial-stories{grid-template-columns:1fr;grid-template-rows:auto}.editorial-stories .article-card:first-child{grid-row:auto}.home-articles .article-card:last-child{display:grid}.editorial-stories .article-card:not(:first-child){grid-template-columns:.65fr 1fr}.yisb-mosaic{grid-template-rows:minmax(235px,1fr) 150px}}
@media(max-width:640px){body[data-page=home] .section{padding-block:48px}.chapter-nav{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:24px}.chapter-nav a{padding:15px 9px;font-size:11px;gap:7px}.chapter-nav a:nth-child(3){border-inline-end:0}.chapter-nav a:nth-child(-n+3){border-bottom:1px solid var(--line)}.paper-band .bio-intro{padding-bottom:0}.paper-band .bio-intro:before,.paper-band .bio-intro:after{display:none}.editorial-stories .article-card:first-child .article-image{height:225px}.editorial-stories .article-card:first-child h3{font-size:24px}.editorial-stories .article-card:not(:first-child),.home-articles .article-card:last-child{display:flex}.editorial-stories .article-card:not(:first-child) .article-image{height:195px;min-height:0}.editorial-stories .article-card:not(:first-child) .article-body{padding:23px}.editorial-stories .article-card:not(:first-child) h3{font-size:21px}.yisb-feature-photo.yisb-mosaic{height:auto;grid-template-rows:230px 140px}.yisb-mosaic .yisb-logo{width:90px;padding:8px;top:12px;inset-inline-start:12px}.yisb-mosaic .photo-enlarge{width:30px;height:30px;bottom:10px;inset-inline-end:10px}.back-to-top{inset-inline-end:16px;bottom:16px;font-size:11px;padding:10px 12px}body[data-page=home] #chapter-elections{padding-block:25px}}
@media(prefers-reduced-motion:reduce){.section-entering{animation:none}.article-card .article-image img,.article-card h3,.chapter-nav a{transition:none}.article-card:hover .article-image img,.article-card:focus-visible .article-image img{transform:none}}
