/* Pita event (public/js/event-bar.js): info event mendatang, menempel tepat di bawah navbar di semua halaman publik.
   Tinggi pita masuk ke --nav-h (lihat style.css), jadi halaman dan elemen sticky otomatis memberi ruang. */
@property --evb { syntax: "<length>"; inherits: true; initial-value: 0px; }
:root { --evb-h: 48px; }
@media (max-width: 700px) { :root { --evb-h: 50px; } }
/* saat pita aktif, --evb (dan karenanya --nav-h) bertambah setinggi pita: semua padding atas halaman dan elemen "sticky" di bawah header ikut turun */
html.has-evbar { --evb: var(--evb-h); }
html.evb-anim { transition: --evb .4s var(--ease); }

.evb { position: fixed; left: 0; right: 0; top: 0; z-index: 97; height: 0; --z: 1; }
html[data-huruf="1"] .evb { --z: 1.1; }
html[data-huruf="2"] .evb { --z: 1.22; }
.evb-bar { position: absolute; left: 0; right: 0; top: calc(var(--nav-base) / var(--z)); height: var(--evb-h); background: var(--em-d); color: #fff; clip-path: inset(0 0 100% 0); }
.evb.open .evb-bar { clip-path: inset(0); }
html[data-tema="dark"] .evb-bar { background: var(--em-dd); box-shadow: inset 0 -1px 0 var(--line); }
.evb-in { height: 100%; display: flex; align-items: center; gap: 8px; }
.evb.multi .evb-ctl { margin-right: -8px; }

.evb-stage { position: relative; flex: 1 1 auto; min-width: 0; height: 100%; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.evb-s { position: absolute; inset: 0; display: flex; align-items: center; gap: 14px; min-width: 0; color: #fff; border-radius: 8px;
  opacity: 0; visibility: hidden; transform: translateX(calc(var(--d, 1) * 18px));
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s; }
.evb-s.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.evb-s.off { transform: translateX(calc(var(--d, 1) * -18px)); }
.evb-s:focus-visible, .evb-b:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: -3px; border-radius: 8px; }
.evb-b:focus-visible { border-radius: 50%; }

.evb-st { flex: none; padding: 1px 10px; border-radius: 999px; border: 1px solid var(--gold-soft); color: var(--gold-soft); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; line-height: 1.5; white-space: nowrap; }
.evb-st.off { border-color: rgba(255,255,255,.6); color: #fff; }
.evb-t { flex: 0 1 auto; min-width: 0; font-family: var(--f-display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evb-s:hover .evb-t { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.evb-m { flex: none; display: inline-flex; gap: 0; white-space: nowrap; font-size: 15px; color: rgba(255,255,255,.92); }
.evb-m > span + span::before, .evb-v::before { content: "\00b7"; margin: 0 .55em; opacity: .7; }
.evb-rel { font-weight: 700; color: var(--gold-soft); }
.evb-rel.live { color: #fff; background: rgba(255,255,255,.14); border-radius: 999px; padding: 0 9px; }
.evb-tm i { font-style: normal; }
.evb-v { flex: 0 6 auto; min-width: 9ch; font-size: 15px; color: rgba(255,255,255,.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evb-v::before { margin-left: 0; }
.evb-cta { flex: none; margin-left: auto; display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--em-d); font-size: 14.5px; font-weight: 700; white-space: nowrap; transition: background .25s; }
.evb-s:hover .evb-cta { background: var(--em-l); }

.evb-ctl { display: none; flex: none; align-items: center; }
.evb.multi .evb-ctl { display: flex; }
.evb-n { min-width: 42px; text-align: center; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.92); }
.evb-b { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; transition: background .25s; }
.evb-b:hover { background: rgba(255,255,255,.14); }

@media (max-width: 1100px) { .evb-v { display: none; } }

/* HP: dua baris (judul, lalu waktu); tombol ajakan hanya muncul bila event tunggal, selain itu ruang dipakai panah */
@media (max-width: 700px) {
  .evb-in { padding-inline: 14px 6px; gap: 2px; }
  .evb-s { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "t t cta" "st m cta"; column-gap: 0; align-content: center; align-items: center; }
  .evb-st { grid-area: st; justify-self: start; margin-right: 8px; margin-top: 1px; font-size: 11.5px; line-height: 1.35; padding: 0 8px; }
  .evb-t { grid-area: t; font-size: 15px; line-height: 1.25; }
  .evb-m { grid-area: m; font-size: 13px; line-height: 1.25; overflow: hidden; }
  .evb-rel ~ .evb-dd { display: none; }
  .evb-v, .evb-tm i { display: none; }
  .evb-cta { grid-area: cta; margin-left: 10px; min-height: 32px; padding: 0 13px; font-size: 14px; }
  .evb.multi .evb-cta { display: none; }
  .evb-n { min-width: 36px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .evb-s, .evb-cta, .evb-b { transition: none !important; }
  .evb-s, .evb-s.off { transform: none; }
}

html.evb-anim .evb-bar { transition: clip-path .4s var(--ease); }
@media (prefers-reduced-motion: reduce) { html.evb-anim, html.evb-anim .evb-bar { transition: none; } }
