/* ==========================================================================
   WordPress-only adjustments. The template's own styles are in style.css.
   ========================================================================== */

/* Admin bar: keep the sticky header and sidebars below it. */
.admin-bar .site-header { top: 32px; }
.admin-bar .sidebar { top: calc(var(--header-h) + 56px); }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 0; }
}

/* Block editor output inside content areas behaves like the template's markup. */
.content-body .wp-block-list { padding-left: 1.25rem; }
.content-body > p:empty { display: none; }
.content-body img { max-width: 100%; height: auto; }
.content-body .wp-block-image { margin: 1.5rem 0; }
.content-body .wp-block-image img { border-radius: var(--radius, 16px); }
.content-body .alignleft { float: left; margin: .25rem 1.5rem 1rem 0; }
.content-body .alignright { float: right; margin: .25rem 0 1rem 1.5rem; }
.content-body .aligncenter { margin-left: auto; margin-right: auto; }
.content-body .has-text-align-center { text-align: center; }

/* Media Library images carry width/height attributes; keep featured images fluid. */
.featured-img img { height: auto; }

/* Blog pagination. */
.nssc-pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0; margin: 0; }
.nssc-pager .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(23, 55, 125, .2); color: var(--navy, #17377D); font-weight: 600; text-decoration: none; }
.nssc-pager .page-numbers.current, .nssc-pager a.page-numbers:hover { background: var(--navy, #17377D); color: #fff; border-color: transparent; }

/* WordPress core helper classes. */
.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; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .875rem; color: #6c757d; margin-top: .5rem; }
