/* ============================================================
   TLVBA v26 — UX / accessibility / mobile polish
   Keeps the existing black/gold editorial system while reducing
   cognitive load and making mobile behavior fail-safe.
   ============================================================ */

:root { --v26-focus: #f4c95d; }

/* Keyboard accessibility */
:where(a, button, input, select, textarea, [role="button"]):focus-visible {
  outline: 3px solid var(--v26-focus) !important;
  outline-offset: 3px;
}
:where(input, select, textarea):focus-visible { outline-offset: 1px; }

/* Consolidated desktop "More" menu */
.dropdown-menu-label {
  display:block;
  padding:11px 16px 6px;
  font:600 10px/1.3 var(--font-mono, monospace);
  letter-spacing:.14em;
  text-transform:uppercase;
  opacity:.58;
}
.dropdown-menu-divider { height:1px; margin:7px 12px; background:rgba(255,255,255,.12); }

/* Homepage decision aid */
.hero-stage-links {
  margin-top:16px;
  font-size:13px;
  line-height:1.65;
  color:rgba(255,255,255,.68);
}
.hero-stage-links a { color:inherit; text-decoration-color:rgba(244,201,93,.65); text-underline-offset:4px; }
.hero-stage-links a:hover { color:#fff; }
.home-calendar-note { margin:20px 0 0; font-size:13px; opacity:.64; }

/* Curated homepage calendar should feel like a selection, not a database. */
.homepage-v26 .cal-section .cal-months { margin-top:34px; }
.homepage-v26 .cal-section .cal-event { min-height:128px; }
.homepage-v26 .section-head { align-items:flex-end; }

/* Touch + drawer ergonomics */
.mobile-drawer a,
.mobile-drawer button { min-height:44px; }
.mobile-drawer-nav a { display:flex; align-items:center; }
body.drawer-open { overflow:hidden !important; }

/* Site-wide WhatsApp: unobtrusive on small screens. */
.wa-fab { z-index:90; }
@media (max-width: 700px) {
  .wa-fab {
    right:14px !important;
    left:auto !important;
    bottom:14px !important;
    display:flex !important;
    gap:6px !important;
    align-items:center !important;
  }
  [dir="rtl"] .wa-fab { left:14px !important; right:auto !important; }
  .wa-fab-link {
    width:54px !important;
    height:54px !important;
    min-width:54px !important;
    padding:0 !important;
    border-radius:50% !important;
    display:grid !important;
    place-items:center !important;
    box-shadow:0 10px 28px rgba(0,0,0,.28) !important;
  }
  .wa-fab-avatar { margin:0 !important; width:26px !important; height:26px !important; }
  .wa-fab-body { display:none !important; }
  .wa-fab-close {
    position:absolute !important;
    top:-7px !important;
    right:-7px !important;
    width:22px !important;
    height:22px !important;
    min-height:22px !important;
    border-radius:50% !important;
    font-size:15px !important;
    line-height:20px !important;
  }
  [dir="rtl"] .wa-fab-close { left:-7px !important; right:auto !important; }
}

/* Mobile content density */
@media (max-width: 900px) {
  .homepage-v26 .section,
  .homepage-v26 .journey,
  .homepage-v26 .room { padding-top:72px; padding-bottom:72px; }
  .homepage-v26 .section-head { gap:14px; margin-bottom:30px; }
  .homepage-v26 .h-section { text-wrap:balance; }
  .homepage-v26 .hero-stage-links { font-size:12px; margin-top:14px; }
  .homepage-v26 .cal-month-block { margin-top:22px; }
  .homepage-v26 .cal-event { min-height:0; }
  .homepage-v26 .cal-event-body { min-width:0; }
  .homepage-v26 .cal-event-title { overflow-wrap:anywhere; }
  .homepage-v26 .ways-grid,
  .homepage-v26 .cards-3,
  .homepage-v26 .cards-4 { grid-template-columns:1fr !important; }
}

@media (max-width: 560px) {
  .homepage-v26 .hero-content { padding-bottom:44px; }
  .homepage-v26 .hero-meta { margin-top:24px; }
  .homepage-v26 .section,
  .homepage-v26 .journey,
  .homepage-v26 .room { padding-top:58px; padding-bottom:58px; }
  .homepage-v26 .cal-event-meta { gap:7px 12px; }
}

/* Hebrew-specific line-height and RTL clarity */
[dir="rtl"] body { text-rendering:optimizeLegibility; }
[dir="rtl"] .hero-title,
[dir="rtl"] .h-section { line-height:1.02; }
[dir="rtl"] .hero-stage-links { direction:rtl; }
[dir="rtl"] .dropdown-menu { text-align:right; }
[dir="rtl"] .cal-event-cta [aria-hidden="true"],
[dir="rtl"] .link-arrow { direction:rtl; }

/* Forms */
.form-status[role="alert"], .form-status[role="status"] { min-height:1.4em; }
input, select, textarea { scroll-margin-top:100px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; transition-duration:.01ms !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; }
}
