/* "Kembali ke Elim" (event.html) and its teaser on the home page. Uses the tokens of style.css. */

.nav a[aria-current="page"] { border-color: var(--ink); background: var(--white); }

/* ---- hero -------------------------------------------------------------- */

.ev-hero {
  background:
    radial-gradient(circle at 1px 1px, rgba(23, 20, 18, .14) 1.2px, transparent 1.6px) 0 0 / 18px 18px,
    linear-gradient(180deg, var(--yellow), var(--paper) 86%);
  border-bottom: var(--outline);
}

.ev-hero-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(32px, 6vw, 72px) clamp(16px, 5vw, 56px);
}

.ev-hero h1 { font-size: clamp(52px, 8vw, 96px); }
.ev-hero .eyebrow, .ev-hero .lead { color: var(--ink); }
.ev-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.ev-postcard {
  position: relative;
  margin: 0;
  padding: 12px 12px 16px;
  border: var(--outline);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(1.5deg);
}

.ev-postcard > img:not(.ev-piya) {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.ev-postcard figcaption { margin: 12px 4px 0; font-size: 15px; }
.ev-postcard figcaption b { display: block; font: 900 14px/1.3 var(--display); }
.ev-postcard q { color: var(--ink-soft); }

.ev-stamp {
  position: absolute;
  z-index: 1;
  top: -22px;
  right: -8px;
  padding: 8px 14px;
  border: var(--outline);
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font: 900 14px/1.1 var(--display);
  text-align: center;
  transform: rotate(7deg);
}

.ev-piya {
  position: absolute;
  right: 14px;
  bottom: -26px;
  width: 72px;
  height: auto;
  filter: drop-shadow(0 5px 0 rgba(23, 20, 18, .22));
  animation: hop 2.4s ease-in-out infinite;
}

/* ---- steps ------------------------------------------------------------- */

.ev-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.ev-steps li {
  position: relative;
  padding: 22px 18px 16px;
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  counter-increment: step;
}

.ev-steps li::before {
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: var(--outline);
  border-radius: 50%;
  background: var(--yellow);
  font: 900 17px/1 var(--display);
}

.ev-steps h3 { margin: 4px 0 4px; font-size: 19px; }
.band .ev-steps p { margin: 0; font-size: 15px; }
.band .ev-steps p b { color: var(--ink); }

/* ---- job picker -------------------------------------------------------- */

.ev-jobs {
  position: sticky;
  top: 72px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 30px;
  padding: 8px;
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--paper-deep);
}

.ev-job {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 4px 6px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: 900 15px/1.1 var(--display);
  cursor: pointer;
}

.ev-job img { width: 32px; height: 40px; object-fit: contain; flex: none; }
.ev-job:hover { background: var(--sky-pale); }
.ev-job[aria-pressed="true"] { background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); }
.ev-job:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ---- route ------------------------------------------------------------- */

.ev-route {
  position: relative;
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ev-route::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 38px;
  border-left: 4px dashed var(--ink);
}

.ev-stop { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 18px; align-items: start; }
.ev-stop[data-tone="yellow"] { --tone: var(--yellow); }
.ev-stop[data-tone="green"] { --tone: #a4e38f; }
.ev-stop[data-tone="sky"] { --tone: var(--sky); }
.ev-stop[data-tone="pink"] { --tone: #f9a9cd; }
.ev-stop[data-tone="orange"] { --tone: #ffb066; }

.ev-level {
  position: sticky;
  top: 170px;
  display: grid;
  place-content: center;
  width: 80px;
  height: 80px;
  border: var(--outline);
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--display);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.ev-level small { font-size: 13px; }
.ev-level span { font-size: 28px; }

.ev-ticket {
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
}

.ev-ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 18px;
  background: var(--tone);
  border-bottom: var(--outline);
}

.ev-ticket h3 { margin: 0; font-size: 21px; line-height: 1.15; }
.band .ev-ticket-head p { margin: 4px 0 0; color: var(--ink); font-size: 15px; }

.ev-cegel {
  flex: none;
  padding: 5px 11px;
  border: var(--outline);
  border-radius: 10px;
  background: var(--white);
  font: 900 15px/1.2 var(--display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transform: rotate(2deg);
}

.ev-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 14px 18px 6px;
  list-style: none;
}

.ev-item { display: flex; align-items: center; gap: 10px; min-width: 0; }

.ev-icon-box {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper-deep);
}

.ev-icon {
  display: block;
  width: 32px;
  height: 32px;
  background: url("event-icons.webp") no-repeat;
  image-rendering: pixelated;
}

.ev-item-text { min-width: 0; line-height: 1.25; }
.ev-item-text b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.ev-item-text small { color: var(--ink-soft); font-size: 12.5px; font-weight: 600; }

.band .ev-slots { margin: 0; padding: 4px 18px 12px; color: var(--ink-soft); font-size: 13px; text-align: right; }
.ev-noscript { font-weight: 700; }

/* ---- rules ------------------------------------------------------------- */

.ev-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 32px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.ev-rules h3 { margin: 0 0 4px; color: var(--yellow); font-size: 18px; }
.band .ev-rules p { margin: 0; font-size: 15px; }
.band .ev-closing { margin: 6px 0 20px; font-size: 17px; }

/* ---- home page teaser -------------------------------------------------- */

.ev-teaser { background: var(--yellow); }
.ev-teaser-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.band.ev-teaser p { color: var(--ink); }
.ev-teaser .eyebrow { color: var(--ink); }
.ev-teaser .section-lead { margin-bottom: 20px; }

.ev-teaser-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.ev-teaser-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  border: var(--outline);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 600;
}

.ev-teaser-list b { flex: none; min-width: 74px; font: 900 18px/1.1 var(--display); }

/* ---- small screens ----------------------------------------------------- */

@media (max-width: 860px) {
  .ev-hero-grid, .ev-teaser-grid { grid-template-columns: minmax(0, 1fr); }
  .ev-steps, .ev-rules { grid-template-columns: minmax(0, 1fr); }
  .ev-steps { gap: 26px; }
  .ev-jobs { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ev-level { position: relative; top: 0; }
}

@media (max-width: 560px) {
  .ev-route::before { left: 26px; }
  .ev-stop { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
  .ev-level { width: 56px; height: 56px; }
  .ev-level small { font-size: 11px; }
  .ev-level span { font-size: 19px; }
  .ev-ticket-head { flex-direction: column; gap: 8px; padding: 12px 14px; }
  .ev-items { grid-template-columns: minmax(0, 1fr); padding: 12px 14px 4px; }
  .band .ev-slots { padding: 4px 14px 10px; }
  .ev-job { flex-direction: column; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .ev-piya { animation: none; }
}
