/* NCSEA Summit 2026 announcement bar, meeting request popup and toast.
   Linked from every page by scripts/lib/event-bar.mjs until the exhibit hall closes on October 29, 2026.
   Form fields reuse the contact page's classes from /contact.css. */

.event-bar {
  background: #2e7d71;
  color: #ffffff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.event-bar-inner {
  position: relative;
  width: min(1240px, calc(100% - 48px));
  min-height: 40px;
  margin-inline: auto;
  padding: 8px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 14px;
  row-gap: 2px;
  text-align: center;
}

.event-bar-short { display: none; }
.event-bar-pin { margin-right: 6px; font-size: 1.1em; }

.event-bar-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
}

.event-bar-close {
  position: absolute;
  top: 50%;
  right: -8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  opacity: .82;
  cursor: pointer;
  transform: translateY(-50%);
}

.event-bar-close:hover { opacity: 1; background: rgba(255, 255, 255, .14); }
.event-bar-close svg { width: 16px; height: 16px; }
.event-bar-link:focus-visible,
.event-bar-close:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }

/* Same backdrop and panel as the site search popup in navigation.css. */
.meeting-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  align-items: start;
  justify-items: center;
  overflow-y: auto;
  padding: clamp(60px, 10vh, 112px) 24px 48px;
  background: rgba(24, 29, 27, .58);
  backdrop-filter: blur(3px);
}

.meeting-modal[hidden] { display: none; }
body.meeting-modal-open { overflow: hidden; }

.meeting-dialog {
  position: relative;
  width: min(620px, 100%);
  padding: 34px 34px 32px;
  border: 1px solid #dddddd;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .24);
  color: #111111;
}

.meeting-dialog h2 {
  margin: 0;
  padding-right: 40px;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -.05em;
  line-height: 1.12;
}

.meeting-dialog > p {
  margin: 12px 0 0;
  color: #5f5f5f;
  font-size: 15px;
  line-height: 1.75;
}

.meeting-dialog .contact-form { margin-top: 26px; }

.meeting-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #111111;
  cursor: pointer;
}

.meeting-close:hover { background: #f1f1f1; }
.meeting-close span { margin-top: -4px; font-size: 34px; font-weight: 250; line-height: 1; }

.site-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 110;
  max-width: min(380px, calc(100% - 32px));
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid #dddddd;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .14);
  color: #111111;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.site-toast[hidden] { display: none; }
.site-toast svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; color: #2e7d71; }

@media (max-width: 620px) {
  .event-bar-inner { width: calc(100% - 32px); padding-inline: 0 32px; justify-content: flex-start; text-align: left; }
  .event-bar-close { right: -6px; }
  .event-bar-full { display: none; }
  .event-bar-short { display: inline; }
  .meeting-modal { padding: 18px 12px; }
  .meeting-dialog { padding: 26px 20px 24px; border-radius: 12px; }
  .meeting-close { top: 12px; right: 12px; }
  .site-toast { top: 16px; right: 16px; }
}

/* Interest choices: toggle buttons in the contact form's field style. */
.meeting-interest-options { display: flex; flex-wrap: wrap; gap: 8px; }
.meeting-interest-options button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d7d7d2;
  border-radius: 3px;
  background: #fbfbf8;
  color: #222222;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.meeting-interest-options button:hover { border-color: #a9a9a3; }
.meeting-interest-options button[aria-pressed="true"] { border-color: #2e7d71; background: #eaf4f0; box-shadow: inset 0 0 0 1px #2e7d71; color: #1c4f46; }
.meeting-interest-options button:focus-visible { outline: 2px solid #2e7d71; outline-offset: 2px; }
