/* Success Stories: the awards page cards (cards.css) with real photos and a story window. */
/* Loaded after the sheets before it; the build links each one with a version stamp (no @import). */

/* Real photos: keep faces in the square, and a soft shade at the foot so the link reads on any photo. */
.card-photo img { object-position: 50% 30%; }
.card-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(rgba(27, 24, 51, 0), rgba(27, 24, 51, .45)); pointer-events: none; }
.card-more { z-index: 1; }

/* The story window, in the same rounded card language. */
.story-dialog { width: min(112rem, calc(100% - 3.2rem)); max-height: calc(100% - 3.2rem); margin: auto; padding: 0; border: 0; border-radius: 2.4rem; background: transparent; color: var(--navy); overflow: visible; }
.story-dialog::backdrop { background: rgba(27, 24, 51, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.story-dialog[open] { animation: story-in .35s cubic-bezier(.16, 1, .3, 1); }
@keyframes story-in { from { opacity: 0; transform: translateY(1.6rem); } }
.story-panel { position: relative; max-height: calc(100vh - 3.2rem); overflow: auto; border-radius: 2.4rem; background: var(--soft); overscroll-behavior: contain; }
.story-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.6rem; padding: 1.6rem; }
.story-photo { position: sticky; top: 1.6rem; align-self: start; overflow: hidden; border-radius: 2.4rem; }
.story-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; }
.story-text { padding: 2rem 1.6rem 2.4rem; }
.story-text .pills { margin-bottom: 2.4rem; }
.story-text h2 { margin: 0; padding-inline-end: 5rem; font-size: 3.2rem; line-height: 1.2; font-weight: 700; color: var(--navy); text-wrap: balance; }
.story-role { margin: 1rem 0 0; font-size: 1.6rem; line-height: 1.45; color: var(--ink-2); }
.story-copy { margin-top: 2.8rem; padding-top: 2.4rem; border-top: 1px solid #dfe2ea; }
.story-copy p, .story-copy li { margin: 0 0 1.4rem; font-size: 1.7rem; line-height: 1.7; color: var(--navy); }
.story-copy ul { margin: 0 0 1.4rem; padding-inline-start: 2rem; }
.story-copy li::before { content: none; }
.story-copy li { list-style: disc; margin-bottom: .8rem; }
.story-video { position: relative; margin-top: 2.4rem; overflow: hidden; border-radius: 1.6rem; aspect-ratio: 16 / 9; background: var(--navy); }
.story-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.story-close { position: absolute; z-index: 2; top: 2.4rem; inset-inline-end: 2.4rem; display: grid; place-items: center; width: 4.4rem; height: 4.4rem; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; transition: background .2s; }
.story-close:hover { background: #e3e6ee; }
.story-close:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.story-close svg { width: 1.4rem; height: 1.4rem; }
body.story-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) { .story-dialog[open] { animation: none; } }
@media (max-width: 799px) {
  .story-inner { grid-template-columns: minmax(0, 1fr); }
  .story-photo { position: static; }
  .story-photo img { aspect-ratio: 4 / 3; }
  .story-text { padding: 1.2rem .8rem 1.6rem; }
  .story-text h2 { font-size: 2.6rem; padding-inline-end: 0; }
  .story-close { top: 2.6rem; inset-inline-end: 2.6rem; }
}

/* Names are shorter than award titles, so the top panel needs less room. */
.stories-cards .card-top { min-height: 19rem; }
@media (max-width: 559px) { .stories-cards .card-top { min-height: 0; } }

/* The title, a step smaller than the awards page (user, 2026-11-17). */
.stories-cards .cards-intro h1 { font-size: clamp(3.6rem, 4.4vw, 6.4rem); }
/* Selected text: the awards page used Tamkeen red; here a soft light blue with navy text, readable on the dark band and on white. */
.stories-cards ::selection { background: #dce8fb; color: #1b1833; }

/* No arrows beside the main menu names (user, 2026-12-02). The phone menu keeps its own: there they open each group. */
@media (min-width: 769px) {
  #mega-menu-wrap-megamenu #mega-menu-megamenu > li.mega-menu-item-has-children > a.mega-menu-link > span.mega-indicator { display: none !important; }
}
