/* /research/youtube-thumbnail-tests (templates/landing/youtube-thumbnail-tests.twig)

   Layout only, on top of research-breakouts.css (the sister study page,
   whose hero, finding meters and quote blocks this page reuses). Every part
   is the system's: .fnd-media frames with the result mark
   .fnd-media-tag--win, as on the Thumbnail Tester results. The pictures
   inside are drawn examples, never a creator's real thumbnail. 2026-12-05. */

/* ---- A head-to-head: the winner, then the other picture, side by side at every width ---- */
.rt-duo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--fnd-s3);
  margin: var(--fnd-s4) 0 var(--fnd-s5);
}
.rt-duo__one { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--fnd-s2); }
.rt-duo .fnd-media svg { display: block; width: 100%; height: 100%; }
.fnd .rt-duo figcaption {
  font-family: var(--fnd-display-font); font-weight: 700;
  line-height: 1.3; color: var(--fnd-text);
  text-wrap: balance;
}
.fnd .rb-read .rt-duo figcaption { font-size: var(--fnd-t-sm); }
/* The lettering drawn on the example thumbnails: heavy, with a dark outline
   under the fill, the way real thumbnail words are made. */
.rt-duo .rt-word {
  font-family: var(--fnd-display-font); font-weight: 800;
  paint-order: stroke; stroke-linejoin: round;
}

/* Short notes and captions wrap evenly, so no last line is two
   stranded words (the founder's lonely-word rule). */
.fnd.rt-page .rb-read .fnd-note,
.fnd.rt-page .rt-duo figcaption { text-wrap: balance; }

/* A count and its word stay on one line, so a hyphen never strands "to-heads". */
.rt-nw { white-space: nowrap; }

/* The pictures are drawings, said where they are, so a screenshot of a
   pair is never read as a creator's real thumbnail. */
.fnd .rt-drawn { margin: calc(-1 * var(--fnd-s3)) 0 var(--fnd-s5); }

/* The result mark: the full result on a computer, "Winner" on a phone,
   where the long mark would cover a third of a small picture. */
.rt-tag-s { display: none; }

/* The citation's web address breaks only after a slash, never mid-word. */
.fnd.rt-page .rb-quote #rb-cite-text { overflow-wrap: break-word; }

/* The chart writers can paste into an article (the same picture a shared
   link shows), with its download button and note side by side. */
.rt-chart { margin: 0 0 var(--fnd-s4); }
.rt-chart img { display: block; width: 100%; height: auto; border-radius: var(--fnd-r-sm); transition: opacity 150ms ease; }
.rt-chart__open { display: block; border-radius: var(--fnd-r-sm); }
.rt-chart__open:hover img { opacity: .9; }
.rt-chart figcaption {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--fnd-s2) var(--fnd-s3); margin-top: var(--fnd-s2);
}
.fnd .rt-chart .fnd-note { margin: 0; }

/* ---- The top: the same head-to-head, bigger, on ink ---- */
.fnd .rt-hero__h { max-width: 17ch; }
.rt-duo--hero {
  max-width: 720px; margin: 0 auto var(--fnd-s3);
  gap: var(--fnd-s4);
  text-align: left;
}
.fnd .rt-duo--hero figcaption { color: var(--fnd-on-ink); }
.fnd .rt-duo--hero figcaption { font-size: var(--fnd-t-body); }
.fnd .rt-duo--hero .rt-duo__one + .rt-duo__one figcaption { color: var(--fnd-on-ink-soft); }
.fnd .rt-duo--hero + .rt-drawn { text-align: center; margin: 0 auto var(--fnd-s6); }

@media (max-width: 767px) {
  .rt-duo { gap: var(--fnd-s2); }
  .rt-duo--hero { gap: var(--fnd-s3); }
  .fnd .rt-duo--hero + .rt-drawn { margin-bottom: var(--fnd-s5); }
  .fnd .rt-duo--hero figcaption { font-size: var(--fnd-t-sm); }
  .rt-duo .rt-tag-l { display: none; }
  .rt-duo .rt-tag-s { display: inline; }
}
