/* Printable log page. Builds on /style.css (color tokens, buttons, dark mode). */

main.article { max-width: 720px; padding-bottom: 48px; }
.article h1 { font-size: 30px; line-height: 1.15; margin: 8px 0 12px; letter-spacing: -0.02em; }
.article h2 { font-size: 21px; margin: 32px 0 10px; }
.article h3 { font-size: 17px; margin: 20px 0 6px; }
.article p, .article li { line-height: 1.55; }
.article ol, .article ul { padding-left: 22px; }
.article li { margin: 4px 0; }
.article a { color: var(--accent); }
.article a.primary { color: var(--accent-text); }
.lead { font-size: 18px; }
.small { font-size: 14px; }

.site { padding: 4px 0 8px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; text-decoration: none; }
.brand img { height: 22px; }
.print-btn { font-size: 17px; padding: 14px 22px; }

/* ---- Log sheet: looks like paper on screen ---- */
.sheet-scroll { overflow-x: auto; margin: 0 -16px; padding: 4px 16px 12px; }
.sheet {
  min-width: 680px;
  background: #fff;
  color: #111;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 2px 14px rgb(0 0 0 / 0.08);
  padding: 18px 20px;
  font-size: 13px;
}
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; }
.sheet-title { font-size: 20px; }
.sheet-page { color: #555; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 12px 0 10px; }
.fields span { display: flex; gap: 6px; align-items: flex-end; white-space: nowrap; }
.fields i { flex: 1; border-bottom: 1px solid #888; min-width: 40px; height: 1.1em; }
.legend { margin: 6px 0 8px; font-size: 12px; color: #333; display: flex; flex-wrap: wrap; gap: 2px 18px; }
table.log { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.log th, table.log td { border: 1px solid #9a9a9a; padding: 3px 5px; text-align: left; vertical-align: top; }
table.log th { font-size: 12px; background: #f1f1f1; }
table.log th span { font-weight: 400; color: #555; font-size: 10.5px; }
table.log td { height: 30px; }
.c-date { width: 13%; }
.c-time { width: 9%; }
.c-event { width: 19%; }
.c-blood { width: 9%; }
.c-notes { width: 18%; }
td.c-event { color: #888; font-size: 12px; letter-spacing: 1px; white-space: nowrap; vertical-align: middle; }
td.c-blood { color: #888; font-size: 12px; text-align: center; vertical-align: middle; }
.sheet-foot { margin: 8px 0 0; font-size: 11px; color: #555; text-align: right; }

/* ---- Vet checklist (printed page 2) ---- */
.checklist { margin-top: 8px; }
.questions li { margin: 6px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.scale { border-collapse: collapse; width: 100%; font-size: 15px; }
.scale td { padding: 5px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.scale td:first-child { font-weight: 700; width: 1.6em; color: var(--accent); }
.compact { padding-left: 20px; }
.compact li { margin: 3px 0; }
.urgent {
  margin-top: 24px;
  padding: 4px 18px 10px;
  border-left: 4px solid var(--danger);
  background: color-mix(in srgb, var(--danger) 7%, var(--surface));
  border-radius: 8px;
}

/* ---- Call to action ---- */
.cta {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 36px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.cta img { width: 56px; margin-top: 8px; }
.cta h2 { margin-top: 0; }
.cta .button { margin-top: 4px; }
.site-foot { margin-top: 32px; font-size: 14px; color: var(--muted); }

@media (max-width: 560px) {
  .article h1 { font-size: 26px; }
  .two-col { grid-template-columns: 1fr; }
  .cta { flex-direction: column; }
}

/* ---- Print: exactly two pages, page 1 the sheet, page 2 the checklist ---- */
@media print {
  @page { margin: 12mm; }
  main.article { max-width: none; padding: 0; }
  .sheet-scroll { overflow: visible; margin: 0; padding: 0; }
  .sheet { min-width: 0; border: 0; box-shadow: none; padding: 0; font-size: 10.5pt; }
  .sheet-title { font-size: 16pt; }
  table.log td { height: 9.2mm; }
  .checklist { break-before: page; font-size: 10.5pt; margin: 0; }
  .checklist h2 { margin-top: 0; font-size: 15pt; }
  .checklist h3 { font-size: 12pt; margin-top: 12px; }
  .questions li { margin: 2px 0; }
  .scale { font-size: 10.5pt; }
  .scale td { padding: 2px 6px; }
  .urgent { margin-top: 12px; background: none; border: 1.5px solid #000; border-left-width: 5px; }
  .article p, .article li { line-height: 1.35; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
