/**
 * Editor notice
 *
 * <blockquote class="notice"> applied from CKEditor's Style menu ("Notice").
 * Matches .benefit-plan__notice on the benefits page. The first block inside
 * is the title; everything after it is the message.
 *
 * Also loaded inside CKEditor (ckeditor5-stylesheets in plannera.info.yml),
 * so editors see the styled box while they write.
 */

blockquote.notice {
  --notice-icon: 48px;
  --notice-pad: 1rem;

  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(var(--notice-icon) + var(--notice-pad) * 2);
  margin: 2rem 0;
  padding: var(--notice-pad) 2.5rem var(--notice-pad)
    calc(var(--notice-pad) + var(--notice-icon) + 1.5rem);
  border: 1px solid #d9d9d9;
  border-radius: 24px;
  background: #fff;
  font-family: "Inter", sans-serif; /* match the .ff-inter stack */
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 1.57;
  letter-spacing: -0.36px;
  color: #242935;
  quotes: none;
}

/* Icon circle */
blockquote.notice::before {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--notice-pad);
  width: var(--notice-icon);
  height: var(--notice-icon);
  border-radius: 50%;
  background: #fdf8f0;
  translate: 0 -50%;
}

/* Bell: Font Awesome Pro light bell as a mask, so no icon markup goes in the
   content (same approach as the button arrow). 21px = the 48px circle with
   FA's shrink-9. */
blockquote.notice::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--notice-pad) + var(--notice-icon) / 2);
  width: 21px;
  height: 21px;
  background: #d1b27e;
  -webkit-mask: url("../images/icons/bell-light.svg") center / contain no-repeat;
  mask: url("../images/icons/bell-light.svg") center / contain no-repeat;
  translate: -50% -50%;
}

/* Spacing between blocks inside the notice */
blockquote.notice > * {
  margin: 0;
}

blockquote.notice > * + * {
  /* margin-top: 1rem; */
}

blockquote.notice > * {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.71;
  letter-spacing: -0.36px;
  color: #242935;
}

/* Title: the first block */
blockquote.notice > :first-child {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.71;
  letter-spacing: -0.36px;
  color: #242935;
}

blockquote.notice > :first-child + * {
  margin-top: 0.25rem;
}

/* A pill corner clips text once the box gets tall on narrow screens */
@media (max-width: 768px) {
  blockquote.notice {
    padding-right: 1.5rem;
    border-radius: 2rem;
  }
}
