/* ==========================================================================
   InfoCabs – WordPress glue (forms, blocks, pagination, admin bar)
   The design system itself is in styles.css.
   ========================================================================== */

/* Accessibility helper used by WordPress core output */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { clip: auto !important; clip-path: none; height: auto; width: auto; z-index: 100000; background: #fff; padding: 12px 16px; }

/* Sticky header below the WordPress admin bar when logged in */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .subnav { top: calc(var(--header-h) + 32px); }
@media (max-width: 782px) { body.admin-bar .site-header { top: 0; } body.admin-bar .subnav { top: var(--header-h); } }

/* Forms */
.check.is-invalid input { outline: 2px solid var(--danger); outline-offset: 2px; }
.check + .field__error { margin-top: -10px; }
.ic-captcha { min-height: 78px; }
.form .btn[disabled] { opacity: .7; cursor: progress; }

/* Post cards with a featured image */
.post-card__thumb--image { padding: 0; }
.post-card__thumb--image img { width: 100%; height: 100%; object-fit: cover; }

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

/* Block editor content inside .prose */
.prose .wp-block-image img, .prose figure img { border-radius: var(--radius); }
.prose figcaption, .prose .wp-element-caption { font-size: .9rem; color: var(--muted); margin-top: 8px; text-align: center; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose .wp-block-quote { margin-left: 0; }
.prose .wp-block-button__link { display: inline-flex; }
