:root {
    /* --- Brand palette --- */
    --navy:          #19465f; /* teal — header, hero, CTA band */
    --navy-dark:     #112f41; /* deep teal — footer, gradient end */
    --gold:          #e38543; /* amber — accents, buttons, borders */
    --link-blue:     #4458a5; /* blue — body/inline links (AA on white+cream) */
    --gold-btn-hover:#b8621e; /* dark amber — button hover fills */
    --yellow:        #f3e980; /* yellow — hero Hebrew, selected states */
    --red:           #d72d42; /* red — danger actions */
    --blue:          #4458a5; /* blue — secondary accent */
    --cream:         #f7f4ec;
    --ink:           #1a1a1a;
    --muted:         #4a5562;
    --line:          #ddd8cc;
    --white:         #ffffff;
    --radius: 10px;
    --shadow: 0 6px 24px rgba(25, 70, 95, 0.10);
    --maxw: 1200px;
    font-size: 16px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--navy); line-height: 1.25; }
h1 { font-size: 2.8rem; margin: 0 0 .5rem; font-weight: 600; }
h2 { font-size: 1.5rem; margin: 0 0 .75rem; font-weight: 600; }
h3 { font-size: 1.15rem; margin: 0 0 .5rem; font-weight: 600; }
a { color: var(--link-blue); }

/* --- Header --- */
.site-header { background: linear-gradient(180deg, #1a4a64 0%, var(--navy) 100%); color: var(--white); position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand-logo {
    width: 44px; height: 44px; border-radius: 6px;
    object-fit: contain; flex: none; background: var(--white);
}
.brand-text strong { display: block; font-size: 1.05rem; }
.brand-text small { color: #a8bfc9; font-size: .75rem; }
.brand-hebrew { font-family: "David Libre", "Times New Roman", serif; letter-spacing: 1px; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { color: #c0d4dc; text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.site-nav a:hover, .site-nav a.is-active { color: var(--white); }

/* --- Buttons --- */
.btn {
    display: inline-block; padding: 12px 22px; border-radius: var(--radius);
    font-weight: 600; text-decoration: none; border: 2px solid transparent;
    cursor: pointer; font-size: 1rem; transition: transform .05s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn { min-height: 44px; }
.btn-primary:hover, .btn-ghost:hover, .btn-nav:hover, .btn-whatsapp:hover { box-shadow: 0 4px 14px rgba(25, 70, 95, 0.30); }

/* Skip-to-content link: off-screen until focused (WCAG 2.4.1). */
.skip-link {
    position: absolute; left: 8px; top: -48px; z-index: 100;
    background: var(--navy); color: var(--white); padding: 10px 16px;
    border-radius: var(--radius); text-decoration: none; font-weight: 600;
    transition: top .15s ease;
}
.skip-link:focus { top: 8px; outline: 3px solid var(--gold); outline-offset: 2px; }
.site-main:focus { outline: none; }

/* Global visible focus indicator for all interactive elements (WCAG 2.4.7). */
a:focus-visible,
.btn:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}
.site-header a:focus-visible,
.site-footer a:focus-visible { outline-color: var(--white); }

/* Hebrew content language support */
[lang="he"] {
    font-family: "David Libre", "Times New Roman", serif;
    direction: rtl;
}
.btn-primary { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-btn-hover); border-color: var(--gold-btn-hover); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-nav { padding: 8px 16px; background: var(--gold); color: var(--navy-dark) !important; border-color: var(--gold); }
.btn-nav:hover { background: var(--gold-btn-hover); color: var(--white) !important; }
.btn-block { display: block; width: 100%; }

/* --- Hero --- */
.hero { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: var(--white); }
.hero-inner { padding: 56px 20px; text-align: center; min-height: 40vh; display: flex; flex-direction: column; justify-content: center; }
.hero-hebrew { color: var(--yellow); font-family: "David Libre", "Times New Roman", serif; font-size: 1.6rem; letter-spacing: 2px; margin: 0 0 8px; }
.hero h1 { color: var(--white); font-size: 2.8rem; margin: 0; }
.hero-tagline { color: rgba(255, 255, 255, 0.9); font-size: 1.15rem; margin: 10px 0 8px; }
.hero-next { color: var(--yellow); font-size: 1.05rem; margin: 0 0 28px; font-weight: 600; }
.hero-actions { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
/* Ghost button on the dark hero needs light border/text to be legible. */
.hero .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.hero .btn-ghost:hover { background: var(--white); color: var(--navy-dark); border-color: var(--white); }
.hero-logo {
    display: block; width: 140px; height: 140px; margin: 0 auto 18px;
    object-fit: contain; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.35));
}
/* Remove the old glyph-based crest rule if it lingers */
.hero-crest { display: none; }

/* --- Sections --- */
.section { padding: 24px 0; }
.section-alt { background: var(--white); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 65ch; }

/* Two-column mid-band: Announcements + Minyan Times side-by-side. */
.mid-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
}
/* min-width:0 is essential — without it grid children can overflow their track */
.mid-col { padding: 24px 0; position: relative; min-width: 0; overflow: hidden; }
.mid-col-inner {
    max-width: 700px;
    padding: 0 24px;
}
/* Announcements must paint above the times column (flyer shadow creates stacking context). */
.mid-col-announce { background: linear-gradient(135deg, #fffbeb 0%, #fff8d6 100%); z-index: 1; border-right: 1px solid #e8dfc0; box-shadow: inset 0 1px 2px rgba(0,0,0,0.03); }
.mid-col-announce .mid-col-inner { margin-left: auto; }  /* right-align content inside left column */
.mid-col-times { background: var(--white); box-shadow: inset 0 1px 2px rgba(0,0,0,0.02); }
.mid-col-times .mid-col-inner { margin-right: auto; }    /* left-align content inside right column */

@media (max-width: 760px) {
    /* On mobile: times first (more immediately useful), announcements below. */
    .mid-band { grid-template-columns: 1fr; }
    .mid-col-announce { order: 2; }
    .mid-col-times { order: 1; }
    .mid-col-inner { max-width: none; padding: 0 20px; margin: 0; }
    .mid-col { padding: 24px 0; }
}

/* Visually-hidden utility for screen-reader-only landmarks/labels. */
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }

.times-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
#times h2 { text-align: center; }
.times-list { margin: 0; }
.times-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.times-row dt { color: var(--muted); font-weight: 500; margin: 0; font-size: .9rem; }
.times-row dd { color: var(--ink); font-weight: 700; font-size: 1rem; margin: 0; text-align: right; }

.cta-band { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%); color: var(--white); text-align: center; padding: 32px 0; border-top: 1px solid rgba(255,255,255,0.1); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.cta-band h2 { color: var(--white); font-size: 1.5rem; margin: 0 0 12px; }
.cta-inner p { color: #c8dde5; margin-bottom: 18px; font-size: .95rem; } /* AA on teal (WCAG 1.4.3) */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 900px; margin: 0 auto; align-items: start; text-align: center; }
.cta-split-three { grid-template-columns: 1fr 1fr 1fr; max-width: 1100px; gap: 24px; }
.cta-split > div { padding: 16px; }
.cta-split h3 { font-size: 1.1rem; margin-bottom: 8px; }
.cta-split p { font-size: .9rem; margin-bottom: 14px; }
@media (max-width: 900px) { 
    .cta-split-three { grid-template-columns: 1fr; gap: 24px; } 
}
@media (max-width: 760px) { 
    .cta-split { grid-template-columns: 1fr; gap: 24px; } 
}

.kiddush-block { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.kiddush-lead { color: #c8dde5; font-size: .95rem; margin-bottom: 6px; }
.kiddush-phone { margin: 0 0 12px; font-size: 1.1rem; font-weight: 600; }
.kiddush-phone a { color: var(--gold); text-decoration: none; }
.kiddush-phone a:hover { text-decoration: underline; }
.btn-whatsapp { background: #25d366; color: #06331a; border-color: #25d366; display: inline-flex; align-items: center; gap: 8px; }
.btn-whatsapp:hover { background: #1da851; border-color: #1da851; color: var(--white); }
/* btn-gold is an alias for btn-primary — same visual treatment */
.btn-gold { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-btn-hover); border-color: var(--gold-btn-hover); color: var(--white); }
.btn-disabled { opacity: .5; cursor: not-allowed; }
.wa-icon { width: 22px; height: 22px; flex: none; }
/* Inline SVG icon inside buttons */
.btn-icon { width: 18px; height: 18px; flex: none; vertical-align: middle; margin-right: 4px; }

/* --- Donate form --- */
.donate-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin-top: 24px; }
.donate-form fieldset { border: none; padding: 0; margin: 0 0 24px; }
.donate-form legend { font-weight: 600; color: var(--navy); margin-bottom: 12px; font-size: 1.05rem; }
.amount-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.amount-option { position: relative; }
.amount-option input { position: absolute; opacity: 0; }
.amount-option span {
    display: block; text-align: center; padding: 14px 8px; border: 2px solid var(--line);
    border-radius: var(--radius); font-weight: 600; color: var(--navy); cursor: pointer; background: var(--cream);
}
.amount-option input:checked + span {
    border-color: var(--gold); background: #fdf6cc; font-weight: 800;
    box-shadow: inset 0 0 0 1px var(--gold);
}
/* Non-colour cue: checkmark on the selected amount (WCAG 1.4.1). */
.amount-option input:checked + span::after {
    content: "✓"; display: inline-block; margin-left: 6px; color: var(--link-blue); font-weight: 900;
}
/* Visible keyboard focus for the custom radio+span control (WCAG 2.4.7). */
.amount-option input:focus-visible + span {
    outline: 3px solid var(--navy); outline-offset: 2px;
}
.custom-amount { margin-top: 14px; }
.field, .custom-amount { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .custom-amount label { font-weight: 500; color: var(--navy); }
.donate-form input[type="text"],
.donate-form input[type="email"],
.donate-form input[type="number"],
.donate-form input[type="date"],
.kiddush-form input[type="text"],
.kiddush-form input[type="date"],
.kiddush-form select,
.kiddush-form textarea {
    color: var(--ink);
    padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 1rem;
    background: var(--white); width: 100%;
}
.donate-form input:focus,
.kiddush-form input:focus,
.kiddush-form select:focus,
.kiddush-form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.donate-form input:disabled { background: #f0eee7; color: #9aa0aa; }
.kiddush-form textarea { font-family: inherit; resize: vertical; }
.secure-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 14px; }

/* --- Announcements --- */
.section-announce { background: #fdf6cc; }
/* Tighten the band when only one announcement exists so it doesn't feel empty. */
.section-announce-single { padding: 36px 0; }
.announce-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.announce-item { background: var(--white); border: 1px solid #e8dfc0; border-left: 4px solid var(--navy); border-radius: var(--radius); padding: 12px 14px; word-break: normal; overflow-wrap: anywhere; min-width: 0; box-shadow: 0 2px 4px rgba(0,0,0,0.04); hyphens: none; white-space: normal; }
.announce-item h3 { margin: 0 0 4px; font-size: 1rem; }
.announce-date { color: var(--muted); font-size: .8rem; margin: 0 0 6px; }
.announce-item p:last-child { margin-bottom: 0; }

.announce-body { font-size: 1.05rem; word-break: normal; overflow-wrap: anywhere; hyphens: none; }
.announce-body p { margin: .4rem 0; }
.announce-body ul { list-style: disc; padding-left: 24px; margin: .4rem 0; }
.announce-body ol { list-style: decimal; padding-left: 24px; margin: .4rem 0; }
.announce-body li { margin: .2rem 0; }
.announce-body a { color: var(--link-blue); }

/* --- Admin --- */
.admin-wide { max-width: 960px; margin: 0 auto; }
.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-bar h1 { margin: 0; }
.form-success { background: #e4f3e4; border: 1px solid #7bbf7b; color: #245c24; padding: 14px 18px; border-radius: var(--radius); font-weight: 600; }
.form-error { background: #f8e0e0; border: 1px solid #d38b8b; color: #8a2b2b; padding: 14px 18px; border-radius: var(--radius); font-weight: 600; }

.admin-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; margin-bottom: 26px; }
.admin-card h2 { margin-top: 0; }
.admin-hint { color: var(--muted); margin: -6px 0 18px; }

.field-label { display: block; font-weight: 600; color: var(--navy); font-size: .85rem; margin-bottom: 5px; }
.admin-card label { display: block; }
.admin-card input[type="text"],
.admin-card input[type="date"],
.admin-card .time-picker {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line);
    border-radius: var(--radius); font-size: 1rem; font-family: inherit;
}
.admin-card input:focus, .time-picker:focus { outline: 2px solid var(--gold); border-color: var(--gold); }

.minyan-row { display: flex; gap: 14px; align-items: end; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); margin-bottom: 12px; }
.minyan-row .grow { flex: 1; }
.time-input { display: flex; gap: 8px; align-items: center; }
.time-input .time-picker { max-width: 140px; }
.time-input input[type="text"] { min-width: 160px; }
.time-toggle { background: none; border: none; color: var(--link-blue); font-size: .8rem; text-decoration: underline; cursor: pointer; padding: 4px; white-space: nowrap; }
.time-toggle:hover { color: var(--navy); }

.ann-block { border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); padding: 20px; margin-bottom: 20px; }
.ann-meta { display: flex; gap: 16px; margin-bottom: 16px; }
.ann-meta .grow { flex: 1; }
.ann-edit-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.ann-editor-col, .ann-preview-col { min-width: 0; max-width: 100%; }
/* Preview should match exact live width: 700px container - 48px padding = 652px content */
.ann-preview-col { max-width: 652px; }
.quill-editor { background: var(--white); border-radius: var(--radius); min-height: 200px; font-size: 1rem; }
.ann-block .btn-remove { margin-top: 16px; }

/* Live preview card — mirrors the public announcement styling exactly. */
.announce-preview { background: #fbf3df; border-radius: var(--radius); padding: 16px; }
/* Match exact live width: .mid-col-inner max-width 700px minus padding 24px each side */
.announce-preview { max-width: 652px; margin: 0; }
.announce-preview .announce-item { 
    background: var(--white); 
    border: 1px solid #e8dfc0; 
    border-left: 4px solid var(--navy); 
    border-radius: var(--radius); 
    padding: 12px 14px; 
    margin: 0;
    word-break: normal;
    overflow-wrap: anywhere;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    hyphens: none;
    white-space: normal;
}
.announce-preview .announce-item h3 { margin: 0 0 4px; font-size: 1rem; }
.announce-preview .announce-date { color: var(--muted); font-size: .8rem; margin: 0 0 6px; }
.announce-preview .announce-body { font-size: 1.05rem; word-break: normal; overflow-wrap: anywhere; hyphens: none; }
.announce-preview .announce-body p { margin: .4rem 0; }
.announce-preview .announce-body ul { list-style: disc; padding-left: 24px; margin: .4rem 0; }
.announce-preview .announce-body ol { list-style: decimal; padding-left: 24px; margin: .4rem 0; }
.announce-preview .announce-body li { margin: .2rem 0; }
.ql-toolbar.ql-snow, .ql-container.ql-snow { border-color: var(--line); }
.ql-toolbar.ql-snow { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); background: #fff; }
.ql-container.ql-snow { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }

.btn-add { background: var(--white); color: var(--navy); border-color: var(--navy); margin-top: 4px; }
.btn-add:hover { background: var(--navy); color: var(--white); }
.btn-danger { background: transparent; color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-remove { padding: 8px 14px; font-size: .9rem; justify-self: start; }
.btn-lg { padding: 15px 32px; font-size: 1.1rem; }
.admin-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

@media (max-width: 820px) {
    .ann-edit-grid { grid-template-columns: 1fr; }
    .ann-preview-col { margin-left: 0; }
}
@media (max-width: 640px) {
    .minyan-row { flex-direction: column; align-items: stretch; }
    .ann-meta { flex-direction: column; }
    .time-input { flex-wrap: wrap; }
    .time-input .time-picker { max-width: none; }
}

/* --- Thank you / mock --- */
.thankyou-mark { font-size: 3rem; }
.test-banner { background: #fdf6cc; border: 2px solid var(--gold-btn-hover); color: #5a3a00; padding: 12px 16px; border-radius: var(--radius); font-weight: 700; margin-bottom: 20px; text-align: center; }
.mock-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* --- Footer --- */
.site-footer { background: linear-gradient(180deg, #0d2531 0%, var(--navy-dark) 100%); color: #a8bfc9; margin-top: 0; border-top: 3px solid var(--gold); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 24px 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 32px; height: 32px; border-radius: 4px; object-fit: contain; background: var(--white); flex: none; }
.footer-brand strong { color: var(--white); font-size: .95rem; }
.footer-contact { font-size: .85rem; display: flex; align-items: center; flex-wrap: wrap; }
.footer-legal { text-align: right; font-size: .8rem; }
.site-footer a { color: #f4a661; text-decoration: none; } /* Lightened for 3:1 contrast */
.site-footer a:hover { text-decoration: underline; }
.footer-legal a[href*="admin"] { opacity: .3; }
@media (max-width: 760px) { .footer-inner { flex-direction: column; text-align: center; gap: 16px; } .footer-legal { text-align: center; } }

/* --- Responsive --- */
@media (max-width: 760px) {
    .cards, .times-grid, .footer-inner { grid-template-columns: 1fr; }
    .footer-note { text-align: left; }
    .hero h1 { font-size: 2.1rem; }
    .site-nav { gap: 12px; font-size: .95rem; }
    .brand-text small { display: none; }
}

/* Stack the header on small screens so nav never crowds or scrolls (WCAG 1.4.10). */
@media (max-width: 480px) {
    .header-inner { flex-direction: column; gap: 10px; }
    .site-nav { width: 100%; justify-content: space-between; gap: 8px; }
    .site-nav a { padding: 0 6px; font-size: .9rem; }
}

/* Honour reduced-motion preferences (WCAG 2.3.3). */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Touch target enhancement for inline links */
.announce-body a,
.cta-inner a,
.footer-contact a,
.eft-lead a {
    display: inline-block;
    min-height: 44px;
    padding: 8px 4px;
    margin: -8px -4px;
}

/* --- Donate: purpose selector --- */
.purpose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.purpose-option { position: relative; }
.purpose-option input { position: absolute; opacity: 0; }
.purpose-option span {
    display: block; text-align: center; padding: 14px 10px; border: 2px solid var(--line);
    border-radius: var(--radius); font-weight: 600; color: var(--navy); cursor: pointer; background: var(--cream);
}
.purpose-option input:checked + span {
    border-color: var(--gold); background: #fbf3df; box-shadow: inset 0 0 0 1px var(--gold);
}
.purpose-option input:checked + span::after {
    content: "✓"; display: inline-block; margin-left: 6px; color: var(--link-blue); font-weight: 900;
}
.purpose-option input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }

/* --- Donate: trust / reassurance panel --- */
.trust-panel {
    margin-top: 18px; padding: 14px 20px; background: #fbf3df;
    border: 1px solid var(--line); border-radius: var(--radius);
}
.powered-by {
    display: flex; align-items: center; gap: 8px; margin: 0;
    font-size: .9rem; color: var(--muted);
}
.trust-lock { margin-right: 2px; }
.powered-by-link { display: inline-flex; align-items: center; }
.powered-by-logo { height: 22px; width: auto; vertical-align: middle; }

/* --- Payment status / error pages --- */
.status-mark {
    display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 18px;
    border-radius: 50%; font-size: 2.6rem; font-weight: 900; line-height: 1;
}
.status-mark-success { background: #e4f3e4; color: #245c24; border: 3px solid #7bbf7b; }
.status-mark-error   { background: #f8e0e0; color: #8a2b2b; border: 3px solid #d38b8b; }
.status-mark-pending { background: #fbe6c4; color: #6b4e12; border: 3px solid var(--link-blue); font-size: 2rem; }
.status-note { color: var(--muted); }
.status-ref { margin-top: 18px; color: var(--muted); font-size: .95rem; }
.status-help { margin-top: 22px; color: var(--muted); font-size: .9rem; }
.status-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* --- Empty states --- */
.empty-state {
    color: var(--muted); font-style: italic; background: var(--white);
    border: 1px dashed var(--line); border-radius: var(--radius);
    padding: 18px 20px; margin: 16px 0 0; text-align: center;
}

/* --- Kiddush block: online sponsor CTA --- */
.kiddush-or { color: #c3cbdc; margin: 16px 0 6px; font-size: .95rem; }

/* --- Kiddush sponsorship page (kiddush.php) --- */
.kiddush-notice {
    background: #fbf3df; border: 1px solid var(--gold); border-left: 4px solid var(--gold);
    color: var(--navy); padding: 14px 18px; border-radius: var(--radius); margin: 24px 0 28px;
}
/* Lift the form card off the cream background */
.kiddush-form {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin-top: 8px;
}
.field-hint { display: block; color: var(--muted); font-size: .82rem; margin-top: 5px; }

.kiddush-preview-box {
    background: var(--navy); color: #d7ddea; border-radius: var(--radius);
    padding: 20px 22px; margin: 24px 0 20px;
}
.preview-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #a0abc0; margin: 0 0 12px; }
.preview-quote {
    font-family: "Segoe UI", system-ui, sans-serif; font-size: .975rem; line-height: 1.75;
    white-space: pre-wrap; margin: 0; color: #e8ecf5;
    border-left: 3px solid var(--gold); padding-left: 14px;
}
/* WhatsApp button: centred content on full-width */
.btn-whatsapp.btn-block { justify-content: center; }

/* --- Donate: kiddush details panel --- */
.kiddush-panel {
    background: #fbf3df; border: 1px solid var(--gold); border-left: 4px solid var(--gold);
    border-radius: var(--radius); padding: 20px 22px; margin: 20px 0;
    display: none; /* shown via JS when kiddush purpose selected */
}
.kiddush-panel.is-visible { display: block; }
.kiddush-panel h3 { margin: 0 0 6px; color: var(--navy); }
.kiddush-panel p { margin: 0 0 14px; color: var(--ink); }
.kiddush-panel .kiddush-phone { margin: 6px 0 14px; font-size: 1.1rem; font-weight: 600; }
.kiddush-panel .kiddush-phone a { color: var(--navy-dark); }

/* --- Donate: manual EFT / bank transfer panel --- */
.eft-panel {
    margin-top: 28px; padding: 26px 28px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.eft-panel h2 { margin-top: 0; font-size: 1.35rem; }
.eft-lead { color: var(--muted); margin: 0 0 18px; }
.eft-details { margin: 0 0 18px; }
.eft-row {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 10px 0; border-bottom: 1px solid var(--line);
}
.eft-row:last-child { border-bottom: none; }
.eft-row dt { color: var(--navy); font-weight: 600; margin: 0; }
.eft-value {
    font-family: "Segoe UI", system-ui, monospace; font-weight: 700; color: var(--ink);
    letter-spacing: .3px; text-align: right; user-select: all;
}
.eft-copied { margin-left: 12px; color: #245c24; font-weight: 600; font-size: .95rem; }

/* --- Davening-times flyer --- */
.flyer-current a { font-weight: 600; }
.flyer-meta { color: var(--muted); font-size: .85rem; margin-left: 8px; }

/* --- Modal dialog for flyer preview --- */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.is-open { display: flex; }
.modal-content { background: var(--white); border-radius: var(--radius); max-width: 900px; max-height: 90vh; width: 100%; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 1.25rem; }
.modal-close { background: none; border: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.modal-close:hover { color: var(--ink); }
.modal-body { flex: 1; overflow: auto; padding: 0; }
.modal-body iframe { width: 100%; height: 70vh; border: none; }

/* Focus trap: prevent tabbing out of modal */
body.modal-open { overflow: hidden; }
.admin-card input[type="file"] {
    width: 100%; padding: 12px 14px; border: 1px dashed var(--line);
    border-radius: var(--radius); background: var(--cream); font-size: .95rem;
}

.flyer-download { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.flyer-view-link { color: var(--link-blue); font-weight: 600; text-decoration: none; }
.flyer-view-link:hover { text-decoration: underline; }

.flyer-block { margin-top: 20px; }
.flyer-image-link { display: block; }
.flyer-image {
    display: block; max-width: 100%; height: auto; margin: 0 auto;
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.flyer-block .flyer-download { justify-content: center; }

/* Admin: current-flyer bar + type badge */
.flyer-current-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.flyer-current { margin: 0; }
.flyer-type {
    display: inline-block; margin-left: 8px; padding: 2px 8px; background: var(--navy); color: var(--white);
    border-radius: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .5px; vertical-align: middle;
}
.btn-remove-flyer { flex: none; }

