/* Tag autolink hover card — calendar-style preview (image / title / excerpt) */
.mn-tag-autolink {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.mn-tag-autolink:hover,
.mn-tag-autolink:focus-visible {
  text-decoration-thickness: 2px;
}
.mn-tag-autolink:focus-visible {
  outline: 2px solid var(--e-global-color-accent, #FFCE00);
  outline-offset: 2px;
}

.mn-tag-tip {
  position: fixed;
  z-index: 100000;
  width: min(280px, calc(100vw - 24px));
  max-width: 280px;
  background: var(--e-global-color-mn_paper, #fff);
  color: var(--e-global-color-secondary, #231614);
  border: 1px solid var(--e-global-color-mn_rule, #DAD6CD);
  border-radius: 8px;
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.35);
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  font-family: inherit;
  line-height: 1.35;
}
.mn-tag-tip.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.mn-tag-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%) rotate(45deg);
  width: 11px;
  height: 11px;
  background: var(--e-global-color-mn_paper, #fff);
  border-right: 1px solid var(--e-global-color-mn_rule, #DAD6CD);
  border-bottom: 1px solid var(--e-global-color-mn_rule, #DAD6CD);
}
.mn-tag-tip.is-below::after {
  bottom: auto;
  top: -6px;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid var(--e-global-color-mn_rule, #DAD6CD);
  border-top: 1px solid var(--e-global-color-mn_rule, #DAD6CD);
}

.mn-tag-tip__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--e-global-color-secondary, #231614);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}
.mn-tag-tip__media[hidden] {
  display: none;
}
.mn-tag-tip__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mn-tag-tip__body {
  padding: 0.85rem 0.95rem 0.95rem;
  border-radius: 0 0 8px 8px;
  background: var(--e-global-color-mn_paper, #fff);
  overflow: hidden;
}
.mn-tag-tip__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--e-global-color-secondary, #231614);
}
.mn-tag-tip__excerpt {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--e-global-color-mn_muted, #5E524D);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .mn-tag-tip {
    transition: none;
  }
}
