/* The one-page week board (js/board.js). */
.board { width: 980px; padding: 0; background: var(--white); color: var(--ink); font-family: var(--sans); transform-origin: 0 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.board__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 8px; }
.board__head h3 { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; }
.board__head p { font-size: 12px; color: var(--ink-2); }
.board__status { text-align: right; }
.board__grid { display: grid; grid-template-columns: 70px repeat(7, minmax(0, 1fr)); border-top: 1px solid #9aa7b4; border-left: 1px solid #9aa7b4; }
.board__grid > div { border-right: 1px solid #9aa7b4; border-bottom: 1px solid #9aa7b4; }
.board__corner, .board__day { background: var(--accent-deep); }
.board__day { padding: 6px 4px; color: var(--white); text-align: center; font-size: 12px; font-weight: 700; }
.board__meal { display: flex; align-items: center; justify-content: center; padding: 4px; background: var(--accent-wash); color: var(--accent-deep); font-size: 11px; font-weight: 700; text-align: center; }
.board__cell { min-width: 0; padding: 6px 5px 8px; overflow-wrap: anywhere; hyphens: auto; }
.board__cell.is-empty { display: grid; place-items: center; color: var(--ink-3); }
.board__cell b { display: block; margin-bottom: 4px; font-size: 11.5px; font-weight: 700; line-height: 1.2; }
.board__cell li { display: flex; justify-content: space-between; align-items: baseline; gap: 3px; padding: 1.5px 0; font-size: 9.8px; line-height: 1.22; }
.board__cell li span { color: var(--ink-2); }
.board__cell li em { flex: none; font-style: normal; font-weight: 700; }
.board__foot { padding-top: 5px; font-size: 9px; color: var(--ink-3); }

.board-preview { width: 100%; overflow: hidden; }
/* The preview has a margin of its own, inside the same overall width. */
.board-preview .board { padding: 16px; box-sizing: border-box; }

/* The thing being printed waits off screen, where its height can be measured. */
.print-root { position: absolute; left: -12000px; top: 0; width: 980px; }
@media print {
  body.printing { background: var(--white); }
  body.printing > :not(.print-root) { display: none !important; }
  body.printing > .print-root { position: static; width: auto; }
  .print-root > .board { margin-inline: auto; }
  /* The full list: tighter than on screen, so that a day fits on a page. */
  .print-root > .sheet { max-width: none; padding: 0; box-shadow: none; zoom: 0.75; }
  .print-root .sheet__head h3 { margin-top: 8px; font-size: 28px; }
  .print-root .sheet__head { padding-bottom: 10px; }
  .print-root .sheet__dayname { margin-top: 10px; }
  .print-root .sheet__meal { padding-top: 10px; }
  .print-root .sheet__meal li { padding-block: 1px; }
  .print-root .shopping__aisle { break-inside: avoid; }
  .print-root .shopping li { padding: 1px 0; }
  .print-root .shopping { columns: 2; column-gap: 32px; }
  .print-root .shopping > .sheet__dayname, .print-root .shopping > .sheet__note { column-span: all; }
  .print-root .sheet__foot { margin-top: 12px; padding-top: 0; border-top: 0; break-inside: avoid; }
  .print-root .sheet__sign { margin-top: 12px; width: auto; }
}

/* Five or six meals a day: tighter, so that the type stays readable on one page. */
.board--dense .board__cell { padding: 3px 4px 4px; }
.board--dense .board__cell b { margin-bottom: 2px; font-size: 10px; line-height: 1.15; }
.board--dense .board__cell li { padding: 0; font-size: 8.8px; line-height: 1.15; }
.board--dense .board__meal { font-size: 10px; }
