/* site.css — consolidation additions on top of the brand style.css (spec C-001).
   Big overhanging logo + image footer logo. Keeps the existing brand look otherwise. */

/* Let the oversized logo spill past the fixed nav's bottom border */
#main-nav,
#main-nav .container {
  overflow: visible;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  height: 80px;
  position: relative;
  overflow: visible;
  z-index: 1001;
  text-decoration: none;
}

/* The logo is intentionally larger than the 80px nav and dips below its border */
.site-logo {
  height: 104px;
  width: auto;
  display: block;
  position: relative;
  z-index: 1001;
  transform: translateY(12px);
  
  transition: filter 0.3s ease, transform 0.3s ease;
}
.logo-link:hover .site-logo {
  
}

/* Footer uses the logo image, not the old text "DC416" */
.footer-logo-img {
  height: 54px;
  width: auto;
  display: block;
  margin-bottom: 12px;
  
}

/* Tablet / phone: scale the overhanging logo down but keep the overhang */
@media screen and (max-width: 768px) {
  .site-logo {
    height: 78px;
    transform: translateY(10px);
  }
}
@media screen and (max-width: 480px) {
  .site-logo {
    height: 62px;
    transform: translateY(8px);
  }
}

/* ============================================================
   History archive + event detail — brand look, no Tailwind.
   Reuses the brand palette (:root vars from style.css).
   ============================================================ */
.archive-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.archive-intro { max-width: 760px; }
.archive-stats { display: flex; flex-wrap: wrap; gap: 40px; border-top: 1px solid rgba(205,92,230,.2); padding-top: 24px; margin-top: 32px; }
.archive-stat .num { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 2.4rem; color: var(--light); }
.archive-stat .num span { color: var(--primary); }
.archive-stat .lbl { font-family: monospace; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(240,240,240,.5); margin-top: 4px; }

.year-nav { position: sticky; top: 80px; z-index: 40; background: rgb(10, 10, 10); border-top: 1px solid rgba(205,92,230,.15); border-bottom: 1px solid rgba(205,92,230,.15); }
.year-nav ul { display: flex; gap: 4px; list-style: none; overflow-x: auto; padding: 10px 24px; margin: 0 auto; max-width: 1100px; font-family: monospace; font-size: .78rem; white-space: nowrap; align-items: center; }
.year-nav .jump { color: var(--primary); text-transform: uppercase; letter-spacing: .15em; opacity: .7; margin-right: 12px; }
.year-nav a { display: block; padding: 6px 12px; border: 1px solid transparent; border-radius: 4px; color: rgba(240,240,240,.6); transition: all .25s ease; }
.year-nav a:hover, .year-nav a.is-active { color: var(--light); border-color: rgba(205,92,230,.5); background: rgba(205,92,230,.08); }
.year-nav a .n { color: rgba(240,240,240,.3); margin-left: 6px; }

.archive-year { scroll-margin-top: 130px; padding-top: 48px; }
.archive-year:first-child { padding-top: 0; }
.archive-year > h2 { font-family: monospace; font-weight: 700; font-size: 2.6rem; color: var(--light); letter-spacing: -.01em; margin: 0; }
.archive-year > h2 .caret { color: var(--primary); margin-right: 12px; }
.archive-year > h2 .blink { color: var(--primary); animation: cursor-blink 1s steps(1) infinite; }
.archive-year .year-note { font-family: monospace; font-size: .72rem; color: rgba(240,240,240,.4); text-transform: uppercase; letter-spacing: .15em; margin: 8px 0 0 34px; }
@keyframes cursor-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } }

.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 24px; }
.archive-card { display: block; border: 1px solid rgba(240,240,240,.1); border-radius: 8px; overflow: hidden; background: rgba(18,18,18,.6); transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; color: inherit; text-decoration: none; }
.archive-card:hover { border-color: var(--primary);  transform: translateY(-2px); }
.archive-card .thumb { position: relative; aspect-ratio: 16/9; background: var(--darker); overflow: hidden; }
.archive-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.archive-card .thumb.logo img { object-fit: contain; opacity: .18; padding: 24px; }
.archive-card .thumb .datebadge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.8); border-radius: 4px; padding: 4px 8px; text-align: center; }
.archive-card .thumb .datebadge .m { font-family: monospace; font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: var(--primary); display: block; }
.archive-card .thumb .datebadge .d { font-family: 'Orbitron', sans-serif; font-weight: 700; color: var(--light); font-size: 1rem; }
.archive-card .thumb .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); }
.archive-card .thumb .play span { width: 48px; height: 48px; border-radius: 50%; background: #ff0000; display: flex; align-items: center; justify-content: center; color: #fff;  }
.archive-card .cardbody { padding: 18px 20px 22px; }
.archive-card h3 { font-family: 'Orbitron', sans-serif; font-size: 1.1rem; line-height: 1.3; color: var(--light); margin: 10px 0 0; transition: color .2s ease; }
.archive-card:hover h3 { color: var(--primary); }
.archive-card .meta { font-family: monospace; font-size: .74rem; color: rgba(240,240,240,.5); margin-top: 10px; }
.archive-card .snippet { font-size: .86rem; color: rgba(240,240,240,.7); margin-top: 10px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.chip { display: inline-flex; align-items: center; gap: 5px; font-family: monospace; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(240,240,240,.14); color: rgba(240,240,240,.6); background: rgba(255,255,255,.04); }
.chip-primary { color: #0a0a0a; background: var(--primary); border: none; font-weight: 700; }
.chip-yt { color: #fff; background: rgba(255,0,0,.15); border: 1px solid rgba(255,0,0,.45); }
.chip-yt svg { display: inline-block; vertical-align: middle; }
.chip-teal { color: var(--accent); background: rgba(69,150,152,.12); border: 1px solid rgba(69,150,152,.4); }

/* Event detail */
.event-detail { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.event-detail .crumbs { font-family: monospace; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--primary); }
.event-detail .crumbs a { color: var(--primary); }
.event-detail .crumbs a:hover { text-decoration: underline; }
.event-detail h1 { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); color: var(--light); line-height: 1.08; margin: 20px 0 0; }
.event-detail .ev-meta { font-family: monospace; font-size: .9rem; color: rgba(240,240,240,.65); margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.event-detail .ev-meta .sep { color: var(--primary); }
.event-detail .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.event-detail .speakers { margin-top: 28px; }
.event-detail .speakers .lbl, .event-detail .photos .lbl, .event-detail .sources .lbl { font-family: monospace; font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--primary); }
.event-detail .speakers li { list-style: none; margin-top: 10px; }
.event-detail .speakers .sp-name { font-family: 'Orbitron', sans-serif; font-size: 1.05rem; color: var(--light); }
.event-detail .speakers .sp-bio { font-size: .88rem; color: rgba(240,240,240,.6); margin-top: 4px; }
.event-detail .videowrap { margin-top: 40px; border: 1px solid rgba(205,92,230,.3); border-radius: 8px; overflow: hidden; }
.event-detail .videowrap .ar { aspect-ratio: 16/9; background: #000; }
.event-detail .videowrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.event-detail .ev-body { margin-top: 40px; font-size: 1rem; line-height: 1.7; color: rgba(240,240,240,.85); }
.event-detail .ev-body h2, .event-detail .ev-body h3 { font-family: 'Orbitron', sans-serif; color: var(--light); margin-top: 1.6em; }
.event-detail .ev-body a { color: var(--primary); }
.event-detail .ev-body p { margin: 1em 0; }
.event-detail .ev-body ul, .event-detail .ev-body ol { margin: 1em 0 1em 1.4em; }
.event-detail .photos { margin-top: 40px; }
.event-detail .photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.event-detail .photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.event-detail .sources { margin-top: 56px; border-top: 1px solid rgba(205,92,230,.15); padding-top: 28px; }
.event-detail .sources ul { list-style: none; margin-top: 14px; }
.event-detail .sources li { font-family: monospace; font-size: .86rem; margin-top: 8px; }
.event-detail .sources .skind { color: rgba(240,240,240,.4); margin-right: 8px; }
.event-detail .sources a { color: var(--primary); word-break: break-all; }
.archive-backlink { max-width: 1100px; margin: 0 auto; padding: 0 24px 80px; }
.archive-backlink a { font-family: monospace; font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(240,240,240,.6); }
.archive-backlink a:hover { color: var(--primary); }

/* Year headers read as a terminal prompt — keep them left-aligned even if the
   brand stylesheet centres section <h2>s. */
.archive-year > h2 { text-align: left; }

/* ============================================================
   Event photo galleries + lightbox
   ============================================================ */
.gallery { margin-top: 44px; }
.gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gallery .lbl { font-family: monospace; font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--primary); }
.gallery-count { font-family: monospace; font-size: .72rem; color: rgba(240,240,240,.5); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.gallery-item { display: block; position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--darker); border: 1px solid rgba(240,240,240,.08); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease, opacity .25s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.lightbox { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; background: rgb(5, 5, 8); }
.lightbox.open { display: flex; }
.lightbox .lb-fig { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.lightbox .lb-fig img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 6px;  }
.lightbox .lb-count { margin-top: 12px; font-family: monospace; font-size: .8rem; color: rgba(240,240,240,.6); }
.lightbox button { position: absolute; background: rgba(255,255,255,.06); border: 1px solid rgba(205,92,230,.35); color: #f0f0f0; cursor: pointer; border-radius: 999px; line-height: 1; transition: background .2s ease; }
.lightbox button:hover { background: rgba(205,92,230,.25); }
.lightbox .lb-close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 28px; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 34px; }
.lightbox .lb-prev { left: 20px; }
.lightbox .lb-next { right: 20px; }
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .lightbox .lb-prev, .lightbox .lb-next { width: 40px; height: 40px; font-size: 26px; }
  .lightbox .lb-prev { left: 8px; } .lightbox .lb-next { right: 8px; }
}

/* ============================================================
   Event photo showcase (top of every event page)
   ============================================================ */
.showcase-wrap { max-width: 1160px; margin: 0 auto; padding: 108px 24px 0; position: relative; }
.showcase { display: grid; gap: 8px; height: clamp(300px, 46vw, 540px); border-radius: 10px; overflow: hidden; }
.showcase.show-1 { grid-template-columns: 1fr; }
.showcase.show-2 { grid-template-columns: 2fr 1fr; }
.showcase.show-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.showcase.show-4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.showcase.show-4 .sc-item:nth-child(4) { grid-column: 2 / 4; }
.showcase.show-5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.showcase .sc-main { grid-row: 1 / -1; }
.showcase .sc-item { position: relative; display: block; overflow: hidden; background: var(--darker); min-height: 0; }
.showcase .sc-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease, filter .3s ease; }
.showcase .sc-item:hover img { transform: scale(1.04); filter: brightness(1.08); }
.showcase .sc-item:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.showcase .sc-hidden { display: none; }
.showcase .sc-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(8,8,10,.62); color: #f0f0f0; font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; }
.showcase-wrap .sc-all { position: absolute; right: 40px; bottom: 16px; z-index: 2; font-family: monospace; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #f0f0f0; background: rgb(10, 10, 10); border: 1px solid rgba(205,92,230,.55); border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: background .2s ease, box-shadow .2s ease; }
.showcase-wrap .sc-all:hover { background: rgba(205,92,230,.25);  }
.showcase-wrap + .event-detail { padding-top: 36px !important; }
@media (max-width: 720px) {
  .showcase-wrap { padding: 96px 12px 0; }
  .showcase { height: auto; grid-template-columns: repeat(4, 1fr) !important; grid-template-rows: auto !important; }
  .showcase .sc-main { grid-column: 1 / -1 !important; grid-row: auto; aspect-ratio: 4 / 3; }
  .showcase .sc-item:not(.sc-main) { aspect-ratio: 1; grid-column: auto !important; }
  .showcase-wrap .sc-all { right: 22px; bottom: auto; top: 108px; }
}
