/* Coloring Pages PDF: scoped styles for imported post previews and download blocks. */
.pdfh-post-description { margin: 20px 0 25px; line-height: 1.65; }
.pdfh-post-description p { margin: 0 0 15px; }
.pdfh-downloads { --pdfh-action: #1b6d43; --pdfh-action-text: #ffffff; --pdfh-border: #e0e4e8; --pdfh-ink: #1f2937; --pdfh-surface: #ffffff; --pdfh-muted: #f3f5f6; --pdfh-max-width: 900px; --pdfh-radius: 10px; --pdfh-button-height: 50px; --pdfh-gap: 10px; box-sizing: border-box; width: 100%; max-width: var(--pdfh-max-width); margin: 30px 0; font-family: inherit; color: inherit; }
.pdfh-downloads * { box-sizing: border-box; }
.pdfh-download-heading { font-family: inherit; font-size: 22px; font-weight: 700; line-height: 1.35; margin: 0 0 20px; color: inherit; }
.pdfh-download-actions { display: flex; flex-wrap: wrap; gap: var(--pdfh-gap); }
.pdfh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--pdfh-button-height); padding: 12px 20px; border-radius: var(--pdfh-radius); text-decoration: none !important; font-size: 15px; line-height: 1.35; font-family: inherit; font-weight: 600; transition: filter .15s ease, background-color .15s ease, border-color .15s ease; }
.pdfh-btn:hover { filter: brightness(.94); text-decoration: none !important; }
.pdfh-btn:focus-visible { outline: 2px solid var(--pdfh-action); outline-offset: 3px; }
.pdfh-btn-label { display: inline-block; }
.pdfh-ico { display: inline-flex; width: 19px; height: 19px; flex: 0 0 19px; }
.pdfh-ico svg { width: 100%; height: 100%; }
.pdfh-btn.pdfh-primary { color: var(--pdfh-action-text) !important; background-color: var(--pdfh-action); border: 1px solid var(--pdfh-action); }
.pdfh-btn.pdfh-secondary { color: var(--pdfh-ink) !important; border: 1px solid var(--pdfh-border); background-color: var(--pdfh-muted); }
/* Design 1: equal cards */
.pdfh-downloads--cards .pdfh-download-actions--cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pdfh-downloads--cards .pdfh-download-actions--cards .pdfh-btn { min-width: 0; width: 100%; }
/* Design 2: full-width download rows with a format badge */
.pdfh-downloads--bars .pdfh-download-actions--bars { flex-direction: column; }
.pdfh-downloads--bars .pdfh-file-row { position: relative; width: 100%; }
.pdfh-downloads--bars .pdfh-file-row .pdfh-btn { display: flex; justify-content: flex-start; width: 100%; padding-right: 80px; }
.pdfh-downloads--bars .pdfh-file-badge { position: absolute; top: 50%; right: 20px; transform: translateY(-50%); font-size: 12px; font-weight: 700; pointer-events: none; }
.pdfh-downloads--bars .pdfh-file-row--pdf .pdfh-file-badge { color: var(--pdfh-action-text); }
.pdfh-downloads--bars .pdfh-file-row--png .pdfh-file-badge { color: var(--pdfh-ink); }
/* Design 3: unboxed compact links */
.pdfh-downloads--minimal .pdfh-download-actions--minimal { gap: 10px 25px; align-items: center; }
.pdfh-downloads--minimal .pdfh-btn { min-height: 35px; padding: 5px 0; border: none; border-radius: 0; background: transparent; box-shadow: none; }
.pdfh-downloads--minimal .pdfh-btn.pdfh-primary { border: none; background: transparent; color: var(--pdfh-action) !important; }
.pdfh-downloads--minimal .pdfh-btn.pdfh-secondary { border: none; background: transparent; color: var(--pdfh-ink) !important; }
.pdfh-downloads--minimal .pdfh-btn-label { text-decoration: underline; text-underline-offset: 3px; }
/* Design 4: split panel emphasizing PDF */
.pdfh-downloads--split .pdfh-download-actions--split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); padding: 20px; gap: 20px; background: var(--pdfh-surface); border: 1px solid var(--pdfh-border); border-radius: var(--pdfh-radius); }
.pdfh-downloads--split .pdfh-split-primary { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pdfh-downloads--split .pdfh-split-secondary { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pdfh-downloads--split .pdfh-format-label { font-size: 12px; color: var(--pdfh-ink); opacity: .75; }
.pdfh-downloads--split .pdfh-btn { width: 100%; padding: 12px; }
.pdfh-pages-info { font-size: 14px; opacity: .75; margin: 15px 0 0; }
.pdfh-pages-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 15px 0; }
.pdfh-pages-links a { font-size: 13px; padding: 8px 12px; border: 1px solid var(--pdfh-border); border-radius: var(--pdfh-radius); text-decoration: none; color: inherit; }
.pdfh-downloads .pdfh-copyright { margin: 12px 0 0; font-size: 12px; color: inherit; opacity: .7; }
.wp-block-image.pdfh-preview img { max-width: 100%; height: auto; display: block; margin-left: auto; margin-right: auto; }
@media (max-width: 600px) {
    .pdfh-download-heading { font-size: 19px; }
    .pdfh-downloads--cards .pdfh-download-actions--cards { grid-template-columns: minmax(0, 1fr); }
    .pdfh-downloads--split .pdfh-download-actions--split { grid-template-columns: minmax(0, 1fr); padding: 15px; gap: 15px; }
    .pdfh-downloads--minimal .pdfh-download-actions--minimal { flex-direction: column; align-items: flex-start; }
    .pdfh-btn { max-width: 100%; }
    .wp-block-image.pdfh-preview img { max-height: 75vh; width: auto; object-fit: contain; }
}
.pdfh-ico[hidden] { display: none !important; }

/* Uncropped coloring-sheet cards: retain the entire original drawing. */
img.pdfh-card-image { width: auto !important; max-width: 100% !important; height: auto !important; object-fit: contain !important; aspect-ratio: auto !important; max-height: none !important; }

/* A single available download occupies the full row in either grid layout. */
.pdfh-downloads--single .pdfh-download-actions--cards { grid-template-columns: minmax(0, 1fr); }
.pdfh-downloads--single .pdfh-download-actions--split { grid-template-columns: minmax(0, 1fr); }
