/* ==========================================================================
   Home: "Awards wall" (21 Nov 2026)
   Markup: resources/views/user/partials/_awards.blade.php (.gw-aw)
   Idea: a lit trophy cabinet on brand navy. Lights come on in sequence, a gold spotlight follows the cursor,
   hovering one piece dims the rest, clicking opens a detail dialog. Phones: one swipeable shelf.
   Quality rule: every award is shown at or BELOW its source pixel size (never upscaled), so nothing goes soft.
   Colours only from gateway-theme.css. Gold text only on navy (or gold-dark on white).
   ========================================================================== */
.gw-aw { position: relative; padding: 30px 0 30px; font-family: var(--gw-font); background: var(--gw-white); }

.gw-aw-wrap {
    position: relative; isolation: isolate; overflow: hidden;
    width: min(1232px, calc(100% - 32px)); margin: 0 auto; padding: 40px 40px 26px;
    border-radius: 28px; color: var(--gw-white); text-align: center;
    background:
        radial-gradient(ellipse 60% 55% at 50% -10%, rgba(var(--gw-navy-light-rgb), .95), transparent 72%),
        radial-gradient(ellipse 34% 22% at 50% -2%, rgba(var(--gw-gold-rgb), .13), transparent 72%),
        radial-gradient(ellipse 40% 30% at 12% 100%, rgba(var(--gw-navy-light-rgb), .7), transparent 70%),
        var(--gw-navy);
}
/* cursor spotlight */
.gw-aw-wrap::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 300ms ease;
    background: radial-gradient(circle 320px at var(--mx, 50%) var(--my, 30%), rgba(var(--gw-gold-rgb), .13), transparent 70%);
}
@media (pointer: fine) { .gw-aw-wrap:hover::before { opacity: 1; } }
.gw-aw-wrap > * { position: relative; z-index: 1; }

/* ---- head ---- */
.gw-aw-kicker { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gw-gold); }
.gw-aw .gw-aw-title {
    margin: 0 0 14px; font-family: var(--gw-font); font-size: clamp(32px, 4.2vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em;
    color: var(--gw-white); -webkit-text-fill-color: var(--gw-white); background: none; text-align: center;
}
.gw-aw .gw-aw-title span { color: var(--gw-gold); -webkit-text-fill-color: var(--gw-gold); }
.gw-aw .gw-aw-title b { font-weight: 800; font-variant-numeric: tabular-nums; }
.gw-aw-sub { margin: 0 auto; max-width: 560px; font-size: 16.5px; line-height: 1.6; color: var(--gw-white); opacity: .92; }

/* ---- the slider: one long lit shelf you slide through ---- */
.gw-aw { --sc: .42; }                       /* display scale vs the source pixels (never above 1) */
.gw-aw-wall { margin-top: 6px; }
.gw-aw-viewport {
    position: relative; overflow-x: auto; overflow-y: hidden; cursor: grab;
    scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    -webkit-mask: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent);
            mask: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent);
}
.gw-aw-viewport::-webkit-scrollbar { display: none; }
.gw-aw-viewport:focus { outline: none; }
.gw-aw-viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gw-aw-track {
    position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 46px;
    width: max-content; min-width: 100%; box-sizing: border-box; padding: 40px 60px 54px;
}
/* shelf edge + glass reflection, running the whole length of the track */
.gw-aw-track::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 52px; height: 2px; border-radius: 2px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(var(--gw-gold-rgb), .75) 6%, var(--gw-gold) 50%, rgba(var(--gw-gold-rgb), .75) 94%, transparent);
    box-shadow: 0 0 22px rgba(var(--gw-gold-rgb), .4);
}
.gw-aw-track::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 20px; height: 32px; pointer-events: none;
    background: linear-gradient(rgba(255, 255, 255, .09), transparent);
}

/* slider controls */
.gw-aw-controls { margin: 0; display: flex; align-items: center; justify-content: center; gap: 18px; }
.gw-aw-controls[hidden] { display: none; }
.gw-aw-arrow {
    width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(var(--gw-gold-rgb), .55); color: var(--gw-gold);
    font-size: 19px; font-weight: 700; line-height: 1; transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, opacity 180ms ease;
}
.gw-aw-arrow:hover:not(:disabled), .gw-aw-arrow:focus-visible { background: var(--gw-gold-shine); color: var(--gw-navy); outline: none; transform: translateY(-2px); }
.gw-aw-arrow:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .6); }
.gw-aw-arrow:disabled { opacity: .35; cursor: default; }
.gw-aw-progress { position: relative; width: min(260px, 38vw); height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .16); }
.gw-aw-progress i { position: absolute; top: 0; left: 0; width: 30%; height: 100%; border-radius: inherit; background: var(--gw-gold-shine); box-shadow: var(--gw-gold-glow); }

.gw-aw-item {
    position: relative; flex: 0 0 auto; width: calc(var(--w) * var(--sc) * 1px); padding: 0; margin: 0; scroll-snap-align: center;
    background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-align: center;
    -webkit-tap-highlight-color: transparent;
}
.gw-aw-item:focus { outline: none; }
.gw-aw-item:focus-visible { outline: 2px solid var(--gw-gold); outline-offset: 10px; border-radius: 14px; }
.gw-aw-item img {
    display: block; width: 100%; height: auto; max-width: calc(var(--w) * 1px); margin: 0 auto; user-select: none;
    filter: brightness(.9) drop-shadow(0 18px 16px rgba(0, 0, 0, .45));
    transition: transform 260ms cubic-bezier(.2, .8, .2, 1), filter 260ms ease, opacity 260ms ease;
}
/* pool of light on the shelf */
.gw-aw-item::after {
    content: ""; position: absolute; left: 50%; bottom: -16px; width: 140%; height: 28px; pointer-events: none;
    transform: translateX(-50%) scale(.5); opacity: 0; transition: opacity 260ms ease, transform 260ms ease;
    background: radial-gradient(ellipse at center, rgba(var(--gw-gold-rgb), .6), transparent 70%);
}

/* hover / focus: this piece lights up, the others dim (spotlight effect) */
.gw-aw-item:hover img, .gw-aw-item:focus-visible img {
    transform: translateY(-10px) scale(1.04);
    filter: brightness(1.12) saturate(1.1) drop-shadow(0 0 24px rgba(var(--gw-gold-rgb), .5)) drop-shadow(0 24px 20px rgba(0, 0, 0, .5));
}
.gw-aw-item:hover::after, .gw-aw-item:focus-visible::after { opacity: 1; transform: translateX(-50%) scale(1); }
.gw-aw-wall:has(.gw-aw-item:hover) .gw-aw-item:not(:hover) img,
.gw-aw-wall:has(.gw-aw-item:focus-visible) .gw-aw-item:not(:focus-visible) img { filter: brightness(.5) saturate(.7) drop-shadow(0 18px 16px rgba(0, 0, 0, .45)); }

/* plaque under the piece */
.gw-aw-cap {
    position: absolute; top: calc(100% + 18px); left: 50%; z-index: 4; width: max(100%, 190px); padding: 9px 12px; border-radius: 12px;
    background: rgba(var(--gw-navy-rgb), .94); border: 1px solid rgba(var(--gw-gold-rgb), .45); box-shadow: 0 10px 26px rgba(0, 0, 0, .4);
    transform: translate(-50%, 6px); opacity: 0; pointer-events: none; transition: opacity 200ms ease, transform 200ms ease;
}
.gw-aw-cap b { display: block; font-size: 13px; line-height: 1.3; font-weight: 600; color: var(--gw-white); }
.gw-aw-cap em { display: block; margin-top: 2px; font-style: normal; font-size: 11.5px; line-height: 1.3; color: var(--gw-gold); }
.gw-aw-item:hover .gw-aw-cap, .gw-aw-item:focus-visible .gw-aw-cap { opacity: 1; transform: translate(-50%, 0); }

/* year chip */
.gw-aw-chip {
    position: absolute; top: -10px; right: -6px; z-index: 3; padding: 3px 9px; border-radius: 999px;
    background: var(--gw-gold-shine); color: var(--gw-navy); font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
    opacity: 0; transform: translateY(4px); transition: opacity 200ms ease, transform 200ms ease;
}
.gw-aw-item:hover .gw-aw-chip, .gw-aw-item:focus-visible .gw-aw-chip { opacity: 1; transform: none; }

/* lights-on entrance (only when JS is running; visible without it) */
.gw-aw-wall.js-aw .gw-aw-item img { opacity: .25; filter: brightness(.4) saturate(.6) drop-shadow(0 18px 16px rgba(0, 0, 0, .45)); transform: translateY(14px); }
.gw-aw.is-lit .gw-aw-wall.js-aw .gw-aw-item img {
    opacity: 1; transform: none; filter: brightness(.9) drop-shadow(0 18px 16px rgba(0, 0, 0, .45));
    animation: gwAwOn .7s ease backwards; animation-delay: calc(var(--i) * 18ms);
}
.gw-aw.is-lit .gw-aw-wall.js-aw .gw-aw-item:hover img, .gw-aw.is-lit .gw-aw-wall.js-aw .gw-aw-item:focus-visible img {
    transform: translateY(-10px) scale(1.04);
    filter: brightness(1.12) saturate(1.1) drop-shadow(0 0 24px rgba(var(--gw-gold-rgb), .5)) drop-shadow(0 24px 20px rgba(0, 0, 0, .5));
}
@keyframes gwAwOn {
    from { opacity: .25; transform: translateY(14px); filter: brightness(.4) saturate(.6) drop-shadow(0 18px 16px rgba(0, 0, 0, .45)); }
    to   { opacity: 1;   transform: none;             filter: brightness(.9) drop-shadow(0 18px 16px rgba(0, 0, 0, .45)); }
}

@keyframes gwAwPulse { 0% { box-shadow: 0 0 0 0 rgba(var(--gw-gold-rgb), .7); } 100% { box-shadow: 0 0 0 10px rgba(var(--gw-gold-rgb), 0); } }

/* ---- CTA ---- */
.gw-aw-end { display: flex; align-items: center; gap: 12px 18px; }
.gw-aw-end p { margin: 0; font-size: 15px; font-weight: 500; text-align: right; color: var(--gw-white); }
.gw-aw-cta {
    display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 11px 26px; border-radius: 999px;
    border: 1px solid var(--gw-gold); background: var(--gw-gold-shine); box-shadow: var(--gw-gold-glow);
    color: var(--gw-navy); font-family: var(--gw-font); font-size: 16px; font-weight: 600; cursor: pointer; transition: transform 200ms ease;
}
.gw-aw-cta:hover { transform: translateY(-2px); }
.gw-aw-cta span { transition: transform 200ms ease; }
.gw-aw-cta:hover span { transform: translateX(4px); }
.gw-aw-cta:focus-visible { outline: 3px solid var(--gw-white); outline-offset: 3px; }

/* ---- tablet ---- */
@media (max-width: 991.98px) {
    .gw-aw-wrap { padding: 60px 24px 52px; }
    .gw-aw { --sc: .4; }
    .gw-aw-track { gap: 36px; padding-inline: 48px; }
}

/* ---- phones: one swipeable shelf ---- */
@media (max-width: 767.98px) {
    .gw-aw { padding-top: 12px; }
    .gw-aw-wrap { padding: 48px 0 44px; border-radius: 22px; }
    .gw-aw-head { padding: 0 20px; }
    .gw-aw-wall { margin: 36px 0 0; }
    .gw-aw-viewport { scroll-snap-type: x mandatory; cursor: auto; }
    .gw-aw-track { justify-content: flex-start; gap: 30px; padding: 30px 28px 78px; }
    .gw-aw-track::before, .gw-aw-track::after { content: none; }
    .gw-aw-item { width: auto; min-width: 118px; }
    .gw-aw-item img { width: auto; max-width: none; height: min(124px, calc(var(--h) * 1px)); max-height: none; } /* never above source pixels */
    /* shelf line under each piece, joined into one continuous shelf */
    .gw-aw-item::before {
        content: ""; position: absolute; left: -15px; right: -15px; bottom: -3px; height: 2px;
        background: linear-gradient(90deg, rgba(var(--gw-gold-rgb), .3), var(--gw-gold), rgba(var(--gw-gold-rgb), .3)); box-shadow: 0 0 14px rgba(var(--gw-gold-rgb), .35);
    }
    .gw-aw-cap { position: static; opacity: 1; transform: none; width: auto; padding: 0; margin-top: 16px; background: none; border: 0; box-shadow: none; }
    .gw-aw-cap b { font-size: 12.5px; }
    .gw-aw-cap em { display: none; }
    .gw-aw-chip { opacity: 1; transform: none; top: -8px; right: 0; }
    .gw-aw-item::after { bottom: 34px; }
    .gw-aw-end { padding: 0 20px; }
    .gw-aw-cta { width: 100%; justify-content: center; }
}

/* touch devices: no hover, so always show the plaque name */
@media (hover: none) and (min-width: 768px) {
    .gw-aw-cap { opacity: 1; transform: translate(-50%, 0); background: none; border: 0; box-shadow: none; padding: 0; }
    .gw-aw-cap em { display: none; }
    .gw-aw-chip { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .gw-aw-item img, .gw-aw-item::after, .gw-aw-cap, .gw-aw-chip, .gw-aw-cta, .gw-aw-cta span, dialog.gw-aw-modal { transition: none; animation: none !important; }
    .gw-aw-wall.js-aw .gw-aw-item img { opacity: 1; transform: none; filter: brightness(.9) drop-shadow(0 18px 16px rgba(0, 0, 0, .45)); }
    .gw-aw-item:hover img, .gw-aw-item:focus-visible img { transform: none; }
}

/* ---- compact layout (21 Nov 2026): heading left, stats right, controls + CTA share one bottom row ---- */
.gw-aw-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 40px; text-align: left; }
.gw-aw-head-text { text-align: left; }
.gw-aw .gw-aw-title { text-align: left; margin-bottom: 8px; font-size: clamp(30px, 3.4vw, 44px); }
.gw-aw .gw-aw-title br { display: none; }
.gw-aw .gw-aw-title span { margin-left: .28em; }
.gw-aw-kicker { margin: 0 0 8px; }
.gw-aw-sub { margin: 0; max-width: 560px; font-size: 15px; }
.gw-aw-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; padding: 0 8px; }
@media (hover: hover) { .gw-aw-hint { display: none; } }
@media (max-width: 991.98px) {
    .gw-aw-head { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .gw-aw-head-text, .gw-aw .gw-aw-title { text-align: center; }
    .gw-aw-sub { margin: 0 auto; }
    .gw-aw .gw-aw-title br { display: block; }
    .gw-aw .gw-aw-title span { margin-left: 0; }
}
@media (max-width: 767.98px) {
    .gw-aw-wrap { padding: 36px 0 28px; }
    .gw-aw-head, .gw-aw-bar { padding: 0 20px; }
    .gw-aw-bar { flex-direction: column; align-items: center; }
    .gw-aw-end { flex-direction: column; width: 100%; }
    .gw-aw-end p { text-align: center; }
    .gw-aw-end .gw-aw-cta { width: 100%; justify-content: center; }
}

/* ---- 21 Nov 2026 (round 3): calm centred header, plaque that is never cut off, ICEF piece, short-screen dialog ---- */
.gw-aw-head { display: block; text-align: center; }
.gw-aw .gw-aw-title { text-align: center; margin: 0 0 8px; font-size: clamp(28px, 3.4vw, 44px); }
.gw-aw .gw-aw-title br { display: none; }
.gw-aw .gw-aw-title span { margin-left: .2em; white-space: nowrap; }
.gw-aw-sub { margin: 0 auto; max-width: 640px; font-size: 15px; }
.gw-aw-bar { justify-content: space-between; }

/* the slider box clips vertically, so the plaque must fit inside the track's bottom padding */
.gw-aw-track { padding-bottom: 62px; }
.gw-aw-track::after { bottom: 60px; }
.gw-aw-track::before { bottom: 28px; }
.gw-aw-cap { top: calc(100% + 10px); padding: 6px 12px; border-radius: 10px; }
.gw-aw-cap b { font-size: 12.5px; line-height: 1.25; }
.gw-aw-cap em { font-size: 11px; line-height: 1.25; }

/* ICEF accreditation piece: same stage, same lights */
.gw-aw-item--icef { cursor: default; text-align: center; }
.gw-aw-item--icef[hidden] { display: none; }
.gw-aw-item--icef #iasBadge { display: block; line-height: 0; }
.gw-aw-item--icef #iasBadge a { display: block; border-radius: 14px; }
.gw-aw-item--icef #iasBadge a:focus-visible { outline: 2px solid var(--gw-gold); outline-offset: 8px; }
.gw-aw-item--icef #iasBadge img {
    display: block; width: 100% !important; max-width: calc(var(--w) * 1px); height: auto; margin: 0 auto;
    filter: brightness(.92) drop-shadow(0 18px 16px rgba(0, 0, 0, .45)); transition: transform 260ms cubic-bezier(.2, .8, .2, 1), filter 260ms ease;
}
.gw-aw-item--icef:hover #iasBadge img, .gw-aw-item--icef:focus-within #iasBadge img {
    transform: translateY(-10px) scale(1.04);
    filter: brightness(1.12) saturate(1.1) drop-shadow(0 0 24px rgba(var(--gw-gold-rgb), .5)) drop-shadow(0 24px 20px rgba(0, 0, 0, .5));
}
.gw-aw-item--icef:hover::after, .gw-aw-item--icef:focus-within::after { opacity: 1; transform: translateX(-50%) scale(1); }
.gw-aw-item--icef:hover .gw-aw-cap, .gw-aw-item--icef:focus-within .gw-aw-cap { opacity: 1; transform: translate(-50%, 0); }
.gw-aw.is-lit .gw-aw-wall.js-aw .gw-aw-item--icef #iasBadge img { animation: gwAwOn .7s ease backwards; animation-delay: calc(var(--i) * 18ms); }

/* dialog never taller than the screen (landscape phones, short laptops) */
@media (max-width: 767.98px) {
    .gw-aw-progress { width: min(260px, 32vw); }
    .gw-aw-controls { gap: 12px; }
    .gw-aw-end { padding-top: 2px; }
    .gw-aw .gw-aw-title span { white-space: normal; margin-left: 0; }
    .gw-aw .gw-aw-title br { display: block; }
    .gw-aw-item--icef { min-width: 130px; }
    .gw-aw-item--icef #iasBadge img { width: auto !important; height: min(118px, calc(var(--h) * 1px)); }
}

/* ---- awards are display only (not clickable) ---- */
.gw-aw-item { cursor: inherit; }
.gw-aw-item--icef a { cursor: pointer; }

/* plaque: always inside the slider box. It sits over the lower part of the shelf glow, never below the track. */
.gw-aw-cap { top: auto; bottom: -50px; }
.gw-aw-track { padding-bottom: 64px; }
@media (max-width: 767.98px) { .gw-aw-cap { bottom: auto; top: calc(100% + 12px); } }

/* ---- smaller pieces (21 Nov 2026): tighter stage, ICEF badge matches the awards ---- */
.gw-aw-track { gap: 34px; padding: 30px 50px 56px; }
.gw-aw-track::after { bottom: 50px; }
.gw-aw-track::before { bottom: 18px; }
.gw-aw-item--icef { --w: 150; --h: 175; }
@media (max-width: 767.98px) {
    .gw-aw-track { gap: 24px; padding: 22px 24px 62px; }
    .gw-aw-item--icef { min-width: 100px; }
}


/* ---- endless line (21 Nov 2026) ---- */
/* bootstrap sets scroll-behavior:smooth on :root, which turns every scrollLeft write into a slow animation; the glide needs instant writes */
.gw-aw-viewport { scroll-behavior: auto; }
.gw-aw-track.is-static .gw-aw-clone { display: none; }
.gw-aw-clone[hidden] { display: none; }

/* ---- smaller again (21 Nov 2026) ---- */
.gw-aw-track { gap: 28px; padding: 24px 44px 50px; }
.gw-aw-track::after { bottom: 44px; }
.gw-aw-track::before { bottom: 14px; }
.gw-aw-item--icef { --w: 120; --h: 140; }
.gw-aw-cap b { font-size: 12px; }
.gw-aw-cap em { font-size: 10.5px; }
.gw-aw-chip { font-size: 10px; padding: 2px 8px; top: -8px; }
@media (max-width: 767.98px) {
    .gw-aw-track { gap: 20px; padding: 18px 22px 56px; }
    .gw-aw-item--icef { min-width: 80px; }
}


/* ---- ICEF piece: fixed, self-contained size so it can never spill into its neighbour (21 Nov 2026) ---- */
.gw-aw-track .gw-aw-item--icef { width: 112px; min-width: 112px; flex: 0 0 112px; }
.gw-aw-track .gw-aw-item--icef #iasBadge, .gw-aw-track .gw-aw-item--icef .gw-aw-clone #iasBadge { display: block; width: 100%; }
.gw-aw-track .gw-aw-item--icef img { width: 100% !important; max-width: 100% !important; height: auto !important; }
@media (max-width: 767.98px) {
    .gw-aw-track .gw-aw-item--icef { width: 92px; min-width: 92px; flex: 0 0 92px; }
}
