.farewell-notice {
  position: relative;
  padding: 16px 80px 16px 24px;
  background: #315b35;
  color: #fff;
  font-family: 'Fira Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}
.farewell-notice p { margin: 0; }
.farewell-notice a { display: inline-block; margin: 0 0 0 12px; padding: 6px 0; color: #fff; text-decoration: underline; }
.farewell-is-open, .farewell-is-open body { overflow: hidden; }
.farewell-dialog {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 700px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #568d55;
  border-radius: 12px;
  background: #fcf8f4;
  color: #293b2c;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
  font-family: 'Fira Sans', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
.farewell-dialog:not([open]) { display: none; }
.farewell-dialog[open] { display: flex; flex-direction: column; }
.farewell-dialog::backdrop { background: rgba(26, 36, 28, .72); }
.farewell-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 16px;
  padding: 12px 20px 12px 32px;
  border-bottom: 1px solid #d9dfd4;
}
.farewell-dialog__eyebrow { margin: 0; color: #315b35; font-size: 16px; font-weight: 700; }
.farewell-dialog__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid #bac9b6;
  border-radius: 50%;
  background: transparent;
  color: #315b35;
  font: 30px/1 sans-serif;
  cursor: pointer;
}
.farewell-dialog__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 32px; }
.farewell-dialog h2 { margin: 0 0 20px; color: #315b35; font-size: 32px; line-height: 1.2; }
.farewell-status { margin: 0 0 24px; padding: 16px 20px; border-left: 3px solid #568d55; background: #e9eee5; }
.farewell-caption { margin: 0 0 16px; color: #4e5c4f; font-size: 15px; line-height: 1.5; }
.farewell-letter p { margin: 0 0 20px; }
.farewell-letter p:last-child { margin-bottom: 0; }
.farewell-letter + .farewell-caption { margin: 24px 0 0; }
.farewell-dialog__footer { flex-shrink: 0; padding: 16px 32px; border-top: 1px solid #d9dfd4; }
.farewell-dialog__continue {
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  background: #315b35;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.farewell-dialog__continue:hover { background: #244729; }
.farewell-dialog__close:hover { background: #e9eee5; }
.farewell-dialog button:focus-visible, .farewell-notice a:focus-visible { outline: 3px solid #ad742b; outline-offset: 3px; }
.farewell-dialog h2:focus { outline: none; }
.farewell-page { max-width: 700px; margin: 0 auto; }
.farewell-page .farewell-letter { color: #293b2c; }
@media (max-width: 480px) {
  .farewell-notice { padding: 16px 64px 16px 20px; text-align: left; font-size: 14px; }
  .farewell-notice a { margin-left: 0; }
  .farewell-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); font-size: 16px; }
  .farewell-dialog__header { padding: 8px 12px 8px 20px; }
  .farewell-dialog__body { padding: 20px; }
  .farewell-dialog h2 { font-size: 26px; }
  .farewell-dialog__footer { padding: 12px 20px; }
  .farewell-status { padding: 12px 16px; }
}
@media print {
  .farewell-dialog { display: none !important; }
  .farewell-is-open, .farewell-is-open body { overflow: visible; }
}
