/* Al-Hijra – mosque prayer timetable (Newlands Islamic Centre). Extends main.css; same tokens. #monthly anchor offset comes from main.css scroll-padding-top. */

/* homepage card */
.mini-times dd{line-height:1.25}
.mini-times__iq{display:block;margin-top:.1rem;font-size:.74rem;font-weight:600;color:var(--ink-2);letter-spacing:.01em}
.mini-times .is-next .mini-times__iq{color:var(--gold-700)}
.qcard__note{font-size:.85rem!important}
.qcard__note a{font-weight:700}

/* daily cards */
.pray-card__iq{display:block;margin-top:.35rem;font-size:.9rem;font-weight:700;color:var(--ink-2);font-variant-numeric:tabular-nums}
.pray-card__iq[hidden]{display:none}
.pray-card.is-next .pray-card__iq{color:var(--gold-700)}
.pray-extra{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:1.4rem 0 0}
.pray-chip{display:flex;align-items:center;gap:.6rem;background:#fff;border:1px solid var(--line);border-radius:999px;padding:.55rem 1.1rem;box-shadow:var(--shadow-sm);font-weight:700;color:var(--green-900)}
.pray-chip .ar{font-size:1.15em;color:var(--green-800)}
.pray-chip__t{font-variant-numeric:tabular-nums;font-weight:800}
.pray-src{margin:1rem auto 0;max-width:46rem;text-align:center;font-size:.9rem;color:var(--ink-2)}
.pray-src a{font-weight:700;color:var(--green-800)}
.pray-key{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 20px;margin:.9rem 0 0;padding:0;list-style:none;font-size:.88rem;color:var(--ink-2)}
.pray-key li{margin:0}
.pray-key strong{color:var(--green-900)}

/* Jumu'ah card */
.jumuah__when{margin:0 0 .35rem;font-weight:800;color:var(--green-900)}
.jumuah__times{margin:0 0 .8rem;padding:0;list-style:none;font-size:1.25rem;font-weight:800;color:var(--green-900);font-variant-numeric:tabular-nums}
.jumuah__times li{margin:0 0 .2rem}
.jumuah__times[hidden]{display:none}

/* monthly timetable */
.month-tools{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 1rem}
.month-tools .btn[disabled],.month-nav .btn[disabled]{opacity:.45;cursor:not-allowed}
.tt-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:var(--r)}
.tt--masjid{width:100%;border-collapse:separate;border-spacing:0;font-size:.92rem}
.tt--masjid thead th{text-align:center;padding:.6rem .4rem;font-size:.74rem;letter-spacing:.04em;text-transform:uppercase}
.tt--masjid thead tr:last-child th{font-size:.66rem;font-weight:700;color:var(--ink-2);background:#f3f6f4;padding:.4rem .3rem}
.tt--masjid thead th.tt-h-date{text-align:left;padding-left:.9rem}
.tt--masjid tbody th,.tt--masjid tbody td{padding:.55rem .45rem;text-align:center;border-bottom:1px solid var(--line);border-right:1px solid var(--line);vertical-align:middle;white-space:nowrap}
.tt--masjid tbody th{text-align:left;padding-left:.9rem;font-weight:700;color:var(--green-900);background:inherit}
.tt--masjid tbody td:last-child{border-right:0}
.tt--masjid tbody tr:last-child th,.tt--masjid tbody tr:last-child td{border-bottom:0}
.tt--masjid td.tt-a{font-weight:800;color:var(--green-900)}
.tt--masjid td.tt-i{color:var(--ink-2);font-weight:600;background:rgba(196,155,78,.07);border-right-color:var(--line)}
.tt--masjid td.tt-sun{color:var(--ink-2);font-weight:700}
.tt--masjid td.tt-na{color:var(--ink-2);font-style:italic;text-align:left;font-weight:500}
.tt--masjid tr.is-na th{color:var(--ink-2)}
.tt--masjid tr.is-today th,.tt--masjid tr.is-today td{background:var(--gold-100)}
.tt--masjid tr.is-today th{box-shadow:inset 4px 0 0 var(--gold)}
.tt-date__d{display:inline-block;min-width:3.4em}
.tt-badge{display:inline-block;margin-left:.35rem;padding:.08rem .45rem;border-radius:999px;background:var(--green-50);border:1px solid var(--green-100);color:var(--green-800);font-size:.64rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;vertical-align:.1em}
.tt-badge--today{background:var(--gold);border-color:var(--gold);color:var(--green-900)}
.tt-legend{display:flex;flex-wrap:wrap;gap:6px 18px;margin:.9rem 0 0;padding:0;list-style:none;font-size:.86rem;color:var(--ink-2)}
.tt-legend li{margin:0;display:flex;align-items:center;gap:.4rem}
.tt-legend__sw{display:inline-block;width:1rem;height:1rem;border-radius:4px;border:1px solid var(--line);background:#fff}
.tt-legend__sw--iq{background:rgba(196,155,78,.18)}
.tt-legend__sw--today{background:var(--gold-100);border-color:var(--gold)}
.month-jumuah{margin-top:1.6rem}
.month-jumuah h3{font-size:1.15rem;margin:0 0 .5rem}
.month-jumuah ul{margin:0;padding-left:1.1rem}
.month-jumuah li{margin:.2rem 0;font-variant-numeric:tabular-nums}
.month-meta{margin:.9rem 0 0;font-size:.88rem;color:var(--ink-2)}
.month-meta a{font-weight:700;color:var(--green-800)}
[data-month-note]{margin-bottom:1rem}
[data-month-note][hidden]{display:none}
.month-print-head{display:none}

@media screen and (max-width:719px){
  .tt-scroll{overflow:visible}
  .tt--masjid,.tt--masjid tbody{display:block}
  .tt--masjid thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .tt--masjid tbody tr{display:grid;grid-template-columns:1fr auto auto;align-items:baseline;column-gap:.9rem;row-gap:0;padding:.65rem .9rem .75rem;border-bottom:1px solid var(--line)}
  .tt--masjid tbody tr:last-child{border-bottom:0}
  .tt--masjid tbody th,.tt--masjid tbody td{display:block;border:0!important;padding:.22rem 0;text-align:right;white-space:nowrap}
  .tt--masjid tbody th{grid-column:1/-1;text-align:left;padding:0 0 .35rem;margin-bottom:.25rem;border-bottom:1px dashed var(--line)!important;font-size:1rem;box-shadow:none!important}
  .tt--masjid td.tt-a{grid-column:1/3;display:flex;justify-content:space-between;gap:1rem}
  .tt--masjid td.tt-a::before{content:attr(data-label);font-size:.8rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--gold-700)}
  .tt--masjid td.tt-i{grid-column:3;background:none;font-size:.86rem;min-width:7.6em}
  .tt--masjid td.tt-i::before{content:'Iqamah ';font-size:.68rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-2)}
  .tt--masjid td.tt-na{grid-column:1/-1;text-align:left;white-space:normal}
  .tt--masjid tr.is-today{background:var(--gold-100);box-shadow:inset 4px 0 0 var(--gold)}
  .tt--masjid tr.is-today th,.tt--masjid tr.is-today td{background:transparent}
  .month-nav__label{font-size:1.5rem}
}

/* print: the monthly timetable only, on one page where possible */
@media print{
  @page{size:A4 portrait;margin:10mm}
  .print-monthly body>*:not(main),.print-monthly main>section:not(#monthly),.print-monthly .site-header,.print-monthly .site-footer,.print-monthly .mobile-cta{display:none!important}
  .print-monthly #monthly{padding:0!important}
  .print-monthly #monthly .section__head p,.print-monthly .month-nav__btns,.print-monthly .month-tools,.print-monthly #monthly .actions,.print-monthly #monthly details{display:none!important}
  .print-monthly .month-print-head{display:block;margin:0 0 4mm;font-size:10pt}
  .tt--masjid{font-size:8.5pt}
  .tt--masjid thead th{font-size:7pt!important;padding:1.2mm .8mm!important}
  .tt--masjid tbody th,.tt--masjid tbody td{padding:.9mm .8mm!important}
  .tt--masjid tr.is-today th,.tt--masjid tr.is-today td{background:#fff!important;box-shadow:none!important}
  .tt-badge--today{display:none}
  .tt-scroll{overflow:visible}
  .tt{box-shadow:none}
  .tt--masjid{display:table!important;width:100%!important}
  .tt--masjid thead{display:table-header-group!important;position:static!important;width:auto!important;height:auto!important;overflow:visible!important;clip:auto!important}
  .tt--masjid tbody{display:table-row-group!important}
  .tt--masjid tr{display:table-row!important}
  .tt--masjid th,.tt--masjid td{display:table-cell!important;text-align:center!important;width:auto!important}
  .tt--masjid tbody th{text-align:left!important}
  .tt--masjid td::before{content:none!important;display:none!important}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
