
/* Advanced Amateur Radio Satellite Communications — Print-Friendly Report
   Letter size, 1-inch margins, black-on-white, margin-constrained layout
*/

:root{
  --text: #111;
  --muted: #444;
  --border: #cfcfcf;
  --bg: #fff;
  --codebg: #f6f6f6;
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.35;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* Screen container */
.page{
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 18px;
}

/* Print: constrain content to Letter minus 1" margins (6.5" width) */
@page{
  size: Letter;
  margin: 1in;
}

@media print{
  .page{
    width: 6.5in;
    max-width: 6.5in;
    margin: 0;
    padding: 0;
  }
  a{ color: #000; text-decoration: underline; }
  .no-print{ display: none !important; }
  /* Prevent awkward page breaks */
  h2, h3{ break-after: avoid-page; page-break-after: avoid; }
  table, figure, blockquote{ break-inside: avoid; page-break-inside: avoid; }
  .callout{ break-inside: avoid; page-break-inside: avoid; }
}

/* Headings */
h1{
  font-size: 20pt;
  margin: 0 0 10px 0;
}
h2{
  font-size: 14pt;
  margin: 18px 0 8px 0;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
h3{
  font-size: 12pt;
  margin: 14px 0 6px 0;
}
p{ margin: 0 0 10px 0; }

.meta{
  color: var(--muted);
  font-size: 10.5pt;
  margin-bottom: 14px;
}
.small{
  font-size: 10.5pt;
  color: var(--muted);
}

.toc{
  border: 1px solid var(--border);
  padding: 10px 12px;
  margin: 14px 0 18px 0;
}
.toc h2{
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.toc ul{
  margin: 8px 0 0 18px;
  padding: 0;
}
.toc li{ margin: 3px 0; }

ul, ol{ margin: 0 0 10px 22px; }
li{ margin: 3px 0; }

.callout{
  border: 1px solid var(--border);
  padding: 10px 12px;
  margin: 12px 0;
  background: #fff;
}
.callout .title{
  font-weight: bold;
  margin-bottom: 6px;
}

hr{
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

table{
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 12px 0;
  table-layout: fixed; /* helps prevent overflow */
}
th, td{
  border: 1px solid var(--border);
  padding: 6px 7px;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
th{
  background: #f1f1f1;
  font-weight: bold;
  font-size: 10.5pt;
}
td{ font-size: 10.5pt; }

code, pre{
  font-family: "Courier New", Courier, monospace;
}
pre{
  background: var(--codebg);
  border: 1px solid var(--border);
  padding: 8px 10px;
  overflow: auto;
  margin: 10px 0 12px 0;
  font-size: 10pt;
}

.footnotes{
  font-size: 10.5pt;
}
.footnotes ol{
  margin-left: 20px;
}
.footnotes li{
  margin: 8px 0;
}
sup a{
  text-decoration: none;
}
.kicker{
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10pt;
  color: var(--muted);
  margin-bottom: 6px;
}
