/* The printable library: its index, and a page for each puzzle. */

.printables .cat { margin: 1.75rem 0 0; }
.printables .cat h2 { padding: 0 var(--gutter); font: 500 1.5rem/1.15 var(--serif); }
.printables .cat > p { padding: 0 var(--gutter); margin: 0.375rem 0 0; color: var(--stone); }
.printables .rows, .printable .rows { margin-top: 0.75rem; }

.printable { padding: 1.25rem var(--gutter) 0.5rem; }
.printable .crumb a { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 2.75rem; color: var(--stone); font: 600 0.9375rem/1 var(--sans); text-decoration: none; }
.printable .crumb .ic { width: 1.125rem; height: 1.125rem; }
.printable h1 { font: 500 2.125rem/1.08 var(--serif); font-size: min(2.125rem, 12vw); letter-spacing: -0.018em; margin: 0.25rem 0 0.75rem; overflow-wrap: anywhere; }
.printable h2 { font: 500 1.375rem/1.15 var(--serif); margin: 0 0 0.5rem; }
/* a character's drawing, under the title */
.printable .art { margin: 0.25rem 0 1rem; }
.printable .art img { display: block; width: min(15rem, 60vw); height: auto; }
.printable .art figcaption { margin-top: 0.375rem; color: var(--stone); font-size: 0.9375rem; line-height: 1.4; max-width: 38rem; }
.printable .facts { max-width: 38rem; }
.printable .facts p { margin: 0 0 0.75rem; overflow-wrap: break-word; }   /* a long number may break at large text */

/* the picture of the puzzle, on a sheet of its own */
.pv-box { margin: 1.25rem 0; padding: 1rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--sheet); }
.pv-box figcaption { margin-top: 0.75rem; color: var(--stone); font-size: 0.9375rem; line-height: 1.4; text-align: center; }
/* drawn at its own size; it only shrinks, never grows */
.pv { display: block; max-width: 100%; height: auto; margin: 0 auto; color: var(--ink); }
.pv text { fill: currentColor; font-family: var(--sans); font-weight: 600; text-anchor: middle; dominant-baseline: central; font-size: 18px; }
.pv .pv-frame { fill: none; stroke: currentColor; stroke-width: 2; }
.pv .pv-l { font-size: 22px; }
.pv .pv-c { font-size: 19px; font-weight: 400; fill: var(--stone); }
.pv .pv-g { font-size: 22px; }
.pv .pv-p { font-size: 22px; }
.pv .pv-t { font-size: 19px; }
.pv .pv-rule { stroke: currentColor; stroke-width: 1.5; }
.pv .pv-tile { fill: var(--paper); stroke: var(--rule); stroke-width: 1.5; }
.pv .pv-thin { stroke: var(--rule); stroke-width: 1; }
.pv .pv-thick { stroke: currentColor; stroke-width: 2.5; }
.pv .pv-d { font-size: 22px; }

/* a word search's words, as text, under the drawing of its grid */
.printable .words { max-width: 38rem; margin: 1.25rem 0 0; }
.printable .find { margin: 0; padding: 0; list-style: none; columns: 3 9rem; column-gap: 1.5rem; }
.printable .find li { break-inside: avoid; padding: 0.125rem 0; overflow-wrap: anywhere; }
/* the sheet as it prints, by the downloads */
.printable .sheet { margin: 1.25rem 0 0; }

.printable .how { max-width: 38rem; margin: 1.5rem 0 0; }
.printable .how p { margin: 0 0 0.5rem; }
.printable .level { color: var(--stone); }
.printable .get { display: flex; flex-wrap: wrap; gap: 0.625rem; max-width: 38rem; margin: 1.25rem 0 0; }
.printable .get .btn { flex: 1 1 14rem; padding-inline: min(1.125rem, 2vw); }   /* room for "Download" at large text on a narrow phone */
.printable .get .ic { width: 1.125rem; height: 1.125rem; }
.printable .ad { margin-left: 0; margin-right: 0; }   /* the page already has its margins */
.printable .sources { max-width: 38rem; margin: 1.5rem 0 0; }
.printable .sources p { color: var(--stone); font-size: 0.9375rem; margin: 0 0 0.375rem; }
.printable .sources ul { margin: 0; padding-left: 1.25rem; }
.printable .sources li { padding: 0; }
.printable .sources a { display: inline-block; padding: 0.6875rem 0; overflow-wrap: anywhere; }   /* 44px tall to press */
.printable .more-in { margin: 1.75rem 0 0; }
.printable .more-in .rows { margin-left: 0; margin-right: 0; }

/* a collection's page: everything in one PDF, each sheet or pack in a box of its own, how to print */
.collection .all, .collection .sheets, .collection .weeks, .collection .how-print { max-width: 38rem; margin: 1.5rem 0 0; }
.collection .all > p, .collection .weeks > p { margin: 0; color: var(--stone); }
.collection .items, .collection .packs { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.875rem; }
.collection .item, .collection .pack { min-width: 0; padding: 1rem min(1.125rem, 4vw) 1.125rem; border: 1px solid var(--rule); border-radius: 4px; }
.collection .pack.now { background: var(--sheet); border-color: var(--ink); }
.collection .item h3, .collection .pack h3 { font: 500 1.25rem/1.15 var(--serif); margin: 0; overflow-wrap: anywhere; }
.collection .item h3 a { display: inline-block; padding: 0.6875rem 0; margin: -0.5rem 0; }   /* the sheet's own page: 44px tall to press, without spreading the box */
.collection .item p, .collection .pack p { margin: 0.25rem 0 0; }
.collection .item-meta, .collection .pack-when { color: var(--stone); }
.collection .pack-label { margin: 0 0 0.25rem; color: var(--stone); font: 600 0.9375rem/1.3 var(--sans); }
.collection .item .get, .collection .pack .get { margin-top: 0.875rem; }
.collection .item .sheet, .collection .all .sheet { margin: 1rem 0 0; }
.collection .none { margin: 0.75rem 0 0; }
.collection .how-print ol { margin: 0; padding-left: 1.25rem; }
.collection .how-print li { margin: 0 0 0.5rem; }
.collection .how-print a, .collection .maker a { text-decoration: underline; }
.collection .maker, .collection .play { max-width: 38rem; margin: 1.25rem 0 0; }
.collection .all-printables { margin: 0.5rem 0 0; }
.collection .all-printables a { display: inline-block; padding: 0.6875rem 0; text-decoration: underline; }   /* 44px tall to press */
/* a sheet's page: the collection it is in */
.printable .also-in { max-width: 38rem; margin: 1rem 0 0; }
.printable .also-in a { text-decoration: underline; }

/* With scripts off no week is called this week's: the page as built cannot know the visitor's week. */
@media (scripting: none) {
  .collection .pack-label { display: none; }
}

@media (forced-colors: active) {
  .collection .item, .collection .pack, .collection .pack.now { border-color: CanvasText; }
  .pv-box { border-color: CanvasText; }
  .pv text { fill: CanvasText; }
  .pv .pv-frame, .pv .pv-rule, .pv .pv-thick, .pv .pv-thin, .pv .pv-tile { stroke: CanvasText; }
}
