:root {
  color: #1d211c;
  background: #e9e6dd;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

body { margin: 0; }

a { color: #274b3d; }

.print-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 14px;
  color: white;
  background: #26362f;
}

.print-toolbar a,
.print-toolbar button {
  border: 1px solid #d2b66f;
  border-radius: 5px;
  padding: 9px 14px;
  color: white;
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.paper-packet {
  width: min(8.5in, calc(100% - 32px));
  margin: 28px auto;
  padding: .55in;
  background: white;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .15);
}

.paper-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 3px double #315041;
}

.paper-header img { object-fit: contain; }
.paper-header p { margin: 0; font-family: Georgia, serif; font-size: 1.15rem; font-weight: 700; }
.paper-header h1 { margin: 2px 0; font-family: Georgia, serif; font-size: 2rem; }
.paper-header span { font-size: .82rem; }

.paper-warning {
  margin: 20px 0;
  border: 2px solid #8a5d1f;
  padding: 14px;
  background: #f7edd8;
  line-height: 1.5;
}

.paper-warning p { margin: 5px 0 0; }

.paper-section {
  break-inside: avoid-page;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #8d958f;
  font-size: .88rem;
  line-height: 1.45;
}

.paper-section-title { display: flex; align-items: center; gap: 10px; }
.paper-section-title span { color: #86512f; font-weight: 800; }
.paper-section-title h2 { margin: 0; font-family: Georgia, serif; font-size: 1.55rem; }
.paper-section h3 { margin: 18px 0 7px; font-size: 1rem; }

.paper-grid,
.paper-parent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.paper-parent-grid article { border: 1px solid #a7aca8; padding: 12px; }
.paper-wide { grid-column: 1 / -1; }
.paper-line { min-height: 30px; margin: 8px 0; border-bottom: 1px solid #3f4742; }
.paper-box { min-height: 74px; margin: 8px 0; border: 1px solid #6d746f; padding: 8px; }
.paper-tall { min-height: 120px; }
.paper-checks { border: 1px solid #a7aca8; padding: 12px; line-height: 1.8; }

.paper-table {
  width: 100%;
  margin: 12px 0 20px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: .69rem;
}

.paper-table th,
.paper-table td {
  height: 56px;
  border: 1px solid #5e655f;
  padding: 5px;
  vertical-align: top;
}

.paper-table thead th { height: auto; background: #ecebe5; }
.evidence-table td { height: 74px; }

.paper-footer {
  margin-top: 30px;
  padding-top: 14px;
  border-top: 3px double #315041;
  font-size: .82rem;
}

@media (max-width: 720px) {
  .paper-packet { width: 100%; margin: 0; padding: 22px; box-shadow: none; }
  .paper-grid, .paper-parent-grid { grid-template-columns: 1fr; }
  .paper-wide { grid-column: auto; }
  .paper-table { font-size: .62rem; }
}

@media print {
  @page { size: letter; margin: .45in; }
  :root { background: white; }
  .print-toolbar { display: none; }
  .paper-packet { width: auto; margin: 0; padding: 0; box-shadow: none; }
  .paper-section { break-inside: auto; }
  .paper-parent-grid article,
  .paper-table,
  .paper-box,
  .paper-warning { break-inside: avoid; }
  a { color: #1d211c; text-decoration: none; }
}
