/* Link preview cards (nr-previews.js, decision of 2026-10-27). Colours and fonts come from the site's own variables. */
.nrpv-card {
  position: absolute;
  z-index: 9990;
  width: min(360px, calc(100vw - 24px));
  background: #FBF7ED;
  color: var(--ink, #1d1418);
  border: 1px solid var(--paper-3, #ddd4c2);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(38, 16, 26, .18), 0 2px 6px rgba(38, 16, 26, .10);
  overflow: hidden;
  font-family: var(--f-read, system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  -webkit-hyphens: manual;
  hyphens: manual;
}
.nrpv-img { aspect-ratio: 2 / 1; background: var(--paper-2, #ece6da); overflow: hidden; }
.nrpv-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nrpv-body { padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 5px; }
.nrpv-label { font-size: 13.5px; color: var(--ink-2, #5b4650); }
.nrpv-title {
  font-family: var(--f-head, Georgia, serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--burg, #592c3c);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.nrpv-sub { font-size: 14.5px; line-height: 1.4; color: var(--ink-2, #5b4650); }
.nrpv-text, .nrpv-ref { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.nrpv-ref a { color: var(--burg, #592c3c); overflow-wrap: anywhere; }
.nrpv-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 16px 12px; }
.nrpv-card a.nrpv-go { font-weight: 600; font-size: 15px; color: var(--burg, #592c3c); text-decoration: none; }
.nrpv-card a.nrpv-go::after { content: " \2192"; }
.nrpv-card a.nrpv-go:hover { text-decoration: underline; }
.nrpv-off { background: none; border: 0; padding: 6px; margin: -6px; font-size: 17px; line-height: 1; color: var(--ink-2, #5b4650); cursor: pointer; }
.nrpv-card :focus-visible, .nrpv-on:focus-visible { outline: 2px solid var(--focus, #592c3c); outline-offset: 2px; }
.prose .nrpv-offline { font-size: 15px; color: var(--ink-2, #5b4650); text-align: left; }
.nrpv-on { background: none; border: 0; padding: 0; font: inherit; color: var(--burg, #592c3c); text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .nrpv-card { animation: nrpv-in .14s ease-out; }
  @keyframes nrpv-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
