/* Ribbit Q&A — colors, fonts and shapes taken from the weekly flyers. */
:root {
  --navy: #0b1e42;
  --navy-2: #17305f;
  --royal: #1b2389;
  --gold: #f0a220;
  --gold-dark: #d48a0a;
  --gold-soft: #fde7b8;
  --cream: #fcf6e8;
  --cream-line: #f1d39a;
  --sky: #eef6fd;
  --sky-line: #b5d4f0;
  --maroon: #6f0806;
  --maroon-2: #8a110d;
  --red: #b3211f;
  --green: #1f7a3c;
  --ink: #253047;
  --muted: #5d6679;
  --line: #e7e1d4;
  --bg: #fffdf8;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 30, 66, 0.06), 0 8px 24px rgba(11, 30, 66, 0.08);
  --shadow-lg: 0 2px 6px rgba(11, 30, 66, 0.08), 0 24px 48px rgba(11, 30, 66, 0.16);
  --sans: 'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;
  --serif: Merriweather, Georgia, serif;
  --hebrew: 'Frank Ruhl Libre', 'Times New Roman', serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--royal); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0; color: var(--navy); font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
code { font-size: 0.88em; background: var(--cream); border: 1px solid var(--cream-line); border-radius: 5px; padding: 0 5px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 620px; }
.sr-only, .hp {
  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 { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.t-navy { color: var(--navy); }
.t-gold { color: var(--gold); }
.muted { color: var(--muted); }
.icon { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: 700 17px/1 var(--sans); padding: 13px 22px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-lg { font-size: 18px; padding: 16px 28px; }
.btn-sm { font-size: 15px; padding: 9px 16px; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #f7b23a; box-shadow: 0 6px 18px rgba(242, 163, 27, 0.35); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-danger { background: #fff; color: var(--red); border-color: #efc3c4; }
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btns.stack { flex-direction: column; }
.btns.stack .btn { width: 100%; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }

/* ---- Logo ---- */
.logo { width: 92px; height: auto; display: block; }
.logo-sm { width: 76px; }
.logo-notice { width: 120px; margin: 0 auto 18px; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.site-header .logo { width: 78px; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > a:not(.btn) {
  color: var(--navy); font-weight: 700; text-decoration: none; padding: 10px 14px; border-radius: 999px;
}
.main-nav > a:not(.btn):hover { background: var(--cream); }
.main-nav > a[aria-current='page']:not(.btn) { color: var(--royal); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.main-nav .btn { margin-left: 8px; }

/* ---- Shared section pieces ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--royal);
}
.eyebrow::before { content: ''; width: 26px; height: 3px; background: var(--gold); border-radius: 2px; }

/* Navy tab with a gold circle — like the "QUESTION ?" tab on the flyers */
.section-tab {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--navy); color: #fff; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  font-size: 17px; padding: 8px 8px 8px 20px; border-radius: 10px 999px 999px 10px;
}
.section-tab-icon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold); color: #fff;
}
.section-tab-icon .icon { width: 22px; height: 22px; stroke-width: 3; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
.chip {
  display: inline-block; background: var(--navy); color: #fff; font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em; padding: 3px 10px; border-radius: 999px;
}
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty { color: var(--muted); padding: 24px 0; }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(242, 163, 27, 0.12), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding: 64px 0 72px; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); margin: 16px 0 18px; line-height: 1.04; letter-spacing: -0.02em; }
.hero h1 .t-gold { display: block; }
.lede { font-size: 20px; color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.hero-cover {
  display: block; justify-self: center; width: min(430px, 100%);
  transform: rotate(2deg); transition: transform 0.25s ease;
  border-radius: 10px; box-shadow: var(--shadow-lg); background: #fff; padding: 8px;
}
.hero-cover:hover { transform: rotate(0deg) translateY(-4px); }
.hero-cover img { border-radius: 4px; width: 100%; height: auto; }
.hero-empty { padding: 72px 0; }

/* ---- How it works (styled like "Practical Takeaways") ---- */
.about { padding: 56px 0 8px; }
.takeaways {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--cream-line); border-radius: var(--radius); background: #fff; padding: 34px 8px 26px;
}
.takeaways-title {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -55%);
  background: var(--bg); padding: 0 18px; white-space: nowrap;
  font-size: 22px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--royal);
}
.takeaway { text-align: center; padding: 6px 22px; }
.takeaway + .takeaway { border-left: 1px solid var(--cream-line); }
.takeaway-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: #fff; margin: 0 auto 12px;
}
.takeaway-icon .icon { width: 26px; height: 26px; }
.takeaway p { font-size: 16px; color: var(--ink); }

/* ---- Flyer cards ---- */
.recent { padding: 64px 0 72px; }
.flyer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.flyer-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.flyer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--cream-line); }
.flyer-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); border-bottom: 1px solid var(--line); }
.flyer-card-img img, .flyer-card-img .cover-ph { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.flyer-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.flyer-card-meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
.flyer-card h3 { font-size: 20px; line-height: 1.22; }
.flyer-card h3 .t-gold { color: var(--gold-dark); }

.cover-ph {
  display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 28px;
  background: linear-gradient(160deg, var(--cream), #fff); aspect-ratio: 612 / 792; text-align: left;
}
.cover-ph .logo { width: 84px; margin-bottom: 8px; }
.cover-ph span { color: var(--navy); font-weight: 800; font-size: 22px; line-height: 1.1; }
.cover-ph strong { color: var(--gold); font-weight: 800; font-size: 22px; line-height: 1.1; }

/* ---- Subscribe band (like the flyer's footer bar) ---- */
.subscribe-band { background: var(--navy); color: #fff; padding: 44px 0; }
.subscribe-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; }
.subscribe-copy { display: flex; gap: 18px; align-items: flex-start; }
.subscribe-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); flex: none; }
.subscribe-icon .icon { width: 26px; height: 26px; }
.subscribe-band h2 { color: var(--gold); font-size: clamp(24px, 3vw, 32px); }
.subscribe-band p { color: rgba(255, 255, 255, 0.82); margin-top: 6px; }
.subscribe-form { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 10px; }
.subscribe-form input {
  font: 600 17px var(--sans); padding: 14px 18px; border-radius: 999px; border: 2px solid transparent;
  background: #fff; color: var(--ink); min-width: 0;
}
.subscribe-form input:focus { outline: none; border-color: var(--gold); }
.subscribe-form .form-status { grid-column: 1 / -1; }
.subscribe-band .form-status { color: #fff; }

.form-status { font-weight: 700; min-height: 1.4em; font-size: 16px; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }
.subscribe-band .form-status.ok { color: #9fe0b2; }
.subscribe-band .form-status.err { color: #ffb4b4; }

/* ---- Contact ---- */
.contact { padding: 80px 0; background: linear-gradient(180deg, var(--bg), var(--cream)); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info h1, .contact-info h2 { font-size: clamp(32px, 4vw, 44px); margin: 22px 0 14px; }
.contact-info > p { color: var(--muted); font-size: 19px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list small { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.contact-list a { font-weight: 700; font-size: 20px; text-decoration: none; color: var(--navy); }
.contact-list a:hover { color: var(--royal); text-decoration: underline; }
.ci { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--navy); flex: none; }
.contact-form { padding: 30px; display: grid; gap: 18px; border-top: 5px solid var(--gold); }

/* ---- Form fields ---- */
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; color: var(--navy); font-size: 16px; }
.field label small { font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  font: 17px/1.45 var(--sans); color: var(--ink); width: 100%;
  padding: 12px 14px; border: 1.5px solid #d8d2c4; border-radius: 10px; background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(27, 35, 137, 0.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; font-size: 16px; }
.check input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.check.big { padding: 14px 16px; background: var(--cream); border: 1px solid var(--cream-line); border-radius: 10px; margin: 18px 0 16px; font-size: 17px; }

/* ---- Pasuk band (the maroon band from the flyers) ---- */
.pasuk-band { background: linear-gradient(180deg, var(--maroon-2), var(--maroon)); color: #fff; padding: 40px 0; }
.pasuk-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; }
.pasuk-icon { color: var(--gold); }
.pasuk-icon .icon { width: 84px; height: 84px; stroke-width: 1.7; }
.pasuk { margin: 0; text-align: center; }
.pasuk blockquote { margin: 0; }
.pasuk .he { font-family: var(--hebrew); font-weight: 500; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.5; }
.pasuk .en { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.45; max-width: 36em; margin: 6px auto 0; }
.pasuk figcaption { color: var(--gold); font-weight: 700; margin-top: 8px; font-size: 18px; }
.pasuk-contact {
  display: flex; align-items: center; gap: 16px; text-decoration: none; color: #fff;
  padding-left: 32px; border-left: 2px solid rgba(242, 163, 27, 0.55);
}
.pasuk-contact-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--gold); color: var(--gold); flex: none; }
.pasuk-contact-icon .icon { width: 30px; height: 30px; }
.pasuk-contact strong { display: block; color: var(--gold); font-size: 26px; line-height: 1.1; }
.pasuk-contact span span { display: block; font-weight: 600; font-size: 17px; }
.pasuk-contact:hover strong { text-decoration: underline; }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.8); padding: 48px 0 24px; font-size: 16px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 18px; align-items: center; max-width: 360px; }
.footer-brand .logo path { fill: #fff; }
.footer-brand .logo text:first-of-type { fill: var(--navy); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols div { display: grid; gap: 6px; align-content: start; }
.footer-cols h4 { color: var(--gold); font-size: 14px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 4px; }
.footer-cols a { color: #fff; text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 36px; padding-top: 18px; font-size: 14px; color: rgba(255, 255, 255, 0.6); display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.footer-base a { color: #fff; font-weight: 600; text-decoration: none; }
.footer-base a:hover { color: var(--gold); text-decoration: underline; }

/* ---- Archive page ---- */
.page-head { padding: 56px 0 36px; background: linear-gradient(180deg, var(--cream), var(--bg)); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(32px, 4.4vw, 48px); margin: 22px 0 10px; }
.page-head p { color: var(--muted); font-size: 19px; }
.search {
  display: flex; align-items: center; gap: 10px; max-width: 480px; margin-top: 24px;
  background: #fff; border: 1.5px solid #d8d2c4; border-radius: 999px; padding: 0 18px; color: var(--muted);
}
.search:focus-within { border-color: var(--royal); box-shadow: 0 0 0 4px rgba(27, 35, 137, 0.12); }
.search input { border: 0; outline: none; font: 17px var(--sans); padding: 13px 0; width: 100%; background: transparent; color: var(--ink); }
.archive { padding: 48px 0 80px; }
.empty-search { color: var(--muted); padding: 20px 0; }

/* ---- Single flyer page ---- */
.flyer-page { padding: 36px 0 72px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; margin-bottom: 22px; }
.back:hover { text-decoration: underline; }
.flyer-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr); gap: 48px; align-items: start; }
.flyer-view a { display: block; background: #fff; padding: 10px; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.flyer-view img { width: 100%; height: auto; border-radius: 4px; }
.flyer-side { position: sticky; top: 112px; display: grid; gap: 22px; }
.flyer-side h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.08; }
.flyer-side h1 .t-gold { display: block; margin-top: 4px; }
.insight { display: flex; gap: 16px; background: var(--sky); border: 1px solid var(--sky-line); border-radius: var(--radius); padding: 18px; }
.insight-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--gold); flex: none; }
.insight h2 { color: var(--royal); font-size: 17px; text-transform: uppercase; letter-spacing: 0.04em; }
.insight p { font-size: 17px; margin-top: 4px; }
.sponsor { display: grid; gap: 2px; padding: 14px 18px; border: 1px dashed var(--cream-line); border-radius: 12px; background: var(--cream); font-weight: 700; color: var(--navy); }
.sponsor span { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--royal); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share > span { width: 100%; font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--navy); font: 700 15px var(--sans);
  text-decoration: none; cursor: pointer;
}
.share-btn:hover { border-color: var(--navy); }
.prevnext { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; border-top: 1px solid var(--line); padding-top: 24px; }
.pn { display: flex; align-items: center; gap: 12px; text-decoration: none; max-width: 46%; color: var(--navy); font-weight: 700; }
.pn small { display: block; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }
.pn-next { text-align: right; margin-left: auto; }
.pn:hover span { text-decoration: underline; }

/* ---- Notice pages (thanks / unsubscribe / 404) ---- */
.notice-page { padding: 72px 0; }
.notice { padding: 40px; text-align: center; display: grid; gap: 16px; }
.notice h1 { font-size: 32px; }
.notice p { color: var(--muted); font-size: 18px; }
.notice form { display: flex; justify-content: center; }

/* ---- Alerts ---- */
.alert { padding: 12px 16px; border-radius: 10px; font-weight: 600; margin: 0 0 18px; border: 1px solid; }
.alert.small { font-size: 15px; }
.alert-ok { background: #ecf7ef; border-color: #b6dfc1; color: #155d2c; }
.alert-warn { background: #fff6e2; border-color: var(--cream-line); color: #7a4c00; }
.alert-error { background: #fdecec; border-color: #f2c0c1; color: #8f1a1e; }
.err { color: var(--red); font-weight: 600; }

/* ===================================================================== */
/* Admin                                                                  */
/* ===================================================================== */
.admin { background: #f6f3ec; font-size: 17px; }
.admin-footer { text-align: center; font-size: 14px; color: var(--muted); padding: 0 16px 28px; }
.admin-footer a { color: var(--navy); font-weight: 700; text-decoration: none; }
.admin-footer a:hover { color: var(--gold-dark); text-decoration: underline; }
.login { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); padding: 36px; display: grid; gap: 16px; text-align: center; }
.login-card .field { text-align: left; }
.login-card h1 { font-size: 28px; }

.admin-bar { background: var(--navy); color: #fff; }
.admin-bar-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 6px; gap: 16px; }
.admin-bar .brand span { color: var(--gold); font-weight: 800; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; }
.admin-bar .logo { width: 58px; }
.admin-bar .logo path { fill: #fff; }
.admin-bar .logo text:first-of-type { fill: var(--navy); }
.admin-bar-links { display: flex; align-items: center; gap: 20px; font-weight: 700; }
.admin-bar-links a, .admin-bar-links .linkish { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.admin-bar-links a:hover, .admin-bar-links .linkish:hover { text-decoration: underline; }
.admin-bar-links form { margin: 0; }
.admin-tabs { display: flex; gap: 4px; overflow-x: auto; }
.admin-tabs a {
  color: rgba(255, 255, 255, 0.78); text-decoration: none; font-weight: 700; padding: 14px 18px 12px;
  border-bottom: 4px solid transparent; white-space: nowrap;
}
.admin-tabs a:hover { color: #fff; }
.admin-tabs a[aria-current='page'] { color: #fff; border-bottom-color: var(--gold); }
.count { display: inline-block; min-width: 24px; padding: 1px 8px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: 14px; font-weight: 800; text-align: center; }
.admin-main { padding: 28px 0 80px; display: grid; gap: 24px; }
.admin-main > *, .upload-grid > * { min-width: 0; }
.admin-card { padding: 26px; }
.admin-card h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 8px; }
.admin-card h2 .icon { color: var(--gold-dark); }
.admin-card > .muted { margin-bottom: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { margin: 0; }

.upload-grid { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start; }
.upload-grid > div { display: grid; gap: 16px; }
.upload-grid .check.big { margin: 0; }
.upload-grid > div > .btn { justify-self: start; }
.dropzone {
  position: relative; display: grid; place-items: center; text-align: center; cursor: pointer;
  aspect-ratio: 612 / 792; border: 2.5px dashed #cdbf9f; border-radius: 12px; background: var(--cream);
  color: var(--navy); padding: 16px; overflow: hidden; transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover, .dropzone.drag { border-color: var(--gold-dark); background: #fcefd2; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-empty { display: grid; justify-items: center; gap: 6px; }
.dz-empty .icon { width: 36px; height: 36px; color: var(--gold-dark); transform: rotate(180deg); }
.dz-empty small { color: var(--muted); }
.dz-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.dz-name { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(11, 30, 66, 0.88); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-name:empty { display: none; }
.dropzone.has-file .dz-empty { visibility: hidden; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th { text-align: left; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td a { text-decoration: none; }
.table td a:hover { text-decoration: underline; }
.table .right { text-align: right; }
.nowrap { white-space: nowrap; }
.thumb-cell { width: 64px; }
.thumb { width: 52px; height: 67px; object-fit: cover; object-position: top; border-radius: 4px; border: 1px solid var(--line); display: block; }
.thumb-ph { background: var(--cream); }
.actions { white-space: nowrap; }
.actions form, .table form { display: inline; margin: 0; }
.actions .btn { margin-left: 4px; }

.deliveries { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 14px; }
.delivery { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fcfbf8; }
.delivery-top { display: flex; justify-content: space-between; gap: 12px; }
.delivery-state { font-weight: 800; color: var(--green); font-size: 15px; }
.delivery-state.is-active { color: var(--gold-dark); }
.bar { height: 10px; border-radius: 999px; background: #ece6d8; overflow: hidden; margin: 10px 0 8px; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); border-radius: 999px; transition: width 0.4s ease; }
.delivery-meta { font-size: 15px; color: var(--muted); }
.delivery details { margin-top: 8px; font-size: 15px; }

.messages { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.message { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff; }
.message.unread { border-left: 5px solid var(--gold); }
.message-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 16px; }
.message-body { white-space: pre-wrap; margin: 10px 0 12px; }
.message-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.message-foot > span { margin-right: auto; }
.message-foot form { margin: 0; }

.status-line { display: flex; align-items: center; gap: 10px; font-weight: 700; padding: 12px 16px; border-radius: 10px; margin: 6px 0 16px; }
.status-line.ok { background: #ecf7ef; color: #155d2c; }
.status-line.warn { background: #fff6e2; color: #7a4c00; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 20px; }
.kv dt { font-weight: 700; color: var(--navy); }
.kv dd { margin: 0; }
.inline-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.inline-form .field { flex: 1; min-width: 240px; }
.prose ol { padding-left: 22px; display: grid; gap: 8px; }
.muted-details { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* ===================================================================== */
/* Responsive                                                             */
/* ===================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 44px 0 56px; }
  .hero-cover { width: min(360px, 82%); }
  .takeaways { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .takeaway:nth-child(4) { border-left: 0; }
  .subscribe-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .pasuk-inner { grid-template-columns: 1fr; text-align: center; gap: 22px; }
  .pasuk-icon { display: none; }
  .pasuk-contact { justify-self: center; border-left: 0; padding-left: 0; border-top: 2px solid rgba(242, 163, 27, 0.55); padding-top: 20px; text-align: left; }
  .flyer-layout { grid-template-columns: 1fr; gap: 32px; }
  .flyer-side { position: static; }
  .upload-grid { grid-template-columns: 200px 1fr; }
  .field-row.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 32px); }
  .header-inner { padding: 10px 0; }
  .site-header .logo { width: 60px; }
  .main-nav > a:not(.btn):not([href="/flyers"]) { display: none; }
  .main-nav > a:not(.btn) { padding: 8px 10px; font-size: 16px; }
  .eyebrow { font-size: 12.5px; letter-spacing: 0.1em; }
  .eyebrow::before { display: none; }
  .main-nav .btn { margin: 0; }
  .takeaways { grid-template-columns: 1fr; padding: 40px 8px 16px; }
  .takeaway + .takeaway { border-left: 0; border-top: 1px solid var(--cream-line); padding-top: 18px; }
  .takeaways-title { font-size: 18px; }
  .subscribe-form { grid-template-columns: 1fr; }
  .field-row, .field-row.three { grid-template-columns: 1fr; }
  .contact { padding: 56px 0; }
  .contact-form { padding: 22px; }
  .flyer-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .flyer-card h3 { font-size: 16px; }
  .flyer-card-body { padding: 12px 14px 16px; }
  .flyer-card-meta { font-size: 12px; flex-wrap: wrap; gap: 6px; }
  .flyer-card-meta .chip { font-size: 11px; }
  .footer-cols { gap: 36px; }
  .upload-grid { grid-template-columns: 1fr; }
  .dropzone { max-width: 240px; margin-inline: auto; }
  .admin-bar .brand span { display: none; }
  .pn { max-width: 48%; font-size: 15px; }
  .actions .btn { margin: 2px 0 2px 4px; }
}
@media (max-width: 420px) {
  .main-nav .btn span { display: none; }
  .main-nav .btn { padding: 11px; }
  .flyer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
