/* Printable sleep diary. Kept separate from styles.css so the landscape @page
   rule only applies to this page. */
.diary-section { padding: 0.5rem 0; }
.sheet-wrap { overflow-x: auto; border-radius: 12px; }
.sheet { min-width: 780px; padding: 1.5rem; background: #fff; color: #111; border-radius: 12px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 0.6rem; font-size: 0.8rem; }
.sheet h2 { font-size: 1.25rem; line-height: 1.2; }
.blank { display: inline-block; width: 130px; margin: 0 0.75rem 0 0.25rem; border-bottom: 1px solid #333; }
.diary { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.74rem; line-height: 1.2; }
.diary-label { width: 25%; }
.diary th,
.diary td { height: 29px; padding: 0.15rem 0.4rem; border: 1px solid #666; }
.diary th { text-align: left; font-weight: 600; }
.diary thead th:not(:first-child) { text-align: center; }
.diary .diary-group th { height: 20px; background: #e9e5da; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; }
.diary .tall th,
.diary .tall td { height: 52px; }
.sheet-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.5rem; font-size: 0.7rem; color: #333; }

@page { size: landscape; margin: 0.35in; }

@media print {
  body { background: #fff; color: #000; overflow: visible; }
  body::before,
  .backdrop,
  .skip-link,
  .site-header,
  .site-footer,
  .screen-only { display: none !important; }
  .diary-section { padding: 0; }
  .diary-section .container { max-width: none; padding: 0; }
  .sheet-wrap { overflow: visible; border-radius: 0; }
  .sheet { min-width: 0; padding: 0; border-radius: 0; break-inside: avoid; }
  .diary th,
  .diary td { height: 29px; }
  .diary .diary-group th { height: 19px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .diary .tall th,
  .diary .tall td { height: 72px; }
}
