/* BUILD_TOKEN: 2026-01-12-EMAIL-FIX */

:root{
  --bg:#ffffff;
  --fg:#111111;
  --muted:#5a5a5a;
  --link:#0b57d0;
  --maxw: 760px;
  --pad: 20px;
  --font: 22px;
  --line: 1.9;
  --he-font: "Noto Serif Hebrew","David Libre",serif;
  --ui-font: "Assistant","Segoe UI",Roboto,Arial,sans-serif;
  --topbar-h: 84px;
  --bottombar-h: 82px;
  --navmini-h: 56px;
}

@media (prefers-color-scheme: dark) {
  :root:not(.light-mode) {
    --bg: #0a0a0a;
    --fg: #ebebeb;
    --muted: #9a9a9a;
    --link: #8ab4f8;
  }
}

:root.dark-mode {
  --bg: #0a0a0a;
  --fg: #ebebeb;
  --muted: #9a9a9a;
  --link: #8ab4f8;
}

html,body{height:100%; scroll-behavior: smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family:var(--he-font);
  font-size:var(--font);
  line-height:var(--line);
  text-rendering:optimizeLegibility;
  -webkit-text-size-adjust:100%;
}

a{ color:var(--link); text-decoration:none; }
a:hover{ text-decoration:underline; }

.page{
  max-width:var(--maxw);
  margin:0 auto;
  padding: calc(var(--pad) + 18px) var(--pad);
  padding-bottom: calc(var(--bottombar-h) + var(--navmini-h) + 40px + env(safe-area-inset-bottom));
  direction:rtl;
  unicode-bidi:plaintext;
}

.page h1{ font-size:1.75em; margin:0.9em 0 0.25em; font-weight:650; }
.page h2{ 
  font-size:0.9em;
  font-weight:500;
  color:var(--muted);
  opacity:0.6;
  margin:2em 0 0.6em;
  text-transform:uppercase;
  letter-spacing:0.05em;
}
.page p{ margin:0.65em 0; }
.page hr{ border:0; border-top:1px solid rgba(128,128,128,.15); margin:1.15em 0; }

.reading-progress {
  position: fixed;
  bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom));
  left: 0;
  width: 3px;
  height: calc(100vh - var(--topbar-h) - var(--bottombar-h));
  background: rgba(128,128,128,.06);
  z-index: 199;
}

.position-marker {
  position: absolute;
  left: -16px;
  width: 8px;
  height: 8px;
  background: #d4af37;
  border-radius: 50%;
  opacity: 0.6;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

/* ========== TOPBAR ========== */
header.topbar{
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--topbar-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border: 0;
  padding-inline: max(var(--pad), calc((100vw - var(--maxw)) / 2));
  padding-block: 14px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 6px;
}

header.topbar .brand{
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.12;
  text-align: right;
  font-family: var(--ui-font);
  padding-right: 6px;
}

header.topbar .brand .title{
  font-size: 19px;
  font-weight: 650;
  color: var(--fg);
}

header.topbar .brand .byline{
  font-size: 14px;
  color: var(--muted);
}

header.topbar .brand .byline a{
  color: inherit;
  text-decoration: none;
}
header.topbar .brand .byline a:hover{ text-decoration: underline; }

nav.controls{
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 6px;
  margin-left: auto;
}

nav.controls .btn{
  appearance: none;
  border: 0;
  background: transparent;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ui-font);
  font-size: 22px;
  font-weight: 650;
  color: var(--muted);
  border-radius: 16px;
  cursor: pointer;
  transition: color .15s ease;
}
nav.controls .btn:hover{ color: var(--fg); }

/* Email signup en topbar */
.email-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}

.email-signup {
  display: flex;
  align-items: center;
  gap: 6px;
}

.email-signup input[type="email"] {
  padding: 6px 10px;
  border: 1px solid rgba(128,128,128,0.3);
  border-radius: 4px;
  font-size: 13px;
  width: 140px;
  background: transparent;
  color: inherit;
  direction: rtl;
}

.email-signup input[type="email"]::placeholder {
  color: rgba(128,128,128,0.6);
}

.email-signup button {
  padding: 6px 12px;
  border: 0;
  border-radius: 4px;
  background: #d4af37;
  color: #000;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}

.email-signup button:hover {
  opacity: 0.9;
}

.beta-note {
  font-size: 9px;
  opacity: 0.4;
}

@media (max-width: 500px) {
  .email-wrapper {
    display: none;
  }
}

/* ========== SIDEBAR ========== */
.sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--bg);
  border-left: 1px solid rgba(128,128,128,.15);
  z-index: 230;
  transition: right .3s ease;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

.sidebar.open { right: 0; }

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(128,128,128,.15);
}

.sidebar-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--fg);
}

.sidebar-close {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 32px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-close:hover { color: var(--fg); }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-nav a {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--fg);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  transition: background .15s ease;
}

.sidebar-nav a:hover { background: rgba(128,128,128,.08); }
.sidebar-nav a.active {
  background: rgba(212,175,55,.15);
  color: #d4af37;
  font-weight: 600;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--bottombar-h);
  background: rgba(0,0,0,0);
  z-index: 225;
  pointer-events: none;
  transition: background .3s ease;
}

.sidebar-overlay.visible {
  background: rgba(0,0,0,.3);
  pointer-events: auto;
}

.sidebar-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(128,128,128,.12);
}

.sidebar-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.7;
  margin: 0 0 12px 0;
}

/* ========== NAV-MINI ========== */
.nav-mini {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--bottombar-h);
  z-index: 220;
  height: var(--navmini-h);
  background: rgba(255,255,255,1);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(128,128,128,.12);
  padding-inline: max(var(--pad), calc((100vw - var(--maxw)) / 2));
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 10px;
  align-items: center;
  transition: opacity .3s ease, transform .3s ease, bottom .3s ease;
}

.nav-mini.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}

.nav-mini.solo {
  bottom: 0 !important;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-mini-btn {
  appearance: none;
  border: 0;
  background: transparent;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s ease;
}

.nav-mini-btn:hover {
  color: var(--fg);
  background: rgba(128,128,128,.08);
}

.nav-mini-urgency {
  color: #c49a2e;
  font-size: 18px;
}

#leftBtn {
  font-size: 16px;
  font-family: var(--he-font);
  font-weight: 600;
  color: #c49a2e;
}

.nav-mini-section {
  appearance: none;
  border: 0;
  background: rgba(212,175,55,.1);
  height: 50px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--he-font);
  font-size: 16px;
  font-weight: 600;
  color: #c49a2e;
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-mini-section:hover { background: rgba(212,175,55,.18); }
.nav-mini-section .arrow { font-size: 12px; opacity: 0.7; }

/* ========== BOTTOMBAR ========== */
nav.bottombar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 215;
  height: var(--bottombar-h);
  padding-top: 12px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
  padding-inline: max(var(--pad), calc((100vw - var(--maxw)) / 2));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: transform .3s ease, opacity .3s ease;
}

nav.bottombar.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

nav.bottombar a.bbtn{
  flex: 1;
  position: relative;
  height: var(--bottombar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--he-font);
  font-size: 23px;
  font-weight: 650;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease;
}

nav.bottombar a.bbtn.active{ color: var(--fg); }

nav.bottombar a.bbtn.active::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--fg);
  opacity: .9;
}

.minyan-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(128,128,128,0.15);
}

.minyan-btn {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  cursor: pointer;
  transition: opacity 0.2s ease;
  border-radius: 6px;
}

.minyan-btn.active {
  opacity: 1;
  background: rgba(212,175,55,0.1);
}

.minyan-btn:hover { opacity: 0.7; }

/* ========== PRAYER BLOCKS ========== */
.prayer-block { margin: 0; }
.prayer-block:first-of-type { margin-top: 0; }

.prayer-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.prayer-title {
  font-size: 0.85em;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
  margin: 0 0 0.8rem 0;
}

.prayer-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
  margin: 0.6rem auto 0;
}

.prayer-subtitle {
  font-size: 0.9em;
  font-weight: 500;
  color: var(--muted);
  opacity: 0.6;
  margin: 2em 0 0.8em;
  text-align: right;
}

.prayer-block + .prayer-block {
  border-top: 1px solid rgba(128,128,128,0.08);
  padding-top: 1.4rem;
  margin-top: 1.4rem;
}

/* ========== DARK MODE ========== */
@media (prefers-color-scheme: dark) {
  header.topbar:not(.light-mode header.topbar) { background: rgba(10,10,10,.96); }
  nav.bottombar:not(.light-mode nav.bottombar) { background: rgba(10,10,10,.96); }
  .nav-mini:not(.light-mode .nav-mini) {
    background: rgba(10,10,10,1);
    border-top-color: rgba(128,128,128,.2);
  }
  .sidebar-section { border-top-color: rgba(255,255,255,.08); }
  .prayer-block + .prayer-block { border-top-color: rgba(255,255,255,0.06); }
}

.dark-mode .topbar,
.dark-mode .bottombar,
.dark-mode .nav-mini {
  background: #1a1a1a;
  border-color: rgba(255,255,255,0.1);
}

.dark-mode .topbar .title { color: rgba(255,255,255,0.9); }
.dark-mode .topbar .byline a { color: rgba(255,255,255,0.5); }
.dark-mode .topbar .btn { color: rgba(255,255,255,0.7); }
.dark-mode .minyan-toggle { border-left-color: rgba(255,255,255,0.1); }
.dark-mode .bbtn { color: rgba(255,255,255,0.7); }
.dark-mode .bbtn.active { color: #d4af37; }
.dark-mode .minyan-btn { opacity: 0.4; }
.dark-mode .minyan-btn.active { opacity: 1; background: rgba(212,175,55,0.15); }

/* ========== RESPONSIVE ========== */
@media (max-width:520px){
  :root{
    --pad: 16px;
    --font: 20px;
    --topbar-h: 88px;
    --bottombar-h: 84px;
    --navmini-h: 60px;
  }
  
  .page { padding-bottom: calc(var(--bottombar-h) + var(--navmini-h) + 30px + env(safe-area-inset-bottom)); }
  nav.bottombar a.bbtn { font-size: 24px; }
  .nav-mini-section { font-size: 16px; padding: 0 14px; height: 52px; }
  .nav-mini-btn { width: 54px; height: 54px; font-size: 28px; }
  .sidebar { width: 280px; right: -300px; }
  .sidebar-nav a { font-size: 16px; padding: 11px 13px; }
}

header.topbar { transition: transform .18s ease; }
html.ui-hidden header.topbar,
body.ui-hidden header.topbar { transform: translateY(-130%); }

/* Fix nav-mini centrado */
.nav-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-mini-section {
  flex: 1;
  max-width: none;
  margin: 0 10px;
}

/* Email form en topbar */
.email-form {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0 auto;
}

.email-form input {
  width: 140px;
  padding: 6px 10px;
  border: 1px solid rgba(128,128,128,0.3);
  border-radius: 4px;
  font-size: 13px;
  background: var(--bg);
  color: var(--fg);
  direction: rtl;
}

.email-form input::placeholder {
  color: rgba(128,128,128,0.6);
}

.email-form button {
  padding: 6px 12px;
  background: #d4af37;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
}

.email-form button:hover {
  background: #b8972e;
}

.email-form button:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 600px) {
  .email-form {
    display: none;
  }
}

/* Título como link */
.brand .title {
  text-decoration: none;
  color: inherit;
}

.brand .title:hover {
  opacity: 0.8;
}

/* Texto justificado estilo siddur */
.prayer-block p {
  text-align: justify;
  text-align-last: right;
}

/* Sidebar fullscreen en móvil */
@media (max-width: 600px) {
  .sidebar {
    width: 100%;
    max-width: 100%;
  }
  
  .sidebar-nav a {
    font-size: 1.2rem;
    padding: 14px 20px;
  }
  
  .sidebar-header h3 {
    font-size: 1.3rem;
  }
  
  .sidebar-close {
    font-size: 2rem;
    padding: 10px 15px;
  }
  
  .sidebar-section-title {
    font-size: 1.1rem;
    padding: 10px 20px;
  }
}

/* Sidebar fullscreen en móvil - override */
@media (max-width: 600px) {
  .sidebar {
    width: 100vw !important;
    right: -100vw !important;
  }
  
  .sidebar.open {
    right: 0 !important;
  }
  
  .sidebar-nav a {
    font-size: 1.25rem !important;
    padding: 16px 20px !important;
    display: block;
    border-bottom: 1px solid rgba(128,128,128,.1);
  }
  
  .sidebar-header {
    padding: 15px 5px 20px;
  }
  
  .sidebar-header h3 {
    font-size: 1.4rem !important;
  }
  
  .sidebar-close {
    font-size: 2.5rem !important;
  }
}

/* Sección activa en sidebar */
.sidebar-nav a.active {
  color: #d4af37 !important;
  background: rgba(212,175,55,.1);
  border-right: 3px solid #d4af37;
}

/* Controles de tamaño en sidebar */
.sidebar-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  border-bottom: 1px solid rgba(128,128,128,.15);
  margin-bottom: 10px;
}

.sidebar-controls button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(128,128,128,.3);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  cursor: pointer;
}

.sidebar-controls button:hover {
  background: rgba(128,128,128,.1);
}

/* Sidebar fullscreen en todos los dispositivos */
.sidebar {
  width: 100vw !important;
  right: -100vw !important;
}

.sidebar.open {
  right: 0 !important;
}

.sidebar-nav a {
  font-size: 1.25rem;
  padding: 16px 20px;
  display: block;
  border-bottom: 1px solid rgba(128,128,128,.1);
}

.sidebar-header {
  padding: 15px 20px 20px;
}

.sidebar-header h3 {
  font-size: 1.4rem;
}

.sidebar-close {
  font-size: 2.5rem;
}

/* ── Festival blocks: ocultos por defecto ── */
.festival-block { display: none; }
.festival-label { display: none; }

/* ── Minyan blocks: ocultos en modo yachid ── */
body.mode-yachid [data-minyan="true"] { display: none; }

/* ── Instrucciones litúrgicas ── */


/* ========================================
   SISTEMA VISUAL SIDDUR — JERARQUÍA DE TEXTO
   Añadir al final de static/css/site.css
   ======================================== */

/* ── Texto base de oración ── */
.prayer-text {
  margin: 0.55em 0;
  line-height: 2.1;
  font-weight: 400;
  font-style: normal;
  font-size: 1.05em;
  text-align: justify;
  text-align-last: right;
}

/* ── Texto grande y centrado — פסוקים עיקריים ── */
.prayer-text.large {
  font-size: 1.18em;
  font-weight: 600;
  line-height: 2.2;
}

.prayer-text.centered,
.prayer-text.large.centered {
  text-align: center;
  text-align-last: center;
}

/* ── חתימה — cierre de ברכה ── */
.prayer-text.large.centered:has(+ .prayer-title),
.prayer-text.large.centered:last-child,
.prayer-block .prayer-text.large.centered:last-of-type {
  position: relative;
  padding-top: 0.4em;
}

/* Clase explícita para חתימה */
.chatima {
  font-weight: 600;
  font-size: 1.08em;
  text-align: center;
  line-height: 2.1;
  padding-top: 0.5em;
  margin-top: 0.3em;
  border-top: 1px solid rgba(180,160,100,0.25);
}

/* ── Título de sección — prayer-title mejorado ── */
.prayer-title {
  font-size: 0.78em !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: var(--muted) !important;
  opacity: 0.65 !important;
  margin: 2em 0 0.6em !important;
  text-align: center;
  position: relative;
}

.prayer-title::before,
.prayer-title::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  vertical-align: middle;
  margin: 0 8px;
}

/* primer título del bloque sin margen superior excesivo */
.prayer-block:first-of-type > .prayer-title:first-child {
  margin-top: 0.5em !important;
}

/* ── Separación entre bloques de oración ── */
.prayer-block {
  margin-bottom: 0.8em;
  padding-bottom: 0.8em;
}

.prayer-block + .prayer-block {
  border-top: 1px solid rgba(128,128,128,0.1) !important;
  padding-top: 1.8em !important;
  margin-top: 0.8em !important;
}

/* ── Adiciones festivas — בחנוכה / בעשי"ת / ראש חודש ── */
[data-festival],
[data-minyan="true"] {
  background: rgba(212,175,55,0.08);
  border-inline-end: 3px solid rgba(212,175,55,0.55);
  border-radius: 4px;
  padding: 0.5em 0.9em 0.5em 0.6em;
  margin: 0.6em 0;
  font-size: 0.93em;
  line-height: 1.85;
}

/* Etiqueta de contexto dentro de adición festiva */
[data-festival] em,
[data-minyan="true"] em {
  font-size: 0.82em;
  color: rgba(180,140,40,0.9);
  font-style: normal;
  font-weight: 600;
  display: block;
  margin-bottom: 0.2em;
  letter-spacing: 0.04em;
}

/* Dark mode para festividades */
.dark-mode [data-festival],
.dark-mode [data-minyan="true"] {
  background: rgba(212,175,55,0.06);
  border-inline-end-color: rgba(212,175,55,0.4);
}

/* ── Instrucción litúrgica mejorada ── */

/* ── Respuesta del ציבור / חזן ── */
.prayer-text.centered em {
  font-size: 0.78em;
  color: var(--muted);
  opacity: 0.75;
  font-style: normal;
  font-weight: 500;
}

/* ── Espaciado vertical entre versículos ── */
.prayer-text + .prayer-text {
  margin-top: 1.1em;
}

.prayer-title + .prayer-text {
  margin-top: 0.4em;
}

.instruction + .prayer-text {
  margin-top: 0.3em;
}

/* ── Línea decorativa al final de cada תפילה mayor ── */
.prayer-block:last-of-type {
  padding-bottom: 2em;
}

/* ── Responsive ajustes ── */

@media (max-width: 520px) {
  /* Fix: Quitar justify en móvil - evita espacios excesivos */
  .prayer-text {
    text-align: right;
    text-align-last: right;
  }
  
  /* Fix: Más espacio en topbar brand */
  header.topbar .brand {
    gap: 4px;
    line-height: 1.3;
  }
  
  header.topbar .brand .title {
    font-size: 17px;
  }
  
  header.topbar .brand .byline {
    font-size: 12px;
  }
  
  /* Fix: Ocultar beta-note en móvil */
  .beta-note {
    display: none;
  }
  
  .prayer-text.large {
    font-size: 1.05em;
  }
  
  [data-festival],
  [data-minyan="true"] {
    padding: 0.4em 0.7em 0.4em 0.5em;
    font-size: 0.9em;
  }
  
  .prayer-title::before,
  .prayer-title::after {
    width: 18px;
  }
}
   Añadir al final de static/css/site.css
   ======================================== */

/* ── Ocultar sidebar viejo ── */
.sidebar { display: none !important; }
.sidebar-overlay { display: none !important; }

/* ── Overlay oscuro ── */
#sheetOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 240;
  pointer-events: none;
  transition: background 0.28s ease;
}
#sheetOverlay.visible {
  background: rgba(0,0,0,0.38);
  pointer-events: auto;
}

/* ── Bottom Sheet ── */
#bottomSheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 250;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.18);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

#bottomSheet.open {
  transform: translateY(0);
}

/* ── Handle (línea de arrastre) ── */
.sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(128,128,128,0.28);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

/* ── Cabecera del sheet ── */
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 10px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(128,128,128,0.1);
}

.sheet-title {
  font-family: var(--he-font);
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.7;
  letter-spacing: 0.08em;
}

.sheet-close {
  appearance: none;
  border: 0;
  background: rgba(128,128,128,0.1);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.sheet-close:hover { background: rgba(128,128,128,0.2); }

/* ── Lista de secciones ── */
#sheetNavLinks {
  overflow-y: auto;
  flex: 1;
  padding: 8px 0 16px;
  -webkit-overflow-scrolling: touch;
}

#sheetNavLinks a {
  display: flex;
  align-items: center;
  padding: 13px 24px;
  font-family: var(--he-font);
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  transition: background 0.12s;
  border-radius: 0;
  direction: rtl;
  gap: 6px;
}

#sheetNavLinks a:hover {
  background: rgba(128,128,128,0.06);
}

#sheetNavLinks a.active {
  color: #c49a2e;
  background: rgba(212,175,55,0.1);
  font-weight: 650;
}

/* Indicador activo */
#sheetNavLinks a.active::before {
  content: '●';
  font-size: 8px;
  color: #d4af37;
  flex-shrink: 0;
}

/* Separador sutil entre items */
#sheetNavLinks a + a {
  border-top: 1px solid rgba(128,128,128,0.06);
}

/* ── Dark mode ── */
.dark-mode #bottomSheet {
  background: #1a1a1a;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.5);
}
.dark-mode .sheet-handle {
  background: rgba(255,255,255,0.18);
}
.dark-mode .sheet-header {
  border-bottom-color: rgba(255,255,255,0.08);
}
.dark-mode #sheetNavLinks a + a {
  border-top-color: rgba(255,255,255,0.05);
}
.dark-mode #sheetNavLinks a.active {
  background: rgba(212,175,55,0.12);
}
/* ========================================
   BANNER SUGERENCIA DE ORACIÓN
   Añadir al final de static/css/site.css
   ======================================== */


/* Dark mode */
.dark-mode 
.dark-mode 
.landing {
  min-height: calc(100vh - var(--topbar-h) - var(--bottombar-h) - var(--navmini-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  padding: 2rem var(--pad);
  text-align: center;
  direction: rtl;
}

/* ── Logo / título ── */
.landing-logo {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.landing-title {
  font-family: var(--he-font);
  font-size: 2.4em;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.landing-subtitle {
  font-family: var(--he-font);
  font-size: 0.9em;
  color: var(--muted);
  opacity: 0.6;
  letter-spacing: 0.1em;
}

/* ── Bloque "ahora" ── */
.landing-now {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.landing-now-label {
  font-family: var(--ui-font);
  font-size: 0.8em;
  color: var(--muted);
  opacity: 0.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-enter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #d4af37;
  color: #fff;
  font-family: var(--he-font);
  font-size: 1.6em;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 16px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.18s, transform 0.18s;
  box-shadow: 0 4px 20px rgba(212,175,55,0.3);
}

.landing-enter:hover {
  background: #b8972e;
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(212,175,55,0.4);
}

.landing-enter:active {
  transform: translateY(0);
}

.landing-arrow {
  font-size: 0.75em;
  opacity: 0.8;
  transition: transform 0.18s;
}

.landing-enter:hover .landing-arrow {
  transform: translateX(-4px);
}

/* ── Shabbat ── */
.landing-shabbat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.landing-shabbat-text {
  font-family: var(--he-font);
  font-size: 2em;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.06em;
}

.landing-shabbat-sub {
  font-family: var(--ui-font);
  font-size: 0.8em;
  color: var(--muted);
  opacity: 0.6;
}

/* ── Navegación completa ── */
.landing-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.landing-nav a {
  font-family: var(--he-font);
  font-size: 1em;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
  opacity: 0.7;
}

.landing-nav a:hover {
  color: var(--fg);
  background: rgba(128,128,128,0.08);
  opacity: 1;
  text-decoration: none;
}

.landing-nav a.active {
  color: #d4af37;
  opacity: 1;
  background: rgba(212,175,55,0.1);
}

/* ── Dark mode ── */
.dark-mode .landing-enter {
  box-shadow: 0 4px 20px rgba(212,175,55,0.2);
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .landing { gap: 2.5rem; }
  .landing-title { font-size: 2em; }
  .landing-enter { font-size: 1.4em; padding: 12px 28px; }
}
/* ========================================
   JERARQUÍA TIPOGRÁFICA INTERNA — SIDDUR
   ======================================== */

/* ── XL — פסוקים עיקריים כשמע ישראל ── */
.prayer-text.xl {
  font-size: 1.35em;
  font-weight: 700;
  text-align: center;
  line-height: 2.0;
  letter-spacing: 0.03em;
  color: var(--fg);
  margin: 0.6em 0;
}

/* ── WHISPER — נאמר בלחש ── */
.prayer-text.whisper {
  font-size: 0.82em;
  color: var(--muted);
  opacity: 0.72;
  font-style: italic;
  text-align: center;
  line-height: 1.8;
  margin: 0.2em 0 0.5em;
}

/* ── CHATIMA — ברוך אתה ה' בסוף ברכה ── */
.prayer-text.chatima {
  font-weight: 650;
  font-size: 1.05em;
  text-align: center;
  line-height: 2.0;
  padding-top: 0.4em;
  margin-top: 0.2em;
  border-top: 1px solid rgba(180,150,80,0.2);
  color: var(--fg);
}

/* ── HAZAN — הוראת חזן ── */
.prayer-text.hazan {
  font-size: 0.88em;
  color: #b8972e;
  font-weight: 600;
  text-align: right;
  margin: 0.8em 0 0.1em;
  font-family: var(--ui-font);
  letter-spacing: 0.02em;
}

/* ── RESPONSE — תגובת הקהל ── */
.prayer-text.response {
  font-size: 1.05em;
  font-weight: 600;
  text-align: center;
  color: var(--fg);
  background: rgba(212,175,55,0.07);
  border-radius: 6px;
  padding: 0.3em 1em;
  margin: 0.3em auto;
  display: block;
  max-width: 90%;
  line-height: 2.2;
}

/* ── LARGE CENTERED — פסוקים חשובים ── */
.prayer-text.large {
  font-size: 1.18em;
  font-weight: 600;
  line-height: 2.2;
}
.prayer-text.centered {
  text-align: center;
  text-align-last: center;
}

/* ── subtitle — כותרת משנה בתוך בלוק ── */
.prayer-subtitle {
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  opacity: 0.55;
  text-align: center;
  margin: 1.4em 0 0.4em;
  text-transform: uppercase;
}

/* ── VERSE — פסוק מהתורה בתוך תפילה ── */
.prayer-text.verse {
  border-right: 2px solid rgba(212,175,55,0.35);
  padding-right: 0.8em;
  margin-right: 0.4em;
  font-size: 0.96em;
  color: var(--fg);
  opacity: 0.88;
}

/* spacing mejorado */
.prayer-text + .prayer-text { margin-top: 0.75em; }
.prayer-text.xl + .prayer-text { margin-top: 0.3em; }
.prayer-text.whisper + .prayer-text { margin-top: 0.5em; }
.prayer-text.hazan + .prayer-text { margin-top: 0.1em; }
.prayer-text.chatima + .prayer-block,
.prayer-text.chatima + .prayer-title { margin-top: 1.2em; }

/* dark mode */
.dark-mode .prayer-text.response {
  background: rgba(212,175,55,0.06);
}
.dark-mode .prayer-text.chatima {
  border-top-color: rgba(180,150,80,0.15);
}
/* ── chatima-inline — dentro de párrafos largos ── */
.chatima-inline {
  font-weight: 650;
  display: block;
  text-align: center;
  margin-top: 0.5em;
  padding-top: 0.4em;
  border-top: 1px solid rgba(180,150,80,0.2);
  font-size: 1.02em;
}

/* ── xl centrado mejorado ── */
.prayer-text.xl.centered {
  font-size: 1.4em;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 2.2;
  margin: 0.5em 0;
  color: var(--fg);
}

/* ── whisper mejorado ── */
.prayer-text.whisper {
  font-size: 0.85em;
  color: var(--muted);
  opacity: 0.65;
  font-style: italic;
  text-align: center;
  line-height: 1.7;
  letter-spacing: 0.03em;
  margin: 0.1em 0 0.6em;
}
/* ========================================
   BADGE DE DÍA ESPECIAL
   ======================================== */

#special-day-badge {
  display: none;
  align-items: center;
  gap: 0.5em;
  padding: 0.4em 0.8em;
  border-radius: 20px;
  background: var(--gold);
  color: white;
  font-size: 0.9em;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin: 0 auto 1.5em;
  max-width: fit-content;
}

#special-day-badge .emoji {
  font-size: 1.3em;
  line-height: 1;
}

#special-day-badge .name {
  letter-spacing: 0.02em;
}

/* Badge en landing page */
.landing-container #special-day-badge {
  position: absolute;
  top: -3em;
  right: 1em;
  margin: 0;
}

/* Emoji en header de tefillot */
#header-day-emoji {
  font-size: 1.8em;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
  padding: 0.2em;
  line-height: 1;
  user-select: none;
}

#header-day-emoji:hover {
  opacity: 1;
  transform: scale(1.1);
}

#header-day-emoji:active {
  transform: scale(0.95);
}

/* ========================================
   TEXTOS ESPECIALES (יעלה ויבוא, על הנסים)
   ======================================== */

.special-insert {
  margin: 1.5em 0;
  padding: 1em;
  border-radius: 12px;
  background: rgba(212,175,55,0.05);
  border: 2px dashed rgba(212,175,55,0.3);
  animation: fadeIn 0.4s ease-in-out;
}

.festival-bg {
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
  padding: 0.5em 1em;
  border-radius: 8px;
  margin-bottom: 0.8em;
}

.festival-text {
  /* Texto de festividades ligeramente destacado */
}

/* Dark mode */
.dark-mode .special-insert {
  background: rgba(212,175,55,0.08);
  border-color: rgba(212,175,55,0.4);
}

.dark-mode .festival-bg {
  background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.08));
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   SELECTOR MODAL DE DÍAS
   ======================================== */

.day-selector-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-selector-modal .modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.day-selector-modal .modal-content {
  position: relative;
  background: var(--bg);
  border-radius: 16px;
  padding: 2em;
  max-width: 90%;
  width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.day-selector-modal h3 {
  font-size: 1.3em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5em;
  color: var(--fg);
}

.day-selector-modal .day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.8em;
  margin-bottom: 1.5em;
}

.day-selector-modal .day-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4em;
  padding: 1em 0.5em;
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--ui-font);
}

.day-selector-modal .day-option:hover {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212,175,55,0.3);
}

.day-selector-modal .day-option:active {
  transform: translateY(0);
}

.day-selector-modal .day-option .emoji {
  font-size: 2em;
  line-height: 1;
}

.day-selector-modal .day-option .name {
  font-size: 0.85em;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

.day-selector-modal .close-modal {
  display: block;
  width: 100%;
  padding: 0.8em;
  background: transparent;
  border: 2px solid var(--muted);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--ui-font);
}

.day-selector-modal .close-modal:hover {
  background: var(--muted);
  color: var(--bg);
}

/* Dark mode */
.dark-mode .day-selector-modal .modal-content {
  background: #1a1a1a;
}

.dark-mode .day-selector-modal .day-option {
  background: #2d2d2d;
}

.dark-mode .day-selector-modal .day-option:hover {
  background: var(--gold);
  color: white;
}

/* Mobile */
@media (max-width: 600px) {
  .day-selector-modal .modal-content {
    max-width: 95%;
    padding: 1.5em;
  }

  .day-selector-modal .day-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.6em;
  }

  .day-selector-modal .day-option {
    padding: 0.8em 0.4em;
  }

  .day-selector-modal .day-option .emoji {
    font-size: 1.7em;
  }

  .day-selector-modal .day-option .name {
    font-size: 0.8em;
  }
}

/* Emoji de día especial - mismo tamaño que botones */
#header-day-emoji {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
  user-select: none;
}

#header-day-emoji:hover {
  opacity: 1;
  transform: scale(1.05);
}

#header-day-emoji:active {
  transform: scale(0.95);
}
/* ========================================
   ZMANIM EN TOPBAR
   ======================================== */

#topbar-zman {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 8px;
  transition: background 0.2s;
  user-select: none;
}

#topbar-zman:hover {
  background: rgba(212, 175, 55, 0.1);
}

#topbar-zman .zman-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

#topbar-zman .zman-time {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  font-family: var(--ui-font);
}

/* ========================================
   MODAL DE ZMANIM
   ======================================== */

.zmanim-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zmanim-modal .modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.zmanim-modal .modal-content {
  position: relative;
  background: var(--bg);
  border-radius: 16px;
  max-width: 90%;
  width: 400px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.zmanim-modal .modal-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  padding: 1.5em;
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
  z-index: 1;
}

.zmanim-modal .modal-header h3 {
  font-size: 1.4em;
  font-weight: 700;
  margin: 0 0 0.3em 0;
  color: var(--fg);
}

.zmanim-modal .location {
  font-size: 0.85em;
  color: var(--muted);
  font-weight: 500;
}

.zmanim-modal .close-btn {
  position: absolute;
  top: 1em;
  left: 1em;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
}

.zmanim-modal .close-btn:hover {
  background: rgba(128, 128, 128, 0.1);
  color: var(--fg);
}

.zmanim-modal .zmanim-list {
  padding: 1.5em;
}

.zmanim-modal .zman-group {
  margin-bottom: 1.5em;
}

.zmanim-modal .zman-group:last-child {
  margin-bottom: 0;
}

.zmanim-modal .group-title {
  font-size: 0.9em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.zmanim-modal .zman-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6em 0.8em;
  border-radius: 8px;
  margin-bottom: 0.4em;
  transition: background 0.2s;
}

.zmanim-modal .zman-item:hover {
  background: rgba(128, 128, 128, 0.05);
}

.zmanim-modal .zman-item.current {
  background: rgba(212, 175, 55, 0.08);
  font-weight: 600;
}

.zmanim-modal .zman-label {
  font-size: 0.95em;
  color: var(--fg);
}

.zmanim-modal .zman-value {
  font-size: 1em;
  font-weight: 700;
  font-family: var(--ui-font);
  color: var(--gold);
}

/* ========================================
   FESTIVIDAD EN BOTTOMBAR
   ======================================== */

#bottombar-festival {
  font-size: 26px;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

#bottombar-festival:hover {
  opacity: 1;
  transform: scale(1.1);
}

#bottombar-festival:active {
  transform: scale(0.95);
}

/* Mobile */
@media (max-width: 600px) {
  #topbar-zman .zman-name {
    font-size: 10px;
  }

  #topbar-zman .zman-time {
    font-size: 14px;
  }

  .zmanim-modal .modal-content {
    max-width: 95%;
    border-radius: 12px;
  }

  .zmanim-modal .modal-header {
    padding: 1.2em;
  }

  .zmanim-modal .zmanim-list {
    padding: 1.2em;
  }

  #bottombar-festival {
    font-size: 24px;
  }
}

/* Dark mode */
.dark-mode .zmanim-modal .modal-content {
  background: #1a1a1a;
}

.dark-mode .zmanim-modal .modal-header {
  background: #1a1a1a;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Prayer suggestion - icono flotante discreto */

/* Topbar zmanim display */
#topbar-zman {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 8px;
  transition: background 0.2s;
  user-select: none;
}

#topbar-zman:hover {
  background: rgba(212, 175, 55, 0.1);
}

#topbar-zman .zman-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

#topbar-zman .zman-time {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  font-family: var(--ui-font);
}
/* ========================================
   TOPBAR MINIMALISTA
   ======================================== */
header.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 60px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(180,160,100,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
}

.dark-mode header.topbar {
  background: rgba(20,20,20,.97);
  border-bottom-color: rgba(180,160,100,0.15);
}

/* Botones del topbar */
.topbar-btn {
  appearance: none;
  border: 0;
  background: rgba(180,160,100,0.08);
  color: var(--fg);
  font-family: var(--ui-font);
  font-size: 18px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
}

.topbar-btn:hover {
  background: rgba(180,160,100,0.15);
  transform: translateY(-1px);
}

/* Kivlah button */
.kivlah-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
}

.kivlah-icon {
  font-size: 20px;
}

.kivlah-text {
  }
  
  .zman-name {
    display: none;
  font-size: 14px;
  font-weight: 600;
}

/* Font menu flotante */
.font-menu {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(180,160,100,0.2);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 201;
}

.dark-mode .font-menu {
  background: rgba(30,30,30,.98);
  border-color: rgba(180,160,100,0.25);
}

.font-menu-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-family: var(--ui-font);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease;
}

.font-menu-btn:hover {
  background: rgba(180,160,100,0.12);
}

/* Zman display */
.topbar-zman {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(180,160,100,0.08);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s ease;
}

.topbar-zman:hover {
  background: rgba(180,160,100,0.15);
  transform: translateY(-1px);
}

.zman-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.zman-time {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

/* Mobile adjustments */
@media (max-width: 520px) {
  header.topbar {
    height: 56px;
    gap: 6px;
    padding: 0 12px;
  }
  
  .topbar-btn {
    padding: 8px 12px;
    font-size: 16px;
  }
  
  .kivlah-text {
  }
  
  .zman-name {
    display: none;
    display: none;
  }
  
  }
}

/* ========================================
   KIVLAH MODAL
   ======================================== */
.kivlah-modal {
  max-width: 400px;
  text-align: center;
}

.kivlah-compass {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 2em auto;
  border: 3px solid rgba(180,160,100,0.3);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180,160,100,0.05) 0%, transparent 70%);
}

.compass-arrow {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transition: transform 0.5s ease;
}

.arrow-head {
  font-size: 48px;
  color: #c9a961;
  margin-top: -8px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.compass-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
}

.kivlah-info {
  margin-top: 2em;
}

.kivlah-direction {
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5em;
}

.kivlah-degrees {
  font-size: 20px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.kivlah-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 1em;
  opacity: 0.7;
}


/* Fix topbar móvil - Feb 18 */
@media (max-width: 520px) {
  header.topbar .brand .title {
    font-size: 16px;
  }
  
  header.topbar .brand .byline {
    font-size: 11px;
  }
}

/* ── Instrucción inline dentro del texto ── */
.inline-instruction {
  font-family: var(--ui-font);
  font-size: 0.68em;
  font-style: italic;
  color: var(--muted);
  opacity: 0.6;
  font-weight: 400;
  font-style: normal;
  margin: 0 0.3em;
  white-space: nowrap;
}

/* ── ציון מקור ── */


/* ── ציון מקור ── */


.source-ref {
  font-size: 0.58em;
  font-weight: 400;
  font-style: normal;
  color: var(--muted);
  opacity: 0.55;
  font-family: var(--he-font);
  vertical-align: baseline;
  margin: 0 0.25em;
}

.prayer-text.bracha {
  font-size: 1.15em;
  font-weight: 800;
  text-align: center;
  text-align-last: center;
  line-height: 2.2;
  margin: 1em 0;
}

/* ── כוונה — לשם יחוד ── */
.kavana {
  font-size: 0.88em;
  font-weight: 400;
  font-style: normal;
  color: var(--muted);
  line-height: 1.9;
  text-align: justify;
  text-align-last: right;
  margin: 0.4em 0;
}

.instruction {
  font-family: var(--ui-font);
  font-size: 0.70em;
  font-style: italic;
  color: var(--muted);
  opacity: 0.6;
  direction: rtl;
  text-align: right;
  margin: 0.4em 0;
  line-height: 1.6;
}
.instruction .prayer-text { font-style: normal !important; }
