/* =========================================================
   WordPress additions — things the static design never needed:
   admin bar offset, editor content, pagination, blog cards.
   ========================================================= */

/* Sticky header under the admin toolbar */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Editor content inside .prose */
.prose > h3 { font-size: clamp(19px, 2vw, 22px); margin: 30px 0 12px; }
.prose > h4 { font-size: 18px; margin: 26px 0 10px; }
.prose > ul:not([class]), .prose > ol:not([class]) { margin: 0 0 18px; padding-left: 22px; }
.prose > ul:not([class]) > li, .prose > ol:not([class]) > li { margin-bottom: 8px; }
.prose > .checklist { margin-bottom: 18px; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose > blockquote { margin: 0 0 18px; padding: 4px 0 4px 20px; border-left: 3px solid var(--cyan); color: var(--ink); }
.prose > :last-child { margin-bottom: 0; }
.prose--page { max-width: 860px; }
.prose--page > h4 { font-size: 20px; margin-top: 34px; }
.dblock__body > :last-child, .faq__body > :last-child { margin-bottom: 0; }
.dblock__body h4 { font-size: 16.5px; margin: 22px 0 8px; }
.dblock__body h4:first-child { margin-top: 0; }
.dblock__body ul:not(.checklist):not(.reqs), .dblock__body ol { margin-bottom: 18px; padding-left: 20px; }
.dblock__body ol > li { margin-bottom: 10px; }
.dblock__body a, .faq__body a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.alignleft { float: left; margin: 6px 24px 16px 0; }
.alignright { float: right; margin: 6px 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* Responsive images from wp_get_attachment_image inside frames */
.frame img, .adv__media img, .video__btn img { height: auto; }

/* Blog cards (posts index) */
.post-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.post-card + .post-card { margin-top: 24px; }
.post-card__media { display: block; margin: -30px -30px 24px; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.post-card__media img { display: block; width: 100%; height: auto; }
.post-card .post__title { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 12px; }
.post-card .post__title a { color: var(--ink); text-decoration: none; }
.post-card .post__title a:hover { color: var(--navy); }
.post-meta { display: block; margin-bottom: 12px; font-size: 14px; color: var(--muted); }

/* Pagination */
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.pager .page-numbers.current, .pager .page-numbers:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Contact form textarea keeps the brand input look */
.form-card textarea.form-control { min-height: 140px; }
