/* ── Jgive public pages — the block library's styles ───────────────────────────
   One file for every page, the editor canvas included. Logical properties only
   (margin-inline-start, inset-inline-end, text-align:start…), so a Hebrew page
   (dir=rtl) mirrors with no extra rules. Brand tokens are taken from the
   Webflow site we replace (2026-11-26): purple #c400f5, ink #222, sand #faf5f2,
   Jgive Simona for text, Masada for display headings.
   Classes are jg-* so they never meet Webflow's when an imported page still
   loads its old stylesheet beside this one. ─────────────────────────────────── */
@font-face { font-family: 'Jgive Simona'; src: url('/assets/fonts/brand/jgivesimona-regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jgive Simona'; src: url('/assets/fonts/brand/jgivesimona-medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Jgive Simona'; src: url('/assets/fonts/brand/jgivesimona-bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Jgive Masada'; src: url('/assets/fonts/brand/masada-bold.otf') format('opentype'); font-weight: 700; font-display: swap; }

:root {
  --jg-brand: #c400f5;
  --jg-brand-ink: #8a00ad;          /* brand as text on white: 7:1 */
  --jg-ink: #222;
  --jg-ink-2: #5c5c5c;              /* secondary text: 6.6:1 on white */
  --jg-sand: #faf5f2;
  --jg-sand-2: #f0e4d4;
  --jg-dark: #1d1a24;
  --jg-line: #e6e0dc;
  --jg-white: #fff;
  --jg-font: 'Jgive Simona', Jgivesimona, 'Rubik', Arial, sans-serif;
  --jg-display: 'Jgive Masada', Masada, 'Jgive Simona', Jgivesimona, Arial, sans-serif;
  --jg-r: 16px; --jg-r-lg: 32px;
  --jg-s1: 4px; --jg-s2: 8px; --jg-s3: 12px; --jg-s4: 16px; --jg-s5: 24px; --jg-s6: 32px; --jg-s7: 48px; --jg-s8: 80px;
  --jg-max: 1200px; --jg-read: 760px;
}

.jg-page, .jg-body { font-family: var(--jg-font); color: var(--jg-ink); }
.jg-body { margin: 0; background: var(--jg-white); font-size: 1.125rem; line-height: 1.7; -webkit-text-size-adjust: 100%; }
.jg-page img { max-width: 100%; height: auto; }
.jg-page *, .jg-page *::before, .jg-page *::after { box-sizing: border-box; }

/* layout */
.jg-section { padding-block: var(--jg-s8); }
.jg-section + .jg-section.jg-tone-plain, .jg-tone-plain + .jg-tone-plain { padding-block-start: 0; }
.jg-container { width: 100%; max-width: var(--jg-max); margin-inline: auto; padding-inline: var(--jg-s5); }
.jg-container--narrow { max-width: calc(var(--jg-read) + 2 * var(--jg-s5)); }
.jg-container--wide { max-width: 1440px; }
.jg-stack > * + * { margin-block-start: var(--jg-s5); }
.jg-tone-plain { background: var(--jg-white); }
.jg-tone-soft { background: var(--jg-sand); }
.jg-tone-brand { background: var(--jg-brand); color: var(--jg-white); }
.jg-tone-dark { background: var(--jg-dark); color: var(--jg-white); }
.jg-tone-brand a:not(.jg-btn), .jg-tone-dark a:not(.jg-btn) { color: inherit; }
.jg-align-center { text-align: center; }
.jg-align-center.jg-btnrow { justify-content: center; }
.jg-align-start { text-align: start; }

.jg-cols { display: grid; gap: var(--jg-s6); grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .jg-cols--2 { grid-template-columns: 1fr 1fr; }
  .jg-cols--3 { grid-template-columns: repeat(3, 1fr); }
  .jg-cols--4 { grid-template-columns: repeat(2, 1fr); }
  .jg-cols--2.jg-cols--wide-first { grid-template-columns: 2fr 1fr; }
  .jg-cols--2.jg-cols--wide-last { grid-template-columns: 1fr 2fr; }
}
@media (min-width: 1024px) { .jg-cols--4 { grid-template-columns: repeat(4, 1fr); } }
.jg-grid { display: grid; gap: var(--jg-s5); grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
@media (min-width: 768px) {
  .jg-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .jg-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .jg-grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.jg-spacer--s { height: var(--jg-s5); } .jg-spacer--m { height: var(--jg-s7); } .jg-spacer--l { height: var(--jg-s8); }

/* type */
.jg-heading, .jg-hero__title, .jg-donate__title { font-weight: 700; line-height: 1.15; margin: 0 0 var(--jg-s4); overflow-wrap: anywhere; text-wrap: balance; }
h1.jg-heading, .jg-hero__title { font-family: var(--jg-display); font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.6rem); font-weight: 700; line-height: 1.05; }
h2.jg-heading { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); }
h3.jg-heading { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem); }
h4.jg-heading { font-size: 1.25rem; }
.jg-eyebrow { display: inline-block; margin: 0 0 var(--jg-s4); padding: var(--jg-s1) var(--jg-s4); border-radius: 999px; border: 1px solid var(--jg-ink-2); color: var(--jg-ink); font-size: .9rem; font-weight: 500; }
.jg-tone-brand .jg-eyebrow, .jg-tone-dark .jg-eyebrow { border-color: currentColor; color: inherit; }

.jg-prose { overflow-wrap: anywhere; }
.jg-prose--narrow { max-width: var(--jg-read); margin-inline: auto; }
.jg-prose--normal { max-width: 960px; }
.jg-align-center.jg-prose--normal { margin-inline: auto; }
.jg-prose > :first-child { margin-block-start: 0; }
.jg-prose > :last-child { margin-block-end: 0; }
.jg-prose p, .jg-prose ul, .jg-prose ol { margin: 0 0 1em; }
.jg-prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.25; margin: 1.6em 0 .5em; }
.jg-prose h3 { font-size: 1.375rem; line-height: 1.3; margin: 1.4em 0 .4em; }
.jg-prose h4 { font-size: 1.125rem; margin: 1.2em 0 .4em; }
.jg-prose a { color: var(--jg-brand-ink); text-decoration: underline; text-underline-offset: .15em; }
.jg-prose ul, .jg-prose ol { padding-inline-start: 1.4em; }
.jg-prose li + li { margin-block-start: .35em; }
.jg-prose blockquote { margin: 2em 0; padding: var(--jg-s7) var(--jg-s6); background: var(--jg-ink-2); color: var(--jg-white); border: 0; border-radius: var(--jg-s5); font-size: 1.25em; font-weight: 700; line-height: 1.6; text-align: center; }
.jg-prose img { border-radius: var(--jg-r); margin-block: 1em; }
.jg-prose figure { margin: 1.5em 0; }
.jg-prose figcaption { font-size: .875rem; color: var(--jg-ink-2); }

/* buttons */
.jg-btnrow { display: flex; flex-wrap: wrap; gap: var(--jg-s3); align-items: center; }
.jg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: var(--jg-s3) var(--jg-s5); border-radius: 999px; font: 500 1rem/1.2 var(--jg-font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.jg-btn--primary { background: var(--jg-brand); color: var(--jg-white); }
.jg-btn--primary:hover { background: var(--jg-brand-ink); }
.jg-btn--secondary { background: transparent; color: var(--jg-brand-ink); border-color: currentColor; }
.jg-btn--secondary:hover { background: var(--jg-sand); }
.jg-btn--donate { background: var(--jg-white); color: var(--jg-brand-ink); font-weight: 700; }
.jg-tone-plain .jg-btn--donate, .jg-tone-soft .jg-btn--donate { background: var(--jg-brand); color: var(--jg-white); }
.jg-btn:focus-visible, .jg-page a:focus-visible, .jg-page summary:focus-visible { outline: 3px solid var(--jg-brand); outline-offset: 2px; }

/* hero */
.jg-hero .jg-container { display: grid; gap: var(--jg-s6); align-items: center; }
@media (min-width: 900px) { .jg-hero--split .jg-container { grid-template-columns: 1.1fr .9fr; } }
.jg-hero--centered .jg-container, .jg-hero--post .jg-container { text-align: center; justify-items: center; }
.jg-hero__sub { font-size: 1.25rem; color: var(--jg-ink-2); max-width: 40ch; margin: 0 0 var(--jg-s5); }
.jg-tone-brand .jg-hero__sub, .jg-tone-dark .jg-hero__sub { color: inherit; opacity: .9; }
.jg-hero--centered .jg-hero__sub, .jg-hero--post .jg-hero__sub { margin-inline: auto; }
.jg-hero--centered .jg-btnrow { justify-content: center; }
.jg-hero__media img { display: block; width: 100%; border-radius: var(--jg-r-lg); }
.jg-hero--post { padding-block: var(--jg-s7) var(--jg-s6); }
.jg-hero--post .jg-hero__title { font-family: var(--jg-font); font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem); max-width: 22ch; }
.jg-hero--post .jg-hero__sub { max-width: 527px; font-size: 1.125rem; }
.jg-hero--post .jg-hero__media { width: 100%; max-width: 1012px; }
.jg-hero--post .jg-hero__media img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 768px) { .jg-hero--post .jg-hero__media img { aspect-ratio: 1012 / 320; } }
.jg-hero__meta { margin: 0 0 var(--jg-s5); font-size: 1rem; font-weight: 700; color: var(--jg-ink); }

/* media */
.jg-figure { margin: 0; }
.jg-figure--narrow { max-width: var(--jg-read); margin-inline: auto; }
.jg-figure img, .jg-gallery__item img { display: block; width: 100%; border-radius: var(--jg-r); }
.jg-figure figcaption { margin-block-start: var(--jg-s2); font-size: .875rem; color: var(--jg-ink-2); }
.jg-gallery__item { margin: 0; }
.jg-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--jg-r); overflow: hidden; background: var(--jg-dark); }
.jg-video iframe, .jg-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.jg-logos__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--jg-s6); justify-content: center; align-items: center; }
.jg-logos__list img { display: block; max-height: 56px; width: auto; filter: grayscale(1); opacity: .8; }

/* cards, stats, quotes */
.jg-card { display: flex; flex-direction: column; gap: var(--jg-s2); color: inherit; text-decoration: none; }
.jg-cards--boxed .jg-card, .jg-posts .jg-card { background: var(--jg-white); border: 1px solid var(--jg-line); border-radius: var(--jg-r); padding: var(--jg-s5); }
a.jg-card:hover .jg-card__title { color: var(--jg-brand-ink); }
.jg-card__img { width: 100%; border-radius: calc(var(--jg-r) - 4px); aspect-ratio: 16 / 10; object-fit: cover; }
.jg-card__title { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.jg-card__text { margin: 0; color: var(--jg-ink-2); font-size: 1rem; }
.jg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: var(--jg-s5); margin: 0; }
.jg-stat { display: flex; flex-direction: column-reverse; text-align: center; }
.jg-stat dd { margin: 0; font-family: var(--jg-display); font-size: clamp(2.25rem, 1.8rem + 2vw, 3.5rem); color: var(--jg-brand-ink); line-height: 1.1; }
.jg-stat dt { color: var(--jg-ink-2); }
.jg-tone-brand .jg-stat dd, .jg-tone-dark .jg-stat dd, .jg-tone-brand .jg-stat dt, .jg-tone-dark .jg-stat dt { color: inherit; }
.jg-quote { margin: 0; padding: var(--jg-s6); background: var(--jg-sand); border-radius: var(--jg-r-lg); }
.jg-quote blockquote { margin: 0 0 var(--jg-s4); font-size: 1.25rem; }
.jg-quote figcaption { display: flex; gap: var(--jg-s3); align-items: center; }
.jg-quote__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.jg-quote__role { display: block; color: var(--jg-ink-2); font-size: .9rem; }

/* donate banner */
.jg-donate { display: flex; flex-wrap: wrap; gap: var(--jg-s5); align-items: center; justify-content: space-between; padding: var(--jg-s6); border-radius: var(--jg-r-lg); }
.jg-donate__text { margin: 0; }

/* FAQ */
.jg-faq__item { border-block-end: 1px solid var(--jg-line); }
.jg-faq__item summary { display: flex; justify-content: space-between; gap: var(--jg-s4); align-items: center; min-height: 56px; padding-block: var(--jg-s4); font-weight: 700; font-size: 1.125rem; cursor: pointer; list-style: none; }
.jg-faq__item summary::-webkit-details-marker { display: none; }
.jg-faq__item summary::after { content: '+'; flex: none; font-size: 1.5rem; line-height: 1; color: var(--jg-brand-ink); }
.jg-faq__item[open] summary::after { content: '−'; }
.jg-faq__item .jg-prose { padding-block-end: var(--jg-s4); color: var(--jg-ink-2); }

/* forms */
.jg-form { display: grid; gap: var(--jg-s4); max-width: 640px; }
.jg-form__title { margin: 0; font-size: 1.5rem; }
.jg-form__grid { display: grid; gap: var(--jg-s4); grid-template-columns: 1fr; }
@media (min-width: 600px) { .jg-form__grid { grid-template-columns: 1fr 1fr; } .jg-field--wide { grid-column: 1 / -1; } }
.jg-field { display: grid; gap: var(--jg-s1); font-size: 1rem; }
.jg-field__label { font-weight: 500; }
.jg-field input:not([type=checkbox]), .jg-field select, .jg-field textarea { width: 100%; min-height: 48px; padding: var(--jg-s3) var(--jg-s4); border: 1px solid #b9b2ad; border-radius: var(--jg-s3); font: inherit; background: var(--jg-white); color: var(--jg-ink); }
.jg-field input:focus, .jg-field select:focus, .jg-field textarea:focus { outline: 3px solid color-mix(in srgb, var(--jg-brand) 40%, transparent); border-color: var(--jg-brand); }
.jg-field input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--jg-brand); }
.jg-form .jg-btn { justify-self: start; }
.jg-form__status:empty { display: none; }

/* raw HTML from the import keeps its own layout */
.jg-raw, .jg-flow, .jg-legacy-text { display: contents; }
/* …and site.js stands in for Webflow's runtime: the opened mobile menu */
@media (max-width: 991px) {
  .w-nav-menu.jg-nav-open { display: block !important; position: absolute; inset-inline: 0; inset-block-start: 100%; background: var(--jg-white); padding: var(--jg-s4) var(--jg-s5); max-height: calc(100vh - 80px); overflow-y: auto; box-shadow: 0 12px 24px rgb(0 0 0 / .08); }
}

/* site parts */
.jg-header { position: sticky; inset-block-start: 0; z-index: 50; background: var(--jg-white); border-block-end: 1px solid var(--jg-line); }
.jg-header__in { display: flex; align-items: center; gap: var(--jg-s5); max-width: var(--jg-max); margin-inline: auto; padding: var(--jg-s3) var(--jg-s5); min-height: 72px; }
.jg-header__logo img { display: block; height: 36px; width: auto; }
.jg-header__toggle { position: absolute; opacity: 0; pointer-events: none; }
.jg-header__burger { margin-inline-start: auto; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.jg-header__burger span, .jg-header__burger span::before, .jg-header__burger span::after { display: block; width: 22px; height: 2px; background: var(--jg-ink); position: relative; content: ''; }
.jg-header__burger span::before { position: absolute; top: -7px; } .jg-header__burger span::after { position: absolute; top: 7px; }
.jg-header__nav { display: none; position: absolute; inset-inline: 0; inset-block-start: 100%; background: var(--jg-white); padding: var(--jg-s4) var(--jg-s5) var(--jg-s5); border-block-end: 1px solid var(--jg-line); }
.jg-header__toggle:checked ~ .jg-header__nav { display: block; }
.jg-header__nav ul { list-style: none; margin: 0; padding: 0; }
.jg-header__nav a, .jg-header__menu summary { display: flex; align-items: center; min-height: 44px; color: var(--jg-ink); text-decoration: none; cursor: pointer; }
.jg-header__menu ul { padding-inline-start: var(--jg-s4); }
.jg-header__actions { display: flex; flex-wrap: wrap; gap: var(--jg-s3); align-items: center; margin-block-start: var(--jg-s3); }
@media (min-width: 992px) {
  .jg-header__burger { display: none; }
  .jg-header__nav { display: flex; position: static; padding: 0; border: 0; flex: 1; align-items: center; justify-content: space-between; }
  .jg-header__nav > ul { display: flex; gap: var(--jg-s5); }
  .jg-header__menu { position: relative; }
  .jg-header__menu ul { position: absolute; inset-inline-start: 0; min-width: 220px; background: var(--jg-white); border: 1px solid var(--jg-line); border-radius: var(--jg-r); padding: var(--jg-s2) var(--jg-s4); }
  .jg-header__actions { margin: 0; }
}
.jg-footer { background: var(--jg-dark); color: var(--jg-white); padding-block: var(--jg-s7); }
.jg-footer a { color: inherit; text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.jg-footer a:hover { text-decoration: underline; }
.jg-footer__cols { display: grid; gap: var(--jg-s5); grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.jg-footer__title { font-size: 1rem; margin: 0 0 var(--jg-s2); }
.jg-footer ul { list-style: none; margin: 0; padding: 0; }
.jg-footer__note { margin-block-start: var(--jg-s6); font-size: .875rem; opacity: .85; }

/* the default 404 */
.jg-404 { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: var(--jg-s4); padding: var(--jg-s7) var(--jg-s5); }

@media (max-width: 599px) {
  .jg-section { padding-block: var(--jg-s7); }
  .jg-container { padding-inline: var(--jg-s4); }
  .jg-donate, .jg-quote { padding: var(--jg-s5); }
}
@media (prefers-reduced-motion: reduce) { .jg-btn { transition: none; } }
