/* Tehillim Digest — styles
   Palette from the channel art: cream paper, taupe-brown engraved title,
   pencil navy, gold frame, amber lyre, sage hills, watercolor sky. */

:root {
  --paper: #FBF8F1;
  --paper-2: #F5EFE2;
  --surface: #FFFDF8;
  --ink: #2B261F;
  --ink-soft: #564C40;
  --muted: #7D7366;
  --line: #E7DDC9;
  --line-strong: #D6C8AD;
  --brand: #6B5843;      /* engraved title brown */
  --navy: #2E3B5B;       /* pencil outline */
  --gold: #C9A456;       /* frame */
  --gold-soft: #F4E7C5;
  --amber: #A4561F;      /* lyre, used for Shva Na / Kamatz Katan */
  --sage: #5E8A43;
  --sky: #6E9CC8;
  --focus: #2F5D9A;
  --shadow: 0 1px 2px rgba(70, 52, 25, .06), 0 6px 20px rgba(70, 52, 25, .06);
  --shadow-lift: 0 2px 4px rgba(70, 52, 25, .08), 0 14px 32px rgba(70, 52, 25, .10);
  --radius: 16px;
  --radius-sm: 10px;

  --t-pesukei: #E3EEF8;   --t-pesukei-ink: #2D5378;
  --t-kabbalat: #F6EBCF;  --t-kabbalat-ink: #7A5814;
  --t-shir: #E6F0DD;      --t-shir-ink: #3F6528;
  --t-hallel: #F8E6D6;    --t-hallel-ink: #8A4316;
  --t-weekly: #EFEAE1;    --t-weekly-ink: #5E5345;
  --t-monthly: #EFEAE1;   --t-monthly-ink: #5E5345;
  --t-tikkun: #ECE7F5;    --t-tikkun-ink: #554380;
  --t-special: #F6E3E3;   --t-special-ink: #8A3B3B;

  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-ui: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-en: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-he-text: "Tehillim Digest Hebrew", "Frank Ruhl Libre", "Taamey Frank CLM", "SBL Hebrew", "Times New Roman", serif;
  --font-he: "Frank Ruhl Libre", "Taamey Frank CLM", "SBL Hebrew", "Times New Roman", serif;

  --text-scale: 1;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1A1714; --paper-2: #221E1A; --surface: #24201B;
    --ink: #F1EADD; --ink-soft: #D4C9B7; --muted: #A89C8A;
    --line: #3A332B; --line-strong: #4B4237;
    --brand: #E2CFA9; --navy: #B9C7E6; --gold: #D9B566; --gold-soft: #3A3122;
    --amber: #F0A766; --sage: #9CC57E; --sky: #8DB8DE; --focus: #8DB8DE;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    --shadow-lift: 0 2px 4px rgba(0,0,0,.35), 0 14px 32px rgba(0,0,0,.35);
    --t-pesukei: #22303F; --t-pesukei-ink: #A9CBEB;
    --t-kabbalat: #3A3020; --t-kabbalat-ink: #EBCB83;
    --t-shir: #26331E; --t-shir-ink: #B5D69B;
    --t-hallel: #3B2A1D; --t-hallel-ink: #F0B98A;
    --t-weekly: #2E2924; --t-weekly-ink: #CFC3B1;
    --t-monthly: #2E2924; --t-monthly-ink: #CFC3B1;
    --t-tikkun: #2D2840; --t-tikkun-ink: #C7BAEB;
    --t-special: #3B2424; --t-special-ink: #EDB0B0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1A1714; --paper-2: #221E1A; --surface: #24201B;
  --ink: #F1EADD; --ink-soft: #D4C9B7; --muted: #A89C8A;
  --line: #3A332B; --line-strong: #4B4237;
  --brand: #E2CFA9; --navy: #B9C7E6; --gold: #D9B566; --gold-soft: #3A3122;
  --amber: #F0A766; --sage: #9CC57E; --sky: #8DB8DE; --focus: #8DB8DE;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.35), 0 14px 32px rgba(0,0,0,.35);
  --t-pesukei: #22303F; --t-pesukei-ink: #A9CBEB;
  --t-kabbalat: #3A3020; --t-kabbalat-ink: #EBCB83;
  --t-shir: #26331E; --t-shir-ink: #B5D69B;
  --t-hallel: #3B2A1D; --t-hallel-ink: #F0B98A;
  --t-weekly: #2E2924; --t-weekly-ink: #CFC3B1;
  --t-monthly: #2E2924; --t-monthly-ink: #CFC3B1;
  --t-tikkun: #2D2840; --t-tikkun-ink: #C7BAEB;
  --t-special: #3B2424; --t-special-ink: #EDB0B0;
  color-scheme: dark;
}

/* Frank Ruhl Libre (OFL) with built-in bold Shva Na / Kamatz Katan — see scripts/make_hebrew_font.py */
@font-face {
  font-family: "Tehillim Digest Hebrew";
  src: url("/assets/fonts/td-hebrew.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0020, U+00A0, U+0590-05FF, U+200C-200D, U+25CC, U+FB1D-FB4F, U+FE00;
}
@font-face {
  font-family: "Tehillim Digest Hebrew Sans";
  src: url("/assets/fonts/td-hebrew-sans.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0020, U+00A0, U+0590-05FF, U+200C-200D, U+25CC, U+FB1D-FB4F, U+FE00;
}
/* Reading fonts for the verses. "modern" is set on <html> from
   data/site.json ("readingFonts"); "classic" uses the defaults above. */
:root { --font-en-text: var(--font-en); --he-size: 1.72rem; --en-size: 1.14rem; }
:root[data-fonts="modern"] {
  --font-he-text: "Tehillim Digest Hebrew Sans", "Noto Sans Hebrew", "Arial Hebrew", "Segoe UI", sans-serif;
  --font-en-text: "Inter", "Source Sans 3", system-ui, -apple-system, sans-serif;
  --he-size: 1.62rem; --en-size: 1.06rem;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
[lang="he"] { font-family: var(--font-he); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: .06em; white-space: nowrap; }
.header-inner { position: relative; }
.header-chapter {
  display: none; align-items: baseline; gap: 8px; margin-inline-end: auto; margin-inline-start: -2px;
  padding: 4px 10px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  color: var(--brand); white-space: nowrap; animation: fadein .2s ease both;
}
.header-chapter:hover { background: var(--paper-2); }
.hc-en { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; }
.hc-he { font-family: var(--font-he); font-weight: 700; font-size: 1.2rem; color: var(--gold); }
.header-chapter svg { width: 16px; height: 16px; align-self: center; color: var(--muted); }
.scrolled-chapter .brand-name { display: none; }
.scrolled-chapter .header-chapter { display: inline-flex; }
@keyframes fadein { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (max-width: 420px) { .hc-en { font-size: 1rem; } .hc-he { font-size: 1.05rem; } .header-chapter svg { display: none; } }
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a, .header-nav .nav-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.header-nav a:hover { background: var(--paper-2); color: var(--ink); }
.header-nav svg { width: 20px; height: 20px; }
.yt-link svg { color: #D9302C; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.nav-btn.get-app { border: 1px solid var(--gold); background: var(--gold-soft); color: var(--brand); font-weight: 700; cursor: pointer; }
.nav-btn.get-app:hover { border-color: var(--brand); color: var(--ink); }
.nav-btn.get-app svg { width: 18px; height: 18px; flex: none; }
.nav-btn.get-app { white-space: nowrap; }
@media (max-width: 720px) {
  .header-nav .nav-chapters { display: none; }
  .yt-link span { display: none; }
  .yt-link { padding: 8px !important; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 1rem; letter-spacing: .04em; }
  .brand img { width: 34px; height: 34px; }
  .nav-btn.get-app .get-app-long { display: none; }
}
@media (min-width: 421px) { .nav-btn.get-app .get-app-short { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--brand); color: var(--paper); }
.btn-primary:hover { color: var(--paper); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--ink); border-color: var(--gold); }
.btn-ghost svg { color: #D9302C; }

/* ---------- hero ---------- */
.hero { padding-top: 24px; }
.hero-art { display: block; max-width: 680px; margin-inline: auto; }
.hero-art img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--paper-2); }
.hero-text { max-width: 720px; margin: 28px auto 0; text-align: center; }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--ink-soft); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 20px; color: var(--muted); font-size: .95rem; }
.hero-stats strong { color: var(--brand); }

/* ---------- today's tehillim ---------- */
.today { margin-top: 40px; padding: 18px 20px; border: 1px solid var(--gold); border-radius: var(--radius); background: linear-gradient(180deg, var(--gold-soft), var(--surface)); box-shadow: var(--shadow); max-width: 900px; }
.today-date { font-family: var(--font-display); font-weight: 600; color: var(--brand); font-size: 1.1rem; letter-spacing: .03em; margin-bottom: 12px; }
.today-date .label { display: inline; margin: 0 10px 0 0; }
.today-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.today-item { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.today-item:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-1px); }
.today-k { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.today-v { font-weight: 700; color: var(--brand); }
.directory { padding-top: 48px !important; }
@media (max-width: 600px) {
  .today { margin-top: 28px; padding: 14px; }
  .today-date { font-size: 1rem; margin-bottom: 10px; }
  .today-items { gap: 6px; }
  .today-item { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 12px; }
  .today-k { font-size: .72rem; }
  .today-v { font-size: .95rem; white-space: nowrap; }
}

/* ---------- directory ---------- */
.directory { padding: 64px 0 40px; }
.dir-head { text-align: center; margin-bottom: 24px; }
.dir-head h2, .text-head h2 { font-family: var(--font-display); font-weight: 600; color: var(--brand); font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: .03em; }
.dir-sub { color: var(--muted); margin-top: 6px; }

.search { position: relative; max-width: 640px; margin: 0 auto 18px; }
.search svg { position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 56px; padding: 0 20px 0 52px;
  font: 500 1.05rem var(--font-ui); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  box-shadow: var(--shadow); -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent), var(--shadow); }

.filters, .subfilters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.subfilters { margin-top: 12px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--paper-2); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 7px 15px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  font-weight: 600; font-size: .93rem; color: var(--ink-soft); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.pill:hover { border-color: var(--gold); color: var(--ink); }
.pill.is-active { background: var(--brand); border-color: var(--brand); color: var(--paper); }
.pill-n { font-weight: 500; opacity: .75; font-size: .85em; }
.pill.small { min-height: 34px; padding: 5px 12px; font-size: .88rem; }
@media (max-width: 720px) {
  .filters { gap: 6px; }
  .filters .pill { min-height: 36px; padding: 6px 12px; font-size: .88rem; }
}

.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin: 26px 0 14px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.count { font-weight: 600; color: var(--ink-soft); }
.filter-about { color: var(--muted); font-size: .95rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.card-num { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--brand); letter-spacing: .02em; }
.card-num-label { font-size: .62em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card-he { font-size: 1.6rem; font-weight: 700; color: var(--gold); line-height: 1; }
.card-title { font-family: var(--font-en); font-weight: 500; font-size: 1.22rem; line-height: 1.3; color: var(--ink); }
.card-preview { color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.card-preview.from-text { font-family: var(--font-en); font-style: italic; font-size: 1.02rem; color: var(--muted); }
.card-main { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.card-main:hover { color: inherit; }
/* the whole card opens the chapter; the video button sits above that link */
.card-main::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-main:focus-visible { outline: none; }
.card:has(.card-main:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.card-video {
  position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 5px;
  min-height: 34px; padding: 4px 13px 4px 10px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); background: var(--surface);
  font-weight: 700; font-size: .85rem; color: var(--amber); text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
a.card-video:hover { background: var(--amber); border-color: var(--amber); color: var(--surface); }
.card-video svg { width: 15px; height: 15px; }
.card-video.none { border-style: dashed; border-color: var(--line-strong); font-weight: 500; color: var(--muted); }

.tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.6; text-decoration: none; background: var(--t-weekly); color: var(--t-weekly-ink); white-space: nowrap; }
a.tag:hover { filter: brightness(.96); }
.tag-pesukei { background: var(--t-pesukei); color: var(--t-pesukei-ink); }
.tag-kabbalat { background: var(--t-kabbalat); color: var(--t-kabbalat-ink); }
.tag-shir { background: var(--t-shir); color: var(--t-shir-ink); }
.tag-hallel { background: var(--t-hallel); color: var(--t-hallel-ink); }
.tag-tikkun { background: var(--t-tikkun); color: var(--t-tikkun-ink); }
.tag-special { background: var(--t-special); color: var(--t-special-ink); }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; }

/* ---------- chapter page ---------- */
.chapter { padding-bottom: 32px; }
.chapter-nav { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 4px; }
.chapter-nav a, .chapter-nav .disabled { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .95rem; padding: 6px 8px; border-radius: 8px; }
.chapter-nav a:hover { background: var(--paper-2); color: var(--ink); }
.chapter-nav svg { width: 18px; height: 18px; }
.chapter-nav .disabled { opacity: .3; }
.prevnext { display: flex; gap: 4px; }

.chapter-head { text-align: center; padding: 18px 0 28px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.chapter-head h1 { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 18px; margin-top: 8px; }
.ch-en { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 6vw, 3rem); color: var(--brand); letter-spacing: .04em; }
.ch-he { font-family: var(--font-he); font-weight: 700; font-size: clamp(1.9rem, 5.5vw, 2.8rem); color: var(--gold); }
.chapter-title { font-family: var(--font-en); font-size: clamp(1.2rem, 3vw, 1.5rem); color: var(--ink-soft); margin: 10px auto 0; max-width: 720px; line-height: 1.35; }
.chapter-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }

.watch-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -6px 0 28px; }
.btn-watch { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; box-shadow: var(--shadow); }
.btn-watch svg { width: 18px; height: 18px; }
.watch-soon { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.watch-soon svg { width: 16px; height: 16px; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 9 / 16;
  border-radius: 20px; overflow: hidden; background: #111;
  border: 1px solid var(--line); box-shadow: var(--shadow-lift);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink-soft); }
.watch-link svg { width: 20px; height: 20px; color: #D9302C; }

/* video popup */
.video-dialog {
  width: auto; max-width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
  padding: 0; border: 1px solid var(--line-strong); border-radius: 22px; overflow: hidden;
  background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.video-dialog[open] { display: flex; flex-direction: column; animation: rise .25s ease both; }
.video-dialog::backdrop { background: rgba(20, 16, 10, .72); }
.vd-body { display: grid; justify-items: center; gap: 10px; padding: 12px 12px 14px; }
.video-dialog .video-frame { width: min(calc(100vw - 48px), calc((100vh - 150px) * 9 / 16), 430px); width: min(calc(100vw - 48px), calc((100dvh - 150px) * 9 / 16), 430px); box-shadow: none; }

.summary-box {
  position: relative; max-width: 860px; margin-inline: auto; padding: 28px 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--gold-soft), var(--surface) 140px);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.summary-box::before { content: ""; position: absolute; inset: 6px; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 12px; pointer-events: none; }
.summary-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.summary-head img { border-radius: 50%; flex: none; }
.summary-head h2 { flex: 1; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: .06em; color: var(--brand); }
.summary-toggle { position: relative; z-index: 1; flex: none; min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: .85rem; color: var(--ink-soft); cursor: pointer; }
.summary-toggle:hover { border-color: var(--gold); color: var(--ink); }
.summary-toggle .when-closed, .hide-summary .summary-toggle .when-open { display: none; }
.hide-summary .summary-toggle .when-closed { display: inline; }
.hide-summary .summary-body { display: none; }
.hide-summary .summary-head { margin-bottom: 0; }
.label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 4px; }
.summary-theme { font-family: var(--font-en); font-size: clamp(1.3rem, 2.6vw, 1.55rem); line-height: 1.35; color: var(--ink); margin-bottom: 18px; }
.summary-note { font-style: italic; color: var(--muted); margin-bottom: 14px; }
.summary-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.summary-points li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; line-height: 1.6; color: var(--ink-soft); }
.summary-points strong { color: var(--ink); font-weight: 700; }
.pt-dot::before { content: ""; width: 9px; height: 9px; transform: rotate(45deg); background: var(--gold); border-radius: 2px; }
.pt-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--line); font-size: 1.05rem; }
.summary-prayer { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.summary-body > p + p { margin-top: 12px; }
.summary-empty { color: var(--muted); }

/* text section */
.text-section { margin-top: 56px; }
.text-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 24px; margin-bottom: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend .he { font-family: var(--font-he-text); font-size: 1.5rem; line-height: 1; color: var(--ink); }

.reader-bar {
  position: sticky; top: calc(64px + env(safe-area-inset-top)); z-index: 20;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 8px; margin-bottom: 8px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.ctl-group { display: flex; flex-wrap: wrap; gap: 6px; }
.ctl { min-height: 38px; min-width: 44px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: .9rem; color: var(--ink-soft); cursor: pointer; }
.ctl:hover { border-color: var(--gold); color: var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg .ctl { border: 0; border-radius: 0; min-width: 0; }
.seg .ctl + .ctl { border-inline-start: 1px solid var(--line-strong); }
.seg .ctl[aria-pressed="true"] { background: var(--brand); color: var(--paper); }

.verses { border-top: 1px solid var(--line); }
.verse {
  display: grid; grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); grid-template-areas: "en num he";
  gap: 0 28px; align-items: start; padding: 20px 4px; border-bottom: 1px solid var(--line);
}
.verse:target { background: var(--gold-soft); border-radius: 10px; }
.verse .he {
  grid-area: he; font-family: var(--font-he-text); font-weight: 400;
  font-size: calc(var(--he-size) * var(--text-scale)); line-height: 1.85; color: var(--ink);
  text-align: right; font-feature-settings: "kern", "mark", "mkmk";
}
.verse .en { grid-area: en; font-family: var(--font-en-text); font-size: calc(var(--en-size) * var(--text-scale)); line-height: 1.6; color: var(--ink-soft); padding-top: .45em; }
.vnum { grid-area: num; display: grid; justify-items: center; gap: 0; padding-top: .7em; text-decoration: none; color: var(--muted); font-size: .85rem; font-weight: 700; line-height: 1.2; }
.vnum-he { font-size: 1rem; color: var(--gold); font-weight: 700; }
.vnum:hover { color: var(--amber); }

/* Shva Na and Kamatz Katan are drawn bold by the site's Hebrew font
   (vowel + U+FE00). If that font can't be used, site.js wraps the whole
   letter in .mark-cluster and the letter is made bold instead. */
.mark-cluster { font-weight: 800; }
/* fallback for browsers that cannot style a single vowel point:
   site.js moves the whole letter into the span, so keep the letter's ink */
.only-he .verse { grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "num he"; max-width: 860px; margin-inline: auto; }
.only-he .verse .en { display: none; }
.only-en .verse { grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "num en"; max-width: 760px; margin-inline: auto; }
.only-en .verse .he, .only-en .legend { display: none; }
.only-en .verse .en { font-size: calc(var(--en-size) * 1.14 * var(--text-scale)); color: var(--ink); padding-top: .15em; }
.only-en .vnum { padding-top: .35em; }
.text-empty { padding: 32px 0; color: var(--muted); text-align: center; }

@media (max-width: 860px) {
  .summary-box { padding: 22px 18px; }
  .summary-head h2 { font-size: 1.05rem; }
  .summary-head img { width: 30px; height: 30px; }
  .verse { grid-template-columns: 34px minmax(0, 1fr); grid-template-areas: "num he" "num en"; gap: 6px 12px; padding: 18px 0; }
  .verse .en { padding-top: 0; }
  .vnum { padding-top: .55em; }
  .only-he .verse { grid-template-columns: 34px minmax(0, 1fr); }
  .only-en .verse { grid-template-columns: 34px minmax(0, 1fr); grid-template-areas: "num en"; }
  .verse .he { font-size: calc(var(--he-size) * .9 * var(--text-scale)); }
  .reader-bar { top: calc(64px + env(safe-area-inset-top)); flex-wrap: nowrap; padding: 6px; gap: 6px; }
  .ctl-group { flex-wrap: nowrap; gap: 4px; }
  .ctl { min-height: 36px; min-width: 38px; padding: 4px 9px; font-size: .84rem; border-radius: 9px; }
}

.chapter-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.pager { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.pager:hover { border-color: var(--gold); color: var(--ink); }
.pager.next { text-align: right; justify-items: end; }
.pager-dir { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pager-dir svg { width: 16px; height: 16px; }
.pager-name { font-family: var(--font-display); font-weight: 600; color: var(--brand); }
.pager-name [lang="he"] { color: var(--gold); margin-inline-start: 4px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); background: var(--paper-2); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; gap: 14px; justify-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; text-align: left; }
.footer-brand img { border-radius: 50%; }
.footer-name { font-family: var(--font-display); font-weight: 600; letter-spacing: .06em; color: var(--brand); font-size: 1.15rem; }
.footer-tag { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.credits { max-width: 640px; font-size: .82rem; color: var(--muted); line-height: 1.55; }
.credits a { color: inherit; }

.notfound { text-align: center; padding: 80px 0; display: grid; gap: 14px; justify-items: center; }
.notfound img { border-radius: 50%; }
.notfound h1 { font-family: var(--font-display); color: var(--brand); }

/* ---------- "Search & filters" shortcut ---------- */
.to-filters {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 55;
  display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 32px);
  min-height: 46px; padding: 8px 18px 8px 14px; border-radius: 999px; border: 0;
  background: var(--brand); color: var(--paper); font-weight: 700; font-size: .95rem;
  box-shadow: var(--shadow-lift); cursor: pointer; animation: rise .25s ease both;
}
.to-filters svg { width: 18px; height: 18px; flex: none; }
.to-filters-f { font-weight: 500; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.has-banner .to-filters { bottom: calc(104px + env(safe-area-inset-bottom)); }

/* ---------- install: banner + guide ---------- */
.install-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px;
  max-width: 520px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-lift);
  animation: rise .35s ease both;
}
.install-banner img { width: 48px; height: 48px; border-radius: 11px; flex: none; }
.install-banner .ib-text { flex: 1; min-width: 0; line-height: 1.3; }
.install-banner strong { display: block; font-size: .98rem; }
.install-banner span { font-size: .85rem; color: var(--muted); }
.install-banner .btn { min-height: 38px; padding: 6px 14px; font-size: .9rem; }
.install-banner .ib-close { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 50%; color: var(--muted); cursor: pointer; font-size: 1.3rem; line-height: 1; flex: none; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

.install-dialog {
  width: min(540px, 100% - 24px); max-height: min(calc(100vh - 32px), 860px); max-height: min(calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)), 860px);
  padding: 0; border: 1px solid var(--line-strong); overflow: hidden;
  border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.install-dialog[open] { display: flex; flex-direction: column; }
.id-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.id-bar-title { font-weight: 700; font-size: .95rem; color: var(--ink-soft); }
.id-done { display: flex; width: 100%; margin-top: 16px; }
.install-dialog::backdrop { background: rgba(30, 24, 16, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.install-dialog[open] { animation: rise .25s ease both; }
.id-inner { flex: 1; min-height: 0; padding: 18px 20px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.id-close { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; border: 0; background: var(--brand); color: var(--paper); cursor: pointer; font-weight: 700; font-size: .95rem; }
.id-close svg { width: 18px; height: 18px; }
.id-head { display: grid; justify-items: center; text-align: center; gap: 6px; margin-bottom: 14px; }
.id-head img { width: 64px; height: 64px; border-radius: 18px; box-shadow: var(--shadow-lift); }
.id-head h2 { font-family: var(--font-display); color: var(--brand); font-size: 1.45rem; letter-spacing: .04em; }
.id-head p { color: var(--muted); font-size: .95rem; max-width: 380px; }
.id-tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.id-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.id-step { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); counter-increment: step; }
.id-step.is-highlight { border-color: var(--gold); background: var(--gold-soft); }
.id-icon { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: #1A73E8; }
.id-icon svg { width: 32px; height: 32px; }
.id-icon::after { content: counter(step); position: absolute; top: -7px; left: -7px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--paper); font: 700 .75rem/22px var(--font-ui); text-align: center; }
.id-icon img { width: 40px; height: 40px; border-radius: 10px; }
.id-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.id-step p { font-size: .92rem; color: var(--ink-soft); line-height: 1.45; }
.id-step .kbd { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; white-space: nowrap; }
.id-step .kbd svg { width: 15px; height: 15px; color: #1A73E8; display: inline; }
.id-arrow { display: flex; justify-content: center; margin-top: 16px; color: var(--muted); font-size: .88rem; gap: 6px; align-items: center; text-align: center; }
.id-arrow svg { width: 18px; height: 18px; flex: none; animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
.id-native { display: grid; justify-items: center; gap: 8px; margin-top: 14px; }

@media (max-width: 480px) {
  .id-step { grid-template-columns: 44px 1fr; gap: 12px; padding: 10px; }
  .id-icon { width: 44px; height: 44px; border-radius: 12px; }
  .id-icon svg { width: 26px; height: 26px; }
  .id-icon img { width: 32px; height: 32px; border-radius: 8px; }
  .id-head h2 { font-size: 1.25rem; }
  .id-head img { width: 56px; height: 56px; border-radius: 14px; }
}
@media (display-mode: standalone) {
  .get-app, .install-banner { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- theme button: moon in light mode, sun in dark mode ---------- */
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle svg:not(.i-sun) { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle svg:not(.i-sun) { display: none; }
}

/* ---------- chapters marked as done ---------- */
.card-done { display: none; vertical-align: 3px; margin-inline-start: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--sage); color: #fff; place-items: center; }
.card-done svg { width: 14px; height: 14px; }
.card.is-done .card-done { display: inline-grid; }
.card.is-done { background: color-mix(in srgb, var(--sage) 6%, var(--surface)); border-color: color-mix(in srgb, var(--sage) 30%, var(--line)); }
.card.is-return { outline: 3px solid var(--gold); outline-offset: 3px; }
.card-videos { display: flex; gap: 6px; flex: none; }
.card-videos .card-video { padding: 4px 11px 4px 8px; }

.progress { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.progress-text { display: flex; align-items: baseline; gap: 10px; font-weight: 600; color: var(--ink-soft); }
.progress-text .label { margin: 0; color: var(--sage); }
.progress-bar { flex: 1 1 140px; height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--sage); border-radius: inherit; transition: width .3s; }
.link-btn { border: 0; background: none; padding: 4px 2px; font: inherit; font-weight: 600; font-size: .9rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }

.done-btn { gap: 8px; }
.done-btn svg { width: 18px; height: 18px; }
.done-btn .when-done { display: none; }
.done-btn[aria-pressed="true"] .when-done { display: inline; }
.done-btn[aria-pressed="true"] .when-not-done { display: none; }
.done-small { min-height: 52px; padding: 12px 20px; }
.done-btn[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); color: #fff; }
.done-row { display: flex; justify-content: center; margin-top: 36px; }
.done-row .done-btn { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; background: var(--surface); border: 2px solid var(--sage); color: var(--sage); }
.done-row .done-btn[aria-pressed="true"] { background: var(--sage); color: #fff; }

/* ---------- stepping through the list you came from ---------- */
.in-list { display: flex; align-items: stretch; gap: 6px; margin: 6px 0 0; padding: 6px; border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--gold-soft) 55%, var(--surface)); }
.in-list[hidden] { display: none; }
.il-step { display: inline-flex; align-items: center; gap: 2px; min-width: 56px; justify-content: center; padding: 6px 10px; border-radius: 10px; font-weight: 700; color: var(--brand); text-decoration: none; background: var(--surface); }
a.il-step:hover { color: var(--ink); background: var(--paper); }
.il-step svg { width: 18px; height: 18px; }
.il-step.is-off { opacity: .35; }
.il-name { flex: 1; min-width: 0; display: grid; justify-items: center; align-content: center; text-align: center; text-decoration: none; color: var(--ink); line-height: 1.25; padding: 2px 4px; }
.il-k { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.il-v { font-weight: 600; font-size: .93rem; max-width: 100%; }
.il-close { flex: none; width: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.il-close:hover { background: var(--surface); color: var(--ink); }
.list-next { display: flex; justify-content: center; margin-top: 18px; }
.list-next[hidden] { display: none; }
.list-next-btn { min-height: 56px; padding: 10px 22px 10px 28px; text-align: left; border-radius: 18px; }
.lnb-text { display: grid; line-height: 1.25; }
.lnb-k { font-size: .78rem; font-weight: 600; opacity: .8; }
.lnb-v { font-size: 1.1rem; font-weight: 700; }
.list-next-btn svg { width: 18px; height: 18px; flex: none; }
.list-end { color: var(--muted); text-align: center; }
.btn-ghost.done-btn svg, .done-row .done-btn svg { color: var(--sage); }
.done-btn[aria-pressed="true"] svg { color: #fff; }

/* ---------- more prayers tag ---------- */
:root { --t-more: #E2F0EE; --t-more-ink: #2F6660; }
:root[data-theme="dark"] { --t-more: #1F3331; --t-more-ink: #A4D6CF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --t-more: #1F3331; --t-more-ink: #A4D6CF; } }
.tag-more { background: var(--t-more); color: var(--t-more-ink); }

/* ---------- done / not done filter ---------- */
.status-filter { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; }
.sf-label { font-size: .88rem; font-weight: 600; color: var(--muted); }
.status-filter .pill svg { width: 15px; height: 15px; color: var(--sage); }
.status-filter .pill.is-active svg { color: inherit; }

/* ---------- get the app ---------- */
.btn-app { background: var(--gold-soft); color: var(--brand); border-color: var(--gold); font-weight: 700; }
.btn-app:hover { color: var(--ink); border-color: var(--brand); transform: translateY(-1px); }
.btn-app svg { width: 20px; height: 20px; }
.install-banner strong { font-size: 1.05rem !important; }
.install-banner .ib-text span { font-size: .92rem !important; color: var(--ink-soft) !important; }
.install-banner .btn { min-height: 44px !important; padding: 8px 18px !important; font-size: 1rem !important; }

.coach { position: fixed; inset: auto 0 0 0; z-index: 80; padding: 0 12px calc(8px + env(safe-area-inset-bottom)); pointer-events: none; }
.coach-card { position: relative; pointer-events: auto; max-width: 460px; margin: 0 auto; padding: 18px 18px 14px; border-radius: 20px; background: var(--surface); border: 2px solid var(--gold); box-shadow: 0 10px 40px rgba(40, 28, 10, .28); animation: rise .25s ease both; }
.coach-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--ink); margin: 0 40px 10px 0; }
.coach-title img { border-radius: 9px; flex: none; }
.coach-steps { margin: 0; padding: 0; list-style: none; counter-reset: c; display: grid; gap: 10px; }
.coach-steps li { counter-increment: c; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; font-size: 1.05rem; line-height: 1.45; color: var(--ink); }
.coach-steps li::before { content: counter(c); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--paper); font-weight: 700; font-size: .95rem; }
.coach-steps li[hidden] { display: none; }
.coach .kbd { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 7px; background: var(--paper-2); border: 1px solid var(--line-strong); font-weight: 700; white-space: nowrap; vertical-align: 1px; }
.coach .kbd svg { width: 17px; height: 17px; color: #1A73E8; }
.coach-more { margin-top: 10px; }
.coach-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--paper-2); color: var(--ink); cursor: pointer; }
.coach-x svg { width: 18px; height: 18px; }
.coach-arrow { display: flex; flex-direction: column; align-items: center; width: max-content; margin: 6px auto 0; color: var(--amber); font-weight: 800; font-size: .95rem; text-shadow: 0 1px 0 var(--surface); animation: coachbob 1.1s ease-in-out infinite; }
@keyframes coachbob { 50% { transform: translateY(10px); } }
.coach-arrow svg { width: 44px; height: 44px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.coach-note { display: block; margin-top: 4px; font-size: .9rem; color: var(--muted); }
.coach-note .kbd { padding: 0 5px; }
@media (max-width: 420px) {
  .nav-btn.get-app { padding: 7px 11px 7px 9px !important; gap: 4px !important; }
  .header-nav { gap: 2px; }
}
@media (max-width: 359px) { .brand-name { display: none; } }
