/* ==========================================================================
   Public mosque pages: profile, agenda, cash report. Builds on blog.css (hero, cards, crumbs).
   ========================================================================== */

.mq-hero {
  position: relative;
  overflow: hidden;
  padding: 2.6rem 0 4.6rem;
  color: #fff;
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 255, 255, .10) 0, transparent 40%),
    radial-gradient(circle at 92% 0%, rgba(200, 149, 44, .30) 0, transparent 45%),
    linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
}

.mq-hero .container { position: relative; }

.mq-id { display: flex; align-items: center; gap: 1.1rem; margin-top: .6rem; }

.mq-logo {
  display: inline-flex;
  flex: 0 0 4.6rem;
  align-items: center;
  justify-content: center;
  width: 4.6rem;
  height: 4.6rem;
  overflow: hidden;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 2rem;
  object-fit: cover;
}

.mq-id h1 { margin: 0 0 .25rem; font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; }
.mq-id p { margin: 0; color: rgba(255, 255, 255, .85); font-size: .95rem; }

.mq-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }

.mq-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.1rem;
  border: 1.5px solid rgba(255, 255, 255, .45);
  border-radius: 2rem;
  background: transparent;
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

.mq-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.mq-btn.is-solid { border-color: #fff; background: #fff; color: var(--brand-green-dark); }
.mq-btn.is-solid:hover { background: #f1f7f4; color: var(--brand-green-dark); }

/* Tabs overlap the hero's bottom edge */
.mq-tabs-wrap { position: relative; z-index: 3; margin-top: -1.55rem; }

.mq-tabs {
  display: flex;
  gap: .3rem;
  max-width: max-content;
  margin: 0 auto;
  padding: .3rem;
  overflow-x: auto;
  border: 1px solid #e3ebe8;
  border-radius: 2rem;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.mq-tabs a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.1rem;
  border-radius: 2rem;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.mq-tabs a:hover { background: var(--brand-green-light); color: var(--brand-green-dark); }
.mq-tabs a.is-active { background: var(--brand-green); color: #fff; }

.mq-section { margin-top: 2.2rem; }
.mq-section > h2 { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.mq-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.mq-section-head h2 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.mq-section-head a { color: var(--brand-green); font-size: .88rem; font-weight: 700; text-decoration: none; }

.mq-card { padding: 1.3rem 1.4rem; border: 1px solid #e8efec; border-radius: var(--radius); background: #fff; }

/* Prayer times */
.prayer-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; }

.prayer-tile {
  padding: .9rem .4rem;
  border: 1px solid #e3ebe8;
  border-radius: .9rem;
  background: #fff;
  text-align: center;
}

.prayer-tile span { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.prayer-tile strong { display: block; margin-top: .15rem; color: var(--brand-green-dark); font-size: 1.35rem; font-variant-numeric: tabular-nums; }

@media (max-width: 575.98px) {
  .prayer-row { grid-template-columns: repeat(3, 1fr); }
}

.mq-info { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; font-size: .93rem; }
.mq-info li { display: flex; gap: .7rem; align-items: flex-start; }
.mq-info i { flex: 0 0 1.2rem; margin-top: .15rem; color: var(--brand-green); }

/* Events */
.event-card {
  display: flex;
  gap: 1.1rem;
  height: 100%;
  padding: 1.1rem 1.2rem;
  border: 1px solid #e8efec;
  border-radius: var(--radius);
  background: #fff;
}

.event-date {
  display: flex;
  flex: 0 0 3.6rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 3.9rem;
  border-radius: .9rem;
  background: var(--brand-green-light);
  color: var(--brand-green-dark);
  line-height: 1.1;
}

.event-date b { font-size: 1.4rem; font-weight: 800; }
.event-date small { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.event-body { min-width: 0; }
.event-body h3 { margin: 0 0 .3rem; font-size: 1.02rem; font-weight: 800; line-height: 1.35; }
.event-meta { display: grid; gap: .15rem; margin: 0 0 .4rem; padding: 0; list-style: none; color: var(--muted); font-size: .84rem; }
.event-meta i { margin-right: .35rem; color: var(--brand-green); }
.event-desc { margin: .4rem 0 0; color: #3b4a45; font-size: .9rem; line-height: 1.55; white-space: pre-line; }

.event-chip { display: inline-block; margin-bottom: .35rem; padding: .1rem .55rem; border-radius: 2rem; background: #f0f4f2; color: var(--muted); font-size: .72rem; font-weight: 700; }
.event-chip.is-live { background: #fff3cd; color: #664d03; }

.event-card.is-past { opacity: .72; }
.event-card.is-past .event-date { background: #eef1f0; color: #6b7a75; }

.mq-empty { padding: 2.4rem 1rem; border: 2px dashed #cfe0d9; border-radius: var(--radius); background: #fff; text-align: center; color: var(--muted); }
.mq-empty i { display: block; margin-bottom: .5rem; font-size: 2.2rem; color: #b7c7c2; }

/* Cash report */
.report-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.2rem; }
.report-nav { display: flex; align-items: center; gap: .5rem; }
.report-nav select { min-width: 11rem; }

.report-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1.2rem; }
.report-stat { padding: 1rem 1.1rem; border: 1px solid #e8efec; border-radius: .9rem; background: #fff; }
.report-stat span { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; }
.report-stat strong { display: block; margin-top: .2rem; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.report-stat.is-in strong { color: #198754; }
.report-stat.is-out strong { color: #c0392b; }

@media (max-width: 767.98px) {
  .report-stats { grid-template-columns: repeat(2, 1fr); }
}

.report-table { width: 100%; margin: 0; border-collapse: collapse; font-size: .9rem; }
.report-table th { padding: .65rem .8rem; border-bottom: 2px solid #dfe9e5; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.report-table td { padding: .6rem .8rem; border-bottom: 1px solid #eef3f1; vertical-align: top; }
.report-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-table tfoot td { border-top: 2px solid #dfe9e5; border-bottom: 0; font-weight: 800; }
.report-table .in { color: #198754; }
.report-table .out { color: #c0392b; }

.report-note { margin-top: 1rem; color: var(--muted); font-size: .82rem; }
.private-banner { padding: .6rem 1rem; background: #e7f1ff; color: #084298; text-align: center; font-size: .88rem; font-weight: 600; }

/* Print: only the report itself */
@media print {
  .site-nav, .site-footer, .mq-hero, .mq-tabs-wrap, .no-print, .private-banner, .preview-banner { display: none !important; }
  body { background: #fff !important; }
  .print-title { display: block !important; }
  .mq-card, .report-stat { border-color: #bbb; break-inside: avoid; }
  .report-table th { color: #000; }
  a { color: inherit; text-decoration: none; }
}

.print-title { display: none; margin-bottom: 1rem; }
.print-title h1 { margin: 0; font-size: 1.4rem; font-weight: 800; }
.print-title p { margin: .2rem 0 0; color: #555; }
