/* The paycheck budget spreadsheet's page (/paycheck-budget-spreadsheet), loaded after style.css and tools.css:
   one card that offers the file, with a picture of its Paycheck sheet lying on a desk. Colours are the site's
   tokens only, so the card follows the page into Dusk in dark mode; the picture is of a white spreadsheet and
   stays white. The file and its picture are made by scripts/build_spreadsheet.py. */
.sheet-get { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 290px); margin-top: 28px; background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); overflow: hidden; }
.sheet-text { min-width: 0; padding: 24px 24px 22px; }
/* What kind of file it is, under the button. */
.doc .sheet-facts { margin-top: 12px; color: var(--quiet); font: 500 0.84rem/1.4 var(--sans); }
.doc .sheet-text h2 { font-size: 1.25rem; margin-top: 26px; padding-top: 0; }
.doc .sheet-text ul { margin-top: 10px; }
.doc .sheet-text li, .doc .sheet-note { color: var(--muted); font-size: 0.97rem; line-height: 1.5; }
.sheet-text li strong { color: var(--ink); }
.doc .sheet-note { margin-top: 14px; }

/* The desk the sheet lies on. */
.sheet-desk { display: grid; align-content: center; justify-items: center; gap: 12px; margin: 0; padding: 22px 26px; background: var(--bg-2); border-left: 1px solid var(--card-line); }
.sheet-desk img { width: 100%; border: 1px solid var(--card-line); box-shadow: var(--phone-shadow); }
.sheet-desk figcaption { color: var(--quiet); font: 500 0.8rem/1.35 var(--sans); text-align: center; }

/* On a phone the picture goes under the words, on a shorter desk. */
@media (max-width: 640px) {
  .sheet-get { grid-template-columns: minmax(0, 1fr); }
  .sheet-text { padding: 20px 16px 18px; }
  .sheet-desk { padding: 20px 16px; border-left: 0; border-top: 1px solid var(--card-line); }
  .sheet-desk img { width: min(72%, 270px); }
}
/* On a narrow phone the button runs the card's full width, so its words stay on one line. */
@media (max-width: 400px) {
  .sheet-text .button { display: flex; justify-content: center; padding: 0 10px; text-align: center; }
}

/* On paper the page is the steps, not the offer: the card's picture is left out. */
@media print {
  .sheet-get { display: block; border: 0; }
  .sheet-desk { display: none; }
  .sheet-text { padding: 0; }
}
