/* Printable A4 classroom posters for the Muslim holidays. Standalone (no site layout). */
@page {
  size: A4 portrait;
  margin: 0;
}
* {
  box-sizing: border-box;
}
body.hp {
  --hp-ink: #14286e;
  --hp-accent: #b0832f;
  --hp-paper: #fffaf0;
  margin: 0;
  background: #e9e3d3;
  color: #13221d;
  font-family: "Inter", system-ui, sans-serif;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
body.hp--eid-al-fitr {
  --hp-ink: #6b430f;
}
body.hp--eid-al-adha {
  --hp-ink: #4a2763;
}
body.hp--hajj {
  --hp-ink: #1f2a2a;
}
body.hp--months {
  --hp-ink: #14284a;
}
html[dir="rtl"] body.hp {
  font-family: "Amiri", "Inter", serif;
}
.hp-tools {
  display: flex;
  justify-content: center;
  gap: .6rem;
  padding: 1rem;
}
.hp-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.2rem;
  border-radius: 999px;
  border: 0;
  background: #1f7a63;
  color: #fff;
  font: 600 .95rem "Inter", sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.hp-btn--ghost {
  background: transparent;
  border: 1px solid #1f7a63;
  color: #16624f;
}
.hp-sheet {
  position: relative;
  width: 210mm;
  height: 297mm;
  max-width: 100%;
  margin: 0 auto 2rem;
  background:
    radial-gradient(120mm 80mm at 50% 0%, rgba(201, 160, 80, .18), transparent 70%),
    var(--hp-paper);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .35);
  color: var(--hp-ink);
  overflow: hidden;
}
.hp-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--hp-accent);
}
.hp-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 22mm 22mm 16mm;
  text-align: center;
}
.hp-emblem {
  width: 34mm;
  height: 34mm;
  color: var(--hp-accent);
}
.hp-emblem path,
.hp-emblem g[fill] {
  color: var(--hp-ink);
}
.hp-eyebrow {
  margin: 4mm 0 0;
  font-size: 9pt;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--hp-accent);
  font-weight: 600;
}
.hp-title {
  margin: 2mm 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 44pt;
  font-weight: 700;
  line-height: 1.05;
}
html[dir="rtl"] .hp-title {
  font-family: "Amiri", serif;
}
.hp-subtitle {
  margin: 3mm 0 8mm;
  font-size: 14pt;
  color: #4a5a54;
}
.hp-points {
  display: grid;
  gap: 4mm;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: start;
}
.hp-points li {
  display: flex;
  gap: 5mm;
  align-items: flex-start;
  padding: 4mm 5mm;
  border-radius: 4mm;
  background: rgba(255, 255, 255, .7);
  border: .6px solid rgba(176, 131, 47, .35);
  font-size: 13pt;
  line-height: 1.45;
  color: #24302c;
}
.hp-point-num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 9mm;
  height: 9mm;
  border-radius: 50%;
  background: var(--hp-ink);
  color: #fff;
  font-weight: 700;
  font-size: 11pt;
}
.hp-greeting {
  margin-top: 8mm;
}
.hp-greeting-ar {
  margin: 0;
  font-family: "Amiri", serif;
  font-size: 34pt;
  line-height: 1.4;
}
.hp-greeting-tr {
  margin: 0;
  font-weight: 700;
  font-size: 14pt;
  color: var(--hp-accent);
}
.hp-greeting-mean {
  margin: 1mm 0 0;
  color: #5a6963;
}
.hp-date {
  margin: 7mm 0 0;
  font-size: 11pt;
  font-weight: 600;
}
.hp-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3mm;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: start;
}
.hp-months li {
  display: grid;
  grid-template-columns: 9mm 1fr;
  gap: 0 3mm;
  padding: 3mm 4mm;
  border-radius: 3mm;
  background: rgba(255, 255, 255, .75);
  border: .6px solid rgba(20, 40, 74, .2);
}
.hp-months li.is-sacred {
  background: #efe8fb;
}
.hp-months li.is-ramadan {
  background: #14286e;
  color: #fff;
}
.hp-month-num {
  grid-row: 1 / span 2;
  font-family: "Fraunces", Georgia, serif;
  font-size: 18pt;
  font-weight: 700;
  color: var(--hp-accent);
}
.hp-month-name {
  font-weight: 700;
  font-size: 12pt;
}
.hp-month-note {
  font-size: 9pt;
  line-height: 1.35;
  opacity: .85;
}
.hp-key {
  display: flex;
  align-items: center;
  gap: 2mm;
  margin: 4mm 0 0;
  font-size: 9pt;
}
.hp-key-dot {
  width: 4mm;
  height: 4mm;
  border-radius: 1mm;
  background: #efe8fb;
  border: .6px solid #6447ad;
}
.hp-foot {
  margin-top: auto;
  font-size: 8.5pt;
  color: #6a7873;
}
@media print {
  body.hp {
    background: #fff;
  }
  .hp-tools {
    display: none;
  }
  .hp-sheet {
    margin: 0;
    box-shadow: none;
  }
}
@media (max-width: 800px) {
  .hp-sheet {
    height: auto;
    min-height: 297mm;
  }
  .hp-content {
    padding: 16mm 10mm 12mm;
  }
  .hp-title {
    font-size: 32pt;
  }
  .hp-months {
    grid-template-columns: 1fr;
  }
}
