.schedule-content { padding-bottom: calc(34px + env(safe-area-inset-bottom)); }

.schedule-hero {
  height: var(--hero-height);
  min-height: var(--hero-height);
  padding: 26px 18px;
  color: var(--white);
  background: var(--brand-gradient);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.schedule-hero h1 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 29px;
  line-height: 1.1;
  font-weight: var(--weight-bold);
  letter-spacing: -.02em;
}
.schedule-instruction {
  margin: 0;
  color: var(--today);
  font-size: 13px;
  line-height: 1.25;
  font-weight: var(--weight-medium);
}

.schedule-venues {
  margin-top: 0;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
}
.schedule-venues[data-count="2"] {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.schedule-venues[data-pending="true"] {
  outline: 2px solid var(--today);
  outline-offset: 6px;
  border-radius: 10px;
}
.schedule-venues[data-pending="true"] .schedule-venue {
  color: var(--today);
}
.schedule-venue {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  padding: 4px 3px;
  color: var(--white);
  background: var(--glass-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  text-align: center;
}
.schedule-venue > span,
.schedule-venue-address {
  color: inherit;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 400;
}
.schedule-venue > span { margin-top: auto; }
.schedule-venue-copy { width: 100%; min-width: 0; }
.schedule-venue strong {
  max-width: 100%;
  color: inherit;
  font-size: var(--venue-title-size);
  line-height: 1.2;
  font-weight: var(--weight-bold);
  white-space: nowrap;
}
.schedule-venue strong > span { font: inherit; }
.schedule-venues[data-wrap-names="true"] .schedule-venue-brand { display: block; }
.schedule-venue .schedule-venue-address {
  display: block;
  margin-top: 4px;
  line-height: 1.25;
}
.schedule-venue[aria-pressed="true"] {
  border-color: var(--white);
  color: var(--blue-strong);
  background: var(--brand-control);
}

.schedule-periods {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.schedule-period-slot { height: 34px; }
.schedule-freshness-slot { height: 34px; display: flex; align-items: center; justify-content: center; }
.schedule-period {
  min-width: 84px;
  min-height: 34px;
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  padding: 6px 10px;
  color: var(--white);
  background: transparent;
  font-size: 13px;
  line-height: 1.2;
  font-weight: var(--weight-medium);
}
.schedule-period[aria-selected="true"] {
  border-color: var(--white);
  color: var(--blue-strong);
  background: var(--white);
}
.schedule-venue:focus-visible,
.schedule-period:focus-visible {
  outline: 2px solid var(--today);
  outline-offset: 2px;
}
.schedule-freshness {
  margin: 0;
  color: var(--today);
  font-size: 12px;
  line-height: 1.4;
  font-weight: var(--weight-medium);
}
.schedule-expired > p { margin: 0; color: var(--ink); font-size: var(--text-body); line-height: 1.5; text-align: center; }

.schedule-results { margin-top: var(--section-gap); padding: 0; display: grid; gap: var(--section-gap); }
.schedule-results:empty { display: none; }
.schedule-day-card {
  min-width: 0;
  padding: 24px 8px 20px;
  border-radius: 10px;
  box-shadow: none;
}
.schedule-day-card:not(.whatsapp-group-card) {
  height: auto !important;
  min-height: 0 !important;
}
.schedule-day-card > h3 {
  margin: 0 8px 12px;
  color: var(--headline);
  font-size: 23px;
  line-height: 1.08;
  font-weight: var(--weight-bold);
  text-align: center;
}
.prayer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}
.prayer-row {
  min-width: 0;
  min-height: 42px;
  padding: 7px 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: var(--text-body);
  line-height: 1.22;
}
.schedule-day-card:nth-of-type(odd) .prayer-row:nth-child(odd) { background: var(--soft-green); }
.schedule-day-card:nth-of-type(even) .prayer-row:nth-child(odd) { background: var(--soft-blue); }
.prayer-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
}
.prayer-label { color: var(--ink); font-weight: var(--weight-medium); }
.prayer-note {
  color: var(--secondary);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 400;
  text-align: left;
}
.prayer-time {
  min-width: 0;
  flex: 0 0 auto;
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.schedule-day-card:nth-of-type(odd) .prayer-time { color: var(--green); }
.schedule-day-card:nth-of-type(even) .prayer-time { color: var(--blue); }
.prayer-ampersand { color: var(--ink); }
.schedule-source-note {
  margin: 0 8px;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 400;
  text-align: center;
}

.schedule-bottom-spacer { height: calc(18px + env(safe-area-inset-bottom)); }

@media (max-width: 1440px) {
  .schedule-hero { padding-left: 12px; padding-right: 12px; }
  .schedule-hero h1 { font-size: 27px; }
  .schedule-venue strong { --venue-title-size: 13px; }
  .schedule-venue-copy { line-height: 1.15; }
  .schedule-venue .schedule-venue-address { margin-top: 0; }
  .schedule-period { min-width: 78px; padding-left: 8px; padding-right: 8px; }
  .prayer-row { gap: 8px; }
}
