/* /test: the Italian test card (css/it-test-adhd.css) with the additions this site needs.
   Answers are real buttons with aria-pressed, so the "checked" look is repeated for [aria-pressed="true"]. */
.en-test { max-width: 860px; margin: 0 auto; padding: 24px 16px 56px; font-family: var(--ta-font, Inter, system-ui, sans-serif); color: var(--ta-testo, #191c1e); }
.en-test__intro { margin: 0 0 18px; }
.en-test__intro h1 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.015em; margin: 0 0 8px; }
@media (min-width: 768px) { .en-test__intro h1 { font-size: 36px; } }
.en-test__intro p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ta-muto, #424752); max-width: 620px; }
.en-test__foot { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ta-tenue, #5f6573); }
.en-test__foot a { color: var(--ta-blu, #00488d); font-weight: 700; }

.ta-risp[aria-pressed="true"] { background: var(--ta-blu); color: #fff; border-color: var(--ta-blu); transform: none; }
.ta-scelta[aria-pressed="true"] { background: var(--ta-blu-tenue); box-shadow: inset 0 0 0 1.5px var(--ta-blu); border-color: var(--ta-blu); }
.ta-scelta[aria-pressed="true"] .ta-spunta { background: var(--ta-blu); }
.ta-scelta[aria-pressed="true"] .ta-spunta::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }
.ta-risp:focus:not(:focus-visible), .ta-scelta:focus:not(:focus-visible) { outline: none; }

/* On the 5-answer row the labels such as "Very Often" must fit */
@media (min-width: 768px) { .ta-risposte--5 .ta-risp { padding: 10px 6px; } }

.en-intro-h { margin-top: 12px; }
.en-intro-p { margin: 0 0 14px; font-size: 15px; line-height: 1.5; }
.en-intro-note { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ta-muto); }
.ta-box2 + .en-intro-note { margin-top: 14px; }
.en-left { text-align: left; margin: -10px 0 14px; }
.en-attrib { margin: 14px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--ta-tenue); }
.ta-azioni { margin-top: 22px; }
.ta-msg a:not(.ta-cta) { color: var(--ta-blu); font-weight: 700; }
.ta-msg .ta-cta { margin-top: 4px; }
.ta-err { margin-top: 12px; }

@media (max-width: 767px) {
  .en-test { padding-left: 12px; padding-right: 12px; }
  .ta-card { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ta-barra i { transition: none; } }

/* The decorative circle of the card (it-test-adhd.css, ::before at right:-90px) makes the card scrollable by 90px
   although it is overflow:hidden: a focus or a scroll-into-view on a button near the right edge then shifts the
   whole question to the left. "clip" forbids every kind of scrolling. */
.ta-card { overflow: clip; }

/* /test opened from the mini test of a guide: one line on question 4 */
.en-mini-note { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--ta-blu-tenue, #eef4ff); color: var(--ta-blu-scuro, #0b2545); font-size: 13.5px; line-height: 1.45; }

/* The small line under the answers of the mini test. The answers of questions 1 to 6 are not shaded: all five look the
   same (owner's decision of December 5, 2026, as on the Italian site). */
.en-fine-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ta-tenue, #5f6573); }

/* "Two things about you" after the adult test: the four short answers of the second question sit two by two on a
   phone too, so the screen stays short; the line under the title keeps its distance from the first question. */
.ta-scelte.en-pair { grid-template-columns: 1fr 1fr; }
.en-pair .ta-scelta { padding-left: 12px; padding-right: 12px; }
.ta-domanda + .ta-aiuto.en-left + .ta-gruppo { margin-top: 18px; }

/* The four profile questionnaires (/test/<slug>, js/quest-ui.js) */
.en-quest-sub { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ta-muto, #424752); }
.en-quest-warn { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fff7e0; color: #5c4400; font-size: 13.5px; line-height: 1.45; }
.q-fine .q-corpo.en-quest-count { margin-bottom: 10px; color: var(--ta-testo, #191c1e); }
.en-quest-again { margin: 12px 0 0; text-align: center; }
.en-quest-again .ta-link { min-height: 44px; }
/* The next step of a finished questionnaire is a link. it-pagina-quiz.css hides a row of actions that holds no
   button, and .ta-cta is written for buttons: both are put right here. */
.ta-card .q-azioni.en-quest-next { display: flex; }
.en-quest-next a.ta-cta { text-decoration: none; color: #fff; }
.en-quest-next a.ta-cta.q-secondario { color: var(--ta-testo, #191c1e); border: 1.5px solid var(--ta-linea, #d5dae3) !important; }
