/* @import must be the first declaration in the file — before any rules or @font-face blocks */
@import url('https://use.typekit.net/fip5qgl.css');

/* ============================================================
   CHABAD LINCOLN PARK — Custom Theme Stylesheet
   Platform: ChabadSuite (Drupal 7)

   SELECTOR STRATEGY (read before editing):
   ─────────────────────────────────────────
   IDs used here (#hero, #top-bar, #main-nav, #s-logo,
   #s-newsletter-signup, #footer) are PERMANENT — part of the
   ChabadSuite server-rendered PHP template. They will not change
   when content blocks are moved in the admin UI.

   Classes like .s-section, .s-hero, .s-logo-custom,
   .s-section-wrapper, .s-section-inner, .s-contact-info,
   .shabbat-times are ChabadSuite design-system classes rendered
   server-side — safe to target long-term.

   Drupal module classes (.webform-client-form, .webform-submit,
   .form-submit, ul.menu) are stable Drupal 7 module contracts.

   We prefix most rules with `body` to gain one specificity point
   over the platform's un-prefixed rules WITHOUT !important.
   The handful of !important uses are individually documented.

   § 11 at the bottom holds #section-NN overrides. These IDs ARE
   volatile — they change when blocks are moved. Audit that section
   whenever the page layout is reconfigured in the admin.
   ============================================================ */


/* ============================================================
   § 0  FONT LOADING
   ============================================================ */

/*
 * MiltonGrotesque — self-hosted woff2, display / all UI text.
 * Single weight only — hierarchy comes from tracking & case,
 * not font-weight, to avoid faux-bold rendering.
 */
@font-face {
  font-family: 'MiltonGrotesque';
  src: url('https://cdn.webmk.co/jewish-lincoln-park/font/MiltonGrotesqueRegular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Adobe Fonts kit fip5qgl loads freight-text-pro for body copy */


/* ============================================================
   § 1  BRAND TOKENS
   ============================================================ */
:root {
  /* Palette */
  --clp-seed-puff:  #F3EFE6; /* warm off-white — light section bg  */
  --clp-olive-wood: #6B6A4E; /* deep earth — dark bands, footer     */
  --clp-sand:       #BFA785; /* warm mid — borders, muted text      */
  --clp-sage:       #A8B09A; /* muted sage — secondary labels       */
  --clp-clay:       #8B6B63; /* terracotta — primary CTA            */
  --clp-clay-dark:  #7a5c55; /* clay hover                          */
  --clp-gold:       #C7A15B; /* antique gold — accents, hovers      */
  --clp-gold-dark:  #b08e49; /* gold pressed/active                 */
  --clp-ink:        #1c1b18; /* near-black for body text            */
  --clp-white:      #FFFFFF;

  /* Typography */
  --font-display: 'MiltonGrotesque', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'freight-text-pro', Georgia, 'Times New Roman', serif;

  /* Motion */
  --ease: 0.25s ease;

  /* Shape */
  --radius-sm: 3px;
  --radius-md: 6px;
}


/* ============================================================
   § 2  TYPOGRAPHY
   ============================================================ */

html,
body {
  font-family: var(--font-body);
  color: var(--clp-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--clp-olive-wood);
  line-height: 1.2;
  margin-top: 0;
}

/*
 * .section-title is ChabadSuite's server-rendered class on every
 * section heading — the most reliable sitewide hook.
 * Styled as a small-caps eyebrow; large display text comes from
 * section-specific h2 rules below.
 */
body h2.section-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clp-clay);
  margin-bottom: 0.5rem;
}

body h2.section-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--clp-gold);
  margin: 0.8rem auto 2.5rem;
  opacity: 0.55;
}

body h3 {
  font-size: 1rem;
  letter-spacing: 0.06em;
}

body p,
body li {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.82;
}

body a {
  color: var(--clp-clay);
  text-decoration: none;
  transition: color var(--ease);
}

body a:hover {
  color: var(--clp-gold);
}

/* ── Platform font override blocks ───────────────────────────
 * The skin-dblue theme applies proxima-nova and adobe-garamond-pro
 * via high-specificity rules that load after this sheet.
 * We use compound selectors for specificity wins on each target.
 */
header#hero h1#page-title,
header#hero h1.title {
  /* !important required — platform skin-dblue loads proxima-nova after this sheet */
  font-family: var(--font-display) !important;
}

header#hero h2#secondary-title,
header#hero h2.below-title {
  /* !important required — platform loads adobe-garamond-pro after this sheet */
  font-family: var(--font-display) !important;
}

body section.shabbat-times .st-occasion,
body section.shabbat-times .st-date,
body section.shabbat-times .st-time,
body section.shabbat-times .st-label,
body section.shabbat-times .st-city,
body section.shabbat-times .st-container {
  font-family: var(--font-display);
}

body .webform-client-form input#edit-submit {
  font-family: var(--font-display);
}

body .webform-client-form .webform-component,
body .webform-client-form .form-actions {
  font-family: var(--font-body);
}

body .webform-client-form input[id*="edit-"] {
  font-family: var(--font-body);
}


/* ============================================================
   § 3  GLOBAL RESET
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body .s-section {
  box-shadow: none;
  border: none;
}

body #page {
  background: var(--clp-seed-puff);
}

body .s-content-sections {
  background: var(--clp-seed-puff);
}


/* ============================================================
   § 4  HEADER & HERO
   ============================================================ */

header#hero {
  position: relative;
  overflow: hidden;
  background-color: var(--clp-olive-wood);
}

header#hero.s-hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 19, 16, 0.5)  0%,
    rgba(20, 19, 16, 0.08) 45%,
    rgba(20, 19, 16, 0.6)  100%
  );
  z-index: 1;
  pointer-events: none;
}

#top-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

#s-logo.s-logo-custom {
  display: flex;
  align-items: center;
}

#s-logo.s-logo-custom img {
  max-height: 96px;
  width: auto;
  display: block;
}

header#hero h1.title {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 6.5rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clp-white);
  margin: 0;
  line-height: 1.0;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.28);
}

header#hero h2.below-title {
  position: relative;
  z-index: 2;
  font-family: var(--font-display) !important;
  font-size: clamp(0.9rem, 1.8vw, 1.25rem) !important;
  font-weight: 400;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--clp-gold);
  margin-top: 1.5rem;
  opacity: 0.88;
}

header#hero h2.below-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 1px;
  background: var(--clp-gold);
  margin: 1.1rem auto 0;
  opacity: 0.45;
}


/* ============================================================
   § 5  NAVIGATION
   ============================================================ */

#main-nav {
  display: flex;
  align-items: center;
}

#main-nav ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.125rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

#main-nav ul.menu li {
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

#main-nav ul.menu > li > a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clp-white);
  border-radius: var(--radius-sm);
  transition: color var(--ease), background-color var(--ease);
}

#main-nav ul.menu > li > a:hover,
#main-nav ul.menu > li.active-trail > a {
  color: var(--clp-gold);
  background-color: rgba(255, 255, 255, 0.08);
}

#main-nav ul.menu > li.expanded > ul.menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: var(--clp-white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(107, 106, 78, 0.13);
  border: 1px solid rgba(191, 167, 133, 0.18);
  padding: 0.5rem 0;
  z-index: 200;
}

#main-nav ul.menu > li.expanded:hover > ul.menu,
#main-nav ul.menu > li.expanded:focus-within > ul.menu {
  display: block;
}

#main-nav ul.menu > li.expanded > ul.menu li a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--clp-olive-wood);
  border: none;
  background: transparent;
  transition: background-color var(--ease), color var(--ease), padding-left var(--ease);
}

#main-nav ul.menu > li.expanded > ul.menu li a:hover {
  background-color: var(--clp-seed-puff);
  color: var(--clp-clay);
  padding-left: 1.6rem;
}

#mobile-nav-open,
#mobile-nav-close {
  color: var(--clp-white);
  font-size: 1.35rem;
  cursor: pointer;
  transition: color var(--ease);
  background: transparent;
  border: none;
}

#mobile-nav-open:hover,
#mobile-nav-close:hover {
  color: var(--clp-gold);
}

#mobile-nav-container {
  background: var(--clp-olive-wood);
}

#mobile-nav-container ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

#mobile-nav-container ul.menu li a {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clp-seed-puff);
  padding: 0.9rem 1.75rem;
  border-bottom: 1px solid rgba(199, 161, 91, 0.1);
  transition: color var(--ease), background-color var(--ease);
}

#mobile-nav-container ul.menu li a:hover {
  color: var(--clp-gold);
  background-color: rgba(255, 255, 255, 0.04);
}


/* ============================================================
   § 6  CONTENT SECTIONS — BASE
   ============================================================ */

/*
 * Base section styles. Note: text-align is NOT set here —
 * each section controls its own alignment so the Let's Connect
 * split layout and other asymmetric sections aren't forced to center.
 */
body section.s-section {
  padding: 3.5rem 3rem;
  background: var(--clp-seed-puff);
  background-image: none;
  box-shadow: none;
  border: none;
}

body .s-section-wrapper {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

body .s-section-inner {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/*
 * Grid tiles on this site use inline background-image (platform
 * standard). Base styles treat them as full-bleed photo tiles
 * with an overlay gradient and overlaid text.
 */
body .s-sec-item-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-size: cover !important;
  background-position: center !important;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  transition: transform var(--ease), box-shadow var(--ease);
  cursor: pointer;
}

/* Stronger bottom gradient overlay on top of the platform's built-in one */
body .s-sec-item-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 19, 16, 0.75) 0%,
    rgba(20, 19, 16, 0.1)  50%,
    transparent 100%
  );
  z-index: 0;
  transition: opacity var(--ease);
}

body .s-sec-item-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(20, 19, 16, 0.22);
}

body .s-sec-item-wrapper h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clp-white);
  margin: 0;
  padding: 1.25rem 1.5rem;
  display: block;
  width: 100%;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  border-bottom: none;
}


/* ── Candle Lighting Times ────────────────────────────────────
 * !important on background is required — the platform widget CSS
 * uses !important on its own background property.
 */
body section.s-section.shabbat-times {
  background: var(--clp-olive-wood) !important;
  background-image: none !important;
  padding: 3.5rem 3rem;
  text-align: center;
}

body section.s-section.shabbat-times h2.section-title {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--clp-gold);
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.5rem;
}

body section.s-section.shabbat-times h2.section-title::after {
  background: var(--clp-gold);
  margin: 0.75rem auto 2.25rem;
  opacity: 0.4;
}

body section.s-section.shabbat-times .st-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 1.25rem;
  margin-bottom: 2.5rem;
}

body section.s-section.shabbat-times .st-city,
body section.s-section.shabbat-times .st-date,
body section.s-section.shabbat-times .st-occasion {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clp-sand) !important; /* overrides platform navy rgb(2,43,86) */
  opacity: 0.8;
}

body section.s-section.shabbat-times .st-city i {
  margin-right: 0.3em;
  opacity: 0.55;
}

body section.s-section.shabbat-times .st-date::before,
body section.s-section.shabbat-times .st-occasion::before {
  content: '·';
  margin-right: 1.25rem;
  opacity: 0.3;
}

body section.s-section.shabbat-times .st-body {
  display: flex;
  justify-content: center;
  gap: 1px;
  max-width: 560px;
  margin: 0 auto;
  background: rgba(199, 161, 91, 0.18);
  border-radius: var(--radius-md);
  overflow: hidden;
}

body section.s-section.shabbat-times .st-start,
body section.s-section.shabbat-times .st-end {
  flex: 1;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--ease);
}

body section.s-section.shabbat-times .st-start:hover,
body section.s-section.shabbat-times .st-end:hover {
  background: rgba(255, 255, 255, 0.08);
}

body section.s-section.shabbat-times .st-label {
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--clp-gold);
  opacity: 0.85;
}

body section.s-section.shabbat-times .st-time {
  font-family: var(--font-display) !important;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.5);
  line-height: 1.4;
}

body section.s-section.shabbat-times .st-time-time {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  letter-spacing: 0.04em;
  color: var(--clp-seed-puff);
  margin-top: 0.2rem;
  line-height: 1;
}


/* ============================================================
   § 7  NEWSLETTER SIGNUP
   ============================================================ */

body section#s-newsletter-signup {
  /* Light background — creates a clean breathing break between the two
     olive dark bands (section-52 above, footer below). */
  background: var(--clp-seed-puff);
  background-image: none;
  padding: 3.5rem 3rem;
  text-align: center;
  border-top: 1px solid rgba(191, 167, 133, 0.2);
  border-bottom: 1px solid rgba(191, 167, 133, 0.2);
}

body section#s-newsletter-signup::before {
  content: 'Stay Connected';
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clp-olive-wood);
  margin-bottom: 0.4rem;
}

body section#s-newsletter-signup h2 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clp-clay);
  margin-bottom: 0;
  opacity: 0.75;
}

body section#s-newsletter-signup h2::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--clp-gold);
  margin: 0.85rem auto 2.25rem;
  opacity: 0.45;
}

body .webform-client-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  align-items: flex-end;
  max-width: 700px;
  margin: 0 auto;
}

body .webform-client-form .form-item {
  display: flex;
  flex-direction: column;
  flex: 1 1 175px;
  text-align: left;
}

body .webform-client-form .form-item label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clp-olive-wood);
  margin-bottom: 0.4rem;
  opacity: 0.65;
}

body .webform-client-form input[type="text"],
body .webform-client-form input[type="email"] {
  font-family: var(--font-body);
  font-size: 0.95rem;
  /* !important required — ChabadSuite injects inline style="background-color:..." via PHP */
  background-color: var(--clp-white) !important;
  border: 1px solid rgba(191, 167, 133, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--clp-ink);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

body .webform-client-form input[type="text"]::placeholder,
body .webform-client-form input[type="email"]::placeholder,
body .webform-client-form input[id*="edit-submitted"]::placeholder {
  /* !important required — platform injects inline font-family on inputs */
  font-family: var(--font-body) !important;
  color: rgba(28, 27, 24, 0.35);
}

body .webform-client-form input[type="text"]:focus,
body .webform-client-form input[type="email"]:focus {
  border-color: var(--clp-gold);
  box-shadow: 0 0 0 3px rgba(199, 161, 91, 0.12);
  background-color: var(--clp-white) !important;
}

body .webform-client-form input.webform-submit,
body .webform-client-form input.form-submit {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  /* !important required — platform's .button-primary applies a navy
     background via a late-cascade rule with equal specificity */
  background: var(--clp-clay) !important;
  color: var(--clp-white) !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.78rem 2.25rem;
  cursor: pointer;
  align-self: flex-end;
  transition: background-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

body .webform-client-form input.webform-submit:hover,
body .webform-client-form input.form-submit:hover {
  background: var(--clp-gold) !important;
  color: var(--clp-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(199, 161, 91, 0.28);
}

body .webform-client-form input.webform-submit:active,
body .webform-client-form input.form-submit:active {
  transform: translateY(0);
  background: var(--clp-gold-dark) !important;
}

body .cs-recaptcha-info {
  width: 100%;
  font-size: 0.68rem;
  color: rgba(107, 106, 78, 0.5);
  text-align: center;
  margin-top: 0.75rem;
}

body .cs-recaptcha-info a {
  color: rgba(107, 106, 78, 0.65);
  transition: color var(--ease);
}

body .cs-recaptcha-info a:hover {
  color: var(--clp-clay);
}


/* ============================================================
   § 8  FOOTER
   ============================================================ */

body section#footer {
  background: var(--clp-olive-wood);
  background-image: none;
  padding: 3.5rem 3rem 2.5rem;
  text-align: center;
  border-top: 2px solid rgba(199, 161, 91, 0.4);
  box-shadow: none;
}

body .s-contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  color: var(--clp-sand);
  margin-bottom: 1.25rem;
}

body .s-contact-info a {
  color: var(--clp-seed-puff);
  transition: color var(--ease);
}

body .s-contact-info a:hover {
  color: var(--clp-gold);
}

body .s-contact-info > div:not([class]) {
  color: rgba(191, 167, 133, 0.28);
}

body section#footer p {
  font-size: 0.74rem;
  color: rgba(243, 239, 230, 0.32);
  margin: 0.5rem 0 0;
  letter-spacing: 0.04em;
}

body section#footer p a {
  color: rgba(199, 161, 91, 0.45);
  transition: color var(--ease);
}

body section#footer p a:hover {
  color: var(--clp-gold);
}

body .s-login {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(191, 167, 133, 0.1);
}

body .s-login-link.s-button,
body .s-login a {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.3);
  transition: color var(--ease);
}

body .s-login-link.s-button:hover,
body .s-login a:hover {
  color: var(--clp-gold);
}


/* ============================================================
   § 9  RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  #top-bar {
    padding: 1rem 1.5rem;
  }

  body section.s-section {
    padding: 2.5rem 1.5rem;
  }

  body section.s-section.shabbat-times {
    padding: 2.5rem 1.5rem;
  }

  body section#s-newsletter-signup {
    padding: 2.5rem 1.5rem;
  }

  body section#footer {
    padding: 2rem 1.5rem 1.5rem;
  }

  body #section-62 .s-section-inner {
    padding: 3rem 2rem;
  }
}

@media (max-width: 700px) {
  body section.s-section.shabbat-times .st-body {
    flex-direction: column;
    gap: 1px;
    max-width: 280px;
  }

  body section.s-section.shabbat-times .st-start,
  body section.s-section.shabbat-times .st-end {
    padding: 1.75rem 2rem;
  }

  body section.s-section.shabbat-times .st-time-time {
    font-size: 2rem;
  }

  body section.s-section.shabbat-times .st-date::before,
  body section.s-section.shabbat-times .st-occasion::before {
    display: none;
  }

  body section.s-section.shabbat-times .st-header {
    flex-direction: column;
    gap: 0.25rem;
  }

  body .webform-client-form {
    flex-direction: column;
    align-items: stretch;
  }

  body .webform-client-form .form-item {
    flex: 1 1 auto;
  }

  body .webform-client-form input.webform-submit,
  body .webform-client-form input.form-submit {
    width: 100%;
    text-align: center;
  }

  body .s-contact-info {
    flex-direction: column;
    gap: 0.4rem;
  }
}


/* ============================================================
   § 10  SHARED UTILITY — CTA BUTTON PATTERN
   Used by multiple sections below (Let's Connect, program tiles)
   ============================================================ */

.clp-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clp-white);
  background: var(--clp-clay);
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.clp-btn:hover {
  background: var(--clp-gold);
  color: var(--clp-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(199, 161, 91, 0.3);
}


/* ============================================================
   § 11  CURRENT-LAYOUT SECTION OVERRIDES
   ─────────────────────────────────────────────────────────────
   WARNING: These rules use #section-NN IDs which are assigned
   by ChabadSuite to content blocks. They WILL change if blocks
   are moved, removed, or re-created in the admin UI.
   Audit this section after any layout reconfiguration.

   Current block map (as of April 2026):
     #section-59  →  "Connect. Belong. Celebrate." (long-text)
     #section-62  →  "Let's Connect" (long-text + float photo)
     #section-65  →  Photo slider embed (placeholder)
     #section-63  →  Primary programs: Challah + Park Hebrew (grid)
     #section-52  →  Programs grid: Guys Nights, Lifecycle, etc.
     #section-58  →  Hidden embed (CSS section placeholder)
   ============================================================ */


/* ── §11.1  Connect. Belong. Celebrate. ─────────────────────
 * Large editorial statement section, inspired by West Village.
 * Centered, generous whitespace, Freight body copy.
 */
body #section-59 {
  background: var(--clp-white);
  padding: 4rem 3rem;
  text-align: center;
}

body #section-59 .s-section-inner {
  max-width: 780px;
}

body #section-59 h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clp-olive-wood);
  line-height: 1.1;
  margin-bottom: 0;
}

/* Gold rule between heading and body text */
body #section-59 h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 1px;
  background: var(--clp-gold);
  margin: 2.25rem auto;
  opacity: 0.5;
}

body #section-59 p {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.88;
  color: var(--clp-olive-wood);
  max-width: 660px;
  margin: 0 auto 1.25rem;
  opacity: 0.78;
}

body #section-59 p:last-child {
  margin-bottom: 0;
  font-style: italic;
  opacity: 0.55;
  font-size: 1rem;
}

@media (max-width: 700px) {
  body #section-59 {
    padding: 3rem 1.5rem;
  }
}


/* ── §11.2  Let's Connect ────────────────────────────────────
 * Split layout: text left, rabbi portrait right.
 * Inspired by Chabad Intown — editorial, personal, warm.
 *
 * The platform renders the photo inside the h2 via float:right
 * and inline style. We work with the float rather than fighting
 * the inline dimensions, and style the surrounding context.
 */
body #section-62 {
  background: var(--clp-seed-puff);
  padding: 0;
  text-align: left;
  overflow: hidden;
}

body #section-62 .s-section-wrapper {
  /* Narrower wrapper brings text and photo into a tighter, readable column */
  max-width: 960px;
}

/*
 * The platform wraps the photo in .media-element-container which has
 * float:right applied. This float is inside the h2 block, causing h2
 * to expand to ~500px and pushing all paragraphs below the photo.
 * Fix: pull the container out of flow with absolute positioning,
 * then reserve space on the right via padding-right on the inner.
 */
body #section-62 .s-section-inner {
  position: relative;
  max-width: none;
  /* Right padding reserves space for the absolutely-positioned photo:
     photo width (300px) + photo's right offset (4rem=64px) + column gap (1.5rem=24px) */
  padding: 3.5rem calc(300px + 5.5rem) 3.5rem 4rem;
}

/* Pull the photo container out of float flow entirely */
body #section-62 .media-element-container {
  position: absolute !important;
  float: none !important;
  right: 4rem;
  top: 3.5rem;
  width: 300px !important;
  margin: 0 !important;
}

/* Img fills the container */
body #section-62 .media-element.file-default {
  border-radius: var(--radius-md);
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  float: none !important;
  margin: 0 !important;
}

body #section-62 .file.file-image {
  overflow: visible !important;
}

/* Eyebrow label above "Let's Connect" */
body #section-62 h2::before {
  content: 'Get in Touch';
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clp-clay);
  margin-bottom: 1rem;
  opacity: 0.9;
}

body #section-62 h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clp-olive-wood);
  line-height: 1.08;
  margin-bottom: 1.75rem;
  /* Accommodate the floated image without reflow fighting */
  overflow: visible;
}

/* Gold accent rule below heading */
body #section-62 h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--clp-gold);
  margin-top: 1.5rem;
  opacity: 0.55;
}

body #section-62 p {
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.88;
  color: var(--clp-olive-wood);
  /* No max-width — text fills the full float-allowed column.
     With photo floated right, the browser clips text naturally. */
  opacity: 0.78;
  margin-bottom: 1.5rem;
}

/* "Contact Us" link → styled as a pill button */
body #section-62 p a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clp-white);
  background: var(--clp-clay);
  padding: 0.88rem 2.5rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

body #section-62 p a:hover {
  background: var(--clp-gold);
  color: var(--clp-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 107, 99, 0.28);
}

@media (max-width: 900px) {
  body #section-62 .s-section-inner {
    position: static;
    padding: 3rem 2rem;
  }

  body #section-62 .media-element-container {
    position: static !important;
    float: none !important;
    width: 100% !important;
    margin-bottom: 2rem !important;
  }

  body #section-62 .media-element.file-default {
    width: 100% !important;
    float: none !important;
    aspect-ratio: 4 / 3;
  }

  body #section-62 h2 {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }
}


/* ── §11.3  Photo Slider ─────────────────────────────────────
 * Container for auto-sliding org photos embed.
 * Full-bleed, zero padding so the embed controls its own spacing.
 * Title hidden — the imagery speaks for itself.
 */
body #section-65 {
  padding: 0;
  background: var(--clp-ink);
  overflow: hidden;
}

body #section-65 h2.section-title {
  display: none;
}

body #section-65 .s-section-wrapper,
body #section-65 .s-section-inner {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

body #section-65 .content {
  padding: 0;
  line-height: 0; /* removes inline-block gap below embed */
}


/* ── §11.4  Primary Programs: Challah + Park Hebrew ──────────
 * Two cinematic full-bleed feature panels side by side.
 * Visually heavier and more impactful than the programs grid
 * below — these are the flagship offerings.
 *
 * The grid items have inline background-image via the platform.
 * We control height, overlay, and typography.
 */
body #section-63 {
  padding: 0;
  background: var(--clp-white);
  text-align: left;
}

body #section-63 .s-section-wrapper,
body #section-63 .s-section-inner,
body #section-63 .content {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

body #section-63 h2.section-title {
  display: none; /* section title is empty — no need to render */
}

/* Side-by-side layout on the field-items container */
body #section-63 .field-name-field-s-sec-grid-image-items > .field-items {
  display: flex;
  gap: 0;
}

body #section-63 .field-items > .field-item {
  flex: 1;
}

body #section-63 .field-item > a {
  display: block;
  height: 100%;
}

/* Feature panels — taller than grid tiles but not cinematic */
body #section-63 .s-sec-item-wrapper {
  height: 280px;
  min-height: 220px;
  border-radius: 0;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 2.75rem 3rem;
  transform: none; /* disable base hover lift — use scale instead */
  transition: filter 0.4s ease;
}

body #section-63 .s-sec-item-wrapper:hover {
  transform: none;
  box-shadow: none;
  filter: brightness(1.06);
}

/* Richer gradient for the tall format */
body #section-63 .s-sec-item-wrapper::after {
  background: linear-gradient(
    to top,
    rgba(20, 19, 16, 0.82) 0%,
    rgba(20, 19, 16, 0.25) 40%,
    rgba(20, 19, 16, 0.05) 70%,
    transparent 100%
  );
}

body #section-63 .s-sec-item-wrapper h3 {
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  letter-spacing: 0.1em;
  color: var(--clp-white);
  padding: 0;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* "Explore →" appearing below the title on hover */
body #section-63 .s-sec-item-wrapper h3::after {
  content: 'Explore →';
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--clp-gold);
  margin-top: 0.6rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

body #section-63 .s-sec-item-wrapper:hover h3::after {
  opacity: 1;
  transform: translateY(0);
}

/* Vertical divider between the two panels */
body #section-63 .field-items > .field-item:first-child .s-sec-item-wrapper {
  border-right: 1px solid rgba(199, 161, 91, 0.18);
}

@media (max-width: 700px) {
  body #section-63 .field-name-field-s-sec-grid-image-items > .field-items {
    flex-direction: column;
  }

  body #section-63 .s-sec-item-wrapper {
    height: 55vw;
    min-height: 280px;
  }

  body #section-63 .field-items > .field-item:first-child .s-sec-item-wrapper {
    border-right: none;
    border-bottom: 1px solid rgba(199, 161, 91, 0.18);
  }
}


/* ── §11.5  Programs Grid ────────────────────────────────────
 * Compact photo-tile grid on a dark olive ground — intentionally
 * lower visual weight than the feature panels above.
 */
body #section-52 {
  background: var(--clp-olive-wood);
  padding: 3rem 3rem;
  text-align: center;
}

body #section-52 h2.section-title {
  /* Title text is empty — hide the element and its ::after gold rule
     so they don't create blank space above the tile grid */
  display: none;
}

body #section-52 .s-sec-item-wrapper {
  height: 260px;
  border-radius: var(--radius-sm);
  align-items: flex-end;
  padding: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body #section-52 .s-sec-item-wrapper:hover {
  transform: scale(1.025);
  box-shadow: 0 16px 40px rgba(20, 19, 16, 0.35);
}

body #section-52 .s-sec-item-wrapper::after {
  background: linear-gradient(
    to top,
    rgba(20, 19, 16, 0.8)  0%,
    rgba(20, 19, 16, 0.15) 55%,
    transparent 100%
  );
  border-radius: var(--radius-sm);
}

body #section-52 .s-sec-item-wrapper h3 {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  padding: 1.1rem 1.25rem;
  color: var(--clp-white);
  opacity: 1;
  border-bottom: 1px solid rgba(199, 161, 91, 0.35);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

@media (max-width: 700px) {
  body #section-52 {
    padding: 3.5rem 1rem;
  }
}


/* ── §11.6  Hidden sections ──────────────────────────────────
 * #section-58 is a ChabadSuite embed block currently used only
 * as a CSS injection point by the platform. Keep hidden.
 */
#section-58 {
  display: none;
}


/* ── §11.7  Photo Slider Component ──────────────────────────
 * Infinite marquee-style horizontal scroll, CSS-animation driven.
 * Pauses on hover. JS only used to match animation duration to
 * the actual track width for consistent speed regardless of slide count.
 */
.clp-slider {
  overflow: hidden;
  width: 100%;
  background: var(--clp-ink);
  /* Suppress any inherited section padding from the embed block */
  margin: 0;
  padding: 0;
}

.clp-slider-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: clp-marquee 36s linear infinite;
  will-change: transform;
}

.clp-slider:hover .clp-slider-track {
  animation-play-state: paused;
}

.clp-slide {
  flex: 0 0 auto;
  width: 380px;
  height: 260px;
}

@media (max-width: 700px) {
  .clp-slide {
    width: 260px;
    height: 180px;
  }
}

.clp-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Subtle gap between photos — feels like a film strip */
  border-right: 3px solid var(--clp-ink);
}

@keyframes clp-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
  /* -50% because we duplicate slides to create a seamless loop */
}
