/* ==========================================================================
   Year-by-year event pages (Honorees, Photo Gallery, Videos, News).
   Loaded after styles.css and honorees.css; uses their colour variables.
   ========================================================================== */

[hidden] { display: none !important; }

/* ---------- sub-navigation under the hero ---------- */
.ev-subnav { background: var(--paper); border-bottom: 1px solid var(--line); }
.ev-subnav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ev-tabs { display: flex; gap: clamp(18px, 3.4vw, 40px); overflow-x: auto; scrollbar-width: none; }
.ev-tabs::-webkit-scrollbar { display: none; }
.ev-tabs a {
  position: relative; white-space: nowrap; padding: 18px 2px; font-size: 14.5px; font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
}
.ev-tabs a:hover { color: var(--green); }
.ev-tabs a.current { color: var(--ink-green); }
.ev-tabs a.current::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--gold); }
.ev-tabs a:focus-visible { outline: 2px solid var(--gold-dim); outline-offset: -2px; border-radius: 2px; }
.ev-year-pick select {
  appearance: none; -webkit-appearance: none; font: 600 14px 'Inter', sans-serif; color: var(--ink-green);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23052a17' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid #cfcab6; border-radius: 4px; padding: 9px 34px 9px 14px; cursor: pointer;
}
.ev-year-pick select:focus-visible { outline: 2px solid var(--gold-dim); outline-offset: 2px; }

/* ---------- common ---------- */
.ev-section { padding: 48px 0 96px; }
.ev-narrow { max-width: 820px; }
.hon-section-shell { padding: 56px 0 96px; }
.ev-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.ev-count { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.ev-toolbar-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ev-ico { width: 13px; height: 13px; margin-right: 6px; vertical-align: -1px; }
.ev-empty { text-align: center; padding: 72px 20px; border: 1px dashed #cfcab6; border-radius: 8px; background: #fff; }
.ev-empty h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 28px; color: var(--ink-green); margin: 0 0 10px; }
.ev-empty p { margin: 0 auto; max-width: 46ch; color: var(--ink-soft); }
.ev-offline { background: #fbf1e3; border: 1px solid #e9cfa2; color: #6b4a12; padding: 12px 16px; border-radius: 6px; max-width: 1100px; margin: 24px auto 0; font-size: 14px; }
.ev-chip {
  font: 600 12px 'Inter', sans-serif; letter-spacing: 0.02em; background: #fff; color: var(--ink-green);
  border: 1px solid #cfcab6; border-radius: 999px; padding: 5px 12px; cursor: pointer;
}
.ev-chip:hover { border-color: var(--green); background: var(--paper-2); }
.ev-chip:focus-visible { outline: 2px solid var(--gold-dim); outline-offset: 2px; }
.ev-admin-tools { margin: -40px 0 80px; padding: 20px 24px; border: 1px dashed #cfcab6; border-radius: 8px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: #fff; }
.ev-admin-tools .hf-hint { flex-basis: 100%; margin: 4px 0 0; }
.ev-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 400; background: var(--ink-green); color: #fbf9f2; padding: 12px 22px; border-radius: 999px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: opacity .5s ease; }
.ev-toast.out { opacity: 0; }

/* ---------- photo grid ---------- */
.ev-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ev-cell { position: relative; }
.ev-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; border: 0; cursor: zoom-in;
  background: #e8e4d4; border-radius: 4px; overflow: hidden;
}
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .3s; }
.ev-thumb:hover img, .ev-thumb:focus-visible img { transform: scale(1.04); }
.ev-thumb:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ev-thumb-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; text-align: left; font-size: 13px; line-height: 1.4;
  color: #fff; background: linear-gradient(180deg, transparent, rgba(5, 20, 12, .78)); opacity: 0; transition: opacity .25s;
}
.ev-thumb:hover .ev-thumb-cap, .ev-thumb:focus-visible .ev-thumb-cap { opacity: 1; }
.ev-cell-tools { position: absolute; top: 8px; right: 8px; }

/* ---------- lightbox / slideshow ---------- */
dialog.lb {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh;
  background: #0a0e0b; color: #f1eee3;
}
dialog.lb[open] { display: flex; flex-direction: column; }
dialog.lb::backdrop { background: #000; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; flex: 0 0 auto; }
.lb-count { margin: 0; font: 12px 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: #bdb8a6; }
.lb-ctrls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.lb-btn, .lb-speed {
  font: 600 13px 'Inter', sans-serif; color: #f1eee3; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px; padding: 8px 14px; cursor: pointer;
}
.lb-speed { padding: 8px 10px; }
.lb-speed option { color: #111; }
.lb-btn:hover, .lb-speed:hover { background: rgba(255,255,255,.16); }
.lb-btn[aria-pressed="true"] { background: var(--gold); color: #11200f; border-color: var(--gold); }
.lb button:focus-visible, .lb select:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.lb-stage { position: relative; flex: 1 1 auto; min-height: 0; touch-action: pan-y; }
.lb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s ease; user-select: none; -webkit-user-drag: none; }
.lb-img.on { opacity: 1; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 72px; border: 0; cursor: pointer;
  font: 300 44px/1 'Fraunces', serif; color: #fff; background: rgba(0,0,0,.34); border-radius: 4px; z-index: 2;
}
.lb-nav:hover { background: rgba(0,0,0,.6); }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-prog { height: 3px; background: rgba(255,255,255,.12); flex: 0 0 auto; opacity: 0; transition: opacity .3s; }
.lb.playing .lb-prog { opacity: 1; }
.lb-prog span { display: block; height: 100%; width: 0; background: var(--gold); }
.lb-foot { flex: 0 0 auto; padding: 8px 16px 14px; }
.lb-cap { margin: 0 0 8px; text-align: center; font-family: 'Fraunces', serif; font-size: 17px; color: #efe9d8; min-height: 0; }
.lb-strip { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px; scrollbar-width: thin; }
.lb-t { flex: 0 0 auto; width: 84px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden; background: #222; cursor: pointer; opacity: .6; }
.lb-t img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-t:hover { opacity: .95; }
.lb-t.on { opacity: 1; border-color: var(--gold); }
dialog.lb:fullscreen .lb-foot, dialog.lb:-webkit-full-screen .lb-foot { display: none; }
@media (max-width: 640px) {
  .lb-nav { width: 40px; height: 60px; font-size: 36px; }
  .lb-t { width: 64px; height: 44px; }
  .lb-btn, .lb-speed { padding: 8px 10px; font-size: 12.5px; }
  .lb-speed { max-width: 108px; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-img, .ev-thumb img, .ev-thumb-cap { transition: none !important; }
}

/* ---------- videos ---------- */
.ev-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 40px 28px; }
.ev-vcard { display: flex; flex-direction: column; gap: 14px; }
.ev-player { position: relative; aspect-ratio: 16 / 9; background: #0e1a12; border-radius: 6px; overflow: hidden; }
.ev-player video, .ev-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.ev-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: linear-gradient(135deg, #0b3d22, #052a17); }
.ev-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%;
  background: rgba(251, 249, 242, .92); display: grid; place-items: center; color: var(--ink-green); transition: transform .2s, background .2s;
}
.ev-play .ev-ico { width: 24px; height: 24px; margin: 0 0 0 4px; }
.ev-facade:hover .ev-play, .ev-facade:focus-visible .ev-play { transform: translate(-50%, -50%) scale(1.08); background: var(--gold-bright); }
.ev-facade:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.ev-prov { position: absolute; left: 12px; bottom: 10px; font: 11px 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: #e7e0d5; background: rgba(0,0,0,.45); padding: 3px 8px; border-radius: 3px; }
.ev-vmeta h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 22px; line-height: 1.25; color: var(--ink-green); margin: 0 0 6px; }
.ev-vmeta p { margin: 0 0 10px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

/* ---------- news ---------- */
.ev-news { list-style: none; margin: 0; padding: 0; }
.ev-news-item { padding: 28px 0; border-top: 1px solid var(--line); }
.ev-news-item:first-child { border-top: 0; padding-top: 0; }
.ev-news-meta { margin: 0 0 8px; font: 12px 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dim); }
.ev-news-item h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; margin: 0 0 10px; }
.ev-news-item h3 a { color: var(--ink-green); text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; transition: background-size .3s; }
.ev-news-item h3 a:hover, .ev-news-item h3 a:focus-visible { background-size: 100% 2px; }
.ev-news-sum { margin: 0 0 10px; color: var(--ink-soft); line-height: 1.65; }
.ev-news-link { margin: 0 0 8px; font-size: 14px; }
.ev-news-link a { color: var(--green); font-weight: 600; text-decoration: none; }

/* ---------- staff bar and dialogs ---------- */
.ev-staff { border-top: 1px solid var(--line); background: var(--paper-2); }
.ev-staff-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-top: 14px; padding-bottom: 14px; }
.ev-staff-link { background: none; border: 0; padding: 0; cursor: pointer; font: 500 13px 'Inter', sans-serif; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.ev-staff-link:hover { color: var(--green); }
.ev-staff-who { font: 600 13px 'Inter', sans-serif; color: var(--ink-green); }
.ev-staff-note { font-size: 13px; color: var(--ink-soft); }
.ev-dialog { max-width: min(640px, 94vw); }
.ev-files { list-style: none; margin: 12px 0 0; padding: 0; max-height: 220px; overflow-y: auto; }
.ev-file { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.ev-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-file-state { color: var(--ink-soft); text-align: right; flex: 0 1 55%; }
.ev-file.done .ev-file-state { color: var(--green); font-weight: 600; }
.ev-file.bad .ev-file-state { color: #9c3b28; }
.ev-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 14px; }
.ev-compare figure { margin: 0; }
.ev-compare canvas { width: 100%; height: auto; display: block; border-radius: 4px; background: #eee; }
.ev-compare figcaption { margin-top: 4px; font: 11px 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }
.ev-edit-img { width: 100%; max-height: 220px; object-fit: contain; background: #eee; border-radius: 4px; margin-bottom: 16px; }
.ev-seg { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; font-size: 14.5px; }
.ev-seg label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ev-progress { margin-top: 6px; }
.ev-progress-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.ev-progress-bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s ease; }

@media (max-width: 720px) {
  .ev-subnav-inner { flex-direction: column-reverse; align-items: stretch; gap: 0; }
  .ev-year-pick { align-self: flex-end; padding: 12px 0 0; }
  .ev-tabs { justify-content: space-between; gap: 10px; }
  .ev-tabs a { padding: 15px 2px; font-size: 14px; }
  .ev-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .ev-compare { grid-template-columns: 1fr; }
  .ev-thumb-cap { display: none; }
}
@media (hover: none) { .ev-thumb-cap { display: none; } }
