/* WordPress-specific additions to the original stylesheet. */

/* Keep the sticky header below the admin bar when logged in. */
.admin-bar header { top: 32px !important; }
@media (max-width: 782px) {
  .admin-bar header { top: 46px !important; }
}

/* Navigation details that were inline styles in the static header. */
.mobile-nav-list a i { margin-right: 8px; color: var(--blue-brand); }
.nav-dropdown .nav-dropdown-all { grid-column: 1 / -1; padding-top: 0.5rem; border-top: 1px solid #e2e8f0; }
.nav-dropdown .nav-dropdown-all a { color: var(--blue-brand); font-weight: 700; }

/* Service and blog article text (native editor blocks). */
.sd-prose p:not(.lead) { color: var(--slate); line-height: 1.75; margin-bottom: 1.2rem; }
.sd-prose p.lead { margin-bottom: 1.4rem; color: var(--navy); font-weight: 500; }
.sd-prose h2, .sd-prose h3, .sd-prose h4 { color: var(--navy-primary); margin-top: 2rem; margin-bottom: 0.8rem; font-size: 1.25rem; }
.sd-prose h2 { font-size: 1.5rem; }
.sd-prose ul, .sd-prose ol { color: var(--slate); line-height: 1.75; margin-bottom: 1.2rem; padding-left: 1.5rem; }
.sd-prose img { max-width: 100%; height: auto; border-radius: var(--radius-md); }

/* Legal pages (native editor blocks). */
.sd-legal p { color: var(--slate); line-height: 1.7; margin-bottom: 1.5rem; }
.sd-legal p:has(+ ul) { margin-bottom: 1rem; }
.sd-legal h2 { font-size: 1.6rem; color: var(--navy-primary); margin-bottom: 1rem; }
.sd-legal ul { color: var(--slate); line-height: 1.7; margin-bottom: 1.5rem; padding-left: 1.5rem; }

/* Form errors. */
.sd-form-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 8px; padding: 0.7rem 0.9rem; font-size: 0.9rem; margin-bottom: 0.8rem; }

/* Hidden from people; catches form bots. */
.sd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Blog pagination. */
.navigation.pagination { margin-top: 3rem; }
.navigation.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
.navigation.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 0.8rem; border: 1px solid var(--bd); border-radius: 8px; color: var(--navy); font-weight: 600; }
.navigation.pagination .page-numbers.current, .navigation.pagination a.page-numbers:hover { background: var(--navy-primary); border-color: var(--navy-primary); color: #ffffff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Images and alignment from the editor. */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, .wp-element-caption { font-size: 0.85rem; color: var(--slate-light); }
