/* ============ EVENTS INDEX (AllIn Japan All Events.dc.html) ============ */

.event-index-header {
  background: var(--color-hero-bg);
  padding: 50px clamp(20px, 5vw, 40px);
}

.event-index-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.event-index-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-top: 14px;
}

.event-index-title-row h1 {
  font-weight: 900;
  font-size: clamp(26px, 4vw, 34px);
  margin: 0;
  color: var(--color-cream-bright);
}

.event-index-eyebrow {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.event-index-lede {
  font-size: 13px;
  color: var(--gray-60);
  margin: 6px 0 0;
  line-height: 1.7;
}

.event-index-filterbar {
  position: sticky;
  top: 69px; /* just below the sticky .site-header */
  z-index: 15;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 22px clamp(20px, 5vw, 40px);
}

@media (max-width: 640px) {
  /* Stacked with the sticky .site-header, a sticky filter bar eats too much
     of a phone's vertical space — static lets it scroll away normally. */
  .event-index-filterbar {
    position: static;
    top: auto;
  }
}

.event-index-filterbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 26px;
}

.event-index-filter-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.event-index-filter-label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--gray-35);
}

.event-index-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-index-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  background: #fff;
  color: var(--gray-50);
  border: 1.5px solid var(--color-border);
}

.event-index-chip-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.event-index-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(0.8 0.005 90);
}

.event-index-chip-count {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  opacity: 0.7;
}

.event-index-chip.is-on.event-index-chip--local {
  background: oklch(0.965 0.025 27);
  color: var(--color-accent);
  border-color: oklch(0.86 0.07 27);
}

.event-index-chip.is-on.event-index-chip--national {
  background: oklch(0.965 0.035 75);
  color: oklch(0.47 0.11 65);
  border-color: oklch(0.86 0.08 75);
}

.event-index-chip.is-on.event-index-chip--international {
  background: oklch(0.96 0.025 250);
  color: oklch(0.45 0.11 250);
  border-color: oklch(0.85 0.06 250);
}

.event-index-chip.is-on .event-index-chip-dot {
  background: currentColor;
}

.event-index-select {
  font-family: inherit;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid var(--color-border-strong);
  background: #fff;
  color: var(--near-black-30);
}

.event-index-reset {
  margin-left: auto;
  align-self: flex-end;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gray-45);
  text-decoration: underline;
  padding: 9px 0;
}

.event-index-list {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.event-index-empty {
  background: #fff;
  border: 1px dashed var(--color-border-strong);
  border-radius: 12px;
  padding: 44px;
  text-align: center;
  color: var(--gray-50);
  font-size: 14px;
  line-height: 1.8;
}

.event-index-month {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-index-month-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 2px solid var(--color-chrome);
  padding-bottom: 8px;
}

.event-index-month-en {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
}

.event-index-month-ja {
  font-weight: 700;
  font-size: 14px;
}

.event-index-month-count {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--gray-50);
}

.event-index-row {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--gray-50);
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.event-index-row:hover {
  box-shadow: 0 2px 12px oklch(0.18 0 0 / 0.08);
}

/* Wraps just the date chip + main content in a link to the event's own
   detail page — .event-index-row-side (buy-in, or the Past view's champion)
   sits outside this anchor as a sibling, since an HTML <a> can't contain a
   nested <a> (the champion's own link to results_url/external_url). Carries
   the flex/gap the whole row used to have when the row itself was the <a>. */
.event-index-row-link {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 22px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.event-index-row--local {
  border-left-color: var(--color-accent);
}

.event-index-row--national {
  border-left-color: oklch(0.55 0.13 70);
}

.event-index-row--international {
  border-left-color: oklch(0.56 0.13 250);
}

.event-index-row-datechip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-hero-bg);
  color: #fff;
  border-radius: 9px;
  padding: 10px 12px;
  min-width: 92px;
  flex-shrink: 0;
}

.event-index-row-daterange {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.1;
  white-space: nowrap;
}

.event-index-row-monthyear {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gray-65);
}

.event-index-row-main {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.event-index-row-title-ja {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
}

.event-index-row-title-en {
  font-size: 12.5px;
  color: var(--gray-50);
  line-height: 1.5;
}

.event-index-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--gray-40);
  padding-top: 2px;
}

.event-index-row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
  min-width: 132px;
}

.event-index-row-side-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-55);
}

.event-index-row-buyin {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  color: var(--color-accent);
}

.event-index-row-guarantee {
  font-size: 11.5px;
  color: var(--gray-50);
}

.event-index-row-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  padding-top: 4px;
}

/* Past view's champion line, in place of the buy-in figure
   (.event-index-row-side is shared by both) — linked when results_url/
   external_url is usable (#champion_url), plain text otherwise. */
.event-index-row-champion {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.2;
  color: var(--color-accent);
  text-align: right;
}

a.event-index-row-champion:hover {
  text-decoration: underline;
}

.event-index-tournaments-note {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-40);
  line-height: 1.7;
}

.event-index-tournaments-note > span {
  flex: 1 1 320px;
}

.event-index-tournaments-link {
  font-weight: 700;
  font-size: 13px;
  padding: 11px 18px;
  border-radius: 6px;
  border: 1.5px solid var(--color-accent);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .event-index-row {
    padding: 14px;
    gap: 12px;
  }

  .event-index-row-link {
    gap: 12px;
  }
}

@media (max-width: 720px) {
  .event-index-row-side {
    align-items: flex-start;
    min-width: 0;
  }
}

