/* pages.css — the printable picture pages and category pages (built by
   scripts/build-coloring.js). Loaded after coloring.css, whose gallery styles they share. */

.cp-main{ width:100%; max-width:1180px; margin:0 auto; padding:18px 16px 10px; }

.crumbs{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; font-size:14px; color:var(--inksoft); margin-bottom:16px; }
.crumbs a{ color:var(--brand); text-decoration:none; font-weight:600; }
.crumbs a:hover{ text-decoration:underline; }

/* picture page */
.cp-top{ display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:34px; align-items:start; }
.cp-sheet{ margin:0; background:#fff; border-radius:10px; padding:14px;
  box-shadow:0 0 0 1.5px var(--line), 0 30px 60px -34px rgba(60,40,10,.55); transform:rotate(-.6deg); }
.cp-sheet img{ display:block; width:100%; height:auto; }
.cp-side h1, .cp-head h1{ font-family:var(--kid); font-weight:700; font-size:clamp(32px,4.6vw,50px); line-height:1.04; letter-spacing:-.01em; }
.cp-side h1 span{ display:block; font-size:.5em; font-weight:600; color:var(--coral); letter-spacing:0; margin-top:4px; }
.lede{ font-size:17.5px; color:#3d3326; margin:14px 0 16px; max-width:60ch; }
.facts{ list-style:none; display:flex; flex-direction:column; gap:8px; margin:0 0 20px; }
.facts li{ font-size:15px; color:var(--inksoft); padding-left:26px; position:relative; }
.facts li::before{ content:""; position:absolute; left:4px; top:7px; width:11px; height:11px; border-radius:50%; background:var(--sun); box-shadow:0 0 0 3px #ffe7b8; }
.facts b{ color:var(--ink); }
.cp-acts{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:20px; }
.cp-acts .btn{ font-size:16.5px; }
.tip{ background:#fff8e6; border:1.5px dashed #f2cf86; border-radius:16px; padding:12px 16px; }
.tip b{ font-family:var(--kid); font-weight:600; font-size:15px; color:#9a5a00; }
.tip p{ margin:4px 0 0; font-size:15px; color:#4d3d22; }

.cp-more{ margin-top:40px; }
.cp-more h2{ font-family:var(--kid); font-weight:600; font-size:26px; margin-bottom:14px; }

/* category page */
.cp-head{ margin-bottom:22px; }
.cp-head h1 span{ font-size:.9em; }

.cp-cats{ list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 4px; }
.cp-cats a{ display:inline-flex; align-items:center; gap:7px; text-decoration:none; color:var(--ink); font-family:var(--kid); font-weight:500; font-size:15.5px;
  padding:7px 13px 7px 10px; border-radius:999px; border:2px solid var(--line); background:#fff; }
.cp-cats a:hover{ border-color:#dccfb8; }
.cp-cats a[aria-current="page"]{ background:var(--ink); border-color:var(--ink); color:#fff; }
.cp-cats em{ font-style:normal; font-size:12px; font-weight:600; color:var(--inksoft); background:var(--cream); border-radius:999px; padding:1px 7px; }
.cp-cats a[aria-current="page"] em{ background:rgba(255,255,255,.18); color:#fff; }

.cp-ad{ margin:36px auto 0; max-width:970px; text-align:center; }
.cp-ad > span{ display:block; font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:#a99c88; margin-bottom:4px; }

@media (max-width:820px){
  .cp-top{ grid-template-columns:1fr; gap:22px; }
  .cp-sheet{ transform:none; max-width:520px; margin:0 auto; width:100%; }
}

/* printing: only the picture(s), each on its own page */
@media print{
  .cp-cat #printArea{ display:block !important; height:auto; }
  .cp-cat #printArea img{ display:block; width:auto; max-width:100%; height:auto; max-height:270mm; margin:0 auto; break-after:page; page-break-after:always; }
  .cp-cat #printArea img:last-child{ break-after:auto; page-break-after:auto; }
}

/* PDF options under the buttons */
.cp-pdfopts{ display:flex; flex-wrap:wrap; gap:6px 16px; margin:-8px 0 18px; font-size:14px; color:var(--inksoft); font-weight:600; }
.cp-pdfopts label{ display:inline-flex; align-items:center; gap:6px; }
.cp-pdfopts select{ font:inherit; padding:4px 8px; border-radius:9px; border:1.5px solid var(--line); background:#fff; color:var(--ink); }
.cp-pdfopts input[type=checkbox]{ width:17px; height:17px; accent-color:var(--sky); }
.btn:disabled{ opacity:.7; cursor:progress; transform:none; }
