/* The same illuminated illustration appears on home tiles, directory cards and detail pages. */
.hb-dept-illustration {
  --dept-art-size:84px;
  --dept-art-tint:color-mix(in srgb,var(--brand-mid,#207b77) 16%,white);
  position:relative; isolation:isolate; display:inline-grid; place-items:center; flex:none;
  width:var(--dept-art-size); height:var(--dept-art-size); max-width:100%; aspect-ratio:1;
  border:1px solid color-mix(in srgb,var(--brand-mid,#207b77) 20%,white); border-radius:29%;
  background:radial-gradient(circle at 23% 15%,#fff 0%,#fff9 32%,transparent 65%),linear-gradient(145deg,#fff,var(--dept-art-tint));
  box-shadow:inset 0 2px 1px #fff, inset 0 -4px 9px color-mix(in srgb,var(--brand-mid,#207b77) 9%,transparent),0 5px 0 -3px var(--dept-art-tint),0 14px 28px -21px var(--brand-deep,#15444d);
  vertical-align:middle; pointer-events:none; line-height:0; user-select:none;
}
.hb-dept-illustration--card { --dept-art-size:164px; }
.hb-dept-illustration--banner { --dept-art-size:76px; }
.hb-dept-illustration--feature { --dept-art-size:188px; margin:4px 0 20px; }
.hb-dept-illustration > .hb-dept-halo { position:absolute; inset:12%; border:1px solid color-mix(in srgb,var(--brand-mid,#207b77) 13%,white); border-radius:50%; background:radial-gradient(circle,#fff9,transparent 70%); }
.hb-dept-illustration > .hb-dept-orbit { position:absolute; inset:8% 6%; border:1px solid color-mix(in srgb,var(--brand-mid,#207b77) 19%,white); border-top-color:#fff; border-radius:50%; transform:rotate(-28deg) rotateX(58deg); }
.hb-dept-illustration > .hb-dept-figure { position:relative; z-index:1; display:block; width:88%; height:88%; overflow:hidden; border-radius:20%; filter:drop-shadow(0 7px 5px #143b5020); }
#content .hb-dept-illustration .hb-dept-figure > img {
  position:static; display:block; width:100%; height:100%; max-width:100%; max-height:100%;
  aspect-ratio:1; object-fit:contain; object-position:center; border-radius:0; padding:0; background:transparent;
}
.hb-dept-illustration > .hb-dept-glint { position:absolute; z-index:2; width:7%; height:7%; min-width:4px; min-height:4px; top:12%; right:17%; border-radius:50%; background:#fff; box-shadow:0 0 0 3px #ffffff40,0 0 12px #fff; }

/* Wrap the icon rather than the image: saved crop/zoom transforms remain untouched. */
#content .home .hb-department-tile { min-height:132px; gap:20px; padding:22px; border-color:color-mix(in srgb,var(--brand-mid,#207b77) 19%,white); background:linear-gradient(125deg,#fff 60%,color-mix(in srgb,var(--brand-pale,#e9f5f2) 50%,white)); }
#content .home .hb-department-tile > strong { min-width:0; font-size:clamp(16px,1.4vw,20px); line-height:1.65; overflow-wrap:anywhere; }

/* Department drawings must never inherit the photographic cover crop. */
.pub-content .pub-card.type-departments { width:100%; justify-self:stretch; background:#fff; border-color:color-mix(in srgb,var(--brand-mid,#207b77) 18%,white); }
.pub-content .pub-card.type-departments .pub-card-visual { display:grid; place-items:center; width:100%; height:208px; min-height:208px; max-height:none; padding:20px; aspect-ratio:auto; flex:none; background:radial-gradient(ellipse at 50% 0,#fff,transparent 68%),linear-gradient(135deg,color-mix(in srgb,var(--brand-pale,#e9f5f2) 75%,white),#fff); }
.pub-content .pub-card.type-departments .pub-card-copy { padding-top:22px; border-top:1px solid color-mix(in srgb,var(--brand-mid,#207b77) 12%,white); }
.pub-content .pub-card.type-departments h3 { font-size:clamp(21px,1.85vw,27px); line-height:1.45; }
.bmc-banner-inner h1:has(> .hb-dept-illustration) { display:flex; align-items:center; gap:clamp(15px,2vw,25px); }
.bmc-banner-department-title { min-width:0; overflow-wrap:anywhere; }
.bmc-page-banner .hb-dept-illustration { box-shadow:inset 0 2px 1px #fff,0 6px 0 -3px #ffffff1c,0 14px 24px -15px #00182380; }
.dept-brand-card > .hb-dept-illustration { max-width:min(188px,100%); }

@media(prefers-reduced-motion:no-preference) {
  .hb-dept-illustration > .hb-dept-figure { animation:hb-department-breathe 5.8s ease-in-out infinite; }
  .hb-dept-illustration > .hb-dept-halo { animation:hb-department-halo 5.8s ease-in-out infinite; }
  .hb-dept-illustration > .hb-dept-glint { animation:hb-department-glint 5.8s ease-in-out infinite; }
  .hb-department-tile:nth-child(2n) .hb-dept-illustration > span,.pub-card.type-departments:nth-child(2n) .hb-dept-illustration > span { animation-delay:-1.9s; }
  .hb-department-tile:nth-child(3n) .hb-dept-illustration > span,.pub-card.type-departments:nth-child(3n) .hb-dept-illustration > span { animation-delay:-3.8s; }
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .hb-dept-illustration { transition:transform .35s cubic-bezier(.2,.7,.3,1),box-shadow .35s; }
  :is(.hb-department-tile,.pub-card.type-departments):is(:hover,:focus-visible) .hb-dept-illustration { transform:translateY(-3px) rotate(-2deg); box-shadow:inset 0 2px 1px #fff,0 7px 0 -4px var(--dept-art-tint),0 18px 28px -18px color-mix(in srgb,var(--brand-deep,#15444d) 45%,transparent); }
}
@keyframes hb-department-breathe { 0%,100%{translate:0 0}50%{translate:0 -3px} }
@keyframes hb-department-halo { 0%,100%{scale:.96;opacity:.65}50%{scale:1.08;opacity:.25} }
@keyframes hb-department-glint { 0%,100%{opacity:.45}50%{opacity:.9} }
html.hm-tab-hidden .hb-dept-illustration > span,html[data-coast-paused="true"] .hb-dept-illustration > span { animation-play-state:paused!important; }
html[data-coast-paused="true"] .hb-dept-illustration { transition:none; transform:none!important; }
@media(max-width:1100px) { #content .home .hb-department-tile { gap:15px; padding:18px; min-height:116px; }.hb-dept-illustration--tile{--dept-art-size:72px;} }
@media(max-width:760px) { .hb-dept-illustration--banner{--dept-art-size:62px;}.hb-dept-illustration--card{--dept-art-size:148px;}.pub-content .pub-card.type-departments .pub-card-visual{height:188px;min-height:188px;} }
@media(max-width:650px) { #content .home .hb-department-tile { min-height:106px; padding:17px 18px; gap:18px; }#content .home .hb-department-tile>strong{font-size:18px;}.hb-dept-illustration--tile{--dept-art-size:68px;} }
@media(max-width:390px) { .hb-dept-illustration--tile{--dept-art-size:60px;}.hb-dept-illustration--banner{--dept-art-size:54px;}#content .home .hb-department-tile{gap:14px;padding:15px;}#content .home .hb-department-tile>strong{font-size:16px;}.bmc-banner-inner h1:has(> .hb-dept-illustration){gap:12px;} }
@media(prefers-reduced-motion:reduce) { .hb-dept-illustration,.hb-dept-illustration > span { animation:none!important; transition:none!important; translate:none!important; scale:1!important; }.hb-dept-illustration{transform:none!important;} }
@media print { .hb-dept-illustration,.hb-dept-illustration > span { animation:none!important; box-shadow:none; } }
