/* Reusable university stories/gallery template. All presentation styling lives here. */
.cu-stories {
    --cus-ink: #153448;
    --cus-muted: #647989;
    --cus-teal: #087e81;
    --cus-gold: #b28a45;
    --cus-line: #dfe7ec;
    margin: 0;
    padding: 0;
    min-width: 0;
    color: var(--cus-ink);
    background: #f4f7f9;
    font-size: 16px;
    line-height: 1.9;
    text-align: start;
}
.cu-stories *, .cu-stories *::before, .cu-stories *::after { box-sizing: border-box; }
.cu-stories [hidden] { display: none !important; }
.cu-stories h1, .cu-stories h2, .cu-stories p { margin: 0; padding: 0; color: inherit; }
.cu-stories a { color: var(--cus-teal); text-decoration: none; overflow-wrap: anywhere; }
.cu-stories a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cu-stories button { appearance: none; font: inherit; cursor: pointer; margin: 0; }
.cu-stories button:disabled { opacity: .4; cursor: default; }
.cu-stories a:focus-visible, .cu-stories button:focus-visible { outline: 3px solid #c39b57; outline-offset: 4px; }
.cu-stories svg { display: block; width: 21px; height: 21px; flex: 0 0 auto; }
.cu-stories-shell { max-width: 1400px; padding: 0 32px 56px; margin: 0 auto; }
.cu-stories-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 36px; padding: 45px 0 32px; }
.cu-stories-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--cus-teal) !important; margin-bottom: 13px !important; }
.cu-stories-eyebrow > span { display: block; width: 26px; height: 2px; background: var(--cus-gold); }
.cu-stories h1 { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.4; font-weight: 700; max-width: 830px; }
.cu-stories-intro { font-size: 15px; color: var(--cus-muted) !important; line-height: 1.9; max-width: 750px; margin-top: 14px !important; }
.cu-stories-overview { min-width: 210px; }
.cu-stories-overview > p { display: flex; gap: 26px; margin-bottom: 17px; }
.cu-stories-overview > p > span { display: block; color: var(--cus-muted); font-size: 13px; min-width: 75px; }
.cu-stories-overview > p > span + span { border-inline-start: 1px solid #d4dfe6; padding-inline-start: 26px; }
.cu-stories-overview strong { display: block; font: 700 31px/1.4 Arial, sans-serif; color: var(--cus-ink); }
.cu-stories-autoplay { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 12px; border: 1px solid #cfdee4; border-radius: 8px; background: #fff; color: var(--cus-ink); font-size: 12px !important; }
.cu-stories-autoplay svg { width: 17px; height: 17px; }
.cu-stories-autoplay[aria-pressed="true"] { border-color: #93b9b9; background: #e7f1f1; }
.cu-stories-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; align-items: stretch; }
.cu-stories-grid-title { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; font-size: 23px; font-weight: 700; padding-top: 12px !important; }
.cu-stories-grid-title > span { display: block; flex: 1; height: 1px; background: var(--cus-line); }
.cu-story { display: flex; flex-direction: column; min-width: 0; margin: 0; border: 1px solid var(--cus-line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 6px 24px #15344806; }
.cu-story-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); direction: ltr; }
.cu-stories[dir="rtl"] .cu-story-copy { direction: rtl; }
.cu-stories[dir="ltr"] .cu-story-copy { direction: ltr; }
.cu-story-media { min-width: 0; background: #fff; position: relative; }
.cu-story-frame { position: relative; aspect-ratio: 3 / 2; padding: 11px; background: #eaf0f3; }
.cu-story-photo { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 9px; }
.cu-story-photo img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity .25s; }
.cu-story-photo.is-loading img { opacity: .5; }
.cu-story-expand { display: grid; place-items: center; position: absolute; inset-inline-end: 15px; bottom: 15px; width: 40px; height: 40px; background: #fffffff0; color: var(--cus-ink); border: 1px solid #d9e1e6; border-radius: 50%; box-shadow: 0 3px 12px #102f4320; transition: background .2s; }
.cu-story-photo:hover .cu-story-expand { background: #dceeed; }
.cu-story-expand svg { width: 18px; height: 18px; }
.cu-story-controls { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border-bottom: 1px solid #edf1f4; direction: ltr; }
.cu-story-control { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; padding: 8px; border: 1px solid var(--cus-line); border-radius: 50%; background: #fff; color: var(--cus-ink); }
.cu-story-control:hover { background: #edf5f4; border-color: #a7c5c4; }
.cu-story-control svg { width: 17px; height: 17px; }
.cu-story-prev svg { transform: rotate(180deg); }
.cu-story-counter { font: 14px/1.5 Arial, sans-serif; min-width: 50px; text-align: center; color: var(--cus-muted); }
.cu-story-gallery-link { display: inline-flex; align-items: center; gap: 7px; margin-inline-start: auto !important; padding: 7px 10px; min-height: 38px; border: 0; background: #fff; color: var(--cus-teal); font-size: 13px !important; }
.cu-story-gallery-link svg { width: 16px; height: 16px; }
.cu-story-steps { display: flex; gap: 6px; max-width: 100%; min-width: 0; padding: 10px 15px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #b8cbd3 transparent; direction: ltr; }
.cu-story-steps button { flex: 0 0 34px; min-height: 32px; padding: 4px 5px; color: #657b8a; background: #fff; border: 1px solid transparent; border-radius: 6px; font: 12px Arial, sans-serif; }
.cu-story-steps button[aria-current="true"] { background: #143c4e; color: #fff; border-color: #143c4e; }
.cu-story-steps button:hover { border-color: #abc5cd; }
.cu-story-copy { min-width: 0; display: flex; flex-direction: column; padding: 27px 30px 28px; }
.cu-story-featured .cu-story-copy { justify-content: center; padding: 34px; }
.cu-story-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; color: var(--cus-muted); font-size: 12px; }
.cu-story-tag { display: inline-block; padding: 4px 10px; background: #edf5f4; border-radius: 5px; font-size: 12px; color: #107a7c; font-weight: 700; }
.cu-story-featured .cu-story-tag { background: #faf3e6; color: #96702e; }
.cu-story-copy > h2 { font-size: 23px; line-height: 1.65; font-weight: 700; margin-bottom: 17px; overflow-wrap: anywhere; }
.cu-story-featured .cu-story-copy > h2 { font-size: 28px; line-height: 1.6; }
.cu-story-body { min-width: 0; color: #526b7c; font-size: 15px; line-height: 1.95; overflow-wrap: anywhere; }
.cu-story-body p + p { margin-top: 12px; }
.cu-story-body ul, .cu-story-body ol { padding-inline-start: 22px; margin-block: 10px; }
.cu-story-body h3, .cu-story-body h4 { font-size: 17px; color: var(--cus-ink); line-height: 1.7; }
.cu-story-body blockquote { margin: 12px 0; padding-inline-start: 15px; border-inline-start: 3px solid #c4a36b; font-size: inherit; }
.cu-stories.is-enhanced .cu-story-body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.cu-stories.is-enhanced .cu-story-featured .cu-story-body { -webkit-line-clamp: 6; }
.cu-stories.is-enhanced .cu-story.is-expanded .cu-story-body { display: block; -webkit-line-clamp: unset; overflow: visible; }
.cu-story-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.cu-story-actions button { padding: 5px 0; border: 0; color: var(--cus-teal); background: transparent; font-size: 13px; }
.cu-story-actions a { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; }
.cu-story-actions a span { display: inline-flex; }
.cu-story-actions a svg { width: 16px; height: 16px; }
.cu-stories[dir="rtl"] .cu-story-actions a span { transform: rotate(180deg); }
.cu-story-unavailable, .cu-stories-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; min-height: 180px; height: 100%; padding: 30px !important; color: var(--cus-muted) !important; text-align: center; }
.cu-story-unavailable svg, .cu-stories-empty svg { width: 42px; height: 42px; color: #96acba; }
.cu-story-fallback { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 15px 20px; list-style: none; margin: 0; font-size: 13px; }
.cu-stories-notice { padding: 16px 0 !important; color: var(--cus-muted) !important; font-size: 14px; }
.cu-stories-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body.cu-stories-viewing { overflow: hidden; }
.cu-stories .cu-stories-viewer:not([open]) { display: none; }
.cu-stories .cu-stories-viewer { position: fixed; inset: 0; margin: auto; padding: 0; width: min(1240px, calc(100vw - 36px)); max-width: none; max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); border: 1px solid #4b6678; border-radius: 16px; background: #102b3b; color: #fff; overflow: auto; box-shadow: 0 20px 90px #0006; }
.cu-stories .cu-stories-viewer::backdrop { background: #061620eb; backdrop-filter: blur(6px); }
.cu-stories-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 22px; border-bottom: 1px solid #ffffff20; }
.cu-stories .cu-stories-viewer-head h2 { font-size: 19px; line-height: 1.7; color: #fff; }
.cu-stories .cu-stories-viewer button, .cu-stories .cu-stories-viewer-tools > a { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 7px 14px; border: 1px solid #688696; border-radius: 7px; background: #ffffff08; color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.cu-stories .cu-stories-viewer button:hover, .cu-stories .cu-stories-viewer-tools > a:hover { background: #ffffff20; text-decoration: none; }
.cu-stories-viewer-head > button { flex-shrink: 0; }
.cu-stories-viewer-stage { display: flex; align-items: center; justify-content: center; overflow: auto; height: min(68vh, 840px); height: min(68dvh, 840px); background: #071c2a; padding: 10px; direction: ltr; }
.cu-stories-viewer-stage img { display: block; flex-shrink: 0; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.cu-stories-viewer-stage.is-zoomed { display: block; }
.cu-stories-viewer-stage.is-zoomed img { max-width: none; max-height: none; margin: auto; }
.cu-stories-viewer-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 22px 8px; }
.cu-stories-viewer-nav { display: flex; align-items: center; gap: 16px; }
.cu-stories-viewer-nav button { width: 46px; font: 23px Arial, sans-serif !important; }
.cu-stories-viewer-nav > span { min-width: 62px; text-align: center; font: 15px Arial, sans-serif; }
.cu-stories .cu-stories-viewer-hint { margin: 4px 22px 15px; font-size: 12px; color: #b8ceda; }
@media (max-width: 1100px) {
    .cu-stories-shell { padding-inline: 24px; }
    .cu-stories-heading { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .cu-stories-overview { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
    .cu-stories-overview > p { margin-bottom: 0; }
    .cu-story-featured { grid-template-columns: minmax(0, 1fr); }
    .cu-story-featured .cu-story-frame { aspect-ratio: 16 / 9; }
    .cu-story-featured .cu-story-copy { padding: 28px; }
    .cu-story-featured .cu-story-copy > h2 { font-size: 26px; }
}
@media (max-width: 680px) {
    .cu-stories-shell { padding: 0 14px 36px; }
    .cu-stories-heading { padding: 28px 0 24px; }
    .cu-stories h1 { font-size: 32px; }
    .cu-stories-intro { font-size: 14px; }
    .cu-stories-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .cu-stories-grid-title { font-size: 21px; padding-top: 8px !important; }
    .cu-story, .cu-stories .cu-stories-viewer { border-radius: 12px; }
    .cu-story-frame, .cu-story-featured .cu-story-frame { aspect-ratio: 3 / 2; padding: 7px; }
    .cu-story-copy, .cu-story-featured .cu-story-copy { padding: 21px; }
    .cu-story-copy > h2, .cu-story-featured .cu-story-copy > h2 { font-size: 22px; }
    .cu-story-controls { gap: 7px; padding: 10px; }
    .cu-story-gallery-link { padding-inline: 5px; }
    .cu-story-gallery-link span { font-size: 12px; }
    .cu-story-control { width: 35px; height: 35px; flex-basis: 35px; }
    .cu-story-counter { min-width: 45px; font-size: 13px; }
    .cu-story-steps { padding: 8px 10px; }
    .cu-stories .cu-stories-viewer { width: calc(100vw - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
    .cu-stories-viewer-head { padding: 12px; gap: 10px; }
    .cu-stories .cu-stories-viewer-head h2 { font-size: 16px; }
    .cu-stories-viewer-stage { height: 53vh; height: 53dvh; padding: 5px; }
    .cu-stories-viewer-tools { padding: 12px; gap: 10px; }
    .cu-stories .cu-stories-viewer-tools > a { width: 100%; }
    .cu-stories .cu-stories-viewer-hint { margin-inline: 12px; }
}
@media (max-width: 360px) {
    .cu-story-gallery-link span { display: none; }
    .cu-stories-overview { gap: 14px; }
    .cu-stories-autoplay { font-size: 11px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .cu-stories * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    .cu-stories { background: #fff; }
    .cu-stories-shell { max-width: none; padding: 0; }
    .cu-stories-grid { display: block; }
    .cu-story { margin-bottom: 20px; break-inside: avoid; box-shadow: none; }
    .cu-story-featured { display: block; }
    .cu-stories .cu-story-body { display: block !important; -webkit-line-clamp: unset !important; overflow: visible !important; }
    .cu-stories-viewer, .cu-story-controls, .cu-story-steps, .cu-story-expand, .cu-stories-autoplay, .cu-story-actions button { display: none !important; }
}
