/* =========================================================
   KK Etz Chaim — theme
   Colours are taken from the Etz Chaim logo. Change them here only.
   ========================================================= */
:root {
  --primary-color: #0c3f10;      /* logo trunk & lettering green */
  --primary-dark: #082d0b;
  --primary-deeper: #041a06;
  --leaf-green: #2f7a1f;         /* logo leaf green */
  --leaf-light: #6fae4a;
  --accent-gold: #b8891a;        /* logo rule & Magen David gold */
  --accent-gold-dark: #8a6508;
  --accent-gold-light: #e2c46e;
  --bg-cream: #faf7ee;
  --bg-paper: #fffdf7;
  --text-dark: #1d2a1f;
  --text-muted: #55625a;
  --border-soft: #e4dcc4;
  --white: #ffffff;
  --danger: #a12a1f;
  --success: #2d6a2a;

  --font-display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-hebrew: "Frank Ruhl Libre", "David", "Times New Roman", serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(10, 52, 16, .28);
  --container: 1160px;
}

/* Text-size steps (set by the accessibility toolbar) */
html { font-size: 100%; scroll-behavior: smooth; }
html.fs-115 { font-size: 115%; }
html.fs-130 { font-size: 130%; }

/* High-contrast mode */
html.hc {
  --primary-color: #002b00;
  --primary-dark: #001a00;
  --primary-deeper: #000;
  --leaf-green: #004d00;
  --accent-gold: #7a5600;
  --accent-gold-dark: #5a3f00;
  --accent-gold-light: #ffe27a;
  --bg-cream: #ffffff;
  --bg-paper: #ffffff;
  --text-dark: #000000;
  --text-muted: #1a1a1a;
  --border-soft: #000000;
}
html.hc a { text-decoration: underline; }
html.hc .hero-bg, html.hc .hero-rays, html.hc .hero-leaves { display: none; }
html.hc .hero { background: #000; }
html.hc .clock-card { background: #fff; color: #000; }
html.hc .clock-card h3, html.hc .clock-shabbat strong, html.hc .clock-digital { color: #000; }
html.hc .clock-day, html.hc .clock-shabbat span { color: #1a1a1a; }
html.hc .card, html.hc .clock-card, html.hc .form-card { border: 2px solid #000; box-shadow: none; }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary-color); text-underline-offset: 3px; }
a:hover { color: var(--leaf-green); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--primary-dark); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
[lang="he"] { font-family: var(--font-hebrew); }

:focus-visible { outline: 3px solid var(--accent-gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--primary-dark); color: #fff; padding: .7rem 1.1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; color: #fff; }
main:focus { outline: none; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--paper { background: var(--bg-cream); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-gold-dark); margin-bottom: .6rem; }
.divider { display: flex; align-items: center; justify-content: center; gap: .8rem; color: var(--accent-gold); margin: .4rem auto 1rem; }
.divider::before, .divider::after { content: ""; height: 1.5px; width: 70px; background: linear-gradient(90deg, transparent, var(--accent-gold)); }
.divider::after { transform: scaleX(-1); }
.lead { font-size: 1.15rem; color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 1rem/1 var(--font-body); padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .2s ease, color .2s ease; min-height: 44px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-gold { background: var(--accent-gold); color: var(--primary-deeper); }
.btn-gold:hover { background: var(--accent-gold-light); color: var(--primary-deeper); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--primary-color); }
.btn-light { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-sm { padding: .55rem 1.1rem; font-size: .92rem; min-height: 40px; }

/* ---------- Accessibility bar ---------- */
.a11y-bar { background: var(--primary-deeper); color: #e9efe6; font-size: .85rem; }
.a11y-inner { display: flex; align-items: center; justify-content: flex-end; gap: .7rem; padding: .55rem 0; flex-wrap: wrap; }
.a11y-label { opacity: .85; font-size: .78rem; }
.a11y-group { display: inline-flex; gap: .25rem; }
.a11y-btn { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 5px; min-width: 26px; min-height: 24px; padding: 0 .45rem; cursor: pointer; font: 600 .72rem var(--font-body); line-height: 1; }
.a11y-btn--md { font-size: .82rem; }
.a11y-btn--lg { font-size: .94rem; }
.a11y-btn[aria-pressed="true"] { background: var(--accent-gold); color: var(--primary-deeper); border-color: var(--accent-gold); }

/* ---------- Header ---------- */
.site-header { background: var(--bg-paper); border-bottom: 3px solid var(--accent-gold); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--primary-dark); }
.brand img { width: 62px; height: 62px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; }
.brand-he { font-size: .95rem; color: var(--accent-gold-dark); text-align: left; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a { display: block; padding: .6rem .9rem; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--primary-dark); }
.site-nav a:hover { background: rgba(63,143,47,.1); }
.site-nav a[aria-current="page"] { background: var(--primary-color); color: #fff; }
.site-nav { display: flex; align-items: center; gap: 1rem; }

.nav-toggle { display: none; background: none; border: 2px solid var(--primary-color); border-radius: 10px; width: 46px; height: 42px; cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2.5px; background: var(--primary-color); border-radius: 2px; transition: transform .2s; }
.nav-toggle-bars { top: 50%; transform: translateY(-50%); }
.nav-toggle-bars::before { left: 0; right: 0; top: -7px; }
.nav-toggle-bars::after { left: 0; right: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: .5rem; cursor: pointer; font-weight: 600; padding: .35rem .8rem .35rem .35rem; border: 1.5px solid var(--border-soft); border-radius: 999px; }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-color); color: #fff; display: inline-grid; place-items: center; font-weight: 700; }
.user-menu-panel { position: absolute; right: 0; top: calc(100% + .5rem); background: var(--bg-paper); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 1rem; min-width: 230px; z-index: 60; }
.user-menu-name { margin-bottom: .75rem; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-paper); flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; border-bottom: 3px solid var(--accent-gold); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: .85rem 1rem; }
  .nav-account { padding-top: .5rem; border-top: 1px solid var(--border-soft); }
  .user-menu-panel { position: static; box-shadow: none; margin-top: .5rem; }
  .brand-title { font-size: 1.25rem; }
  .brand img { width: 50px; height: 50px; }
}

/* ---------- Flash ---------- */
.flash-stack { margin-top: 1rem; display: grid; gap: .5rem; }
.flash { padding: .9rem 1.2rem; border-radius: var(--radius-sm); border-left: 5px solid; background: #fff; }
.flash-success { border-color: var(--success); background: #eef7ea; }
.flash-error { border-color: var(--danger); background: #fbecea; }
.flash-info { border-color: var(--accent-gold); background: #fbf5e1; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(ellipse at 50% 0%, #17561b 0%, var(--primary-dark) 55%, var(--primary-deeper) 100%); padding: clamp(4.5rem, 12vw, 8rem) 0 calc(clamp(5rem, 12vw, 8.5rem) + 10rem); text-align: center; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; opacity: .12; background-image: url("../images/logo.png"); background-repeat: no-repeat; background-position: center 30%; background-size: min(70vw, 620px); filter: grayscale(1) brightness(2.2); }
.hero-rays { position: absolute; inset: -40% -20% auto; height: 160%; z-index: -1; background: conic-gradient(from 180deg at 50% 0%, transparent 0deg, rgba(234,213,138,.13) 8deg, transparent 16deg, transparent 30deg, rgba(234,213,138,.10) 38deg, transparent 46deg, transparent 320deg, rgba(234,213,138,.10) 328deg, transparent 336deg, transparent 344deg, rgba(234,213,138,.13) 352deg, transparent 360deg); animation: rays 18s ease-in-out infinite alternate; transform-origin: 50% 0%; }
@keyframes rays { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.hero-leaves { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-leaves span { position: absolute; top: -10%; width: 14px; height: 22px; background: var(--leaf-light); border-radius: 0 100% 0 100%; opacity: .55; animation: leaf-fall linear infinite; }
@keyframes leaf-fall { 0% { transform: translate3d(0, 0, 0) rotate(0); } 100% { transform: translate3d(60px, 115vh, 0) rotate(540deg); } }
.hero-he { font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--accent-gold-light); margin-bottom: .3rem; font-weight: 700; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-he {
    display: inline-block;
    background: linear-gradient(100deg,
      #a8781a 0%, #e2c46e 18%, #fff3c4 30%, #e9cd7a 40%, #b8891a 52%,
      #e2c46e 66%, #fff6d2 76%, #d4a945 88%, #a8781a 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0 0 10px rgba(226, 196, 110, .35)) drop-shadow(0 2px 1px rgba(0, 0, 0, .35));
    animation: gold-shine 6s linear infinite;
  }
  .hero-he.reveal { animation: reveal .9s cubic-bezier(.2,.7,.2,1) forwards, gold-shine 6s linear infinite; }
}
@keyframes gold-shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .hero-he { animation: none; background-position: 40% 0; } .hero-he.reveal { animation: reveal .01s forwards; background-position: 40% 0; } }
html.hc .hero-he { background: none; -webkit-text-fill-color: currentColor; filter: none; animation: none; }
.hero h1 { color: #fff; margin-bottom: .4rem; }
.hero .divider::before, .hero .divider::after { background: linear-gradient(90deg, transparent, var(--accent-gold-light)); }
.hero-tag { font-family: var(--font-display); font-size: 1.35rem; color: var(--accent-gold-light); letter-spacing: .06em; }
.hero-msg { max-width: 640px; margin: 1rem auto 2rem; font-size: 1.15rem; color: #e8efe5; }
.hero-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.reveal { opacity: 0; transform: translateY(18px); animation: reveal .9s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal-2 { animation-delay: .15s; } .reveal-3 { animation-delay: .3s; } .reveal-4 { animation-delay: .45s; } .reveal-5 { animation-delay: .6s; }
@keyframes reveal { to { opacity: 1; transform: none; } }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; color: var(--bg-cream); }

/* ---------- Parashah / Shabbat block ---------- */
.parashah-card { position: relative; margin: -14.5rem auto 0; max-width: 860px; background: var(--bg-paper); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border-soft); padding: clamp(1.6rem, 4vw, 2.6rem); text-align: center; z-index: 2; }
.parashah-card::before { content: ""; position: absolute; inset: 8px; border: 1.5px solid var(--accent-gold); border-radius: calc(var(--radius) - 6px); pointer-events: none; opacity: .6; }
.parashah-name { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .1rem; }
.parashah-he { font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--accent-gold-dark); margin-bottom: .2rem; }
.parashah-date { color: var(--text-muted); margin-bottom: 1.4rem; }
.shabbat-times { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 560px; margin: 0 auto; }
.time-tile { background: var(--bg-cream); border-radius: var(--radius-sm); padding: 1rem; border: 1px solid var(--border-soft); }
.time-tile .label { display: block; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); }
.time-tile .time { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--primary-color); line-height: 1.1; }
.time-tile .sub { font-size: .9rem; color: var(--text-muted); }
.countdown { margin-top: 1.2rem; font-weight: 600; color: var(--primary-color); min-height: 1.6em; }
.kiddush-line { margin-top: 1rem; color: var(--text-muted); }
.kiddush-line strong { color: var(--primary-dark); }
.times-pending { color: var(--text-muted); font-style: italic; }

/* ---------- World clocks ---------- */
.clocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.clock-card { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(160deg, #1f6a24 0%, var(--primary-color) 42%, var(--primary-dark) 78%, var(--primary-deeper) 100%); color: #eef4ea; border-radius: var(--radius); border: 1px solid rgba(226, 196, 110, .35); box-shadow: var(--shadow); padding: 1.6rem 1.2rem; text-align: center; }
.clock-card h3 { margin-bottom: .8rem; color: #fff; }
.clock-face { width: min(190px, 70%); aspect-ratio: 1; margin: 0 auto .8rem; display: block; }
.clock-digital { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--accent-gold-light); line-height: 1.1; }
.clock-day { color: #c9d6c4; font-size: .92rem; margin-bottom: .8rem; }
.clock-shabbat { display: flex; justify-content: center; gap: 1.2rem; border-top: 1px dashed rgba(226, 196, 110, .45); padding-top: .8rem; font-size: .95rem; }
.clock-shabbat span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #c9d6c4; }
.clock-shabbat strong { font-size: 1.15rem; color: #fff; }
.clock-face .face { fill: #fff; stroke: var(--accent-gold); stroke-width: 4; }
.clock-face .face-inner { fill: none; stroke: var(--border-soft); stroke-width: 1; }
.clock-face .tick { stroke: var(--primary-dark); stroke-width: 1.5; }
.clock-face .tick.major { stroke-width: 3.5; }
.clock-face .hand-h { stroke: var(--primary-dark); stroke-width: 6; stroke-linecap: round; }
.clock-face .hand-m { stroke: var(--primary-color); stroke-width: 4; stroke-linecap: round; }
.clock-face .hand-s { stroke: var(--accent-gold-dark); stroke-width: 1.8; stroke-linecap: round; }
.clock-face .hub { fill: var(--accent-gold); }
.clock-face.is-shabbat .face { fill: #fdf6dc; }
@media (max-width: 860px) {
  .clocks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .clock-card { padding: .8rem .35rem .7rem; border-radius: 10px; }
  .clock-card h3.clock-city { flex-direction: column; gap: .25rem; font-size: 1rem; margin-bottom: .45rem; }
  .clock-city .flag { width: 26px; height: 17px; }
  .clock-face { width: 82%; margin-bottom: .4rem; }
  .clock-digital { font-size: 1.25rem; }
  .clock-day { font-size: .68rem; line-height: 1.25; margin-bottom: .45rem; }
  .clock-shabbat { flex-direction: column; gap: .3rem; padding-top: .45rem; font-size: .8rem; }
  .clock-shabbat span { font-size: .58rem; letter-spacing: .06em; }
  .clock-shabbat strong { font-size: .95rem; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-figure { position: relative; margin: 0 auto; padding: 2rem; width: min(100%, 440px); background: #fff; border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--accent-gold); outline: 6px solid #fff; outline-offset: 0; box-shadow: 0 0 0 8px var(--accent-gold-light), 0 24px 50px -20px rgba(10, 52, 16, .35); }
.about-photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 6px solid var(--bg-paper); outline: 2px solid var(--accent-gold); box-shadow: var(--shadow); }
.about-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-figure img { width: 78%; height: auto; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; }
.fact { border-left: 3px solid var(--accent-gold); padding-left: .8rem; }
.fact strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--primary-color); line-height: 1.1; }
.fact span { font-size: .9rem; color: var(--text-muted); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-figure { max-width: 260px; margin: 0 auto; order: -1; } }
@media (max-width: 480px) { .about-facts { grid-template-columns: 1fr; } }

/* ---------- Announcements & newsletter ---------- */
.news-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; }
.announcement-list { display: grid; gap: 1rem; }
.card { background: var(--bg-paper); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: 0 4px 16px -10px rgba(10,52,16,.25); }
.announcement h3 { margin-bottom: .2rem; }
.announcement time { display: block; font-size: .85rem; color: var(--accent-gold-dark); font-weight: 600; margin-bottom: .6rem; }
.announcement p:last-child { margin-bottom: 0; }
.empty-note { color: var(--text-muted); font-style: italic; }
.newsletter-card { background: var(--primary-color); color: #eef4ea; border: none; position: sticky; top: 110px; }
.newsletter-card h3 { color: #fff; }
.newsletter-card label { color: #fff; }
.newsletter-card .field-error { color: #ffd2cc; }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } .newsletter-card { position: static; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; margin-bottom: .3rem; }
.req { color: var(--danger); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select, textarea {
  width: 100%; font: 1rem/1.4 var(--font-body); padding: .8rem .95rem; border: 1.5px solid #cfc6aa; border-radius: var(--radius-sm); background: #fff; color: var(--text-dark); min-height: 48px; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--leaf-green); outline: 3px solid rgba(63,143,47,.25); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: .9rem; margin-top: .25rem; }
.form-error { background: #fbecea; border-left: 4px solid var(--danger); padding: .8rem 1rem; border-radius: 6px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-card { background: var(--bg-paper); border-radius: var(--radius); border: 1px solid var(--border-soft); box-shadow: var(--shadow); padding: clamp(1.4rem, 4vw, 2.4rem); }
.form-note { font-size: .88rem; color: var(--text-muted); }

/* ---------- Contact banner (shared by home & contact page) ---------- */
.contact-banner { position: relative; color: #fff; text-align: center; padding: clamp(3rem, 8vw, 5rem) 0 clamp(5rem, 10vw, 7rem); background: linear-gradient(rgba(6,34,8,.78), rgba(6,34,8,.86)), url("../images/contact-banner.jpg") center/cover no-repeat, var(--primary-dark); }
/* Rock of Gibraltar photo spread behind the whole contact area (banner + form) */
.rock-bg { position: relative; background: linear-gradient(180deg, rgba(6,34,8,.78) 0%, rgba(6,34,8,.52) 38%, rgba(6,34,8,.40) 70%, rgba(6,34,8,.62) 100%), url("../images/contact-banner.jpg") center 30% / cover no-repeat, var(--primary-dark); }
.rock-bg .contact-banner { background: none; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.rock-bg .section--flush-top { padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
html.hc .rock-bg { background: #000; }
.contact-banner h1, .contact-banner h2 { color: #fff; }
.contact-banner p { color: #e2ebdf; max-width: 620px; margin-inline: auto; }
.contact-banner .divider::before, .contact-banner .divider::after { background: linear-gradient(90deg, transparent, var(--accent-gold-light)); }
.contact-wrap { margin-top: -4rem; position: relative; z-index: 2; }
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.contact-info .card + .card { margin-top: 1rem; }
.contact-info h3 { font-size: 1.25rem; }
.map-embed { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-sm); }
/* Map "skin": heritage green & gold tint + gold frame (Google's embed itself can't be restyled) */
.map-frame { position: relative; padding: 6px; border-radius: 14px; background: linear-gradient(135deg, #e2c46e, #b8891a 40%, #e2c46e 60%, #8a6508); box-shadow: 0 10px 26px -12px rgba(0,0,0,.55); }
.map-frame::after { content: ""; position: absolute; inset: 6px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), inset 0 0 28px rgba(8,45,11,.28); pointer-events: none; }
.map-frame .map-embed { display: block; filter: sepia(.55) hue-rotate(35deg) saturate(1.1) contrast(1.02); transition: filter .4s ease; }
.map-frame:hover .map-embed, .map-frame:focus-within .map-embed { filter: sepia(.25) hue-rotate(20deg) saturate(1.05); }
html.hc .map-frame .map-embed { filter: none; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-notice { max-width: 760px; margin: 0 auto; text-align: center; }
.notice-ornament { font-size: 2.6rem; color: var(--accent-gold); line-height: 1; }
.notice-text { font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2.1rem); color: var(--primary-dark); line-height: 1.35; margin: 1rem 0 1.8rem; }
.notice-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; text-align: left; }
@media (max-width: 760px) { .service-list { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--primary-deeper); color: #d7e2d3; padding: 7rem 0 0; margin-top: 0; overflow: hidden; }
.site-footer a { color: var(--accent-gold-light); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr .8fr 1.2fr; gap: 2.5rem; padding: 0 6rem 3rem 5rem; }
.footer-heading { font-size: 1.35rem; color: var(--accent-gold-light); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.bank-details { margin: 0; display: grid; gap: .2rem; font-size: .95rem; }
.bank-details div { display: flex; gap: .5rem; }
.bank-details dt { color: #aebcaa; min-width: 120px; }
.bank-details dd { margin: 0; font-family: ui-monospace, Consolas, monospace; color: #fff; word-break: break-all; }
.footer-corner { position: absolute; bottom: 0; width: clamp(120px, 18vw, 220px); height: auto; pointer-events: none; opacity: .95; }
.footer-corner--left { left: 0; }
.footer-corner--right { right: 0; transform: scaleX(-1); }
.footer-bottom { border-top: 1px solid rgba(201,162,39,.35); padding: 1.1rem 0 1.3rem; font-size: .9rem; text-align: center; position: relative; z-index: 1; }
.footer-bottom p { margin: 0; }

.donate-badge { position: absolute; right: clamp(26px, 3.2vw, 46px); bottom: clamp(26px, 3.2vw, 46px); z-index: 3; width: 150px; height: 150px; display: block; border-radius: 50%; text-decoration: none; transition: transform .25s ease, filter .25s ease; filter: drop-shadow(0 10px 22px rgba(0,0,0,.5)); }
.donate-badge:hover, .donate-badge:focus-visible { transform: scale(1.05) rotate(-2deg); filter: drop-shadow(0 12px 26px rgba(0,0,0,.55)) drop-shadow(0 0 14px rgba(226,196,110,.35)); }
.donate-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.donate-arc-text { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .32em; fill: #e2c46e; }
.donate-center { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; transform: translate(-50%, -50%); display: grid; place-items: center; }
.donate-qr { width: 62px; height: 62px; display: grid; place-items: center; }
.donate-qr svg, .donate-qr img { width: 100%; height: 100%; }
.donate-heart { width: 46px; height: 42px; animation: heart-beat 2.8s ease-in-out infinite; }
@keyframes heart-beat { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(1.09); } 86% { transform: scale(.98); } 92% { transform: scale(1.05); } }
.footer-corner--right { z-index: 2; }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 0 1rem 2rem; }
  .footer-donate { grid-column: 1 / -1; }
  .donate-badge { position: relative; right: auto; bottom: auto; margin: 0 auto 2.5rem; }
}
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Auth pages ---------- */
.auth-wrap { max-width: 460px; margin: 3rem auto 4rem; }
.auth-wrap h1 { font-size: 2.2rem; text-align: center; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-leaves { display: none; }
}

/* ---------- Utilities ---------- */
.narrow { max-width: 760px; margin-inline: auto; }
.section--flush-top { padding-top: 0; }
.eyebrow--light { color: var(--accent-gold-light); }
.form-note--light { color: #cfdccb; }
.h3-like { font-size: 1.6rem; margin-bottom: .2rem; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ---------- Language switcher (top right) ---------- */
.lang-switch { display: inline-flex; margin-left: .5rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; overflow: hidden; }
.lang-switch a { color: #fff; text-decoration: none; font-weight: 700; font-size: .7rem; letter-spacing: .08em; padding: .15rem .6rem; min-height: 24px; display: inline-flex; align-items: center; }
.lang-switch a:hover { background: rgba(255,255,255,.12); color: #fff; }
.lang-switch a[aria-current="true"] { background: var(--accent-gold); color: var(--primary-deeper); }
html.hc .lang-switch a { text-decoration: none; }
@media (max-width: 600px) {
  .a11y-inner { flex-wrap: nowrap; justify-content: flex-start; gap: .35rem; padding: .4rem 0; }
  .a11y-label { display: none; }
  .a11y-btn { min-width: 24px; min-height: 22px; padding: 0 .35rem; font-size: .68rem; border-radius: 5px; }
  .a11y-btn--md { font-size: .78rem; }
  .a11y-btn--lg { font-size: .88rem; }
  .a11y-contrast { font-size: .85rem; }
  .a11y-contrast-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang-switch { margin-left: auto; }
  .lang-switch a { min-height: 22px; padding: .1rem .45rem; font-size: .66rem; gap: .25rem; }
  .lang-flag { width: 15px; height: 10px; }
}

/* Clock city with flag */
.clock-city { display: flex; align-items: center; justify-content: center; gap: .6rem; }
.clock-city .flag { width: 36px; height: 24px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.15); }

/* Flickering candle beside "Candle lighting" */
.time-tile { position: relative; }
.candle-text { position: relative; }
.candle { position: absolute; right: 100%; bottom: .1em; margin-right: .45rem; overflow: visible; }
@media (max-width: 600px) {
  .time-tile { padding: .8rem .5rem; }
  .time-tile .sub { line-height: 1.3; font-size: .82rem; }
  .time-tile .label { font-size: .72rem; letter-spacing: .08em; line-height: 1.35; min-height: 3.6em; display: flex; align-items: center; justify-content: center; }
  .candle-text { position: static; }
  .candle { position: static; display: inline-block; vertical-align: -6px; width: 13px; height: 24px; margin: 0 .3rem 0 0; }
}
.candle-flame { transform-origin: 12px 16px; animation: candle-flicker 1.9s ease-in-out infinite; }
.candle-glow { opacity: .28; transform-origin: 12px 11px; animation: candle-glow 1.9s ease-in-out infinite; }
@keyframes candle-flicker {
  0%   { transform: scale(1, 1) rotate(0deg); }
  18%  { transform: scale(.94, 1.06) rotate(-2.5deg); }
  33%  { transform: scale(1.04, .95) rotate(1.5deg); }
  52%  { transform: scale(.97, 1.1) rotate(-1deg); }
  70%  { transform: scale(1.03, .97) rotate(2.5deg); }
  86%  { transform: scale(.96, 1.04) rotate(-1.5deg); }
  100% { transform: scale(1, 1) rotate(0deg); }
}
@keyframes candle-glow { 0%, 100% { opacity: .22; transform: scale(1); } 40% { opacity: .38; transform: scale(1.12); } 70% { opacity: .26; transform: scale(.95); } }

/* Flags in the language switcher */
.lang-switch a { gap: .35rem; }
.lang-flag { width: 15px; height: 10px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }

/* ---------- See-through "glass" cards over the Rock photo ---------- */
.rock-bg .form-card, .rock-bg .card {
  background: rgba(4, 26, 6, .28);
  -webkit-backdrop-filter: blur(3px) saturate(1.15);
  backdrop-filter: blur(3px) saturate(1.15);
  border: 1px solid rgba(226, 196, 110, .55);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .06);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}
.rock-bg .form-card h2, .rock-bg .card h2, .rock-bg .card h3, .rock-bg .notice-text { color: #fff; }
.rock-bg .notice-ornament { color: var(--accent-gold-light); }
.rock-bg label { color: #fff; }
.rock-bg .req { color: #ffb4a8; }
.rock-bg .form-note, .rock-bg .card p { color: #eef3ea; }
.rock-bg .card a, .rock-bg .form-card a:not(.btn) { color: var(--accent-gold-light); }
.rock-bg input[type="text"], .rock-bg input[type="email"], .rock-bg input[type="tel"], .rock-bg select, .rock-bg textarea {
  background: rgba(255, 255, 255, .12);
  border: 1.5px solid rgba(255, 255, 255, .55);
  color: #fff;
  text-shadow: none;
}
.rock-bg input::placeholder, .rock-bg textarea::placeholder { color: rgba(255, 255, 255, .7); }
.rock-bg input:focus, .rock-bg select:focus, .rock-bg textarea:focus { background: rgba(255, 255, 255, .2); border-color: var(--accent-gold-light); outline: 3px solid rgba(226, 196, 110, .45); }
.rock-bg select option { color: var(--text-dark); background: #fff; }
.rock-bg .field-error { color: #ffd2cc; }
.rock-bg .form-error { background: rgba(161, 42, 31, .55); color: #fff; border-left-color: #ffb4a8; }
.rock-bg .btn-primary { background: var(--accent-gold); color: var(--primary-deeper); text-shadow: none; }
.rock-bg .btn-primary:hover { background: var(--accent-gold-light); color: var(--primary-deeper); }
.rock-bg .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .8); text-shadow: none; }
.rock-bg .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* High-contrast mode keeps solid, readable cards */
html.hc .rock-bg .form-card, html.hc .rock-bg .card { background: #fff; color: #000; text-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.hc .rock-bg label, html.hc .rock-bg .form-card h2, html.hc .rock-bg .card h2, html.hc .rock-bg .card p, html.hc .rock-bg .notice-text, html.hc .rock-bg .form-note { color: #000; }
html.hc .rock-bg input, html.hc .rock-bg select, html.hc .rock-bg textarea { background: #fff; color: #000; border-color: #000; }

/* ---------- Logo medallion bottom-left (balances the Donate medallion) ---------- */
.logo-medallion { position: absolute; left: clamp(26px, 3.2vw, 46px); bottom: clamp(26px, 3.2vw, 46px); z-index: 3; width: 150px; height: 150px; display: block; border-radius: 50%; text-decoration: none; transition: transform .25s ease, filter .25s ease; filter: drop-shadow(0 10px 22px rgba(0,0,0,.5)); }
.logo-medallion:hover, .logo-medallion:focus-visible { transform: scale(1.05) rotate(2deg); filter: drop-shadow(0 12px 26px rgba(0,0,0,.55)) drop-shadow(0 0 14px rgba(226,196,110,.35)); }
.logo-medallion-img { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; transform: translate(-50%, -52%); object-fit: contain; }
.medallion-arc-small { font-size: 12.5px; letter-spacing: .22em; }
.medallion-year { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .2em; fill: #e2c46e; }
.footer-corner--left { z-index: 2; }
@media (max-width: 960px) { .logo-medallion { display: none; } }

.footer-credit { margin-top: .35rem !important; font-size: .82rem; color: #aebcaa; letter-spacing: .02em; }
.footer-credit a { color: var(--accent-gold-light); font-weight: 600; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; color: #fff; }

/* ---------- Gold scrollbar ---------- */
html { scrollbar-color: var(--accent-gold) var(--primary-deeper); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--primary-deeper); }
::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--accent-gold-dark), var(--accent-gold-light) 50%, var(--accent-gold-dark)); border-radius: 10px; border: 2px solid var(--primary-deeper); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-gold-light); }
::-webkit-scrollbar-corner { background: var(--primary-deeper); }

/* Mobile: breathing room between hero buttons and the Parashah card */
@media (max-width: 600px) {
  .hero { padding-bottom: 17.5rem; }
}

/* Mobile: show the Rock AND the city centre behind the contact banner (photo is very wide) */
@media (max-width: 600px) {
  .rock-bg {
    background:
      linear-gradient(180deg, rgba(6,34,8,.62) 0, rgba(6,34,8,.38) 45vw, rgba(6,34,8,.5) 85vw, #062208 110vw),
      url("../images/contact-banner.jpg") 30% 0 / 250vw auto no-repeat,
      #062208;
  }
}

/* ---------- Member portal ---------- */
.member-page { padding-top: 2.5rem; }
.member-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: start; margin-bottom: 1.5rem; }
.member-grid .form-card { margin: 0; }
.readonly { margin: 0; padding: .7rem .9rem; background: var(--bg-cream); border-radius: var(--radius-sm); border: 1px dashed var(--border-soft); }
label.check { display: flex; align-items: center; gap: .55rem; font-weight: 600; }
label.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--primary-color); }
.member-aliyot .table-wrap { overflow-x: auto; }
.table-public { width: 100%; border-collapse: collapse; }
.table-public th, .table-public td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.table-public thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.pill-public { display: inline-block; margin-left: .35rem; padding: .05rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pill-public.ok { background: #e3f1dd; color: #2d6a2a; }
.pill-public.due { background: #fbf0cf; color: #7a5600; }
.pledge-note { background: #fbf5e1; border-left: 4px solid var(--accent-gold); padding: .7rem 1rem; border-radius: 6px; }
.nowrap { white-space: nowrap; }
.text-center { text-align: center; }
@media (max-width: 860px) { .member-grid { grid-template-columns: 1fr; } }

/* Account menu under the avatar */
.user-gear { color: var(--accent-gold-dark); font-size: .95rem; margin-left: .1rem; }
.user-menu.is-active summary { border-color: var(--primary-color); }
.user-menu-links { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .15rem; border-top: 1px solid var(--border-soft); padding-top: .5rem; }
.user-menu-links a { display: flex; gap: .55rem; align-items: center; padding: .5rem .6rem; border-radius: 8px; text-decoration: none; font-weight: 600; color: var(--primary-dark); }
.user-menu-links a:hover { background: var(--bg-cream); }
/* Member portal layout */
.btn-row-center { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.tefillot-card { margin-bottom: 1.5rem; }
.tef-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem; margin-bottom: 1rem; }
.tef-head h2 { margin: 0; }
.tef-par { margin: 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--primary-dark); display: flex; gap: .6rem; align-items: baseline; }
.tef-par [lang="he"] { color: var(--accent-gold-dark); }
.tef-head .muted { margin: 0; }
.tef-grid { display: grid; grid-template-columns: 170px 170px minmax(0, 1fr); gap: 1rem; align-items: stretch; text-align: center; }
.tef-text { text-align: left; background: var(--bg-cream); border-radius: var(--radius-sm); border: 1px solid var(--border-soft); padding: .8rem 1rem; }
.tef-text p { margin: 0 0 .35rem; }
.member-grid-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.member-grid-even .form-card { height: 100%; }
.scroll-box { max-height: 420px; overflow-y: auto; }
.upcoming-aliyah { background: #e3f1dd; border-left: 4px solid var(--success); padding: .6rem .9rem; border-radius: 6px; font-weight: 600; }
.don-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.don-totals div { background: var(--bg-cream); border-radius: 8px; padding: .6rem .8rem; display: flex; flex-direction: column; }
.don-n { font-weight: 700; font-size: 1.3rem; color: var(--primary-color); font-variant-numeric: lining-nums; }
.label-like { display: block; font-weight: 600; margin-bottom: .3rem; }
.member-page .table-wrap { overflow-x: auto; }
.member-grid > * { min-width: 0; }
@media (max-width: 860px) { .tef-grid { grid-template-columns: 1fr 1fr; } .tef-text { grid-column: 1 / -1; } .member-grid-even, .member-grid { grid-template-columns: minmax(0, 1fr); } }
.site-nav .user-menu-links { display: grid; flex-direction: column; gap: .15rem; }
.site-nav .user-menu-links a { border-radius: 8px; padding: .5rem .6rem; white-space: nowrap; }
.site-nav .user-menu-links a:hover { background: var(--bg-cream); }
.pledge-note { margin-bottom: 1rem; }
.pledge-note p:last-child { margin-bottom: 0; }
.bank-details dd { font-family: inherit; word-break: normal; }

.user-id { display: flex; flex-direction: row; align-items: center; gap: .45rem; line-height: 1.1; text-align: left; }
.user-id.is-admin .user-first { color: var(--accent-gold-dark); font-weight: 700; }
.user-role { font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--accent-gold); border-radius: 999px; padding: .18rem .5rem; }
html.hc .user-id.is-admin .user-first { color: #5a3f00; }
html.hc .user-role { background: #5a3f00; }

/* Announcements: open Torah scroll in the background */
.section--torah {
  position: relative;
  isolation: isolate;
  background: #f4ecd8;
  overflow: hidden;
}
.section--torah::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/torah-scroll.svg") center / cover no-repeat;
  opacity: .3;
}
.section--torah::after { /* soft vignette so the cards stay easy to read */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(250, 247, 238, .35) 0%, rgba(250, 247, 238, 0) 70%);
}
@media (max-width: 760px) {
  .section--torah::before { opacity: .24; }
}
.hc .section--torah { background: #fff; }
.hc .section--torah::before, .hc .section--torah::after { display: none; }

/* Clock cards: soft spots of light drifting over the green */
.clock-card::before, .clock-card::after {
  content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none;
}
.clock-card::before {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 246, 210, .42) 0, rgba(255, 246, 210, 0) 24%),
    radial-gradient(circle at 82% 30%, rgba(240, 214, 130, .34) 0, rgba(240, 214, 130, 0) 17%),
    radial-gradient(circle at 30% 68%, rgba(200, 240, 180, .24) 0, rgba(200, 240, 180, 0) 19%),
    radial-gradient(circle at 75% 85%, rgba(240, 214, 130, .3) 0, rgba(240, 214, 130, 0) 15%),
    radial-gradient(circle at 55% 45%, rgba(255, 255, 255, .07) 0, rgba(255, 255, 255, 0) 35%);
  animation: clock-glow 14s ease-in-out infinite alternate;
}
.clock-card::after { /* a few small sparkles */
  background:
    radial-gradient(circle at 12% 38%, rgba(255, 242, 200, .85) 0, rgba(255, 242, 200, 0) 2%),
    radial-gradient(circle at 88% 14%, rgba(255, 242, 200, .8) 0, rgba(255, 242, 200, 0) 1.7%),
    radial-gradient(circle at 24% 90%, rgba(255, 242, 200, .75) 0, rgba(255, 242, 200, 0) 1.8%),
    radial-gradient(circle at 92% 72%, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 1.3%);
  animation: clock-twinkle 6s ease-in-out infinite alternate;
}
.clock-card:nth-child(2)::before { animation-delay: -5s; }
.clock-card:nth-child(3)::before { animation-delay: -9s; }
.clock-card:nth-child(2)::after { animation-delay: -2s; }
.clock-card:nth-child(3)::after { animation-delay: -4s; }
@keyframes clock-glow { from { transform: translate(0, 0) scale(1); } to { transform: translate(4%, -3%) scale(1.06); } }
@keyframes clock-twinkle { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .clock-card::before, .clock-card::after { animation: none; } }
html.hc .clock-card::before, html.hc .clock-card::after { display: none; }

/* Ornamental border between "Shabbat across the world" and Contact (matches the footer frames).
   The thick gold rule sits exactly on the edge of the two sections. */
.ornament-band { display: flex; align-items: flex-end; background: transparent; padding: 0; margin-top: -24px; position: relative; z-index: 1; }
.ornament-band img { flex: 0 0 auto; display: block; width: 420px; height: 60px; }
.ornament-rule { flex: 1 1 0; min-width: 0; height: 12px; box-sizing: border-box; border-top: 1px solid var(--accent-gold); border-bottom: 6px solid var(--accent-gold); }
@media (max-width: 560px) {
  .ornament-band img { width: 315px; height: 45px; }
  .ornament-rule { height: 9px; border-bottom-width: 4.5px; border-top-width: .75px; }
}

/* Same border at the top of the footer, turned upside down so it hangs from the edge */
.ornament-band--down { position: absolute; top: 14px; left: 50%; right: auto; width: max(40%, 640px); max-width: calc(100% - 24px); margin: 0; transform: translateX(-50%) scaleY(-1); z-index: 1; pointer-events: none; }
.ornament-band--down .ornament-rule { border: 0; height: 12px;
  background:
    linear-gradient(var(--fade-dir), rgba(184, 137, 26, 0), var(--accent-gold) 85%) top / 100% 1px no-repeat,
    linear-gradient(var(--fade-dir), rgba(184, 137, 26, 0), var(--accent-gold) 85%) bottom / 100% 3px no-repeat; }
.ornament-band--down .ornament-rule:first-child { --fade-dir: to right; }
.ornament-band--down .ornament-rule:last-child { --fade-dir: to left; }
@media (max-width: 560px) {
  .ornament-band--down { width: calc(100% - 16px); top: 10px; }
  .ornament-band--down .ornament-rule { height: 9px; background-size: 100% .75px, 100% 2.25px; }
}
@media (max-width: 560px) { .site-footer { padding-top: 5.5rem; } }

/* =========================================================
   Founding Charter (index.php #charter)
   ========================================================= */
.charter-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.charter-figure { margin: 0; position: sticky; top: 1.5rem; }
.charter-figure a { display: block; border-radius: var(--radius-sm); }
.charter-figure a:focus-visible { outline: 3px solid var(--accent-gold); outline-offset: 4px; }
.charter-figure img { display: block; width: 100%; height: auto; border: 8px solid var(--bg-paper); outline: 2px solid var(--accent-gold); box-shadow: var(--shadow); transition: transform .3s ease; }
.charter-figure a:hover img { transform: scale(1.01); }
.charter-figure figcaption { margin-top: 1.4rem; text-align: center; }
.charter-cap-title { display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--primary-color); line-height: 1.25; }
.charter-cap-sub { display: block; margin-top: .25rem; font-size: .9rem; letter-spacing: .08em; color: var(--text-muted); }
.charter-cap-title::after { content: ""; display: block; width: 70px; height: 2px; margin: .55rem auto 0; background: var(--accent-gold); }

.charter-text { position: relative; background: var(--bg-paper); border: 1px solid var(--border-soft); border-top: 4px solid var(--accent-gold); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow); font-family: var(--font-display); font-size: 1.18rem; line-height: 1.7; color: var(--text-dark); }
.charter-text p { margin: 0 0 1.1em; text-align: justify; hyphens: auto; }
.charter-text q { quotes: "\201C" "\201D"; font-style: italic; }
.charter-text em { color: var(--primary-color); }
.charter-text [lang="he"] { font-family: var(--font-hebrew); font-size: .95em; color: var(--primary-color); }
.charter-bsd { text-align: right !important; font-size: .95rem; margin-bottom: .5rem !important; }
.charter-heading { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 700; line-height: 1.35; text-align: center; color: var(--primary-color); margin: 0 0 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-soft); }
.charter-body > p:first-of-type + h3 + p::first-letter { float: left; font-size: 3.4em; line-height: .85; padding: .08em .1em 0 0; color: var(--accent-gold-dark); font-weight: 700; }
.charter-note { font-size: .85em; color: var(--text-muted); }
.charter-dateline { margin-top: 1.6em !important; font-style: italic; }
.charter-signature { text-align: right !important; font-weight: 700; color: var(--primary-color); font-size: 1.25rem; }
.charter-attest { margin-top: 1.5em !important; padding-top: 1em; border-top: 1px dashed var(--border-soft); font-size: 1rem; color: var(--text-muted); text-align: left !important; }

@media (max-width: 860px) {
  .charter-grid { grid-template-columns: 1fr; }
  .charter-figure { position: static; max-width: 460px; margin: 0 auto; }
  .charter-text { font-size: 1.08rem; }
  .charter-text p { text-align: left; }
}
html.hc .charter-text { background: #fff; border-color: #000; }
html.hc .charter-figure img { outline-color: #000; }

/* Charter: equal-height columns with "Read more" (enabled by main.js) */
.charter-text { display: flex; flex-direction: column; }
.charter-body { position: relative; }
.charter-text.is-collapsible .charter-body { overflow: hidden; transition: max-height .6s ease; }
.charter-text.is-collapsed .charter-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7rem; background: linear-gradient(to bottom, rgba(255, 253, 247, 0), var(--bg-paper) 85%); pointer-events: none; }
.charter-more { text-align: center; padding-top: 1.1rem; margin-top: auto; }
.charter-more:empty, .charter-more [hidden] { display: none; }
.charter-toggle::after { content: " \25BE"; }
.charter-toggle[aria-expanded="true"]::after { content: " \25B4"; }
@media (prefers-reduced-motion: reduce) { .charter-text.is-collapsible .charter-body { transition: none; } }
html.hc .charter-text.is-collapsed .charter-body::after { background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 85%); }
.charter-sig-img { display: block; width: min(240px, 70%); height: auto; margin: .4rem 0 0 auto; }
html.hc .charter-sig-img { filter: contrast(1.6) brightness(.6); }

/* =========================================================
   Donate page (donate.php)
   ========================================================= */
.donate-ref { display: flex; gap: 1.1rem; align-items: flex-start; max-width: 860px; margin: 0 auto 2.5rem; border-left: 5px solid var(--accent-gold); position: relative; z-index: 2; }
.donate-ref-icon { font-size: 1.8rem; line-height: 1; color: var(--accent-gold-dark); }
.donate-ref p { margin: .3rem 0 0; }
.donate-section-title { text-align: center; margin: 1rem 0 1.5rem; }
.donate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.3rem; align-items: start; }
.pay-card { position: relative; display: flex; flex-direction: column; gap: .3rem; }
.pay-card h3 { display: flex; align-items: center; gap: .55rem; font-size: 1.35rem; margin: 0 0 .3rem; color: var(--primary-color); }
.pay-card p { margin: 0 0 .6rem; }
.pay-card .btn { align-self: flex-start; margin-top: .3rem; }
.pay-icon { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--bg-cream); border: 1.5px solid var(--accent-gold); font-size: 1.05rem; flex: none; }
.pay-card--featured { border: 2px solid var(--accent-gold); text-align: center; align-items: center; }
.pay-card--featured h3 { justify-content: center; }
.pay-card--featured .btn { align-self: center; }
.pay-tag { position: absolute; top: -.75rem; left: 50%; transform: translateX(-50%); background: var(--accent-gold); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .25rem .8rem; border-radius: 999px; }
.pay-qr { display: block; width: 180px; height: 180px; margin: .4rem auto .6rem; padding: 10px; background: #fff; border: 2px solid var(--accent-gold); border-radius: 12px; }
.pay-qr svg { display: block; width: 100%; height: 100%; }
.pay-handle { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--primary-dark); margin: 0 0 .5rem !important; }
.pay-note { font-size: .88rem; color: var(--text-muted); margin-top: .5rem !important; }
.pay-address { display: inline-block; margin-top: .3rem; font-weight: 600; color: var(--text-dark); }
.pay-details { margin: .3rem 0 0; display: grid; gap: .45rem; }
.pay-details div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .5rem; align-items: center; padding-bottom: .45rem; border-bottom: 1px dashed var(--border-soft); }
.pay-details div:last-child { border-bottom: 0; padding-bottom: 0; }
.pay-details dt { font-size: .85rem; color: var(--text-muted); }
.pay-details dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-width: 0; }
.pay-val { font-family: ui-monospace, Consolas, monospace; font-size: .95rem; font-weight: 600; color: var(--text-dark); word-break: break-all; }
.copy-btn { flex: none; font: 600 .78rem/1 var(--font-body); padding: .4rem .65rem; border-radius: 999px; border: 1.5px solid var(--accent-gold); background: transparent; color: var(--accent-gold-dark); cursor: pointer; min-height: 30px; }
.copy-btn:hover, .copy-btn:focus-visible { background: var(--accent-gold); color: #fff; }
.copy-btn.is-copied { background: var(--success); border-color: var(--success); color: #fff; }
.donate-occasions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.occasion { background: var(--bg-cream); border: 1px solid var(--border-soft); border-top: 3px solid var(--leaf-green); border-radius: var(--radius-sm); padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .25rem; }
.occasion strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--primary-color); }
.occasion span { color: var(--text-muted); font-size: .95rem; }
.donate-contact { margin-top: 1rem; }
.footer-donate-link { font-weight: 700; }
@media (max-width: 480px) { .pay-details div { grid-template-columns: 1fr; gap: .2rem; } }
html.hc .pay-card, html.hc .occasion { border-color: #000; }
/* Donate page on the rock background: light text on glass cards */
.rock-bg .donate-section-title { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.rock-bg .pay-card h3 { color: #fff; }
.rock-bg .pay-icon { background: rgba(255,255,255,.12); border-color: var(--accent-gold-light); }
.rock-bg .pay-handle { color: var(--accent-gold-light); }
.rock-bg .pay-address { color: #fff; }
.rock-bg .card .pay-note { color: #d6e2d2; }
.rock-bg .pay-details div { border-bottom-color: rgba(255,255,255,.25); }
.rock-bg .pay-details dt { color: #c9d8c4; }
.rock-bg .pay-val { color: #fff; }
.rock-bg .copy-btn { color: var(--accent-gold-light); border-color: var(--accent-gold-light); }
.rock-bg .copy-btn:hover, .rock-bg .copy-btn:focus-visible { background: var(--accent-gold-light); color: var(--primary-deeper); }
.rock-bg .copy-btn.is-copied { background: var(--success); border-color: #9fd39b; color: #fff; }
.rock-bg .donate-ref-icon { color: var(--accent-gold-light); }
.rock-bg .occasion { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); border-top-color: var(--accent-gold-light); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rock-bg .occasion strong { color: var(--accent-gold-light); }
.rock-bg .occasion span { color: #eef3ea; }
html.hc .rock-bg .pay-card h3, html.hc .rock-bg .pay-val, html.hc .rock-bg .pay-address, html.hc .rock-bg .pay-details dt, html.hc .rock-bg .card .pay-note { color: #000; }
html.hc .rock-bg .pay-handle, html.hc .rock-bg .copy-btn { color: #5a3f00; border-color: #5a3f00; }
html.hc .rock-bg .occasion { background: #fff; border-color: #000; }
html.hc .rock-bg .occasion strong, html.hc .rock-bg .occasion span { color: #000; }
/* stack label above value so long names / IBANs wrap cleanly */
.pay-details div { grid-template-columns: 1fr; gap: .15rem; }
.pay-val { word-break: normal; overflow-wrap: anywhere; letter-spacing: .02em; }

/* =========================================================
   Sponsor a Kiddush / Seuda Shelishit (index.php #sponsor)
   ========================================================= */
.kd-section { background: linear-gradient(180deg, var(--bg-cream), var(--bg-paper)); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.kd-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; max-width: 1040px; margin: 0 auto; }
.kd-options { border: 0; margin: 0; padding: 0; display: grid; gap: 1rem; min-width: 0; }
.kd-option { position: relative; display: block; cursor: pointer; }
.kd-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kd-card { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 1rem; align-items: center; padding: 1.2rem 1.4rem; background: var(--bg-paper); border: 2px solid var(--border-soft); border-radius: var(--radius); box-shadow: 0 4px 16px -10px rgba(10,52,16,.25); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.kd-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--bg-cream); border: 2px solid var(--accent-gold-light); }
.kd-name { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: var(--primary-color); line-height: 1.1; }
.kd-when { grid-column: 2; font-size: .92rem; color: var(--text-muted); }
.kd-price { grid-column: 3; grid-row: 1 / 3; font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; color: var(--accent-gold-dark); line-height: 1; }
.kd-option:hover .kd-card { border-color: var(--accent-gold-light); transform: translateY(-2px); }
.kd-option input:checked + .kd-card { border-color: var(--accent-gold); background: #fffaeb; box-shadow: 0 0 0 4px rgba(184,137,26,.18), var(--shadow); }
.kd-option input:checked + .kd-card::after { content: "✓"; position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-gold); color: #fff; font-weight: 700; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.kd-option input:focus-visible + .kd-card { outline: 3px solid var(--accent-gold); outline-offset: 3px; }
.kd-panel { padding: clamp(1.3rem, 3vw, 2rem); border-top: 4px solid var(--accent-gold); }
.kd-panel textarea { min-height: 7rem; }
.optional { font-weight: 400; color: var(--text-muted); font-size: .88em; }
.kd-submit { display: grid; gap: .5rem; justify-items: start; }
.kd-submit .form-note { margin: 0; }
@media (max-width: 860px) { .kd-wrap { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .kd-card { padding: 1rem; column-gap: .7rem; } .kd-icon { width: 52px; height: 52px; } .kd-price { font-size: 1.9rem; } }
html.hc .kd-card { border-color: #000; }
html.hc .kd-option input:checked + .kd-card { background: #fff; border-width: 4px; }

/* Contact page: form and "Find us" columns the same height (map fills the extra space) */
@media (min-width: 861px) {
  .contact-layout { align-items: stretch; }
  .contact-layout > div { display: flex; }
  .contact-layout > div > .form-card { flex: 1; align-content: start; }
  .contact-info { display: flex; flex-direction: column; gap: 1rem; }
  .contact-info .card + .card { margin-top: 0; }
  .contact-info > .card:first-child { flex: 1; display: flex; flex-direction: column; }
  .contact-info > .card:first-child .map-frame { flex: 1; display: flex; min-height: 260px; }
  .contact-info > .card:first-child .map-embed { flex: 1; height: auto; aspect-ratio: auto; min-height: 248px; }
  .contact-info > .card:first-child .mt-2 { margin-bottom: 0; }
}

/* =========================================================
   Logo: the tree sways on hover (lettering & Magen David stay still).
   The image is drawn twice: the <img> shows only the tree and rotates
   around the trunk base; ::after shows only the ground and lettering.
   ========================================================= */
.logo-sway { position: relative; display: inline-block; line-height: 0; flex: none; }
.logo-sway img { display: block; width: 100%; height: 100%; object-fit: contain; clip-path: inset(0 0 36% 0); transform-origin: 50% 64%; will-change: transform; }
.logo-sway::after { content: ""; position: absolute; inset: 0; background: url("../images/logo.png") center / contain no-repeat; clip-path: inset(63.5% 0 0 0); pointer-events: none; }
.brand .logo-sway { width: 62px; height: 62px; }
.about-figure .logo-sway { width: 78%; aspect-ratio: 1; }
.logo-medallion-img.logo-sway { display: block; }
.brand:hover .logo-sway img, .brand:focus-visible .logo-sway img,
.about-figure:hover .logo-sway img,
.logo-medallion:hover .logo-sway img, .logo-medallion:focus-visible .logo-sway img { animation: tree-sway 2.6s ease-in-out infinite; }
@keyframes tree-sway {
  0%   { transform: rotate(0deg) skewX(0deg); }
  20%  { transform: rotate(2.4deg) skewX(-1.2deg); }
  45%  { transform: rotate(-1.8deg) skewX(.9deg); }
  70%  { transform: rotate(1.2deg) skewX(-.6deg); }
  100% { transform: rotate(0deg) skewX(0deg); }
}
@media (max-width: 860px) { .brand .logo-sway { width: 50px; height: 50px; } }
@media (prefers-reduced-motion: reduce) { .logo-sway img { animation: none !important; } }

/* Donate page: its own background — gold Sephardic star lattice on deep green
   (keeps the light-on-glass card styling of .rock-bg) */
.rock-bg.donate-bg {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(184, 137, 26, .30), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(47, 122, 31, .25), transparent 70%),
    url("../images/pattern-sephardic.svg") center top / 170px 170px repeat,
    linear-gradient(180deg, #0b3d0f 0%, #072a0b 55%, #041a06 100%);
}
.donate-bg .contact-banner { border-bottom: 1px solid rgba(226, 196, 110, .25); }
.donate-bg .card, .donate-bg .form-card { background: rgba(4, 26, 6, .55); border-color: rgba(226, 196, 110, .45); }
html.hc .rock-bg.donate-bg { background: #000; }

/* Top accessibility bar: deep-to-leaf green gradient with a soft gold sheen and hairline */
.a11y-bar {
  position: relative;
  background:
    radial-gradient(ellipse 40% 140% at 85% 50%, rgba(226, 196, 110, .16), transparent 70%),
    linear-gradient(90deg, #041a06 0%, #082d0b 35%, #0f4a14 70%, #1a5e1c 100%);
  box-shadow: inset 0 -1px 0 rgba(226, 196, 110, .35);
}
html.hc .a11y-bar { background: #000; box-shadow: none; }

/* Parashah card: invite sponsors when this week's Kiddush has none */
.kd-cta { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px dashed var(--border-soft); text-align: center; }
.kd-cta-note { margin: 0 0 .7rem; color: var(--text-muted); font-style: italic; }
.kd-cta-btns { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }

/* keep the sticky header from covering the sponsorship section when jumping to it */
#kiddush, #kd-form { scroll-margin-top: 96px; }

/* Super Kiddush card: a touch more festive */
.kd-card--super { background: linear-gradient(135deg, #fffdf7 0%, #fbf3dc 100%); }
.kd-card--super .kd-name::after { content: " ✦"; color: var(--accent-gold); font-size: .8em; }
.kd-cta-btns .btn { white-space: nowrap; }

/* Sponsorship section background: faint gold Sephardic star lattice on warm cream,
   fading towards the centre so the cards and form stay calm */
.kd-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 60% at 12% 18%, rgba(184, 137, 26, .14), transparent 70%),
    radial-gradient(ellipse 50% 55% at 92% 85%, rgba(47, 122, 31, .12), transparent 70%),
    linear-gradient(180deg, #f6efdc 0%, #fbf7ec 45%, #f3ead2 100%);
  border-top: 0;
  border-bottom: 0;
}
.kd-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/pattern-sephardic.svg") center top / 150px 150px repeat;
  filter: sepia(1) saturate(2.2) hue-rotate(-12deg) brightness(.55);
  opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 55%, transparent 25%, #000 85%);
          mask-image: radial-gradient(ellipse 70% 65% at 50% 55%, transparent 25%, #000 85%);
  pointer-events: none;
}
/* gold hairlines with a centred diamond, top and bottom */
.kd-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, var(--accent-gold) 20%, var(--accent-gold) 80%, transparent) top / 100% 3px no-repeat,
    linear-gradient(90deg, transparent, var(--accent-gold) 20%, var(--accent-gold) 80%, transparent) bottom / 100% 3px no-repeat;
}
.kd-section .section-head .eyebrow::before,
.kd-section .section-head .eyebrow::after { content: "✦"; margin: 0 .6em; color: var(--accent-gold); }
.kd-section .kd-card { box-shadow: 0 10px 28px -16px rgba(10, 52, 16, .35); }
.kd-section .kd-panel { box-shadow: 0 18px 40px -20px rgba(10, 52, 16, .35); }
html.hc .kd-section { background: #fff; }
html.hc .kd-section::before, html.hc .kd-section::after { display: none; }

/* Sponsorship section: greener backdrop (sage to leaf green, touch of gold) */
.kd-section {
  background:
    radial-gradient(ellipse 55% 60% at 10% 15%, rgba(226, 196, 110, .22), transparent 70%),
    radial-gradient(ellipse 60% 60% at 92% 90%, rgba(12, 63, 16, .22), transparent 70%),
    linear-gradient(180deg, #dfe9d3 0%, #e9f0de 40%, #d3e2c4 100%);
}
.kd-section::before { filter: sepia(1) saturate(3) hue-rotate(45deg) brightness(.45); opacity: .5; }
.kd-section .lead { color: #3f5243; }

/* Prayer Times page: photo of the Esnoga during Tefillah (Ehal and Teva) behind the content */
.rock-bg.prayers-bg {
  background:
    linear-gradient(180deg, rgba(6, 34, 8, .80) 0%, rgba(6, 34, 8, .58) 35%, rgba(6, 34, 8, .62) 70%, rgba(6, 34, 8, .85) 100%),
    url("../images/prayers-bg.jpg") 62% 35% / cover no-repeat,
    var(--primary-dark);
}
@media (max-width: 600px) {
  .rock-bg.prayers-bg {
    background:
      linear-gradient(180deg, rgba(6, 34, 8, .70) 0, rgba(6, 34, 8, .55) 50vw, rgba(6, 34, 8, .72) 95vw, #062208 125vw),
      url("../images/prayers-bg.jpg") 70% 0 / auto 125vw no-repeat,
      #062208;
  }
}
html.hc .rock-bg.prayers-bg { background: #000; }

/* "Shabbat across the world": the Hechal of KK Etz Chaim behind the clocks */
.clocks-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(14, 10, 6, .78) 0%, rgba(14, 10, 6, .42) 38%, rgba(14, 10, 6, .42) 72%, rgba(14, 10, 6, .82) 100%),
    url("../images/hechal-bg.jpg") center 42% / cover no-repeat,
    #1a120b;
  box-shadow: inset 0 3px 0 rgba(226, 196, 110, .55), inset 0 -3px 0 rgba(226, 196, 110, .55);
}
.clocks-bg .section-head h2 { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.clocks-bg .section-head .eyebrow { color: var(--accent-gold-light); }
.clocks-bg .section-head .lead { color: #e3ece0; }
.clocks-bg .clock-card {
  background: linear-gradient(160deg, rgba(31, 106, 36, .5) 0%, rgba(12, 63, 16, .5) 50%, rgba(4, 26, 6, .5) 100%);   /* 50% transparent */
  border-color: rgba(226, 196, 110, .6);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .65);
}
@media (max-width: 600px) {
  .clocks-bg { background-position: 0 0, center 35%, 0 0; }
}
html.hc .clocks-bg { background: #000; box-shadow: none; }
html.hc .clocks-bg .section-head h2, html.hc .clocks-bg .section-head .lead { color: #fff; text-shadow: none; }

/* Divider between "Shabbat across the world" and Contact: takes no space (no cream gap),
   sits exactly on the join and is flipped so the arch, Magen David and leaves hang down into Contact */
.ornament-seam { position: relative; height: 0; z-index: 3; }
.ornament-band--flip { position: absolute; left: 0; right: 0; top: -3px; margin: 0; transform: scaleY(-1); pointer-events: none; }
@media (max-width: 560px) { .ornament-band--flip { top: -2px; } }

/* Clock cards over the Hechal: gold glass (50% transparent) instead of green */
.clocks-bg .clock-card {
  background: linear-gradient(160deg, rgba(226, 196, 110, .5) 0%, rgba(184, 137, 26, .5) 50%, rgba(122, 88, 12, .5) 100%);
  border-color: rgba(250, 230, 170, .75);
}
.clocks-bg .clock-card h3,
.clocks-bg .clock-digital,
.clocks-bg .clock-shabbat strong { color: #fff; text-shadow: 0 1px 6px rgba(40, 25, 0, .55); }
.clocks-bg .clock-day,
.clocks-bg .clock-shabbat span { color: #fbf1d6; text-shadow: 0 1px 4px rgba(40, 25, 0, .5); }
.clocks-bg .clock-shabbat { border-top-color: rgba(255, 245, 215, .6); }
.clocks-bg .clock-face .face { stroke: #8a6508; }

/* Sticky menu: layered shadow for depth, a little deeper once the page is scrolled */
.site-header {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .6) inset,
    0 4px 10px -2px rgba(6, 34, 8, .18),
    0 12px 28px -10px rgba(6, 34, 8, .28);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .6) inset,
    0 6px 14px -2px rgba(6, 34, 8, .26),
    0 18px 40px -12px rgba(6, 34, 8, .45);
}
html.hc .site-header, html.hc .site-header.is-scrolled { box-shadow: 0 3px 0 #000; }
