/* 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; }
.aun-event-empty {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid #dedede;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}
.aun-event-empty h2 { margin: 0 0 10px; font-size: 2.2rem; text-align: center; }
.aun-event-empty p { margin: 0; }
.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: 1rem;
  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.1rem; 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; }
.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: 999px;
  background: #000;
  color: #fff;
  font: inherit;
  font-weight: 900;
  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: 46px; 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; }
.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 { 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; }
.aun-event-detail .aun-event-facts {
  display: block;
  margin-bottom: 30px;
  padding: 4px 20px;
  border: 1px solid #dedede;
  border-radius: 14px;
  background: #fafafa;
}
.aun-event-detail .aun-event-fact {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid #e5e5e5;
}
.aun-event-detail .aun-event-fact:last-child { border-bottom: 0; }
.aun-event-detail .aun-event-fact dt {
  padding: 2px 0 0;
  color: #646970;
  font-size: 1.3rem;
  line-height: 1.8;
  letter-spacing: .04em;
}
.aun-event-detail .aun-event-fact dd {
  overflow-wrap: anywhere;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.8;
}
.aun-event-detail .aun-event-venue-name,
.aun-event-detail .aun-event-venue-address { display: block; }
.aun-event-detail .aun-event-venue-address {
  margin-top: 2px;
  color: #50575e;
  font-size: 1.4rem;
  font-weight: 500;
}
.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; }
.aun-event-form .aun-event-publication__choices { display: flex; flex-wrap: wrap; gap: 14px; }
.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;
}
.aun-event-form [data-status][data-state="success"] {
  padding-left: 54px;
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.aun-event-form [data-status][data-state="success"]::before {
  content: "✓";
  position: absolute;
  top: 17px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
}
.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: 2px;
  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: 26px 20px; }
  .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 { 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-detail .aun-event-facts { padding: 2px 16px; }
  .aun-event-detail .aun-event-fact { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .aun-event-detail .aun-event-fact dt { padding-top: 0; }
  .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; border-radius: 5px; 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; }

.aun-event-current-registration { padding: 20px; margin: 20px 0; border: 1px solid #dce2dd; border-radius: 12px; background: #f5f8f5; overflow-wrap: anywhere; }
.aun-event-current-registration ul { margin: 12px 0 0; padding: 0; list-style: none; }
.aun-event-current-registration li + li { margin-top: 20px; padding-top: 20px; border-top: 1px solid #dce2dd; }
.aun-event-current-registration button:not([hidden]), .aun-event-reapply { display: block; width: fit-content; max-width: 100%; margin-top: 12px; }
.aun-event-current-registration [role="status"]:empty { display: none; }
.aun-event-state-refresh:not([hidden]) { display: inline-block; margin: 0 0 20px; text-underline-offset: 3px; }

/* Current registrations: one row per participant, name in bold, actions as quiet outline buttons. */
.aun-event-current-registration { box-sizing: border-box; padding: 20px 24px; }
.aun-event-current-registration h4 { margin: 0; color: #000; font-size: 1.6rem; font-weight: 900; line-height: 1.5; }
.aun-event-current-registration li { list-style: none; font-size: 1.5rem; line-height: 1.8; }
.aun-event-current-registration li > strong { font-weight: 700; }
.aun-event-current-registration .aun-event-registration-state { font-weight: 400; }
.aun-event-current-registration .aun-event-registration-help { margin: 8px 0 0; color: #50575e; font-size: 1.4rem; }
.aun-event-current-registration .aun-event-cancel-button,
.aun-event-current-registration .aun-event-reapply {
  box-sizing: border-box; align-items: center; justify-content: center; width: fit-content; max-width: 100%; margin-top: 12px;
  min-height: 44px; padding: 8px 24px; border: 1px solid #000; border-radius: 999px;
  background: #fff; color: #000; font: inherit; font-size: 1.4rem; font-weight: 700; line-height: 1.5;
  text-decoration: none; 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:hover:not(:disabled),
.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: 3px solid #00a33e; outline-offset: 3px; }
.aun-event-current-registration .aun-event-self-cancel-status:not(:empty) { margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; background: #fff; color: #1d2327; font-size: 1.4rem; line-height: 1.7; }
.aun-event-state-refresh:not([hidden]) { color: #000; font-weight: 700; }
@media (max-width: 767px) {
  .aun-event-current-registration { padding: 16px; }
  .aun-event-current-registration .aun-event-cancel-button:not([hidden]),
  .aun-event-current-registration .aun-event-reapply { width: 100%; }
}
