/* Bazm-e-Adab registration banner on the homepage.
   Shown only while html has the "has-eb" class (set in index.html's <head>
   until the registration deadline). It adds its own height to --bar-h, so
   every section that already makes room for the header makes room for it too. */

.eb { display: none; }

html.has-eb { --eb-h: 46px; --bar-h: 114px; }
html.has-eb .bar { top: var(--eb-h); height: 68px; }

html.has-eb .eb {
  position: fixed; inset: 0 0 auto 0; z-index: 71; height: var(--eb-h);
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 0 clamp(.75rem, 2.6vw, 2.5rem);
  background: #5A1220; color: #F3E9D2; text-decoration: none; overflow: hidden;
  font: 500 14.5px/1.2 "Archivo", system-ui, sans-serif;
  border-bottom: 1px solid #7A2E3B;
}
.eb::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 30%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,226,160,.16), rgba(255,255,255,0));
  animation: ebSweep 4.5s ease-in-out infinite;
}
.eb__badge {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-size: 11px; letter-spacing: .16em; font-weight: 600; text-transform: uppercase;
  color: #F2C46A; border: 1px solid #D9A441; background: rgba(217,164,65,.14); padding: 4px 11px; border-radius: 999px;
}
.eb__dot { width: 8px; height: 8px; border-radius: 50%; background: #F2C46A; animation: ebPulse 1.8s ease-out infinite; }
.eb__name { font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 17px; white-space: nowrap; }
.eb__meta { color: #D8C8AA; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.eb__cta {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  background: #D9A441; color: #1C1414; font-weight: 600; font-size: 14px;
  padding: 7px 16px; border-radius: 999px; transition: background-color .2s ease;
}
.eb:hover .eb__cta, .eb:focus-visible .eb__cta { background: #F2C46A; }
.eb:focus-visible { outline: 3px solid #F2C46A; outline-offset: -3px; }
.eb__arrow { display: inline-block; animation: ebNudge 1.2s ease-in-out infinite; }

@keyframes ebSweep { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(380%); } }
@keyframes ebPulse { 0% { box-shadow: 0 0 0 0 rgba(217,164,65,.7); } 70% { box-shadow: 0 0 0 9px rgba(217,164,65,0); } 100% { box-shadow: 0 0 0 0 rgba(217,164,65,0); } }
@keyframes ebNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

@media (max-width: 900px) { .eb__meta { display: none; } }
@media (max-width: 560px) {
  html.has-eb { --eb-h: 52px; --bar-h: 120px; }
  html.has-eb .eb { justify-content: space-between; gap: 10px; }
  .eb__badge { padding: 0; border: 0; background: none; font-size: 10px; letter-spacing: .12em; }
  .eb__text { display: grid; gap: 2px; min-width: 0; }
  .eb__name { font-size: 15.5px; }
  .eb__cta { padding: 8px 14px; }
  .eb__cta-long { display: none; }
}
@media (min-width: 561px) { .eb__text { display: flex; align-items: center; gap: 14px; min-width: 0; } }
@media (prefers-reduced-motion: reduce) { .eb::after, .eb__dot, .eb__arrow { animation: none; } }
@media print { .eb { display: none !important; } }
