/* Loaded only by the reusable target layout. Academics and QEC never load this file. */
.uos-office-page { overflow-x:clip; }
.uos-office-page[data-office-slug="oric"] .office-banner img { width:100%; border:0; outline:0; box-shadow:none; }
.uos-office-page .office-intro--plain .office-welcome { margin-top:30px; }
.uos-office-page .office-overview:not(:has(.office-about)) { grid-template-columns:1fr; }
.uos-office-page .office-overview:not(:has(.office-about)) .office-values { grid-template-columns:repeat(2,minmax(0,1fr)); }
.uos-office-page .office-page-links { display:flex; flex-wrap:wrap; align-items:stretch; gap:14px; }
.uos-office-page .office-page-links .dept-button { min-height:70px; max-width:100%; min-width:0; white-space:normal; overflow-wrap:anywhere; }
.uos-office-page .office-carousel-layout { display:block; }
.uos-office-page .office-carousel-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:24px; min-width:0; margin-bottom:24px; }
html:root body .uos-office-page .office-carousel-heading h2 { grid-column:1; grid-row:1; color:var(--dept-navy); font-size:clamp(25px,2vw,34px) !important; line-height:1.25; margin:0 0 8px; }
.uos-office-page .office-carousel-heading > p { grid-column:1; grid-row:2; color:#686570; line-height:1.75; margin-bottom:0; }
.uos-office-page .office-carousel-heading > .dept-button { grid-column:1; justify-self:start; margin-top:16px; }
.uos-office-page .office-carousel-controls { grid-column:2; grid-row:1 / span 2; align-self:end; display:flex; gap:8px; margin:0; }
.uos-office-page .office-carousel-controls button { display:grid; place-items:center; width:36px; height:36px; flex:0 0 36px; padding:0; border:1px solid var(--dept-line); border-radius:4px; background:#fff; color:var(--uos-blue,#211c5b); cursor:pointer; transition:background .2s,border-color .2s,color .2s,transform .2s; }
.uos-office-page .office-carousel-controls button:hover { background:var(--uos-blue,#211c5b); border-color:var(--uos-blue,#211c5b); color:#fff; transform:translateY(-1px); }
.uos-office-page .office-carousel-controls button[hidden] { display:none; }
.uos-office-page .office-carousel-track { grid-auto-columns:calc((100% - 48px)/3); align-items:stretch; padding:3px 3px 18px; }
/* Match office staff cards to the department faculty slider design. */
.uos-office-page .office-carousel-track--staff { grid-auto-columns:280px; gap:20px; }
.uos-office-page #staff .dept-person { display:flex; flex-direction:column; border:1px solid var(--dept-line); border-top:3px solid var(--dept-gold); border-radius:12px; box-shadow:0 3px 10px rgba(23,20,59,.05); transition:border-color .2s,box-shadow .2s; }
.uos-office-page #staff .dept-person__photo { flex:0 0 190px; height:190px; background:#eeedf4; }
.uos-office-page #staff .dept-person__photo img { object-fit:contain; object-position:center top; }
.uos-office-page #staff .dept-person__photo .dept-placeholder { min-height:0; height:100%; background:#eeedf4; color:var(--dept-navy); }
.uos-office-page #staff .dept-person__body { flex:1; padding:16px 18px; border-top:1px solid var(--dept-line); transition:background .2s,border-color .2s; }
.uos-office-page #staff .dept-person__body h3 { color:var(--dept-navy); line-height:1.4; overflow-wrap:anywhere; }
html:root body .uos-office-page #staff .dept-person__body p { color:#55516d; font-size:14px !important; line-height:1.6; }
.uos-office-page #staff .dept-person__links a { color:#504e68; font-size:12px; overflow-wrap:anywhere; }
.uos-office-page #staff .dept-person:is(:hover,:focus-within) { border-color:var(--dept-navy); border-top-color:var(--dept-gold); box-shadow:0 5px 14px rgba(23,20,59,.12); }
.uos-office-page #staff .dept-person:is(:hover,:focus-within) .dept-person__body { background:var(--dept-navy); border-top-color:var(--dept-navy); }
.uos-office-page #staff .dept-person:is(:hover,:focus-within) h3 { color:var(--dept-gold); }
html:root body .uos-office-page #staff .dept-person:is(:hover,:focus-within) .dept-person__body p,
.uos-office-page #staff .dept-person:is(:hover,:focus-within) .dept-person__links a { color:#fff; }
.uos-office-page .office-page-news .uos-home-news-actions { margin-left:auto; }
.uos-office-page .office-page-card { display:flex; flex-direction:column; border:1px solid var(--dept-line); border-radius:14px; background:#fff; overflow:hidden; transition:border-color .2s; }
.uos-office-page .office-page-card:hover { border-color:var(--dept-navy); }
.uos-office-page .office-page-card-image { width:100%; height:210px; display:block; object-fit:cover; }
.uos-office-page .office-page-card-body { flex:1; display:flex; flex-direction:column; align-items:flex-start; gap:20px; padding:28px; min-height:230px; overflow-wrap:anywhere; }
html:root body .uos-office-page .office-page-card-body h3 { font-size:clamp(20px,1.6vw,28px) !important; line-height:1.3; color:var(--dept-navy); }
.uos-office-page .office-page-card-body > p { color:#53566b; line-height:1.65; letter-spacing:normal; word-break:normal; overflow-wrap:break-word; white-space:normal; }
.uos-office-page .office-page-card-body > .dept-button { margin-top:auto; }
.uos-office-page .office-feedback-image { width:64px; height:64px; border-radius:50%; object-fit:cover; }
.uos-office-page .dept-person__body .office-staff-branch { margin-top:4px; font-size:14px; color:#53566b; }
.uos-office-page .office-page-content { padding:30px; border:1px solid var(--dept-line); border-radius:14px; }
.uos-office-page .office-page-content .dept-richtext { overflow:auto; }
.uos-office-page .office-page-content :is(img,video,iframe) { max-width:100%; }
.uos-office-page .office-objective-card .office-page-card-body { align-items:center; text-align:center; }
.uos-office-page .office-objective-icon { display:grid; place-items:center; flex:0 0 82px; width:82px; height:82px; border-radius:50%; background:#fff; color:var(--dept-navy); box-shadow:0 5px 12px #17143b18; }
.uos-office-page .office-objective-icon i { font-size:30px; }
.uos-office-page .office-page-content .dept-richtext:has(>.oric-journal-card),
.uos-office-page .office-page-content .dept-richtext:has(>.oric-svc-item),
.uos-office-page .office-page-content .dept-richtext:has(>.oric-metrics__group) { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:24px; }
.uos-office-page .oric-journal-card { display:flex; flex-direction:column; gap:14px; }
.uos-office-page .oric-journal-card__cover img { width:100%; height:240px; object-fit:contain; }
.uos-office-page .oric-journal-card__overlay { display:none; }
.uos-office-page .oric-svc-item,.uos-office-page .oric-metrics__group { padding:24px; border:1px solid var(--dept-line); border-radius:14px; }
.uos-office-page .oric-svc-icon { color:var(--dept-navy); margin-bottom:16px; }
.uos-office-page .oric-metrics__group-title { font-weight:700; margin-bottom:16px; }
.uos-office-page .oric-metrics__stat { display:flex; justify-content:space-between; gap:20px; padding:10px 0; border-bottom:1px solid var(--dept-line); }
.uos-office-page .oric-ticker__track { display:grid; grid-auto-flow:column; grid-auto-columns:210px; overflow-x:auto; gap:16px; }
.uos-office-page .oric-ticker__item { display:grid; gap:8px; padding:18px; border:1px solid var(--dept-line); border-radius:10px; }
/* Compact ORIC collections retain the backend content and use the shared slider. */
.uos-office-page[data-office-slug="oric"] #office-branches-track { grid-auto-columns:280px; gap:16px; }
.uos-office-page[data-office-slug="oric"] #office-branches .office-page-card-body { min-height:150px; padding:20px; gap:14px; }
html:root body .uos-office-page[data-office-slug="oric"] #office-branches h3 { font-size:19px !important; }
.uos-office-page[data-office-slug="oric"] #office-branches .dept-button { min-height:38px; padding:8px 14px; }
.uos-office-page [data-office-imported-carousel] .office-page-content { padding:24px; }
.uos-office-page [data-office-imported-carousel] .office-carousel-heading { margin-bottom:16px; }
.uos-office-page [data-office-imported-carousel] .dept-richtext:has(>.oric-ticker__track) { overflow:visible; }
.uos-office-page .office-page-content .dept-richtext.office-oric-track,
.uos-office-page .office-page-content .office-oric-track { display:grid; grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:210px; gap:16px; overflow-x:auto; padding:2px 2px 14px; scroll-snap-type:x mandatory; }
.uos-office-page .office-page-content .dept-richtext.office-oric-track--journals { grid-auto-columns:220px; }
.uos-office-page .office-page-content .dept-richtext.office-oric-track--services { grid-auto-columns:240px; }
.uos-office-page .office-oric-track > * { min-width:0; scroll-snap-align:start; }
.uos-office-page .oric-ticker__item { background:#f5f4fa; border-top:3px solid var(--dept-gold); align-content:start; }
html:root body .uos-office-page .oric-ticker__item strong { font-size:30px !important; line-height:1.1; color:var(--dept-navy); }
html:root body .uos-office-page .oric-ticker__item span { font-size:14px !important; line-height:1.5; }
.uos-office-page .oric-ticker__dot { display:none; }
.uos-office-page .office-oric-track .oric-journal-card { padding:14px; border:1px solid var(--dept-line); border-radius:12px; background:#f8f7fb; gap:12px; }
.uos-office-page .office-oric-track .oric-journal-card__cover img { height:210px; display:block; }
html:root body .uos-office-page .office-oric-track .oric-journal-card__name { font-size:14px !important; line-height:1.55; color:var(--dept-navy); }
.uos-office-page .office-oric-track .oric-svc-item { padding:20px; border-top:3px solid var(--dept-gold); background:#faf9fd; }
.uos-office-page .office-oric-track .oric-svc-icon { display:grid; place-items:center; width:38px; height:38px; margin-bottom:12px; background:var(--dept-navy); color:var(--dept-gold); border-radius:10px; }
html:root body .uos-office-page .office-oric-track .oric-svc-item p { font-size:14px !important; line-height:1.65; margin:0; color:#49465e; letter-spacing:0; overflow-wrap:normal; }
/* Use the shared university navy and gold throughout the statistics. */
.uos-office-page .office-oric-metrics .office-page-content { padding:24px; background:#fff; border-color:var(--dept-line); }
html:root body .uos-office-page .office-oric-metrics h2 { font-size:clamp(22px,2vw,30px) !important; color:var(--dept-navy); }
.uos-office-page .office-oric-metrics .dept-richtext:has(>.oric-metrics__group) { grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.uos-office-page .office-oric-metrics .oric-metrics__group { padding:18px; background:var(--dept-navy); color:#fff; border:0; border-top:4px solid var(--dept-gold); border-radius:12px; box-shadow:0 6px 16px #17143b10; }
html:root body .uos-office-page .office-oric-metrics .oric-metrics__group-title { font-size:16px !important; line-height:1.4; color:#fff; margin-bottom:12px; }
.uos-office-page .office-oric-metrics .oric-metrics__stat { align-items:center; gap:14px; padding:9px 0; border-bottom-color:#ffffff26; }
.uos-office-page .office-oric-metrics .oric-metrics__stat:last-child { border-bottom:0; }
html:root body .uos-office-page .office-oric-metrics .oric-metrics__stat :first-child { flex-shrink:0; color:var(--dept-gold); font-size:25px !important; font-weight:700; line-height:1.2; }
html:root body .uos-office-page .office-oric-metrics .oric-metrics__stat :last-child { color:#fff; font-size:12px !important; line-height:1.5; text-align:right; }
@media(max-width:1100px) { .uos-office-page .office-oric-metrics .dept-richtext:has(>.oric-metrics__group) { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:575px) {
    .uos-office-page .office-oric-metrics .dept-richtext:has(>.oric-metrics__group) { grid-template-columns:1fr; }
    .uos-office-page[data-office-slug="oric"] #office-branches-track { grid-auto-columns:85%; }
    .uos-office-page [data-office-imported-carousel] .office-page-content,.uos-office-page .office-oric-metrics .office-page-content { padding:18px; }
}
@media(max-width:991px) {
    .uos-office-page .office-carousel-track { grid-auto-columns:calc((100% - 24px)/2); }
    .uos-office-page .office-carousel-track--staff { grid-auto-columns:280px; }
}
@media(max-width:767px) {
    .uos-office-page .office-carousel-track { grid-auto-columns:85%; }
    .uos-office-page .office-carousel-track--staff { grid-auto-columns:min(280px,85%); gap:16px; }
    .uos-office-page .office-carousel-heading { column-gap:12px; }
    .uos-office-page .office-overview:not(:has(.office-about)) .office-values { grid-template-columns:1fr; }
    .uos-office-page .office-page-content { padding:22px; }
    .uos-office-page .office-objective-icon { flex-basis:58px; width:58px; height:58px; }
    .uos-office-page .office-objective-icon i { font-size:25px; }
}
@media(prefers-reduced-motion:reduce) { .uos-office-page .office-carousel-controls button,.uos-office-page .office-page-card { transition:none; } }
