/* Health advisory and offline popovers */

.health-popover,
.offline-popover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
}

.health-popover__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 14, 12, 0.52);
}

.health-popover__panel {
  position: relative;
  z-index: 1;
  width: min(430px, calc(100vw - 28px));
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 238, 230, 0.96));
  border: 1px solid rgba(31, 29, 26, 0.12);
  box-shadow: 0 24px 55px rgba(9, 8, 7, 0.3);
  outline: none;
}

.health-popover__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.health-popover__header h2 {
  margin: 4px 0 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.06em;
}

.health-popover__close {
  border: 1px solid rgba(31, 29, 26, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.health-popover__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.health-popover__meta strong {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.health-popover__summary {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.health-popover__panel p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.health-popover__footnote {
  margin-top: 12px !important;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted) !important;
}
