/* WordPress-specific additions only; the design itself lives in style.css / responsive.css. */
.admin-bar .site-header{top:32px}
@media (max-width:782px){.admin-bar .site-header{top:46px}}
.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}
.blog-card-media{display:block}
.blog-card-title a,.svc-card-title a{color:inherit;text-decoration:none}
.rs-pagination{margin-top:var(--space-lg,2rem);text-align:center}
.rs-pagination .page-numbers{display:inline-block;padding:.4rem .8rem}
.rs-pagination .current{font-weight:700}
.prose .lead{margin-bottom:1rem}
.testimonial-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.form-note[hidden]{display:none}

.footer-copy p { margin: 0; }
.footer-credit { margin-top: 0.35rem !important; }
.footer-credit a { color: var(--color-ivory, #faf3e8); text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover { opacity: 0.8; }

/* Popup scrolling: keep wheel/touch scrolling inside the popup (Lenis is exempted via data-lenis-prevent). */
.modal, .modal-body { overscroll-behavior: contain; }
.modal-body { -webkit-overflow-scrolling: touch; touch-action: pan-y; }
/* Logged-in admin bar must not push the popup off-screen. */
body.admin-bar .modal { top: 32px; height: calc(100% - 32px); }
@media (max-width: 782px) { body.admin-bar .modal { top: 46px; height: calc(100% - 46px); } }
body.admin-bar .modal-content { max-height: calc(100vh - 32px - 2 * var(--space-md)); max-height: calc(100dvh - 32px - 2 * var(--space-md)); }
@media (min-width: 576px) { body.admin-bar .modal-content { max-height: calc(100vh - 32px - 2 * var(--space-xl)); max-height: calc(100dvh - 32px - 2 * var(--space-xl)); } }
@media (max-width: 782px) { body.admin-bar .modal-content { max-height: calc(100dvh - 46px - 2 * var(--space-md)); } }
