/* ==========================================
   NWBCC Print Stylesheet
   Optimized for printing flyers and info
   ========================================== */

/* Reset for print */
* {
  background: transparent !important;
  color: #000 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Page setup */
@page {
  margin: 0.5in;
  size: auto;
}

body {
  font-family: 'Times New Roman', serif;
  font-size: 12pt;
  line-height: 1.5;
  color: #000;
  background: #fff;
}

/* Hide non-essential elements */
nav,
header nav,
.hero-banner,
.polaroid-row,
footer .footer-content,
.help-btn,
.email-btn,
button,
.social-links,
video,
audio,
iframe {
  display: none !important;
}

/* Keep footer contact info visible */
footer .footer-bottom {
  display: block !important;
  border-top: 1px solid #000;
  padding-top: 0.5rem;
  margin-top: 2rem;
  font-size: 9pt;
  text-align: center;
}

/* Main content */
main {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 100%;
  padding: 0;
}

/* Typography */
h1 {
  font-size: 24pt;
  margin-bottom: 0.5rem;
  page-break-after: avoid;
}

h2 {
  font-size: 18pt;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  page-break-after: avoid;
}

h3 {
  font-size: 14pt;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  page-break-after: avoid;
}

h4, h5, h6 {
  font-size: 12pt;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  page-break-after: avoid;
}

p {
  orphans: 3;
  widows: 3;
}

/* Links */
a {
  color: #000;
  text-decoration: underline;
}

/* Show URLs for important links */
a[href^="http"]:after,
a[href^="mailto:"]:after,
a[href^="tel:"]:after {
  content: " (" attr(href) ")";
  font-size: 90%;
  font-style: italic;
}

/* Don't show URLs for internal page links */
a[href^="#"]:after,
a[href^="/"]:after,
a.help-btn:after,
a.email-btn:after {
  content: "";
}

/* Lists */
ul, ol {
  margin-left: 1.5rem;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  page-break-inside: avoid;
}

th, td {
  border: 1px solid #000;
  padding: 0.25rem 0.5rem;
  text-align: left;
}

th {
  font-weight: bold;
  background: #f0f0f0 !important;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  page-break-inside: avoid;
}

/* Cards and sections */
.card,
.info-card,
.partner-card,
.opportunity-card,
.benefit-item {
  border: 1px solid #ccc;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  page-break-inside: avoid;
}

.polaroid-card {
  border: 2px solid #000;
  padding: 0.5rem;
  margin-bottom: 1rem;
  page-break-inside: avoid;
}

/* Grids to single column for print */
.info-grid,
.opportunities-grid,
.benefits-grid,
.partner-grid {
  display: block;
}

/* Page breaks */
.page-break-before {
  page-break-before: always;
}

.page-break-after {
  page-break-after: always;
}

.no-break {
  page-break-inside: avoid;
}

/* Contact info boxes */
.contact-info,
.location-info {
  border: 2px solid #000;
  padding: 1rem;
  margin: 1rem 0;
  page-break-inside: avoid;
}

.contact-info p,
.location-info p {
  margin: 0.25rem 0;
}

/* Emphasis */
strong, b {
  font-weight: bold;
}

em, i {
  font-style: italic;
}

/* QR codes and important images - keep visible */
.qr-code,
img[src*="qr"],
img[src*="monarch"],
img[src*="vita"] {
  display: block !important;
  max-width: 3in;
  margin: 0.5rem auto;
}

/* Hide decorative icons */
.icon {
  display: none;
}

/* Ensure readability */
.get-help,
.featured-docs,
.opportunities-section,
.apply-section {
  margin-bottom: 1rem;
  page-break-inside: avoid;
}

/* Footer adjustments */
footer a {
  color: #000 !important;
  text-decoration: none;
  font-weight: normal;
}
