/**
 * DAAB / WAAS membership flyer — screen preview + A4 print.
 * Uses standard site nav; page controls overlay the flyer (excluded from export).
 * Requires css/daab-tokens.css linked before this file.
 */

*,
*::before,
*::after{
  box-sizing: border-box;
}html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}body.membership-flyer-page{
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: transparent;
  line-height: 1.45;
}.membership-flyer-main{
  padding: 0;
}.flyer-wrap{
  position: relative;
  max-width: 210mm;
  margin: 24px auto 40px;
  padding: 0 12px;
}.flyer-page-controls{
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 25;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: calc(100% - 24px);
  pointer-events: auto;
}.flyer-page-controls .flyer-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 128px;
  padding: 8px 14px;
  border: 1px solid var(--color-border-blue-light);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 45, 82, 0.16);
}.flyer-page-controls .flyer-btn-primary{
  background: var(--white);
  color: var(--blue-700);
  border-color: var(--color-border-blue-light);
}.flyer-page-controls .flyer-btn--busy{
  opacity: 0.85;
  cursor: wait;
}.flyer-page-controls .flyer-btn:disabled{
  opacity: 0.7;
  cursor: wait;
}.flyer-sheet{
  --flyer-fs: 1.26;
  --flyer-space: 1.14;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 10mm 11mm 10mm;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(0, 45, 82, 0.18);
  overflow: hidden;
}.flyer-header{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: calc(14px * var(--flyer-space)) calc(18px * var(--flyer-space));
  align-items: center;
  padding-bottom: calc(8px * var(--flyer-space));
  border-bottom: 3px solid var(--gold);
  margin-bottom: calc(10px * var(--flyer-space));
}.flyer-logo{
  width: calc(72px * var(--flyer-fs));
  height: calc(72px * var(--flyer-fs));
  padding: calc(8px * var(--flyer-space));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 45, 82, 0.1);
}.flyer-brand-block h1{
  margin: 0 0 calc(4px * var(--flyer-space));
  font-family: "Playfair Display", Georgia, serif;
  font-size: calc(14.7px * var(--flyer-fs));
  font-weight: 800;
  line-height: 1.15;
  color: var(--blue-900);
}.flyer-brand-block .flyer-org{
  margin: 0;
  font-size: calc(11.5px * var(--flyer-fs));
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-700);
}.flyer-hero{
  margin: 0 0 calc(10px * var(--flyer-space));
  padding: calc(12px * var(--flyer-space)) calc(14px * var(--flyer-space));
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--white);
}.flyer-hero h2{
  margin: 0 0 calc(6px * var(--flyer-space));
  font-family: "Playfair Display", Georgia, serif;
  font-size: calc(15.4px * var(--flyer-fs));
  line-height: 1.12;
  font-weight: 800;
}.flyer-hero h2 span{
  color: var(--gold-soft);
}.flyer-hero p{
  margin: 0;
  font-size: calc(8.05px * var(--flyer-fs));
  line-height: 1.5;
  opacity: 0.95;
}.flyer-stats{
  display: flex;
  flex-wrap: wrap;
  gap: calc(8px * var(--flyer-space));
  margin-top: calc(10px * var(--flyer-space));
}.flyer-stat{
  display: inline-flex;
  align-items: center;
  gap: calc(6px * var(--flyer-space));
  padding: calc(5px * var(--flyer-space)) calc(10px * var(--flyer-space));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: calc(10px * var(--flyer-fs));
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}.flyer-section-title{
  margin: 0 0 calc(8px * var(--flyer-space));
  font-size: calc(7.7px * var(--flyer-fs));
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-700);
}.flyer-pillars{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(8px * var(--flyer-space));
  margin-bottom: calc(12px * var(--flyer-space));
}.flyer-pillar{
  padding: calc(8px * var(--flyer-space)) calc(9px * var(--flyer-space));
  border: 1px solid var(--color-border-blue-muted);
  border-radius: 12px;
  background: var(--color-panel-blue);
}.flyer-pillar strong{
  display: block;
  margin-bottom: calc(3px * var(--flyer-space));
  font-size: calc(10.5px * var(--flyer-fs));
  line-height: 1.25;
  color: var(--blue-900);
}.flyer-pillar span{
  display: block;
  font-size: calc(9.5px * var(--flyer-fs));
  line-height: 1.35;
  color: var(--muted);
}.flyer-benefits{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(8px * var(--flyer-space));
  margin-bottom: calc(10px * var(--flyer-space));
}.flyer-benefit{
  padding: calc(8px * var(--flyer-space)) calc(9px * var(--flyer-space)) calc(7px * var(--flyer-space));
  border: 1px solid var(--color-border-blue-muted);
  border-radius: 12px;
  background: var(--white);
}.flyer-benefit-icon{
  font-size: calc(16px * var(--flyer-fs));
  line-height: 1;
  margin-bottom: calc(4px * var(--flyer-space));
}.flyer-benefit-icon--flag{
  font-size: 0;
  line-height: 0;
}.flyer-benefit-icon--flag .daab-az-flag{
  display: block;
  width: calc(28px * var(--flyer-fs));
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}.flyer-benefit h3{
  margin: 0 0 calc(4px * var(--flyer-space));
  font-size: calc(7.35px * var(--flyer-fs));
  line-height: 1.25;
  color: var(--blue-900);
}.flyer-benefit p{
  margin: 0;
  font-size: calc(9px * var(--flyer-fs));
  line-height: 1.4;
  color: var(--muted);
}.flyer-benefit ul{
  margin: calc(4px * var(--flyer-space)) 0 0;
  padding-left: calc(14px * var(--flyer-space));
  font-size: calc(8.5px * var(--flyer-fs));
  line-height: 1.35;
  color: var(--muted);
}.flyer-youth{
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: calc(8px * var(--flyer-space));
  margin-bottom: calc(12px * var(--flyer-space));
  padding: calc(8px * var(--flyer-space)) calc(10px * var(--flyer-space));
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--color-border-blue-muted);
}.flyer-youth-lead{
  font-size: calc(9.5px * var(--flyer-fs));
  line-height: 1.4;
  color: var(--ink);
}.flyer-youth-lead strong{
  display: block;
  margin-bottom: calc(3px * var(--flyer-space));
  font-size: calc(10px * var(--flyer-fs));
  color: var(--blue-900);
}.flyer-youth-item{
  font-size: calc(9px * var(--flyer-fs));
  line-height: 1.35;
  color: var(--muted);
}.flyer-youth-item strong{
  display: block;
  margin-bottom: calc(2px * var(--flyer-space));
  color: var(--blue-800);
  font-size: calc(9.5px * var(--flyer-fs));
}.flyer-footer{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: calc(12px * var(--flyer-space));
  align-items: end;
  padding: calc(12px * var(--flyer-space)) calc(14px * var(--flyer-space));
  border-radius: 14px;
  background: linear-gradient(135deg, #fff8e5, var(--color-panel-blue));
  border: 1px solid rgba(200, 155, 56, 0.35);
}.flyer-cta h3{
  margin: 0 0 calc(4px * var(--flyer-space));
  font-family: "Playfair Display", Georgia, serif;
  font-size: calc(10.5px * var(--flyer-fs));
  line-height: 1.2;
  color: var(--blue-900);
}.flyer-cta p{
  margin: 0 0 calc(8px * var(--flyer-space));
  font-size: calc(10px * var(--flyer-fs));
  line-height: 1.45;
  color: var(--muted);
}.flyer-cta-link{
  display: inline-block;
  padding: calc(8px * var(--flyer-space)) calc(14px * var(--flyer-space));
  border-radius: 999px;
  background: var(--blue-700);
  color: var(--white) !important;
  font-size: calc(11px * var(--flyer-fs));
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
}.flyer-meta{
  font-size: calc(9px * var(--flyer-fs));
  line-height: 1.5;
  color: var(--ink);
}.flyer-meta p,
.flyer-meta a{
  overflow-wrap: anywhere;
  word-break: break-word;
}.flyer-meta strong{
  color: var(--blue-900);
}.flyer-meta a{
  color: var(--blue-700);
  text-decoration: none;
  font-weight: 700;
}.flyer-qr{
  text-align: center;
}.flyer-qr img{
  display: block;
  width: calc(72px * var(--flyer-fs));
  height: calc(72px * var(--flyer-fs));
  margin: 0 auto calc(4px * var(--flyer-space));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}.flyer-qr span{
  display: block;
  font-size: calc(8px * var(--flyer-fs));
  color: var(--muted);
  max-width: calc(88px * var(--flyer-fs));
  line-height: 1.3;
}.flyer-tagline{
  margin-top: calc(8px * var(--flyer-space));
  padding-top: calc(6px * var(--flyer-space));
  border-top: 1px solid var(--line);
  font-size: calc(8.5px * var(--flyer-fs));
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.02em;
}

@page {
  size: A4 portrait;
  margin: 0;
}

/*
 * Off-screen PDF export clone — fixed A4 width in px (210 mm @ 96 dpi).
 * Never affects the responsive on-screen flyer.
 */
#daab-flyer-export-stage{
  position: fixed;
  left: 0;
  top: 0;
  width: 794px;
  max-width: 794px;
  z-index: 2147483000;
  pointer-events: none;
  overflow: visible;
  opacity: 0.01;
  background: #fff;
}#daab-flyer-export-stage .flyer-sheet--pdf-export{
  --flyer-fs: 1.26;
  --flyer-space: 1.14;
  width: 794px !important;
  max-width: 794px !important;
  min-width: 794px !important;
  min-height: auto !important;
  margin: 0 !important;
  padding: 38px 42px 38px !important;
  overflow: visible !important;
  box-shadow: none !important;
  background: #fff !important;
  box-sizing: border-box !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}#daab-flyer-export-stage .flyer-pillars{
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}#daab-flyer-export-stage .flyer-benefits{
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}#daab-flyer-export-stage .flyer-youth{
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)) !important;
}#daab-flyer-export-stage .flyer-footer{
  grid-template-columns: minmax(0, 1fr) auto !important;
}#daab-flyer-export-stage .flyer-pillar,
#daab-flyer-export-stage .flyer-benefit,
#daab-flyer-export-stage .flyer-youth-item,
#daab-flyer-export-stage .flyer-youth-lead,
#daab-flyer-export-stage .flyer-brand-block,
#daab-flyer-export-stage .flyer-cta,
#daab-flyer-export-stage .flyer-meta,
#daab-flyer-export-stage .flyer-qr{
  min-width: 0;
}#daab-flyer-export-stage .flyer-hero,
#daab-flyer-export-stage .flyer-footer,
#daab-flyer-export-stage .flyer-pillar,
#daab-flyer-export-stage .flyer-youth{
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

@media print {html.membership-flyer-page,
  body.membership-flyer-page{
    background: #fff !important;
    margin: 0 !important;
  }body.membership-flyer-page #daab-top-chrome,
  body.membership-flyer-page #daab-chrome-spacer,
  body.membership-flyer-page .skip,
  body.membership-flyer-page .nav-strip,
  body.membership-flyer-page #daab-breadcrumbs,
  body.membership-flyer-page nav.daab-breadcrumbs,
  body.membership-flyer-page .daab-breadcrumbs,
  body.membership-flyer-page header.hero,
  body.membership-flyer-page .footer-pro,
  body.membership-flyer-page .daab-back-to-top,
  body.membership-flyer-page #search-overlay,
  body.membership-flyer-page #daab-flyer-export-stage,
  body.membership-flyer-page .flyer-page-controls,
  body.membership-flyer-page [data-flyer-export-exclude="1"]{
    display: none !important;
  }body.membership-flyer-page .membership-flyer-main,
  body.membership-flyer-page .flyer-wrap{
    display: block !important;
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }body.membership-flyer-page .flyer-sheet{
    --flyer-fs: 1.26;
    --flyer-space: 1.14;
    width: 210mm !important;
    max-width: 210mm !important;
    min-width: 210mm !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 10mm 11mm !important;
    box-shadow: none !important;
    overflow: visible !important;
    page-break-after: avoid;
    break-after: avoid-page;
    page-break-inside: avoid;
    break-inside: avoid;
  }body.membership-flyer-page .flyer-pillars{
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }body.membership-flyer-page .flyer-benefits{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }body.membership-flyer-page .flyer-youth{
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)) !important;
  }body.membership-flyer-page .flyer-footer{
    grid-template-columns: minmax(0, 1fr) auto !important;
  }body.membership-flyer-page .flyer-pillar,
  body.membership-flyer-page .flyer-benefit,
  body.membership-flyer-page .flyer-youth-item,
  body.membership-flyer-page .flyer-youth-lead,
  body.membership-flyer-page .flyer-brand-block,
  body.membership-flyer-page .flyer-cta,
  body.membership-flyer-page .flyer-meta,
  body.membership-flyer-page .flyer-qr{
    min-width: 0;
  }body.membership-flyer-page .flyer-header,
  body.membership-flyer-page .flyer-hero,
  body.membership-flyer-page .flyer-footer,
  body.membership-flyer-page .flyer-pillar,
  body.membership-flyer-page .flyer-youth,
  body.membership-flyer-page .flyer-benefit,
  body.membership-flyer-page .flyer-tagline{
    page-break-inside: avoid;
    break-inside: avoid;
  }body.membership-flyer-page .flyer-cta-link{
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }body.membership-flyer-page .flyer-hero,
  body.membership-flyer-page .flyer-footer,
  body.membership-flyer-page .flyer-pillar,
  body.membership-flyer-page .flyer-youth,
  body.membership-flyer-page .flyer-benefit{
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

@media (max-width: 760px) {.flyer-page-controls{
    top: 8px;
    right: 8px;
    gap: 6px;
  }.flyer-page-controls .flyer-btn{
    min-width: 116px;
    padding: 7px 11px;
    font-size: 11px;
  }.flyer-sheet{
    width: 100%;
    min-height: auto;
    padding: 16px;
  }.flyer-pillars{
    grid-template-columns: repeat(2, 1fr);
  }.flyer-benefits{
    grid-template-columns: 1fr;
  }.flyer-youth{
    grid-template-columns: 1fr;
  }.flyer-footer{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .flyer-wrap{
    margin-top: 14px;
  }
  .flyer-page-controls{
    position: static;
    justify-content: stretch;
    margin: 0 0 10px;
    max-width: 100%;
  }
  .flyer-page-controls .flyer-btn{
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    min-height: 44px;
  }
}
