@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/noto-sans-hebrew-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/noto-sans-hebrew-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Noto Serif Hebrew';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/noto-serif-hebrew-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: 'Noto Serif Hebrew';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/noto-serif-hebrew-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Warm paper, quiet ink and restrained gold. Font files are hosted locally. */
:root {
  --ink:#19324b; --ink-soft:#59697a; --paper:#faf8f3; --paper-deep:#efede6;
  --surface:#fffefa; --surface-raised:#fff; --line:#20374e1c;
  --brand:#143252; --brand-soft:#304f70; --gold:#c39b53; --gold-ink:#81622e; --gold-soft:#f2e8d3;
  --chumash:#325d85; --chumash-soft:#eaf0f6;
  --tehillim:#416c59; --tehillim-soft:#e9f0e8;
  --tanya:#8a6535; --tanya-soft:#f5ecdd; --success:#36715b; --danger:#a1443e;
  --shadow-sm:0 3px 16px #21385207; --shadow-md:0 10px 32px #2138520c;
}
html[data-theme="dark"] {
  --ink:#eef1f5; --ink-soft:#afbdcc; --paper:#101c2a; --paper-deep:#1a293a;
  --surface:#162537; --surface-raised:#1b2d42; --line:#bcd0e21f;
  --brand:#203f62; --brand-soft:#abc8e4; --gold:#d3b577; --gold-ink:#e4c88f; --gold-soft:#342e24;
  --chumash:#98bfe3; --chumash-soft:#20354b;
  --tehillim:#a3c7b3; --tehillim-soft:#21382f;
  --tanya:#dec28e; --tanya-soft:#382f23; --success:#95c4ad; --danger:#efa59e;
  --shadow-sm:0 4px 16px #0001; --shadow-md:0 10px 32px #0002;
}
.app-shell { background:radial-gradient(ellipse at 85% 0%,#c39b530b,transparent 40rem),var(--paper); }
.app-header,html[data-theme="dark"] .app-header { gap:12px; padding-block:calc(10px + env(safe-area-inset-top)) 10px; border-bottom:1px solid var(--line); background:color-mix(in srgb,var(--paper) 96%,transparent); box-shadow:none; }
.brand-block { min-width:0; gap:10px; }
.brand-icon { width:44px; height:44px; flex:0 0 44px; border-radius:0; box-shadow:none; }
.brand-copy { min-width:0; gap:3px; }
.brand-block h1 { font-family:"Noto Serif Hebrew",David,serif; font-size:1.875rem; line-height:1.25; font-weight:700; letter-spacing:0; }
.brand-personal { font-weight:600; color:var(--ink); }
.brand-subtitle { display:block; margin:0; font-size:.8125rem; font-weight:500; line-height:1.5; color:var(--ink-soft); }
.header-actions { flex-shrink:0; gap:4px; }
.header-actions .icon-button { width:44px; height:44px; color:var(--ink); background:transparent; border:1px solid transparent; box-shadow:none; border-radius:13px; }
.header-actions .icon-button:hover { background:var(--paper-deep); box-shadow:none; }
.icon-button,.round-button,.refresh-button { min-width:44px; min-height:44px; }
.round-button { color:var(--ink); box-shadow:none; background:var(--surface); border-radius:13px; }
.complete-button { color:#fff; background:#143252; font-family:inherit; font-size:.9375rem; font-weight:700; min-height:50px; border-radius:14px; box-shadow:0 4px 16px #14325212; }
.complete-button:hover { background:#23466c; }
.complete-button.is-complete { color:var(--success); background:var(--tehillim-soft); box-shadow:none; }
.complete-button.is-complete .complete-icon { color:var(--success); }
.secondary-button { font-weight:600; border-radius:13px; box-shadow:none; cursor:pointer; }
.sheet-header h2,.web-dialog h2 { font-family:"Noto Serif Hebrew",David,serif; }
.settings-sheet { border:1px solid var(--line); }
.setting-row { border:0; background:var(--paper); }
.toggle-track { background:#778592; }
.rashi-toggle input:checked + .toggle-track,.setting-check input:checked + .toggle-track { background:#36715b; }
.toast { background:#143252; }
.share-preview { display:block; width:100%; height:auto; margin:18px 0 20px; border:1px solid var(--line); border-radius:14px; }
.share-actions { display:flex; flex-wrap:wrap; gap:10px; }
.share-actions > * { flex:1 1 145px; min-height:48px; text-align:center; }
.whatsapp-share { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,summary:focus-visible { outline:3px solid var(--gold-ink); outline-offset:3px; }
.rashi-toggle input:focus-visible + .toggle-track,.setting-check input:focus-visible + .toggle-track { outline-color:var(--gold-ink); }
.setting-copy span { font-size:.8125rem; line-height:1.6; }
.font-preview { margin:8px 0 16px; padding:12px; background:var(--paper); border-radius:12px; font-family:"Noto Serif Hebrew",David,serif; font-size:var(--reader-size); line-height:1.85; }
.settings-management { border-top:1px solid var(--line); margin-top:18px; padding-top:8px; }
.settings-management > summary { min-height:44px; padding:10px 0; cursor:pointer; font-size:.875rem; }
@media (max-width:360px) {
  .app-header { padding-inline:13px; gap:6px; }
  .brand-block { gap:7px; }
  .brand-icon { display:none; }
  .brand-block h1 { font-size:1.625rem; white-space:nowrap; }
  .brand-subtitle { font-size:.75rem; }
  .header-actions { gap:0; }
}
@media (min-width:900px) {
  .app-header { padding-block:calc(14px + env(safe-area-inset-top)) 14px; }
  .brand-icon { width:52px; height:52px; flex-basis:52px; }
  .brand-block h1 { font-size:2.125rem; }
  .brand-subtitle { font-size:.8125rem; }
}
@media print { .app-header { display:none !important; } }

