/* Keep the shared header visible; its background turns white after scrolling. */
.upt-site-header,.upt-landing-header { position:sticky; top:0; z-index:100; }
.upt-landing-header.is-scrolled { background:#fff; }
@media(prefers-reduced-motion:no-preference) {
 .upt-landing-header { transition:background-color .2s ease; }
}
.admin-bar .upt-site-header,.admin-bar .upt-landing-header { top:32px; }
/* Template headers already have a sticky outer wrapper. */
.upt-site-header .upt-landing-header { position:relative; top:auto; }
@media(max-width:782px) {
 .admin-bar .upt-site-header,.admin-bar .upt-landing-header { top:46px; }
 .admin-bar .upt-site-header .upt-landing-header { top:auto; }
}
@media(max-width:600px) {
 /* The WordPress admin toolbar scrolls away at this width. */
 .admin-bar .upt-site-header,.admin-bar .upt-landing-header { top:0; }
 .admin-bar .upt-site-header .upt-landing-header { top:auto; }
}
.upt-ppid-enlarge { display:none; }
:where(.upt-landing,.upt-site-header) :is(a,button,summary,input):focus-visible { outline:3px solid #8f1928; outline-offset:4px; }
@media(max-width:900px) {
 .upt-landing-header .upt-landing-nav { justify-content:stretch; align-content:start; max-height:calc(100dvh - 110px); overflow-y:auto; overscroll-behavior:contain; }
 .upt-landing-header .upt-landing-nav > a,.upt-landing-nav-about,.upt-landing-nav-trigger { width:100%; }
 .upt-landing-header .upt-landing-nav a,.upt-landing-nav-trigger { min-height:44px; display:flex; align-items:center; }
 .upt-landing-header .upt-landing-subnav a { width:100%; max-width:100%; }
 .upt-language-switcher summary { min-height:44px; }
 .upt-language-switcher nav a { min-height:44px; display:flex; align-items:center; }
 /* Preserve reporting groups together, without placing the chief outside the viewport. */
 .upt-about .about-org { overflow:visible; margin-top:36px; }
 .upt-about .about-org-chief { width:100%; max-width:420px; margin:0 auto; padding-bottom:48px; }
 .upt-about .about-org-chief::after { bottom:0; height:48px; }
 .upt-about .about-org-columns { width:100%; grid-template-columns:minmax(0,1fr); gap:36px; }
 .upt-about .about-org-columns::before,.upt-about .about-org-branch::before { display:none; }
 .upt-about .about-org-branch { width:100%; max-width:560px; margin-inline:auto; }
 .upt-about .about-org-groups { margin-top:36px; }
 .upt-about .about-org-groups::before { top:-36px; height:36px; }
 .upt-about .about-leader { grid-template-columns:80px minmax(0,1fr); }
 .upt-about .about-leader img,.upt-about .about-chief-photo,.upt-about .about-leader-placeholder { width:80px; height:100px; }
 .upt-about .about-chief-photo { background-position:-554px -339px; }
 .upt-about .about-dinarie-photo { background-position:-554px -565px; }
 .about-org-empty .about-org-chief { padding-bottom:0; }
 .about-org-group p { font-size:14px; flex-wrap:wrap; gap:2px 12px; }
 .about-org-group small { font-size:11px; white-space:normal; text-align:left; }
 .about-person h3 { font-size:16px; }
 .about-person p,.about-person > div { font-size:14px; }
 .about-person p,.about-person > div span:first-child { color:#657386; }
 .about-filters button,.upt-news-filters a { min-height:44px; font-size:14px; padding:10px 14px; display:inline-flex; align-items:center; }
 .about-search,.upt-news-search { min-height:46px; height:auto; }
 .about-search input,.upt-news-search input { min-height:42px; font-size:16px; }
 .upt-news-search button { min-width:32px; min-height:44px; align-items:center; justify-content:center; }
 .upt-news-copy .upt-news-more,.upt-news-pagination .page-numbers { min-height:44px; display:inline-flex; align-items:center; }
 .upt-landing-footer-grid a { min-height:44px; display:flex; align-items:center; }
 .upt-landing-footer-grid a,.upt-landing-footer-grid p { font-size:14px; }
 .upt-landing-contact li { font-size:14px; }
 .upt-landing-contact li a { display:inline-flex; min-height:44px; align-items:center; }
 .upt-landing-service > span:last-child { font-size:14px; }
 .upt-landing-slider-mark { height:28px; margin-block:16px 24px; border-block:4px solid transparent; background-clip:padding-box; }
 .upt-ppid-enlarge { display:inline-flex; align-items:center; min-height:44px; margin-top:10px; color:#203e35; font-size:14px; text-underline-offset:3px; }
}
@media(max-width:600px) {
 .about-profile-summary p,.about-vision li,.single-post .wp-block-post-content :is(p,li) { text-align:left; }
 .upt-landing-header-row { gap:12px; }
 .upt-landing-header .upt-landing-brand { width:145px; min-width:0; height:auto; margin:0; transform:none; }
 .upt-landing-header .upt-landing-brand img { width:145px; height:auto; }
 .upt-landing-menu-toggle { flex-shrink:0; }
 .upt-landing-header .upt-landing-language { margin-left:0; }
 .upt-landing-staff { grid-template-columns:110px minmax(0,1fr); gap:14px; }
 .upt-landing-staff img { width:110px; height:140px; }
 .upt-landing-staff h3 { font-size:21px; overflow-wrap:anywhere; }
 .upt-landing-schedule { min-width:0; width:100%; max-width:180px; font-size:14px; }
 .upt-landing-schedule b,.upt-landing-schedule span { padding:10px 8px; }
 .upt-landing-footer-grid { gap:26px 18px; }
 .upt-landing-footer-grid > div { gap:2px; }
 .upt-landing-footer h2 { margin-bottom:8px; }
}
@media(max-width:360px) {
 .upt-landing-footer-grid { grid-template-columns:1fr; }
 .upt-landing-service-grid { grid-auto-columns:82%; }
}
/* Short, optional motion. No CSS rule hides content while waiting for JavaScript. */
@media(prefers-reduced-motion:no-preference) {
 html { scroll-behavior:smooth; }
 .upt-landing-menu-toggle span { transition:transform .2s ease,opacity .2s ease; }
 .upt-landing-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
 .upt-landing-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity:0; }
 .upt-landing-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
 .upt-landing-chevron { transition:transform .2s ease; }
 .upt-landing-nav-about.is-open .upt-landing-chevron { transform:rotate(225deg) translate(-1px,-1px); }
 .upt-landing-nav.is-open,.upt-landing-nav-about.is-open .upt-landing-subnav,.upt-language-switcher[open] nav { animation:upt-menu-in .18s ease-out; }
 :is(.upt-ppid-access,.upt-news-more,.upt-landing-hero-actions a,.upt-landing-contact-actions a,.wp-block-button__link) { transition:background-color .2s ease,box-shadow .2s ease,transform .2s ease; }
 :is(.upt-news-card,.upt-ppid-card,.about-person,.upt-service-card) { transition:box-shadow .22s ease,border-color .22s ease,transform .22s cubic-bezier(.2,.7,.2,1); }
 .upt-news-cover img { transition:transform .35s ease; }
 @keyframes upt-menu-in { from { opacity:.6; transform:translateY(-5px); } to { opacity:1; transform:translateY(0); } }
 /* Hero intro: copy, actions, then the hours cards rise in sequence on load. */
 /* Inner pages reuse the same rise for their title + intro. */
 :is(.upt-landing-hero-copy,.about-intro,.upt-services-intro,.upt-news-intro,.upt-ppid-intro) > *,.upt-landing-hours-card { animation:upt-rise .6s cubic-bezier(.2,.7,.2,1) both; }
 :is(.upt-landing-hero-copy,.about-intro,.upt-services-intro,.upt-news-intro,.upt-ppid-intro) > p { animation-delay:.08s; }
 .upt-landing-hero-actions { animation-delay:.16s; }
 .upt-landing-hours-card { animation-delay:.26s; }
 .upt-landing-hours-card + .upt-landing-hours-card { animation-delay:.34s; }
 @keyframes upt-rise { from { opacity:0; transform:translateY(16px); } }
 .upt-landing-service { transition:box-shadow .22s ease,background-color .22s ease,transform .22s cubic-bezier(.2,.7,.2,1); }
 .upt-landing-service-icon { transition:transform .22s cubic-bezier(.2,.7,.2,1); }
}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
 :is(.upt-news-card,.upt-ppid-card,.about-person):hover { box-shadow:0 8px 22px #203e3514; border-color:#58796a; }
 /* Same 4px lift as the landing service cards. */
 :is(.upt-news-card,.upt-ppid-card,.about-person,.upt-service-card):hover { transform:translateY(-4px); }
 .upt-service-card:hover { box-shadow:0 10px 24px #203e3514; }
 .upt-news-cover:hover img { transform:scale(1.025); }
 /* Room for the lift; the horizontally scrolling grid would otherwise clip the card top. */
 .upt-landing-service-grid { padding-top:6px; margin-top:-6px; }
 .upt-landing-service:hover { transform:translateY(-4px); background:rgba(255,255,255,.8); box-shadow:0 10px 24px #203e3514; }
 .upt-landing-service:hover .upt-landing-service-icon { transform:scale(1.06); }
 :is(.upt-ppid-access,.upt-news-more,.upt-landing-hero-actions a,.upt-landing-contact-actions a,.wp-block-button__link):hover { transform:translateY(-2px); }
}
@media(prefers-reduced-motion:reduce) {
 html { scroll-behavior:auto; }
}
