/* ChabadBuffaloHistory.com: the archival look (warm ivory, charcoal, muted burgundy, subtle gold; Cormorant Garamond
   headings, Source Serif 4 for reading). Loaded LAST on every page, after site.css and the snippets' article styles,
   so it recolors both without touching chabadbuffalo.com. Also: header search, Timeline, Places map, Archives, Search. */
:root,body.cbh-post,body .cbh-page,body .cbh-home{
  --ivory:#f8f4ea;--paper:#f0e9da;--card:#fffcf5;--band:#f0e9da;
  --ink:#2a2622;--muted:#6a6158;--rule:#dccfb9;
  --accent:#7b2738;--accent-ink:#fff;--brass:#8a6a24;--gold:#b8963f;--dark:#2a2420;--mark:#f3e2b3;
  --f-head:"Cormorant Garamond",Garamond,"Times New Roman",serif;--f-display:var(--f-head)}
body .cbh-page{--paper:var(--ivory)}
body,body.cbh-post,body.hub-page{background:var(--ivory);color:var(--ink)}
[hidden]{display:none!important}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
::selection{background:var(--mark)}

/* headings: one elegant serif everywhere */
.hero h1,.sec h2,.head h2,.pmast h1,.explore h2,.chapters .ct,.chapters .yrs,.facts .y,.card .name,.explore .xt,.fbrand,.h404,
body.cbh-post .entry-content :is(h2,h3),body.hub-page .cbh-page :is(h1,h2,h3){font-family:var(--f-head)!important;font-size-adjust:.44}
.hero h1,.pmast h1{color:var(--accent);font-weight:600;letter-spacing:-.005em}
.sec h2,.head h2{font-weight:600}
body.cbh-post .entry-content h2{font-weight:600!important}
body.cbh-post .entry-content h3{font-weight:700!important}
.kicker{color:var(--muted)}
.hero-k{font:600 .76rem/1.3 var(--f-ui);text-transform:uppercase;letter-spacing:.16em;color:var(--brass);font-style:normal}
.hero-k::after{content:"";display:block;width:3.2rem;height:1px;background:var(--gold);margin-top:.8rem}

/* links and buttons */
a{color:var(--accent)}
body.cbh-post .entry-content a{color:var(--accent)}
body.cbh-post .entry-content a:hover{color:var(--ink)}
.btn{background:var(--ink);border-color:var(--ink)}
.btn:hover{background:var(--accent);border-color:var(--accent)}
.btn.line{background:none;color:var(--ink)}
.btn.line:hover{background:var(--ink);color:var(--ivory)}

/* header */
.top{background:rgba(248,244,234,.96);border-bottom-color:var(--rule)}
.top .wrap{position:relative}
.top nav{margin-left:auto}
.top nav a:hover{color:var(--accent)}
.top nav .btn-sm{border-color:var(--accent);color:var(--accent)}
.top nav .btn-sm:hover{background:var(--accent);color:#fff}
.search-btn{display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:none;color:var(--ink);cursor:pointer;flex:none}
.search-btn:hover,.top.searching .search-btn{color:var(--accent);background:var(--paper)}
.search-panel{display:none;position:absolute;top:100%;left:-16px;right:-16px;padding:.8rem 16px;background:var(--ivory);border-bottom:1px solid var(--rule);box-shadow:0 10px 24px rgba(42,36,30,.12);gap:.5rem}
.top.searching .search-panel{display:flex}
.search-panel input,.sr-form input{flex:1;min-width:0;font:400 1.05rem/1.2 var(--f-ui);padding:.8rem 1rem;border:1px solid var(--rule);border-radius:6px;background:var(--card);color:var(--ink)}
.search-panel input:focus,.sr-form input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
.search-panel button,.sr-form button{font:600 .95rem/1 var(--f-ui);padding:0 1.2rem;border:0;border-radius:6px;background:var(--ink);color:#fff;cursor:pointer}
.search-panel button:hover,.sr-form button:hover{background:var(--accent)}
@media (min-width:1001px){.search-panel{left:auto;width:min(34rem,100%);border:1px solid var(--rule);border-top:0;border-radius:0 0 8px 8px}}
@media (max-width:1000px){.top nav{margin-left:0;background:var(--ivory)}.top .wrap{justify-content:flex-start}.top .brand{margin-right:auto}.search-btn{margin-right:2px}}

/* home */
.hero{background:var(--paper);border-bottom-color:var(--rule)}
.hero-figs img,.as-figs img{filter:sepia(.18) saturate(.85)}
.hero-figs figure,.as-figs figure{background:var(--card);padding:.45rem .45rem .5rem;border:1px solid var(--rule);box-shadow:0 1px 2px rgba(60,40,20,.08),0 8px 22px rgba(60,40,20,.07)}
.hero-figs figcaption{padding:0 .1rem}
.facts{background:var(--ivory);border-bottom-color:var(--rule)}
.facts li+li{border-left-color:var(--rule)}
.facts .y{color:var(--brass);font-size:2.3rem}
.sec.alt{background:var(--paper);border-color:var(--rule)}
.chapters{border-top-color:var(--ink)}
.chapters li{border-bottom-color:var(--rule)}
.chapters .yrs{color:var(--brass);font-size:2.2rem}
.chapters .ct{font-size:1.55rem}
.chapters .go,.chapters a:hover .ct{color:var(--accent)}
.group h3{color:var(--brass);border-bottom-color:var(--rule)}
.card .pic{background:var(--paper)}
.card .pic img{filter:sepia(.15) saturate(.85)}
.card .role{color:var(--brass)}
.card .name{font-size:1.32rem}
.card:hover .name{color:var(--accent)}
.sec.dark{background:var(--dark);color:#efe7d8}
.sec.dark .kicker{color:#d4b46a}
.ways a{border-color:rgba(239,231,216,.4)}
.ways a:hover{background:var(--ivory);color:var(--ink)}
/* “You are not alone” on the home page */
.assurance{background:var(--dark);color:#efe7d8}
.as-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:3.5rem;align-items:center}
.assurance .kicker{color:#d4b46a}
.assurance h2{color:#fff;margin:0 0 1.6rem}
.assurance blockquote{margin:0 0 1.5rem;padding:0 0 0 1.3rem;border-left:2px solid var(--gold)}
.assurance blockquote p{font:italic 500 clamp(1.3rem,2.2vw,1.6rem)/1.35 var(--f-head);color:#fff;margin:0 0 .4rem;font-size-adjust:.44}
.assurance blockquote p.he{font:400 1.25rem/1.6 "Frank Ruhl Libre",serif;font-style:normal;color:#e6dcc8;text-align:right;direction:rtl;unicode-bidi:isolate;font-size-adjust:none}
.assurance cite{display:block;font:500 .82rem/1.4 var(--f-ui);font-style:normal;color:#d4b46a}
.assurance .more a{color:#fff}
.as-figs{display:grid;grid-template-columns:1fr 1fr;gap:1rem;align-items:start}
.as-figs figure{margin:0;background:#f3ecdd}
.as-figs figure:nth-child(2){margin-top:2.5rem}
.as-figs figcaption{font:400 .74rem/1.4 var(--f-ui);color:var(--muted);margin-top:.4rem}
.he-q{display:inline-block;transform:scaleX(-1)}

/* page header and "Continue exploring" */
.pmast .wrap{border-bottom-color:var(--rule)}
.pmast .pm-series{border-bottom-color:var(--ink)}
.explore{background:var(--paper);border-top-color:var(--rule)}
.explore .xgrid a{background:var(--card);border-color:var(--rule)}
.explore .xgrid a:hover{border-color:var(--accent)}
.explore .xk{color:var(--brass)}
.explore .xt{font-size:1.32rem}
.explore .xt::after{color:var(--accent)}

/* footer: short */
.foot{background:#1f1b18;color:#bfb5a6}
.foot a{color:#efe7d8}
.foot .wrap{grid-template-columns:1.8fr 1fr 1.2fr}
.fh{color:#c9a85a}
.fsites{grid-column:1/-1;margin:.6rem 0 0;font-size:.84rem;color:#9e9485}
.fsites a{color:#d8cfbf}
.legal{border-top-color:#3a332c;color:#9e9485}
@media (max-width:900px){.foot .wrap{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.foot .wrap{grid-template-columns:minmax(0,1fr)}}

/* the history menu (snippet colors) */
body .cbh-hm ul{border-left-color:var(--rule)!important}
body .cbh-hm li a{color:var(--muted)!important}
body .cbh-hm li a:hover,body .cbh-hm li a.on{color:var(--ink)!important}
body .cbh-hm li a.on{border-left-color:var(--accent)!important}
body .cbh-hm-g,body .cbh-hm-hub small{color:var(--brass)!important}
body .cbh-hm-hub{font-family:var(--f-head)!important;font-size:1.15rem!important;color:var(--ink)!important;border-bottom-color:var(--rule)!important}
body .cbh-hm-hub:hover,body .cbh-hm-all{color:var(--accent)!important}

/* Timeline: a vertical line of dates, with photographs from the history page */
.page-timeline .tl-intro,.page-places .tl-intro,.page-archives .tl-intro{font-size:1.08rem;color:var(--muted);max-width:44rem}
body.page-timeline .entry-content ol.tl{list-style:none;position:relative;margin:1.4rem 0 3rem!important;padding:0 0 0 2.1rem!important;max-width:46rem}
.tl::before{content:"";position:absolute;left:.5rem;top:.5rem;bottom:.5rem;width:2px;background:linear-gradient(var(--gold),var(--rule))}
body.page-timeline .entry-content .tl-i{position:relative;margin:0 0 2rem!important;padding:0}
.tl-i::before{content:"";position:absolute;left:calc(-2.1rem + .5rem - 6px + 1px);top:.55rem;width:12px;height:12px;border-radius:50%;background:var(--ivory);border:2px solid var(--accent);box-sizing:border-box}
.tl-i.has-pic::before{background:var(--accent)}
body.page-timeline .entry-content .tl-when{font:600 1.65rem/1.1 var(--f-head);font-size-adjust:.44;color:var(--brass);margin:0 0 .25rem}
body.page-timeline .entry-content .tl-txt{margin:0;font-size:1.06rem;line-height:1.55}
body.page-timeline .entry-content .tl-i figure{margin:.8rem 0 0;width:fit-content;max-width:min(22rem,100%);background:var(--card);padding:.45rem .45rem .5rem;border:1px solid var(--rule);box-shadow:0 1px 2px rgba(60,40,20,.08),0 8px 22px rgba(60,40,20,.06)}
body.page-timeline .entry-content .tl-i figure img{display:block;width:auto;max-width:100%;max-height:19rem;filter:sepia(.12) saturate(.9)}
body.page-timeline .entry-content .tl-i figcaption{font-size:.76rem!important;max-width:21rem}
@media (min-width:760px){
  body.page-timeline .entry-content .tl-i.has-pic{display:grid;grid-template-columns:minmax(0,1fr) 15rem;grid-template-rows:auto 1fr;gap:0 1.6rem;align-items:start}
  body.page-timeline .entry-content .tl-i.has-pic figure{grid-column:2;grid-row:1/3;margin:0;justify-self:end}
  body.page-timeline .entry-content .tl-i.has-pic figure img{max-height:13rem}
}

/* Places: map of the Chabad buildings, numbered like the list */
.pl-map-wrap{margin:1.4rem 0 2.4rem}
#pl-map{height:32rem;border:1px solid var(--rule);background:var(--paper);box-shadow:0 1px 2px rgba(60,40,20,.08);z-index:0}
#pl-map .leaflet-tile-pane{filter:sepia(.3) saturate(.75) brightness(1.02)}
#pl-map:focus{outline:2px solid var(--accent);outline-offset:2px}
.pl-pin span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--accent);color:#fff;font:600 .82rem/1 var(--f-ui);border:2px solid var(--card);box-shadow:0 1px 4px rgba(0,0,0,.35);box-sizing:border-box}
.pl-pin.now span{background:var(--gold);color:var(--ink)}
.pl-legend{display:flex;gap:1.4rem;flex-wrap:wrap;font:400 .82rem/1.4 var(--f-ui)!important;color:var(--muted);margin:.6rem 0 0!important}
.pl-legend .k::before{content:"";display:inline-block;width:.8rem;height:.8rem;border-radius:50%;margin-right:.4rem;vertical-align:-.1rem;background:var(--accent)}
.pl-legend .k.now::before{background:var(--gold)}
#pl-map .leaflet-popup-content-wrapper{border-radius:4px;background:var(--card)}
#pl-map .leaflet-popup-content{margin:.8rem .9rem;font-family:var(--f-ui)}
#pl-map .leaflet-popup-content img{width:100%;height:120px;object-fit:cover;margin:0 0 .55rem;border-radius:2px;filter:sepia(.15)}
#pl-map .leaflet-popup-content p{margin:0 0 .2rem!important;max-width:none!important}
#pl-map .pp-when{font:500 .74rem/1.3 var(--f-mono)!important;color:var(--brass)!important}
#pl-map .pp-where{font:600 1.15rem/1.2 var(--f-head)!important;color:var(--ink)!important}
#pl-map .pp-what{font:400 .84rem/1.4 var(--f-ui)!important;color:var(--muted)!important}
body.page-places .entry-content ol.places li{grid-template-columns:2.2rem 8.5rem minmax(0,1fr);gap:1rem;align-items:start;transition:background .2s}
body.page-places .entry-content ol.places li.on{background:var(--paper)}
.pl-n{display:grid;place-items:center;width:1.9rem;height:1.9rem;padding:0;border-radius:50%;border:0;background:var(--accent);color:#fff;font:600 .78rem/1 var(--f-ui);cursor:pointer;margin-top:.05rem}
span.pl-n{background:none}
.pl-i.now .pl-n{background:var(--gold);color:var(--ink)}
button.pl-n:hover{outline:2px solid var(--ink);outline-offset:1px}
.pl-when{font:500 .8rem/1.6 var(--f-mono);color:var(--brass);padding-top:.15rem}
.pl-when em{display:block;font:italic 400 .82rem/1.3 var(--f-body);color:var(--muted)}
@media (max-width:640px){
  #pl-map{height:24rem}
  body.page-places .entry-content ol.places li{grid-template-columns:2.2rem minmax(0,1fr);gap:.1rem .8rem}
  body.page-places .entry-content ol.places .pl-n{grid-row:1/3}
}

/* Archives: every photograph and document, by article */
.ar-chips{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.4rem 0 2rem}
.ar-chips button{font:500 .88rem/1 var(--f-ui);padding:.6rem .95rem;border:1px solid var(--rule);border-radius:99px;background:var(--card);color:var(--ink);cursor:pointer}
.ar-chips button span{color:var(--muted);margin-left:.15rem}
.ar-chips button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:#fff}
.ar-chips button[aria-pressed="true"] span{color:#f3dfe3}
.ar-g{margin:0 0 2.6rem}
body.page-archives .entry-content .ar-g h2{margin:0 0 .2rem!important}
body.page-archives .entry-content .ar-from{margin:0 0 1rem;font:500 .88rem/1.3 var(--f-ui)}
.ar-grid{columns:3 13rem;column-gap:1rem}
body.page-archives .entry-content .ar-i{break-inside:avoid;margin:0 0 1rem;background:var(--card);border:1px solid var(--rule);padding:.45rem .45rem .55rem;box-shadow:0 1px 2px rgba(60,40,20,.06)}
.ar-open{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in}
.ar-open img{display:block;width:100%;height:auto;filter:sepia(.12) saturate(.9);transition:filter .2s}
.ar-open:hover img{filter:none}
body.page-archives .entry-content .ar-i figcaption{font-size:.76rem!important;line-height:1.4!important;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.ar-dlg{max-width:min(62rem,94vw);max-height:94vh;padding:1rem 1rem .8rem;border:0;border-radius:6px;background:var(--card);color:var(--ink);box-shadow:0 20px 60px rgba(0,0,0,.4)}
.ar-dlg::backdrop{background:rgba(26,21,17,.82)}
.ar-dlg img{display:block;max-width:100%;max-height:76vh;margin:0 auto;object-fit:contain}
.ar-cap{font:400 .9rem/1.5 var(--f-ui);color:var(--muted);margin:.7rem 0 .3rem;max-width:52rem}
.ar-dfrom{font:600 .9rem/1.3 var(--f-ui);margin:0}
.ar-x{position:absolute;top:.3rem;right:.4rem;width:2.4rem;height:2.4rem;border:0;background:var(--card);border-radius:50%;font:400 1.8rem/1 var(--f-ui);color:var(--ink);cursor:pointer}

/* Search page */
.sr-wrap{padding:2rem 0 4rem}
.sr-form{display:flex;gap:.5rem;margin:0 0 1.6rem}
.sr-form button{padding:0 1.4rem}
.sr-count{font:400 .95rem/1.4 var(--f-ui);color:var(--muted)}
.sr-h{font:500 .76rem/1.4 var(--f-mono)!important;text-transform:uppercase;letter-spacing:.06em;color:var(--brass);border-bottom:1px solid var(--rule);padding-bottom:.5rem;margin:2rem 0 .4rem!important}
ol.sr{list-style:none;margin:0;padding:0}
ol.sr li{padding:1rem 0;border-bottom:1px solid var(--rule)}
.sr-t{font:600 1.35rem/1.25 var(--f-head);font-size-adjust:.44;text-decoration:none;color:var(--ink)}
.sr-t:hover{color:var(--accent);text-decoration:underline;text-decoration-thickness:1px}
.sr-s{margin:.35rem 0 0;font-size:.98rem;color:var(--muted)}
.sr-s mark{background:var(--mark);color:var(--ink);padding:0 .1em}

@media (max-width:900px){.as-grid{grid-template-columns:minmax(0,1fr);gap:2rem}}
.hero-k .lc{text-transform:none}
.hero-figs .f1{align-self:center}
@media (max-width:440px){.brand{gap:.45rem}.brand .mark{height:32px}.brand .wm{font-size:.96rem}.search-btn{width:38px;height:38px}}
@media (max-width:360px){.brand .mark{height:28px}.brand .wm{font-size:.88rem}}
body.hub-page .cbh-page .mast h1{color:var(--accent)!important}
.head .more{margin-top:1.2rem}
/* home: Timeline, Places and Archives continue the chapter list of "The full history" (no separate section) */
.sec .xgrid.more-in{list-style:none;margin:2rem 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.xgrid.more-in li{margin:0}
.xgrid.more-in a{display:block;height:100%;box-sizing:border-box;background:var(--card);border:1px solid var(--rule);border-radius:6px;padding:1.1rem 1.2rem 1.25rem;text-decoration:none;color:var(--ink);transition:border-color .15s ease,transform .15s ease}
.xgrid.more-in a:hover{border-color:var(--accent);transform:translateY(-2px)}
.xgrid.more-in .xk{display:block;font:500 .72rem/1.35 var(--f-mono);text-transform:uppercase;letter-spacing:.05em;color:var(--brass);margin-bottom:.5rem}
.xgrid.more-in .xt{display:block;font:600 1.32rem/1.25 var(--f-head);font-size-adjust:.44;margin-bottom:.4rem}
.xgrid.more-in .xt::after{content:"\00a0→";color:var(--accent)}
.xgrid.more-in .xd{display:block;font:400 .9rem/1.45 var(--f-ui);color:var(--muted)}
@media (max-width:900px){.sec .xgrid.more-in{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.sec .xgrid.more-in{grid-template-columns:minmax(0,1fr)}}
/* People: the two groups (Chabad / outside Chabad) with real headings */
.group h3{font:600 clamp(1.5rem,2.6vw,1.95rem)/1.2 var(--f-head)!important;font-size-adjust:.44;text-transform:none;letter-spacing:0;color:var(--ink);border-bottom:1px solid var(--ink);padding-bottom:.55rem;margin:0 0 .4rem}
.group h3 .gk{display:block;font:500 .72rem/1.4 var(--f-mono);font-size-adjust:none;text-transform:uppercase;letter-spacing:.08em;color:var(--brass);margin-bottom:.35rem}
.group + .group{margin-top:4rem}
/* "Help preserve this history": a small column of the footer */
.fsmall{font-size:.86rem;color:#bfb5a6;margin:0 0 .6rem}
#contribute{scroll-margin-top:6rem}
/* Archives: book pages (PDF) */
body.page-archives .entry-content .ar-book figcaption{-webkit-line-clamp:unset!important;display:block!important;font-size:.8rem!important}
.ar-book .ar-open{cursor:pointer}
/* the page header now carries the article's opening: Hebrew name, title, dates */
.pmast .pm-pre{margin:-.2rem 0 1.2rem;max-width:46rem}
.pmast .pm-pre h2{font:400 1.45rem/1.35 "Frank Ruhl Libre",var(--f-body)!important;color:var(--ink);margin:0 0 .5rem!important;padding:0;border:0;text-align:left}
.pmast .pm-pre h2 strong{font-weight:500}
.pmast .pm-pre h2 em{display:inline-block;font:italic 500 1.3rem/1.3 var(--f-head);font-size-adjust:.44;color:var(--muted)}
.pmast .pm-pre h2 em strong{font-weight:500}
.pmast .pm-pre p{font:400 .95rem/1.6 var(--f-ui);color:var(--muted);margin:0 0 .5rem}
.pmast .pm-pre p strong{font-weight:500;color:var(--ink)}
.pmast .pm-pre p em{font-family:var(--f-body)}
.pmast .pm-pre a{color:var(--accent)}
.pmast .pm-pre+.pm-sub{border-top:1px solid var(--rule);padding-top:1rem}
/* "You are not alone" page: the two Rebbeim and the quotes in the home-page look */
.as-page{position:relative;height:0}
.as-page .as-figs{position:absolute;right:0;top:2.4rem;width:14rem;display:grid;grid-template-columns:minmax(0,1fr);gap:1.2rem;z-index:1}
.as-page .as-figs figure{margin:0;background:var(--card);padding:.45rem .45rem .5rem;border:1px solid var(--rule);box-shadow:0 1px 2px rgba(60,40,20,.08),0 8px 22px rgba(60,40,20,.07)}
.as-page .as-figs img{filter:sepia(.18) saturate(.85);width:100%;height:auto}
.as-page .as-figs figcaption{font:400 .74rem/1.4 var(--f-ui);color:var(--muted);margin-top:.4rem}
@media (min-width:1101px){body.assurance-page .article-grid article{padding-right:16rem}}
@media (max-width:1100px){.as-page{height:auto;margin-top:1.6rem}.as-page .as-figs{position:static;width:auto;grid-template-columns:repeat(2,minmax(0,12rem))}}
body.assurance-page .entry-content blockquote{border-left:2px solid var(--gold)!important;padding:.2rem 0 .2rem 1.3rem!important;background:none}
body.assurance-page .entry-content blockquote p:not(.he){font:italic 500 1.5rem/1.35 var(--f-head)!important;font-size-adjust:.44;color:var(--accent)!important}
body.assurance-page .entry-content blockquote p.he{font:400 1.3rem/1.6 "Frank Ruhl Libre",serif!important;color:var(--ink)}
body.assurance-page .entry-content blockquote cite{color:var(--brass)!important;font:500 .82rem/1.4 var(--f-ui)!important}
/* left menu (bjh_hist_menu): the site's pages, then the two groups of rabbonim, all in one list style */
.bjh-menu .cbh-hm-g{font:500 .72rem/1.3 var(--f-mono)!important;text-transform:uppercase;letter-spacing:.05em;margin:1.5rem 0 .45rem!important}
.bjh-menu .cbh-hm-g:first-child{margin-top:0!important}
.article-grid aside .bjh-menu,.cbh-nav .bjh-menu{border-top:1px solid var(--rule);padding-top:1.2rem;margin-top:1.4rem}
.article-grid aside>.bjh-menu:first-child{border-top:0;padding-top:0;margin-top:0}
.fscope{font-size:.84rem;color:#9e9485;margin:.8rem 0 0}
.fsites{text-align:left}
