/* printables.css — print-ready checklist pages */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;0,6..72,700;1,6..72,400&display=swap');

:root {
  --color-bg: #FBF8F2;
  --color-ink: #1F2A33;
  --color-ink-muted: #556270;
  --color-storm: #3A6B83;
  --color-warm: #C2742B;
  --color-rule: #E6DFD0;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11pt;
  line-height: 1.5;
  color: var(--color-ink);
  background: #fff;
  margin: 0;
  padding: 0.25in 0.5in;
  max-width: 7.5in;
}

h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 28pt;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 0.1in 0;
  line-height: 1.1;
}

.lede {
  font-size: 10.5pt;
  color: var(--color-ink-muted);
  margin: 0 0 0.3in 0;
  max-width: 5.5in;
}

h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 16pt;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0.25in 0 0.1in 0;
  padding-bottom: 4pt;
  border-bottom: 1pt solid var(--color-rule);
}

/* The checklist table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.15in;
  font-size: 10.5pt;
}

thead th {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 9pt;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink-muted);
  border-bottom: 1.5pt solid var(--color-ink);
  padding: 4pt 6pt 5pt;
  text-align: left;
}

thead th:last-child {
  text-align: center;
  width: 28pt;
}

tbody tr {
  border-bottom: 0.5pt solid var(--color-rule);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody td {
  padding: 5pt 6pt;
  vertical-align: top;
}

/* Item column — slightly heavier */
tbody td:first-child {
  font-weight: 400;
  width: 44%;
}

/* Quantity column */
tbody td:nth-child(2) {
  width: 34%;
  color: var(--color-ink);
}

/* Priority column */
tbody td:nth-child(3) {
  width: 14%;
  font-size: 8.5pt;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-ink-muted);
}

/* Checkbox column */
tbody td:last-child {
  text-align: center;
  font-size: 12pt;
  width: 28pt;
  color: var(--color-ink-muted);
}

/* Page break: avoid mid-section */
h2 { page-break-after: avoid; }
table { page-break-inside: auto; }
tr { page-break-inside: avoid; }

/* Disclaimer and footer */
.disclaimer {
  font-size: 9pt;
  color: var(--color-ink-muted);
  border-top: 0.5pt solid var(--color-rule);
  margin-top: 0.3in;
  padding-top: 6pt;
}

.site-line {
  font-size: 9pt;
  color: var(--color-ink-muted);
  margin-top: 4pt;
}

.print-support-line {
  margin: 0 0 0.22in;
  padding: 0 0 8pt;
  border-bottom: 0.5pt solid var(--color-rule);
  font-size: 9.5pt;
  color: var(--color-ink-muted);
}

.print-support-line a {
  color: inherit;
  text-decoration: none;
}

/* Screen-only: basic readability when viewed in a browser */
@media screen {
  body {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
    border-radius: 8px;
  }

  .print-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-rule);
  }

  .print-bar .print-bar-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .print-bar .print-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-left: auto;
  }

  .print-bar a.back-link {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.875rem;
    color: var(--color-storm);
    text-decoration: none;
  }

  .print-bar a.back-link:hover { text-decoration: underline; }

  .print-bar .print-support-link {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-ink-muted);
    text-decoration: none;
  }

  .print-bar .print-support-link:hover { text-decoration: underline; }

  .print-bar button {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    background: var(--color-warm);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.55rem 1.25rem;
    cursor: pointer;
  }

  .print-bar button:hover { background: #a8601f; }

  .print-support-line {
    margin-bottom: 1.1rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--color-rule);
    border-radius: 8px;
    background: #F7F3EA;
  }
}

@media screen and (max-width: 640px) {
  body {
    padding: 1.25rem;
  }

  .print-bar .print-bar-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .print-bar button {
    flex: 1 1 auto;
  }
}

@media print {
  .print-bar { display: none; }
}
