/* The answers pages, /puzzles/<edition>/answers/ (S1, owner 2026-11-17), made by tools/puzzles/build-answers.js.
   Loaded after puzzles.css, whose tokens, pills, labels, crossword squares (.pz-xw .c.ans), rings and word search
   grid it uses as they are. */

.pz-answers { --pz-a-shadow: 0 1px 2px rgba(70, 56, 40, .06), 0 12px 30px -18px rgba(70, 56, 40, .35); }
.pz-answers .pz-a-acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.pz-answers .pz-a-acts [hidden] { display: none; }

/* The puzzles on the page, between two sand lines */
.pz-a-jump { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 8px 32px; max-width: 980px; margin: 40px auto 0; padding: 16px 24px; border-top: 1px solid var(--pz-sand); border-bottom: 1px solid var(--pz-sand); font-size: 15px; }
.pz-a-jg { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }   /* Adult and its puzzles, Kids and theirs */
.pz-a-jump .pz-label { color: var(--pz-olive); }
.pz-a-jump a { color: var(--pz-ink); border-bottom: 1px solid transparent; transition: color 300ms ease, border-color 300ms ease; }
.pz-a-jump a:hover { color: var(--pz-sand); border-bottom-color: var(--pz-sand); }

.pz-a-group { margin-top: 64px; }
.pz-a-sol { padding: 34px 0 40px; border-bottom: 1px dashed var(--pz-line); scroll-margin-top: 110px; }
.pz-a-sol:last-child { border-bottom: 0; }
.pz-a-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 24px; }
.pz-a-head .pz-n { flex: none; width: 38px; font-family: var(--pz-caps); font-size: 26px; color: var(--pz-sand); line-height: 1; }
.pz .pz-a-head h3 { font-size: 30px; line-height: 1.2; }
.pz-a-head .pz-m { margin: 4px 0 0; font-family: var(--pz-caps); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--pz-label); line-height: 1.5; }
.pz-a-head .pz-a-try { margin-left: auto; font-size: 14.5px; white-space: nowrap; }

/* A picture or grid on the left, the answers in words on the right */
.pz-a-two { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 48px; align-items: start; padding-left: 60px; }
.pz-a-one { max-width: 900px; padding-left: 60px; }
.pz-a-vis { container-type: inline-size; min-width: 0; }   /* the crossword's squares size themselves to this column */
.pz-a-vis[hidden] { display: none; }
/* As in the mockup, a grid or picture fills its column, with soft corners and a shadow: the crossword's squares grow to
   fit (the puzzle page stops them at 31px, 44px for kids), and the kids' free-shaped grid sits on a white card. The
   free grid draws its right and bottom lines 1px outside its squares: 1px of padding keeps them inside the clipped card. */
.pz-a-vis .pz-gridwrap { width: 100%; }
.pz-a-vis .pz-xw { --cell: calc((100cqw - 3px - var(--cols, 15) * 1px) / var(--cols, 15)); border-radius: 8px; overflow: hidden; box-shadow: var(--pz-a-shadow); }
/* not clipped: the card's rounded corner would cut the lines of a square that sits in it (only the white is rounded) */
.pz-a-vis .pz-xw.free { --cell: calc((100cqw - 1px) / var(--cols, 9)); padding: 0 1px 1px 0; overflow: visible; background: var(--pz-card); }
.pz-a-vis .pz-xw .c { cursor: default; }
.pz-a-vis .pz-xsol-row button { cursor: default; }   /* a hidden word's boxes under the grid (Edition Three), shown, not typed in */

/* The word search: the puzzle's own block, drawn by js/puzzles-answers.js, showing nothing but its grid */
.pz-a-wsvis > :not(.pz-card), .pz-a-wsvis .pz-card > :not(.pz-ws), .pz-a-wsvis .pz-ws > :not(.pz-ws-grid) { display: none !important; }
.pz-a-wsvis .pz-card { padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
.pz-a-wsvis .pz-ws { margin: 0; }
@media (min-width: 576px) { .pz-a-wsvis .pz-ws.stack > .pz-ws-grid { justify-self: start; } }   /* phones: centred, edge to edge (puzzles.css) */
.pz-a-wsvis .pz-ws-grid { box-shadow: var(--pz-a-shadow); }
.pz-a-wsvis .pz-ws-grid button { cursor: default; }

.pz-a-pic { cursor: default; border-radius: 8px; box-shadow: var(--pz-a-shadow); }

/* Clues with their answers under them */
.pz-a-clues { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
/* "pz" in front where puzzles.css's .pz p / .pz ul, .pz ol (margin 0) would otherwise win */
.pz .pz-a-cl { margin: 8px 0 0; font-size: 14.5px; line-height: 1.45; }
.pz-a-cl li { display: grid; grid-template-columns: 26px 1fr; column-gap: 6px; padding: 6px 0; border-bottom: 1px solid #efe8de; }
.pz-a-cl b { font-weight: 600; color: var(--pz-ink); }
.pz-a-cl span { color: var(--pz-text); }
.pz-a-cl em { grid-column: 2; font-style: normal; font-family: var(--pz-caps); font-size: 13.5px; letter-spacing: 1.6px; color: var(--pz-answer); }

/* Questions with their answers */
.pz-a-qa { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.pz-a-qa li { display: grid; grid-template-columns: 34px 1fr; padding: 14px 0; border-bottom: 1px solid #efe8de; counter-increment: q; }
.pz-a-qa li::before { content: counter(q); font-family: var(--pz-serif); font-size: 20px; color: var(--pz-sand); line-height: 1.3; }
.pz-a-qa p { grid-column: 2; margin: 0; }
.pz-a-q { color: var(--pz-ink); font-size: 16px; line-height: 1.55; }
.pz .pz-a-ans { margin-top: 4px; color: var(--pz-answer); font-size: 16px; line-height: 1.55; font-weight: 600; }
.pz-a-ans.own { color: var(--pz-text); font-weight: 400; font-style: italic; }

/* Beside a grid or picture */
.pz .pz-a-h { margin: 0 0 8px; font-family: var(--pz-caps); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--pz-olive); line-height: 1.5; }
.pz-a-verse { margin: 0 0 6px; }
.pz-a-verse p { margin: 0; font-family: var(--pz-serif); font-size: 22px; line-height: 1.5; color: var(--pz-ink); }
.pz .pz-a-ref { margin: 0 0 26px; color: var(--pz-answer); font-weight: 600; }
.pz .pz-a-words { columns: 3; column-gap: 20px; margin: 0 0 14px; font-family: var(--pz-caps); font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--pz-ink); line-height: 2; }
.pz .pz-a-small { margin: 0 0 22px; font-size: 14px; color: var(--pz-text); }
.pz .pz-a-diffs { padding-left: 22px; columns: 2; column-gap: 26px; font-size: 14.5px; line-height: 1.75; color: var(--pz-text); }
.pz-a-diffs li { break-inside: avoid; }
.pz-a-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; margin: 0 0 14px; }
.pz-a-pairs div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 1px solid #efe8de; }
.pz-a-pairs dt { font-family: var(--pz-caps); font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 400; color: var(--pz-ink); }
.pz-a-pairs dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--pz-answer); text-align: right; }

/* Word scramble: each word and what it unscrambles to, then the secret phrase */
.pz .pz-a-scr { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 10px 48px; margin: 0 0 30px; }
.pz-a-scr li { display: flex; align-items: center; gap: 12px; font-family: var(--pz-caps); font-size: 15px; letter-spacing: 2px; }
.pz-a-scr .pz-ic { width: 13px; height: 13px; stroke: var(--pz-sand); }
.pz-a-from { color: var(--pz-text); }
.pz-a-to { color: var(--pz-answer); font-weight: 600; }
.pz .pz-a-phrase { margin: 6px 0 18px; font-family: var(--pz-caps); font-size: 22px; letter-spacing: 4px; color: var(--pz-answer); }

/* Below 1200px the side column would be under 290px (too narrow for three columns of words or two of clues): stack */
@media (max-width: 1199px) {
  .pz-a-two { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pz-a-vis, .pz-a-pic { max-width: 560px; }
}
@media (max-width: 767px) {
  .pz-a-two, .pz-a-one { padding-left: 0; }
  /* the number stays beside the title, the link goes under the details line */
  .pz-a-head { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; }
  .pz-a-head .pz-a-try { grid-column: 2; justify-self: start; margin-left: 0; }
  .pz-a-clues { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pz .pz-a-words { columns: 2; }
  .pz .pz-a-diffs { columns: 1; }
  .pz-a-pairs { grid-template-columns: minmax(0, 1fr); }
  .pz .pz-a-scr { grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 32px; }
  .pz-a-jump { justify-content: flex-start; padding: 14px 0; }
  .pz-a-jg { flex-basis: 100%; }
}
@media (max-width: 575px) {
  .pz .pz-a-scr { grid-template-columns: minmax(0, 1fr); }   /* two "EARTWS → WATERS" side by side are wider than a phone */
}

@media print {
  .pz-a-acts, .pz-a-jump, .pz-a-try, .cookie-notice { display: none !important; }   /* the notice (js/cookie-notice.js) would cover answers */
  .pz-answers > .container { max-width: none; padding-left: 0; padding-right: 0; }   /* the whole width of the paper */
  .pz-answers .pz-intro { margin-top: 0; }
  .pz-answers .pz-intro h1 { font-size: 44px; }
  .pz-a-group { margin-top: 24px; }
  .pz-a-group > .pz-toc-head, .pz-a-head, .pz .pz-a-h, .pz-a-scr + .pz-a-h + .pz-a-q { break-after: avoid; }
  .pz-a-sol { padding: 18px 0 22px; }
  /* breaks fall between clues, questions and changes, never through a grid or picture */
  .pz-a-vis, .pz-a-pic, .pz-a-verse, .pz-a-cl li, .pz-a-qa li, .pz-a-pairs div, .pz-a-diffs li, .pz-a-scr li { break-inside: avoid; }
  .pz-a-two { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 28px; padding-left: 0; }
  .pz-a-two.pz-a-xw { grid-template-columns: minmax(0, 1fr); gap: 18px; }   /* a crossword: the grid, then its clues side by side */
  .pz-a-xw .pz-a-vis { max-width: 62%; }
  .pz-a-clues { grid-template-columns: 1fr 1fr; gap: 28px; }   /* A4 is narrower than 767px: keep Across and Down side by side */
  .pz-a-one { padding-left: 0; }
  .pz-a-vis .pz-xw, .pz-a-wsvis .pz-ws-grid, .pz-a-pic { box-shadow: none; }   /* on white paper, as puzzles.css does for cards */
  .pz-a-pic, .pz-a-pic .pz-ring, .pz-a-cl em, .pz-a-ans, .pz-a-to, .pz-a-phrase, .pz-a-pairs dd { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
