/* Open Application presentation. The Android artwork keeps its own styling. */
.ms-application-section { display: flow-root; margin-top: 80px; }
.ms-android-followup { display: flow-root; margin-top: 64px; }
.ms-android-followup > #nowAvailableSection { margin-top: 0; }

#applyCinemaSection { max-width: 1200px; margin-inline: auto; padding: 0; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
#applyCinemaSection::before,
#applyCinemaSection::after { content: none; display: none; }
#applyCinemaSection .ms-application-heading { max-width: 760px; margin-inline: auto; padding-inline: 16px; text-align: center; }
#applyCinemaSection .ms-application-heading > p:first-child { margin: 0 0 13px; color: #657b98; font-size: 11px; font-weight: 700; letter-spacing: .2em; }
#applyCinemaSection .ms-application-heading > h2 { margin: 0; color: #17345a; font-size: clamp(28px, 3.3vw, 42px); font-weight: 750; line-height: 1.2; letter-spacing: -.045em; text-wrap: balance; }
#applyCinemaSection .ms-application-heading > p:last-child { max-width: 590px; margin: 17px auto 0; color: #61718a; font-size: 14px; line-height: 1.8; }
/* The introduction stays outside the moving track and remains available throughout. */
#applyCinemaSection .apply-presentation-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(28px, 4vw, 56px); margin-top: 32px; padding-inline: 24px; }
#applyCinemaSection .apply-introduction { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; align-content: center; gap: 20px; min-width: 0; max-width: 460px; }
#applyCinemaSection .apply-introduction h3 { margin: 0; color: #193b62; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: clamp(30px, 3vw, 40px); font-weight: 750; line-height: 1.2; letter-spacing: -.04em; text-wrap: balance; }
#applyCinemaSection .apply-introduction p { margin: 0; color: #526985; font-size: 15px; line-height: 1.75; }
#applyCinemaSection .apply-introduction strong { font-weight: 700; }
#applyCinemaSection .apply-introduction .apply-now-button { position: relative; grid-area: auto; display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: fit-content; min-height: 48px; margin-top: 4px; padding: 12px 22px; border-radius: 12px; font-size: 14px; font-weight: 600; opacity: 1; visibility: visible; pointer-events: auto; }
#applyCinemaSection .apply-introduction .apply-now-button:focus-visible { outline: 2px solid #193b62; outline-offset: 4px; }
#applyCinemaSection .apply-carousel-stage { min-width: 0; margin: 0; padding-inline: 22px; }
#applyCinemaSection [data-carousel-viewport] { overflow: hidden; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline-offset: 3px; }
#applyCinemaSection [data-carousel-viewport]:focus-visible { outline: 2px solid #9bbcec; }
/* Every slide contributes to the natural track height, so role changes cannot shift the CTA. */
#applyCinemaSection .cinematic-carousel-track { align-items: stretch; }
#applyCinemaSection .cinematic-carousel-slide { min-width: 0; padding: 0; }
#applyCinemaSection .cinematic-slide-shell { width: 100%; height: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; opacity: 1; filter: none; }
#applyCinemaSection .apply-story-card,
#applyCinemaSection .role-story-card { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: center; gap: 16px; min-width: 0; min-height: 0; height: 100%; margin: 0; padding: 0 0 8px; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
#applyCinemaSection .apply-story-card::before,
#applyCinemaSection .apply-story-card::after { content: none; display: none; animation: none; }
#applyCinemaSection .role-story-copy { order: 1; display: grid; justify-items: center; align-content: start; gap: 10px; width: 100%; min-width: 0; max-width: 440px; margin: 0; padding: 0; text-align: center; }
#applyCinemaSection .role-story-copy > * { opacity: 1; transform: none; }
#applyCinemaSection .role-profile-head { display: block; margin: 0; }
#applyCinemaSection .apply-copy-title { max-width: 100%; margin: 0; color: #193b62 !important; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: clamp(23px, 2.1vw, 28px); font-weight: 750; line-height: 1.25; letter-spacing: -.035em; text-transform: none; }
#applyCinemaSection .role-profile-head::before { content: ''; display: block; width: 28px; height: 3px; margin: 0 auto 12px; border-radius: 3px; background: #0f63ff; }
#applyCinemaSection .organization-role-card .role-profile-head::before { background: #ef2f63; }
#applyCinemaSection .supplier-story-card .role-profile-head::before { background: #258e87; }
#applyCinemaSection .apply-role-description { margin: 0; color: #61718a; font-size: 14px; font-weight: 450; line-height: 1.7; text-wrap: pretty; }

/* All three illustrations sit directly above their role copy, with matching proportions. */
#applyCinemaSection .role-scene-visual,
#applyCinemaSection .supplier-delivery-scene { order: 0; position: relative; width: 100%; max-width: 420px; min-width: 0; min-height: 0; aspect-ratio: 3 / 2; margin: 0 auto; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
#applyCinemaSection .role-scene-visual::before,
#applyCinemaSection .role-scene-visual::after,
#applyCinemaSection .supplier-delivery-scene::before,
#applyCinemaSection .supplier-delivery-scene::after { content: none; display: none; }
#applyCinemaSection .role-map-grid,
#applyCinemaSection .supplier-scene-glow { display: none; }
#applyCinemaSection .supplier-scene-caption,
#applyCinemaSection .supplier-destination-label { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #526c8c; font-size: 12px; }
#applyCinemaSection .supplier-scene-caption { top: 8%; left: 6%; }
#applyCinemaSection .supplier-destination-label { top: 43%; right: 0; }
#applyCinemaSection .supplier-route-runner-bg { fill: none; stroke: none; }
#applyCinemaSection .apply-swipe-hint { color: #6b88ad; opacity: .5; }
#applyCinemaSection .apply-swipe-hint--left { left: 0; }
#applyCinemaSection .apply-swipe-hint--right { right: 0; }

/* Native SVG choreography completes before the existing 4.3-second scene change. */
#applyCinemaSection .ms-app-art { min-height: 0; aspect-ratio: 3 / 2; isolation: isolate; }
#applyCinemaSection .ms-app-scene-svg { display: block; position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }
#applyCinemaSection .ms-app-reveal { opacity: 1; transform: none; }
#applyCinemaSection .ms-app-route { stroke-dasharray: 1; stroke-dashoffset: 0; }
#applyCinemaSection .ms-app-packet { opacity: 0; stroke-dasharray: .035 .965; stroke-dashoffset: 0; }
#applyCinemaSection .ms-app-sync-ring { opacity: .22; transform-box: fill-box; transform-origin: center; }
#applyCinemaSection .ms-app-located-burst { opacity: 0; pointer-events: none; }
#applyCinemaSection .ms-app-burst-wave { transform-box: view-box; transform-origin: 0 0; }
#applyCinemaSection .ms-app-burst-back .ms-app-burst-wave { opacity: .6; }
#applyCinemaSection .ms-app-burst-front .ms-app-burst-wave { opacity: 1; }
#applyCinemaSection .ms-app-burst-glow { stroke-width: 10px; opacity: .2; filter: blur(2px); }
#applyCinemaSection .ms-app-burst-edge { stroke-width: 1.2px; }
#applyCinemaSection .ms-app-query,
#applyCinemaSection .ms-app-stock,
#applyCinemaSection .ms-app-distance,
#applyCinemaSection .ms-app-network-count,
#applyCinemaSection .ms-app-network-status { position: absolute; z-index: 2; display: flex; align-items: center; color: #4d6685; font-size: 12px; line-height: 1.5; pointer-events: none; }
#applyCinemaSection .ms-app-query { --ms-app-query-top: 6%; --ms-app-query-scale: 1.65; --ms-app-query-leading: 27px; top: var(--ms-app-query-top); left: 5%; gap: 9px; color: #294d77; font-size: 13px; font-weight: 550; transform-origin: left center; }
#applyCinemaSection .ms-app-query > svg { width: 18px; height: 18px; flex: none; stroke: #0f63ff; stroke-width: 1.8; stroke-linecap: round; }
#applyCinemaSection .ms-app-query > span { display: block; white-space: nowrap; }
#applyCinemaSection .ms-app-query > i { position: absolute; top: 50%; left: 100%; width: 1px; height: 15px; margin-left: 2px; transform: translateY(-50%); background: #9eb4d0; opacity: 0; }
#applyCinemaSection .ms-app-stock { bottom: 3%; right: 6%; display: grid; gap: 2px; text-align: right; }
#applyCinemaSection .ms-app-stock b { color: #34567d; font-size: 12px; font-weight: 600; }
#applyCinemaSection .ms-app-stock small { display: inline-flex; justify-content: end; align-items: center; gap: 6px; color: #4a8278; font-size: 11px; }
#applyCinemaSection .ms-app-stock i,
#applyCinemaSection .ms-app-network-status i { width: 5px; height: 5px; flex: none; border-radius: 50%; background: #258e87; box-shadow: 0 0 0 3px rgba(37, 142, 135, .09); }
#applyCinemaSection .ms-app-distance { left: 7%; bottom: 9%; gap: 7px; font-size: 11px; }
#applyCinemaSection .ms-app-distance i { width: 7px; height: 7px; border: 1.5px solid #0f63ff; border-radius: 50%; }
#applyCinemaSection .ms-app-network-count { left: 11%; bottom: 5%; gap: 10px; }
#applyCinemaSection .ms-app-network-count b { color: #254d7e; font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: -.05em; }
#applyCinemaSection .ms-app-network-count small { color: #617895; font-size: 11px; line-height: 1.5; }
#applyCinemaSection .ms-app-network-status { right: 8%; bottom: 7%; gap: 8px; color: #447f78; font-size: 11px; font-weight: 550; }

#applyCinemaSection .is-current .ms-app-reveal { animation: msApplicationReveal .6s var(--ms-app-delay, 0s) cubic-bezier(.2, .75, .2, 1) both; }
#applyCinemaSection .is-current .ms-app-route { animation: msApplicationRoute var(--ms-app-duration, .8s) var(--ms-app-delay, 1s) cubic-bezier(.35, .1, .25, 1) both; }
#applyCinemaSection .is-current .ms-app-packet { animation: msApplicationPacket .88s var(--ms-app-delay, 2s) ease-in-out both; }
#applyCinemaSection .is-current .ms-app-packet-return { animation-name: msApplicationPacketReturn; }
#applyCinemaSection .is-current .ms-app-sync-ring { animation: msApplicationSync .72s var(--ms-app-delay, 2.6s) ease-out both; }
/* Hold the enlarged search for two full seconds, then open up the scene. */
#applyCinemaSection .is-current .ms-app-query { animation: msApplicationSearchFocus .8s 2s cubic-bezier(.22, .7, .2, 1) both; }
#applyCinemaSection .is-current .ms-app-query > span { animation: msApplicationQuery 2s steps(18, end) both; }
#applyCinemaSection .is-current .ms-app-query > i { animation: msApplicationCursorTrack 2s steps(18, end) both, msApplicationCursor .4s steps(2, end) 5; }
#applyCinemaSection .is-current .ms-app-pharmacy > .ms-app-scene-svg { transform-origin: 50% 45%; animation: msApplicationSceneUnfold .8s 2s cubic-bezier(.22, .7, .2, 1) both; }
#applyCinemaSection .is-current .ms-app-pharmacy-cross { animation: msApplicationCross .6s 2.95s ease-out both; transform-box: fill-box; transform-origin: center; }
#applyCinemaSection .is-current .ms-app-located-burst { animation: msApplicationLocated .9s 2.95s ease-out both; }
#applyCinemaSection .is-current .ms-app-burst-wave { animation: msApplicationSpatialWave .9s 2.95s cubic-bezier(.16, .65, .25, 1) both; }
@keyframes msApplicationReveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes msApplicationRoute { from { stroke-dashoffset: 1; opacity: .3; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes msApplicationPacket { 0% { stroke-dashoffset: 0; opacity: 0; } 12%, 82% { opacity: 1; } 100% { stroke-dashoffset: -1; opacity: 0; } }
@keyframes msApplicationPacketReturn { 0% { stroke-dashoffset: -1; opacity: 0; } 12%, 82% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes msApplicationSync { 0% { opacity: 0; transform: scale(.8); } 35% { opacity: .8; } 100% { opacity: .22; transform: scale(1); } }
@keyframes msApplicationQuery { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes msApplicationSearchFocus { from { top: 42%; left: 9%; transform: scale(var(--ms-app-query-scale)); } to { top: var(--ms-app-query-top); left: 5%; transform: scale(1); } }
@keyframes msApplicationSceneUnfold { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1); } }
@keyframes msApplicationCursor { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes msApplicationCursorTrack { from { left: var(--ms-app-query-leading); } to { left: 100%; } }
@keyframes msApplicationCross { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.16); } }
@keyframes msApplicationLocated { 0%, 100% { opacity: 0; } 13%, 54% { opacity: 1; } }
@keyframes msApplicationSpatialWave { from { transform: scale(.68); } to { transform: scale(1.22); } }

@media (max-width: 1100px) and (min-width: 900px) {
  #applyCinemaSection .apply-presentation-layout { gap: 24px; padding-inline: 12px; }
  #applyCinemaSection .ms-app-query { --ms-app-query-scale: 1.4; --ms-app-query-leading: 21px; font-size: 11px; gap: 6px; }
  #applyCinemaSection .ms-app-query > svg { width: 15px; height: 15px; }
}
@media (max-width: 899px) {
  #applyCinemaSection .apply-presentation-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-inline: 16px; }
  #applyCinemaSection .apply-introduction { width: 100%; max-width: 520px; margin-inline: auto; }
  #applyCinemaSection .apply-carousel-stage { width: 100%; max-width: 520px; margin-inline: auto; padding-inline: 18px; }
}
@media (max-width: 759px) {
  .ms-application-section { margin-top: 64px; }
  .ms-android-followup { margin-top: 48px; }
  #applyCinemaSection .ms-application-heading { padding-inline: 8px; }
  #applyCinemaSection .ms-application-heading > p:first-child { font-size: 10px; }
  #applyCinemaSection .ms-application-heading > h2 { font-size: clamp(27px, 6vw, 37px); }
  #applyCinemaSection .ms-application-heading > p:last-child { margin-top: 14px; font-size: 13px; line-height: 1.75; }
  #applyCinemaSection .apply-presentation-layout { padding-inline: 8px; }
  #applyCinemaSection .apply-introduction h3 { font-size: clamp(28px, 6vw, 36px); }
  #applyCinemaSection .apply-introduction p { font-size: 14px; }
  #applyCinemaSection .apply-carousel-stage { padding-inline: 16px; }
  #applyCinemaSection .apply-role-description { font-size: 13px; }
  #applyCinemaSection .apply-swipe-hint { opacity: .4; }
}
@media (max-width: 400px) {
  #applyCinemaSection .apply-carousel-stage { padding-inline: 12px; }
  #applyCinemaSection .ms-app-query { --ms-app-query-top: 3%; --ms-app-query-scale: 1.4; --ms-app-query-leading: 21px; font-size: 11px; gap: 6px; }
  #applyCinemaSection .ms-app-query > svg { width: 15px; height: 15px; }
  #applyCinemaSection .ms-app-stock b { font-size: 10px; }
  #applyCinemaSection .ms-app-stock small,
  #applyCinemaSection .ms-app-distance,
  #applyCinemaSection .ms-app-network-status,
  #applyCinemaSection .ms-app-network-count small { font-size: 10px; }
  #applyCinemaSection .ms-app-network-count { left: 4%; gap: 7px; }
  #applyCinemaSection .ms-app-network-count b { font-size: 26px; }
  #applyCinemaSection .ms-app-network-status { right: 3%; gap: 6px; }
  #applyCinemaSection .supplier-destination-label { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #applyCinemaSection *, #applyCinemaSection *::before, #applyCinemaSection *::after { animation: none !important; transition: none !important; }
  #applyCinemaSection .ms-app-reveal,
  #applyCinemaSection .ms-app-query > span,
  #applyCinemaSection .ms-app-pharmacy-cross { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  #applyCinemaSection .ms-app-route { opacity: 1 !important; stroke-dashoffset: 0 !important; }
  #applyCinemaSection .ms-app-sync-ring { opacity: .22 !important; transform: none !important; }
  #applyCinemaSection .ms-app-packet,
  #applyCinemaSection .ms-app-located-burst,
  #applyCinemaSection .ms-app-query > i { display: none !important; }
}
