/* Content Credentials pin and card (credentials.js). Sized in em so one
   component fits a Tom result (small), a lightbox, and the showcase blocks
   (.tc-big). The parent of .tc-wrap must be positioned. */
.tc-wrap {
  position: absolute;
  top: 1.1em;
  right: 1.1em;
  z-index: 3;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  color: #000;
  text-align: left;
}

.tc-pin {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  height: 2.4em;
  margin: 0;
  padding: 0 0.95em 0 0.7em;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease;
}

.tc-pin:hover,
.tc-wrap.is-open .tc-pin { background: #fff; }
.tc-pin:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

.tc-pin-t { white-space: nowrap; }

.tc-mark { display: inline-block; width: 1.2em; height: 1.2em; flex: none; }
.tc-mark svg { display: block; width: 100%; height: 100%; }

.tc-card {
  position: absolute;
  top: calc(100% + 0.6em);
  right: 0;
  width: 21em;
  max-width: calc(100vw - 32px);
  padding: 1.2em 1.25em 1em;
  border-radius: 1.1em;
  background: #fff;
  color: #000;
  box-shadow: 0 0.8em 2.6em rgba(0, 0, 0, 0.16);
  animation: tc-in 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes tc-in { from { opacity: 0; transform: translateY(-0.4em); } }

.tc-card-h {
  display: flex;
  align-items: center;
  gap: 0.55em;
  margin: 0 0 0.9em;
  font-size: 1.15em;
}

.tc-x {
  margin: 0 0 0 auto;
  padding: 0 0.2em;
  border: 0;
  background: transparent;
  color: #8a8a8a;
  font: inherit;
  font-size: 1.3em;
  line-height: 1;
  cursor: pointer;
}

.tc-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55em 1.1em;
  margin: 0;
}

.tc-card dt { color: #8a8a8a; font-weight: 500; }
.tc-card dd { margin: 0; }

.tc-card-f {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin: 1em 0 0;
  padding-top: 0.85em;
  border-top: 1px solid #ececec;
  color: #8a8a8a;
  font-size: 0.9em;
}

.tc-card-f a { color: #000; text-decoration: none; white-space: nowrap; }
.tc-card-f a:hover { text-decoration: underline; }

/* In the dark lightbox: bottom left, over the black. */
.tc-wrap.tc-lb { position: fixed; top: auto; right: auto; left: 24px; bottom: 22px; z-index: 5; }
.tc-wrap.tc-lb .tc-card { top: auto; bottom: calc(100% + 0.6em); right: auto; left: 0; }

/* Showcase blocks: larger, the card opens to the left under the pin. */
.tc-wrap.tc-big { font-size: clamp(12px, 1vw, 16px); top: 1.6em; right: 1.6em; }

/* Card opens upwards (pins near the bottom). */
.tc-wrap.tc-up { top: auto; bottom: 1.1em; }
.tc-wrap.tc-up .tc-card { top: auto; bottom: calc(100% + 0.6em); }

@media (max-width: 560px) {
  .tc-wrap { font-size: 11.5px; top: 0.8em; right: 0.8em; }
  .tc-wrap.tc-big { font-size: 12px; }
  .tc-wrap.tc-lb { left: 14px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .tc-card { animation: none; }
}

/* Tom's result thumbnails: a smaller pin. */
.tb-results .tc-wrap { font-size: 10.5px; top: 0.6em; right: 0.6em; }

.tc-by { display: inline-flex; align-items: center; gap: 0.35em; white-space: nowrap; }
.tc-by img { height: 1.05em; width: auto; opacity: 0.85; filter: grayscale(1) brightness(0.72); }
