/* 出展・メディア掲載 (events.html). The hero (.page-hero) comes from news.css. */
.ev-body { max-width: 820px; margin: 52px auto 80px; padding: 0 24px; }
.ev-section + .ev-section { margin-top: 56px; }

/* heading: black label, title, dotted rule (same as the top page's section headings) */
.ev-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 22px; font-weight: 900; margin-bottom: 20px;
}
.ev-title::after { content: ''; flex: 1 1 40px; border-top: 3px dotted var(--ink); }
.ev-label {
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 900;
  padding: 4px 12px; border-radius: 999px; letter-spacing: .04em;
}

.ev-list { display: flex; flex-direction: column; gap: 20px; }

/* exhibitions: one white panel, one line per event (date | event | booth | link) */
.ev-rows {
  list-style: none; margin: 0; padding: 6px 24px;
  background: var(--white); border: var(--line); border-radius: var(--radius);
}
.ev-row {
  display: grid; grid-template-columns: 104px 1fr auto auto; align-items: center; gap: 6px 18px;
  padding: 16px 0;
}
.ev-row + .ev-row { border-top: 3px dotted var(--ink); }
.ev-row time { font-size: 14px; font-weight: 900; color: var(--pink); }
.ev-name { font-size: 16px; font-weight: 900; line-height: 1.5; }
.ev-booth { font-size: 13px; font-weight: 900; color: var(--text-mid); white-space: nowrap; }
.ev-go .ev-link { padding: 4px 12px; font-size: 12px; white-space: nowrap; }
/* media rows: date | article title (link) | outlet */
.ev-row-media { grid-template-columns: 104px 1fr auto; }
.ev-article { color: var(--ink); text-decoration: none; }
.ev-article span { color: var(--text-light); font-size: 14px; }
.ev-article:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.ev-card {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--white); border: var(--line); border-radius: var(--radius);
  padding: 22px 24px; color: var(--text); text-decoration: none;
}
.ev-main { flex: 1; min-width: 0; }
.ev-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 6px; }
.ev-meta time { font-size: 13px; font-weight: 900; color: var(--pink); }
.ev-chip {
  font-size: 12px; font-weight: 900; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px; padding: 1px 10px; background: var(--white);
}
.ev-card h3 { font-size: 19px; font-weight: 900; margin: 2px 0 8px; line-height: 1.5; }
.ev-card p { font-size: 14px; color: var(--text-mid); line-height: 1.85; margin: 0; }

.ev-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ev-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 900; color: var(--ink); text-decoration: none;
  background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 5px 14px;
  box-shadow: 0 3px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.ev-link.is-in { background: var(--accent); }
.ev-link:hover { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); text-decoration: none; }

/* photo: portrait, at the right */
.ev-photo {
  flex: 0 0 168px; display: block; border: var(--line); border-radius: 12px; overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--bg);
}
.ev-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* media: the whole card is the link */
.ev-media { display: block; transition: transform .15s, box-shadow .15s; }
.ev-media:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.ev-ext { font-size: 15px; color: var(--text-light); }

.ev-contact { margin-top: 48px; text-align: center; font-size: 14px; color: var(--text-mid); }
.ev-contact a { color: var(--pink); font-weight: 900; }

@media (max-width: 640px) {
  .ev-body { padding: 0 16px; margin-top: 32px; margin-bottom: 56px; }
  .ev-title { font-size: 19px; }
  .ev-card { flex-direction: column-reverse; padding: 18px; gap: 14px; }
  .ev-rows { padding: 4px 16px; }
  .ev-row { grid-template-columns: 1fr auto; grid-template-areas: 'date go' 'name name' 'booth booth'; gap: 4px 12px; padding: 14px 0; }
  .ev-row time { grid-area: date; }
  .ev-name { grid-area: name; font-size: 15px; }
  .ev-booth { grid-area: booth; white-space: normal; }
  .ev-go { grid-area: go; }
  .ev-row-media { grid-template-columns: 1fr; grid-template-areas: 'date' 'name' 'booth'; }
  .ev-photo { flex: none; width: 100%; aspect-ratio: 4 / 3; }
  .ev-card h3 { font-size: 17px; }
}
