/* Print-friendly IEEE-style addendum layout (US Letter, 1" margins) */

@page {
  size: Letter;
  margin: 1in;
}

:root {
  --text: #111;
  --muted: #444;
  --rule: #c9c9c9;
  --bg: #fff;
  --link: #0645ad;
  --codebg: #f5f5f5;
}

html, body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  font-family: "Times New Roman", Times, serif;
  line-height: 1.35;
  font-size: 11pt;
}

.container {
  max-width: 6.5in; /* 8.5in - 2in margins */
  margin: 0 auto;
  padding: 0;
}

.paper-header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10pt;
  margin: 0 0 14pt 0;
}

.title {
  font-size: 18pt;
  margin: 0 0 4pt 0;
  font-weight: 700;
}

.subtitle {
  font-size: 12.5pt;
  margin: 0 0 6pt 0;
  font-weight: 600;
  color: var(--muted);
}

.meta, .authorline {
  margin: 0;
  color: var(--muted);
  font-size: 10pt;
}

.kicker {
  font-weight: 700;
  color: var(--text);
}

h2 {
  font-size: 13.5pt;
  margin: 16pt 0 6pt 0;
  border-top: 1px solid var(--rule);
  padding-top: 10pt;
}

h3 {
  font-size: 12pt;
  margin: 12pt 0 4pt 0;
}

p { margin: 0 0 8pt 0; }

ul, ol {
  margin: 0 0 10pt 18pt;
  padding: 0;
}

li { margin: 0 0 4pt 0; }

small, .small { font-size: 9.5pt; color: var(--muted); }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 12pt 0;
}

a, a:visited { color: var(--link); }
a:hover { text-decoration: underline; }

.cite {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9.5pt;
  vertical-align: super;
}

.badge {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9pt;
  border: 1px solid var(--rule);
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 6px;
  white-space: nowrap;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 8pt 0 12pt 0;
  table-layout: fixed;
}

th, td {
  border: 1px solid var(--rule);
  padding: 6pt;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

th {
  font-weight: 700;
  background: #fafafa;
}

.code {
  font-family: "Courier New", Courier, monospace;
  background: var(--codebg);
  padding: 1pt 4pt;
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.callout {
  border: 1px solid var(--rule);
  padding: 10pt;
  margin: 10pt 0 12pt 0;
}

.references ol {
  margin-left: 22pt;
}

.references li {
  margin-bottom: 6pt;
  overflow-wrap: anywhere;
}

.footnotes {
  margin-top: 14pt;
  border-top: 1px solid var(--rule);
  padding-top: 10pt;
}

@media print {
  a { color: #000; } /* printed links appear in black; URLs still visible in text */
  .no-print { display: none !important; }
  h2, h3 { break-after: avoid-page; }
  table, figure, .callout { break-inside: avoid-page; }
}
