/* cypbuffalo.com — copy of the ChabadSuite CYP theme used by cyppittsburgh.com ("blue" skin),
   with the teal of the CYP Buffalo logo as the accent. Proxima Nova -> Montserrat, Adobe Garamond -> EB Garamond. */
:root {
  --color-main-medium: #153d58;
  --color-main-dark: #102f43;
  --color-main-light: #3fa3ab;
  --color-main-highlight: #62c6cd;
  --logo-teal: #62c6cd;    /* the two colors of the CYP Buffalo logo */
  --logo-ink: #1d2530;
  --color-heading: var(--color-main-medium);
  --color-body-text: rgba(26, 26, 26, .72);
  --color-text-primary: #333;
  --color-text-secondary: #666;
  --color-surface-alt: #f4f4f4;
  --font-heading: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "EB Garamond", Garamond, Georgia, serif;
  --radius-button: 30px;
  --layout-max-width: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: #1f1f1f; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: #fff; color: var(--color-body-text); font: 19px/1.6 var(--font-body); }
#page { display: flex; flex-direction: column; min-height: 100vh; background: #fff; }
main { flex-grow: 1; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--color-main-light); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-main-medium); }
p { margin: 0 0 1rem; line-height: 1.6em; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-heading); }
h3 { text-transform: uppercase; font-weight: 600; letter-spacing: 2px; margin: .5em 0; font-size: 15px; }
svg { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }
svg.ln { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; z-index: 2000; background: #000; color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }
.hp { position: absolute !important; left: -9999px; }

/* buttons */
.s-button { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .7em 1.6em;
  border: 1px solid var(--color-main-medium); border-radius: var(--radius-button); background: transparent; color: var(--color-main-medium);
  font: 600 13px/1.2 var(--font-heading); letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: background-color .15s ease-out, color .15s; }
.s-button:hover { background: var(--color-main-medium); color: #fff; }
.s-button-fill { background: var(--color-main-light); border-color: var(--color-main-light); color: #fff; padding: 1em 1.75em; font-size: 14px; }
.s-button-fill:hover { background: var(--color-main-medium); border-color: var(--color-main-medium); }
.s-button-light { border-color: #fff; color: #fff; }
.s-button-light:hover { background: #fff; color: var(--color-main-dark); }
.s-button svg { width: 18px; height: 18px; }

/* header: white top bar with the logo (s-hero-minimal style), photo hero below on Home and About */
#top-bar { position: relative; z-index: 1004; display: flex; justify-content: space-between; align-items: center; background: #fff; border-bottom: 1px solid #ececec; }
#s-logo { margin: 10px 15px; }
#s-logo img { width: auto; max-width: 190px; max-height: 72px; }
#main-nav > ul { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 20px; }
#main-nav > ul li { position: relative; list-style: none; }
#main-nav > ul li a { display: block; padding: .75em 1em; font: 600 15px/1em var(--font-heading); letter-spacing: 3px; text-transform: uppercase;
  color: #fff; -webkit-font-smoothing: antialiased; transition: color .1s ease-in-out; }
#main-nav > ul li a.active { font-weight: 700; }
#main-nav > ul li a:hover { color: var(--color-main-highlight); }
#main-nav .nav-social a { display: inline-flex; align-items: center; }
#main-nav .nav-social svg { width: 19px; height: 19px; }
.menu .s-donate a { border: 1px solid currentColor; border-radius: var(--radius-button); transition: all .2s; }
.menu .s-donate a:hover { background: var(--color-main-light); border-color: var(--color-main-light); color: #fff !important; }
/* mobile: off-canvas menu on the right, as in ChabadSuite */
#main-nav { position: fixed; right: 0; top: 0; height: 100vh; width: 0; max-width: 300px; overflow-x: hidden; overflow-y: auto;
  background: var(--color-main-dark); transition: width .3s ease-in-out; z-index: 1006; }
#main-nav.open { width: 80%; }
#main-nav > ul { padding-top: 70px; }
.mobile-nav-toggle { background: none; border: 0; cursor: pointer; padding: 5px; color: var(--color-main-medium); }
.mobile-nav-toggle svg { width: 30px; height: 30px; }
#mobile-nav-close { position: absolute; top: 20px; right: 20px; color: #fff; }
#mobile-nav-container { display: flex; align-items: center; gap: 6px; margin-right: 15px; }
#mobile-nav-container .m-ig { color: var(--color-main-medium); display: inline-flex; padding: 5px; }
#mobile-nav-container .m-ig svg { width: 26px; height: 26px; }
@media (min-width: 1024px) {
  #s-logo { margin: 10px 30px; }
  #main-nav { position: static; height: auto; width: auto; max-width: none; overflow: visible; background: none; }
  #main-nav > ul { flex-direction: row; align-items: center; padding: 20px 20px 20px 0; }
  #main-nav > ul li a { color: var(--color-main-medium); }
  #main-nav > ul li a:hover, #main-nav > ul li a.active { color: var(--color-main-light); }
  #main-nav .s-donate { margin-left: 8px; }
  #mobile-nav-container, #mobile-nav-close { display: none; }
}

/* photo hero */
#hero { position: relative; background-color: var(--color-main-dark); }
.s-hero-image { display: flex; flex-direction: column; }
.s-hero-image .hero-bg { position: absolute; inset: 0; z-index: 0; }
.s-hero-image .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.s-hero-image .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.25)); }
.s-hero-image #top-bar { z-index: 1004; }
.s-hero-large { min-height: 460px; height: 100vh; }
.s-hero-medium { min-height: 360px; height: 50vh; }
#hero-content-wrapper { position: relative; z-index: 1; flex-grow: 1; display: flex; padding: 60px 20px; }
#hero-content { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: #fff; }
#title-bar { max-width: 940px; text-align: center; -webkit-font-smoothing: antialiased; }
#page-title { margin: 0; font: 700 54px/.95em var(--font-heading); letter-spacing: 5px; text-transform: uppercase; color: #fff; }
#secondary-title { margin: 15px 0 0; font: 400 26px/1.2em var(--font-body); color: #fff; }
#s-hero-button { margin-top: 30px; }
#s-hero-button a { display: inline-block; background-color: var(--color-main-light); color: #fff; font: 600 15px/1 var(--font-heading); letter-spacing: 2px;
  text-transform: uppercase; padding: 1em 1.75em; border-radius: var(--radius-button); }
#s-hero-button a:hover { background-color: color-mix(in srgb, var(--color-main-light) 80%, transparent); }
@media (max-width: 779px) {
  #page-title { font-size: 36px; letter-spacing: 4px; }
  #secondary-title { font-size: 22px; }
  .s-hero-large { height: 85vh; }
}

/* fade-up on scroll (ChabadSuite) — only when JS is on */
.js #hero-content, .js #s-hero-button, .js .s-section.grid, .js .s-section.action-grid, .js .s-events-wrapper {
  opacity: 0; transform: translateY(15px); transition: opacity .8s ease-out, transform .8s ease-out; }
.js .s-visible { opacity: 1 !important; transform: none !important; }

/* content sections */
.s-section-wrapper { max-width: var(--layout-max-width); margin: 0 auto; padding: 96px 32px; }
.s-section-wrapper.s-pad-sm { padding-block: 48px; }
.s-section-inner { text-align: center; }
.s-section-inner.long-text { text-align: left; }
.s-section-inner.long-text.s-align-center { text-align: center; }
/* ChabadSuite: every second section gets the light gray background (Take Action, Candle Lighting Times on Home) */
main > .s-section:nth-child(even), .s-bg-gray { background-color: var(--color-surface-alt); }
.s-bg-dark { background: var(--color-main-dark); }
.section-title { margin: 0 0 40px; font: 600 30px/1.2 var(--font-heading); letter-spacing: 4px; text-transform: uppercase; color: var(--color-heading); }
.s-section-inner.long-text h3 { font-size: 20px; margin: 1.6em 0 .6em; }
.s-section-inner.long-text h3:first-child { margin-top: 0; }
.s-section-inner.long-text .content { max-width: 820px; margin: 0 auto; }
@media (max-width: 1023px) { .s-section-wrapper { padding-block: 84px; } }
@media (max-width: 479px) { .s-section-wrapper { padding: 72px 16px; } .section-title { font-size: 24px; letter-spacing: 3px; } }

/* Ongoing: image grid with static titles */
.s-sec-grid-wrapper { display: flex; flex-wrap: wrap; gap: 20px; }
.s-sec-item { position: relative; display: block; flex: 1 1 calc(33.333% - 13.34px); height: 220px; overflow: hidden; }
.s-sec-item img { width: 100%; height: 100%; object-fit: cover; }
.s-sec-item-static-title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1rem;
  background-color: rgba(0, 0, 0, .55); transition: background-color .2s ease; }
.s-sec-item:hover .s-sec-item-static-title { background-color: rgba(0, 0, 0, .35); }
.s-sec-item-static-title h3 { margin: 0; color: #fff; font: 400 1.1em/1.25 var(--font-heading); letter-spacing: 3px; text-transform: uppercase; text-align: center; }
@media (max-width: 768px) { .s-sec-item { flex: 1 1 calc(50% - 10px); height: 180px; } }

/* Take Action: icon circles */
.action-items { display: flex; flex-wrap: wrap; justify-content: center; }
.action-item { flex: 0 0 33.333%; padding: 0 10px 30px; }
.action-item a { display: block; color: var(--color-main-medium); }
.action-item i { display: inline-flex; align-items: center; justify-content: center; width: 90px; height: 90px; margin-bottom: 15px;
  border: 1px solid var(--logo-teal); border-radius: 90px; color: var(--logo-teal); transition: border-width .1s linear; }
.action-item i svg { width: 42px; height: 42px; stroke-width: 1.8; }
.action-item a:hover i { border-width: 2px; }
.action-item h3 { color: var(--logo-ink); }
.action-item a:hover h3 { color: var(--logo-teal); }
@media (max-width: 600px) { .action-item { flex-basis: 50%; } }

/* Follow Our Journey (Instagram) */
.ig-handle { font: 600 18px var(--font-heading); letter-spacing: 2px; margin: -26px 0 30px; }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ig-tile { display: block; aspect-ratio: 1; overflow: hidden; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.ig-tile:hover img { opacity: .8; }
.ig-cta { margin: 36px 0 0; }
@media (max-width: 779px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }

/* quote band */
.quote .content { max-width: 780px; margin: 0 auto; text-align: center; color: rgba(255,255,255,.85); font-size: 24px; font-style: italic; }
.quote .quote-strong { color: #fff; font-style: normal; font-weight: 600; font-size: 26px; margin: 1.2em 0 1.4em; }

/* newsletter signup */
.signup-lead { font-size: 21px; margin: -20px 0 28px; }
.signup-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.signup-form input { flex: 1 1 200px; padding: 13px 14px; border: 1px solid #c8c8c8; border-radius: 3px; font: 16px var(--font-heading); background: #fff; }
.signup-form .s-button { flex: 0 0 auto; }

/* inner page title (minimal header pages) */
.page-title-wrapper { max-width: var(--layout-max-width); margin: 0 auto; padding: 60px 32px 40px; text-align: center; }
.page-title { margin: 0; font: 700 36px/1.1 var(--font-heading); letter-spacing: 4px; text-transform: uppercase; color: var(--color-heading); }
.s-other-content { max-width: var(--layout-max-width); margin: 0 auto; padding: 0 32px 96px; }
@media (max-width: 479px) { .page-title { font-size: 26px; letter-spacing: 3px; } .page-title-wrapper, .s-other-content { padding-left: 16px; padding-right: 16px; } }

/* events list (ChabadSuite site_events view) */
.views-row:not(:last-child) { margin-bottom: 60px; }
.s-events-left { margin: 0 0 20px; }
.ev-frame { position: relative; display: block; height: 200px; overflow: hidden; background: var(--color-surface-alt); }
.ev-blur { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(14px); opacity: .7; }
.ev-frame picture { position: relative; height: 100%; }
.ev-frame img { height: 100%; width: auto; margin: 0 auto; object-fit: contain; }
.eventlist-datebox { position: absolute; top: 10px; left: 10px; width: 70px; z-index: 2; text-align: center; text-transform: uppercase; color: var(--color-text-primary);
  background: #fff; box-shadow: 0 10px 16px 2px rgba(0,0,0,.12); border-radius: 6px; font-family: var(--font-heading); }
.eventlist-datebox-inner { position: relative; display: block; height: 100%; padding: 6px; }
.eventlist-startdate-month { display: block; font-size: .9rem; }
.eventlist-startdate-day { display: block; font-size: 1.65rem; line-height: 2rem; font-weight: 600; }
.eventlist-startdate-year { display: block; font-size: .7rem; color: var(--color-text-secondary); }
.s-events-right h2.event-title { margin: 0 0 .3em; font: 600 26px/1.25 var(--font-heading); }
.event-title a { color: var(--color-main-medium); }
.event-title a:hover { color: var(--color-main-light); }
.event-datetime { font-size: 19px; }
.event-location { display: flex; align-items: center; gap: 6px; }
.event-location svg { color: var(--color-main-light); }
.event-link-info, .event-link-reg { display: inline-block; margin: 12px 10px 0 0; }
@media (min-width: 780px) {
  .s-events-wrapper { display: flex; }
  .s-events-left { flex: 0 0 335px; margin: 0 26px 0 0; }
  .eventlist-datebox { left: auto; right: 10px; }
}
/* past events: crossed-out date tag, faded flyer, struck title */
.past-event .eventlist-datebox { opacity: .75; }
.past-event .eventlist-datetag-status { position: absolute; top: 0; right: 50%; height: 100%; border: 1px solid #444; transform: rotate(35deg); }
.past-event .ev-frame img, .past-event .ev-blur { opacity: .5; }
.past-event .event-title a { color: #777; text-decoration: line-through; text-decoration-thickness: 2px; }
.past-event .event-datetime, .past-event .event-location { color: #888; }
.ev-follow { margin-top: 60px; text-align: center; font-size: 20px; }

/* event detail */
.ev-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 50px; align-items: start; }
.ev-detail.past-event .ev-flyer img { opacity: .55; }
.ev-detail .event-datetime { font: 600 18px var(--font-heading); color: var(--color-main-medium); }
.ev-ages { color: var(--color-text-secondary); margin-top: .4em; }
.ev-detail h3 { font-size: 17px; margin-top: 1.6em; }
.ev-past-note { background: var(--color-surface-alt); padding: 12px 16px; border-left: 3px solid #444; }
.struck { text-decoration: line-through; text-decoration-thickness: 3px; color: #777; }
@media (max-width: 779px) { .ev-detail { grid-template-columns: 1fr; gap: 30px; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; text-align: left; }
.faq details { border-bottom: 1px solid #ddd; }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 18px 34px 18px 0; font: 600 16px var(--font-heading); letter-spacing: 1px; color: var(--color-main-medium); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 13px; font-size: 24px; color: var(--color-main-light); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; }

/* contact */
.contact-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 60px; }
.cs-form label { display: block; margin-bottom: 18px; font: 600 14px var(--font-heading); color: var(--color-text-primary); }
.cs-form label span { color: #c0392b; }
.cs-form input, .cs-form select, .cs-form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #c8c8c8; border-radius: 3px;
  font: 16px var(--font-heading); color: #333; background: #fff; }
.cs-form input:focus, .cs-form textarea:focus, .cs-form select:focus, .signup-form input:focus { outline: 2px solid var(--color-main-highlight); border-color: var(--color-main-light); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.contact-info h3 { font-size: 16px; margin-top: 0; }
.s-social { display: flex; gap: 14px; }
.s-social a { color: var(--color-main-medium); }
.s-social a:hover { color: var(--color-main-light); }
.s-social svg { width: 26px; height: 26px; }
@media (max-width: 779px) { .contact-wrap, .row2 { grid-template-columns: 1fr; gap: 0; } .contact-info { margin-top: 30px; } }

/* footer */
#footer { position: relative; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 16px; background-color: #1f1f1f; color: rgba(255,255,255,.4); text-align: center; font: 15px/1.5 var(--font-heading); }
#footer > div { margin: 8px 0; }
#footer a { color: #ccc; }
#footer a:hover { color: #eee; }
#footer .s-org-name h3 { margin: 0; color: #fff; font-size: 16px; letter-spacing: 3px; }
#footer .s-contact-info { display: flex; flex-direction: column; align-items: center; }
#footer .s-contact-info > span { margin: 5px 15px; }
#footer .s-contact-info > span.separator { display: none; }
#footer .s-social-links a { display: inline-block; margin: 0 9px; }
#footer .s-social-links svg { width: 25px; height: 25px; }
#footer .s-links { font-size: 13px; letter-spacing: 1px; }
#footer .s-serving p { margin: 14px 0 0; font-size: 13px; color: #777; }
@media (min-width: 780px) {
  #footer .s-contact-info { flex-direction: row; }
  #footer .s-contact-info > span { margin: 0 20px; }
  #footer .s-contact-info > span.separator { display: inline; margin: 0; }
}

/* Candle Lighting Times (ChabadSuite shabbat-times section, layout-text) */
.st-container { text-align: center; }
.st-header { margin-bottom: 1.8em; font-family: var(--font-heading); }
.st-city { margin: -.8em 0 1.4em; font-weight: 300; display: inline-flex; align-items: center; gap: .4em; }
.st-city svg { color: var(--color-main-light); }
.st-date { color: var(--color-main-dark); font-weight: 600; line-height: 1.2; }
.st-occasion { color: var(--color-main-dark); }
.st-body { display: inline-flex; }
.st-label { font-style: italic; margin-bottom: .6em; }
.st-time { font-family: var(--font-heading); font-weight: 600; }
.st-time-time { display: block; color: var(--color-main-dark); }
.st-start { padding-right: 1em; text-align: right; }
.st-end { padding-left: 1em; text-align: left; position: relative; }
.st-end::before { content: ""; position: absolute; top: 15%; bottom: 15%; left: 0; border-left: 1px solid var(--color-main-dark); }
.st-credit { margin: 2em 0 0; font-size: 14px; color: var(--color-text-secondary); }
.st-container .st-header .st-date:empty, .st-container:not(.st-ready) .st-body, .st-container:not(.st-ready) .st-credit, .st-container.st-ready .st-fallback { display: none; }

/* Follow Us band: logo charcoal background, solid logo-teal circles */
main > .s-section.follow-band { background-color: var(--logo-ink); }
.follow-band .section-title { color: #fff; }
.follow-band .section-title { margin-bottom: 44px; }
.follow-items { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px 70px; }
.follow-item { display: flex; flex-direction: column; align-items: center; color: #fff; }
.follow-circle { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--logo-teal); color: var(--logo-ink); margin-bottom: 14px; transition: transform .15s ease, background-color .15s; }
.follow-circle svg { width: 40px; height: 40px; }
.follow-item:hover { color: #fff; }
.follow-item:hover .follow-circle { background: #fff; transform: translateY(-3px); }
.follow-name { font: 600 15px var(--font-heading); letter-spacing: 3px; text-transform: uppercase; }
.follow-handle { margin-top: 4px; font-size: 17px; color: var(--logo-teal); }
@media (max-width: 479px) { .follow-items { gap: 28px 34px; } .follow-circle { width: 70px; height: 70px; } .follow-circle svg { width: 32px; height: 32px; } }
