/* The printable fasting calendar: one A4 page with a decorative header. Standalone (no site layout). */
@page {
  size: A4 portrait;
  margin: 12mm;
}
* {
  box-sizing: border-box;
}
body.rp {
  margin: 0;
  background: #efe9da;
  color: #13221d;
  font-family: "Inter", system-ui, sans-serif;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
html[dir="rtl"] body.rp {
  font-family: "Amiri", "Inter", serif;
}
.rp-tools {
  display: flex;
  justify-content: center;
  gap: .6rem;
  padding: 1rem;
}
.rp-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.2rem;
  border-radius: 999px;
  border: 0;
  background: #16624f;
  color: #fff;
  font: 600 .95rem "Inter", sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.rp-btn--ghost {
  background: transparent;
  border: 1px solid #16624f;
  color: #16624f;
}
.rp-sheet {
  width: 210mm;
  max-width: 100%;
  min-height: 297mm;
  margin: 0 auto 2rem;
  padding: 12mm 12mm 10mm;
  background: #fffdf8;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .3);
  border-top: 8px solid #0d3b29;
}
.rp-head {
  display: flex;
  align-items: center;
  gap: 6mm;
  padding-bottom: 5mm;
  margin-bottom: 5mm;
  border-bottom: 1.5px solid #c9a050;
}
.rp-moon {
  width: 18mm;
  height: 18mm;
  flex-shrink: 0;
}
.rp-eyebrow {
  margin: 0;
  font-size: 8pt;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8a6414;
  font-weight: 600;
}
.rp-head h1 {
  margin: 1mm 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 22pt;
  font-weight: 600;
  color: #0d3b29;
}
html[dir="rtl"] .rp-head h1 {
  font-family: "Amiri", serif;
}
.rp-place {
  margin: 0;
  font-size: 9.5pt;
  color: #4a5a54;
}
.rp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9pt;
  font-variant-numeric: tabular-nums;
}
.rp-table th {
  padding: 2mm 1.5mm;
  background: #0d3b29;
  color: #fff;
  font-size: 7.5pt;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: start;
}
.rp-table td {
  padding: 1.6mm 1.5mm;
  border-bottom: .6px solid #e6dfcd;
}
.rp-table tbody tr:nth-child(even) {
  background: #faf6ec;
}
.rp-table tr.is-friday td {
  background: #f1f7f3;
}
.rp-num {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  color: #8a6414;
}
.rp-hijri {
  display: block;
  font-size: 7pt;
  color: #5f6b66;
}
th.rp-suhoor,
th.rp-iftar {
  background: #8a6414;
}
td.rp-suhoor strong {
  color: #2a69ad;
}
td.rp-iftar strong {
  color: #86621f;
}
.rp-foot {
  margin-top: 5mm;
  padding-top: 3mm;
  border-top: 1px solid #e6dfcd;
  font-size: 7.5pt;
  color: #5a6963;
}
.rp-foot p {
  margin: 0 0 1mm;
}
.rp-brand {
  font-weight: 600;
  color: #0d3b29;
}
@media print {
  body.rp {
    background: #fff;
  }
  .rp-tools {
    display: none;
  }
  .rp-sheet {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
  .rp-head {
    padding-bottom: 3mm;
    margin-bottom: 3mm;
  }
  .rp-table {
    font-size: 8.5pt;
  }
  .rp-table td {
    padding: .9mm 1.5mm;
  }
  .rp-hijri {
    display: inline;
    margin-inline-start: 1.5mm;
  }
}
@media (max-width: 640px) {
  .rp-sheet {
    padding: 6mm;
  }
  .rp-table th:nth-child(4),
  .rp-table td:nth-child(4),
  .rp-table th:nth-child(5),
  .rp-table td:nth-child(5),
  .rp-table th:nth-child(6),
  .rp-table td:nth-child(6) {
    display: none;
  }
}
