/*
 * GitHub-style callout boxes for posts that use the `> [!NOTE]` style
 * markdown. Generated by _plugins/github-callouts.rb as
 * <div class="callout callout-<type>">.
 * Colors mirror GitHub's markdown-alert palette; the site is dark-themed
 * (minima dark skin) so we follow GitHub's dark-mode alert colors.
 */

.callout {
  border-left: 0.25em solid #6e7681;
    border-radius: 0.25em;
  padding: 0.75em 1em;
  margin: 1em 0;
  background-color: #1c2128;
  color: var(--global-notification-color, #e6edf3);
}

.callout + .callout {
  margin-top: -0.75em;
}

.callout-title {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  margin-bottom: 0.3em;
}

.callout-icon {
  font-size: 1.1em;
  line-height: 1;
}

.callout > p:last-child {
  margin-bottom: 0;
}

.callout-note {
  border-left-color: #539bf5;
  background-image: linear-gradient(to bottom, rgba(56, 139, 253, 0.1), rgba(56, 139, 253, 0.05));
}
.callout-note .callout-title { color: #79c0ff; }

.callout-tip {
  border-left-color: #3fb950;
  background-image: linear-gradient(to bottom, rgba(46, 160, 67, 0.1), rgba(46, 160, 67, 0.05));
}
.callout-tip .callout-title { color: #56d364; }

.callout-important {
  border-left-color: #539bf5;
  background-image: linear-gradient(to bottom, rgba(56, 139, 253, 0.1), rgba(56, 139, 253, 0.05));
}
.callout-important .callout-title { color: #79c0ff; }

.callout-warning {
  border-left-color: #d29922;
  background-image: linear-gradient(to bottom, rgba(187, 128, 9, 0.1), rgba(187, 128, 9, 0.05));
}
.callout-warning .callout-title { color: #e3b341; }

.callout-caution {
  border-left-color: #f85149;
  background-image: linear-gradient(to bottom, rgba(229, 83, 75, 0.1), rgba(229, 83, 75, 0.05));
}
.callout-caution .callout-title { color: #ff7b72; }
