/* Only loaded with free Astra and without the Pro addon. Measured mdotacje layout. */
#masthead { position: relative !important; z-index: 100; }
#masthead .ast-primary-header-bar, #masthead .site-primary-header-wrap { transition: all .2s linear; }
#masthead .mda-header-fixed { position: fixed !important; top: var(--mda-admin-offset, 0px); right: 0; left: 0; margin: 0 auto; max-width: 100%; }
#masthead .mda-header-fixed.main-header-bar { backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 2px 10px 0 rgba(36,50,66,.075); }
body.ast-primary-sticky-header-active #masthead .ast-mobile-header-content { position: fixed; }
#masthead.mda-header-shrunk .custom-logo { max-height: 55px !important; width: auto; }
#masthead.mda-header-shrunk .site-primary-header-wrap { min-height: 70px !important; }
#masthead.mda-header-shrunk .site-branding { padding-top: 0 !important; padding-bottom: 0 !important; }
body.archive #primary, body.search #primary, body.error404 #primary { margin-bottom: 0 !important; }
body.archive .ast-article-post { display: flex; margin-bottom: 2.5em; }
body.archive .entry-title a, body.search .entry-title a { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important; font-weight: 500 !important; line-height: 1.23 !important; }
body.search .ast-row { display: block !important; }
body.search .ast-article-post { width: 100% !important; max-width: 100% !important; margin: 0 0 24px !important; padding: 0 0 24px !important; border-bottom: 1px solid #e5e9ef !important; }
body.search .ast-article-inner { padding: 0 !important; width: 100%; }
body.search .ast-excerpt-container { font-size: 16px; line-height: 1.7; color: #666; }
.ast-related-posts-title { margin-bottom: 20px !important; }
.ast-related-posts-wrapper .entry-meta { font-weight: 400; }
.ast-related-posts-wrapper .entry-meta :is(a, span) { font-weight: 400; }
.mda-archive-filter { margin: 0; overflow: hidden; }
.mda-archive-filter ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; list-style: none; margin: 0 0 3em; padding: 0; }
.mda-archive-filter a { display: inline-block; background: #2e7d32; color: #fff; border-radius: 4px; margin: 6px; padding: 8px 10.08px; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; letter-spacing: .5px; line-height: normal; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.mda-archive-filter a:hover { background: #256428; border-color: #256428; box-shadow: none; }
.mda-archive-filter a:focus { outline: thin solid #0a4e7a; outline-offset: 0; border-color: #0a4e7a; box-shadow: none; }
.mda-archive-filter a:focus-visible { outline: 2px solid #2e7d32; outline-offset: 2px; }
#primary[aria-busy="true"] { cursor: progress; }
@media (max-width:1140px) {
 #masthead.mda-header-shrunk .custom-logo { max-height: 55px !important; }
 #masthead.mda-header-shrunk .site-primary-header-wrap { min-height: 64px !important; }
 .mda-archive-filter a { padding: 8px 10.08px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }
/* Existing Complianz policy grid overflows 320px by 3–4px, including with Pro. */
@media (max-width:360px) {
 .page-id-5201 #cmplz-document .cmplz-service-header > div { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 0 13px 25px !important; column-gap: 8px !important; }
 .page-id-5201 #cmplz-document .cmplz-service-header > div > * { min-width: 0; overflow-wrap: anywhere; }
}
/* Bound the closed free-Astra search form while WP Rocket initializes its delayed JS. */
@media (max-width:1140px) {
 #ast-mobile-header .ast-search-menu-icon .search-form { max-width: calc(100vw - 32px) !important; }
}
@media (max-width:1140px) {
 #ast-mobile-header .ast-search-menu-icon .search-form label { display: block; width: 100%; min-width: 0; max-width: 100%; }
 #ast-mobile-header .ast-search-menu-icon .search-form input.search-field { width: 100% !important; min-width: 0; max-width: 100% !important; box-sizing: border-box; }
}

/* Preserve the measured Pro appearance of the search-results submit control. */
body.search .mda-search-again .search-submit { background-color: #2e7d32; border: 1px solid #2e7d32; color: #fff; padding: 14px 28px; }
body.search .mda-search-again .search-submit:hover, body.search .mda-search-again .search-submit:focus-visible { background-color: #256429; border-color: #256429; color: #fff; }
@media (max-width:1140px) { body.search .mda-search-again .search-submit { padding: 14px 24px; } }
@media (max-width:544px) { body.search .mda-search-again .search-submit { padding: 12px 20px; } }

/* Match Pro pagination type and last archive-card spacing, preserving existing hub overrides. */
.ast-pagination .page-numbers, .ast-pagination .page-navigation { font-size: 16px; }
body.archive .ast-article-post:last-child { margin-bottom: 0; }
@media (min-width:1141px) { body.archive .ast-article-post:last-child { margin-bottom: 1.5em; } }

/* Preserve the measured header-search field corners without affecting other inputs. */
#masthead .ast-search-menu-icon .search-form input.search-field { border-radius: 2px; }

/* Rebuild only during viewport resize; ordinary scrolling retains the measured Pro transition. */
#masthead.mda-resizing .ast-primary-header-bar, #masthead.mda-resizing .site-primary-header-wrap { transition: none !important; }

/* Search-result pagination: match the current Pro geometry without changing archives or live suggestions. */
body.search .ast-pagination .page-numbers.current { border-radius: 2px; }
body.search .ast-pagination .next.page-numbers { padding-right: 0; }

/* Archive filters can bring pagination into a document that did not initially
   need Astra's conditional pagination CSS. Keep its existing geometry available. */
body.archive .ast-pagination { display: inline-block; width: 100%; padding-top: 2em; text-align: center; }
body.archive .ast-pagination .nav-links { display: inline-block; width: 100%; }
body.archive .ast-pagination .page-numbers { display: inline-block; width: 2.33333em; height: 2.33333em; font-size: 16px; line-height: calc(2.33333em - 3px); font-weight: 500; }
body.archive .ast-pagination a { color: var(--ast-global-color-3); }
body.archive .ast-pagination a:hover, body.archive .ast-pagination a:focus { color: var(--ast-global-color-8); }
body.archive .ast-pagination .prev.page-numbers, body.archive .ast-pagination .next.page-numbers { padding: 0 1.5em; height: 2.33333em; line-height: calc(2.33333em - 3px); width: auto; }
body.archive .ast-pagination .prev.page-numbers { float: left; }
body.archive .ast-pagination .next.page-numbers { float: right; }
body.archive .ast-pagination .prev svg, body.archive .ast-pagination .next svg { height: 16px; position: relative; top: .2em; }
body.archive .ast-pagination .prev svg { margin-right: .3em; }
body.archive .ast-pagination .next svg { margin-left: .3em; }
body.archive.ast-pagination-default .ast-pagination .next.page-numbers { padding-right: 0; }
body.archive.ast-pagination-default .ast-pagination .prev.page-numbers { padding-left: 0; }
body.archive.ast-pagination-default .ast-pagination .page-numbers.current { border-radius: 2px; }
@media (max-width:544px) {
 body.archive .ast-pagination .next:focus, body.archive .ast-pagination .prev:focus { width: 100% !important; }
}
@media (max-width:420px) {
 body.archive .ast-pagination .prev.page-numbers, body.archive .ast-pagination .next.page-numbers { width: 100%; text-align: center; margin: 0; }
 body.archive.ast-pagination-circle .ast-pagination .next.page-numbers, body.archive.ast-pagination-square .ast-pagination .next.page-numbers { margin-top: 10px; }
 body.archive.ast-pagination-circle .ast-pagination .prev.page-numbers, body.archive.ast-pagination-square .ast-pagination .prev.page-numbers { margin-bottom: 10px; }
}
