@page { size: A4; margin: 1in 0.75in; }

body.pdf {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  font-size: 12px;
  color: #111;
}

.cover { margin-bottom: 0.5in; }
.cover h1 { margin: 0 0 .25rem; font-size: 28px; }
.cover .meta { font-size: 12px; color: #555; margin: .25rem 0 .5rem; display: flex; gap: .5rem; align-items: center; }
.cover .status { background: #eef; border: 1px solid #ccd; border-radius: 999px; padding: 2px 8px; font-size: 11px; }
.cover .description { margin-top: .25rem; color: #333; }

h1,h2,h3 { break-after: avoid; }
h2 { margin-top: 1.25em; padding-bottom: .2em; border-bottom: 1px solid #e5e7eb; font-size: 18px; }
h3 { margin-top: .9em; font-size: 15px; }

p, ul, ol, pre, table, blockquote { break-inside: avoid; }
li { margin: .2rem 0; }

/* Restore list markers in the PDF */
.content ul { list-style: disc; margin: .4rem 0 .8rem 1.5rem; padding-left: .5rem; }
.content ol { list-style: decimal; margin: .4rem 0 .8rem 1.5rem; padding-left: .5rem; }
.content li { margin: .2rem 0; }

/* Nested lists */
.content li > ul,
.content li > ol { margin-top: .2rem; }

/* (Optional) GFM task lists */
.content ul.task-list { list-style: none; padding-left: 0; }
.content ul.task-list li { display: flex; gap: .5rem; align-items: flex-start; }
.content ul.task-list input[type="checkbox"] { margin-top: .2rem; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border: 1px solid #e5e7eb; padding: .35rem .5rem; }
.table th { background: #f8fafc; font-weight: 600; }

.footer, .header { font-size: 10px; color: #555; }
