/* =====================================================================
   Yeshiva of Nyack — General Website Stylesheet
   Shared "house style" for Home, About, Apply and Donate pages.
   A dignified, scholarly palette: midnight blue, brass gold, parchment.
   ===================================================================== */

:root {
  --navy: #16233f;
  --navy-deep: #0e192e;
  --navy-soft: #24365c;
  --gold: #b8912f;
  --gold-light: #d8bf7a;
  --gold-bright: #cfa94a;
  --parchment: #faf6ec;
  --parchment-deep: #f1e9d6;
  --ink: #23292f;
  --ink-soft: #4d545c;
  --line: #e2d9c4;
  --white: #ffffff;

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --radius: 4px;
  --shadow: 0 18px 45px -22px rgba(14, 25, 46, 0.45);
  --shadow-soft: 0 10px 30px -18px rgba(14, 25, 46, 0.35);
  --site-header-height: 84px;
  --viewport-height: 100vh;
  --home-dedication-height: clamp(190px, 28vh, 285px);
}

@supports (height: 100svh) {
  :root {
    --viewport-height: 100svh;
    --home-dedication-height: clamp(190px, 28svh, 285px);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.5em;
}

a { color: var(--navy-soft); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 14px;
}

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--parchment { background: var(--parchment-deep); }
.section--navy { background: var(--navy); color: #dfe4ee; }
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 13px 30px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-bright); color: var(--navy-deep); transform: translateY(-2px); }
.btn--outline { border-color: currentColor; color: inherit; background: transparent; }
.btn--outline:hover { background: rgba(255,255,255,0.08); }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }

/* ---------- Top bar + navigation ---------- */
.topbar {
  background: var(--navy-deep);
  color: #c8cfdd;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: var(--gold-bright); }

.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 16px -8px rgba(0,0,0,0.6);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark {
  width: 46px; height: 46px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--gold-bright);
  flex: none;
}
.brand__name {
  font-family: var(--serif);
  color: var(--white);
  font-size: 1.28rem;
  line-height: 1.1;
}
.brand__name span {
  display: block;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-top: 4px;
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: #d7dce6;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav a.active { color: var(--gold-bright); }
.nav .btn { margin-left: 10px; padding: 10px 22px; }

.menu-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(14,25,46,0.82), rgba(14,25,46,0.92)),
    radial-gradient(circle at 30% 20%, rgba(184,145,47,0.25), transparent 55%),
    var(--navy-deep);
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: calc(var(--viewport-height) - var(--site-header-height) - var(--home-dedication-height));
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104' viewBox='0 0 60 104'%3E%3Cpath d='M30 0l30 17.3v34.7L30 69.3 0 52V17.3z' fill='none' stroke='%23b8912f' stroke-opacity='0.10' stroke-width='1'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 60px; max-width: 820px; }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 20px; }
.hero p { font-size: 1.18rem; color: #d3d9e6; max-width: 620px; margin: 0 0 32px; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.home-dedication-band {
  min-height: var(--home-dedication-height);
  padding: clamp(32px, 5vh, 56px) 0;
  display: flex;
  align-items: center;
}
.home-dedication-band .wrap { width: 100%; }
.home-dedication-band .highlight-banner { margin: 0; }
@media (max-width: 760px) {
  .hero .wrap { padding-top: 48px; padding-bottom: 48px; }
}

/* ---------- Generic layout helpers ---------- */
.grid { display: grid; gap: 30px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--parchment-deep);
  color: var(--gold);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.4rem;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.3rem; }
.card p { color: var(--ink-soft); margin: 0; }

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { font-family: var(--serif); font-size: 2.8rem; color: var(--gold-bright); line-height: 1; }
.stat__label { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: #b9c2d4; margin-top: 8px; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split__media {
  min-height: 360px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-soft), var(--navy-deep));
  display: grid; place-items: center; color: var(--gold-bright);
  font-family: var(--serif); font-size: 1.1rem; text-align: center; padding: 30px;
  box-shadow: var(--shadow);
}
.split h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.split p { color: var(--ink-soft); }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.checklist li { position: relative; padding: 6px 0 6px 30px; color: var(--ink-soft); }
.checklist li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }

/* ---------- Quote ---------- */
.pull-quote {
  max-width: 780px; margin: 0 auto; text-align: center;
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--white); line-height: 1.4;
}
.pull-quote cite { display: block; font-family: var(--sans); font-style: normal;
  font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-bright); margin-top: 24px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px;
}
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.04em; margin-bottom: 8px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-size: 0.98rem; font-family: var(--sans);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--parchment); color: var(--ink); transition: border 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,145,47,0.18); background: var(--white);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); }

.steps { display: flex; gap: 12px; margin-bottom: 34px; flex-wrap: wrap; }
.step { flex: 1; min-width: 140px; padding: 16px; border-radius: var(--radius);
  background: var(--parchment-deep); border: 1px solid var(--line); }
.step b { display: block; font-family: var(--serif); color: var(--gold); font-size: 1.4rem; }
.step span { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Donation ---------- */
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.amount {
  padding: 20px 10px; text-align: center; border: 1.5px solid var(--line);
  border-radius: var(--radius); background: var(--parchment); cursor: pointer;
  font-family: var(--serif); font-size: 1.5rem; color: var(--navy); transition: all 0.15s;
}
.amount:hover, .amount.selected { border-color: var(--gold); background: var(--white);
  box-shadow: 0 0 0 3px rgba(184,145,47,0.16); }
.tier {
  border-left: 3px solid var(--gold); padding: 6px 0 6px 20px; margin-bottom: 22px;
}
.tier h4 { margin-bottom: 4px; }
.tier p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #aab3c6; padding: 64px 0 30px; font-size: 0.92rem; }
.site-footer h4 { color: var(--white); font-size: 1rem; letter-spacing: 0.04em; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; }
.footer-grid a { color: #aab3c6; display: block; padding: 4px 0; }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 44px;
  padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: #7f8aa0; }

/* ---------- Page banner (interior pages) ---------- */
.page-banner {
  background: linear-gradient(180deg, rgba(14,25,46,0.9), rgba(14,25,46,0.95)), var(--navy);
  color: var(--white); padding: 66px 0; text-align: center;
}
.page-banner h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.page-banner p { color: #cbd2e0; max-width: 560px; margin: 10px auto 0; }
.breadcrumb { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .field-row, .amount-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   Contributions & Dedications — donor list, date picker,
   dedication wall, today's highlight, modal.
   ===================================================================== */

/* ---- Donation page two-column layout ---- */
.give-layout { max-width: 780px; margin: 0 auto; }

/* ---- Frequency toggle ---- */
.freq { display: flex; gap: 10px; margin: 4px 0 22px; }
.freq button { flex: 1; padding: 13px; border-radius: var(--radius); border: 1.5px solid var(--line);
  background: var(--parchment); font-family: var(--sans); font-weight: 600; color: var(--navy);
  cursor: pointer; transition: all .15s; }
.freq button.active { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.freq button small { display: block; font-weight: 500; font-size: 0.72rem; opacity: 0.75; }

/* ---- Big editable amount ---- */
.amount-field { position: relative; margin-bottom: 12px; }
.amount-field .cur { position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 2rem; color: var(--gold); }
.amount-field input { width: 100%; padding: 18px 18px 18px 44px; font-family: var(--serif);
  font-size: 2rem; color: var(--navy); border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--parchment); }
.amount-field input:focus { outline: none; border-color: var(--gold); background: var(--white);
  box-shadow: 0 0 0 3px rgba(184,145,47,0.16); }
.quick-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.quick-chips button { padding: 7px 15px; border-radius: 20px; border: 1.5px solid var(--line);
  background: var(--white); color: var(--navy); font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.quick-chips button:hover, .quick-chips button.active { border-color: var(--gold); background: var(--parchment-deep); }

/* ---- Checkbox ---- */
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.92rem; color: var(--ink-soft); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex: none; }

/* ---- Qualify note ---- */
.qualify { display: flex; gap: 10px; align-items: center; font-size: 0.85rem; padding: 12px 16px;
  border-radius: var(--radius); background: var(--parchment-deep); border: 1px dashed var(--line);
  color: var(--ink-soft); margin: 4px 0 18px; }
.qualify.ok { border-color: var(--gold); background: rgba(184,145,47,0.10); color: #6f5714; }
.qualify b { color: var(--navy); }

/* ---- Latest donors panel ---- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 26px; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.panel__head h3 { margin: 0; font-size: 1.2rem; }
.panel__head span { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.donor { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px dotted var(--line); }
.donor:last-child { border-bottom: none; }
.donor__ava { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; color: var(--navy-deep); background: var(--gold-light); font-size: 0.95rem; }
.donor__ava.anon { background: var(--parchment-deep); color: var(--ink-soft); }
.donor__name { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.donor__meta { font-size: 0.76rem; color: var(--ink-soft); }
.donor__amt { margin-left: auto; font-family: var(--serif); color: var(--gold); font-size: 1.05rem; }
.load-more { width: 100%; margin-top: 16px; padding: 11px; border-radius: var(--radius);
  border: 1.5px solid var(--line); background: var(--parchment); color: var(--navy); font-weight: 600; cursor: pointer; }
.load-more:hover { border-color: var(--gold); }
.load-more[disabled] { opacity: 0.5; cursor: default; }

/* ---- Hebrew/English date picker ---- */
.date-legend { font-size: 0.82rem; color: var(--ink-soft); margin: 0 0 14px; }
.date-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--parchment-deep);
  border: 1px solid var(--line); vertical-align: middle; margin: 0 4px 0 12px; }
.date-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.date-chip { position: relative; text-align: center; padding: 12px 8px 10px; border: 1.5px solid var(--line);
  border-radius: var(--radius); background: var(--white); cursor: pointer; transition: all .12s; }
.date-chip:hover { border-color: var(--gold); transform: translateY(-2px); }
.date-chip .heb { font-family: var(--serif); font-size: 1.12rem; color: var(--navy); line-height: 1.2;
  direction: rtl; font-weight: 600; }
.date-chip .translit { font-size: 0.74rem; color: var(--gold); letter-spacing: 0.03em; margin-top: 2px; }
.date-chip .eng { font-size: 0.72rem; color: var(--ink-soft); margin-top: 4px; }
.date-chip.selected { border-color: var(--gold); background: rgba(184,145,47,0.12);
  box-shadow: 0 0 0 3px rgba(184,145,47,0.18); }
.date-chip.taken { cursor: not-allowed; background: var(--parchment-deep); opacity: 0.7; }
.date-chip.taken .heb, .date-chip.taken .translit, .date-chip.taken .eng { color: var(--ink-soft); }
.date-chip.taken:hover { border-color: var(--line); transform: none; }
.date-chip .ribbon { position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--navy);
  color: #fff; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.chosen-note { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--navy); color: #dfe4ee; font-size: 0.92rem; display: none; }
.chosen-note.show { display: block; }
.chosen-note b { color: var(--gold-bright); font-family: var(--serif); }

/* ---- Calendar-style date picker ---- */
.cal-picker { border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 16px 18px 18px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-title { text-align: center; line-height: 1.25; }
.cal-title span { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--navy); font-weight: 600; }
.cal-title small { display: block; font-size: 0.76rem; color: var(--gold); letter-spacing: 0.04em; }
.cal-arrow { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--parchment); color: var(--navy); font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: all .12s; }
.cal-arrow:hover:not([disabled]) { border-color: var(--gold); background: var(--parchment-deep); }
.cal-arrow[disabled] { opacity: 0.3; cursor: default; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.cal-weekdays span { text-align: center; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-height: 64px; padding: 6px 2px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--white); font-family: var(--sans); cursor: pointer; transition: all .12s; }
.cal-cell.empty { border: none; background: transparent; cursor: default; }
.cal-cell .d { font-size: 1.05rem; font-weight: 600; color: var(--navy); line-height: 1; }
.cal-cell .h { font-size: 0.64rem; color: var(--gold); letter-spacing: 0.02em; text-align: center; line-height: 1.15; }
.cal-cell:hover:not([disabled]) { border-color: var(--gold); transform: translateY(-2px); }
.cal-cell.today { border-color: var(--gold); }
.cal-cell.selected { border-color: var(--gold); background: rgba(184,145,47,0.14);
  box-shadow: 0 0 0 3px rgba(184,145,47,0.18); }
.cal-cell[disabled] { cursor: not-allowed; }
.cal-cell.past { opacity: 0.4; background: var(--parchment); }
.cal-cell.past .d, .cal-cell.past .h { color: var(--ink-soft); }
.cal-cell.taken { cursor: not-allowed; background: var(--parchment-deep); opacity: 1; }
.cal-cell.taken .d, .cal-cell.taken .h { color: var(--ink-soft); }
.cal-cell.repeat { border-color: var(--gold); border-style: dashed; background: rgba(184,145,47,0.06); }
.cal-cell.repeat .cal-res { background: var(--gold); }
.cal-cell .cal-res { font-size: 0.52rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--navy); padding: 1px 5px; border-radius: 8px; margin-top: 1px; }
@media (max-width: 560px){
  .cal-cell { min-height: 54px; }
  .cal-cell .h { font-size: 0.56rem; }
  .cal-picker { padding: 12px 12px 14px; }
  .cal-grid, .cal-weekdays { gap: 4px; }
}

/* ---- Today's highlight banner ---- */
.highlight-banner { border-radius: var(--radius); padding: 26px 30px; margin-bottom: 30px;
  background: linear-gradient(135deg, rgba(184,145,47,0.16), rgba(184,145,47,0.04));
  border: 1.5px solid var(--gold); display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.highlight-banner .cal { text-align: center; flex: none; padding-right: 22px; border-right: 1px solid var(--gold-light); }
.highlight-banner .cal .heb { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); direction: rtl; }
.highlight-banner .cal .eng { font-size: 0.76rem; color: var(--gold); letter-spacing: 0.06em; }
.highlight-banner .txt small { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.highlight-banner .txt h3 { margin: 4px 0 2px; font-size: 1.35rem; }
.highlight-banner .txt p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Navy variant — the same banner sitting on a navy band near the top of
   the page. Keeps the gold, lightens the blue with a soft white wash. */
.highlight-banner--navy {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--gold);
}
.highlight-banner--navy .cal { border-right-color: rgba(207, 169, 74, 0.45); }
.highlight-banner--navy .cal .heb { color: var(--white); }
.highlight-banner--navy .cal .eng { color: var(--gold-bright); }
.highlight-banner--navy .txt small { color: var(--gold-bright); }
.highlight-banner--navy .txt h3 { color: var(--white); }
.highlight-banner--navy .txt p { color: #cbd2e0; }

/* ---- Dedication wall (gold cards) ---- */
.wall-head { text-align: center; max-width: 560px; margin: 0 auto 34px; }
.contrib-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.contrib-card { border: 1.5px solid var(--gold); border-radius: var(--radius); padding: 16px 18px;
  background: linear-gradient(160deg, rgba(184,145,47,0.08), var(--white)); cursor: pointer;
  transition: transform .15s, box-shadow .15s; position: relative; }
.contrib-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px -16px rgba(184,145,47,0.7); }
.contrib-card .honor { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.contrib-card .ded { font-family: var(--serif); color: var(--navy); font-size: 1.05rem; margin: 6px 0 8px; line-height: 1.3; }
.contrib-card .who { font-size: 0.8rem; color: var(--ink-soft); }
.contrib-card .expand { position: absolute; top: 12px; right: 14px; color: var(--gold); font-size: 0.8rem; }

/* ---- Modal ---- */
.modal { position: fixed; inset: 0; background: rgba(14,25,46,0.6); display: none;
  place-items: center; z-index: 100; padding: 20px; }
.modal.show { display: grid; }
.modal__box { background: var(--parchment); border-radius: var(--radius); max-width: 460px; width: 100%;
  box-shadow: var(--shadow); border-top: 5px solid var(--gold); padding: 34px; position: relative; }
.modal__box .close { position: absolute; top: 14px; right: 18px; background: none; border: 0;
  font-size: 1.5rem; color: var(--ink-soft); cursor: pointer; }
.modal__box .honor { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.modal__box h3 { font-size: 1.6rem; margin: 8px 0 16px; }
.modal__box dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; font-size: 0.92rem; margin: 0; }
.modal__box dt { color: var(--ink-soft); }
.modal__box dd { margin: 0; color: var(--navy); font-weight: 600; }

@media (max-width: 560px){
  .highlight-banner .cal { border-right: none; padding-right: 0; }
  .modal__box dl { grid-template-columns: 1fr; gap: 2px 0; }
  .modal__box dd { margin-bottom: 10px; }
}

/* =====================================================================
   Homepage beis-medrash feature slider — Editorial Minimal (Option 5)
   ===================================================================== */
.slider { position: relative; border-radius: var(--radius); }
.ph { display: grid; place-items: center; color: var(--gold-bright); font-family: var(--serif);
  font-size: 1.6rem; position: relative; }
.ph::after { content: "▣ your photo"; position: absolute; bottom: 10px; right: 14px; font-family: var(--sans);
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.bg1 { background: linear-gradient(135deg,#22406b,#0e192e); }
.bg2 { background: linear-gradient(135deg,#b8912f,#5c4712); }
.bg3 { background: linear-gradient(135deg,#3a6b48,#16281c); }
.bg4 { background: linear-gradient(135deg,#4a3a6b,#1c1430); }
.s-tag { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

.slider.swap .slide { display: none; }
.slider.swap .slide.active { display: grid; animation: fadein 0.6s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.s-min { grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.opt5 .ph { height: 360px; border-radius: var(--radius); font-size: 2rem; box-shadow: var(--shadow); }
.s-mtext h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); margin: 10px 0 12px; }
.s-mtext p { color: var(--ink-soft); margin: 0; }
.opt5-foot { display: flex; align-items: center; gap: 20px; margin-top: 26px; }
.opt5-foot .counter { font-family: var(--serif); color: var(--gold); letter-spacing: 0.1em; font-size: 0.95rem; }
.progress { flex: 1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: var(--gold); }
.tlink { background: none; border: none; color: var(--navy); font-weight: 600; cursor: pointer; font-size: 0.9rem; padding: 4px 8px; }
.tlink:hover { color: var(--gold); }
@media (max-width: 700px){ .s-min { grid-template-columns: 1fr; } .opt5 .ph { height: 230px; } }

/* =====================================================================
   Latest news — magazine grid (image-forward tiles)
   ===================================================================== */
.nx-media { position: relative; display: grid; place-items: center; color: var(--gold-bright);
  font-family: var(--serif); font-size: 1.5rem; overflow: hidden; }
.nx-media::after { content: "▣ your photo"; position: absolute; bottom: 8px; right: 12px;
  font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); }
.nx-cat { display: inline-block; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--gold-bright); }
.nx-date { font-size: 0.74rem; letter-spacing: 0.06em; color: #c3cbdb; text-transform: uppercase; }

.news-mag { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 22px; }
.news-tile { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 220px;
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform 0.2s, box-shadow 0.2s; }
.news-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-tile .nx-media { position: absolute; inset: 0; }
.news-tile::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(14,25,46,0.94), rgba(14,25,46,0.35) 55%, rgba(14,25,46,0.1)); }
.news-tile__link { position: absolute; inset: 0; z-index: 3; }
.news-tile__body { position: relative; z-index: 2; padding: 24px 24px 22px; color: #fff; pointer-events: none; }
.news-tile__body .row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.news-tile__body h3 { color: #fff; margin: 0 0 6px; font-size: 1.3rem; line-height: 1.25; }
.news-tile__body h4 { color: #fff; margin: 0; font-size: 1.12rem; line-height: 1.3; font-family: var(--serif); font-weight: 600; }
.news-tile__body p { color: #d7dce6; margin: 8px 0 0; font-size: 0.92rem; }
.news-tile--feature { grid-column: span 2; grid-row: span 2; }
.news-tile--feature h3 { font-size: 1.9rem; }
@media (max-width: 820px){ .news-mag { grid-template-columns: 1fr 1fr; }
  .news-tile--feature { grid-column: span 2; grid-row: span 1; } }
@media (max-width: 560px){ .news-mag { grid-template-columns: 1fr; }
  .news-tile--feature { grid-column: span 1; } }
