/* Shared, RTL disclosure navigation across the library and study pages. */
header{position:relative;z-index:50}
header .site-main-nav{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 16px;font:500 18px/1.5 Assistant,Arial,sans-serif;position:relative}
.site-main-nav .nav-disclosure{position:relative}
.site-main-nav .nav-disclosure-label{display:flex;align-items:center;gap:1px;white-space:nowrap}
.site-main-nav>.nav-disclosure>.nav-disclosure-label>a,.site-main-nav>a{padding:8px 0;display:block}
.site-main-nav .nav-disclosure-toggle{display:flex;align-items:center;justify-content:center;width:30px;min-height:40px;border:0;border-radius:8px;background:transparent;color:#006e7b;cursor:pointer;padding:0;flex-shrink:0;font:inherit}
.site-main-nav .nav-disclosure-toggle:hover,.site-main-nav .is-open>.nav-disclosure-label{background:#e0eddf;border-radius:8px}
.site-main-nav .nav-disclosure-toggle svg{transition:transform .16s}
.site-main-nav .is-open>.nav-disclosure-label .nav-disclosure-toggle svg{transform:rotate(180deg)}
.site-main-nav .nav-submenu{position:absolute;inset-inline-start:-14px;top:100%;min-width:220px;max-height:min(65vh,520px);overflow:auto;overscroll-behavior:contain;padding:12px;background:#f4f0e4;border:1px solid #bad0c6;border-top:3px solid #629c77;border-radius:0 0 14px 14px;box-shadow:0 12px 26px #193b3d26;z-index:60;text-align:start}
.site-main-nav .nav-submenu[hidden]{display:none!important}
.site-main-nav .nav-submenu a{display:block;padding:8px 12px;border:0;border-radius:8px;color:#006e7b;background:transparent;font-size:18px;line-height:1.5;white-space:nowrap;text-decoration:none}
.site-main-nav .nav-submenu a:hover,.site-main-nav .nav-submenu a:focus-visible{background:#dfebdc;text-decoration:underline;text-underline-offset:4px}
.site-main-nav .nav-submenu-books{display:grid;grid-template-columns:1fr 1fr;gap:16px;min-width:340px}
.site-main-nav .nav-book-group{padding:0;margin:0;border:0;background:transparent}
.site-main-nav .nav-book-group h2{font:700 16px/1.5 Assistant,Arial,sans-serif;color:#526e70;margin:2px 12px 6px;padding-bottom:7px;border-bottom:1px solid #bad0c6}
.site-main-nav a:focus-visible,.site-main-nav button:focus-visible{outline:3px solid #629c77;outline-offset:3px}
@media(max-width:1100px) and (min-width:901px){header .brand-label{display:none}}
@media(max-width:900px){
 header .header-inner{flex-direction:column;gap:10px;padding:14px 0;min-height:0}
 header .brand-label{display:none}
 header .brand-logo{width:160px}
 header .site-main-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 10px;width:100%;font-size:16px}
 .site-main-nav>.nav-disclosure{position:static;min-width:0}
 .site-main-nav .nav-disclosure-label{justify-content:center}
 .site-main-nav>a{text-align:center;white-space:nowrap;min-height:44px;display:flex;align-items:center;justify-content:center}
 .site-main-nav .nav-disclosure-toggle{width:32px;min-height:44px}
 .site-main-nav .nav-submenu{inset-inline:0;top:calc(100% + 10px);min-width:0;max-height:min(60vh,440px);padding:10px;border-radius:0 0 14px 14px}
 .site-main-nav .nav-submenu a{min-height:44px;font-size:17px;padding:9px 12px}
 .site-main-nav .nav-submenu-books{min-width:0;gap:8px}
}
@media(max-width:360px){header .site-main-nav{font-size:14px;gap:2px 5px}.site-main-nav .nav-disclosure-toggle{width:26px}}
@media(prefers-reduced-motion:reduce){.site-main-nav .nav-disclosure-toggle svg{transition:none}}
@media print{header .site-main-nav{display:none}}
/* Brand row and navigation share one deliberate, responsive header. */
header .header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 24px;padding:12px 0 0;min-height:0;align-items:center}
header .library-home-link{justify-self:start;color:#006e7b;font:600 23px/1.3 Assistant,Arial,sans-serif;padding:10px 0;white-space:nowrap}
header .header-tools{display:flex;align-items:center;gap:25px;justify-self:end}
header .arava-header-link{display:flex;align-items:center;padding:6px 0;flex-shrink:0}
header .arava-header-link img{display:block;width:92px;height:auto}
header .header-search-slot{display:flex;align-items:center;min-height:44px}
header .site-main-nav{grid-column:1/-1;width:100%;margin-top:8px;padding:7px 0;border-top:1px solid #d9e5df;gap:8px 30px}
.library-home-link:focus-visible,.arava-header-link:focus-visible,.personal-contact a:focus-visible{outline:3px solid #629c77;outline-offset:4px}
.personal-contact{width:min(1160px,calc(100% - 64px));margin:0 auto;padding:30px 0 36px;border-top:1px solid #d9e5df;text-align:center;color:#006e7b;font:18px/1.6 Assistant,Arial,sans-serif}
.personal-contact h3{font:600 25px/1.3 Assistant,Arial,sans-serif;margin:0 0 7px}.personal-contact p{font-size:16px;margin:0 0 18px;color:#526e70}
.personal-contact-links{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap}.personal-contact-links a{display:flex;align-items:center;gap:9px;min-height:44px;padding:9px 18px;border:1px solid #bad0c6;border-radius:24px;text-decoration:none;font-size:17px;background:#f4f0e4}.personal-contact-links a:hover{background:#dfebdc}.contact-symbol{font:bold 26px/1 Arial,sans-serif;width:22px;text-align:center}
@media(max-width:900px){header .header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;padding:10px 0 0}header .library-home-link{font-size:21px}header .header-tools{gap:14px}header .arava-header-link img{width:76px}header .site-main-nav{display:grid;margin-top:7px;padding:6px 0;gap:2px 10px;font-size:16px}.personal-contact{width:calc(100% - 32px)}}
@media(max-width:360px){header .header-tools{gap:8px}header .library-home-link{font-size:19px}header .arava-header-link img{width:64px}.personal-contact-links{gap:8px}.personal-contact-links a{padding:8px 12px;font-size:16px}}
@media print{.personal-contact,header .header-tools{display:none!important}}
/* One continuous header row; smaller screens use a compact menu. */
header .header-inner{position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;width:min(1280px,calc(100% - 48px));min-height:78px;padding:10px 0;gap:22px}
header .library-home-link{order:0;flex-shrink:0;font-size:21px;padding:8px 0}
header .site-main-nav{order:1;display:flex;flex:1;flex-wrap:nowrap;width:auto;margin:0;padding:0;border:0;gap:18px;justify-content:center;font-size:17px;position:relative}
header .site-main-nav>a{white-space:nowrap}header .nav-disclosure-toggle{width:24px}
header .header-tools{order:2;flex-shrink:0;gap:18px;margin-inline-start:auto}
header .arava-header-link img{width:80px}
.header-menu-toggle{display:none}
@media(min-width:1001px) and (max-width:1200px){header .header-inner{gap:16px}header .site-main-nav{gap:13px;font-size:16px}header .header-tools{gap:12px}header .arava-header-link img{width:72px}header .header-tools .global-search-trigger{width:44px;flex-basis:44px;height:44px;padding:11px;justify-content:center}header .global-search-trigger span{display:none}}
@media(max-width:1000px){header .header-inner{width:calc(100% - 32px);min-height:70px;gap:14px;padding:10px 0}header .library-home-link{font-size:21px}header .header-tools{gap:13px}header .arava-header-link img{width:72px}.header-menu-toggle{order:1;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #bad0c6;border-radius:50%;background:transparent;color:#006e7b;flex-shrink:0;cursor:pointer}header .header-tools .global-search-trigger{position:static;width:44px;flex-basis:44px;height:44px;padding:11px;justify-content:center}header .global-search-trigger span{display:none}header .site-main-nav{display:none;position:absolute;top:100%;inset-inline:0;padding:12px;background:#f4f0e4;border:1px solid #bad0c6;border-radius:0 0 14px 14px;box-shadow:0 12px 26px #193b3d26;z-index:65}header .site-main-nav.mobile-menu-open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;font-size:17px}header .site-main-nav>a{justify-content:center;text-align:center;min-height:44px;display:flex;align-items:center}header .nav-disclosure-label{justify-content:center}header .site-main-nav .nav-disclosure{position:static}header .site-main-nav .nav-submenu{inset-inline:0;top:100%;min-width:0;max-height:60vh}.header-menu-toggle:focus-visible{outline:3px solid #629c77;outline-offset:3px}}
@media(max-width:390px){header .header-inner{gap:8px}header .library-home-link{font-size:19px}header .header-tools{gap:8px}header .arava-header-link img{width:60px}}
@media print{.header-menu-toggle{display:none!important}}
/* Email choices work in the browser without a desktop mail application. */
.personal-contact-links .email-contact-trigger{display:flex;align-items:center;gap:9px;min-height:44px;padding:9px 18px;border:1px solid #bad0c6;border-radius:24px;font:17px/1.6 Assistant,Arial,sans-serif;color:#006e7b;background:#f4f0e4;cursor:pointer}.personal-contact-links .email-contact-trigger:hover{background:#dfebdc}
.email-contact-dialog{box-sizing:border-box;width:min(460px,calc(100vw - 32px));max-height:85dvh;overflow:auto;border:1px solid #bad0c6;border-radius:20px;padding:24px;background:#f4f0e4;color:#006e7b;font:18px/1.6 Assistant,Arial,sans-serif;text-align:right;box-shadow:0 20px 70px #193b3d44}.email-contact-dialog::backdrop{background:#102f3b99}.email-contact-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.email-contact-heading h2{font:600 25px/1.3 Assistant,Arial,sans-serif;margin:0}.email-contact-close{border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:8px}.email-contact-dialog p{font-size:17px;margin:14px 0}.email-contact-dialog label{display:block;font-size:16px}.email-contact-dialog input{width:100%;box-sizing:border-box;border:1px solid #bad0c6;border-radius:10px;padding:10px;background:#fffdf7;color:#193b3d;font:17px/1.6 Arial,sans-serif;direction:ltr;text-align:center}.email-contact-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.email-contact-actions a,.email-contact-actions button{border:1px solid #006e7b;border-radius:22px;padding:9px 16px;background:#006e7b;color:white;text-decoration:none;font:17px/1.6 Assistant,Arial,sans-serif;cursor:pointer}.email-contact-actions button{background:transparent;color:#006e7b}.email-contact-dialog :focus-visible,.email-contact-trigger:focus-visible{outline:3px solid #629c77;outline-offset:3px}.email-contact-status{min-height:1.6em;color:#526e70}
/* The approved wordmark replaces the temporary home label. */
header .library-home-link{display:flex;align-items:center;padding:0}
header .library-home-link .beit-midrash-logo{display:block;width:190px;height:auto;mix-blend-mode:multiply}
.footer-library-brand{display:inline-flex;align-items:center;flex-shrink:0}.footer-library-brand img{display:block;width:170px;height:auto;mix-blend-mode:multiply}footer.wrap{align-items:center}
@media(min-width:1001px) and (max-width:1200px){header .library-home-link .beit-midrash-logo{width:170px}header .header-inner{gap:14px}header .site-main-nav{gap:11px}}
@media(max-width:1000px){header .library-home-link .beit-midrash-logo{width:154px}}
@media(max-width:390px){header .library-home-link .beit-midrash-logo{width:138px}}
@media(max-width:350px){header .library-home-link .beit-midrash-logo{width:116px}header .arava-header-link img{width:50px}header .header-tools{gap:5px}}
