/* Local group printable 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.16in;
}

/* ── 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;
}

/* ── Top: QR + description ── */

.print-top {
  display: flex;
  gap: 0.22in;
  align-items: flex-start;
  flex-shrink: 0;
}

.print-qr-block {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.04in;
}

.qr-placeholder {
  background: #f5f5f5;
  border: 1.5px solid #ddd;
}

.qr-large {
  width: 2.4in;
  height: 2.4in;
}

.qr-small {
  width: 1.55in;
  height: 1.55in;
}

.print-qr-label {
  font-size: 0.09in;
  color: #888;
  text-align: center;
}

.print-desc-block {
  flex: 1;
  overflow: hidden;
}

.print-description p {
  font-size: 0.115in;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 0.065in;
}

.print-description p:last-child {
  margin-bottom: 0.13in;
}

.print-organizer {
  font-size: 0.1in;
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 0.1in;
}

.local-organizer-note {
  font-size: 0.1in;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0;
}

/* ── Sections ── */

.print-section {
  border-top: 1.5px solid var(--border);
  padding-top: 0.1in;
  flex-shrink: 0;
}

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

/* ── Meeting ── */

.print-meetings-row {
  display: flex;
  gap: 0.25in;
}

.print-meetings-row .print-meeting {
  flex: 1;
  min-width: 0;
}

.print-meeting {
  display: flex;
  flex-direction: column;
  gap: 0.03in;
}

.print-meeting-date {
  font-size: 0.12in;
  font-weight: 600;
  color: var(--green-dark);
  margin-top: 0.03in;
}

.print-meeting-address {
  font-size: 0.105in;
  color: var(--muted);
  margin-top: 0.03in;
}

.print-meeting-agenda-item {
  font-size: 0.105in;
  color: var(--text);
  line-height: 1.5;
  margin-top: 0.03in;
}

.print-no-meetings {
  font-size: 0.105in;
  color: #999;
  font-style: italic;
}

/* ── Rides row ── */

.print-rides-row {
  display: flex;
  gap: 0.18in;
  align-items: flex-start;
}

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

.print-ride-name {
  font-size: 0.105in;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.35;
  max-width: 1.7in;
}

.print-ride-date {
  font-size: 0.095in;
  color: var(--muted);
  text-align: center;
}

/* ── 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;
  }
}
