/* USAEBO recommended events. Load after the existing site styles.
   Frame: 1180px; desktop anchor lane: 180px + 24px = 204px.
   The site supplies typography, header, footer and anchor observer behaviour. */
.re-shell {
  width: calc(100% - 2 * var(--usaebo-site-gutter, 40px));
  max-width: 1180px;
  margin-inline: auto;
  box-sizing: border-box;
}
.re-page {
  --re-navy: #0a1733;
  --re-gold: #9c7b16;
  --re-tint: #f3f6fb;
  --re-ink: #263449;
  --re-line: #dce3ed;
  --re-anchor-offset: calc(var(--header-height, 80px) + var(--usaebo-admin-offset, 0px) + 24px);
  color: var(--re-navy);
  background: #fff;
  font-family: inherit;
  padding-bottom: 56px;
  min-width: 0;
}
.re-page *, .re-page *::before, .re-page *::after { box-sizing: border-box; }
.re-page :is(h1, h2, p, dl, dt, dd, figure) { margin: 0; }
.re-page :is(p, dd) { overflow-wrap: break-word; }
.re-page .re-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 26px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--re-ink);
}
.re-page .re-breadcrumb a {
  color: inherit;
  text-decoration: none;
  border: 0;
}
.re-page .re-breadcrumb a:hover { color: var(--re-navy); text-decoration-color: currentColor; }
.re-page .re-head { width: 100%; max-width: none; padding: 28px 0 32px; }
.re-page .re-head h1 {
  margin: 0 0 16px;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.025em;
  color: var(--re-navy);
}
.re-page .re-head > p {
  max-width: none;
  font-size: 17px;
  line-height: 1.85;
  color: var(--re-ink);
}
.re-page .re-toc {
  display: grid;
  gap: 6px;
  padding: 12px;
  margin: 0 0 24px;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  box-shadow: 0 4px 18px #0b183508;
  background: #fff;
  color: var(--re-navy);
}
.re-page .re-toc a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 11px 12px;
  border: 0;
  border-radius: 5px;
  color: var(--re-ink);
  background: transparent;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  text-decoration: none;
  overflow-wrap: break-word;
  transition: color .15s ease, background-color .15s ease;
}
.re-page .re-toc a:hover { color: var(--re-navy); background: var(--re-tint); }
.re-page .re-toc a[aria-current] {
  color: var(--re-navy);
  font-weight: 600;
  background: #fbf4df;
  box-shadow: inset 3px 0 var(--re-gold);
}
.re-page .re-list { border-top: 1px solid var(--re-line); }
.re-page .re-event {
  display: grid;
  grid-template-columns: minmax(180px, 27%) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--re-line);
  scroll-margin-top: var(--re-anchor-offset);
  min-width: 0;
}
.re-page .re-event-media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: var(--re-tint);
}
.re-page .re-event-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: contain;
  padding: 14px;
}
.re-page .re-event-copy { min-width: 0; }
.re-page .re-event h2 {
  margin: 0 0 5px;
  color: var(--re-navy);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.015em;
  overflow-wrap: break-word;
}
.re-page .re-event-direction {
  margin: 0 0 15px;
  color: #80630f;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}
.re-page .re-event-intro {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--re-ink);
}
.re-page .re-event-details { display: grid; gap: 9px; margin: 0 0 20px; }
.re-page .re-event-details > div { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 12px; }
.re-page .re-event-details dt {
  color: var(--re-navy);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.85;
}
.re-page .re-event-details dd { color: var(--re-ink); font-size: 15px; line-height: 1.85; }
.re-page .re-event-note {
  margin: 0 0 20px;
  border-left: 2px solid var(--re-gold);
  padding: 11px 14px;
  color: var(--re-ink);
  background: var(--re-tint);
  font-size: 14px;
  line-height: 1.8;
}
.re-page .re-event-note strong { color: var(--re-navy); font-weight: 600; }
.re-page .re-event-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--re-navy);
  border-radius: 3px;
  background: var(--re-navy);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.re-page .re-external { font-size: 19px; font-weight: 400; line-height: 1; flex: 0 0 auto; }
.re-page .re-event-link:hover { background: #20345d; border-color: #20345d; color: #fff; }
.re-page .re-event-link:active { background: #050d1e; border-color: #050d1e; }
.re-page a:focus-visible { outline: 3px solid var(--re-gold); outline-offset: 4px; }
.re-page .re-page-note { margin: 24px 0 0; font-size: 14px; line-height: 1.85; color: var(--re-ink); }
.re-page[lang="en"] .re-event-details > div { grid-template-columns: 85px minmax(0, 1fr); }
.re-page[lang="zh-CN"] :is(.re-head > p,.re-event-intro,.re-event-details dd) { text-align: justify; text-align-last: start; text-wrap: pretty; }
.re-page[lang="en"] :is(.re-head > p,.re-event-intro,.re-event-details dd) { text-align: start; text-wrap: pretty; }
@media (min-width: 1200px) {
  .re-page.has-page-anchors { padding-left: 204px; }
  .re-page .re-toc {
    position: fixed;
    z-index: 12;
    top: calc(var(--header-height, 80px) + 44px);
    left: max(var(--usaebo-site-gutter, 40px), calc((100% - 1180px) / 2));
    width: 180px;
    max-height: calc(100dvh - var(--header-height, 80px) - 80px);
    overflow: auto;
    margin: 0;
  }
}
@media (max-width: 1199px) {
  .re-page.has-page-anchors { padding-left: 0; }
  .re-page .re-toc { position: static; display: flex; flex-wrap: nowrap; gap: 6px; width: 100%; max-height: none; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding: 6px; }
  .re-page .re-toc a { flex: 0 0 auto; justify-content: center; text-align: center; white-space: nowrap; min-height: 42px; padding: 8px 12px; }
}
@media (max-width: 1100px) {
  .re-page .re-event { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .re-page .re-event-media { max-width: 400px; aspect-ratio: 16 / 9; margin-inline: auto; }
}
@media (max-width: 767px) {
  .re-shell { width: calc(100% - 40px); }
  .re-page { padding-bottom: 36px; }
  .re-page .re-breadcrumb { padding-top: 20px; font-size: 13px; }
  .re-page .re-head { padding: 22px 0 26px; }
  .re-page .re-head h1 { font-size: 32px; margin-bottom: 14px; }
  .re-page .re-head > p { font-size: 16px; }
  .re-page .re-toc { gap: 6px; margin-bottom: 26px; }
  .re-page .re-toc a { min-height: 48px; padding: 10px 4px; font-size: 14px; }
  .re-page .re-event { grid-template-columns: 1fr; gap: 21px; padding: 26px 0; }
  .re-page .re-event-media { aspect-ratio: 16 / 9; }
  .re-page .re-event-media img { padding: 14px 20px; }
  .re-page .re-event h2 { font-size: 26px; }
  .re-page .re-event-direction { margin-bottom: 13px; }
  .re-page .re-event-intro { margin-bottom: 14px; }
  .re-page .re-event-details { gap: 10px; margin-bottom: 18px; }
  .re-page .re-event-details > div { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .re-page .re-event-link { width: 100%; padding-inline: 16px; }
  .re-page .re-page-note { margin-top: 20px; }
  .re-page[lang="en"] .re-event-details > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .re-page a { transition: none; }
}
