/* Portal instructions 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.12in;
}

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

/* ── Intro box ── */

.print-intro-box {
  flex-shrink: 0;
  background: #f1f8f1;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 0.1in 0.18in;
  display: flex;
  flex-direction: column;
  gap: 0.04in;
}

.print-intro-heading {
  font-size: 0.175in;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.2;
}

.print-intro-sub {
  font-size: 0.148in;
  font-weight: 600;
  color: var(--green);
  font-style: italic;
}

.print-intro-body {
  font-size: 0.132in;
  color: var(--muted);
  line-height: 1.45;
}

/* ── Two-column sections grid ── */

.print-sections-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 0.1in 0.18in;
  min-height: 0;
}

.print-section {
  display: flex;
  flex-direction: column;
  gap: 0.04in;
}

.print-section-heading {
  font-size: 0.143in;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-dark);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.025in;
  margin-bottom: 0.02in;
}

.print-section p {
  font-size: 0.132in;
  color: var(--text);
  line-height: 1.45;
}

.print-section p + p {
  margin-top: 0.04in;
}

.print-bullet-list {
  list-style: none;
  padding: 0;
  margin-top: 0.035in;
  display: flex;
  flex-direction: column;
  gap: 0.02in;
}

.print-bullet-list li {
  font-size: 0.13in;
  color: var(--text);
  line-height: 1.4;
  padding-left: 0.12in;
  position: relative;
}

.print-bullet-list li::before {
  content: "·";
  position: absolute;
  left: 0.04in;
  color: var(--green);
  font-weight: 700;
}

.print-section--closing {
  background: #f1f8f1;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.07in 0.1in;
}

/* ── QR code row ── */

.print-qr-row {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25in;
  border-top: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  padding: 0.08in 0;
}

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

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

.print-qr-label {
  font-size: 0.138in;
  font-weight: 700;
  color: var(--green-dark);
  text-align: center;
}

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

.print-qr-divider {
  width: 1px;
  height: 0.9in;
  background: var(--border);
}

/* ── Footer ── */

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

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