/* ---------------------------------------------------------------------------
   Deprecation modal (sunsetting rule types)
   Shown on every visit on purpose: there is no dismiss-forever option and no
   close affordance other than the two explicit actions.
   --------------------------------------------------------------------------- */
body.deprecation-open {
  overflow: hidden;
}

.deprecation-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.deprecation-modal {
  max-width: 34rem;
  width: 100%;
  padding: 1.75rem;
  border-radius: 0.5rem;
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
  border-top: 4px solid var(--q-warning, #f0a202);
}

.deprecation-modal h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.deprecation-modal p {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.6;
}

.deprecation-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.deprecation-continue,
.deprecation-redirect {
  padding: 0.5rem 1.1rem;
  border-radius: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
}

.deprecation-continue {
  background: transparent;
  color: var(--md-default-fg-color--light);
  border: 1px solid var(--md-default-fg-color--lighter);
}

.deprecation-continue:hover {
  color: var(--md-default-fg-color);
  border-color: var(--md-default-fg-color--light);
}

.deprecation-redirect,
.deprecation-redirect:visited {
  background: var(--q-brick, #b4341f);
  color: #fff;
  border: 1px solid transparent;
}

.deprecation-redirect:hover {
  filter: brightness(1.08);
  color: #fff;
}
