.muted {
  color: var(--muted2);
}

body.modal-open {
  overflow: hidden;
}

.modal {
  width: min(920px, calc(100% - 32px));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surfaceSolid);
  color: var(--text);
  box-shadow: var(--shadow);
  padding: 0;
}

.modal::backdrop {
  background: var(--modalBackdrop);
  backdrop-filter: blur(10px);
}

.modal__inner {
  max-height: min(84vh, 860px);
  overflow: auto;
  padding: 18px 18px 22px;
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.modal__title {
  margin: 0;
  font-family: "Baloo 2", Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.4px;
  font-size: 30px;
  color: var(--textStrong);
  line-height: 1.05;
}

.modal__meta {
  margin-top: 8px;
  color: var(--muted2);
  font-weight: 600;
}

.modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--borderSoft);
  background: var(--navControlBg);
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 auto;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.modal__close:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadowHover);
  background: var(--linkHoverBg);
  color: var(--textStrong);
}

.modal__close:active {
  transform: translateY(0);
}

.prose {
  margin-top: 14px;
  color: var(--text);
  line-height: 1.7;
}

.prose p {
  margin: 0 0 12px;
  color: var(--muted);
}

.prose h3 {
  margin: 18px 0 8px;
  font-family: "Baloo 2", Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--textStrong);
  font-size: 18px;
}

.prose ul {
  margin: 0 0 12px 18px;
  padding: 0;
  color: var(--muted);
}

.prose li {
  margin: 7px 0;
}

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--textStrong);
}
