/* Prayer experience — MD/DC center switcher + table + next prayer */
.fhf-prayer-exp {
  background: var(--fhf-white, #fff);
  border: 1px solid var(--fhf-border, #e4e8ee);
  border-radius: 16px;
  box-shadow: var(--fhf-shadow, 0 10px 30px rgba(11,42,63,.08));
  padding: 1.25rem 1.35rem 1.5rem;
}

.fhf-center-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}
.fhf-center-switch__btn {
  appearance: none;
  border: 1px solid var(--fhf-border, #e4e8ee);
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  text-align: start;
  cursor: pointer;
  min-height: 64px;
  color: var(--fhf-navy, #0B2A3F);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.fhf-center-switch__btn strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
}
.fhf-center-switch__short { display: none; }
.fhf-center-switch__btn span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--fhf-muted, #5c6b7a);
}
.fhf-center-switch__btn.is-active {
  background: var(--fhf-green, #006B4F);
  border-color: var(--fhf-green, #006B4F);
  color: #fff;
}
.fhf-center-switch__btn.is-active span { color: rgba(255,255,255,0.85); }
.fhf-center-switch__btn:not(.is-active) {
  background: #f3f5f7;
  color: var(--fhf-navy, #0B2A3F);
}
.fhf-center-switch__btn:focus-visible {
  outline: 2px solid var(--fhf-gold, #C79A2B);
  outline-offset: 2px;
}

.fhf-prayer-exp__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.fhf-prayer-exp__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fhf-gold, #C79A2B);
  font-weight: 700;
}
.fhf-prayer-exp__title {
  margin: 0.2rem 0 0.35rem;
  font-family: var(--fhf-display, Georgia, serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--fhf-navy, #0B2A3F);
}
.fhf-prayer-exp__dates {
  margin: 0;
  color: var(--fhf-muted, #5c6b7a);
  font-size: 0.92rem;
}

.fhf-prayer-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.1rem;
  align-items: start;
}

.fhf-prayer-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fhf-prayer-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 280px;
}
.fhf-prayer-table th,
.fhf-prayer-table td {
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--fhf-border, #e4e8ee);
  text-align: start;
  font-size: 0.95rem;
}
.fhf-prayer-table thead th {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fhf-muted, #5c6b7a);
  font-weight: 700;
}
.fhf-prayer-table tbody th {
  color: var(--fhf-navy, #0B2A3F);
  font-weight: 700;
}
.fhf-prayer-table tr.is-next {
  background: var(--fhf-green-soft, rgba(0,107,79,.08));
}
.fhf-prayer-table tr.is-next th {
  color: var(--fhf-green, #006B4F);
  box-shadow: inset 3px 0 0 var(--fhf-gold, #C79A2B);
}
body.fhf-rtl .fhf-prayer-table tr.is-next th {
  box-shadow: inset -3px 0 0 var(--fhf-gold, #C79A2B);
}
.fhf-prayer-audio-col { width: 28px; text-align: end !important; }
.fhf-prayer-row-icon { opacity: 0.55; }

.fhf-prayer-next {
  background: linear-gradient(160deg, #0a4d3a 0%, var(--fhf-green, #006B4F) 55%, #0B2A3F 140%);
  color: #fff;
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1.2rem;
}
.fhf-prayer-next__label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 700;
}
.fhf-prayer-next__name {
  font-family: var(--fhf-display, Georgia, serif);
  font-size: 1.75rem;
  margin: 0.25rem 0;
  font-weight: 700;
}
.fhf-prayer-next__countdown {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--fhf-gold-soft, #f4e8c4);
}
.fhf-prayer-next__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
  opacity: 0.95;
}
.fhf-prayer-next__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.fhf-prayer-action {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
}
.fhf-prayer-action.is-secondary {
  background: transparent;
}
.fhf-prayer-action:hover { background: rgba(255,255,255,0.22); color: #fff; }

.fhf-jummah {
  margin-top: 0.9rem;
  background: #fff;
  border: 1px solid var(--fhf-border, #e4e8ee);
  border-radius: 14px;
  padding: 0.95rem 1rem;
}
.fhf-jummah h3 {
  margin: 0 0 0.75rem;
  font-family: var(--fhf-display, Georgia, serif);
  font-size: 1.05rem;
  color: var(--fhf-navy, #0B2A3F);
}
.fhf-jummah__grid {
  display: grid;
  gap: 0.65rem;
}
.fhf-jummah__card h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: var(--fhf-green, #006B4F);
}
.fhf-jummah__card p {
  margin: 0.15rem 0;
  font-size: 0.9rem;
  color: var(--fhf-text, #1a2430);
}
.fhf-jummah__loc { color: var(--fhf-muted, #5c6b7a) !important; font-size: 0.82rem !important; }

.fhf-prayer-privacy {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: var(--fhf-bg, #f7f5f1);
  border-radius: 12px;
  border: 1px dashed var(--fhf-border, #e4e8ee);
}
.fhf-prayer-privacy .fhf-prayer-action {
  color: var(--fhf-navy, #0B2A3F);
  border-color: var(--fhf-border, #e4e8ee);
  background: #fff;
  margin-inline-end: 0.35rem;
}

.fhf-prayer-notify {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--fhf-border, #e4e8ee);
}
.fhf-prayer-prefs {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}
.fhf-prayer-prefs label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .fhf-prayer-layout { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  .fhf-prayer-exp { padding: 0.85rem 0.9rem 1rem; border-radius: 14px; }
  .fhf-center-switch { gap: 0.45rem; margin-bottom: 0.75rem; }
  /* Must beat .fhf-center-switch__btn strong { display:block } */
  .fhf-center-switch__btn .fhf-center-switch__full { display: none; }
  .fhf-center-switch__btn .fhf-center-switch__short { display: block; font-size: 1rem; }
  .fhf-center-switch__btn {
    min-height: 52px;
    text-align: center;
    padding: 0.55rem 0.45rem;
    width: 100%;
  }
  .fhf-center-switch__btn span {
    font-size: 0.78rem;
    line-height: 1.25;
    white-space: normal;
  }
  .fhf-prayer-exp__head { margin-bottom: 0.55rem; }
  .fhf-prayer-exp__title { font-size: clamp(1.1rem, 4.8vw, 1.3rem); margin: 0.1rem 0 0.2rem; }
  .fhf-prayer-exp__dates { font-size: 0.86rem; }
  .fhf-prayer-table {
    min-width: 0;
    table-layout: fixed;
  }
  .fhf-prayer-table th:nth-child(1),
  .fhf-prayer-table td:nth-child(1) { width: 34%; }
  .fhf-prayer-table th:nth-child(2),
  .fhf-prayer-table td:nth-child(2) { width: 33%; }
  .fhf-prayer-table th:nth-child(3),
  .fhf-prayer-table td:nth-child(3) { width: 33%; }
  .fhf-prayer-table th,
  .fhf-prayer-table td {
    padding: 0.45rem 0.3rem;
    font-size: 0.9rem;
    line-height: 1.25;
    word-break: break-word;
    height: 38px;
  }
  .fhf-prayer-table thead th { font-size: 0.7rem; padding-bottom: 0.35rem; }
  .fhf-prayer-next {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "label label"
      "name countdown"
      "meta meta"
      "actions actions";
    gap: 0.1rem 0.75rem;
    padding: 0.9rem 1rem;
    margin-top: 0.55rem;
  }
  .fhf-prayer-next__label { grid-area: label; }
  .fhf-prayer-next__name { grid-area: name; font-size: 1.35rem; margin: 0; }
  .fhf-prayer-next__countdown {
    grid-area: countdown;
    align-self: center;
    justify-self: end;
    margin: 0;
    font-size: 1.05rem;
  }
  .fhf-prayer-next__meta { grid-area: meta; margin-bottom: 0.45rem; font-size: 0.88rem; }
  .fhf-prayer-next__actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }
  .fhf-prayer-next__actions .fhf-prayer-action {
    justify-content: center;
    width: 100%;
    min-height: 42px;
    font-size: 0.8rem;
    padding: 0.35rem 0.45rem;
  }
  .fhf-jummah { margin-top: 0.65rem; padding: 0.8rem 0.85rem; }
  .fhf-jummah h3 { font-size: 1rem; margin-bottom: 0.55rem; }
  .fhf-prayer-audio-col { display: none; }
}

@media (max-width: 360px) {
  .fhf-prayer-next__actions { grid-template-columns: 1fr; }
  .fhf-center-switch__btn span { font-size: 0.72rem; }
}
