/*! banner-module-v1 · E6e clean · companion/banner isolation only · educational only */
:root {
  color-scheme: dark;
  --gold: #e8d5a3;
  --edge: rgba(212, 180, 90, 0.4);
  --plaque: rgba(8, 18, 14, 0.82);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto;
  overflow: hidden;
  font-family: "Quicksand", system-ui, sans-serif;
  background: transparent;
  color: #e8f0ec;
}
.banner {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #0a1210;
  border-bottom: 1px solid var(--edge);
}
.banner-media { position: absolute; inset: 0; z-index: 0; opacity: 0.32; }
.banner-still-img, .banner-live-iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0;
}
.banner-live-iframe[hidden] { display: none !important; }

.banner-overlay {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(10rem, 12rem) minmax(0, 1fr) minmax(10rem, 12rem);
  gap: 0.35rem;
  padding: 0.35rem 0.4rem;
  align-items: start;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(8,16,12,.5), rgba(8,16,12,.78));
}

.plaque {
  border-radius: 14px;
  border: 1px solid var(--edge);
  background: linear-gradient(155deg, rgba(255,255,255,.07), rgba(12,28,22,.4)), var(--plaque);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 8px 18px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
  padding: 0.35rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-self: start;
  min-height: 0;
  overflow: hidden;
}
.hijri-cal-section {
  border-color: rgba(201,162,39,.42);
  background: linear-gradient(155deg, rgba(201,162,39,.12), rgba(8,18,14,.88));
}
.salah-times-section {
  border-color: rgba(120,200,150,.32);
  background: linear-gradient(155deg, rgba(15,76,58,.32), rgba(8,18,14,.9));
}
.plaque-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  margin-bottom: 0.2rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(212,180,90,.22);
}
.plaque-head .moon-emoji, .plaque-head .salah-allah {
  font-size: 1.05rem;
  color: var(--gold);
}
.salah-allah {
  font-family: Amiri, serif;
  width: 1.9rem; height: 1.9rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(212,180,90,.45);
  background: radial-gradient(circle at 35% 30%, rgba(40,90,70,.95), rgba(8,24,18,.98));
}
.plaque h2 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}
.moon-lab { font-size: 0.55rem; opacity: 0.85; }
#hijri-cal-meta { text-align: center; font-size: 0.65rem; margin: 0.05rem 0; opacity: 0.9; }

.hijri-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.08rem;
  font-size: 0.62rem;
  margin: 0.12rem 0;
}
.hijri-cal-grid .hc-wd { text-align: center; opacity: 0.65; font-weight: 800; font-size: 0.55rem; }
.hijri-cal-grid .hc-day { text-align: center; padding: 0.12rem 0; border-radius: 6px; }
.hijri-cal-grid .hc-day.is-today {
  background: rgba(212,180,90,.38);
  color: #fff8e0;
  font-weight: 800;
}
.hijri-cal-grid .hc-empty { visibility: hidden; }

.hijri-temps {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  align-items: center;
}
.ht-item, .c5-temp-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
}
.ht-label { display: inline-flex; align-items: center; gap: 0.25rem; }
.ht-svg { display: inline-block; width: 15px; height: 15px; color: var(--gold); vertical-align: -2px; }

/* Next glass strips */
.next-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  width: 100%;
  margin: 0.28rem 0 0.12rem;
  padding: 0.32rem 0.4rem;
  border-radius: 12px;
  border: 1px solid rgba(212,180,90,.42);
  background: linear-gradient(155deg, rgba(255,255,255,.07), rgba(12,28,22,.35)), rgba(8,18,14,.85);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 6px 14px rgba(0,0,0,.25);
  text-align: center;
}
.next-strip-label {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232,213,163,.85);
}
.next-strip-main, .next-strip-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #f0e6c8;
  line-height: 1.25;
}
.next-prayer-plaque .np-name { color: #b8f0c8; font-weight: 800; }
.next-prayer-plaque .np-count { color: #e8d5a3; font-variant-numeric: tabular-nums; }
.next-prayer-plaque .np-sep { opacity: 0.5; }

/* Center */
.banner-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
  padding: 0.3rem 0.35rem 0.35rem;
}
.bismillah {
  margin: 0;
  font-family: Amiri, "Noto Naskh Arabic", serif;
  font-size: 0.88rem;
  color: var(--gold);
}
.brand {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 1rem;
  font-weight: 800;
  color: #f3efe4;
}
.title-icon, .title-icon-svg { color: var(--gold); display: inline-block; vertical-align: -3px; }
.brand .ondev {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(120,200,150,.45);
  background: rgba(30,100,70,.35);
  color: #c8f0d8;
}
.sub { margin: 0; font-size: 0.68rem; opacity: 0.9; }

.rabbana-box {
  width: 100%;
  max-width: 34rem;
  padding: 0.35rem 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--edge);
  background: rgba(6,16,12,.78);
}
.rabbana-nav { display: flex; align-items: center; justify-content: center; gap: 0.45rem; margin-bottom: 0.15rem; }
.rabbana-cycle {
  width: 1.7rem; height: 1.7rem; border-radius: 999px;
  border: 1px solid var(--edge); background: rgba(0,0,0,.35); color: #f0e6c8; cursor: pointer;
}
#rabbana-count { font-size: 0.65rem; font-weight: 700; }
.rabbana-arabic {
  font-family: Amiri, "Noto Naskh Arabic", serif;
  font-size: 1rem;
  line-height: 1.45;
  color: #f0e6c8;
  min-height: 1.4rem;
}
.rabbana-english { font-size: 0.74rem; margin-top: 0.1rem; color: #dce8e0; min-height: 1rem; }
.rabbana-ref { font-size: 0.65rem; color: #c9a84c; margin-top: 0.05rem; }

/* AV 2 rows */
.av-classic.av-grid2 {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  max-width: 36rem;
  margin: 0.15rem 0 0;
  padding: 0.28rem 0.3rem;
  border-radius: 12px;
  border: 1px solid var(--edge);
  background: rgba(6,16,12,.85);
}
.av-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
}
.pill, .pill-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: none;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.pill-stills { background: #c62828; color: #fff; }
.pill-live { background: #2e7d32; color: #fff; }
.pill-stills.is-active, .pill-live.is-active { box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.pill-select {
  background: #1b5e4a;
  color: #e8f5e9;
  border: 1px solid rgba(212,180,90,.3);
  max-width: 7.5rem;
}
.pill-listen { background: #f5f5f5; color: #0a1812; }
.pill-icon { background: rgba(15,50,38,.95); color: #e8d5a3; border: 1px solid rgba(212,180,90,.3); }
.pill-vol { width: 4.5rem; accent-color: #c4a35a; }
.pill-surah-toggle {
  background: rgba(160,120,40,.85);
  color: #fff8e0;
  border-radius: 10px;
  min-height: 1.65rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(212,180,90,.4);
}
.surah-combo { position: relative; z-index: 40; }
.surah-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.3rem);
  width: 17rem;
  max-width: 80vw;
  min-height: 12rem;
  padding: 0.4rem;
  border-radius: 12px;
  border: 1px solid rgba(212,180,90,.45);
  background: #0c1a14;
  box-shadow: 0 14px 32px rgba(0,0,0,.5);
  z-index: 50;
}
.surah-panel[hidden] { display: none !important; }
.surah-search-in {
  display: block;
  width: 100%;
  margin-bottom: 0.3rem;
  border-radius: 8px;
  border: 1px solid rgba(212,180,90,.4);
  background: #152820;
  color: #f0e6c8;
  font-size: 0.76rem;
  padding: 0.35rem 0.45rem;
  min-height: 2rem;
}
.surah-list-in {
  display: block;
  width: 100%;
  min-height: 9rem;
  max-height: 11rem;
  border-radius: 8px;
  border: 1px solid rgba(212,180,90,.28);
  background: #0f2018;
  color: #eef6f0;
  font-size: 0.76rem;
}

/* Salah list */
#hijri-local-loc, .salah-city {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0.05rem 0 0.15rem;
}
.salah-times-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.salah-times-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.1rem 0;
  font-size: 0.74rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.azan-row, .salah-loc-refresh { font-size: 0.65rem; margin-top: 0.15rem; text-align: center; }
.salah-loc-refresh {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: rgba(0,0,0,.28);
  color: var(--gold);
  padding: 0.28rem 0.45rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .banner-overlay { grid-template-columns: 1fr; }
  html, body { overflow: auto; }
}


/* Desktop full-width governance 20261113W1 — overlay + banner fill viewport */
.banner,
#clarity-final-banner-controls-v2 {
  width: 100% !important;
  max-width: none !important;
}
.banner-overlay {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: clamp(0.5rem, 1.5vw, 1.25rem) !important;
  padding-right: clamp(0.5rem, 1.5vw, 1.25rem) !important;
  box-sizing: border-box !important;
}
@media (min-width: 1100px) {
  .banner-overlay {
    grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr) minmax(11rem, 14rem) !important;
    gap: 0.75rem !important;
  }
}
