/* Nov 19: Priya's trailer work in the demo's look.
   1. The Start page's Suggested tests (start.js suggestedHtml): two cards, each two posters with "vs", the test's name,
      a line, and "Load this test". The creative job's hue marks the loaded one, as the job card does.
   2. The measured head to head on a trailer test (measured.js): the demo's own two-card report (dsb-c, from
      trailer-compare.js) with a market switch, read from the trailers' campaigns. */

.ds-st-sug-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
html[data-skin] .ds-st-sug-c { --job: var(--ds-job-creative, #6753E0); display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; border: 1.5px solid transparent; border-radius: var(--ds-r-inner, 10px); background: #F2F5FA; color: var(--ds-ink, #0F1B2D); font: inherit; text-align: left; cursor: default; transition: background-color .18s ease, border-color .18s ease; }
html[data-skin] .ds-st-sug-c:hover { background: #EAEFF7; }
html[data-skin] .ds-st-sug-c.on { border-color: var(--job); background: #fff; }
html[data-skin] .ds-st-sug-c:focus-visible { outline: 2px solid var(--job); outline-offset: 2px; }
.ds-st-sug-p { display: flex; align-items: center; gap: 10px; }
.ds-st-sug-th { flex: 1 1 0; min-width: 0; aspect-ratio: 16 / 9; border-radius: 8px; background: #DCE3EE center / cover no-repeat; }
.ds-st-sug-vs { flex: none; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--job); }
.ds-st-sug-t { margin-top: 4px; font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.ds-st-sug-d { font-size: 14px; line-height: 1.4; color: #536A84; text-wrap: pretty; }
.ds-st-sug-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 2px; font-size: 14px; font-weight: 650; color: var(--job); }
.ds-st-sug-go svg { width: 14px; height: 14px; }
.ds-st-try:empty { display: none; }
/* the Suggested tests sit in their own wrapper (#ds-st-sugw), so the composer's part-to-part gap is set here: the same
   30px (24px on phones) as above "The creative" and "What do you want to know?" */
#ds-st-sugw > .ds-st-part { margin-top: 30px; }
@media (max-width: 720px) {
  #ds-st-sugw > .ds-st-part { margin-top: 24px; }
  .ds-st-sug-g { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 2. the measured head to head ---------- */
.dsb-msr-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dsb-msr-h > div { min-width: 0; }
.dsb-msr-sw { flex: none; display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: #EEF2F8; }
.dsb-msr-sw button { padding: 7px 14px; border: 0; border-radius: 999px; background: transparent; color: #405673; font: inherit; font-size: 14px; font-weight: 600; cursor: default; }
.dsb-msr-sw button[aria-pressed="true"] { background: #fff; color: var(--ds-ink, #0F1B2D); box-shadow: 0 1px 2px rgba(15, 27, 45, .12); }
.dsb-msr-sw button:focus-visible { outline: 2px solid #2A5FE8; outline-offset: 2px; }
.dsb-msr-note { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: #405673; text-wrap: pretty; }
.dsb-msr-est { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: #647A94; text-wrap: pretty; }
.dsb-msr .dsb-c-pair { margin-top: 18px; }
.dsb-msr-yt { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dsb-msr-yt li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; background: #F2F5FA; font-size: 14px; color: #2F4460; }
.dsb-msr-yt li b { font-size: 16px; font-variant-numeric: tabular-nums; color: var(--ds-ink, #0F1B2D); }
.dsb-msr-yt li.is-win b { color: #1F4FD6; }
.dsb-msr-none { margin: 0; font-size: 14px; color: #647A94; }
.dsb-msr-from { margin: 14px 0 0; font-size: 13px; line-height: 1.45; color: #647A94; }
@media (max-width: 720px) {
  .dsb-msr-h { flex-direction: column; }
}
/* the measured cards name every audience in full (Priya's rows wrap, and the "+N ahead" chip must stay readable) */
.dsb-msr .dsb-c-rows li > span { white-space: normal; overflow: visible; text-overflow: clip; text-wrap: pretty; }
.dsb-msr .dsb-c-rows li > span > em { display: inline-block; white-space: nowrap; }
@media (max-width: 720px) {
  .dsb-msr .dsb-c-id { flex-wrap: wrap; }
  .dsb-msr .dsb-c-id h3 { flex: 1 1 calc(100% - 74px); white-space: normal; }
  .dsb-msr .dsb-c-badge { flex: 0 0 auto; margin-left: 74px; }
}

/* the market switch above the model's read cards (trailer-compare.js marketSplit) */
.dsb-read-mk { display: flex; justify-content: flex-end; margin: 0 0 14px; }
