/* Safe Click — clean, quiet layout: white panels on a soft background, rows divided by hairlines,
   one accent colour. No boxes around individual links. */

:root {
  --bg: #f3f4f0;
  --panel: #ffffff;
  --ink: #1c232b;
  --ink-2: #39424d;
  --muted: #6b7480;
  --line: #e7e9e3;
  --accent: #5b9d2a;
  --accent-ink: #3f7419;
  --accent-soft: #eef6e6;
  --navy: #1e3550;
  --red: #b42318;
  --radius: 12px;
  --gap: 20px;
  --font: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.005em; }
[lang="he"] { unicode-bidi: isolate; font-family: Heebo, Arial, sans-serif; }
[hidden] { display: none !important; }
.fine { margin: 10px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-ink); font-weight: 500; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-quiet { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---------- header ---------- */
.masthead { background: var(--panel); border-bottom: 1px solid var(--line); }
.masthead-in, .subnav-in, .intro-in, .layout, .footer-in { max-width: 1680px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.masthead-in { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.brand img { height: 34px; width: auto; }
.today { flex: 1; min-width: 0; padding-left: 28px; border-left: 1px solid var(--line); }
.today-main { font-weight: 600; font-size: 15px; }
.today-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; color: var(--muted); font-size: 13px; }
.heb-he { font-size: 15px; color: var(--ink-2); }
.masthead-right { display: flex; align-items: center; gap: 22px; }
.weather { display: flex; align-items: baseline; gap: 8px; color: var(--ink-2); }
.wx-temp { font-size: 20px; font-weight: 600; color: var(--ink); }
.wx-desc { font-size: 12px; color: var(--muted); }
.clock { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }

.subnav { border-top: 1px solid var(--line); }
.subnav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.subnav-links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: -10px; }
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links button {
  background: none; border: 0; padding: 11px 10px; color: var(--ink-2); font-weight: 500; font-size: 13.5px;
  cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent;
}
.subnav-links button:hover { color: var(--accent-ink); border-bottom-color: var(--accent); }
.subnav-week { display: flex; gap: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.subnav-week span:empty { display: none; }
.subnav-week span + span:not(:empty)::before { content: '·'; margin: 0 9px; color: #b8bdc3; }
.subnav-week a { color: var(--accent-ink); font-weight: 500; }
.subnav-week a:hover { text-decoration: underline; }

/* ---------- intro ---------- */
.intro { background: var(--panel); border-bottom: 1px solid var(--line); }
.intro-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.intro-text { margin: 0; color: var(--ink-2); font-size: 14.5px; max-width: 720px; }
.intro-text b { color: var(--ink); }
.intro-places { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.intro-places li + li::before { content: ''; display: inline-block; width: 1px; height: 14px; background: var(--line); margin: 0 14px; vertical-align: -2px; }
.intro-places .link-btn { color: var(--ink-2); font-weight: 500; }
.intro-places a { color: var(--accent-ink); font-weight: 600; }

/* ---------- layout ---------- */
.layout { display: grid; gap: var(--gap); padding-top: var(--gap); padding-bottom: 36px; grid-template-columns: 270px minmax(0, 1fr) 300px; }
.col { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.panel { background: var(--panel); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.panel > h2, .panel-head { margin-bottom: 10px; }
.panel h2 { font-size: 15px; }
.panel h2 small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.more { font-size: 12.5px; font-weight: 500; color: var(--accent-ink); }
.more:hover { text-decoration: underline; }

/* ---------- rows (every list on the page) ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; }
.row { display: flex; flex-direction: column; padding: 8px 0; }
a.row:hover .row-title { color: var(--accent-ink); }
.row-title { font-weight: 500; color: var(--ink); line-height: 1.3; }
.row-sub { font-size: 12px; color: var(--muted); line-height: 1.35; }
.row-end { font-size: 12px; font-weight: 600; color: var(--accent-ink); margin-top: 1px; }
.tel { font-weight: 600; color: var(--accent-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tel:hover { text-decoration: underline; }

.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
.cols-3 > li:nth-child(-n+3) { border-top: 0; }
/* compact lists (center column): smaller text, tighter rows */
.compact .row { padding: 5px 0; }
.compact .row-title { font-size: 13px; }
.compact .row-sub { font-size: 11.5px; }
.compact .row-end { font-size: 11.5px; }
/* one line per item: name, then a muted address that trims to fit */
.oneline .row { flex-direction: row; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap; }
.oneline .row-title { flex: none; }
.oneline .row-sub { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* gemachim: name and phone on one line, what it lends underneath */
.row-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.row-line > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gemach-list .tel { font-size: 11.5px; }
/* government: name and note on one line */
.gov-list .row { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
/* help rows are buttons that open the side panel */
.help-list button.row { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.help-list button.row:hover .row-title { color: var(--accent-ink); }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.cols-2 > li:nth-child(-n+2) { border-top: 0; }

/* phone rows: name left, number right */
.phones .row { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 10px; }
.phones .row-sub { display: block; }
.phones .urgent .row-title, .phones .urgent .tel { color: var(--red); }

/* ---------- quick links ---------- */
.qlinks { margin: 0 -8px; }
.qitem { position: relative; }
.qitem + .qitem { border-top: 1px solid var(--line); }
.qitem > summary, .qitem > a {
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  padding: 9px 8px; border-radius: 6px; cursor: pointer; font-weight: 500; color: var(--ink);
}
.qitem > summary::-webkit-details-marker { display: none; }
.qitem > summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.qitem[open] > summary::after { transform: rotate(225deg) translateY(-1px); }
.qitem > a::after { content: '↗'; font-size: 12px; color: var(--muted); }
.qitem > summary:hover, .qitem > a:hover, .qitem[open] > summary { background: var(--accent-soft); color: var(--accent-ink); }
.qpop {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 360px; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, .16);
}
.qpop a { display: block; padding: 7px 10px; border-radius: 6px; font-size: 13.5px; }
.qpop a:hover { background: var(--accent-soft); color: var(--accent-ink); }
.qhead { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 10px 4px; }
.qhead:not(:first-child) { border-top: 1px solid var(--line); margin-top: 4px; }

/* tighter rows in the narrow side columns */
.col-left .row, .col-right .row { padding: 6px 0; }

/* ---------- shabbos ---------- */
.shabbos-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.shabbos-times div { display: flex; flex-direction: column; }
.shabbos-times dt { font-size: 12px; color: var(--muted); }
.shabbos-times dd { margin: 0; }
.shabbos-times dd:not(.sub) { font-size: 22px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.2; }
.shabbos-times .sub { font-size: 12px; color: var(--muted); }

.week-line { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.week-line:empty { display: none; }
.week-line + .week-line { margin-top: 0; padding-top: 6px; border-top: 0; }
.week-line a { color: var(--accent-ink); font-weight: 500; }
.week-line a:hover { text-decoration: underline; }

/* ---------- learning ---------- */
.learning-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.learning-strip li + li { border-left: 1px solid var(--line); padding-left: 18px; }
.learning-strip li { padding-right: 12px; }
.learning-strip a, .learning-strip div { display: flex; flex-direction: column; }
.learning-strip a:hover .row-title { color: var(--accent-ink); }
.learning-strip .row-heb { font-size: 13px; color: var(--ink-2); text-align: left; }

/* ---------- zmanim ---------- */
.next-zman { margin: 0 0 8px; font-size: 12.5px; color: var(--ink-2); }
.next-zman b { color: var(--accent-ink); font-weight: 600; }
.ztable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ztable th { text-align: left; font-weight: 400; padding: 3px 0; color: var(--ink-2); }
.ztable th small { color: var(--muted); font-size: 11px; }
.ztable td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ztable tr + tr { border-top: 1px solid var(--line); }
.ztable tr.past th, .ztable tr.past td { color: #a3aab2; font-weight: 400; }
.ztable tr.next th, .ztable tr.next td { color: var(--accent-ink); font-weight: 600; }

/* ---------- deal of the month ---------- */
.deal { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; border-left: 4px solid var(--accent); }
.kicker { margin: 0 0 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-ink); }
.deal h2 { font-size: 21px; line-height: 1.25; }
.deal-desc { margin: 4px 0 0; color: var(--muted); }
.deal-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 10px 0 0; }
.deal-prices:empty, .deal-prices b:empty, .deal-prices s:empty, .deal-off:empty, .deal-ends:empty { display: none; }
.deal-prices b { font-size: 22px; color: var(--ink); }
.deal-prices s { color: var(--muted); }
.deal-off { font-size: 13px; font-weight: 600; color: var(--red); }
.deal-ends { font-size: 12.5px; color: var(--muted); }
.deal-sample { margin-left: 8px; background: var(--ink); color: #fff; padding: 1px 7px; border-radius: 999px; font-size: 10px; }
.deal-actions { display: flex; flex-direction: column; gap: 8px; flex: none; }
.deal-more { font-size: 12px; color: var(--accent-ink); text-align: center; }
.deal-more:empty { display: none; }

/* ---------- ads: all at once ---------- */
.ads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.ads a { display: block; border-radius: 10px; overflow: hidden; border: 2px solid var(--accent-line, var(--line)); background: #fff; transition: transform .15s, box-shadow .15s; }
.ads a:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(16, 24, 40, .12); }
.ads img { width: 100%; height: auto; }
.advertise { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: linear-gradient(135deg, #eaf3e0, #f6f9f2); border: 1px solid #dfead3; }
.advertise b { color: var(--accent-ink); font-size: 13.5px; white-space: nowrap; }
.advertise span:not(.ad-phone) { display: none; }
.advertise .ad-phone { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ---------- tabs (government) ---------- */
.tabs { display: flex; flex-wrap: wrap; column-gap: 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tabs button { background: none; border: 0; padding: 6px 0 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs button:hover { color: var(--ink); }

/* ---------- footer (slim) ---------- */
.footer { background: #1b2229; color: #b7c0c9; font-size: 12px; }
.footer-in { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 24px; row-gap: 2px; padding-top: 9px; padding-bottom: 9px; }
.footer p { margin: 0; line-height: 1.5; }
.footer a { color: #dfe5ea; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .affiliate { color: #dfe5ea; }
.footer-fine { flex-basis: 100%; font-size: 11px; color: #8e99a4; }
/* inner-page footer markup */
.footer > nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; padding: 20px 16px 6px; font-size: 13px; }
.footer > p { text-align: center; padding: 2px 16px; }
.footer > p:last-child { padding-bottom: 20px; }

/* ---------- slide-out drawer ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(15, 20, 26, .38); opacity: 0; transition: opacity .25s; }
.drawer-scrim.show { opacity: 1; }
.drawer {
  position: fixed; z-index: 100; top: 0; right: 0; bottom: 0; width: min(480px, 100%);
  background: var(--panel); box-shadow: -18px 0 48px rgba(16, 24, 40, .18);
  transform: translateX(104%); transition: transform .3s cubic-bezier(.2, .7, .2, 1); display: flex; flex-direction: column; outline: none;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding: 0 12px 0 20px; }
.drawer-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.drawer-tabs::-webkit-scrollbar { display: none; }
.drawer-tabs button { background: none; border: 0; padding: 16px 8px 14px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; }
.drawer-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.drawer-close { flex: none; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 8px; }
.drawer-close:hover { background: var(--bg); color: var(--ink); }
.drawer-body { overflow-y: auto; padding: 24px 28px 40px; flex: 1; }
.dpanel { display: none; }
.dpanel.active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dpanel h2 { font-size: 22px; margin-bottom: 12px; }
.dpanel h3 { font-size: 15px; margin: 20px 0 6px; }
.dpanel p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.6; }
.dpanel .lead { font-size: 15.5px; color: var(--ink); }
.dpanel a { color: var(--accent-ink); font-weight: 500; }
.dpanel a:hover { text-decoration: underline; }
.note { background: var(--bg); border-radius: 10px; padding: 14px 16px; margin: 16px 0; }
.note > b { display: block; margin-bottom: 4px; }
.note p { margin: 0; font-size: 13.5px; }
.steps { margin: 6px 0 16px; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 9px 0 9px 34px; border-top: 1px solid var(--line); color: var(--ink-2); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 9px; width: 22px; font-weight: 700; color: var(--accent-ink); }
.steps img { margin-top: 10px; border-radius: 8px; border: 1px solid var(--line); }
.rules { margin: 0 0 16px; padding-left: 18px; }
.rules li { margin-bottom: 10px; color: var(--ink-2); line-height: 1.55; }
.place { padding: 14px 0; border-top: 1px solid var(--line); }
.place:first-of-type { border-top: 0; padding-top: 0; }
.place h3 { margin: 0 0 4px; }
.place p { margin: 0 0 4px; }
.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 13px 28px 13px 0; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-size: 20px; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 14px; }
.drawer-links { display: flex; gap: 18px; }
body.drawer-open { overflow: hidden; }

/* ---------- inner pages (about, contact, privacy, deal details) ---------- */
.topbar { background: var(--panel); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 14px 28px; }
.topbar .chips { display: flex; gap: 18px; margin-left: auto; }
.topbar .chips a { font-weight: 500; color: var(--ink-2); }
.topbar .chips a:hover { color: var(--accent-ink); }
.page { max-width: 860px; margin: 28px auto; padding: 0 20px; min-height: calc(100vh - 260px); }
.page .card { background: var(--panel); border-radius: var(--radius); padding: 28px 32px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.page h1 { font-size: 26px; margin-bottom: 10px; }
.page h3 { font-size: 16px; margin: 22px 0 6px; }
.page p, .page li { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.page a { color: var(--accent-ink); font-weight: 500; }
.page a:hover { text-decoration: underline; }
.page .btn-primary { color: #fff; }
.page .btn-primary:hover { text-decoration: none; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 28px; margin-top: 10px; }
.contact-grid .place:first-of-type { border-top: 1px solid var(--line); padding-top: 14px; }
.big { font-size: 20px; font-weight: 700; }

/* deal details page */
.deal-page { max-width: 1000px; }
.deal-page .back { display: inline-block; margin-bottom: 12px; font-weight: 500; }
.deal-hero h1 { font-size: 26px; margin: 2px 0; }
.deal-info { margin-top: 16px; background: var(--panel); border-radius: var(--radius); padding: 24px 28px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.deal-intro { font-size: 16px; line-height: 1.6; margin: 0 0 18px; color: var(--ink); }
.deal-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px 32px; }
.deal-info h3 { margin: 0 0 8px; font-size: 15px; }
.facts { width: 100%; border-collapse: collapse; }
.facts th { text-align: left; font-weight: 400; color: var(--muted); padding: 6px 0; }
.facts td { text-align: right; font-weight: 600; }
.facts tr + tr { border-top: 1px solid var(--line); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding: 5px 0 5px 22px; position: relative; border-top: 1px solid var(--line); }
.ticks li:first-child { border-top: 0; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 12px; width: 8px; height: 4px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.deal-know { margin-top: 20px; background: var(--bg); border-radius: 10px; padding: 14px 18px; }
.deal-know ul { margin: 0; padding-left: 18px; }

.load-error { background: #fdecea; color: var(--red); padding: 12px 20px; margin: 0; }

/* ---------- responsive ---------- */
/* ---------- TAG seal in the header ---------- */
.tag-seal { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--ink-2); }
.tag-seal img { width: 44px; height: auto; flex: none; }
.tag-seal span { font-size: 12.5px; line-height: 1.4; max-width: 560px; }
.tag-seal b { color: var(--ink); }
.tag-seal:hover span { color: var(--ink); }
.today { flex: none; }
.subnav .intro-places { flex: none; }

/* ---------- center directory (tabs) ---------- */
.dir-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dir-tabs button { border: 0; background: #f1f4ee; color: var(--ink-2); font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: background-color .15s, color .15s; }
.dir-tabs button:hover { background: #e4eddb; color: var(--accent-ink); }
.dir-tabs button[aria-selected="true"] { background: linear-gradient(180deg, #67a43a, #4f8a26); color: #fff; box-shadow: 0 2px 6px rgba(79, 138, 38, .25); }
.tiles { list-style: none; margin: 0 -8px; padding: 0; display: grid; gap: 2px 10px; }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles.cols-3 { column-gap: 10px; }
.tiles.cols-3 > li { border: 0; }
.tile { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 8px; min-width: 0; }
a.tile:hover, .tile:has(a:hover) { background: var(--accent-soft); }
a.tile:hover .tile-title { color: var(--accent-ink); }
.tile-title { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.tile-sub { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.tile .tel { font-size: 12px; margin-top: 1px; align-self: flex-start; }
.dir-pane > .fine { margin-top: 12px; }
.gov-cols { display: grid; grid-template-columns: 2fr 2fr 1fr 1fr; gap: 0 24px; }
.gov-cols > div:nth-child(-n+2) .gov-list { columns: 2; column-gap: 16px; }
.gov-list li { break-inside: avoid; }
.gov-cols h3 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 4px; }
.gov-list { list-style: none; margin: 0; padding: 0; }
.gov-list a { display: block; padding: 3px 0; font-size: 13px; color: var(--ink); }
.gov-list a:hover { color: var(--accent-ink); }

/* quick links: two columns */
.qlinks { margin: 0 -6px; }
.qitem > summary, .qitem > a { padding: 7px 8px; font-size: 13.5px; }
.qpop { right: auto; width: 240px; }

/* small zmanim box: two columns, label over time */
.zmini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0; }
.zmini div { display: flex; flex-direction: column; }
.zmini dt { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.zmini dd { margin: 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.zmini .past dd { color: #a3aab2; font-weight: 500; }
.zmini .next dt, .zmini .next dd { color: var(--accent-ink); }
.zmanim .next-zman { font-size: 12px; margin-bottom: 10px; }
.dpanel h2 small { font-size: 13px; font-weight: 400; color: var(--muted); }
.dpanel .ztable { font-size: 14px; }
.dpanel .ztable th, .dpanel .ztable td { padding: 6px 0; }

/* today's learning in the side column: two by two */
.learning .learning-strip { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.learning .learning-strip li { padding: 0; border: 0; }
.learning .learning-strip .row-title { font-size: 13px; }
.learning .learning-strip .row-sub { font-size: 11px; }
.learning .learning-strip .row-heb { font-size: 12px; }

/* slimmer deal and learning */
.deal { padding: 14px 20px; }
.deal h2 { font-size: 18px; }
.deal-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-body { min-width: 0; }
.deal-prices { margin-top: 4px; }
.deal-actions { flex-direction: row; align-items: center; }
.deal-actions .btn { padding: 8px 14px; font-size: 13px; }
.learning { padding: 12px 20px; }
.learning h2 { margin-bottom: 6px; font-size: 13px; }

/* ---------- soft shading: each panel has its own gentle tint ---------- */
body.home { background: linear-gradient(180deg, #eef2ea 0%, #f3f4f0 40%); }
.subnav { background: linear-gradient(90deg, #f2f7ec, #f7f9f4 60%, #f2f7ec); }
.ph { display: flex; align-items: center; gap: 8px; }
.ph-mark { width: 4px; height: 15px; border-radius: 2px; background: var(--mark, var(--accent)); flex: none; }
.panel.quick { --mark: #5b9d2a; background: linear-gradient(180deg, #f1f7eb, #fff 120px); }
.panel.sponsors { --mark: #c0904a; background: linear-gradient(180deg, #faf4ea, #fff 120px); }
.panel.zmanim { --mark: #4f7fa3; background: linear-gradient(160deg, #e9f1f8, #f8fafc 70%); }
.panel.learning { --mark: #8a6fae; background: linear-gradient(160deg, #f2edf8, #faf9fc 70%); }
.panel.directory { background: #fff; }
.zmanim .zmini .next { background: #dfeaf4; border-radius: 6px; margin: -3px -6px; padding: 3px 6px; }
.zmanim .zmini .next dt, .zmanim .zmini .next dd { color: #2e5c80; }
.zmanim .next-zman b { color: #2e5c80; }
.zmanim .more { color: #2e5c80; }
.learning .row-sub { color: #7a6a92; }
.deal { border-left: 0; background: linear-gradient(110deg, #e4f0d8 0%, #f3f8ee 45%, #fff 100%); }
.deal .kicker { color: var(--accent-ink); }
.shabbos { color: #e6edf4; background: linear-gradient(160deg, #22384f 0%, #2f4b69 100%); }
.shabbos h2 { color: #fff; }
.shabbos .shabbos-times dt, .shabbos .shabbos-times .sub { color: #a9bccf; }
.shabbos .shabbos-times dd:not(.sub) { color: #f1d692; }
.shabbos .week-line { color: #d3dee9; border-top-color: rgba(255, 255, 255, .14); }
.shabbos .week-line a { color: #b9e08f; }
.footer { background: linear-gradient(90deg, #1b2530, #22303c); }

/* ---------- one screen: no page scroll on computer screens ---------- */
@media (min-width: 1200px) and (min-height: 600px) {
  body.home { height: calc(100vh / var(--z, 1)); display: flex; flex-direction: column; overflow: hidden; }
  body.home .layout { flex: 1; min-height: 0; width: 100%; --gap: 14px; padding-top: 14px; padding-bottom: 14px; grid-template-rows: minmax(0, 1fr); grid-template-columns: 220px minmax(0, 1fr) 180px; }
  body.home .col { min-height: 0; }
  body.home .panel { padding: 14px 18px; }
  body.home .fill { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
  body.home .masthead-in { padding-top: 10px; padding-bottom: 10px; }
  body.home .subnav-links button { padding: 8px 10px; }
  /* ads: one stack, sized by script to fit the column */
  body.home .sponsors { display: flex; flex-direction: column; overflow: hidden; }
  body.home .ads { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
  body.home .ads a { width: var(--adw, 100%); flex: none; }
  /* quick-link lists open to the right, over the middle */
  body.home .qpop { right: auto; left: calc(100% + 12px); top: calc(-6px - var(--lift, 0px)); width: 270px; max-height: calc(100vh - 40px); }
  body.home .bottom-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--gap); }
  body.home .zmini { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1200px) and (min-height: 600px) and (max-height: 899px) {
  body.home .panel { padding: 12px 16px; }
  body.home .qitem > summary, body.home .qitem > a { padding: 6px 8px; }
  body.home .panel > h2 { margin-bottom: 8px; }
  body.home .tile { padding: 4px 8px; }
  body.home .dir-tabs { margin-bottom: 8px; padding-bottom: 8px; }
  body.home .dir-tabs button { padding: 6px 12px; }
  body.home .dir-pane > .fine { margin-top: 6px; }
  body.home .zmanim .next-zman { margin-bottom: 6px; }
  body.home .zmini { row-gap: 6px; }
  body.home .deal { padding-top: 10px; padding-bottom: 10px; }
  body.home .qitem > summary, body.home .qitem > a { padding: 4px 8px; }
  body.home .shabbos-times dd:not(.sub) { font-size: 19px; }
  body.home .week-line { margin-top: 8px; padding-top: 6px; }
}
@media (min-width: 1600px) and (min-height: 600px) {
  body.home .layout { grid-template-columns: 270px minmax(0, 1fr) 250px; }
}

@media (max-width: 1200px) {
  .layout { grid-template-columns: 250px minmax(0, 1fr); }
  .col-right { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .ads { display: grid; grid-template-columns: repeat(2, 1fr); }
  .subnav-week { display: none; }
}
@media (max-width: 1380px) {
  .tag-seal span { display: none; }
}
@media (max-width: 980px) {
  .gov-cols > div .gov-list { columns: 1; }
  .cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gov-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
  .subnav .intro-places { display: none; }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 > li:nth-child(3) { border-top: 1px solid var(--line); }
  .learning-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .learning-strip li:nth-child(3) { border-left: 0; padding-left: 0; }
  .intro-in { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 820px) {
  :root { --gap: 14px; }
  .masthead-in, .subnav-in, .intro-in, .layout, .footer-in { padding-left: 16px; padding-right: 16px; }
  .masthead-in { flex-wrap: wrap; gap: 10px 16px; }
  .today { order: 3; flex-basis: 100%; border-left: 0; padding-left: 0; }
  .masthead-right { margin-left: auto; gap: 14px; }
  .weather .wx-desc { display: none; }
  .layout { grid-template-columns: 1fr; }
  .col-left { order: 2; }
  .col-main { order: 1; }
  .col-right { order: 3; grid-template-columns: 1fr; }
  .deal { flex-direction: column; align-items: stretch; }
  .deal-actions { flex-direction: row; flex-wrap: wrap; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .cols-4, .tiles.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tag-seal { flex: none; }
  .cols-3 { grid-template-columns: 1fr; }
  .cols-3 > li:nth-child(2), .cols-3 > li:nth-child(3) { border-top: 1px solid var(--line); }
  .cols-2 { grid-template-columns: 1fr; }
  .cols-2 > li:nth-child(2) { border-top: 1px solid var(--line); }
  .ads { grid-template-columns: 1fr; }
  .clock { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
  .drawer-body { padding: 20px 18px 36px; }
}

/* ---------- center: groceries + gemachim lists, then a tabbed strip ---------- */
.pair { display: grid; grid-template-columns: 2fr 3fr; gap: var(--gap); }
.lp, .directory { --tone: #4f8a26; --tint: #eef5e7; padding: 0 !important; display: flex; flex-direction: column; overflow: hidden; }
.lp-gemachim { --tone: #3f6f96; --tint: #e9f0f7; }
.directory[data-tab="restaurants"] { --tone: #a4682c; --tint: #f8efe4; }
.directory[data-tab="groceries"]   { --tone: #4f8a26; --tint: #eef5e7; }
.directory[data-tab="torah"]       { --tone: #6e5596; --tint: #f0ebf7; }
.directory[data-tab="emergency"]   { --tone: #2f7f78; --tint: #e6f3f1; }
.directory[data-tab="government"]  { --tone: #44576b; --tint: #ecf0f3; }
.lp-head, .dir-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 18px; background: linear-gradient(115deg, var(--tint) 0%, #fbfcfa 80%);
  border-bottom: 1px solid var(--line); transition: background .3s;
}
.lp-head h2 { font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.lp-head h2::before { content: ''; width: 4px; height: 15px; border-radius: 2px; background: var(--tone); }
.lp-head .more { color: var(--tone); }
.lp .list { padding: 4px 18px 10px; }
.dir-head { padding: 8px 12px; }
.dir-tabs { margin: 0 !important; padding: 0 !important; border: 0 !important; gap: 4px; }
.dir-tabs button { background: rgba(255, 255, 255, .75); }
.dir-tabs button[aria-selected="true"] { background: var(--tone); box-shadow: 0 2px 8px rgba(30, 40, 50, .16); }
.dir-tabs button:hover:not([aria-selected="true"]) { background: #fff; color: var(--tone); }
.dir-pane { padding: 4px 18px 8px; }
.dir-pane:not([hidden]) { animation: fadeUp .25s ease; }
.subtabs { display: flex; gap: 14px; padding: 0 6px 0 0; }
.directory:not([data-tab="government"]) .subtabs { display: none; }
.subtabs button { background: none; border: 0; padding: 2px 0; font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.subtabs button[aria-selected="true"] { color: var(--tone); border-bottom-color: var(--tone); }

/* list rows: a soft dot, the name, a muted detail, phone at the end */
.list { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 28px; align-content: start; }
.list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.list.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.list.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 0; border-bottom: 1px solid #eef0eb; }
.item-main { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; min-width: 0; flex: 1; position: relative; padding-left: 13px; }
.item-main::before { content: ''; position: absolute; left: 0; top: .5em; width: 5px; height: 5px; border-radius: 50%; background: var(--tone, var(--accent)); opacity: .55; }
.item-name { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.item-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
a.item-main:hover .item-name { color: var(--tone, var(--accent-ink)); }
a.item-main:hover::before { opacity: 1; }
.item .tel { flex: none; font-size: 12.5px; color: var(--tone, var(--accent-ink)); }

@media (min-width: 1200px) and (min-height: 600px) {
  body.home .lp { min-height: 0; }
  body.home .lp .list { flex: none; }
}
@media (min-width: 1200px) and (min-height: 600px) and (max-height: 899px) {
  body.home .lp-head { padding: 8px 16px; }
  body.home .lp .list { padding: 0 16px 6px; }
  body.home .dir-head { padding: 6px 10px; }
  body.home .dir-pane { padding: 0 16px 4px; }
  body.home .item { padding: 5px 0; }
  body.home .deal-desc { display: none; }
  body.home .deal { padding-top: 8px; padding-bottom: 8px; }
  body.home .deal .kicker { margin-bottom: 0; }
  body.home .deal h2 { font-size: 16px; }
  body.home .deal-prices { margin-top: 0; }
  body.home .learning .row-heb { display: none; }
  body.home .learning-strip { row-gap: 6px; }
  body.home .zmini { row-gap: 4px; }
  body.home .zmanim .next-zman { display: none; }
  body.home #gemachim { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; }
  body.home #gemachim .item { flex-direction: column; align-items: flex-start; gap: 0; padding: 3px 0; }
  body.home #gemachim .item-name { font-size: 12.5px; line-height: 1.25; }
  body.home #gemachim .tel { padding-left: 13px; font-size: 12px; }
}
@media (max-width: 820px) {
  .pair { grid-template-columns: 1fr; }
}

/* ---------- ads: no panel behind them, just the ads ---------- */
.panel.sponsors { background: none !important; box-shadow: none; padding: 0 !important; }
.sponsors > h2 { padding: 2px 2px 0; }
.ads a { border-radius: 10px; box-shadow: 0 2px 10px rgba(16, 24, 40, .08); }
@media (min-width: 1200px) and (min-height: 600px) {
  body.home .sponsors .ads { gap: 10px; }
}
.sponsors .advertise { flex-direction: column; gap: 0; text-align: center; padding: 8px 10px; }
.sponsors .advertise b { font-size: 13px; }

/* gemachim: compact box, tight rows; the tab strip above takes any spare height */
.lp-gemachim .list { padding-top: 2px; padding-bottom: 6px; }
.lp-gemachim .item { padding: 4px 0; }
.lp-gemachim .lp-head { padding-top: 8px; padding-bottom: 8px; }
.item-hint { display: none; flex-basis: 100%; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
@media (min-width: 1200px) and (min-height: 600px) {
  body.home .directory .dir-pane:not([hidden]) { flex: 1; min-height: 0; display: flex; flex-direction: column; }
}
@media (min-width: 1200px) and (min-height: 1000px) {
  body.home .directory .item-hint { display: block; }
  body.home .directory .item-sub { display: none; }
  body.home .directory .item { padding: 8px 0; }
}
@media (min-width: 1200px) and (min-height: 600px) and (max-height: 899px) {
  body.home .lp-gemachim .lp-head { padding-top: 6px; padding-bottom: 6px; }
  body.home #gemachim .item { padding: 2px 0; }
}

/* left column: quick links stretch so the Shabbos card sits flush with the bottom */
@media (min-width: 1200px) and (min-height: 600px) {
  body.home .panel.quick { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  body.home .panel.quick .qlinks { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
  body.home .col-main .bottom-row { margin-top: auto; }
}


/* ---------- colour band between the lists: short message + desk illustration ---------- */
.band {
  position: relative; overflow: hidden; border-radius: var(--radius); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 28px;
  background:
    radial-gradient(circle at 88% 120%, rgba(143, 209, 106, .35) 0, transparent 45%),
    radial-gradient(circle at 8% -30%, rgba(255, 255, 255, .14) 0, transparent 40%),
    linear-gradient(120deg, #2c5a2b 0%, #3d7a36 48%, #2b6a66 100%);
  box-shadow: 0 6px 20px rgba(44, 90, 43, .18);
}
.band::after { content: ''; position: absolute; right: 22%; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.band-text { position: relative; z-index: 1; min-width: 0; }
.band-kicker { margin: 0 0 2px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #cfeab9; }
.band-title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.band-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.band-chips button { border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1); color: #fff; font-size: 12.5px; font-weight: 500; padding: 6px 13px; border-radius: 999px; cursor: pointer; transition: background-color .15s; }
.band-chips button:hover { background: rgba(255, 255, 255, .22); }
.band-art { position: relative; z-index: 1; height: 150px; width: auto; flex: none; }

@media (min-width: 1200px) and (min-height: 600px) {
  body.home .band { flex: 1 1 0; min-height: 64px; container-type: size; padding-top: 10px; padding-bottom: 10px; }
  body.home .band-art { height: 100%; max-height: 170px; }
}
@container (max-height: 120px) { .band-chips { display: none; } }
@container (max-height: 70px) { .band-kicker { display: none; } .band-title { font-size: 16px; } }

@media (max-width: 820px) { .band-art { display: none; } }

/* =====================================================================
   December redesign: bold banner, Shabbos essentials, richer quick links
   ===================================================================== */
:root { --deep: #10263a; --emerald: #2f7d4f; --teal: #1f6f6b; --gold: #c08a35; --gold-ink: #8a5f1c; --gold-soft: #fbf3e2; }

/* soft colour splashes behind everything */
body.home {
  background:
    radial-gradient(900px 520px at -6% -12%, rgba(91, 157, 42, .17), transparent 62%),
    radial-gradient(820px 520px at 106% 112%, rgba(31, 111, 107, .17), transparent 62%),
    radial-gradient(700px 420px at 58% 118%, rgba(192, 138, 53, .12), transparent 62%),
    #f1f4ee;
}
.masthead { border-top: 3px solid transparent; border-image: linear-gradient(90deg, #5b9d2a, #1f6f6b 55%, #c08a35) 1; }

/* ---------- banner ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 14px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 26px 18px 30px;
  background:
    radial-gradient(circle at 78% 35%, rgba(127, 211, 106, .26), transparent 42%),
    radial-gradient(circle at 6% 125%, rgba(63, 181, 166, .38), transparent 48%),
    linear-gradient(125deg, #0f2436 0%, #15384d 48%, #1b5a4d 100%);
  box-shadow: 0 12px 30px rgba(16, 38, 58, .22);
}
.hero::before { /* faint dot grid */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.2px); background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 75%); mask-image: linear-gradient(90deg, transparent 30%, #000 75%);
}
.hero-text { position: relative; z-index: 1; min-width: 0; }
.hero-kicker { margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #9be07a; }
.hero-title { margin: 0; font-size: 23px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-chips button {
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff;
  font-size: 12.5px; font-weight: 500; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  backdrop-filter: blur(4px); transition: background-color .15s, border-color .15s;
}
.hero-chips button:hover { background: rgba(155, 224, 122, .2); border-color: rgba(155, 224, 122, .5); }
.hero-art { position: relative; z-index: 1; height: 170px; width: auto; flex: none; }

/* ---------- Shabbos essentials ---------- */
.essentials { background: linear-gradient(160deg, var(--gold-soft) 0%, #fffdf9 55%, #fff 100%); }
.ess-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ess-head h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.ess-head h2::before { content: ''; width: 4px; height: 15px; border-radius: 2px; background: linear-gradient(180deg, #d9a650, var(--gold-ink)); }
.ess-note { font-size: 11.5px; color: #9a8259; }
.ess-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ess-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  background: #fff; border: 1px solid #efe2c8; border-radius: 12px; padding: 12px 14px 10px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ess-card:hover { transform: translateY(-2px); border-color: #e2c993; box-shadow: 0 10px 22px rgba(138, 95, 28, .12); }
.ess-main { display: flex; align-items: flex-start; gap: 12px; color: inherit; }
.ess-icon { width: 40px; height: 40px; flex: none; padding: 6px; border-radius: 10px; background: var(--gold-soft); fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ess-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ess-name { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.ess-short { font-size: 12px; color: var(--muted); line-height: 1.4; }
.ess-main:hover .ess-name { color: var(--gold-ink); }
.ess-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px dashed #efe2c8; font-size: 12px; }
.ess-more { font-weight: 600; color: var(--gold-ink); }
.ess-shop { color: var(--muted); }
.ess-more:hover, .ess-shop:hover { text-decoration: underline; color: var(--gold-ink); }

/* ---------- quick links: sections and richer lists ---------- */
.qsection { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: #8c96a0; padding: 8px 8px 2px; }
.qsection:first-child { padding-top: 0; }
.qitem + .qsection { margin-top: 4px; }
.qpop.wide { width: 330px !important; }
.qpop a, .qpop .qtext { display: block; padding: 6px 10px; border-radius: 6px; font-size: 13px; color: var(--ink); }
.qpop .qname { display: block; font-weight: 500; line-height: 1.3; }
.qpop .qsub { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.qpop .qrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-right: 10px; border-radius: 6px; }
.qpop .qrow:hover { background: var(--accent-soft); }
.qpop .qrow > a, .qpop .qrow > .qtext { flex: 1; min-width: 0; }
.qpop .qrow > a:hover { background: none; }
.qpop .qrow .tel { flex: none; font-size: 12.5px; }

/* ---------- Shabbos card: a warm glow ---------- */
.shabbos { position: relative; overflow: hidden; }
.shabbos::after { content: ''; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(241, 214, 146, .22), transparent 70%); pointer-events: none; }

/* ---------- one-screen sizing for the new centre ---------- */
@media (min-width: 1200px) and (min-height: 600px) {
  body.home .hero { flex: 1 1 0; min-height: 120px; container-type: size; }
  body.home .hero-art { height: min(100%, 190px); }
  body.home .essentials { flex: none; }
}
@container (max-height: 150px) { .hero-chips { margin-top: 8px; } .hero-title br { display: none; } }
@container (max-height: 128px) { .hero-chips { display: none; } }
@media (max-width: 980px) { .ess-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .hero-art { display: none; } }

/* ---------- product details page ---------- */
.ep-body { background: radial-gradient(900px 500px at 100% -10%, rgba(192, 138, 53, .14), transparent 60%), #f3f4f0; }
.ep-page { max-width: 980px; }
.ep-page .back { display: inline-block; margin-bottom: 12px; font-weight: 500; }
.ep-hero {
  display: flex; align-items: center; gap: 20px; padding: 24px 28px; border-radius: 14px; color: #fff;
  background: radial-gradient(circle at 90% 20%, rgba(241, 214, 146, .25), transparent 45%), linear-gradient(125deg, #0f2436, #15384d 55%, #1b5a4d);
  box-shadow: 0 12px 30px rgba(16, 38, 58, .2);
}
.ep-icon .ess-icon { width: 64px; height: 64px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .1); stroke: #f1d692; }
.ep-head { flex: 1; min-width: 0; }
.ep-kicker { margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #f1d692; }
.ep-page .ep-hero h1 { margin: 0; color: #fff; font-size: 26px; }
.ep-sub { margin: 4px 0 0 !important; color: #c9d6e0 !important; font-size: 14px !important; }
.ep-page .ep-buy { background: linear-gradient(180deg, #e0b15f, #c08a35); color: #1d1405; box-shadow: 0 4px 14px rgba(192, 138, 53, .35); }
.ep-page .ep-buy:hover { text-decoration: none; filter: brightness(1.05); }
.ep-body-card { margin-top: 16px; background: var(--panel); border-radius: var(--radius); padding: 24px 28px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.ep-intro { font-size: 16px !important; line-height: 1.65; color: var(--ink) !important; margin: 0 0 18px; }
.ep-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 36px; }
.ep-body-card h3 { margin: 0 0 8px; font-size: 15px; }
.ep-facts-h { margin-top: 18px !important; }
.ep-note { margin: 20px 0 0; background: var(--gold-soft); border: 1px solid #efe2c8; border-radius: 10px; padding: 12px 16px; font-size: 13.5px !important; }
.ep-more-h { margin: 26px 0 10px !important; }
.ep-others { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.ep-page .ep-other { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #efe2c8; border-radius: 12px; padding: 12px 14px; color: var(--ink); font-weight: 400; transition: box-shadow .15s, transform .15s; }
.ep-page .ep-other:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(138, 95, 28, .12); }
.ep-other b { display: block; font-size: 14px; }
.ep-other small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
@media (max-width: 640px) { .ep-hero { flex-wrap: wrap; } }

/* essentials cards: illustration on top that grows with the space, text and links below */
.ess-card { padding: 0; overflow: hidden; gap: 0; }
.ess-visual {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 64px;
  background: radial-gradient(circle at 50% 60%, #fff 0%, #fbf1dc 55%, #f5e3bd 100%);
  border-bottom: 1px solid #efe2c8;
}
.ess-visual .ess-icon { width: auto; height: 52px; padding: 0; background: none; stroke-width: 1.7; stroke: #b07c2c; filter: drop-shadow(0 3px 6px rgba(138, 95, 28, .18)); transition: transform .2s; }
.ess-card:hover .ess-visual .ess-icon { transform: scale(1.06); }
.ess-body { padding: 10px 14px 6px; display: flex; flex-direction: column; gap: 2px; }
.ess-name { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.ess-name:hover { color: var(--gold-ink); }
.ess-short { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.ess-actions { margin: 0 14px; padding: 8px 0 10px; }
@media (min-width: 1200px) and (min-height: 600px) {
  body.home .hero { flex: 0 1 230px; min-height: 120px; }
  body.home .essentials { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  body.home .ess-grid { flex: 1; min-height: 0; }
  body.home .ess-card { min-height: 0; }
  body.home .ess-visual { flex: 1; min-height: 56px; }
  body.home .ess-visual .ess-icon { height: min(62%, 120px); min-height: 40px; }
}

/* bottom row: zmanim, learning, Shabbos side by side */
@media (min-width: 1200px) and (min-height: 600px) {
  body.home .bottom-row { grid-template-columns: 1.15fr 1fr 0.95fr; }
  body.home .bottom-row .shabbos .shabbos-times dd:not(.sub) { font-size: 20px; }
  body.home .bottom-row .shabbos h2 { margin-bottom: 8px; }
  body.home .bottom-row .shabbos .week-line { margin-top: 8px; padding-top: 6px; font-size: 12px; }
}

/* balance: essentials stay snug, the banner takes the spare height */
@media (min-width: 1200px) and (min-height: 600px) {
  body.home .hero { flex: 1 1 200px; min-height: 120px; }
  body.home .essentials { flex: 0 1 auto; }
  body.home .ess-visual { flex: 0 1 130px; max-height: 130px; }
  body.home .ess-visual .ess-icon { height: min(70%, 84px); }
  body.home .hero-art { height: min(100%, 250px); }
}
@container (min-height: 260px) { .hero-title { font-size: 30px; } .hero-kicker { font-size: 12px; } .hero-chips button { font-size: 13px; padding: 7px 16px; } }
.ep-page .ep-kicker { color: #f1d692 !important; }

/* =========== layout v3: quick links | Shabbos column | banner + times | ads =========== */
.layout { grid-template-columns: 240px 270px minmax(0, 1fr) 200px; }
.col-ess { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }

/* Shabbos essentials stacked: compact rows, icon on the left */
.col-ess .ess-head { margin-bottom: 8px; }
.col-ess .ess-note { display: none; }
.col-ess .ess-grid { grid-template-columns: 1fr; gap: 8px; }
.col-ess .ess-card { display: grid; grid-template-columns: 50px minmax(0, 1fr); grid-template-rows: auto auto; border-radius: 11px; }
.col-ess .ess-visual { grid-row: 1 / span 2; min-height: 0; max-height: none; border-bottom: 0; border-right: 1px solid #efe2c8; }
.col-ess .ess-visual .ess-icon { height: 30px; min-height: 0; }
.col-ess .ess-body { padding: 8px 12px 2px; }
.col-ess .ess-name { font-size: 13px; }
.col-ess .ess-short { font-size: 11.5px; line-height: 1.35; }
.col-ess .ess-actions { margin: 0 12px; padding: 5px 0 7px; font-size: 11.5px; }

/* Shabbos card: candles fill any spare height */
.col-ess .shabbos { display: flex; flex-direction: column; }
.shabbos-art { display: none; }

/* banner with a slanted, mountain-style bottom edge; design in the open corner */
.hero-wrap { position: relative; display: flex; flex-direction: column; min-height: 0; }
.hero-wrap .hero { flex: 1; clip-path: polygon(0 0, 100% 0, 100% 74%, 0 100%); border-radius: 14px; padding-bottom: 34px; align-items: flex-start; padding-top: 22px; }
.hero-wrap .hero-text { align-self: center; padding-bottom: 6%; }
.hero-wrap .hero-art { align-self: flex-start; }
.hero-deco { position: absolute; right: 0; bottom: 0; width: 100%; height: 26%; pointer-events: none; }

@media (min-width: 1200px) and (min-height: 600px) {
  body.home .layout { grid-template-columns: 200px 300px minmax(0, 1fr) 170px; }
  body.home .col-ess { min-height: 0; }
  body.home .col-ess .essentials { flex: none; display: block; }
  body.home .col-ess .ess-visual { flex: none; max-height: none; }
  body.home .col-ess .ess-visual .ess-icon { height: 30px; min-height: 0; }
  body.home .col-ess .shabbos { flex: 1 1 auto; min-height: 0; position: relative; }
  body.home .shabbos-art { display: block; position: absolute; right: 10px; bottom: 6px; height: min(42%, 150px); width: auto; opacity: .85; pointer-events: none; }
  body.home .hero-wrap { flex: 1 1 auto; }
  body.home .hero-wrap .hero { flex: 1; min-height: 150px; }
  body.home .hero-art { height: min(78%, 240px); }
  body.home .bottom-row { grid-template-columns: 1.15fr 1fr; }
  body.home .col-ess .shabbos .shabbos-times dd:not(.sub) { font-size: 20px; }
}
@media (min-width: 1600px) and (min-height: 600px) {
  body.home .layout { grid-template-columns: 240px 340px minmax(0, 1fr) 220px; }
}
@media (max-width: 1199px) {
  .layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .col-main { grid-column: 1 / -1; order: -1; }
  .col-right { grid-column: 1 / -1; }
  .hero-deco { display: none; }
  .hero-wrap .hero { clip-path: none; }
}
@media (max-width: 820px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 1200px) and (min-height: 600px) {
  body.home .col-ess .shabbos { container-type: size; }
}
@container (max-height: 330px) { .shabbos-art { display: none !important; } }
.hero-deco { height: 26%; }

/* banner: text gets a fair share, picture scales */
.hero-wrap .hero-text { flex: 1 1 340px; max-width: 460px; }
.hero-title { max-width: 15em; }
.hero-wrap .hero-art { flex: 0 1 auto; max-width: 56%; }
@media (min-width: 1200px) and (min-height: 600px) {
  body.home .hero-art { height: min(72%, 330px); }
}

/* =========== banner as a free-form splash that runs under the nearby boxes =========== */
.hero-wrap .hero { background: none; box-shadow: none; clip-path: none; border-radius: 0; overflow: visible; }
.hero-wrap .hero::before { display: none; }
.splash {
  position: absolute; z-index: 0; pointer-events: none;
  left: -150px; right: -70px; top: -12px; bottom: -90px; width: calc(100% + 220px); height: calc(100% + 102px);
  filter: drop-shadow(0 10px 22px rgba(14, 34, 53, .18));
}
/* the boxes around it sit on top, so the splash runs underneath them */
.col-ess, .col-left, .col-right, .bottom-row { position: relative; z-index: 3; }
.hero-wrap .hero { padding-left: 34px; }
@media (max-width: 1199px) {
  .splash { left: 0; right: 0; top: 0; bottom: 0; width: 100%; height: 100%; }
}

/* keep text and picture inside the panel above the slanted edge */
.hero-wrap .hero { padding-bottom: 14%; padding-right: 26px; }

/* =========== banner, final: polished rounded panel, flowing lines, soft glow behind neighbours =========== */
.hero-wrap { position: relative; }
.hero-wrap::before { /* soft colour that spreads out behind the nearby boxes */
  content: ''; position: absolute; z-index: 0; inset: -50px -70px -60px -90px; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 62% 48%, rgba(31, 111, 107, .30), transparent 70%),
    radial-gradient(ellipse 40% 45% at 18% 80%, rgba(91, 157, 42, .22), transparent 70%);
  filter: blur(26px);
}
.hero-wrap .hero {
  position: relative; z-index: 1; overflow: hidden; border-radius: 20px; clip-path: none;
  background: linear-gradient(135deg, #0c2033 0%, #12364c 52%, #165a4c 100%);
  box-shadow: 0 18px 40px -12px rgba(12, 32, 51, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
  padding: 26px 34px; align-items: center;
}
.hero-wrap .hero::before { display: none; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-wrap .hero > .hero-text, .hero-wrap .hero > .hero-art { position: relative; z-index: 1; }
.hero-wrap .hero-text { align-self: center; padding-bottom: 0; }
.hero-wrap .hero-art { align-self: center; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .25)); }
.hero-sub { margin: 10px 0 0; max-width: 30em; font-size: 14px; line-height: 1.5; color: #b9cad6; }
.hero-chips { margin-top: 18px; }
.hero-chips button:first-child { background: #5b9d2a; border-color: #5b9d2a; }
.hero-chips button:first-child:hover { background: #6aad37; }
@container (max-height: 200px) { .hero-sub { display: none; } }
@media (min-width: 1200px) and (min-height: 600px) {
  body.home .hero-wrap .hero { padding-bottom: 26px; }
  body.home .hero-art { height: min(80%, 300px); }
}

.hero-wrap .hero > .hero-bg { position: absolute; inset: 0; z-index: 0; }

/* banner: squarer corners */
.hero-wrap .hero { border-radius: 6px; }


/* squarer corners everywhere (buttons keep their pill shape) */
:root { --radius: 6px; }
.panel, .ess-card, .col-ess .ess-card, .ads a, .ads img, .advertise, .qpop, .ep-hero, .ep-body-card, .ep-page .ep-other,
.ep-note, .note, .deal-know, .page .card, .drawer-body .steps img, .zmanim .zmini .next, .ep-icon .ess-icon { border-radius: 6px; }
.ess-icon { border-radius: 5px; }

/* ads: the column hugs the ads, which sit close together right beside the banner */
@media (min-width: 1200px) and (min-height: 600px) {
  body.home .layout { grid-template-columns: 200px 300px minmax(0, 1fr) auto; }
  body.home .sponsors { width: calc(var(--adw-col, 160px)); }
  body.home .sponsors .ads { justify-content: flex-start; align-items: flex-start; gap: 8px; }
  body.home .sponsors > h2 { margin-bottom: 6px; }
  body.home .sponsors .advertise { margin-top: 8px; }
}
@media (min-width: 1600px) and (min-height: 600px) {
  body.home .layout { grid-template-columns: 240px 340px minmax(0, 1fr) auto; }
}

/* =========== middle grid: essentials | banner on top, Shabbos | zmanim + learning below =========== */
.layout > .col-mid {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
  gap: var(--gap); z-index: auto; position: static; min-height: 0;
}
.col-mid > .essentials, .col-mid > .shabbos, .col-mid > .bottom-row { position: relative; z-index: 2; min-height: 0; }
.col-mid > .hero-wrap { position: relative; z-index: 1; min-height: 0; }
.col-mid > .essentials { display: flex; flex-direction: column; }
.col-mid .ess-grid { flex: 1; align-content: space-evenly; }
.col-mid > .shabbos { display: flex; flex-direction: column; justify-content: flex-start; }
.col-mid .shabbos-art { display: none !important; }
.col-mid .shabbos h2 { margin-bottom: 8px; }
.col-mid .shabbos .week-line { margin-top: 8px; padding-top: 6px; font-size: 12px; }
.col-mid .shabbos .week-line + .week-line { margin-top: 2px; padding-top: 0; }
@media (min-width: 1200px) and (min-height: 600px) {
  body.home .layout { grid-template-columns: 200px minmax(0, 1fr) auto; }
  body.home .col-mid .shabbos .shabbos-times dd:not(.sub) { font-size: 19px; }
  body.home .col-mid > .essentials { flex: none; }
}
@media (min-width: 1600px) and (min-height: 600px) {
  body.home .layout { grid-template-columns: 240px minmax(0, 1fr) auto; }
  .layout > .col-mid { grid-template-columns: 340px minmax(0, 1fr); }
}
@media (max-width: 1199px) {
  .layout > .col-mid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-column: 1 / -1; }
  .col-mid > .hero-wrap { order: -1; }
}

/* =========== lighter banner =========== */
.hero-wrap .hero { background: linear-gradient(135deg, #1b4560 0%, #1f5f62 50%, #2f8257 100%); }

/* =========== Shabbos essentials in soft green to match the site =========== */
.essentials { background: linear-gradient(160deg, #eaf4e1 0%, #f7fbf3 55%, #ffffff 100%); }
.ess-head h2::before { background: linear-gradient(180deg, #7cc04a, #3f7419); }
.ess-note { color: #6f8f5a; }
.ess-card { border-color: #dbe9cf; }
.ess-card:hover { border-color: #b9d9a0; box-shadow: 0 10px 22px rgba(63, 116, 25, .12); }
.ess-visual { background: radial-gradient(circle at 50% 60%, #ffffff 0%, #eef6e6 55%, #dcebd0 100%); border-color: #dbe9cf !important; }
.ess-visual .ess-icon, .ess-icon { stroke: #4f8a26; background: #eef6e6; }
.ess-visual .ess-icon { background: none; filter: drop-shadow(0 3px 6px rgba(63, 116, 25, .16)); }
.ess-name:hover, .ess-more, .ess-more:hover, .ess-shop:hover { color: var(--accent-ink); }
.ess-actions { border-top-color: #dbe9cf; }
/* details page to match */
.ep-body { background: radial-gradient(900px 500px at 100% -10%, rgba(91, 157, 42, .14), transparent 60%), #f3f4f0; }
.ep-hero { background: radial-gradient(circle at 90% 20%, rgba(155, 224, 122, .22), transparent 45%), linear-gradient(135deg, #1b4560, #1f5f62 55%, #2f8257); }
.ep-icon .ess-icon { stroke: #b9e08f; background: rgba(255, 255, 255, .1); }
.ep-page .ep-kicker { color: #b9e08f !important; }
.ep-page .ep-buy { background: linear-gradient(180deg, #6aad37, #4f8a26); color: #fff; box-shadow: 0 4px 14px rgba(79, 138, 38, .35); }
.ep-note { background: #eef6e6; border-color: #dbe9cf; }
.ep-page .ep-other { border-color: #dbe9cf; }
.ep-page .ep-other:hover { box-shadow: 0 8px 18px rgba(63, 116, 25, .12); }

/* Shabbos card sizes to its content so its row matches zmanim */
body.home .col-mid > .shabbos { container-type: normal; flex: none; }

/* essentials spread down to the bottom of the banner */
body.home .col-mid > .essentials { display: flex; flex-direction: column; }
body.home .col-mid .ess-grid { flex: 1; min-height: 0; align-content: space-evenly; }

/* essentials: the three cards share the full height evenly */
body.home .col-mid .ess-grid { grid-auto-rows: minmax(0, 1fr); align-content: stretch; }
body.home .col-mid .ess-card { grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: 1fr auto; }
body.home .col-mid .ess-visual .ess-icon { height: min(46%, 44px); min-height: 28px; }
body.home .col-mid .ess-body { align-self: center; padding: 8px 14px 4px; }
body.home .col-mid .ess-name { font-size: 14px; }
body.home .col-mid .ess-short { font-size: 12px; }
body.home .col-mid .ess-actions { align-self: end; }

/* =========== slimmer bottom row: zmanim, learning, Shabbos =========== */
@media (min-width: 1200px) and (min-height: 600px) {
  body.home .col-mid > .shabbos, body.home .bottom-row > .panel { padding: 10px 16px; }
  body.home .bottom-row .panel-head, body.home .bottom-row .panel > h2 { margin-bottom: 4px; }
  body.home .bottom-row h2, body.home .col-mid > .shabbos h2 { font-size: 13.5px; }
  body.home .zmanim .next-zman { display: none; }
  body.home .zmini { row-gap: 2px; }
  body.home .zmini dt { font-size: 10.5px; }
  body.home .zmini dd { font-size: 13px; }
  body.home .learning .learning-strip { row-gap: 4px; }
  body.home .learning .row-sub { font-size: 10.5px; }
  body.home .learning .row-title { font-size: 12.5px; }
  body.home .learning .row-heb { display: none; }
  body.home .col-mid > .shabbos h2 { margin-bottom: 4px; }
  body.home .col-mid .shabbos .shabbos-times { gap: 8px; }
  body.home .col-mid .shabbos .shabbos-times dt, body.home .col-mid .shabbos .shabbos-times .sub { font-size: 11px; }
  body.home .col-mid .shabbos .shabbos-times dd:not(.sub) { font-size: 17px; }
  body.home .col-mid .shabbos .week-line { margin-top: 5px; padding-top: 4px; font-size: 11.5px; line-height: 1.35; }
}

/* =========== ads touching each other =========== */
@media (min-width: 1200px) and (min-height: 600px) {
  body.home .sponsors .ads { gap: 0; }
  body.home .sponsors .ads a { border-radius: 0; box-shadow: none; }
  body.home .sponsors .ads a:first-child { border-radius: 6px 6px 0 0; }
  body.home .sponsors .ads a:last-child { border-radius: 0 0 6px 6px; }
  body.home .sponsors .ads a + a { margin-top: -2px; }
  body.home .sponsors .ads a:hover { transform: none; position: relative; z-index: 1; box-shadow: 0 6px 16px rgba(16, 24, 40, .14); }
}

/* =========== ads: one tidy card, small even gaps, thin frames =========== */
@media (min-width: 1200px) and (min-height: 600px) {
  body.home .panel.sponsors {
    background: #fff !important; padding: 10px !important; border-radius: 6px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 18px -8px rgba(16, 24, 40, .12);
    width: calc(var(--adw-col, 160px) + 20px);
  }
  body.home .sponsors > h2 { padding: 0 2px; margin-bottom: 8px; }
  body.home .sponsors .ads { gap: 6px; justify-content: flex-start; align-items: center; }
  body.home .sponsors .ads a, body.home .sponsors .ads a:first-child, body.home .sponsors .ads a:last-child {
    border-radius: 4px; border-width: 1.5px; margin-top: 0; box-shadow: none;
  }
  body.home .sponsors .ads a:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(16, 24, 40, .14); }
  body.home .sponsors .advertise { margin-top: 8px; border-radius: 4px; }
}

/* =========== colour for zmanim and learning =========== */
.bottom-row .zmanim {
  background: linear-gradient(140deg, #d9e9f6 0%, #eef5fb 55%, #f8fbfe 100%) !important;
  border-top: 3px solid #4f7fa3;
}
.bottom-row .learning {
  background: linear-gradient(140deg, #e7ddf4 0%, #f3eef9 55%, #fbf9fd 100%) !important;
  border-top: 3px solid #8a6fae;
}
.zmanim h2, .zmanim .zmini dd { color: #1f4766; }
.zmanim .zmini dt { color: #5f7f99; }
.zmanim .zmini .past dd { color: #9fb2c2; }
.zmanim .zmini .next { background: #c7dcee; }
.learning h2 { color: #3f2c5c; }
.learning .row-sub { color: #7b62a0 !important; }
.learning .row-title { color: #2f2245; }
.learning a:hover .row-title { color: #6e4fa0; }

/* =========== bottom row, compact =========== */
@media (min-width: 1200px) and (min-height: 600px) {
  body.home .col-mid > .shabbos, body.home .bottom-row > .panel { padding: 7px 14px 8px; }
  body.home .bottom-row .zmanim, body.home .bottom-row .learning { border-top-width: 2px; }
  body.home .bottom-row .panel-head, body.home .bottom-row .panel > h2, body.home .col-mid > .shabbos h2 { margin-bottom: 3px; }
  body.home .bottom-row h2, body.home .col-mid > .shabbos h2 { font-size: 12.5px; }
  body.home .bottom-row .more { font-size: 11px; }
  body.home .zmini { row-gap: 1px; column-gap: 8px; }
  body.home .zmini dt { font-size: 10px; line-height: 1.2; }
  body.home .zmini dd { font-size: 12.5px; line-height: 1.25; }
  body.home .zmanim .zmini .next { margin: -1px -4px; padding: 1px 4px; }
  body.home .learning .learning-strip { row-gap: 1px; column-gap: 8px; }
  body.home .learning .row-sub { font-size: 10px; line-height: 1.2; }
  body.home .learning .row-title { font-size: 12px; line-height: 1.25; }
  body.home .col-mid .shabbos .shabbos-times { gap: 6px; }
  body.home .col-mid .shabbos .shabbos-times dt { font-size: 10px; line-height: 1.2; }
  body.home .col-mid .shabbos .shabbos-times dd:not(.sub) { font-size: 15px; line-height: 1.2; }
  body.home .col-mid .shabbos .shabbos-times .sub { font-size: 10px; line-height: 1.2; }
  body.home .col-mid .shabbos #sh-candles-day { display: none; }
  body.home .col-mid .shabbos .week-line { margin-top: 4px; padding-top: 3px; font-size: 11px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.home .col-mid .shabbos .week-line + .week-line { margin-top: 1px; }
}

/* =========== zmanim and learning in soft greens to match the site =========== */
.bottom-row .zmanim {
  background: linear-gradient(140deg, #dcebd2 0%, #eef6e8 55%, #f8fbf5 100%) !important;
  border-top: 2px solid #5b9d2a;
}
.bottom-row .learning {
  background: linear-gradient(140deg, #d6ece6 0%, #ebf6f2 55%, #f7fbf9 100%) !important;
  border-top: 2px solid #2f8a7a;
}
.zmanim h2, .zmanim .zmini dd { color: #24461a; }
.zmanim .zmini dt { color: #5f7f52; }
.zmanim .zmini .past dd { color: #9fb594; }
.zmanim .zmini .next { background: #cfe5bf; }
.zmanim .zmini .next dt, .zmanim .zmini .next dd, .zmanim .more { color: #3f7419; }
.zmanim .ph-mark { background: #5b9d2a; }
.learning h2 { color: #1d4a42; }
.learning .ph-mark { background: #2f8a7a; }
.learning .row-sub { color: #4f8a7d !important; }
.learning .row-title { color: #1f3a35; }
.learning a:hover .row-title { color: #2f8a7a; }

/* =========== Amazon Associates disclosure: clear and prominent =========== */
.footer .affiliate { color: #ffffff !important; font-weight: 600; font-size: 12.5px; }
.footer > p.affiliate { font-size: 13.5px; }
.ess-disclosure { margin: 8px 0 0; font-size: 11.5px; font-weight: 500; color: #3f5a33; text-align: center; }
.ep-disclosure { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-2); text-align: right; }

/* disclosure at the bottom of the product info box */
.ep-body-card .ep-disclosure { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* big screens: allow a little more width once scaled */
@media (min-width: 1200px) and (min-height: 600px) {
  body.home .masthead-in, body.home .subnav-in, body.home .layout, body.home .footer-in { max-width: 1800px; }
}

/* =========== banner: fuller layout with the two locations built in =========== */
.hero-places { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
.hp-card {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 11px 14px; border-radius: 8px; text-align: left;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font: inherit;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .15s, border-color .15s;
}
.hp-card:hover { background: rgba(255, 255, 255, .13); border-color: rgba(155, 224, 122, .45); }
.hp-pin { width: 30px; height: 30px; flex: none; padding: 6px; border-radius: 50%; background: rgba(155, 224, 122, .18); fill: none; stroke: #9be07a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hp-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hp-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.hp-addr { font-size: 12px; color: #b9cad6; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex: none; }
.hp-phone { font-size: 13.5px; font-weight: 700; color: #fff; white-space: nowrap; }
.hp-dir { font-size: 12px; font-weight: 600; color: #9be07a; white-space: nowrap; }
.hp-phone:hover, .hp-dir:hover { text-decoration: underline; }
.hp-tag { cursor: pointer; }
.hp-tag img { width: 34px; height: auto; flex: none; border-radius: 50%; background: #fff; padding: 2px; }

/* banner grid: message + PC on top, locations along the bottom */
.hero-wrap .hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr) auto;
  column-gap: 24px; row-gap: 18px; align-items: center; padding: 30px 32px 24px;
}
.hero-wrap .hero > .hero-text { grid-column: 1; grid-row: 1; padding: 0; align-self: center; }
.hero-wrap .hero > .hero-art { grid-column: 2; grid-row: 1; align-self: center; }
.hero-wrap .hero > .hero-places { grid-column: 1 / -1; grid-row: 2; }
.hero-title { font-size: 30px; }
@media (min-width: 1200px) and (min-height: 600px) {
  body.home .hero-art { height: min(100%, 260px); max-width: none; }
}
@media (max-width: 1199px) { .hero-places { grid-template-columns: 1fr 1fr; } .hp-tag { grid-column: 1 / -1; } }
@media (max-width: 640px) { .hero-places { grid-template-columns: 1fr; } .hero-wrap .hero { grid-template-columns: 1fr; } }
/* short banners: keep the locations, trim the extras */
.hero { container-type: normal; }

/* banner balance: text gets the larger share, PC scales down, two roomy location cards */
.hero-places { grid-template-columns: 1fr 1fr; }
.hp-name { white-space: nowrap; }
.hp-addr { white-space: normal; }
.hero-wrap .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.hero-wrap .hero > .hero-art, body.home .hero-wrap .hero > .hero-art { width: 100%; height: auto; max-height: 250px; max-width: 440px; justify-self: end; }
.hero-wrap .hero-text { min-width: 0; }
@container (max-height: 380px) { .hero-sub { display: none; } .hero-title { font-size: 26px; } }
@container (max-height: 320px) { .hero-chips button:nth-child(n+2) { display: none; } }

.hp-name { font-size: 14px; }
.hp-text { padding-right: 6px; }

/* =========== owner's email (Dec 2): bigger logo, bolder tabs, no banner, big Shabbos essentials =========== */
.brand img { height: 46px; }
body.home .masthead-in { padding-top: 12px; padding-bottom: 12px; }
.subnav-links button, body.home .subnav-links button { font-size: 15px; font-weight: 600; color: var(--ink); padding: 11px 13px; }
.subnav-links button:hover { color: var(--accent-ink); }

/* footer locations line */
.footer-places { flex-basis: 100%; color: #dfe5ea; font-size: 12.5px; }
.footer-places b { color: #fff; margin-right: 4px; }
.footer-places a { color: #b9e08f; font-weight: 600; }
.fp-sep { display: inline-block; width: 1px; height: 12px; background: #4a5662; margin: 0 14px; vertical-align: -1px; }

/* Shabbos essentials fill the space the banner had */
.layout > .col-mid > .essentials { grid-column: 1 / -1; grid-row: 1; }
.ess-badge { align-self: flex-start; margin-top: 4px; font-size: 11px; font-weight: 600; color: #3f7419; background: #e3f0d6; border: 1px solid #cfe4bc; padding: 2px 9px; border-radius: 999px; }
@media (min-width: 1200px) and (min-height: 600px) {
  body.home .layout > .col-mid > .essentials { display: flex; flex-direction: column; padding: 18px 22px; }
  body.home .layout > .col-mid > .essentials .ess-head { margin-bottom: 14px; }
  body.home .layout > .col-mid > .essentials .ess-head h2 { font-size: 19px; }
  body.home .layout > .col-mid > .essentials .ess-note { display: inline; font-size: 12.5px; }
  body.home .layout > .col-mid > .essentials .ess-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 16px; align-content: stretch; }
  body.home .layout > .col-mid > .essentials .ess-card { display: flex; flex-direction: column; min-height: 0; padding: 0; border-radius: 8px; }
  body.home .layout > .col-mid > .essentials .ess-visual { flex: 1 1 auto; min-height: 90px; max-height: none; border-right: 0; border-bottom: 1px solid #dbe9cf; }
  body.home .layout > .col-mid > .essentials .ess-visual .ess-icon { height: min(58%, 130px); min-height: 50px; stroke-width: 1.5; }
  body.home .layout > .col-mid > .essentials .ess-body { padding: 14px 18px 6px; align-self: stretch; gap: 4px; }
  body.home .layout > .col-mid > .essentials .ess-name { font-size: 18px; }
  body.home .layout > .col-mid > .essentials .ess-short { font-size: 13.5px; line-height: 1.5; -webkit-line-clamp: unset; display: block; }
  body.home .layout > .col-mid > .essentials .ess-actions { margin: 0 18px; padding: 10px 0 14px; font-size: 13px; }
  body.home .layout > .col-mid > .essentials .ess-more { font-size: 13.5px; }
}

.ess-actions { justify-content: space-between !important; }

/* owner's email (Dec 3): product taglines, Women Profile instructions link */
.ess-tagline { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; font-style: italic; color: #3f7419; line-height: 1.35; }
.ep-tagline { margin: 6px 0 0 !important; font-size: 15px !important; font-weight: 600; font-style: italic; color: #b9e08f !important; }
.profile-wrap { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.profile-help { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.profile-help:hover { color: var(--accent); }
@media (min-width: 1200px) and (min-height: 600px) {
  body.home .layout > .col-mid > .essentials .ess-tagline { font-size: 14px; }
}

/* =========== Shabbos picks: same cards, stacked top to bottom =========== */
@media (min-width: 1200px) and (min-height: 600px) {
  body.home .layout > .col-mid > .essentials .ess-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(0, 1fr); gap: 12px; }
  body.home .layout > .col-mid > .essentials .ess-card {
    display: grid; grid-template-columns: clamp(120px, 16%, 190px) minmax(0, 1fr) auto; grid-template-rows: 1fr; align-items: stretch;
  }
  body.home .layout > .col-mid > .essentials .ess-visual { grid-column: 1; grid-row: 1; min-height: 0; border-bottom: 0; border-right: 1px solid #dbe9cf; }
  body.home .layout > .col-mid > .essentials .ess-visual .ess-icon { height: min(70%, 86px); min-height: 40px; }
  body.home .layout > .col-mid > .essentials .ess-body { grid-column: 2; grid-row: 1; align-self: center; padding: 10px 22px; }
  body.home .layout > .col-mid > .essentials .ess-short { -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  body.home .layout > .col-mid > .essentials .ess-actions {
    grid-column: 3; grid-row: 1; align-self: center; margin: 0 22px 0 0; padding: 0;
    border-top: 0; display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 170px;
  }
  body.home .layout > .col-mid > .essentials .ess-actions .ess-shop {
    order: -1; display: block; text-align: center; padding: 10px 16px; border-radius: 6px;
    background: linear-gradient(180deg, #6aad37, #4f8a26); color: #fff; font-weight: 600; font-size: 14px;
    box-shadow: 0 3px 10px rgba(79, 138, 38, .25); text-decoration: none;
  }
  body.home .layout > .col-mid > .essentials .ess-actions .ess-shop:hover { filter: brightness(1.06); color: #fff; text-decoration: none; }
  body.home .layout > .col-mid > .essentials .ess-actions .ess-more { text-align: center; }
}
.ess-actions { justify-content: center; }
