/* Print-app handout — 8.5×11 letter, one page */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green:      #2e7d32;
  --green-dark: #1b5e20;
  --text:       #1a1a1a;
  --muted:      #444;
  --border:     #c8e6c9;
}

body {
  background: #d0d0d0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.flyer {
  width: 8.5in;
  min-height: 11in;
  max-height: 11in;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0.35in 0.42in 0.22in;
  gap: 0.15in;
}

/* ── Header ── */

.print-header {
  display: flex;
  align-items: center;
  gap: 0.18in;
  border-bottom: 3px solid var(--green);
  padding-bottom: 0.1in;
  flex-shrink: 0;
}

.print-logo {
  height: 0.68in;
  width: auto;
  flex-shrink: 0;
}

.print-group-name {
  font-size: 0.28in;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.15;
}

.print-sport-tag {
  font-size: 0.1in;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
  margin-top: 3px;
}

/* ── CTA ── */

.print-cta {
  font-size: 0.155in;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.4;
  text-align: center;
  padding: 0.08in 0.2in;
  border-radius: 6px;
  background: #f1f8f1;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}

/* ── Map ── */

#print-app-map {
  flex-shrink: 0;
  width: 100%;
  height: 4.1in;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  background: #e8f0e8;
}

/* ── Download section ── */

.print-download-section {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08in;
}

.print-section-title {
  font-size: 0.135in;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-dark);
}

.print-official-note {
  font-size: 0.1in;
  color: var(--muted);
  line-height: 1.5;
}

.print-join-first {
  font-size: 0.1in;
  color: var(--text);
  line-height: 1.5;
}

.print-stores-row {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  margin-top: 0.05in;
}

.print-store-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.04in;
}

.print-store-badge {
  width: 1.65in;
  height: auto;
  display: block;
}

.print-store-qr {
  width: 1.65in;
  height: 1.65in;
  display: block;
}

.print-store-label {
  font-size: 0.115in;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.print-store-url {
  font-size: 0.085in;
  color: var(--muted);
  text-align: center;
}

.print-support-badge {
  width: 1.65in;
  height: 0.5in;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.175in;
  font-weight: 800;
  color: var(--green-dark);
  background: #f1f8f1;
  border: 1.5px solid var(--border);
  border-radius: 6px;
}

.qr-placeholder {
  width: 1.65in;
  height: 1.65in;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: #f9fdf9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Footer ── */

.print-footer {
  margin-top: auto;
  border-top: 2px solid var(--green);
  padding-top: 0.09in;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.085in;
  color: #888;
  flex-shrink: 0;
}

/* ── Print media ── */

@media print {
  @page {
    size: letter portrait;
    margin: 0;
  }

  body {
    background: none;
    padding: 0;
    display: block;
  }

  .flyer {
    width: 8.5in;
    height: 11in;
    min-height: 11in;
  }
}
