.emergency-card {
  background: #fff4ed;
  border: 2px solid #9b3a24;
  border-radius: 1rem;
  color: #351a15;
  margin: 0.75rem 0 1.25rem;
  padding: clamp(1rem, 3vw, 1.45rem);
  overflow-wrap: anywhere;
  scroll-margin-top: 1rem;
}

.emergency-card[data-state="resolved"] {
  background: #f1f8f6;
  border-color: #34645b;
  color: #163931;
}

.emergency-title {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  font-weight: 700;
}

.emergency-phrase-zh {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.35;
}

.emergency-phrase-en,
.emergency-show-en {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  line-height: 1.45;
}

.emergency-call {
  background: #8b2d1b;
  border-radius: 0.55rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  text-decoration: none;
}

.emergency-call:hover,
.emergency-call:focus-visible {
  background: #692112;
  color: #fff;
}

.emergency-source {
  color: inherit;
  display: block;
  font-size: 0.8rem;
  margin-top: 0.65rem;
  width: fit-content;
}

.emergency-show,
.emergency-show-close {
  appearance: none;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 0.55rem;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
}

.emergency-call + .emergency-show {
  margin-inline-start: 0.45rem;
}

.emergency-show-dialog {
  background: #fff4ed;
  border: 2px solid #9b3a24;
  border-radius: 1rem;
  color: #351a15;
  width: min(42rem, calc(100% - 1rem));
  max-height: calc(100dvh - 1rem);
  padding: clamp(1rem, 4vw, 2rem);
}

.emergency-show-dialog::backdrop {
  background: rgb(30 15 12 / 84%);
}

.emergency-show-zh {
  font-size: clamp(2.05rem, 10vw, 4rem);
  font-weight: 750;
  line-height: 1.25;
  margin: 0 0 1rem;
}
