/* Shared spacing between the fixed navigation, page heading and content. */
body.portal-page > main:not(.ppid-home-main):not(.detail-page) { margin-top: 0 !important; }
body.portal-page > main:has(> .archive-header) { padding-top: 0 !important; }
body.portal-page .archive-header { margin: 0 0 24px !important; padding: 32px 0 !important; }
body.portal-page .archive-header > .container { position: relative; z-index: 1; padding-top: 0; padding-bottom: 0; }
body.portal-page .archive-header .post-title { margin: 0 0 12px !important; font-size: clamp(25px,2.7vw,32px); font-weight: 600 !important; line-height: 1.35; }
body.portal-page .archive-header .breadcrumb { margin: 0 !important; font-size: 10px; line-height: 1.8; }
body.portal-page .archive-header .bt-1 { display: none; }
body.portal-page .archive-header + :is(main, .container, .post-single-wrapper),
body.portal-page #pageWithBreadcrumb > main { padding-top: 0 !important; margin-top: 0 !important; }
body.portal-page .archive-header + .content-xs > .row > [class*='col-'] { margin-top: 0 !important; }
body.portal-page > main:not(.ppid-home-main) + .portal-footer,
body.portal-page > #pageWithBreadcrumb + .portal-footer { margin-top: 24px; }
/* Map pages align their canvas and filters with the rest of the portal. */
.portal-map-page { padding-bottom: 20px; }
.portal-map-content > .container { max-width: none; padding: 0; }
.portal-map-content :is(#mapid, #map_canvas) { width: 100%; height: 460px !important; min-height: 320px; border: 1px solid var(--portal-border); border-radius: 16px !important; box-shadow: none !important; }
.portal-map-content .content-maps { position: static !important; top: auto !important; margin: 16px 0 0; justify-content: flex-start !important; }
.portal-map-content .content-maps > div { flex: 0 1 440px; max-width: 440px; padding: 0; margin: 0 !important; }
.portal-map-content .select2-container { max-width: 100%; }
/* Contact page. All contact details remain sourced from the CMS. */
.contact-page { padding-bottom: 20px; }
.contact-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.35fr); gap: 24px; align-items: start; }
.contact-sidebar { display: grid; gap: 18px; min-width: 0; }
.contact-card { padding: 26px; background: var(--portal-surface); border: 1px solid var(--portal-border); border-radius: 17px; min-width: 0; }
.contact-eyebrow { display: block; font-size: 9px; font-weight: 600; color: var(--portal-blue); letter-spacing: .12em; margin-bottom: 9px; }
.contact-page h2 { font-size: 23px; font-weight: 600; line-height: 1.4; color: var(--portal-ink); margin: 0 0 12px; }
.contact-page .contact-card > p { color: var(--portal-muted); font-size: 11px; line-height: 1.9; margin-bottom: 22px; }
.contact-channels { display: grid; }
.contact-channel { display: flex; align-items: center; gap: 12px; padding: 16px 0; color: var(--portal-ink); border-top: 1px solid var(--portal-border); }
.contact-channel:last-child { padding-bottom: 0; }
.contact-channel-icon { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; background: var(--portal-blue-soft); color: var(--portal-blue); font-size: 21px; }
.contact-channel > span:nth-child(2) { flex: 1; min-width: 0; }
.contact-channel small { display: block; margin-bottom: 3px; color: var(--portal-muted); font-size: 9px; }
.contact-channel strong { display: block; color: var(--portal-ink); font-size: 11px; font-weight: 500; line-height: 1.85; overflow-wrap: anywhere; }
.contact-channel > i { color: var(--portal-muted); transform: rotate(45deg); font-size: 16px; }
.contact-channel:hover strong,.contact-channel:hover > i { color: var(--portal-blue); }
.contact-location { overflow: hidden; background: var(--portal-surface); border: 1px solid var(--portal-border); border-radius: 17px; }
.contact-location-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.contact-page .contact-location h2 { font-size: 13px; margin: 0; }
.contact-location-heading a { font-size: 10px; color: var(--portal-blue); }
.contact-location iframe { display: block; width: 100%; height: 240px; border: 0; }
.contact-faq { display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: var(--portal-blue-soft); border: 1px solid var(--portal-border); border-radius: 13px; color: var(--portal-muted); font-size: 10px; }
.contact-faq > i:first-child { font-size: 24px; color: var(--portal-blue); }
.contact-faq > span { flex: 1; }
.contact-faq strong { display: block; color: var(--portal-blue); font-size: 11px; font-weight: 500; margin-top: 4px; }
.contact-form-card { scroll-margin-top: 112px; }
.contact-page .contact-required { font-size: 10px; color: var(--portal-muted); margin: 0 0 18px; }
.contact-required > span,.contact-field label > span { color: #b42318; }
.contact-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 16px; }
.contact-field { min-width: 0; }
.contact-field-full { grid-column: 1 / -1; }
.contact-field label { display: block; color: var(--portal-ink); font-size: 11px; font-weight: 500; margin-bottom: 8px; }
.contact-page .contact-field :is(input,select,textarea) { display: block; width: 100%; min-height: 46px; padding: 11px 13px; font: inherit; font-size: 11px; line-height: 1.7; color: var(--portal-ink); background: var(--portal-soft); border: 1px solid var(--portal-border); border-radius: 10px; box-shadow: none; margin: 0; }
.contact-page .contact-field :is(input,textarea)::placeholder { color: var(--portal-muted); opacity: .8; }
.contact-page .contact-field :is(input,select,textarea):focus { outline: 0; border-color: var(--portal-blue); box-shadow: 0 0 0 3px rgba(8,79,185,.12); }
.contact-field textarea { min-height: 156px; resize: vertical; }
.contact-field [aria-invalid='true'] { border-color: #b42318 !important; }
.contact-alert { padding: 14px 16px; margin-bottom: 20px; border: 1px solid var(--portal-border); border-radius: 10px; font-size: 11px; line-height: 1.85; }
.contact-alert ul { padding-left: 18px; margin: 8px 0 0; }
.contact-alert-error { background: #fdf0ee; color: #8a1c14; border-color: #edbdb8; }
.contact-alert-success { background: #edf6ef; color: #215b35; border-color: #bedcc7; }
.contact-verification { margin: 20px 0; min-width: 0; }
#turnstileContainer { max-width: 100%; min-width: 0; }
.contact-page #contact-verification-status { font-size: 10px; color: var(--portal-muted); line-height: 1.85; margin: 8px 0 0; }
.contact-verification-retry { padding: 0; margin-top: 8px; border: 0; background: transparent; color: var(--portal-blue); font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.contact-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--portal-border); padding-top: 20px; }
.contact-form-actions > span { max-width: 235px; font-size: 9px; color: var(--portal-muted); line-height: 1.9; }
.contact-form-actions > button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; padding: 12px 18px; border: 0; border-radius: 10px; background: #084fb9; color: #fff; font: inherit; font-size: 11px; font-weight: 500; flex-shrink: 0; }
.contact-form-actions > button:disabled { background: var(--portal-blue-soft); color: var(--portal-muted); cursor: not-allowed; }
.contact-form-actions > button:not(:disabled):hover { background: #0f4494; }
.contact-service-link { display: flex; justify-content: space-between; align-items: center; gap: 14px; border: 1px solid var(--portal-border); border-radius: 12px; padding: 18px; background: var(--portal-blue-soft); color: var(--portal-blue); font-size: 12px; }
@media (max-width: 991.98px) { .contact-layout { gap: 18px; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); } .contact-card { padding: 22px; } .contact-form-grid { grid-template-columns: 1fr; } .contact-form-actions { flex-direction: column; align-items: stretch; gap: 12px; } .contact-form-actions > span { max-width: none; } }
@media (max-width: 767.98px) {
    body.portal-page .archive-header { padding: 24px 0 !important; margin-bottom: 20px !important; }
    body.portal-page .archive-header .post-title { font-size: 26px; margin-bottom: 10px !important; }
    .portal-map-content :is(#mapid, #map_canvas) { height: 360px !important; }
    .contact-layout { grid-template-columns: 1fr; }
    .contact-page h2 { font-size: 22px; }
    .contact-form-card { scroll-margin-top: 96px; }
}
.portal-map-content :is(#mapid, #map_canvas):is(:fullscreen, .leaflet-pseudo-fullscreen) { width: 100vw !important; height: 100vh !important; border-radius: 0 !important; }
