/* Mikvah Monday — mikvahmonday.org
   Navy and sky are Mikvah Tahara Association's own colours; the warm paper and the Fraunces display face give the
   archive its printed-almanac feel. Body text is Poppins, as on mikvaht.org. */
:root {
  --navy: #002866;
  --navy-2: #001f52;
  --navy-3: #00183f;
  --sky: #36a3d1;
  --sky-ink: #17739f;      /* sky dark enough for small text on light backgrounds (4.8:1 on paper) */
  --sky-light: #8fd1ec;    /* sky for text on navy */
  --sky-pale: #d9eef8;
  --foam: #eef6fa;
  --paper: #f8f5ef;
  --paper-line: #e6dfd2;
  --ink: #15213a;
  --ink-2: #4b5669;
  --line: #dce4ec;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --header: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 99; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
section[id] { scroll-margin-top: calc(var(--header) + 8px); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; }
.eyebrow { font: 600 12px/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; margin: 0; color: var(--sky-ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px;
  border: 0; border-radius: 999px; font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 16px; }
.btn-donate { color: var(--navy); background: linear-gradient(180deg, #92dbf6 0%, #45afdc 100%);
  box-shadow: 0 10px 26px -12px rgba(54, 163, 209, .95), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn-donate:hover { background: linear-gradient(180deg, #a9e5fa 0%, #55bae4 100%); }
.btn-line { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .42); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--sky-light); color: #fff; }
.btn-outline { color: var(--navy); background: transparent; box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn svg { width: 17px; height: 17px; flex: none; }

/* ---------- header: Mikvah Monday's own top bar (links to the main site live in the footer) ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--navy); color: #fff;
  border-bottom: 1px solid rgba(143, 209, 236, .14); transition: box-shadow .2s ease, background .2s ease; }
@supports (backdrop-filter: blur(4px)) { .site-header { background: rgba(0, 40, 102, .9); backdrop-filter: saturate(1.4) blur(12px); } }
.site-header.is-scrolled { box-shadow: 0 10px 30px -16px rgba(0, 10, 30, .65); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header); }
/* the mark sits in the padding so the home link stays one real, focusable box */
.brand { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 40px; padding-left: 52px; }
.brand-home { display: block; color: #fff; text-decoration: none; }
.brand-mark { position: absolute; left: 0; top: 50%; width: 40px; height: 40px; margin-top: -20px; }
.brand-home b { display: block; font: 600 19px/1.1 var(--display); letter-spacing: -.005em; white-space: nowrap; }
.brand-by { display: block; font-size: 12px; line-height: 1.5; color: var(--sky-light); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-by:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.top-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); flex: none; }
.tl { color: #dbe7f4; text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0;
  background: linear-gradient(var(--sky-light), var(--sky-light)) 0 100% / 0 2px no-repeat; transition: background-size .25s ease, color .15s; }
.tl:hover { color: #fff; background-size: 100% 2px; }
.top-links .btn { min-height: 42px; padding: 0 22px; font-size: 14.5px; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #d3e2f1;
  padding: clamp(48px, 7vw, 92px) 0 clamp(96px, 12vw, 160px); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 75% at 84% 42%, rgba(54, 163, 209, .34), transparent 62%),
    radial-gradient(45% 60% at 0% 105%, rgba(54, 163, 209, .28), transparent 70%),
    linear-gradient(180deg, #002866 0%, #00225a 100%); }
/* ripples spreading from where the cards sit */
.hero::after { content: ""; position: absolute; z-index: -1; width: 1100px; height: 1100px; right: -280px; top: 50%; transform: translateY(-52%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1100 1100' fill='none' stroke='%238fd1ec'%3E%3Ccircle cx='550' cy='550' r='120' stroke-opacity='.22' stroke-width='1.5'/%3E%3Ccircle cx='550' cy='550' r='200' stroke-opacity='.18' stroke-width='1.3'/%3E%3Ccircle cx='550' cy='550' r='290' stroke-opacity='.14' stroke-width='1.1'/%3E%3Ccircle cx='550' cy='550' r='390' stroke-opacity='.1'/%3E%3Ccircle cx='550' cy='550' r='500' stroke-opacity='.07'/%3E%3C/svg%3E") center / contain no-repeat; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--sky-light); flex-wrap: wrap; }
.hero-eyebrow svg { width: 16px; height: 16px; fill: var(--sky); flex: none; }
.hero-eyebrow a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(143, 209, 236, .55); }
.hero-eyebrow a:hover { border-color: #fff; }
.ey-phone { display: none; }   /* the header carries "A project of…" until the phone hides it there */
.hero h1 { font-size: clamp(60px, 10.4vw, 136px); line-height: .9; letter-spacing: -.025em; color: #fff; margin: 22px 0 26px; }
.hero h1 em { display: block; font-style: italic; font-weight: 500; color: var(--sky-light); letter-spacing: -.02em; }
.lede { font-size: clamp(17px, 1.7vw, 19.5px); line-height: 1.6; max-width: 52ch; margin: 0 0 34px; }
.lede a { color: #fff; text-decoration-color: rgba(143, 209, 236, .7); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.lede a:hover { text-decoration-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* the fanned stack of the last weeks */
.fan { position: relative; height: clamp(380px, 40vw, 520px); }
.fan-card { --dx: 0%; --r: 0deg; position: absolute; left: 50%; top: 50%; width: clamp(200px, 21vw, 280px);
  transform: translate(calc(-50% + var(--dx)), -50%) rotate(var(--r)); display: block; padding: 10px 10px 0; border: 0;
  border-radius: 6px; background: #fff; color: var(--ink); text-align: left; cursor: pointer;
  box-shadow: 0 30px 60px -24px rgba(0, 8, 30, .75), 0 2px 6px rgba(0, 8, 30, .25); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.fan-card.f3 { --dx: -36%; --r: -9deg; }
.fan-card.f2 { --dx: 32%; --r: 7deg; }
.fan-card.f1 { --dx: -2%; --r: -1.5deg; z-index: 2; }
.fan:hover .f3, .fan:focus-within .f3 { --dx: -46%; --r: -12deg; }
.fan:hover .f2, .fan:focus-within .f2 { --dx: 42%; --r: 10deg; }
.fan-card:hover { z-index: 3; }
.fan-card.is-blank { height: clamp(290px, 31vw, 400px); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); cursor: default; }
.fan-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: var(--foam); }
.fan-img img { width: 100%; height: 100%; object-fit: cover; }
.fan-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 4px 12px; }
.fan-cap b { font: italic 500 21px/1 var(--display); color: var(--navy); }
.fan-cap small { font-size: 12px; color: var(--ink-2); }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 88px); fill: var(--paper); }

/* ---------- about the series ---------- */
.series { background: var(--paper); padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); }
.series-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.series h2 { font-size: clamp(34px, 4.4vw, 54px); color: var(--navy); margin: 14px 0 22px; }
.series-copy p:not(.eyebrow) { margin: 0 0 16px; max-width: 60ch; color: var(--ink-2); }
.series-copy a, .sec-head a { color: var(--navy); font-weight: 500; text-decoration-color: var(--sky); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.series-copy a:hover, .sec-head a:hover { color: var(--sky-ink); }
.ledger { margin: 0; padding: 0; border-top: 1px solid var(--paper-line); }
.ledger div { display: grid; grid-template-columns: clamp(96px, 10.5vw, 132px) minmax(0, 1fr); gap: 2px 20px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--paper-line); }
.ledger dt { grid-row: span 2; font: 600 clamp(38px, 4.2vw, 52px)/1 var(--display); color: var(--navy); white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; }
.ledger dd { margin: 0; font-weight: 500; color: var(--ink); }
.ledger dd small { display: block; font-weight: 400; font-size: 13.5px; color: var(--ink-2); }

/* the calendar of Mondays */
.cal-wrap { margin-top: clamp(40px, 6vw, 72px); }
.cal-card { background: #fff; border: 1px solid var(--paper-line); border-radius: 18px; padding: clamp(18px, 3vw, 34px);
  box-shadow: 0 24px 50px -36px rgba(60, 40, 10, .35); }
.cal-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.cal-head h3 { font-size: clamp(24px, 2.6vw, 30px); color: var(--navy); }
.cal-head p { margin: 0; max-width: 62ch; font-size: 14.5px; color: var(--ink-2); }
.cal { --yl: 52px; display: grid; grid-template-columns: var(--yl) repeat(53, minmax(0, 1fr)); column-gap: 3px; row-gap: 7px; margin-top: 22px; }
.cal-m { font-size: 11px; line-height: 1; color: var(--ink-2); white-space: nowrap; letter-spacing: .02em; padding-bottom: 2px; }
.cal-y { align-self: center; font: 600 15px/1 var(--display); color: var(--navy); font-variant-numeric: lining-nums; }
.wk { display: block; height: 20px; min-width: 0; padding: 0; border: 0; border-radius: 3px; background: rgba(0, 40, 102, .075); }
.wk.on { background: var(--sky); cursor: pointer; transition: background .15s ease, transform .15s ease; }
.wk.on:hover, .wk.on:focus-visible { background: var(--navy); transform: scaleY(1.18); }
.wk.mile { background: var(--navy); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--sky); }
.cal-key { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--line);
  font-size: 13.5px; color: var(--ink-2); }
.cal-key li { display: flex; align-items: center; gap: 9px; }
.cal-key i { width: 12px; height: 12px; border-radius: 3px; background: var(--sky); flex: none; }
.cal-key i.off { background: rgba(0, 40, 102, .075); }
.cal-key i.mile { background: var(--navy); box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px var(--sky); }
.cal-key button { padding: 0; border: 0; background: none; color: var(--navy); font: 500 13.5px/1.4 var(--body); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: 3px; }
.cal-key button:hover { color: var(--sky-ink); }

/* ---------- section heads ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 40px; margin-bottom: 30px; }
.sec-head h2 { font-size: clamp(34px, 4.4vw, 54px); color: var(--navy); margin-top: 14px; }
.sec-head > p { margin: 0; max-width: 48ch; color: var(--ink-2); }

/* ---------- the archive ---------- */
.archive { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 12px; border-radius: 22px; background: var(--foam); }
.search { position: relative; flex: 1 1 300px; min-width: 0; }
.search svg { position: absolute; left: 17px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
#q { width: 100%; height: 50px; padding: 0 18px 0 46px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink); font: 400 15.5px var(--body); -webkit-appearance: none; appearance: none; }
#q::placeholder { color: #7a8597; }
#q:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(54, 163, 209, .2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); font: 500 14px/1 var(--body); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--sky); }
.chip small { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip[aria-pressed="true"] small { color: var(--sky-light); }

.atlas { margin-top: 12px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.atlas summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 15px 52px 15px 22px; position: relative;
  list-style: none; cursor: pointer; font: 600 15px/1.3 var(--body); color: var(--navy); }
.atlas summary::-webkit-details-marker { display: none; }
.atlas summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s ease; }
.atlas[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.atlas summary small { font: 400 13.5px/1.3 var(--body); color: var(--ink-2); }
.atlas-grid { columns: 230px; column-gap: 40px; padding: 4px 22px 18px; border-top: 1px solid var(--line); }
.atlas-grid > div { break-inside: avoid; padding-top: 16px; }
.atlas-grid h3 { font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.atlas-grid p { margin: 0; line-height: 2; }
.atlas-grid .place { display: inline-block; margin-right: 14px; white-space: nowrap; }
.atlas-grid .place > a { display: inline-block; margin-left: 2px; padding: 0 5px; border-radius: 6px; color: var(--sky-ink);
  font-size: 13px; line-height: 1.6; text-decoration: none; }
.atlas-grid .place > a:hover { background: var(--sky-pale); color: var(--navy); }
.atlas-note { margin: 0; padding: 12px 22px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.atlas-note span { color: var(--sky-ink); }
.atlas-note a { color: var(--sky-ink); }
.atlas-grid button { padding: 0; border: 0; background: none; color: var(--ink); font: 400 14.5px/1.5 var(--body);
  cursor: pointer; text-decoration: underline dotted var(--sky); text-decoration-thickness: 1.5px; text-underline-offset: 4px; white-space: nowrap; }
.atlas-grid button:hover { color: var(--sky-ink); text-decoration-style: solid; }
.atlas-grid button sup { margin-left: 3px; font-size: 11px; color: var(--ink-2); vertical-align: 4px; }
.atlas-grid button[hidden], .atlas-grid div[hidden], .atlas-grid .place[hidden] { display: none; }

.result-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-height: 24px; margin: 26px 0 6px; font-size: 14px; color: var(--ink-2); }
.result-line button, .result-line a { padding: 0; border: 0; background: none; color: var(--navy); font: 600 14px/1.4 var(--body); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: 3px; }

.grid { display: grid; gap: clamp(26px, 3vw, 40px) clamp(14px, 2vw, 26px); grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.year { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 16px; margin-top: 30px; padding-bottom: 12px; border-bottom: 1px solid var(--line); position: relative; }
.year::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 3px; border-radius: 3px; background: var(--sky); }
.year:first-child { margin-top: 6px; }
.year b { font: 600 clamp(40px, 5vw, 64px)/.95 var(--display); color: var(--navy); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.year span { font-size: 14px; color: var(--ink-2); }

/* cards */
.card { display: flex; flex-direction: column; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.card:focus-visible { outline: none; }
.card:focus-visible .card-img { outline: 3px solid var(--sky); outline-offset: 3px; }
.card-fig { position: relative; display: block; }
.card-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: var(--foam);
  box-shadow: 0 1px 2px rgba(0, 40, 102, .08), 0 14px 30px -18px rgba(0, 40, 102, .45); }
.card-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.card-img img.is-in { opacity: 1; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img.no-img { display: grid; place-items: center; background: linear-gradient(160deg, var(--foam), var(--sky-pale)); }
.card-img.no-img > svg { width: 42px; height: 42px; fill: var(--sky); opacity: .6; }
.plats { position: absolute; left: 10px; top: 10px; display: inline-flex; gap: 6px; padding: 6px 8px; border-radius: 999px;
  background: rgba(0, 20, 50, .55); color: #fff; }
@supports (backdrop-filter: blur(4px)) { .plats, .count, .play::before { backdrop-filter: blur(6px); } }
.plats svg { width: 14px; height: 14px; }
.count { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px;
  background: rgba(0, 20, 50, .55); color: #fff; font: 600 12px/1 var(--body); }
.count svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.play::before { content: ""; width: 56px; height: 56px; border-radius: 50%; background: rgba(0, 20, 50, .5);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .14); }
.play::after { content: ""; position: absolute; margin-left: 5px; border-left: 17px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }

/* the calendar leaf: week number (or date) on every Mikvah Monday card */
.leaf { position: absolute; left: 12px; bottom: -18px; z-index: 1; display: block; width: 60px; text-align: center; border-radius: 8px;
  background: #fff; box-shadow: 0 8px 18px -8px rgba(0, 40, 102, .55), 0 0 0 1px rgba(0, 40, 102, .06); }
.leaf::before, .leaf::after { content: ""; position: absolute; top: -4px; width: 4px; height: 9px; border-radius: 2px; background: #a7b8ca; }
.leaf::before { left: 17px; }
.leaf::after { right: 17px; }
.leaf-k { display: block; padding: 6px 0 4px; border-radius: 8px 8px 0 0; background: var(--navy); color: #fff;
  font: 600 9.5px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.leaf-n { display: block; padding: 5px 0 7px; font: 600 27px/1 var(--display); color: var(--navy); font-variant-numeric: lining-nums; }
.leaf-date .leaf-k { background: var(--sky-pale); color: var(--navy); }
.card-body { display: block; padding: 10px 2px 0; }
.card-meta { display: block; min-height: 20px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.has-leaf .card-meta { padding-left: 74px; }
.card-title { display: -webkit-box; margin-top: 14px; font: 600 19px/1.26 var(--display); color: var(--ink); -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; transition: color .15s; }
.card:hover .card-title { color: var(--sky-ink); }
.card-other .card-img { aspect-ratio: 1 / 1; }
.card-other .card-title { margin-top: 6px; font-size: 17px; }

.empty { padding: 28px 0 8px; color: var(--ink-2); }
.empty p { margin: 0 0 14px; }
.more { display: flex; justify-content: center; padding: clamp(32px, 4vw, 48px) 0 0; }
.more .btn small { font-weight: 500; font-size: 13px; opacity: .75; }

/* ---------- give ---------- */
.give { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-2); color: #cfdeee; text-align: center;
  padding: clamp(110px, 13vw, 170px) 0 clamp(72px, 9vw, 112px); }
.give::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 58%; width: 1000px; height: 1000px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(54, 163, 209, .28), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' fill='none' stroke='%238fd1ec'%3E%3Ccircle cx='500' cy='500' r='150' stroke-opacity='.16'/%3E%3Ccircle cx='500' cy='500' r='250' stroke-opacity='.12'/%3E%3Ccircle cx='500' cy='500' r='360' stroke-opacity='.08'/%3E%3Ccircle cx='500' cy='500' r='480' stroke-opacity='.05'/%3E%3C/svg%3E") center / contain no-repeat; }
.wave-top { top: -1px; bottom: auto; fill: #fff; }
.give-inner { display: flex; flex-direction: column; align-items: center; }
.give .eyebrow { color: var(--sky-light); }
.give h2 { font-size: clamp(32px, 4.6vw, 58px); color: #fff; max-width: 19ch; margin: 16px 0 18px; }
.give p:not(.eyebrow) { max-width: 54ch; margin: 0 0 32px; font-size: 17px; }

/* ---------- more from Mikvah Tahara ---------- */
.others { background: var(--foam); padding: clamp(56px, 8vw, 100px) 0 clamp(64px, 8vw, 104px); }
.grid-other { grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: clamp(22px, 3vw, 34px) clamp(14px, 2vw, 22px); }
.others .card-img { box-shadow: 0 1px 2px rgba(0, 40, 102, .08), 0 12px 26px -18px rgba(0, 40, 102, .5); background: #e1eef5; }

/* ---------- footer (mirrors mikvaht.org) ---------- */
.site-footer { background: var(--navy-3); color: #b9cae0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; padding-block: clamp(48px, 6vw, 72px) 36px; }
.f-logo { display: inline-block; margin-bottom: 22px; padding: 11px 15px; border-radius: 12px; background: #fff; }
.f-logo img { height: 34px; width: auto; }
.site-footer h3 { font: 600 12px/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--sky-light); margin: 0 0 14px; }
.site-footer h3.f-connect { margin-top: 26px; }
.site-footer p { margin: 0; max-width: 48ch; line-height: 1.7; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sky-light); }
.f-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.social { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 22px; }
.social a { display: inline-flex; align-items: center; gap: 9px; }
.social svg { width: 18px; height: 18px; }
.legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 18px calc(26px + env(safe-area-inset-bottom, 0px)); font-size: 13px; color: #92a7c2; }
.legal p { margin: 3px 0; max-width: none; }
.legal a { color: #c9d7e8; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 3px; }

/* ---------- the story window ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: clamp(12px, 3vw, 36px); }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 14, 38, .84); }
.modal-box { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); width: min(1180px, 100%);
  height: min(820px, 100%); overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); }
.modal-close { position: absolute; right: 14px; top: 14px; z-index: 4; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--navy); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35); }
.modal-close:hover { background: var(--navy); color: #fff; }
.modal-media { position: relative; min-height: 0; min-width: 0; background: #0a1324; }
.strip { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.strip::-webkit-scrollbar { display: none; }
.strip > * { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center; }
.strip img, .strip video { width: 100%; height: 100%; object-fit: contain; background: #0a1324; }
.yt-lite, .media-out { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; color: #fff; cursor: pointer; text-decoration: none; }
.yt-lite img, .media-out img { width: 100%; height: 100%; object-fit: contain; opacity: .85; }
.yt-lite .play::before, .media-out .play::before { width: 76px; height: 76px; background: var(--sky); box-shadow: 0 0 0 12px rgba(54, 163, 209, .28); }
.yt-lite .play::after, .media-out .play::after { border-left-width: 22px; border-top-width: 13px; border-bottom-width: 13px; }
.media-out span.out { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px;
  background: rgba(0, 0, 0, .6); font: 600 14px/1 var(--body); white-space: nowrap; }
.yt-frame { position: relative; width: 100%; height: 100%; background: #000; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.m-count { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); color: #fff; font: 600 12.5px/1 var(--body); font-variant-numeric: tabular-nums; pointer-events: none; }
.m-arrow { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: var(--navy); font: 600 20px/1 var(--body); cursor: pointer; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .5); }
.m-arrow:disabled { opacity: 0; pointer-events: none; }
.m-prev { left: 14px; }
.m-next { right: 14px; }
.modal-body { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 30px clamp(22px, 2.6vw, 34px) 20px; }
.modal-head { display: flex; align-items: center; gap: 16px; padding-right: 50px; }
.modal-head .leaf { position: relative; left: auto; bottom: auto; flex: none; }
.modal-meta { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.modal-meta b { display: block; font-weight: 600; color: var(--sky-ink); letter-spacing: .12em; text-transform: uppercase; font-size: 11.5px; }
.modal-title { margin: 20px 0 14px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; color: var(--navy); overflow-wrap: anywhere; }
.modal-text { flex: 1 0 auto; white-space: pre-line; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.7; color: var(--ink); }
.modal-text .tag { color: #7b8798; }
.modal-text a { color: var(--sky-ink); }
.modal-project { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: 24px 0 0; padding: 12px 16px;
  border-radius: 12px; background: var(--foam); font-size: 14.5px; line-height: 1.5; }
.modal-project span { flex-basis: 100%; font: 600 11.5px/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.modal-project a { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--sky);
  text-underline-offset: 3px; }
.modal-project a:hover { color: var(--sky-ink); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.modal-actions .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
.modal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.nav-btn { padding: 8px 2px; border: 0; background: none; color: var(--navy); font: 600 14px/1 var(--body); cursor: pointer; }
.nav-btn:hover { color: var(--sky-ink); }
.nav-btn:disabled { opacity: .3; cursor: default; }
#modal-pos { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.modal.no-media .modal-box { grid-template-columns: minmax(0, 1fr); width: min(760px, 100%); }
.modal.no-media .modal-media { display: none; }
@media (min-width: 1061px) {
  .modal.no-media .modal-box { display: flex; flex-direction: column; height: auto; max-height: min(820px, 100%); }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1060px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > .f-about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero-grid, .series-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 40px; }
  .fan { height: 360px; margin-top: 6px; }
  .fan-card { width: 210px; }
  .fan-card.is-blank { height: 290px; }
  .modal { padding: 0; }
  .modal-box { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; height: 100%; border-radius: 0; overflow-y: auto; overscroll-behavior: contain; }
  .modal-media { height: min(58vh, 560px); }
  .modal-body { overflow: visible; padding: 22px var(--gutter) calc(20px + env(safe-area-inset-bottom, 0px)); }
  .modal-close { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; }
  .modal-head { padding-right: 0; }
}
@media (max-width: 640px) {
  /* "A project of…" moves from the header into the hero, where it has room */
  :root { --header: 64px; }
  .brand { min-height: 34px; padding-left: 44px; }
  .brand-mark { width: 34px; height: 34px; margin-top: -17px; }
  .brand-home b { font-size: 16.5px; }
  .brand-by, .tl-posts { display: none; }
  .ey-phone { display: inline; }
  .header-row { gap: 12px; }
  .top-links { gap: 14px; }
  .tl { font-size: 14px; }
  .top-links .btn { min-height: 40px; padding: 0 15px; font-size: 13.5px; }
}
@media (max-width: 600px) {
  .btn-lg { min-height: 50px; padding: 0 24px; font-size: 15.5px; }
  .hero h1 { margin: 18px 0 20px; }
  .fan { height: 330px; }
  .fan-card { width: 188px; padding: 8px 8px 0; }
  .fan-card.is-blank { height: 262px; }
  .fan-cap { padding: 8px 2px 10px; }
  .fan-cap b { font-size: 18px; }
  .fan-cap small { font-size: 11px; }
  .ledger div { grid-template-columns: 88px minmax(0, 1fr); gap: 2px 14px; padding: 15px 0; }
  .cal { --yl: 30px; column-gap: 1.5px; row-gap: 6px; }
  .cal-m { font-size: 9px; letter-spacing: 0; }
  .cal-y { font-size: 11.5px; }
  .wk { height: 15px; border-radius: 1.5px; pointer-events: none; }   /* 4px squares are a picture here, not buttons */
  .cal-hint { display: none; }
  .wk.mile { box-shadow: 0 0 0 1px #fff, 0 0 0 2px var(--sky); }
  .toolbar { padding: 10px; border-radius: 18px; }
  .chip { min-height: 38px; padding: 0 12px; font-size: 13.5px; gap: 5px; }
  .chip small { font-size: 11px; }
  .atlas summary { padding: 14px 46px 14px 18px; }
  .atlas-grid { padding: 0 18px 16px; }
  .grid, .grid-other { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .card-img { border-radius: 10px; }
  .plats { left: 6px; top: 6px; padding: 4px 6px; gap: 4px; }
  .plats svg { width: 12px; height: 12px; }
  .count { right: 6px; top: 6px; padding: 4px 7px; font-size: 11px; }
  .count svg { display: none; }
  .play::before { width: 44px; height: 44px; box-shadow: 0 0 0 5px rgba(255, 255, 255, .14); }
  .play::after { margin-left: 4px; border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; }
  .leaf { left: 8px; bottom: -15px; width: 46px; border-radius: 7px; }
  .leaf::before { left: 12px; }
  .leaf::after { right: 12px; }
  .leaf-k { padding: 5px 0 3px; font-size: 8px; letter-spacing: .12em; border-radius: 7px 7px 0 0; }
  .leaf-n { padding: 4px 0 5px; font-size: 20px; }
  .has-leaf .card-meta { padding-left: 58px; }
  .card-meta { font-size: 11.5px; }
  .card-title { margin-top: 12px; font-size: 16px; }
  .card-other .card-title { font-size: 15px; }
  .year { gap: 12px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .modal-media { height: 56vh; }
}
@media (max-width: 380px) {
  .chip small { display: none; }
}
@media (max-width: 374px) {
  .tl { display: none; }   /* Contact stays in the footer; brand + Donate are what fits on the narrowest phones */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover .card-img img { transform: none; }
}
