/* TDN Preferred Source card: inherits the theme's colors so it sits
   naturally in light and dark mode. */
.tdn-pref-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin: 28px 0 8px;
  padding: 20px 22px;
  border: 1px solid rgba(127, 127, 140, 0.35);
  border-left: 4px solid #c8102e;
  border-radius: 14px;
}

.tdn-pref-source__text {
  flex: 1 1 260px;
  min-width: 220px;
}

.tdn-pref-source__title {
  margin: 0 0 6px;
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.25rem;
  font-weight: 620;
  line-height: 1.25;
}

.tdn-pref-source__body {
  margin: 0;
  color: var(--muted-2, inherit);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tdn-pref-source__action {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-width: min(320px, 100%);
}

@media (max-width: 640px) {
  .tdn-pref-source {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* The deeplink fallback is only for readers where Google's script
   cannot run; hide it once the real button has rendered. */
.tdn-pref-source--ready .tdn-pref-source__fallback {
  display: none;
}

.tdn-pref-source__fallback {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
