/* Dad Joke Museum kits: the home page's daily-joke feeds row, the full-sheet sets on
   /printable-joke-picks/, and the print formats on /print/ (cracker slips, place cards, treat-bag
   tags) beside museum.css's lunchbox fold notes. Loaded only on those three pages. Sheets fill a
   Letter page (10in of a 10.2in printable height) or an A4 page (10.6in of 10.9in); every card's
   outline is a dashed cut line, and folds are dotted. */

/* ---------- home: get the daily joke ---------- */
.feed-row {
  max-width: 46rem; margin: 2.4rem auto 0; padding: 4px 18px 18px; background: var(--stone-hi);
  border: 1px solid var(--stone-3); border-top: 4px double var(--stone-4); border-radius: 3px;
}
.feed-row > h2 { text-align: center; }
.feed-row > p { font-size: .94rem; color: var(--ink-2); }
.feed-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.feed-links li {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .6rem;
  padding-top: .8rem; border-top: 1px solid var(--stone-3);
}
.feed-links b { flex: 1 0 100%; font: 600 1.25rem/1.2 var(--serif); }
.feed-links .fine { flex: 1 0 100%; margin: 0; font-size: .86rem; }
.feed-links .btn { min-height: var(--tap); font-size: .9rem; }
@media (min-width: 640px) {
  .feed-links b { flex: 0 0 12rem; }
  .feed-links .fine { flex: 1 1 10rem; }
}

/* ---------- /printable-joke-picks/: full-sheet sets ---------- */
.print-sets { max-width: 46rem; margin: 2rem auto 0; }
.print-sets > h2, .print-sets > p { text-align: center; }
.print-set {
  margin: 1rem 0; padding: 4px 18px 14px; background: var(--stone-hi);
  border: 1px solid var(--stone-3); border-left: 4px solid var(--gilt); border-radius: 3px;
}
.print-set h3 { margin: .7rem 0 .2rem; font: 600 1.35rem/1.2 var(--serif); }
.print-set p { margin: .35rem 0; }
.print-set details { margin-top: .4rem; }
.print-set summary { min-height: var(--tap); display: flex; align-items: center; gap: .5rem; cursor: pointer; font-weight: 700; color: var(--ink); }
.print-set summary::before { content: ""; border: 5px solid transparent; border-left: 7px solid currentColor; border-right: 0; transition: transform .15s; }
.print-set details[open] > summary::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .print-set summary::before { transition: none; } }
.print-set ol { margin: .2rem 0 .4rem; padding-left: 1.4rem; }
.print-set li { margin: .3rem 0; }
.print-set li i { color: var(--ink-2); }

/* ---------- /print/: the set note and the format and paper choices (screen only) ---------- */
.set-note {
  max-width: 44rem; margin: 1rem auto 0; padding: .7rem .9rem; text-align: center;
  background: var(--stone-hi); border: 1px solid var(--stone-3); border-radius: 3px;
}
.print-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1.4rem; max-width: 44rem; margin: 1rem auto 0; }
.print-opts fieldset { margin: 0; padding: .3rem .9rem .6rem; border: 1px solid var(--stone-3); border-radius: 3px; min-width: 0; }
.print-opts legend { padding: 0 .3rem; font: 700 .8rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.print-opts label { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .5rem; min-height: var(--tap); cursor: pointer; }
.print-opts input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--velvet); }
.print-opts .fine { margin: 0; }

/* ---------- print: the formats ---------- */
@media print {
  .set-note, .print-opts { display: none !important; }
  .fold-sheets[data-paper="a4"] .fold-sheet { height: 10.6in; }
  .fold-sheet.fmt-cracker { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(7, minmax(0, 1fr)); gap: .14in; }
  .fold-sheet.fmt-placecard { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .3in; }
  .fold-sheet.fmt-tag { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: .22in; }
  .cut { position: relative; border: 1px dashed #888; break-inside: avoid; overflow: hidden; color: #111; background: #fff; }
  .cut p { margin: 0; max-width: none; }
  .cut .fn-mark { display: block; font: 600 6pt/1 Arial, sans-serif; letter-spacing: .08em; color: #777; text-transform: uppercase; }

  /* Christmas cracker slips: a strip to roll into a cracker, setup then punchline */
  .cracker-slip { display: flex; flex-direction: column; justify-content: safe center; gap: .05in; padding: .07in .14in; }
  .cs-setup { font: 700 9pt/1.22 Arial, sans-serif; }
  .cs-punch { font: italic 400 9pt/1.22 Georgia, serif; color: #333; }
  .cracker-slip .fn-mark { text-align: right; }

  /* Thanksgiving place cards: fold along the dotted line into a tent */
  .place-card { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .place-card::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dotted #888; }
  .pc-back, .pc-front { display: flex; flex-direction: column; justify-content: safe center; align-items: center; gap: .1in; padding: .2in .26in; text-align: center; overflow: hidden; }
  .pc-back { transform: rotate(180deg); }
  .pc-punch { font: italic 400 13pt/1.3 Georgia, serif; color: #333; }
  .pc-name { display: block; width: 80%; height: .5in; border-bottom: 1px solid #555; }
  .pc-setup { font: 700 11pt/1.3 Arial, sans-serif; }

  /* Treat-bag tags: punch out the circle and thread a ribbon */
  .bag-tag { display: flex; flex-direction: column; align-items: center; gap: .07in; padding: .1in .14in; text-align: center; }
  .bt-hole { flex: none; width: .24in; height: .24in; border: 1px dashed #888; border-radius: 50%; }
  .bt-setup { font: 700 9.5pt/1.25 Arial, sans-serif; }
  .bt-punch { font: italic 400 9.5pt/1.25 Georgia, serif; color: #333; padding-top: .06in; border-top: 1px solid #bbb; }
  .bag-tag .fn-mark { margin-top: auto; }
}
