/* Shared Director, Dean, Chairperson and Head message card. */
.uos-message-section { padding: 8px 0 18px; }
.uos-message-card { --uos-message-preview-height:180px; display:grid; grid-template-columns:minmax(280px,30%) minmax(0,1fr); min-width:0; min-height:380px; overflow:visible; border:0; border-radius:12px; background:#17143b; color:#fff; font-family:var(--font-primary,sans-serif); box-shadow:0 8px 24px rgba(23,20,59,.07); scroll-margin-top:calc(var(--uos-sticky-header-height,100px) + 16px); }
.uos-message-card__photo-rail { min-width:0; align-self:stretch; background:#f7f8fa; border-radius:12px 0 0 12px; }
.uos-message-card .uos-message-card__photo { position:relative; height:380px; min-height:0; margin:0; border:0; border-radius:inherit; background:#f7f8fa; overflow:hidden; }
.uos-message-card .uos-message-card__photo img { position:absolute; inset:0 auto auto 15%; display:block; width:70%; height:100%; min-height:0; object-fit:contain; object-position:center top; }
.uos-message-card__placeholder { display:flex; min-height:0; height:100%; flex-direction:column; align-items:center; justify-content:center; gap:14px; color:#667085; background:#f7f8fa; }
.uos-message-card__placeholder i { font-size:60px; }
.uos-message-card__placeholder span { font-size:12px; }
.uos-message-card__body { display:flex; flex-direction:column; align-items:stretch; min-width:0; padding:30px 36px; border-radius:0 12px 12px 0; background:#17143b; }
.uos-message-card__body::before { display:none; }
html:root body .uos-message-card .uos-message-card__body h2 { position:relative; margin:0 0 20px; padding-top:28px; color:#fff; font-family:inherit; font-size:clamp(22px,1.7vw,28px) !important; font-weight:650; line-height:1.3; letter-spacing:normal; }
.uos-message-card__body h2::before { content:''; position:absolute; top:0; left:0; width:60px; height:3px; border-radius:3px; background:#ffc107; }
.uos-message-card__copy { flex-shrink:0; max-height:none; overflow:visible; padding-bottom:0; color:#eeeef6; font-size:15px; line-height:1.7; letter-spacing:normal; overflow-wrap:anywhere; }
.uos-message-card.has-overflow:not(.is-expanded) .uos-message-card__copy { max-height:var(--uos-message-visible-height,var(--uos-message-preview-height)); overflow:hidden; }
.uos-message-card.is-expanded .uos-message-card__copy { max-height:none; overflow:visible; padding-bottom:0; }
.uos-message-card [data-message-content] { display:flow-root; }
.uos-message-card .uos-message-card__copy :is(p,ul,ol,li,span,strong,em) { color:inherit !important; font-family:inherit !important; font-size:inherit !important; line-height:inherit !important; letter-spacing:inherit !important; }
.uos-message-card__copy::after { display:none; }
.uos-message-card__copy :is(p,ul,ol) { margin:0 0 10px; }
.uos-message-card__copy > :last-child { margin-bottom:0; }
.uos-message-card__toggle { position:static; right:auto; bottom:auto; z-index:auto; display:inline-flex; align-items:center; align-self:flex-start; gap:5px; margin:10px 0 0; padding:0; border:0; background:transparent; color:#ffc107; font:inherit; font-weight:600; cursor:pointer; white-space:nowrap; }
.uos-message-card__toggle:hover { color:#ffd04a; }
.uos-message-card__copy.is-expanded .uos-message-card__toggle { position:static; display:inline-flex; margin:0 0 0 4px; padding:0; background:transparent; }
.uos-message-card__signature { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-top:24px; padding-top:20px; border-top:1px solid rgba(255,255,255,.22); }
.uos-message-card .uos-message-card__signature strong { color:#fff; font-size:15px !important; font-style:italic; }
.uos-message-card .uos-message-card__signature p { margin:5px 0 0; color:#fff; font-size:14px !important; line-height:1.6; letter-spacing:normal; }
.uos-message-card [hidden] { display:none !important; }
/* Start beside the message, then dock below the header within the message rail. */
@media(min-width:768px) { .uos-message-card .uos-message-card__photo { position:sticky; top:calc(var(--uos-sticky-header-height,100px) + 16px); height:min(380px,calc(100dvh - var(--uos-sticky-header-height,100px) - 32px)); } }
@media(max-width:767px) { .uos-message-card { grid-template-columns:1fr; } .uos-message-card__photo-rail { border-radius:12px 12px 0 0; } .uos-message-card .uos-message-card__photo,.uos-message-card .uos-message-card__photo img,.uos-message-card__placeholder { min-height:260px; height:260px; } .uos-message-card .uos-message-card__photo img { left:0; width:100%; } .uos-message-card__body { padding:24px; border-radius:0 0 12px 12px; } .uos-message-card__signature { align-items:flex-start; flex-direction:column; } }

/* Consistent office, faculty and department message spacing and uncropped photos. */
:is(.office-managed-profile, .uos-department-detail, .uos-faculty-page) .uos-message-card { --office-message-gap:32px; align-items:stretch; padding:var(--office-message-gap) var(--office-message-gap) var(--office-message-gap) 0; gap:var(--office-message-gap); }
:is(.office-managed-profile, .uos-department-detail, .uos-faculty-page) .uos-message-card__photo-rail { align-self:stretch; background:#17143b; }
:is(.office-managed-profile, .uos-department-detail, .uos-faculty-page) .uos-message-card__body { padding:0; }
:is(.office-managed-profile, .uos-department-detail, .uos-faculty-page) .uos-message-card .uos-message-card__photo { height:auto; min-height:0; aspect-ratio:3 / 2; border-radius:8px; background:#17143b; }
:is(.office-managed-profile, .uos-department-detail, .uos-faculty-page) .uos-message-card .uos-message-card__photo img { position:absolute; inset:0; width:100%; height:100%; min-height:0; max-height:none; object-fit:contain; object-position:center top; }
@media(min-width:768px) {
    :is(.office-managed-profile, .uos-department-detail, .uos-faculty-page) .uos-message-card { grid-template-columns:minmax(0,45fr) minmax(0,55fr); }
    :is(.office-managed-profile, .uos-department-detail, .uos-faculty-page) .uos-message-card__photo-rail { position:relative; }
    :is(.office-managed-profile, .uos-department-detail, .uos-faculty-page) .uos-message-card .uos-message-card__photo { position:sticky; top:calc(var(--uos-sticky-header-height,100px) + 16px); max-height:calc(100dvh - var(--uos-sticky-header-height,100px) - 32px); }
}
@media(max-width:767px) { :is(.office-managed-profile, .uos-department-detail, .uos-faculty-page) .uos-message-card { --office-message-gap:24px; } }
