/* ==========================================================================
   Salafi Prayer Times — banner view
   Uses the shared tokens in tokens.css.
   A wide, low-profile strip: a date + "next prayer" pill on top, then a
   self-wrapping grid of prayer tiles. No horizontal scrollbars, no boxed
   borders — the tiles reflow to fit whatever width they're given.
   ========================================================================== */

.spt-banner {
  container: spt-banner / inline-size;
  margin: 1.25rem auto;
  padding: clamp(1rem, 3.5vw, 1.4rem);
}

/* ----- Head: date + next prayer pill ------------------------------------- */
.spt-banner-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  justify-content: space-between;
}

.spt-banner-title {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.spt-banner-title .spt-banner-date {
  color: var(--spt-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.spt-banner-next {
  align-items: center;
  background: var(--spt-accent-well);
  border-radius: 999px;
  display: inline-flex;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.5rem 0.9rem;
}

.spt-banner-next-icon {
  align-items: center;
  color: var(--spt-accent);
  display: inline-flex;
  flex: 0 0 auto;
}

.spt-banner-next-icon svg {
  font-size: 1.15rem;
}

.spt-banner-next-text {
  align-items: baseline;
  display: flex;
  gap: 0.5rem;
  min-width: 0;
}

.spt-banner-next-times {
  align-items: baseline;
  display: inline-flex;
  gap: 0.375rem;
}

.spt-banner-next-begin {
  color: var(--spt-muted);
  font-family: var(--spt-font);
  font-feature-settings: "tnum" 1;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.spt-banner-next-dot {
  color: var(--spt-faint);
  font-size: 0.85rem;
  line-height: 1;
}

.spt-banner-next-value {
  color: var(--spt-accent);
  font-family: var(--spt-font);
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 1;
}

.spt-banner-next-value.is-clock {
  font-size: 1.1rem;
  white-space: nowrap;
}

.spt-banner-next-value.is-status {
  font-size: 0.85rem;
  white-space: normal;
}

/* ----- Tiles ------------------------------------------------------------- */
.spt-banner-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  margin-top: 1rem;
}

.spt-banner-cell {
  background: var(--spt-well);
  border-radius: var(--spt-r-sm);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.85rem 0.95rem;
}

/* The next prayer's tile: a neutral ring + weight. The accent belongs to
   the pill alone. */
.spt-banner-cell.is-next {
  background: var(--spt-well);
  box-shadow: inset 0 0 0 1px var(--spt-line-strong);
}

.spt-banner-cell.is-next .spt-banner-prayer {
  font-weight: 800;
}

.spt-banner-prayer {
  align-items: center;
  color: var(--spt-text);
  display: flex;
  font-size: 0.95rem;
  font-weight: 650;
  gap: 0.5rem;
  line-height: 1;
  min-width: 0;
  white-space: nowrap;
}

.spt-banner-icon {
  align-items: center;
  color: var(--spt-muted);
  display: inline-flex;
  flex: 0 0 auto;
}

.spt-banner-icon svg {
  font-size: 1.1rem;
}


.spt-banner-times {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.spt-banner-group {
  align-items: baseline;
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
}

.spt-banner-label {
  color: var(--spt-muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.spt-banner-time {
  color: var(--spt-text);
  font-family: var(--spt-font);
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  line-height: 1;
  text-align: right;
}

.spt-banner-time.is-clock {
  font-size: 1.05rem;
  white-space: nowrap;
}

.spt-banner-time.is-status {
  font-size: 0.8rem;
  line-height: 1.25;
  overflow-wrap: break-word;
  white-space: normal;
}

/* The adhān reads slightly quieter so the jamā'ah — the time the masjid
   actually prays — carries each tile (the day card and display idiom). */
.spt-banner-group-begin .spt-banner-time {
  color: var(--spt-muted);
  font-weight: 600;
}

.spt-banner-group-jamaa .spt-banner-time.is-clock {
  color: var(--spt-text);   /* weight separates it — the accent belongs to
                               the pill alone, never the tiles */
  font-weight: 750;
}

/* Non-clock jamā'ah value (e.g. a "combining" note) uses the full tile width. */
.spt-banner-note {
  color: var(--spt-muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  overflow-wrap: break-word;
}

/* ----- Narrow container (phones): the pill wraps under the title, so it
   needs clearer air before the tiles start ---------------------------------- */
@container spt-banner (max-width: 36rem) {
  .spt-banner-head {
    gap: 0.875rem 1.2rem;
  }

  .spt-banner-grid {
    margin-top: 1.5rem;
  }
}

/* ----- Very narrow container --------------------------------------------- */
@container spt-banner (max-width: 22rem) {
  .spt-banner-grid {
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  }
}
