/* Prayer Week hub page — laid out like the flyer. */

.hub {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 28px 16px 0;
}

/* ---------- Hero ---------- */
.hub-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: start;
  padding-top: 12px;
}
.hub-hero__text { min-width: 0; }
.hub-hero .pw-redpill { font-size: clamp(0.8rem, 0.5rem + 1vw, 1.05rem); transform: rotate(-2deg); }
.hub-title {
  margin-top: 0.3em;
  font-size: clamp(3.2rem, 1.6rem + 7vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-shadow: 0 0.04em 0 #fff, 0 0.08em 0.2em rgba(6, 60, 42, 0.12);
}
.hub-title span { display: block; }
.hub-underline { display: block; width: min(420px, 80%); height: 18px; margin: 6px 0 4px; }
.hub-tagline {
  margin: 0.15em 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 1rem + 2.4vw, 2.6rem);
  color: var(--red);
}
.hub-hero__art {
  position: relative;
  width: clamp(120px, 22vw, 240px);
}
.hub-hero__art img { display: block; width: 100%; height: auto; }
.hub-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.hub-chips li {
  padding: 0.45em 1.05em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.95rem, 0.8rem + 0.4vw, 1.15rem);
}
.hub-chips li:nth-child(1) { background: #FFDDE1; color: #A21E24; }
.hub-chips li:nth-child(2) { background: #D2E8F6; color: #065490; }
.hub-chips li:nth-child(3) { background: #E2F0CC; color: #0C541E; }
.hub-chips li:nth-child(4) { background: #FEEEBA; color: #7E3C00; }

/* ---------- Tonight ---------- */
.hub-tonight {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 22px;
  margin: 30px 0 8px;
  padding: 22px 26px;
  border-radius: 26px;
  background: var(--green);
  color: #FFFBF0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hub-tonight::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 201, 40, 0.28), rgba(246, 201, 40, 0) 70%);
  pointer-events: none;
}
.hub-tonight__icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: #FFFBF0;
}
.hub-tonight__icon svg { width: 76%; height: 76%; }
.hub-tonight .pw-kicker { color: var(--yellow); }
.hub-tonight h2 { color: #fff; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); margin: 0.1em 0 0.15em; }
.hub-tonight p { margin: 0; color: rgba(255, 251, 240, 0.85); }
.hub-tonight .pw-btn { font-size: 1.2rem; position: relative; z-index: 1; }

/* ---------- Week list ---------- */
.hub-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 34px 0 14px;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
}
.hub-section-title small { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--muted); }

.hub-days { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hub-day {
  --day-bg: #FFDDE1;
  --day-soft: #FFF0F0;
  --day-ink: #C6242A;
  position: relative;
  display: grid;
  grid-template-columns: 116px 76px minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
}
.hub-day:hover { transform: translateY(-2px); }
.hub-day:hover .hub-day__main { box-shadow: 0 10px 26px rgba(6, 60, 42, 0.14); }
.hub-day__date {
  display: grid;
  place-content: center;
  border-radius: 18px;
  background: var(--day-bg);
  color: var(--day-ink);
  font-family: var(--font-display);
  text-align: center;
  line-height: 1;
  padding: 12px 6px;
}
.hub-day__date small { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em; }
.hub-day__date b { font-size: 1.85rem; font-weight: 700; margin-top: 2px; }
.hub-day--sat .hub-day__date { background: var(--green); color: var(--yellow); }
.hub-day__icon {
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--day-soft);
}
.hub-day__icon svg { width: 60px; height: 60px; }
.hub-day__main {
  grid-column: 3 / 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  padding: 14px 16px 14px 22px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 4px 14px rgba(6, 60, 42, 0.07);
  transition: box-shadow 0.15s ease;
}
.hub-day__title { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem); }
.hub-day__meta { margin: 4px 0 0; color: var(--muted); font-size: 0.98rem; }
.hub-day__meta b { color: var(--day-ink); font-weight: 800; }
.hub-day__play { font-size: 1.05rem; }
.hub-day__badge {
  position: absolute;
  top: -10px;
  left: 18px;
  z-index: 1;
  padding: 3px 12px 4px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 0 0 3px var(--cream);
}
.hub-day.is-tonight .hub-day__main { box-shadow: 0 0 0 3px var(--yellow), 0 10px 26px rgba(6, 60, 42, 0.14); }
.hub-day.is-past { opacity: 0.86; }

.hub-extra {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

/* ---------- Cards ---------- */
.hub-card {
  padding: 20px 22px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 4px 14px rgba(6, 60, 42, 0.07);
}
.hub-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.hub-card p { margin: 0.4em 0; }
.hub-card ul { margin: 0.4em 0; padding-left: 1.2em; }
.hub-card li { margin: 0.35em 0; }
.hub-card li::marker { color: var(--red); }

.hub-scripture {
  margin: 34px 0 0;
  padding: 22px 26px;
  border-radius: 22px;
  background: var(--yellow-soft);
  box-shadow: 0 4px 14px rgba(126, 60, 0, 0.08);
}
.hub-scripture .pw-kicker { color: #7E3C00; }
.hub-scripture blockquote {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
  line-height: 1.25;
  color: var(--green);
}

.hub-declaration {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--green);
  color: #FFFBF0;
}
.hub-declaration h3 { color: #fff; }
.hub-declaration .pw-kicker { color: var(--yellow); }
.hub-declaration p { color: rgba(255, 251, 240, 0.85); }

.hub-leaders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.hub-runsheet { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 6px 0 0; }
.hub-runsheet dt { font-family: var(--font-display); font-weight: 700; color: var(--green); }
.hub-runsheet dd { margin: 0; }
.hub-keys { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 8px 0 0; align-items: center; }
.hub-keys kbd {
  justify-self: start;
  min-width: 1.9em;
  padding: 0.05em 0.5em;
  border-radius: 0.4em;
  background: var(--paper);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12), 0 0 0 1px var(--line);
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--green);
  text-align: center;
}
.hub-pdf { margin-top: 12px; }

/* ---------- Footer ---------- */
.hub-footer {
  position: relative;
  margin-top: 48px;
  background: linear-gradient(to bottom, var(--cream), #E9F2D9 40%);
}
.hub-footer__art {
  display: block;
  width: min(1120px, 100%);
  height: auto;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
}
.hub-footer__bar {
  padding: 18px 16px 26px;
  background: var(--green);
  color: rgba(255, 251, 240, 0.85);
  text-align: center;
  font-size: 0.95rem;
}
.hub-footer__bar b { color: #fff; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.03em; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hub-leaders { grid-template-columns: 1fr 1fr; }
  .hub-leaders > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .hub { padding-top: 18px; }
  .hub-hero { grid-template-columns: minmax(0, 1fr); }
  .hub-hero__art { position: absolute; right: -4px; top: -6px; width: 30vw; max-width: 140px; }
  .hub-tonight { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
  .hub-tonight__icon { width: 64px; height: 64px; border-radius: 16px; }
  .hub-tonight .pw-btn { grid-column: 1 / -1; justify-self: stretch; }
  .hub-day { grid-template-columns: 84px minmax(0, 1fr); gap: 8px; }
  .hub-day__icon { display: none; }
  .hub-day__main { grid-column: 2; grid-template-columns: minmax(0, 1fr); padding: 12px 14px; }
  .hub-day__date b { font-size: 1.45rem; }
  .hub-day__date small { font-size: 0.8rem; }
  .hub-day__play { justify-self: start; font-size: 0.98rem; padding: 0.5em 1.1em; }
  .hub-extra, .hub-leaders { grid-template-columns: minmax(0, 1fr); }
  .hub-declaration { flex-direction: column; align-items: flex-start; }
}
