/* OmniFlyer wind-down notice */
.of-farewell-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 32, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 20px;
  animation: ofFadeIn 200ms ease-out;
}

@keyframes ofFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.of-farewell-card {
  background: #FAFAF8;
  color: #1A1A1A;
  max-width: 560px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 40px 44px 32px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: ofSlideUp 260ms ease-out;
}

@keyframes ofSlideUp {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.of-farewell-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  color: #1A1A1A;
}

.of-farewell-card p {
  font-size: 16px;
  margin: 0 0 14px;
  color: #2A2A2A;
}

.of-farewell-card p.of-signoff {
  margin-top: 20px;
  font-style: italic;
  color: #555;
  font-size: 15px;
}

.of-farewell-card p a {
  color: #1A1A1A;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.of-farewell-card p a:hover {
  color: #000;
}

.of-farewell-card p strong {
  font-weight: 700;
  color: #1A1A1A;
}

.of-farewell-actions {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.of-farewell-cta {
  display: inline-block;
  background: #1A1A1A;
  color: #FAFAF8 !important;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 5px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 150ms;
}

.of-farewell-cta:hover {
  background: #000;
}

.of-farewell-dismiss {
  background: none;
  border: 0;
  color: #666;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.of-farewell-dismiss:hover {
  color: #1A1A1A;
}

.of-farewell-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  color: #888;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms, color 120ms;
}

.of-farewell-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1A1A1A;
}

body.of-farewell-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .of-farewell-card {
    padding: 32px 24px 24px;
  }
  .of-farewell-card h2 {
    font-size: 22px;
  }
  .of-farewell-card p {
    font-size: 15px;
  }
}
