/* Event presentation is loaded directly by EventRoutes; no theme bundle rebuild. */
.aun-event-route .header:not(.is-active) { background: #fff; }
.aun-event-detail-route .main { margin-top: clamp(100px, calc(100px + (100vw - 768px) * .1953125), 150px); }
.aun-event {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 80px;
  color: #000;
  overflow-wrap: anywhere;
}
.aun-event h2, .aun-event h3 { color: #000; text-align: left; line-height: 1.5; font-weight: 900; }
.aun-event-category-filter { margin: 0 0 24px; }
.aun-event-category-filter h2 { margin: 0 0 10px; font-size: 1.5rem; letter-spacing: .04em; }
.aun-event-category-filter ul,
.aun-event-card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.aun-event-category-filter li,
.aun-event-card-categories li { list-style: none; }
.aun-event-category-filter a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid #c8c8c8;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.aun-event-category-filter a:hover { border-color: #087a3a; color: #065d2d; }
.aun-event-category-filter a[aria-current="page"] { border-color: #000; background: #000; color: #fff; }
/* Same light grey empty state as the member pages. */
.aun-event-empty {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px;
  border: 1px solid #d7dce2;
  border-radius: 12px;
  background: #f7f8fa;
  text-align: center;
}
.aun-event-empty h2 { margin: 0; color: #000; font-size: 1.5rem; font-weight: 700; line-height: 1.8; letter-spacing: .06em; text-align: center; }
.aun-event-empty p { margin: 4px 0 0; color: #5f6670; font-size: 1.4rem; line-height: 1.8; letter-spacing: .06em; }
.aun-event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.aun-event-card, .aun-event-detail {
  min-width: 0;
  border: 1px solid #dedede;
  border-radius: 24px;
  background: #fff;
}
.aun-event-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  transition: border-color .2s ease;
}
.aun-event-card:hover { border-color: #b9b9b9; }
.aun-event-card-media-link { display: block; color: inherit; text-decoration: none; }
.aun-event-featured-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #080808 0%, #222 48%, #006e31 100%);
  isolation: isolate;
}
.aun-event-featured-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.aun-event-card:hover .aun-event-featured-image { transform: scale(1.035); }
.aun-event-featured-media::after {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, .38), transparent);
  content: "";
  pointer-events: none;
}
.aun-event-featured-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  font-size: clamp(2.2rem, 3vw, 3.6rem);
  font-weight: 900;
  letter-spacing: .12em;
  text-align: center;
}
.aun-event-featured-label {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .06em;
}
.aun-event-featured-label--members { border-color: #cc0100; background: #cc0100; color: #fff; }
.aun-event-featured-label--non-members { border-color: rgba(0, 0, 0, .16); background: rgba(255, 255, 255, .94); color: #000; }
.aun-event-featured-label--both { border-color: #087a3a; background: #087a3a; color: #fff; }
.aun-event-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; }
.aun-event .aun-event-eyebrow { margin: 0 0 10px; color: #087a3a; font-size: 1.2rem; font-weight: 900; letter-spacing: .14em; }
.aun-event-card-meta, .aun-event-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; }
.aun-event-card .aun-event-eyebrow, .aun-event-detail-meta .aun-event-eyebrow, .aun-event-card-categories { margin: 0; }
.aun-event-card-categories a {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eaf5ee;
  color: #065d2d;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}
.aun-event-card-categories a:hover { background: #d9ecdf; text-decoration: underline; text-underline-offset: 2px; }
/* An application-window chip beside UPCOMING EVENT: grey once closed, outlined green before opening (category chips are filled green). */
.aun-event-card-state {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #f0f0f1;
  color: #1d2327;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
}
.aun-event-card-state--before { border-color: #087a3a; background: #fff; color: #065d2d; }
.aun-event-card h3 { margin: 0 0 14px; font-size: 2.1rem; line-height: 1.4; }
.aun-event-card h3 a { color: inherit; text-decoration: none; }
.aun-event-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.aun-event .aun-event-facts { display: grid; grid-template-columns: 4em minmax(0, 1fr); gap: 10px 16px; margin: 0 0 24px; }
.aun-event .aun-event-facts dt { margin: 0; font-weight: 900; }
.aun-event-facts dd { min-width: 0; margin: 0; }
.aun-event-card .aun-event-facts { gap: 0; margin-bottom: 18px; border-bottom: 1px solid #e5e5e5; font-size: 1.5rem; }
.aun-event-card .aun-event-facts :is(dt, dd) { padding: 9px 0; border-top: 1px solid #e5e5e5; line-height: 1.8; }
.aun-event-card .aun-event-facts dt { padding-right: 12px; color: #555; font-size: 1.35rem; }
.aun-event a.aun-event-button, .aun-event-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid #000;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}
.aun-event-card .aun-event-button { width: 240px; max-width: 100%; margin-top: auto; align-self: center; min-height: 52px; padding: 10px 26px; }
.aun-event a:focus-visible, .aun-event-form :is(input, select, button):focus-visible { outline: 3px solid #00a33e; outline-offset: 4px; }
.aun-event-category-filter a:focus-visible, .aun-event-card a:focus-visible, .aun-event-card-categories a:focus-visible { outline-offset: 1px; }
.aun-event-card .aun-event-card-media-link:focus-visible { outline: none; }
.aun-event-card .aun-event-card-media-link:focus-visible .aun-event-featured-media { outline: 3px solid #00a33e; outline-offset: -3px; }
.aun-event a.aun-event-button:hover, .aun-event-form button:hover { background: #333; color: #fff; }
/* Details only (not applying now): the outline version of the same button. */
.aun-event a.aun-event-button.aun-event-button--secondary { background: #fff; color: #000; }
.aun-event a.aun-event-button.aun-event-button--secondary:hover { background: #f4f4f4; color: #000; }
/* The notice that replaces the form outside the application window sits closer to the facts than the members-only panel. */
.aun-event-detail .aun-event-state-notice { margin-top: 8px; }
.aun-event-state-notice .aun-locked-notice__title { word-break: keep-all; overflow-wrap: anywhere; }
.aun-event-recovery { margin-top: 24px; }
.aun-event-form button:disabled { cursor: wait; }
.aun-event-detail { overflow: hidden; max-width: 960px; margin: 0 auto; box-shadow: 0 16px 46px rgba(0, 0, 0, .08); }
.aun-event-detail-body { padding: 24px 48px 48px; }
.aun-event-detail h2,
.aun-event-detail .aun-event-detail-title { margin: 0 0 28px; font-size: 3.2rem; line-height: 1.35; }
.aun-event-description { margin-bottom: 32px; }
.aun-event-description p { margin: 0 0 1em; }
.aun-event-description :is(img, video, iframe) { max-width: 100%; }
.aun-event-description :is(ul, ol) { padding-left: 1.5em; }
.aun-event-description a { text-decoration: underline; }
/* The detail facts are the member summary table (theme .member-summary-list, as on アカウント情報):
   only the event's spacing, the label weight the generic facts rules would thicken, and the address line. */
.aun-event-detail .aun-event-facts.member-summary-list { display: block; margin: 0 0 30px; }
.aun-event-detail .aun-event-facts .member-summary-list__label { margin: 0; font-weight: 700; }
.aun-event-detail .aun-event-facts .member-summary-list__value { margin: 0; overflow-wrap: anywhere; }
.aun-event-detail .aun-event-venue-name,
.aun-event-detail .aun-event-venue-address { display: block; }
.aun-event-detail .aun-event-venue-name { font-weight: 700; }
.aun-event-detail .aun-event-venue-address { margin-top: 2px; color: #50575e; font-size: 1.3rem; font-weight: 500; }
.aun-event-detail .aun-event-period-part { white-space: nowrap; }
.aun-event-registration h3 { margin: 36px 0 20px; font-size: 2.6rem; }
.aun-event-form { display: grid; gap: 24px; margin: 0; }
.aun-event-form [data-event-payment-fields] { display: grid; gap: 24px; }
.aun-event-form [data-event-payment-fields][hidden] { display: none !important; }
.aun-event-form [data-event-participant-fields] { display: grid; gap: 24px; }
.aun-event-form [data-event-participant-fields][hidden],
.aun-event-form [data-event-retry-note][hidden] { display: none !important; }
.aun-event-form label { display: grid; min-width: 0; gap: 8px; font-weight: 700; }
.aun-event-form :is(input, select) { box-sizing: border-box; min-width: 0; width: 100%; max-width: 100%; padding: 12px 14px; border: 1px solid #aaa; border-radius: 8px; background: #fff; color: #000; font: inherit; font-size: 16px; line-height: 1.5; }
.aun-event-form select { min-height: 50px; }
.aun-event-form input[type="checkbox"] {
  position: static;
  bottom: auto;
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  vertical-align: middle;
  accent-color: #000;
}
.aun-event-form label:has(input[type="checkbox"]) {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 10px;
  width: min(100%, 520px);
  padding: 13px 14px;
  border: 1px solid #d7dce2;
  border-radius: 12px;
  background: #f7f8fa;
  line-height: 1.6;
}
.aun-event-form [data-participants] { display: grid; gap: 24px; }
.aun-event-form fieldset { display: grid; min-width: 0; gap: 18px; margin: 0; padding: 24px; border: 1px solid #ddd; border-radius: 16px; }
.aun-event-form .aun-event-publication { gap: 10px; background: #f7f8fa; }
/* The two ※ notes read as one quieter block under the purpose; the choices stack, one per line. */
.aun-event-form .aun-event-publication__notes { display: grid; gap: 2px; color: #50575e; font-size: .88em; font-weight: 500; line-height: 1.8; }
.aun-event-form .aun-event-publication__notes p { margin: 0; }
.aun-event-form .aun-event-publication__choices { display: grid; justify-items: start; gap: 2px; }
.aun-event-form .aun-event-publication__choices label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.aun-event-form .aun-event-publication__choices input[type="radio"] { width: 20px; height: 20px; margin: 0; padding: 0; appearance: auto; accent-color: #000; }
.aun-event-form legend { padding: 0 8px; font-weight: 900; }
.aun-event-card-input { min-height: 52px; margin-top: 8px; }
.aun-event-card-input .sq-card-message:empty { display: none; }
.aun-event-form [data-total] {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-self: center;
  width: min(100%, 520px);
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #d7dce2;
  border-radius: 12px;
  background: #fff;
  line-height: 1.5;
}
.aun-event-price-summary__calculation {
  padding-right: 18px;
  color: #50575e;
  font-size: 1.4rem;
}
.aun-event-price-summary__total {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding-left: 18px;
  border-left: 1px solid #d7dce2;
  white-space: nowrap;
}
.aun-event-price-summary__label { color: #646970; font-size: 1.3rem; font-weight: 700; }
.aun-event-price-summary__amount { color: #1d2327; font-size: 1.7rem; font-weight: 800; }
.aun-event-form :is([data-status], [data-quote-status]) { margin: 0; padding: 16px; border-radius: 8px; background: #f5f5f5; }
.aun-event-form [data-status] {
  box-sizing: border-box;
  position: relative;
  justify-self: center;
  width: min(100%, 520px);
  padding: 16px 18px;
  border: 1px solid #dbe4ee;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  line-height: 1.8;
}
/* Completed registration: a centred result with mark, title and follow-up line. */
.aun-event-form [data-status][data-state="success"] {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 28px 24px 24px;
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #1d2327;
  text-align: center;
}
.aun-event-form [data-status][data-state="success"]::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
}
.aun-event-result__title { color: #166534; font-size: 1.8rem; font-weight: 800; line-height: 1.6; letter-spacing: .04em; word-break: auto-phrase; text-wrap: balance; }
.aun-event-result__text { display: block; font-size: 1.4rem; font-weight: 500; line-height: 1.9; word-break: auto-phrase; }
/* After a member's payment the refresh link sits under the result as a quiet outline button. */
.aun-event-form .aun-event-state-refresh:not([hidden]) {
  box-sizing: border-box; display: flex; align-items: center; justify-content: center; justify-self: center;
  width: min(100%, 320px); min-height: 44px; margin: 0; padding: 8px 24px;
  border: 1px solid #000; border-radius: 8px; background: #fff; color: #000;
  font-size: 1.4rem; font-weight: 700; line-height: 1.5; text-decoration: none;
}
.aun-event-form .aun-event-state-refresh:hover { background: #f2f2f2; }
.aun-event-form [data-status][data-state="processing"] { border-color: #bfdbfe; background: #eff6ff; color: #1e40af; }
.aun-event-form [data-status][data-state="warning"] { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.aun-event-form [data-status][data-state="error"] { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.aun-event-form [data-quote-status] { box-sizing: border-box; justify-self: center; width: min(100%, 520px); }
.aun-event-form :is([data-status], [data-quote-status]):empty { display: none; }
.aun-event-form [data-event-payment-fields] > button[type="submit"] {
  box-sizing: border-box;
  justify-self: center;
  width: min(100%, 520px);
  min-height: 52px;
  border-color: #df0f3e !important;
  border-radius: 8px;
  background: #df0f3e !important;
  color: #fff !important;
}
.aun-event-form [data-event-payment-fields] > button[type="submit"][hidden] { display: none !important; }
.aun-event-form [data-event-payment-fields] > button[type="submit"].is-loading { opacity: 1; }
.aun-event-submit-spinner {
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, .42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: aun-event-submit-spin .75s linear infinite;
}
.aun-event-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes aun-event-submit-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .aun-event-submit-spinner { animation-duration: 1.5s; } }
.aun-event-form [data-event-payment-fields] > button[type="submit"]:hover:not(:disabled) { border-color: #bd0d35 !important; background: #bd0d35 !important; }
.aun-event-form [data-event-payment-fields] > button[type="submit"]:focus-visible {
  outline: 3px solid #df0f3e;
  outline-offset: 4px;
  box-shadow: 0 0 0 5px rgba(223, 15, 62, .14) !important;
}
.aun-event-back { max-width: 960px; margin: 24px auto; }
.aun-event-back a { display: inline-block; padding: 8px 0; color: #000; font-weight: 900; text-decoration: underline; text-underline-offset: 5px; }
.aun-event-history { max-width: 960px; margin: 0 auto 60px; padding: 24px; background: #fff; border-radius: 16px; overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .aun-event-detail-route .main { margin-top: clamp(75px, calc(75px + (100vw - 375px) * .1243781095), 100px); }
  .aun-event { padding: 0 20px 48px; }
  .aun-event-category-filter { margin-bottom: 20px; }
  .aun-event-category-filter ul { gap: 7px; }
  .aun-event-category-filter a { min-height: 34px; padding: 6px 12px; font-size: 1.25rem; }
  .aun-event-empty { padding: 20px 16px; }
  .aun-event-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .aun-event-card, .aun-event-detail { border-radius: 18px; }
  .aun-event-card-body { padding: 18px 20px 20px; }
  .aun-event-detail-body { padding: 24px; }
  .aun-event-featured-label { right: 12px; bottom: 12px; }
  .aun-event-card h3 { font-size: 2rem; }
  .aun-event-detail h2,
  .aun-event-detail .aun-event-detail-title { font-size: 2.6rem; }
  .aun-event-registration h3 { font-size: 2.2rem; }
  .aun-event .aun-event-facts { column-gap: 12px; font-size: 1.5rem; }
  .aun-event-form fieldset { padding: 18px; }
  .aun-event-form button { width: 100%; }
}

/* Inside the member dashboard, event cards follow the mypage button shape and minimum label size. */
.member-dashboard .aun-event a.aun-event-button { min-height: 52px; font-size: 1.5rem; font-weight: 700; letter-spacing: .12em; }
.member-dashboard .aun-event .aun-event-eyebrow,
.member-dashboard .aun-event-featured-label { font-size: 1.3rem; }

/* Notices reuse the member empty state; inside a member panel the panel already draws the frame. */
.aun-event > .aun-event-notice { max-width: 960px; margin: 0 auto; }
.member-panel__body > .aun-event > .aun-event-notice { border: 0; border-radius: 0; padding: 0; }
/* Event detail inside the member panel keeps its card frame so the centred column reads as one block. */
.member-panel__body > .aun-event > .aun-event-back { margin-bottom: 0; }
/* Payment parts that have nothing to show stay out of the way. */
.aun-event-card-input:empty,
.aun-event-price-summary:empty { display: none; }
.aun-event-form button[type="submit"].is-unavailable,
.aun-event-form button[type="submit"].is-unavailable:hover { border-color: #d0d0d0 !important; background: #e9e9e9 !important; color: #8a8a8a !important; cursor: not-allowed; }
/* The back link closes the detail card instead of floating under it. */
.aun-event-detail-body > .aun-event-back { max-width: none; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid #eee; }
/* Manual waitlist matches the registration form width. */
.aun-event-registration + .aun-event-registration { box-sizing: border-box; width: min(100%, 520px); margin: 32px auto 0; padding: 20px 24px; border-radius: 12px; background: #f6f7f7; }
.aun-event-registration + .aun-event-registration h3 { margin: 0 0 8px; font-size: 1.8rem; }
.aun-event-registration + .aun-event-registration p { margin: 0 0 8px; color: #50575e; font-size: 1.4rem; line-height: 1.8; }

/* Current applications: the same member summary table, a row per participant (the name as the label, the state and
   its action as the value), with the refresh link under it. Cancelling is the destructive outline; applying again the plain one. */
.aun-event-current-registration { margin: 16px 0 24px; overflow-wrap: anywhere; }
.aun-event-current-registration h4 { margin: 0 0 10px; color: #000; font-size: 1.5rem; font-weight: 800; line-height: 1.5; }
.aun-event-current-registration__list { margin: 0; padding: 0; list-style: none; }
.aun-event-current-registration__list > li { list-style: none; }
.aun-event-current-registration__value { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.aun-event-current-registration .aun-event-registration-state { flex: 1 1 14em; min-width: 0; }
.aun-event-current-registration .aun-event-registration-help { flex: 1 1 100%; margin: 0; color: #50575e; font-size: 1.3rem; line-height: 1.7; }
.aun-event-current-registration [role="status"]:empty { display: none; }
.aun-event-current-registration .aun-event-self-cancel-status:not(:empty) { flex: 1 1 100%; margin: 0; padding: 10px 14px; border-radius: 8px; background: #f7f8fa; color: #1d2327; font-size: 1.4rem; line-height: 1.7; }
.aun-event-current-registration .aun-event-cancel-button,
.aun-event-current-registration .aun-event-reapply {
  box-sizing: border-box; flex: 0 0 auto; align-items: center; justify-content: center; width: fit-content; max-width: 100%; margin: 0;
  min-height: 40px; padding: 6px 16px; border: 1px solid #000; border-radius: 8px;
  background: #fff; color: #000; font: inherit; font-size: 1.4rem; font-weight: 700; line-height: 1.5;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.aun-event-current-registration .aun-event-cancel-button:not([hidden]),
.aun-event-current-registration .aun-event-reapply { display: flex; }
.aun-event-current-registration .aun-event-cancel-button[hidden] { display: none; }
.aun-event-current-registration .aun-event-cancel-button { border-color: #a0001c; color: #a0001c; }
.aun-event-current-registration .aun-event-cancel-button:hover:not(:disabled) { background: #fff5f6; }
.aun-event-current-registration .aun-event-reapply:hover { background: #f2f2f2; }
.aun-event-current-registration .aun-event-cancel-button:disabled { border-color: #c3c4c7; color: #8a8a8a; cursor: wait; }
.aun-event-current-registration :is(.aun-event-cancel-button, .aun-event-reapply):focus-visible { outline: 2px solid #4d90fe; outline-offset: 2px; }

/* 「最新の申込状況を確認」 reloads the page: a small underlined link with a ↻ mark, under the table when there is one. */
.aun-event-state-refresh:not([hidden]) { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 20px; color: #000; font-size: 1.4rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.aun-event-state-refresh::before { content: "↻"; content: "↻" / ""; font-size: 1.5rem; text-decoration: none; }
.aun-event-state-refresh:hover { color: #444; }
.aun-event-state-refresh:focus-visible { outline: 2px solid #4d90fe; outline-offset: 2px; }
.aun-event-current-registration .aun-event-state-refresh:not([hidden]) { margin: 12px 0 0; }
@media (max-width: 767px) {
  .aun-event-current-registration .aun-event-cancel-button:not([hidden]),
  .aun-event-current-registration .aun-event-reapply { flex: 1 1 100%; width: 100%; min-height: 44px; }
}

/* Each waitlist entry reads as its own record, and withdrawing it is a visible secondary button instead of bare bold text. */
.aun-event-registration .aun-waitlist-status { margin: 12px 0 16px; padding: 14px 16px; border: 1px solid #d7dce2; border-radius: 10px; background: #fff; }
.aun-event-registration .aun-waitlist-status p { margin: 0; }
.aun-event-registration .aun-waitlist-status .aun-waitlist-status__summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: #000; font-size: 1.4rem; line-height: 1.8; }
.aun-waitlist-status__state { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border: 1px solid #c3c8d0; border-radius: 999px; background: #f6f7f7; font-size: 1.3rem; font-weight: 700; line-height: 1.5; }
.aun-waitlist-status__details { margin-top: 6px; color: #50575e; font-size: 1.3rem; }
.aun-waitlist-status__details summary { display: inline-flex; align-items: center; min-height: 32px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.aun-waitlist-status__details summary:focus-visible { outline: 3px solid #2271b1; outline-offset: 2px; }
.aun-event-registration .aun-waitlist-status .aun-waitlist-status__details p { margin-top: 2px; }
.aun-waitlist-status__id { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.aun-waitlist-status form { margin-top: 12px; }
.aun-waitlist-cancel { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 8px 18px; border: 1px solid #a0001c; border-radius: 8px; background: #fff; color: #a0001c; font: inherit; font-size: 1.4rem; font-weight: 700; line-height: 1.5; cursor: pointer; }
.aun-waitlist-cancel:hover { background: #fff5f6; }
.aun-waitlist-cancel:focus-visible { outline: 3px solid #2271b1; outline-offset: 2px; }
.aun-event-registration .aun-waitlist-status .aun-waitlist-cancel-note { margin-top: 6px; color: #50575e; font-size: 1.3rem; }
/* On phones the waitlist sits three boxes deep, so its insets shrink to keep the button label on one line. */
@media (max-width: 600px) {
  .aun-event-registration + .aun-event-registration { padding: 16px 14px; }
  .aun-event-registration .aun-waitlist-status { padding: 12px; }
  .aun-waitlist-cancel { padding: 8px 10px; font-size: 1.3rem; }
}

/* Member application states on event cards and the family waitlist form. Display only. */
.aun-event-card .member-event-states { margin: 0 0 16px; }
.aun-event-states-notice { margin: 0 0 20px; }
.aun-waitlist-all-registered { margin: 0; padding: 14px 16px; border: 1px solid #d7dce2; border-radius: 10px; background: #fff; color: #000; font-size: 1.4rem; font-weight: 700; line-height: 1.8; }

/* Member price (2026-10-28). 参加費 lists 会員 then ビジター, the same in the detail table and on list cards. */
.aun-event-prices { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.aun-event-prices__row { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.aun-event-prices__label { flex: 0 0 4.5em; color: #50575e; font-size: .9em; font-weight: 700; }
.aun-event-prices__value { min-width: 0; }
/* The quote names the member price on its own line above 「4,500円 × 1名」. */
.aun-event-price-summary__price-name { display: block; color: #087a3a; font-size: 1.2rem; font-weight: 700; line-height: 1.4; }
/* Logged out on an event with a member price: members are told to sign in before paying the visitor price. */
.aun-event-member-price-note { box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 24px; padding: 16px 20px; border: 1px solid #cfe3d6; border-radius: 12px; background: #f3f9f5; line-height: 1.8; }
.aun-event-member-price-note__text { flex: 1 1 280px; margin: 0; font-size: 1.5rem; word-break: auto-phrase; }
.aun-event-member-price-note__price { white-space: nowrap; font-weight: 700; }
.aun-event-member-price-note__action { flex: 0 0 auto; padding: 8px 18px; border: 1px solid #087a3a; border-radius: 999px; background: #fff; color: #087a3a; font-weight: 700; text-decoration: none; }
.aun-event-member-price-note__action:hover { background: #087a3a; color: #fff; }
.aun-event-member-price-note__action:focus-visible { outline: 2px solid #087a3a; outline-offset: 2px; }
@media (max-width: 767px) {
  .aun-event-member-price-note { padding: 14px 16px; }
  .aun-event-member-price-note__action { width: 100%; box-sizing: border-box; text-align: center; }
}
