/* Four Temperaments Test: styles for this test only (loaded on its landing, test and result pages). Built 15 Nov 2026. */

/* Prep / loading emblem. */
.imt-app .imt-ft-emblem { display: inline-flex; filter: drop-shadow(0 10px 28px rgba(194, 65, 12, .38)); animation: imtFtFloat 3.4s ease-in-out infinite; }
.imt-app .imt-emblem-load .imt-ft-emblem { filter: drop-shadow(0 8px 20px rgba(194, 65, 12, .2)); }
@keyframes imtFtFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* The last optional question has long answers: sentence case in one column. */
.imt-app .question-card[data-question="p_self"] .imt-pick-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; max-width: 560px; margin: 18px auto 8px; }
.imt-app .question-card[data-question="p_self"] .imt-pick-btn { min-height: 54px; padding: 13px 16px !important; margin: 0 !important; border-radius: 16px !important; font: 500 14.5px/1.42 var(--imt-sans, 'Rethink Sans', sans-serif) !important; text-transform: none !important; letter-spacing: normal !important; text-align: left; white-space: normal; }
.imt-app .question-card[data-question="p_self"] .imt-pick-label { text-transform: none !important; letter-spacing: normal !important; white-space: normal; }

/* Result card: the big word (MELANCHOLIC is the longest, 11 letters) must fit a 375 px phone card. */
.imt-app[data-test="four-temperaments"] #checkout-section .co-type-big.imt-big-small { font-size: clamp(26px, 8.2vw, 72px); letter-spacing: .02em; line-height: 1.05; word-break: normal; overflow-wrap: normal; }

/* Result: the temperament map a little larger on wide screens; white halo keeps names readable near a corner. */
.imt-app .imt-quad { margin: 4px auto 14px; }
.imt-app .imt-quad-zone, .imt-app .imt-quad-you { paint-order: stroke fill; stroke: rgba(255, 255, 255, .9); stroke-width: 3.5px; stroke-linejoin: round; }
@media (min-width: 760px) { .imt-app .imt-quad-svg { width: 380px; height: 380px; } }

@media (prefers-reduced-motion: reduce) { .imt-app .imt-ft-emblem { animation: none; } }
