.service-open-short{display:none}
#servicesViewSwitch{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;color:#355643;font-size:.875rem;font-weight:700;flex-wrap:wrap}
#servicesViewSwitch>div{display:flex;padding:4px;border:1px solid #cbdad2;border-radius:12px;background:#fff}
#servicesViewSwitch button{border:0;border-radius:8px;background:transparent;color:#456557;font:inherit;padding:9px 15px;min-height:44px;cursor:pointer}
#servicesViewSwitch button[aria-pressed=true]{background:#164d43;color:#fff}
#servicesViewSwitch button:focus-visible{outline:3px solid #83ab91;outline-offset:2px}
#cards[data-view]{align-items:start}
#cards[data-view=list]{grid-template-columns:minmax(0,1fr);gap:12px}
#cards[data-view]>.card{min-height:0;grid-column:auto}
#cards .service-disclosure{height:auto}
#cards .service-summary{display:flex;align-items:stretch;list-style:none;cursor:pointer;min-height:104px;touch-action:manipulation}
#cards .service-summary::-webkit-details-marker{display:none}
#cards .service-summary::marker{content:''}
#cards .service-summary:focus-visible{outline:3px solid #83ab91;outline-offset:-4px;border-radius:16px}
#cards .service-thumb{flex:0 0 82px;background-image:var(--service-image);background-size:cover;background-position:center}
#cards .service-summary-text{padding:12px 14px;min-width:0;align-self:center}
#cards .service-summary-tag{display:block;font-size:.875rem;color:#506658;line-height:1.4;margin-bottom:4px}
#cards .service-summary-name{display:block;font-weight:800;font-size:1rem;line-height:1.35;overflow-wrap:anywhere}
#cards .service-summary-action{display:block;font-size:.875rem;font-weight:700;color:#28604d;margin-top:7px}
#cards .service-close-label,#cards .service-disclosure[open] .service-open-label,#cards .service-disclosure[open] .service-open-short{display:none}
#cards .service-disclosure[open] .service-close-label{display:inline}
#cards .service-disclosure:not([open])>.service-expanded{display:none}
#cards .service-disclosure[open]>.service-summary{border-bottom:1px solid #d4e1d9}
#cards .service-disclosure[open]>.service-summary>.service-thumb{display:none}
#cards .service-expanded{height:auto}
/* Square, photo-led tiles; opened cards keep their natural content height. */
#cards[data-view=tiles]{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
#cards[data-view]>.card:has(>.service-disclosure[open]){grid-column:1/-1}
#cards[data-view=tiles] .service-disclosure:not([open])>.service-summary{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;aspect-ratio:1;min-height:0;padding:0;gap:0;overflow:hidden}
#cards[data-view=tiles] .service-disclosure:not([open]) .service-thumb{display:block;width:100%;height:100%;min-height:0;border-radius:0;background-image:var(--service-image);background-size:cover;background-position:center}
#cards[data-view=tiles] .service-disclosure:not([open]) .service-summary-text{display:flex;flex-direction:column;align-self:stretch;padding:10px 12px;gap:5px;min-width:0}
#cards[data-view=tiles] .service-disclosure:not([open]) .service-summary-tag{margin:0;font-size:.75rem;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#cards[data-view=tiles] .service-disclosure:not([open]) .service-summary-name{font-size:.9375rem;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
#cards[data-view=tiles] .service-disclosure:not([open]) .service-summary-action{display:block;margin:0;font-size:.875rem;line-height:1.3}
#cards[data-view=tiles] .service-disclosure:not([open]) .service-open-label{display:none}
#cards[data-view=tiles] .service-disclosure:not([open]) .service-open-short{display:inline}
/* Show the complete photograph when a service is expanded. */
#cards[data-view] .service-expanded .card-art,
#cards[data-view] .service-expanded .campus-picture{width:100%;height:clamp(260px,38vw,460px);min-height:0;flex-shrink:0;background-image:var(--service-image);background-size:contain;background-position:center;background-repeat:no-repeat;background-color:#edf2ef}
#cards[data-view] .service-expanded .campus-picture img{width:100%;height:100%;object-fit:contain;object-position:center}
#cards[data-view] .service-expanded .card-body .card-art{margin:0 0 20px;border-radius:12px}
#services .services-banner .section-head{display:flex;flex-direction:column;align-items:flex-end;text-align:right;gap:16px}
#services .services-banner .section-head>div{width:auto;margin:0}
#services .services-banner .section-head p{max-width:540px;margin:0;text-align:right}
@media(min-width:700px){#cards[data-view=list]{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media(min-width:900px){#cards[data-view=tiles]{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:520px){
 #cards[data-view=tiles]{gap:10px}
 #cards[data-view=tiles] .service-disclosure:not([open]) .service-summary-text{padding:8px;gap:4px}
 #cards[data-view=tiles] .service-disclosure:not([open]) .service-summary-name{font-size:.875rem}
 #cards[data-view=tiles] .service-disclosure:not([open]) .service-summary-tag{font-size:.75rem}
}
