/* css/achievers.css - "DSP Achievers" on the public homepage (js/achievers.js): a featured congratulation graphic with supporting cards, and a viewer for all of them.
 * The graphics are the photos in the existing R2 bucket's passer/ folder, shown whole (their names and schools are part of the picture): nothing is cropped, nothing is
 * retyped. The panel sits in the page's own section container, the same edges as the hero. Every box has a fixed ratio from the first paint, so loading never moves the page. */
.ach { --ach-ratio: 940 / 788; background: linear-gradient(160deg, #031c2d 0%, #042940 55%, #053b5c 100%); color: #fff; padding: 72px 5%; }
.ach[hidden] { display: none; }
.ach-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.ach .section-eyebrow { color: var(--accent); }
.ach .section-title { color: #fff; margin-bottom: 8px; }
.ach .section-subtitle { margin: 0; color: rgba(255, 255, 255, 0.78); }
.ach-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }

/* the featured graphic */
.ach-featured { position: relative; min-width: 0; }
.ach-stage { position: relative; width: 100%; aspect-ratio: var(--ach-ratio); overflow: hidden; border-radius: var(--radius-lg); background: #2a1646; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); isolation: isolate; touch-action: pan-y; cursor: zoom-in; }
.ach-fg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.45s ease; user-select: none; -webkit-user-drag: none; }
.ach-fg.is-in { opacity: 1; }
.ach-skeleton { position: absolute; inset: 0; z-index: 2; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 70%) 0 0 / 200% 100%; animation: ach-shimmer 1.4s linear infinite; }
.ach.is-ready .ach-skeleton { display: none; }
@keyframes ach-shimmer { to { background-position: -200% 0; } }
.ach-bar { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.ach-btn { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 1rem; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease; }
.ach-btn:hover { background: rgba(255, 255, 255, 0.18); border-color: var(--accent); }
.ach-btn:disabled { opacity: 0.4; cursor: default; }
.ach-btn[hidden] { display: none; }
.ach-count { flex: 1 1 auto; text-align: center; font-size: 0.9rem; font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.85); }
.ach-pause { margin-left: auto; }

/* the supporting cards and the way to the whole gallery */
.ach-side { min-width: 0; }
.ach-side-title { margin: 0 0 12px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.ach-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ach-card { display: block; width: 100%; padding: 0; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 14px; overflow: hidden; background: #2a1646; aspect-ratio: var(--ach-ratio); cursor: zoom-in; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.ach-card img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ach-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4); }
.ach-all { width: 100%; margin-top: 18px; justify-content: center; }
.ach-stage:focus-visible, .ach-btn:focus-visible, .ach-card:focus-visible, .ach-all:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (min-width: 1000px) {
    .ach { padding-block: 84px; }
    .ach-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; }
    .ach-cards { gap: 14px; }
}
@media (max-width: 560px) {
    .ach { padding-block: 56px; }
    .ach-head { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .ach-fg { transition: none; }
    .ach-skeleton { animation: none; }
    .ach-card, .ach-card:hover { transition: none; transform: none; }
}
