:root{
  --ist-navy:#0f1f35;
  --ist-blue:#176b9a;
  --ist-gold:#c8a96b;
  --ist-cream:#fffdf7;
  --ist-card:#ffffff;
  --ist-ink:#1e293b;
  --ist-muted:#64748b;
  --ist-border:#dce5ee;
  --ist-live:#b42318;
}
.schedule-shell{width:min(1120px,92%);margin:0 auto;padding:132px 0 76px;color:var(--ist-ink)}
.schedule-hero{text-align:center;margin-bottom:28px}
.schedule-hero h1{font-family:'Merriweather',serif;font-size:clamp(34px,5vw,52px);margin:0 0 10px;color:var(--ist-navy)}
.schedule-hero p{margin:0 auto;max-width:760px;color:var(--ist-muted);font-size:17px;line-height:1.65}
.schedule-state{display:flex;align-items:center;justify-content:center;gap:10px;min-height:38px;margin:18px auto 27px;color:var(--ist-muted);font-weight:700;text-align:center}
.schedule-spinner{width:18px;height:18px;border:2px solid #d5deea;border-top-color:var(--ist-blue);border-radius:50%;animation:ist-spin .8s linear infinite;flex:0 0 auto}
@keyframes ist-spin{to{transform:rotate(360deg)}}
.section-label{font-size:13px;letter-spacing:.12em;text-transform:uppercase;font-weight:900;color:var(--ist-blue);margin:0 0 12px}
.featured-lecture{position:relative;overflow:hidden;background:linear-gradient(135deg,#0f1f35,#164f75);color:#fff;border-radius:24px;padding:31px;box-shadow:0 18px 45px rgba(15,31,53,.18);margin-bottom:35px}
.featured-lecture::before{content:"";position:absolute;inset:0 auto 0 0;width:7px;background:var(--ist-gold)}
.featured-lecture::after{content:"";position:absolute;width:230px;height:230px;border-radius:50%;right:-90px;top:-95px;background:rgba(255,255,255,.07)}
.featured-kicker{position:relative;z-index:1;font-size:14px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#f4d98c;margin-bottom:11px}
.featured-date{position:relative;z-index:1;font-size:18px;font-weight:800;opacity:.96;margin-bottom:14px}
.featured-title{position:relative;z-index:1;font-family:'Merriweather',serif;font-size:clamp(25px,4vw,39px);line-height:1.2;margin:0 0 10px;max-width:850px}
.featured-topic{position:relative;z-index:1;color:#dbeafe;font-size:16px;line-height:1.5;margin:-2px 0 12px}
.featured-speaker{position:relative;z-index:1;font-size:20px;font-weight:800;margin:0 0 18px}
.featured-meta{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:10px 18px;font-size:16px;font-weight:700}
.featured-meta span{display:inline-flex;align-items:center;gap:8px}
.schedule-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 24px}
.schedule-admin-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:-8px 0 24px;padding:12px 15px;border:1px solid #e6c980;border-radius:14px;background:#fff8e6;color:var(--ist-navy);font-size:13px}
/* The [hidden] attribute must win over the flex display above.  Without this
   rule the browser's default hidden style is overridden and the admin-only
   toolbar is shown to every visitor. */
.schedule-admin-toolbar[hidden]{display:none !important}
.schedule-admin-toolbar span{color:var(--ist-muted);font-size:12px}
.schedule-admin-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid var(--ist-gold);border-radius:10px;background:linear-gradient(180deg,#d7bc83,#b89457);color:#111;font:800 13px 'Inter',sans-serif;padding:9px 13px;cursor:pointer}
.schedule-admin-button.secondary{background:#fff;color:var(--ist-navy);border-color:var(--ist-border)}
.schedule-filter{border:1px solid var(--ist-border);background:#fff;color:var(--ist-navy);font:inherit;font-weight:800;border-radius:999px;padding:10px 16px;cursor:pointer;transition:.2s}
.schedule-filter:hover{border-color:#9db4c8;transform:translateY(-1px)}
.schedule-filter.active{background:var(--ist-navy);color:#fff;border-color:var(--ist-navy)}
.schedule-date-group{margin:27px 0 34px}
.schedule-date-heading{display:flex;align-items:baseline;gap:10px;margin:0 0 13px;padding-bottom:10px;border-bottom:1px solid var(--ist-border)}
.schedule-date-heading strong{font-size:22px;color:var(--ist-navy)}
.schedule-date-heading span{color:var(--ist-muted);font-weight:700}
.schedule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.schedule-card{background:var(--ist-card);border:1px solid var(--ist-border);border-radius:18px;padding:20px;box-shadow:0 7px 22px rgba(15,23,42,.05)}
.schedule-admin-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px;padding-top:12px;border-top:1px solid var(--ist-border)}
.schedule-admin-actions button{border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:var(--ist-navy);font:800 12px 'Inter',sans-serif;padding:7px 10px;cursor:pointer}
.schedule-admin-actions button[data-admin-schedule-delete]{color:#991b1b;border-color:#fecaca;background:#fff5f5}
.schedule-card-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}
.schedule-time{font-size:22px;font-weight:900;color:var(--ist-navy);white-space:nowrap}
.schedule-location{font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:var(--ist-blue);text-align:right}
.schedule-card h3{font-size:19px;line-height:1.3;margin:0 0 7px;color:var(--ist-ink)}
.schedule-topic{color:var(--ist-muted);font-size:14px;line-height:1.45;margin:-3px 0 9px}
.schedule-speaker{font-weight:800;color:#334155;margin-bottom:9px}
.schedule-venue,.schedule-hebrew-date{color:var(--ist-muted);font-size:14px;line-height:1.45}
.schedule-empty{background:#fff;border:1px dashed #bac8d8;border-radius:20px;text-align:center;padding:34px;color:var(--ist-muted)}
.schedule-admin-modal{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:20px;background:rgba(15,31,53,.58)}
.schedule-admin-modal[hidden]{display:none}
.schedule-admin-dialog{width:min(680px,100%);max-height:min(92vh,800px);overflow:auto;background:#fff;border-radius:20px;padding:22px;box-shadow:0 24px 70px rgba(15,23,42,.28)}
.schedule-admin-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}
.schedule-admin-dialog-head h2{margin:0;color:var(--ist-navy);font-family:'Merriweather',serif;font-size:24px}
.schedule-admin-close{border:0;background:transparent;color:var(--ist-muted);font-size:28px;cursor:pointer;line-height:1}
.schedule-admin-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.schedule-admin-form-grid label{display:grid;gap:5px;color:var(--ist-muted);font-size:12px;font-weight:800}
.schedule-admin-form-grid label.full{grid-column:1/-1}
.schedule-admin-form-grid input,.schedule-admin-form-grid select,.schedule-admin-form-grid textarea{font:500 14px 'Inter',sans-serif;padding:10px;border:1px solid #cbd5e1;border-radius:10px;color:var(--ist-ink);background:#fff}
.schedule-admin-form-grid textarea{min-height:74px;resize:vertical}
.schedule-admin-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.schedule-admin-form-status{min-height:20px;margin-top:12px;color:#b91c1c;font-size:13px;font-weight:700}
.schedule-fallback{margin-top:25px;background:#fff8e6;border:1px solid #ead28b;border-radius:18px;padding:20px}
.schedule-fallback h3{margin:0 0 8px;color:var(--ist-navy)}
.schedule-file-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.schedule-file-links a{display:inline-flex;align-items:center;gap:7px;background:#fff;color:var(--ist-navy);border:1px solid #dfc76e;border-radius:10px;padding:10px 13px;text-decoration:none;font-weight:800}
.live-status-banner{display:flex;align-items:center;justify-content:center;gap:10px;font-weight:900;margin:4px 0 22px;color:var(--ist-live)}
.live-dot{width:11px;height:11px;background:var(--ist-live);border-radius:50%;box-shadow:0 0 0 0 rgba(180,35,24,.45);animation:ist-pulse 1.7s infinite}
@keyframes ist-pulse{70%{box-shadow:0 0 0 10px rgba(180,35,24,0)}100%{box-shadow:0 0 0 0 rgba(180,35,24,0)}}
.live-stage{background:#07111e;border-radius:22px;overflow:hidden;box-shadow:0 18px 46px rgba(7,17,30,.22);margin-bottom:28px}
.live-stage-head{padding:20px 22px;color:white;display:flex;justify-content:space-between;gap:18px;align-items:center}
.live-stage-head h2{margin:0;font-size:22px}
.live-stage-head p{margin:5px 0 0;color:#cbd5e1}
/* V14.1.55: give Vimeo's recurring event player enough vertical room for its
   own playlist navigation and Skip to Live controls; never hide iframe UI. */
.live-frame{position:relative;height:clamp(650px,52vw,760px);padding-top:0;background:#000}
.live-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.live-options{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px;justify-content:center}
.live-option{border:1px solid var(--ist-border);border-radius:12px;background:#fff;color:var(--ist-navy);font:inherit;font-weight:900;padding:11px 15px;cursor:pointer}
.live-option.active{background:var(--ist-live);border-color:var(--ist-live);color:#fff}
.next-live-card{background:linear-gradient(145deg,#fff,#f8fbff);border:1px solid var(--ist-border);border-radius:24px;padding:28px;box-shadow:0 12px 32px rgba(15,23,42,.07);margin-bottom:30px}
.next-live-card h2{font-family:'Merriweather',serif;color:var(--ist-navy);margin:0 0 9px;font-size:30px}
.next-live-card .next-time{font-size:20px;font-weight:900;color:var(--ist-blue);margin-bottom:9px}
.next-live-card .next-speaker{font-weight:800;font-size:18px;margin-bottom:10px}
.next-live-card .next-place{color:var(--ist-muted);font-weight:700}
.upcoming-live-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.upcoming-live-item{border:1px solid var(--ist-border);border-radius:16px;background:#fff;padding:17px}
.upcoming-live-item strong{display:block;color:var(--ist-navy);margin-bottom:5px}
.upcoming-live-item span{display:block;color:var(--ist-muted);font-size:14px;margin-top:4px}
html[dir="rtl"] .featured-lecture::before{left:auto;right:0}
html[dir="rtl"] .schedule-location{text-align:left}
@media(max-width:760px){
  .schedule-shell{width:min(94%,1120px);padding:112px 0 54px}
  .featured-lecture{padding:23px 20px;border-radius:20px}
  .schedule-grid,.upcoming-live-list{grid-template-columns:1fr}
  .schedule-admin-form-grid{grid-template-columns:1fr}.schedule-admin-form-grid label.full{grid-column:auto}
  .schedule-card-top{align-items:center}
  .live-stage-head{align-items:flex-start;flex-direction:column}
}

/* V14.1.17: recent 30-day verification section + permanent original-ad previews */
.recent-schedule-section{margin-top:46px;padding-top:30px;border-top:2px solid var(--ist-border)}
.recent-schedule-note{margin:-4px 0 22px;color:var(--ist-muted);font-size:15px;line-height:1.6;max-width:860px}
.schedule-fallback{margin-top:50px}
.schedule-fallback>p{color:#6b5b2b;margin:0 0 18px;line-height:1.6}
.schedule-ad-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}
.schedule-ad-card{overflow:hidden;background:#fff;border:1px solid #dfc76e;border-radius:16px;box-shadow:0 8px 24px rgba(15,23,42,.06)}
.schedule-ad-preview-link{display:block;background:#eef2f7}
.schedule-ad-image{display:block;width:100%;height:auto;max-height:720px;object-fit:contain;background:#eef2f7}
.schedule-ad-pdf{display:block;width:100%;height:auto;border:0;background:#fff}.schedule-ad-pdf-preview{display:block;width:100%;background:#eef2f7;overflow:hidden}.schedule-ad-pdf-preview canvas{display:block;width:100%;height:auto;background:#fff}
.schedule-ad-generic{min-height:220px;display:grid;place-items:center;font-size:58px;color:var(--ist-muted);background:#eef2f7}
.schedule-ad-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 14px;border-top:1px solid #efe3bb;font-size:12px;color:var(--ist-muted)}
.schedule-ad-footer span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.schedule-ad-footer a{flex:0 0 auto;color:var(--ist-navy);font-weight:900;text-decoration:none}
html[dir="rtl"] .schedule-ad-footer{direction:rtl}
@media(max-width:760px){
  .schedule-ad-grid{grid-template-columns:1fr}
  .schedule-ad-footer{align-items:flex-start;flex-direction:column}
}

/* V14.1.19 schedule/live cleanup */
.schedule-original-heading{text-align:center;margin:0 0 22px;color:var(--ist-navy);font-family:'Merriweather',serif;font-size:30px}
.schedule-ad-footer-link-only{justify-content:center;align-items:center}
.schedule-ad-footer-link-only a{font-size:13px}
.manual-live-access{margin:18px 0 30px;padding:18px;border:1px solid var(--ist-border);border-radius:18px;background:#fff;text-align:center}
.manual-live-access>p{margin:0 0 14px;color:var(--ist-muted);font-weight:700}
.manual-live-buttons{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.manual-live-button{border:1px solid var(--ist-border);border-radius:12px;background:#fff;color:var(--ist-navy);font:inherit;font-weight:900;padding:12px 18px;cursor:pointer}
.manual-live-button:hover,.manual-live-button.active{background:var(--ist-live);border-color:var(--ist-live);color:#fff}
#manualLiveStage{margin-top:18px;text-align:left}
#manualLiveStage:empty{display:none}
.manual-live-stage{margin-bottom:0}
@media(max-width:640px){.live-frame{height:clamp(500px,132vw,650px)}.manual-live-buttons{flex-direction:column}.manual-live-button{width:100%}}

/* V14.1.68: PDF flyers render like picture flyers (no browser PDF chrome). */
.irgun-pdf-preview{position:relative;width:100%;background:#eef2f7;overflow:hidden}
.irgun-pdf-preview-canvas{display:block;width:100%;height:auto;background:#fff}
.irgun-pdf-preview-status{min-height:220px;display:flex;align-items:center;justify-content:center;gap:10px;color:#64748b;font-weight:700;background:#eef2f7}
.irgun-pdf-preview-spinner{width:20px;height:20px;border:3px solid #cbd5e1;border-top-color:#0f1f35;border-radius:50%;animation:irgunPdfSpin .8s linear infinite}
.irgun-pdf-preview-fallback{min-height:220px;display:flex;align-items:center;justify-content:center;color:#0f1f35;font-weight:900;background:#eef2f7}
@keyframes irgunPdfSpin{to{transform:rotate(360deg)}}

/* V14.1.69: keep Hebrew Jerusalem schedule metadata readable inside the English UI. */
.schedule-card h3[dir="rtl"],.schedule-topic[dir="rtl"],.schedule-speaker[dir="rtl"]{text-align:right;unicode-bidi:isolate}
.schedule-venue{display:flex;align-items:flex-start;gap:6px;margin-top:2px}
.schedule-venue i{flex:0 0 auto;margin-top:.18em}
.schedule-venue bdi,.featured-venue bdi{unicode-bidi:isolate}
.schedule-venue bdi[dir="rtl"],.featured-venue bdi[dir="rtl"]{text-align:right}

.featured-scope-note{margin:0 0 10px;font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#795b27}.ist-hebrew .featured-scope-note{text-transform:none;letter-spacing:0}


/* V14.1.99: compact lecture-reminder bell lives directly before the All filter. */
.schedule-reminder-icon{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;flex:0 0 42px;border:1px solid var(--ist-border);border-radius:999px;background:#fff;color:var(--ist-blue);text-decoration:none;box-shadow:0 4px 14px rgba(15,23,42,.05);transition:.2s}
.schedule-reminder-icon i{font-size:17px;line-height:1}
.schedule-reminder-icon:hover,.schedule-reminder-icon:focus-visible{border-color:var(--ist-blue);color:var(--ist-blue);transform:translateY(-1px);outline:none}


/* V14.2.27 - Keep schedule controls visually centered and inside the viewport. */
.section-label{text-align:center}
.schedule-toolbar{justify-content:center;align-items:center}
.schedule-empty .schedule-spinner{display:inline-block;vertical-align:-3px;margin-inline-end:8px}
