/* NSMoms ER pamphlet: responsive preview + 2-page landscape print layout */

:root {
  --nsmoms-blue: #1e3a5f;
  --nsmoms-mid-blue: #2f6690;
  --nsmoms-light-blue: #eef6fc;
  --nsmoms-soft-blue: #dbeafe;
  --nsmoms-border: #cbd5e1;
  --nsmoms-text: #111827;
  --nsmoms-muted: #4b5563;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f3f7fb;
  color: var(--nsmoms-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.toolkit-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem 0;
}

.toolkit-header h1 {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e3a5f, #2f6690);
  color: white;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.01em;
}

.pamphlet-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.pamphlet-actions {
  margin: 0.5rem 0 1.5rem;
  color: var(--nsmoms-muted);
  font-size: 0.95rem;
}

.print-button {
  display: inline-block;
  margin-right: 0.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: var(--nsmoms-blue);
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.pamphlet-sheet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25in;

  background: white;
  color: var(--nsmoms-text);

  width: 11in;
  min-height: 8.5in;

  margin: 0 auto 1rem;
  padding: 0.35in;

  border: 1px solid var(--nsmoms-border);
  box-shadow: 0 14px 34px rgba(30, 58, 95, 0.12);
}

.pamphlet-image-panel {
  min-height: 7.5in;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
  background: var(--nsmoms-light-blue);
  border: 1px dashed #93b9d7;
}

.pamphlet-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pamphlet-column {
  font-size: 0.9rem;
  line-height: 1.32;
}

.pamphlet-column h2 {
  font-size: 1.05rem;
  line-height: 1.15;
  margin: 0 0 0.55rem;
  font-weight: 800;
  color: var(--nsmoms-blue);
}

.pamphlet-column h3 {
  font-size: 0.92rem;
  line-height: 1.15;
  margin: 0.65rem 0 0.35rem;
  color: var(--nsmoms-mid-blue);
  font-weight: 800;
}

.pamphlet-column p {
  margin: 0 0 0.55rem;
}

.pamphlet-column ul,
.pamphlet-column ol {
  margin: 0 0 0.55rem 1rem;
  padding: 0;
}

.pamphlet-column li {
  margin-bottom: 0.28rem;
}

.tip-list {
  counter-reset: tip;
  list-style: none;
  margin-left: 0;
}

.tip-list li {
  counter-increment: tip;
  position: relative;
  padding-left: 1.55rem;
}

.tip-list li::before {
  content: counter(tip);
  position: absolute;
  left: 0;
  top: 0.04rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: var(--nsmoms-soft-blue);
  color: var(--nsmoms-blue);
  font-size: 0.72rem;
  line-height: 1.05rem;
  text-align: center;
  font-weight: 800;
}

.note-box,
.contact-box {
  background: var(--nsmoms-light-blue);
  border-left: 4px solid var(--nsmoms-mid-blue);
  padding: 0.45rem 0.55rem;
  margin: 0.55rem 0;
  border-radius: 0 8px 8px 0;
}

.contact-box p {
  margin-bottom: 0.35rem;
}

.qr-panel {
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--nsmoms-border);
  text-align: center;
}

.qr-panel img {
  display: block;
  width: 2.5in;
  height: 2.5in;
  object-fit: contain;
  margin: 0 auto 0.25rem;
}

.qr-caption {
  font-size: 0.78rem;
  color: var(--nsmoms-muted);
}

.small {
  font-size: 0.82em;
  color: var(--nsmoms-muted);
}

@media print {
  @page {
    size: letter landscape;
    margin: 0.25in;
  }

  body {
    background: white;
  }

  .toolkit-header,
  .pamphlet-actions {
    display: none;
  }

  .pamphlet-wrapper {
    max-width: none;
    padding: 0;
  }

  .pamphlet-sheet {
    width: 10.5in;
    height: 8in;
    min-height: 8in;

    margin: 0;
    padding: 0.25in;
    gap: 0.2in;

    border: none;
    box-shadow: none;
    page-break-after: always;
    break-after: page;
  }

  .pamphlet-sheet:last-child {
    page-break-after: auto;
    break-after: auto;
  }

  .pamphlet-image-panel {
    min-height: 7.5in;
    border: none;
    border-radius: 0;
    background: white;
  }

  .pamphlet-column {
    font-size: 8.15pt;
    line-height: 1.16;
  }

  .pamphlet-column h2 {
    font-size: 9.6pt;
    margin-bottom: 0.35rem;
  }

  .pamphlet-column h3 {
    font-size: 8.7pt;
    margin: 0.45rem 0 0.25rem;
  }

  .pamphlet-column p,
  .pamphlet-column li {
    margin-bottom: 0.22rem;
  }

  .note-box,
  .contact-box {
    padding: 0.3rem 0.4rem;
    margin: 0.35rem 0;
  }

  .qr-panel img {
    width:2in;
    height: 2in;
  }
}

@media screen and (max-width: 900px) {
  .pamphlet-sheet {
    display: block;
    width: auto;
    min-height: auto;
  }

  .pamphlet-image-panel,
  .pamphlet-column {
    margin-bottom: 1.25rem;
  }

  .pamphlet-image-panel {
    min-height: auto;
    padding: 1rem;
  }

  .pamphlet-image-panel img {
    max-height: 460px;
  }

  .pamphlet-column {
    font-size: 1rem;
    line-height: 1.5;
  }
}
