/* meshtastic-noncommercial-resources.css */
/* Print-friendly: US Letter, 1-inch margins, black-on-white */
@page {
  size: Letter;
  margin: 1in;
}

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

html, body {
  padding: 0;
  margin: 0;
}

body {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: #000;
  background: #fff;
  line-height: 1.35;
}

/* Constrain content to the printable area (Letter width 8.5in - 2in margins = 6.5in) */
.page {
  max-width: 6.5in;
  padding: 0.25in 0; /* small breathing room for screen; print margins handled by @page */
  margin: 0 auto;
}

.header h1 {
  font-size: 18pt;
  margin: 0 0 6pt 0;
}

.subtitle {
  margin: 0 0 12pt 0;
  font-size: 11pt;
}

h2 {
  font-size: 13pt;
  margin: 14pt 0 6pt 0;
}

.note p {
  margin: 0 0 10pt 0;
}

.works-cited {
  margin: 0;
  padding-left: 18pt;
}

.entry {
  margin: 0 0 10pt 0;
}

.citation {
  margin: 0 0 4pt 0;
  hanging-punctuation: first;
}

.desc {
  margin: 0;
  font-size: 10.5pt;
}

/* Ensure URLs remain visible and printable without overrunning margins */
a.url {
  color: #000;
  text-decoration: underline;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer {
  margin-top: 14pt;
  border-top: 1px solid #000;
  padding-top: 8pt;
  font-size: 10pt;
}

/* Print tuning */
@media print {
  body {
    background: #fff;
  }

  .page {
    max-width: none;
    padding: 0;
    margin: 0;
  }

  a.url {
    text-decoration: underline;
  }
}
