/* Printed-timetable layout. Explicitly overrides the older monthly rules in
   styles.css; Today, installation, QR and reminder typography stay independent. */
.monthly-panel {
  padding: 8px;
  background: #fff;
  overflow: visible;
}
.month-nav {
  gap: 4px;
  padding: 0 0 6px;
  background: transparent;
  border-radius: 0;
}
.month-nav button {
  min-width: 32px;
  min-height: 30px;
  padding: 2px 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--teal);
  font-size: 18px;
  line-height: 1.2;
}
.month-nav button:hover { background: var(--pale); color: var(--deep); }
#current-month { font-size: 16px; text-transform: uppercase; letter-spacing: .08em; }
.month-nav #month-title { display: inline; }
.month-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
.month-table col.date-column { width: 6%; }
.month-table col.maghrib-column { width: 11%; }
.month-table th,
.month-table td {
  padding: 5px 1px;
  border: 1px solid #a4b8b4;
  text-align: center;
  white-space: nowrap;
  line-height: 1.25;
}
.month-table thead th:first-child { text-align: center; }
.month-table thead { background: var(--teal); color: #fff; }
.month-table thead th { font-size: .9em; font-weight: 600; }
.month-table .time-groups th { padding: 5px 1px; font-size: 1em; letter-spacing: .04em; }
.month-table .time-groups th + th { border-left: 2px solid var(--gold); background: #735013; }
.month-table tbody th {
  position: static;
  box-shadow: none;
  text-align: center;
  background: #fff;
  font-weight: 600;
}
.month-table tbody tr:nth-child(even) { background: #fff; }
.month-table tbody td:nth-child(n+7) { background: #fffcf5; font-weight: 600; }
.month-table .jamaat-start { border-left: 2px solid var(--gold); }
.month-table .friday th { border-left: 1px solid #a4b8b4; color: #735013; }
.month-table .is-today > * {
  background: #e0f0ea !important;
  border-top: 1px solid #a4b8b4;
  border-bottom: 1px solid #a4b8b4;
}

/* Compact branding makes room without changing the mosque silhouette. */
.site-header,
.native-app .site-header { padding-top: 14px; padding-bottom: 14px; }
.brand .eyebrow { display: none; }
.brand h1 { margin: 0; font-size: 26px; }
.brand p { font-size: 13px; }

@media (max-width: 650px) {
  main { padding-left: 4px; padding-right: 4px; }
  .site-header,
  .native-app .site-header {
    padding: 8px;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }
  .brand { flex: 1; }
  .brand h1 { font-size: clamp(18px, 4.5vw, 24px); letter-spacing: .025em; }
  .brand p { font-size: 10px; }
  .monthly-panel { padding: 3px; border-radius: 4px; margin-bottom: 12px; }
  .month-nav { padding-bottom: 3px; }
  .month-nav button { min-height: 30px; padding: 1px 7px; }
  #current-month { font-size: 13px; letter-spacing: .06em; }
  .month-table { font-size: clamp(9px, 2.5vw, 11px); min-width: 0; }
  .month-table th,
  .month-table td { padding: 1.5px .25px; line-height: 1.2; }
  .month-table thead th { padding: 3px 0; font-size: .92em; }
  .month-table .time-groups th { padding: 3px 0; font-size: 1em; letter-spacing: .03em; }
}
@media print {
  .monthly-panel { break-inside: avoid; }
  .month-table { font-size: 10pt; }
  .month-table th, .month-table td { padding: 2px 1px; }
}
