/* Shared flyer helpers + typography (fills the 1080×1620 canvas clearly) */
.flyer[data-flyer-root] {
  --flyer-scale: 1;
}
.flyer p {
  margin: 0;
}
.flyer-hidden-export {
  position: fixed;
  left: -10000px;
  top: 0;
  pointer-events: none;
}

/* Larger, readable type — scales with content via --flyer-scale (wizard.js) */
.flyer[data-flyer-root] .flyer-inner {
  padding: calc(28px * var(--flyer-scale, 1)) calc(40px * var(--flyer-scale, 1)) calc(20px * var(--flyer-scale, 1)) !important;
}
.flyer[data-flyer-root] .flyer-basmala {
  font-family: "Amiri", "Cairo", serif;
  font-size: calc(46px * var(--flyer-scale, 1)) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.02em;
  margin: calc(4px * var(--flyer-scale, 1)) 0 calc(20px * var(--flyer-scale, 1)) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.flyer[data-flyer-root] .flyer-basmala::before,
.flyer[data-flyer-root] .flyer-basmala::after {
  content: "❖";
  font-size: 0.55em;
  opacity: 0.75;
  color: var(--flyer-accent, currentColor);
  line-height: 1;
}
.flyer[data-flyer-root] .flyer-announcers {
  font-size: calc(42px * var(--flyer-scale, 1)) !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
  margin: 0 0 calc(16px * var(--flyer-scale, 1)) !important;
}
.flyer[data-flyer-root] .flyer-intro {
  font-size: calc(28px * var(--flyer-scale, 1)) !important;
  line-height: 1.9 !important;
  margin: 0 0 calc(22px * var(--flyer-scale, 1)) !important;
}
.flyer[data-flyer-root] .flyer-name {
  font-size: calc(70px * var(--flyer-scale, 1)) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: calc(10px * var(--flyer-scale, 1)) 0 calc(18px * var(--flyer-scale, 1)) !important;
}
.flyer[data-flyer-root] .flyer-relatives {
  flex: 1 1 auto;
  font-size: calc(28px * var(--flyer-scale, 1)) !important;
  line-height: 1.85 !important;
  margin: 0 0 calc(18px * var(--flyer-scale, 1)) !important;
}
.flyer[data-flyer-root] .flyer-relatives .rel-item {
  margin: 0 0 calc(12px * var(--flyer-scale, 1)) !important;
}
.flyer[data-flyer-root] .flyer-death-place,
.flyer[data-flyer-root] .flyer-date-line,
.flyer[data-flyer-root] .flyer-burial {
  font-size: calc(30px * var(--flyer-scale, 1)) !important;
  font-weight: 700 !important;
  line-height: 1.75 !important;
  margin: 0 0 calc(10px * var(--flyer-scale, 1)) !important;
}
.flyer[data-flyer-root] .flyer-rule {
  margin: calc(16px * var(--flyer-scale, 1)) auto !important;
}
.flyer[data-flyer-root] .flyer-ceremony {
  font-size: calc(28px * var(--flyer-scale, 1)) !important;
  line-height: 1.85 !important;
  margin: 0 0 calc(6px * var(--flyer-scale, 1)) !important;
}
.flyer[data-flyer-root] .flyer-ceremony-line {
  margin: 0 0 calc(12px * var(--flyer-scale, 1)) !important;
}

.flyer-closing {
  margin-top: auto;
  padding-top: 6px;
  width: 100%;
  position: relative;
}
.flyer-dua-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 10px;
}
.flyer-dua-row[hidden] {
  display: none !important;
}
.flyer-dua {
  flex: 1;
  font-size: calc(22px * var(--flyer-scale, 1));
  line-height: 1.55;
  font-weight: 700;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}
.flyer-ornament {
  flex-shrink: 0;
  font-size: calc(20px * var(--flyer-scale, 1));
  line-height: 1;
  opacity: 0.75;
  color: var(--flyer-accent, currentColor);
}
.flyer-ornament--flip {
  transform: scaleX(-1);
}
/* QR + dua side-by-side (fills bottom; no site credit) */
.flyer-bottom-meta {
  display: none;
  width: 100%;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
  min-height: 120px;
}
.flyer-bottom-meta.has-qr {
  display: flex;
  flex-direction: row;
}
.flyer-bottom-meta[hidden] {
  display: none !important;
}
.flyer-qr-side-dua {
  flex: 1;
  font-size: calc(24px * var(--flyer-scale, 1));
  line-height: 1.7;
  font-weight: 700;
  text-align: center;
  margin: 0;
  padding: 0 8px;
}
.flyer-qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.flyer-qr-img {
  width: 112px;
  height: 112px;
  display: block;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 4px;
  box-sizing: border-box;
  object-fit: contain;
}
.flyer-qr-label {
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  opacity: 0.85;
  font-family: "Cairo", "Amiri", sans-serif;
  max-width: 120px;
  font-weight: 600;
}
