/* Prayer timetable: compact 30-day rolling view. */
#prayer-times {
  background: #f3f8f6;
  padding: clamp(1.6rem, 3vw, 2.5rem) 0;
  color: #14352b;
  font-family: 'Cairo', Arial, sans-serif;
  font-size: 16px;
}

.prayer-shell {
  max-width: 1040px;
  margin: auto;
  padding: 0 16px;
}

.prayer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .7rem;
}

.prayer-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 750;
  color: #1d6845;
  font-size: .79rem;
}

#prayer-heading {
  color: #102f26;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.3;
  margin: .12rem 0 0;
}

.prayer-live {
  display: grid;
  justify-items: end;
  gap: .05rem;
  padding: .48rem .72rem;
  border: 1px solid #cbe1d4;
  background: #fff;
  border-radius: 11px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 16px rgba(20, 73, 51, .05);
}

#prayer-clock {
  font: 800 clamp(1.15rem, 2.5vw, 1.45rem)/1.15 system-ui, sans-serif;
  color: #145d3d;
  white-space: nowrap;
}

#prayer-live-date {
  color: #5a7165;
  font-size: .72rem;
  font-weight: 650;
}

.prayer-tools {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(300px, 1fr);
  align-items: end;
  gap: .6rem 1rem;
  margin-bottom: .6rem;
}

.prayer-location-bar {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: .45rem;
}

.prayer-location-current {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  min-width: 0;
  color: #164d37;
}

.prayer-location-current i {
  font-size: 1rem;
  color: #168250;
  flex: 0 0 auto;
}

#prayer-location {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .9rem;
  font-weight: 800;
}

.prayer-action-icons {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  margin-inline-start: auto;
}

.prayer-search-form {
  margin: 0;
}

.prayer-search-controls {
  position: relative;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.prayer-search-controls .prayer-input-icon {
  position: absolute;
  inset-inline-start: .78rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b8578;
  pointer-events: none;
  z-index: 1;
}

.prayer-search-controls input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: .45rem .75rem;
  padding-inline-start: 2.25rem;
  border: 1px solid #b9d0c2;
  border-radius: 10px;
  background: #fff;
  color: #173b2e;
  font-size: .86rem;
  outline: none;
}

.prayer-search-controls input::placeholder {
  color: #82958c;
}

.prayer-search-controls input:focus {
  border-color: #288560;
  box-shadow: 0 0 0 3px rgba(40, 133, 96, .12);
}

.prayer-icon-btn,
.prayer-month-nav button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #aac9b6;
  border-radius: 10px;
  background: #fff;
  color: #145d3d;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.prayer-icon-btn i,
.prayer-month-nav button i {
  font-size: 1.05rem;
}

/* The mosque shortcut is intentionally the only action that uses text. */
.prayer-mosque-btn {
  width: auto;
  height: 40px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem .8rem;
  border: 1px solid #8fbea1;
  border-radius: 10px;
  background: #e8f5ec;
  color: #145d3d;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.prayer-mosque-btn:hover {
  background: #d9efe2;
  border-color: #63a17e;
}

#prayer-search {
  color: #fff;
  background: #146343;
  border-color: #146343;
}

.prayer-icon-btn:hover,
.prayer-month-nav button:hover {
  background: #e8f5ec;
  border-color: #78af91;
}

#prayer-search:hover {
  color: #fff;
  background: #0f5739;
}

#prayer-times button:active:not(:disabled) {
  transform: translateY(1px);
}

#prayer-times button:focus-visible,
#prayer-times input:focus-visible,
.prayer-table-wrap:focus-visible {
  outline: 3px solid #d49932;
  outline-offset: 2px;
}

#prayer-times button:disabled {
  opacity: .48;
  cursor: wait;
}

.prayer-monthbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  margin: .4rem 0 .45rem;
}

.prayer-month-nav {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.prayer-month-nav strong {
  min-width: 11.5rem;
  text-align: center;
  font-size: .85rem;
  color: #234d3e;
  font-weight: 800;
}

.prayer-month-nav button {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 9px;
}

#prayer-today {
  margin-inline-start: .15rem;
}

.prayer-upcoming {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: #176446;
  background: #e8f5ec;
  border: 1px solid #c6e2d1;
  border-radius: 999px;
  padding: .3rem .68rem;
  font-size: .78rem;
  font-weight: 800;
}

.prayer-upcoming:empty {
  display: none;
}

.prayer-table-wrap {
  overflow: auto;
  max-height: 320px;
  border: 1px solid #c9dccf;
  border-radius: 11px;
  background: #fff;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  box-shadow: 0 8px 22px rgba(20, 73, 51, .045);
}

.prayer-table {
  width: 100%;
  min-width: 650px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .79rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.prayer-table th,
.prayer-table td {
  padding: .43rem .35rem;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid #e9f0eb;
}

.prayer-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  color: #fff;
  background: #174735;
  font-weight: 800;
  padding-block: .55rem;
}

.prayer-table th:first-child {
  position: sticky;
  inset-inline-start: 0;
  z-index: 2;
  min-width: 104px;
  text-align: start;
  padding-inline: .62rem;
  background: #fff;
  border-inline-end: 1px solid #e3ece5;
}

.prayer-table thead th:first-child {
  z-index: 5;
  background: #174735;
}

.prayer-day-number {
  display: inline-block;
  min-width: 1.3rem;
  font-weight: 850;
}

.prayer-day-meta {
  display: inline-block;
  margin-inline-start: .28rem;
  color: #698075;
  font-size: .68rem;
  font-weight: 650;
}

.prayer-table tbody tr:nth-child(even) {
  background: #fafcfb;
}

.prayer-table tbody tr:hover {
  background: #eef7f0;
}

.prayer-table tbody tr.is-friday:not(.is-today) {
  background: #fdf9ed;
}

.prayer-table tbody tr.is-today,
.prayer-table tbody tr.is-today th {
  background: #d9f2e2;
  color: #103e28;
  font-weight: 850;
}

.prayer-table tbody tr.is-today th {
  position: sticky;
}

.prayer-table tbody tr.is-today th::before {
  content: '';
  position: absolute;
  inset-block: 3px;
  inset-inline-start: 0;
  width: 4px;
  border-radius: 5px;
  background: #18a45d;
}

.prayer-table td.is-next-prayer {
  background: #fce8a6;
  color: #463200;
  box-shadow: inset 0 0 0 2px #dfb03b;
  font-weight: 850;
}

.prayer-table td time {
  direction: ltr;
  display: inline-block;
}

.prayer-table .prayer-loading {
  padding: 1.5rem;
  white-space: normal;
  color: #566d61;
}

.prayer-status {
  margin: .4rem 0 .25rem;
  min-height: 1.25em;
  color: #60776b;
  font-size: .72rem;
}

.prayer-status.is-error {
  color: #a63227;
  font-weight: 700;
}

.prayer-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .2rem .8rem;
  border-top: 1px solid #d7e4da;
  padding-top: .45rem;
}

.prayer-footer span {
  color: #173f30;
  font-weight: 750;
  font-size: .8rem;
}

.prayer-footer time {
  color: #145d3d;
  font-weight: 900;
  white-space: nowrap;
}

.prayer-footer small {
  color: #667b70;
  font-size: .68rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .prayer-tools {
    grid-template-columns: 1fr;
  }

  .prayer-location-bar {
    order: 1;
  }

  .prayer-search-form {
    order: 2;
  }

  .prayer-live {
    width: 100%;
    justify-items: center;
  }

  .prayer-monthbar {
    align-items: stretch;
  }

  .prayer-month-nav {
    width: 100%;
    justify-content: center;
  }

  .prayer-upcoming {
    margin-inline: auto;
  }

  .prayer-table-wrap {
    max-height: 300px;
  }

  .prayer-table {
    min-width: 600px;
    font-size: .75rem;
  }

  .prayer-table th,
  .prayer-table td {
    padding: .4rem .3rem;
  }
}

@media (max-width: 480px) {
  #prayer-times {
    padding-block: 1.35rem;
  }

  .prayer-shell {
    padding-inline: 11px;
  }

  .prayer-top {
    gap: .55rem;
  }

  .prayer-location-current {
    max-width: calc(100% - 92px);
  }

  .prayer-search-controls input {
    height: 38px;
    font-size: .8rem;
  }

  .prayer-icon-btn {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .prayer-mosque-btn {
    height: 38px;
    padding-inline: .62rem;
    font-size: .72rem;
  }

  .prayer-month-nav strong {
    min-width: 9.6rem;
    font-size: .76rem;
  }

  .prayer-table-wrap {
    max-height: 282px;
  }

  .prayer-table {
    min-width: 575px;
  }

  .prayer-table th:first-child {
    min-width: 94px;
  }

  .prayer-day-meta {
    display: block;
    margin: .08rem 0 0;
  }
}

@media (max-width: 767px) {
  #hero.hero-section { min-height: 85svh !important; padding-block: 5.5rem 2.5rem; }
}

#hero .ticker-wrap .ticker {
  animation: none !important;
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

#hero #tickerText { white-space: normal; }
#mainVideo[hidden], #videoEmpty[hidden], #playMainVideo[hidden] { display: none !important; }
