.book-author-event{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-bottom:10px}
.book-author-event .author{margin:0}
.book-author-event-link{display:inline-flex;flex-wrap:wrap;gap:1px 7px;align-items:baseline;max-width:100%;padding:5px 8px;border:1px solid #454546;border-radius:6px;background:#303031;color:#fff;text-decoration:none;font-size:.875rem;font-weight:650;line-height:1.3}
.book-author-event-link time{font-size:.8125rem;font-weight:500}
.book-author-event-link:hover span{text-decoration:underline}
.book-author-event-link[hidden]{display:none}
.book-author-event-link .event-venue::before{content:'· ';color:currentColor}
.wanted-page .wanted-grid .book-author-event-link {display:flex;align-items:baseline;width:fit-content;margin-top:10px;background:#eef3eb;border-color:#bfcfbd;color:#254a3a}
.wanted-page .wanted-grid .book-author-event-link span {color:inherit;font-size:inherit}
.wanted-page .wanted-grid .book-author-event-link[hidden]{display:none}

/* Keep the event action compact and give the jacket more room on the mobile edition sheet. */
@media (max-width: 899px) {
  .edition-page .ed-page .book-layout:has(.book-author-event):has(.book-cover:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) clamp(96px, 34vw, 174px);
  }
  .edition-page .ed-page .book-layout:has(.book-author-event) .book-cover-box .book-cover:not([hidden]) {
    width: calc(100% - 14px);
    margin: 10px 0;
    aspect-ratio: auto;
  }
  .edition-page .ed-book-identity .book-author-event {
    display: grid;
    justify-items: start;
    gap: 4px;
    margin-bottom: 7px;
  }
  .edition-page .ed-book-identity .book-author-event-link:not([hidden]) {
    box-sizing: border-box;
    width: fit-content;
    min-height: 44px;
    display: grid;
    align-content: center;
    gap: 1px;
    padding: 4px 7px;
    font-size: .8125rem;
    line-height: 1.25;
  }
  .edition-page .ed-book-identity .book-author-event-link time {
    font-size: .8125rem;
  }
  .edition-page .ed-book-identity .book-author-event-link .event-venue::before {
    content: none;
  }
}

.book-author-event-link .event-mobile-meta {display:none}
@media (max-width: 899px) {
  .edition-page .ed-book-identity .book-author-event-link:has(.event-mobile-meta):not([hidden]) {
    gap: 3px;
    padding: 6px 8px;
    line-height: 1.3;
  }
  .edition-page .ed-book-identity .book-author-event-link:has(.event-mobile-meta) > :is(time,.event-venue) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }
  .edition-page .ed-book-identity .book-author-event-link .event-mobile-meta {
    display: block;
    font-size: .75rem;
    font-weight: 500;
  }
}
