/*
 * The free-test player embed: the overlay the sitting runs in, and what the page
 * hides once the player is live. (The launch card that used to live here duplicated
 * the hero and was removed, Guy 2026-09-04; the test section shows a one-line
 * pointer instead, styled by v2-core's .tv2-test-heading__note.)
 *
 * ⛔ Everything here either styles chrome this embed adds, or HIDES
 * server-rendered markup. It never removes anything: the stacked test stays in
 * the DOM under `.ftp-replaced`, because that markup is what ranks.
 */

/*
 * The stacked test, once the player has a bundle to run. Hidden, never
 * removed: a crawler that does not execute this script still reads every
 * question and worked solution, which is the entire point of the page.
 */
.free-test.ftp-replaced {
  display: none;
}
/* A personality page keeps its result prose (trait table, portraits, careers)
   and gives up only the form, the navigator and the inline widget's mount. */
.free-test.ftp-replaced--form > .free-test__form,
.free-test.ftp-replaced--form > .free-test__nav,
.free-test.ftp-replaced--form [data-personality-result],
.free-test.ftp-replaced--form [data-type-result],
.free-test.ftp-replaced--form [data-enneagram-result],
.free-test.ftp-replaced--form [data-wordgrid-result] {
  display: none;
}

/* ---- the sitting ---- */
.ftp-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow: auto;
  background: #f4f7fb;
}
.ftp-overlay[hidden] {
  display: none;
}
/* The page behind must not scroll while a test is being sat. */
html.ftp-locked {
  overflow: hidden;
}
