/* Amateur radio DXing report – print-friendly CSS (Letter, 1-inch margins) */
:root{
  --text: #111;
  --muted: #555;
  --rule: #d0d0d0;
  --bg: #fff;
}

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

a{ color: inherit; text-decoration: underline; }
a:visited{ color: inherit; }

.container{
  width: 100%;
  max-width: 6.5in; /* Printable width inside 1" margins on Letter */
  margin: 0 auto;
  padding: 0.15in 0.15in 0.25in;
}

header{
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.15in;
  margin-bottom: 0.2in;
}
h1{
  font-size: 18pt;
  margin: 0 0 0.06in 0;
  letter-spacing: 0.2px;
}
.subtitle{
  margin: 0.02in 0 0 0;
  color: var(--muted);
  font-size: 10.5pt;
}
.meta{
  margin-top: 0.1in;
  color: var(--muted);
  font-size: 10pt;
}

nav.toc{
  border: 1px solid var(--rule);
  padding: 0.12in 0.14in;
  margin: 0.2in 0 0.25in;
}
nav.toc h2{
  font-size: 12pt;
  margin: 0 0 0.08in 0;
}
nav.toc ol{
  margin: 0 0 0 1.1em;
  padding: 0;
}
nav.toc li{ margin: 0.02in 0; }

main section{
  margin: 0.22in 0;
}
h2{
  font-size: 13.5pt;
  margin: 0 0 0.08in 0;
  border-top: 1px solid var(--rule);
  padding-top: 0.12in;
}
h3{
  font-size: 11.5pt;
  margin: 0.14in 0 0.06in;
}
p{ margin: 0.06in 0; }
ul, ol{ margin: 0.06in 0 0.08in 1.1em; }
li{ margin: 0.03in 0; }

.callout{
  border: 1px solid var(--rule);
  padding: 0.12in 0.14in;
  background: #fff;
  margin: 0.12in 0;
}
.callout strong{ display: inline-block; margin-bottom: 0.04in; }

table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* prevent overflow */
  margin: 0.08in 0 0.12in;
  font-size: 10.5pt;
}
th, td{
  border: 1px solid var(--rule);
  padding: 0.06in 0.06in;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}
th{
  text-align: left;
  font-weight: 700;
}
td.num{ text-align: right; white-space: nowrap; }

.kicker{
  color: var(--muted);
  font-size: 10pt;
  margin-top: -0.02in;
}

sup.fnref{
  font-size: 75%;
  line-height: 0;
}
sup.fnref a{ text-decoration: none; border-bottom: 1px solid var(--rule); }

.footnotes{
  border-top: 2px solid var(--rule);
  margin-top: 0.25in;
  padding-top: 0.15in;
  font-size: 9.5pt;
}
.footnotes h2{
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  font-size: 12pt;
}
.footnotes ol{ margin: 0.08in 0 0 1.2em; }
.footnotes li{ margin: 0.06in 0; }
.backref{ color: var(--muted); margin-left: 0.08in; font-size: 9pt; }

footer{
  border-top: 1px solid var(--rule);
  margin-top: 0.25in;
  padding-top: 0.12in;
  color: var(--muted);
  font-size: 9.5pt;
}

/* Keep content within printable area */
img, svg, video, iframe{ max-width: 100%; height: auto; }
pre, code{ overflow-wrap: anywhere; }

/* Print rules */
@page{
  size: Letter;
  margin: 1in;
}

@media print{
  body{ background: #fff; }
  .container{
    padding: 0;
    max-width: none;
    width: 100%;
  }
  nav.toc{ break-inside: avoid; }
  table{ break-inside: avoid; }
  h2, h3{ break-after: avoid; }
  a{ text-decoration: underline; }
}
