/* Torah App — Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@300;400;700;900&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&display=swap');

:root {
  --ink: #0d1117;
  --paper: #f5f0e8;
  --gold: #c8a84b;
  --gold-light: #e8ca75;
  --accent: #1B4F8A;
  --accent-light: #2a6bbf;
  --muted: #5a5248;
  --muted-light: #8a8078;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,0.18);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.12);
  --ink-2: #161b22;
  --ink-3: #1e242c;
  --success: #2d9e5f;
  --danger: #c0392b;
  --positive-color: #2d9e5f;
  --negative-color: #c0392b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Hebrew text ── */
.he {
  font-family: 'Frank Ruhl Libre', serif;
  direction: rtl;
  unicode-bidi: bidi-override;
}
.he-lg  { font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 700; line-height: 1.5; }
.he-xl  { font-size: clamp(2rem, 8vw, 3.5rem); font-weight: 700; line-height: 1.4; }
.he-sm  { font-size: clamp(1rem, 3.5vw, 1.3rem); font-weight: 400; line-height: 1.6; }
.he-xs  { font-size: 0.95rem; line-height: 1.6; }

/* ── Top header ── */
.torah-header {
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border-bottom: 1px solid rgba(200,168,75,0.2);
  padding: 20px 20px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.torah-header-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.torah-back {
  color: var(--muted-light);
  font-size: 0.82rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.torah-back:hover { color: var(--gold); }
.torah-page-title {
  font-size: clamp(1rem, 4vw, 1.3rem);
  font-weight: 700;
  color: var(--paper);
  text-align: center;
  flex: 1;
}
.torah-page-subtitle {
  font-size: 0.7rem;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Page wrapper ── */
.page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* ── Filter / tab bar ── */
.tab-bar {
  display: flex;
  background: var(--ink-2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 73px;
  z-index: 40;
}
.tab-btn {
  flex: 1;
  padding: 12px 8px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted-light);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-btn:hover:not(.active) { color: var(--paper); }

/* ── Search bar ── */
.search-wrap {
  padding: 12px 0 0;
  position: sticky;
  top: 121px;
  background: var(--ink);
  z-index: 39;
}
.search-input {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 10px 14px 10px 38px;
  color: var(--paper);
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235a5248' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.099zm-5.242 1.656a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}
.search-input:focus { border-color: var(--gold); }
.search-input::placeholder { color: var(--muted); }

/* ── Count badge ── */
.count-badge {
  font-size: 0.72rem;
  color: var(--muted-light);
  padding: 8px 0 4px;
  text-align: right;
}

/* ── Mitzvah card ── */
.mitzvah-card {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.mitzvah-card:hover { border-color: rgba(200,168,75,0.25); }
.mitzvah-card.positive { border-left: 3px solid var(--positive-color); }
.mitzvah-card.negative { border-left: 3px solid var(--negative-color); }
.mitzvah-card.hidden { display: none; }

.mitzvah-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}
.mitzvah-number {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted-light);
  min-width: 32px;
  padding-top: 3px;
  flex-shrink: 0;
}
.mitzvah-type-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.positive .mitzvah-type-dot { background: var(--positive-color); }
.negative .mitzvah-type-dot { background: var(--negative-color); }

.mitzvah-main { flex: 1; min-width: 0; }
.mitzvah-english { font-size: 0.92rem; font-weight: 600; color: var(--paper); line-height: 1.3; }
.mitzvah-hebrew {
  font-family: 'Frank Ruhl Libre', serif;
  direction: rtl;
  font-size: 1rem;
  color: var(--gold);
  margin-top: 3px;
  line-height: 1.4;
}
.mitzvah-source {
  font-size: 0.7rem;
  color: var(--accent-light);
  margin-top: 4px;
}
.mitzvah-source a.source-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted rgba(200,168,75,0.4);
  transition: color 0.15s, border-color 0.15s;
}
.mitzvah-source a.source-link:hover {
  color: #e8ca75;
  border-bottom-color: #e8ca75;
}

.mitzvah-speak-btn {
  background: none;
  border: none;
  font-size: 0.82rem;
  opacity: 0.4;
  cursor: pointer;
  padding: 4px 5px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: opacity 0.15s, background 0.15s;
  line-height: 1;
  align-self: flex-start;
  margin-top: 2px;
}
.mitzvah-card:hover .mitzvah-speak-btn,
.mitzvah-speak-btn:focus { opacity: 1; background: rgba(200,168,75,0.1); }
.mitzvah-speak-btn.speaking { opacity: 1; background: rgba(200,168,75,0.22); outline: 1px solid var(--gold); }
.mitzvah-speak-context-btn.speaking { background: rgba(200,168,75,0.18); }

.mitzvah-chevron {
  color: var(--muted-light);
  font-size: 0.75rem;
  transition: transform 0.25s;
  flex-shrink: 0;
  padding-top: 4px;
}
.mitzvah-card.open .mitzvah-chevron { transform: rotate(180deg); }

.mitzvah-speak-context-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid rgba(200,168,75,0.2);
  border-radius: 14px;
  color: var(--gold);
  font-size: 0.72rem;
  padding: 4px 10px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.15s;
}
.mitzvah-speak-context-btn:hover { background: rgba(200,168,75,0.1); }

.mitzvah-body {
  display: none;
  padding: 0 16px 14px 60px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.mitzvah-card.open .mitzvah-body { display: block; }

.mitzvah-context-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
  margin: 12px 0 6px;
}
.mitzvah-context-en {
  font-size: 0.88rem;
  color: var(--muted-light);
  line-height: 1.65;
}
.mitzvah-context-he {
  font-family: 'Frank Ruhl Libre', serif;
  direction: rtl;
  font-size: 1rem;
  color: var(--muted-light);
  line-height: 1.7;
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  border-right: 2px solid var(--gold);
}
.mitzvah-type-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 10px;
}
.positive .mitzvah-type-label { background: rgba(45,158,95,0.15); color: #3dbf72; border: 1px solid rgba(45,158,95,0.3); }
.negative .mitzvah-type-label { background: rgba(192,57,43,0.15); color: #e55a4e; border: 1px solid rgba(192,57,43,0.3); }

/* ── No results ── */
.no-results { text-align: center; padding: 48px 24px; color: var(--muted-light); display: none; }
.no-results.visible { display: block; }

/* ── Torah reader ── */
.book-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0 10px;
  scrollbar-width: none;
}
.book-selector::-webkit-scrollbar { display: none; }
.book-chip {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  color: var(--muted-light);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.book-chip.active { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.book-chip:hover:not(.active) { border-color: var(--gold); color: var(--gold); }
.book-chip-progress {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.85;
  vertical-align: middle;
}
.book-chip.active .book-chip-progress { color: var(--ink); opacity: 0.7; }

.chapter-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0 14px;
}
.chapter-btn {
  width: 40px; height: 40px;
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--muted-light);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chapter-btn.active { background: var(--accent); border-color: var(--accent); color: white; }
.chapter-btn.read:not(.active) {
  border-color: rgba(200,168,75,0.4);
  color: var(--gold);
  background: rgba(200,168,75,0.07);
}
.chapter-btn:hover:not(.active) { border-color: var(--gold); color: var(--gold); }

/* ── Preface verse layout (Hebrew key + English prose always visible) ── */
.preface-verse {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 16px 0;
}
.preface-verse-inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.preface-verse .verse-num {
  flex-shrink: 0;
  margin-top: 4px;
}
.preface-verse-body {
  flex: 1;
}
.preface-he {
  font-size: clamp(1.1rem, 4vw, 1.4rem) !important;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}
.preface-en {
  font-size: 0.9rem;
  color: var(--paper);
  line-height: 1.75;
}

/* ── Reading progress bar ── */
.read-progress-bar {
  padding: 10px 0 4px;
  min-height: 0;
}
.read-progress-bar:empty { display: none; }

.rpb-book {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.rpb-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.rpb-count {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 600;
}
.rpb-track {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  overflow: hidden;
}
.rpb-fill {
  height: 100%;
  background: linear-gradient(to right, var(--gold), #e8c96a);
  border-radius: 4px;
  transition: width 0.5s ease;
  min-width: 0;
}
.rpb-overall {
  margin-top: 5px;
  font-size: 0.65rem;
  color: var(--muted-light);
  text-align: right;
}

/* ── Parasha title ── */
.parasha-title {
  text-align: center;
  padding: 20px 0 14px;
  border-bottom: 1px solid rgba(200,168,75,0.15);
  margin-bottom: 16px;
}
.parasha-title .he-xl { color: var(--gold); display: block; margin-bottom: 4px; }
.parasha-title .en-title { font-size: 1rem; color: var(--muted-light); }

/* Preface: English title displayed inline under the Hebrew */
.preface-en-title {
  display: block;
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  color: var(--paper);
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: 0.01em;
}

/* ── Floating font-size FAB ── */
.font-size-fab {
  position: fixed;
  right: 16px;
  bottom: 88px; /* above share sheet area */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink-2, #161b22);
  border: 1.5px solid rgba(200,168,75,0.5);
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
  z-index: 500;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.font-size-fab:hover   { background: rgba(200,168,75,0.12); border-color: var(--gold); }
.font-size-fab:active  { transform: scale(0.92); }
/* sub-label inside the FAB */
.font-size-fab::after {
  content: attr(data-label);
  position: absolute;
  bottom: -18px;
  font-size: 0.58rem;
  color: var(--muted-light);
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: 0.04em;
}
@media (min-width: 600px) {
  .font-size-fab { right: 24px; bottom: 100px; }
}

/* ── Verse ── */
.verse-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 4px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  position: relative;
}
.verse-block.selected { background: rgba(200,168,75,0.06); }

.verse-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
.verse-num {
  font-size: 0.65rem;
  color: var(--gold);
  font-weight: 700;
  min-width: 22px;
  padding-top: 4px;
  flex-shrink: 0;
  text-align: right;
}
.verse-he {
  font-family: 'Frank Ruhl Libre', serif;
  direction: rtl;
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  line-height: 1.8;
  color: var(--paper);
  flex: 1;
  text-align: right;
  user-select: text;
  -webkit-user-select: text;
}
.verse-he .word {
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.15s;
  padding: 0 1px;
}
.verse-he .word:hover { background: rgba(200,168,75,0.18); }

.verse-translation {
  display: none;
  padding: 0 12px 10px 44px;
  font-size: 0.88rem;
  color: var(--muted-light);
  line-height: 1.65;
  border-left: 2px solid var(--gold);
  margin-left: 12px;
  margin-bottom: 4px;
}
.verse-translation.visible { display: block; }

.verse-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(200,168,75,0.35);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.82rem;
  width: 26px;
  height: 26px;
  cursor: pointer;
  margin-left: 8px;
  vertical-align: middle;
  opacity: 0.75;
  transition: opacity 0.18s, background 0.18s;
  flex-shrink: 0;
}
.verse-share-btn:hover { opacity: 1; background: rgba(200,168,75,0.12); }

/* ── Font size variants ── */
#passageArea.font-sm .verse-he { font-size: 1.1rem; }
#passageArea.font-sm .verse-translation { font-size: 0.78rem; }
#passageArea.font-lg .verse-he { font-size: 1.6rem; line-height: 1.9; }
#passageArea.font-lg .verse-translation { font-size: 1.05rem; }

/* ── Share modal ── */
.share-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 2000;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.share-modal.open { display: flex; }

.share-modal-inner {
  background: var(--ink-2, #161b22);
  border: 1px solid rgba(200,168,75,0.25);
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 32px;
  width: 100%;
  max-width: 480px;
  position: relative;
}

.share-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  color: var(--muted-light, #8b949e);
  font-size: 1.1rem; cursor: pointer; padding: 4px 8px;
}
.share-modal-close:hover { color: var(--gold); }

.share-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper, #e8dcc8);
  margin-bottom: 4px;
}

.share-modal-ref {
  font-family: 'Frank Ruhl Libre', serif;
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.share-modal-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.share-modal-btns button {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 14px 18px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s, background 0.18s;
  width: 100%;
}
.share-modal-btns button:hover {
  border-color: rgba(200,168,75,0.45);
  background: rgba(200,168,75,0.06);
}
.share-btn-icon { font-size: 1.5rem; flex-shrink: 0; }
.share-btn-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--paper, #e8dcc8);
}
.share-btn-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--muted-light, #8b949e);
  margin-top: 2px;
}

/* ── Share image preview ── */
.share-img-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.share-img-preview img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(200,168,75,0.3);
  display: block;
}
.share-img-link {
  display: block;
  font-size: 0.75rem;
  color: var(--gold);
  text-decoration: none;
  text-align: center;
  word-break: break-all;
  opacity: 0.8;
  border-bottom: 1px dotted rgba(200,168,75,0.35);
  padding-bottom: 2px;
}
.share-img-link:hover { opacity: 1; }

.share-img-actions {
  display: flex;
  gap: 10px;
}
.share-img-actions button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 8px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.share-img-actions button:hover {
  border-color: rgba(200,168,75,0.45);
  background: rgba(200,168,75,0.06);
}
.share-img-actions .share-btn-icon { font-size: 1.2rem; }
.share-img-actions .share-btn-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--paper, #e8dcc8);
}

/* ── Word tooltip ── */
#wordTooltip {
  position: fixed;
  background: var(--ink-2);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  max-width: 240px;
  z-index: 9999;
  box-shadow: var(--shadow);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
#wordTooltip.visible { opacity: 1; }
.tooltip-he {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.3rem;
  color: var(--gold);
  direction: rtl;
  display: block;
  margin-bottom: 4px;
}
.tooltip-translit { font-size: 0.75rem; color: var(--muted-light); }
.tooltip-en { font-size: 0.88rem; color: var(--paper); font-weight: 600; margin-top: 2px; }

/* ── Translation toggle ── */
.reader-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  flex-wrap: wrap;
  gap: 8px;
}
.reader-hint { font-size: 0.75rem; color: var(--muted-light); opacity: 0.7; }
.toggle-btn {
  padding: 7px 14px;
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  color: var(--muted-light);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.toggle-btn.active { background: rgba(200,168,75,0.12); border-color: var(--gold); color: var(--gold); }

/* ── Hub page ── */
.hub-hero {
  text-align: center;
  padding: 36px 20px 28px;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border-bottom: 1px solid rgba(200,168,75,0.15);
}
.hub-title-he {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  color: var(--gold);
  direction: rtl;
  line-height: 1.1;
  display: block;
  margin-bottom: 6px;
}
.hub-title-en { font-size: clamp(1.2rem, 4vw, 1.8rem); font-weight: 300; color: var(--muted-light); }
.hub-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 24px 20px;
  max-width: 540px;
  margin: 0 auto;
}
.hub-card {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-decoration: none;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.hub-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--card-accent, var(--gold));
}
.hub-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.hub-card-icon { font-size: 2rem; line-height: 1; }
.hub-card-title { font-size: 1.05rem; font-weight: 700; }
.hub-card-desc { font-size: 0.78rem; color: var(--muted-light); line-height: 1.4; }
.hub-card-count { font-size: 0.7rem; color: var(--gold); margin-top: 4px; font-weight: 600; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(200,168,75,0.25); border-radius: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 420px) {
  .hub-cards { grid-template-columns: 1fr; }
  .mitzvah-body { padding-left: 16px; }
}
