/* /results: builds on css/it-test-adhd.css and css/it-pagina-risultati.css (the Italian result classes).
   Adds the parent-result classes (inline in Italy), the country box, the guides list, the print summary. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.en-results { padding-top: 20px; }
#ra-titolo:focus, #rm-titolo:focus { outline: none; }

/* Parent result: two areas as rows of nine dots */
.rm-aree { display: grid; gap: 12px; margin-top: 4px; }
.rm-area { border-radius: 14px; background: var(--ta-blu-tenue); padding: 12px 14px; }
.rm-area__testa { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 14px; }
.rm-area__testa b { font-size: 26px; font-weight: 800; color: var(--ta-blu-scuro); }
.rm-area.is-sopra { background: #fde8e7; }
.rm-pallini { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin-top: 8px; }
.rm-pallini i { height: 10px; border-radius: 999px; background: #cfd8e6; }
.rm-pallini i.on, .rm-area.is-sopra .rm-pallini i.on { background: #e2603f; }
.rm-area--iper .rm-pallini i.on, .rm-area--iper.is-sopra .rm-pallini i.on { background: var(--ta-blu); }
.rm-pallini i:nth-child(6) { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ta-blu); }
.rm-nota-soglia { font-size: 12px; color: var(--ta-tenue); margin: 8px 0 0; line-height: 1.5; }
.rm-dove { font-size: 13.5px; color: var(--ta-muto); margin: 12px 0 0; line-height: 1.5; }
.rm-card-azione { border: 1px solid var(--ta-linea); border-radius: 20px; background: #fff; box-shadow: var(--ta-ombra-piccola); padding: 22px; max-width: 760px; margin: 0 auto; }
.rm-card-azione h2 { font-size: 19px; font-weight: 800; margin: 0 0 8px; }
.rm-card-azione p { font-size: 15px; line-height: 1.6; color: var(--ta-muto); margin: 0 0 12px; }
.rm-card-azione .ra-bottoni { margin: 6px 0 0; }

/* Adult result details */
.ra-risposte-tue.en-most { max-width: 760px; margin: 0 auto; }
.ra-risposte-tue .ra-risposte-tue__vuoto { padding: 4px 0; }
.ra-area__nota { margin-top: 14px; }
.en-disclaimer { max-width: 760px; margin: 24px auto 0; font-size: 13px; text-align: center; }
.en-empty { text-align: center; max-width: 560px; margin: 40px auto; }
.en-empty__btn { justify-content: center; }
.pr-ripeti { gap: 10px; }

@media (max-width: 599px) { .en-most li { flex-direction: column; align-items: flex-start; gap: 2px; } .en-most li span { min-width: 0; } }

/* The profile: the ADHD test and the four questionnaires, one row each (rows: css/it-pagina-risultati.css) */
.en-profile .pr-questionari { max-width: 760px; margin: 0 auto; }
.en-profile .ra-legge-sotto { max-width: 640px; margin-left: auto; margin-right: auto; }
.en-profile__note { max-width: 760px; margin: 14px auto 0; font-size: 13px; line-height: 1.55; color: var(--ta-tenue); text-align: center; }
.en-profile__note a { color: var(--ta-blu); font-weight: 700; }
.pr-q__fai .ta-freccia { width: 16px; height: 16px; flex: none; }
.pr-continua-btn .s-btn { text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .pr-q__barra i { transition: none; } }

/* Guides to read next */
.en-guides { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.en-guides a { display: block; padding: 14px 16px; border: 1px solid var(--ta-linea); border-radius: 16px; background: #fff; color: var(--ta-testo); font-weight: 700; font-size: 15px; line-height: 1.35; text-decoration: none; box-shadow: var(--ta-ombra-piccola); }
.en-guides a:hover { border-color: var(--ta-blu); color: var(--ta-blu); }
.en-guides__why { max-width: 640px; margin: 0 auto 14px; text-align: center; }
.en-guides__all { text-align: center; margin: 14px 0 0; font-size: 14px; }
.en-guides__all a { color: var(--ta-blu); font-weight: 700; }

/* Next step by country */
.en-nextstep .ra-legge-sotto { max-width: 640px; margin-left: auto; margin-right: auto; }
.en-country-box { max-width: 760px; margin: 0 auto; }
.en-country { display: grid; gap: 6px; margin: 0 0 16px; }
.en-country label { font-size: 14px; font-weight: 800; color: var(--ta-testo); }
.en-select { width: 100%; min-height: 52px; padding: 0 14px; border-radius: 14px; border: 1px solid #cfd8e6; background: #fff; color: var(--ta-testo); font: 600 16px var(--ta-font); }
.en-select:focus { outline: none; border-color: var(--ta-blu); box-shadow: 0 0 0 3px var(--ta-blu-chiaro); }
.en-country .en-select + label { margin-top: 10px; }
.en-prompt { margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; background: var(--ta-blu-tenue); font-size: 15px; line-height: 1.5; }
.en-next { border: 1px solid var(--ta-linea); border-radius: 20px; background: #fff; box-shadow: var(--ta-ombra-piccola); padding: 20px 22px; }
.en-next h3 { margin: 0 0 12px; font-size: 19px; line-height: 1.25; font-weight: 800; }
.en-steps, .en-crisis ul { list-style: disc; }
.en-steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 10px; font-size: 15px; line-height: 1.55; color: var(--ta-testo); }
.en-links { list-style: none; margin: 0 0 6px; padding: 12px 0 0; border-top: 1px solid var(--ta-linea); display: grid; gap: 6px; font-size: 14.5px; }
.en-links a { color: var(--ta-blu); font-weight: 700; }
.en-ext { font-weight: 500; color: var(--ta-tenue); font-size: 12.5px; }
.en-source { margin: 10px 0 0; font-size: 12.5px; color: var(--ta-tenue); line-height: 1.5; }
.en-crisis { margin: 16px 0 0; padding: 16px 18px; border-radius: 16px; background: #fff8e1; border: 1px solid #f1dfa6; }
.en-crisis h3 { margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.en-crisis ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.5; }
.en-offer-slot:empty { display: none; }
.en-offer { margin: 16px 0 0; padding: 18px 20px; border: 1px dashed #b9cbe3; border-radius: 18px; background: #fff; }
.en-offer__label { margin: 0 0 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ta-tenue); }
.en-offer h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.en-offer p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.55; color: var(--ta-muto); }
.en-offer__commission { font-size: 13px; color: var(--ta-testo); font-weight: 600; }

/* Print: only the one-page summary */
.print-sheet { display: none; }
@media print {
  /* Take the rest of the page out of the flow so no blank pages print; the visibility rule is a fallback. */
  body > *:not(main):not(script) { display: none !important; }
  main > *:not(.en-results) { display: none !important; }
  #results-app { display: none !important; }
  body * { visibility: hidden !important; }
  .print-sheet, .print-sheet * { visibility: visible !important; }
  .print-sheet { display: block !important; position: absolute; left: 0; top: 0; width: 100%; padding: 0; color: #000; font: 13px/1.5 Inter, Arial, sans-serif; background: #fff; }
  .print-sheet h1 { font-size: 22px; margin: 0 0 4px; }
  .print-sheet h2 { font-size: 15px; margin: 16px 0 6px; }
  .print-sheet ul { margin: 0 0 6px; padding-left: 20px; }
  .ps-date { margin: 0 0 12px; color: #333; }
  .ps-table { width: 100%; border-collapse: collapse; margin: 0 0 8px; }
  .ps-table th, .ps-table td { text-align: left; vertical-align: top; padding: 6px 8px; border: 1px solid #999; }
  .ps-table th { width: 38%; font-weight: 700; background: #f0f0f0; }
  .ps-notes { height: 130px; border: 1px solid #999; }
  .ps-small { font-size: 11px; color: #333; margin: 10px 0 0; }
  @page { margin: 16mm; }
}

/* The two fold-out blocks ("Where you answered most often", "How to read your result"): one look, one width, together */
.en-results .ra-fonti-tendina { max-width: 760px; margin: 0 auto; box-sizing: border-box; }
.en-results .ra-fonti-tendina summary { font-size: 15px; }
.en-mostd .en-most { padding: 0 16px 14px; }
.en-mostsec { margin-bottom: 0; }
.en-mostsec + .ra-blocco { margin-top: 12px; }

/* Right under the result: the short tests still to do (Italy: «Completa il tuo profilo»). A white card like the others. */
.en-complete .pr-continua { max-width: 760px; margin: 0 auto; box-sizing: border-box; background: #fff; border-color: #b9cbe3; }
.en-complete .pr-ico { background: var(--ta-blu-tenue); color: var(--ta-blu); flex: none; }
.en-complete .pr-continua__txt { flex: 1 1 auto; }
.en-complete__count { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 13.5px; font-weight: 700; color: var(--ta-muto); }
.en-complete__count b { font-size: 18px; font-weight: 800; color: var(--ta-blu-scuro); margin-right: -6px; }
.en-complete__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; flex: 1 1 auto; max-width: 220px; }
.en-complete__bar i { height: 8px; border-radius: 999px; background: #dfe6f1; }
.en-complete__bar i.on { background: #2e9e5b; }
.en-complete h2 { font-size: 22px; line-height: 1.25; font-weight: 800; margin: 0 0 8px; color: var(--ta-testo); }
.en-complete .pr-continua p { font-size: 15px; line-height: 1.6; }
.en-complete__steps { list-style: none; margin: 14px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.en-complete__steps li > * { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; box-sizing: border-box; }
.en-complete__steps li.is-fatto > span { background: #e3f3e8; color: #1c6b3a; }
.en-complete__steps li > a { background: #fff; border: 1px solid #b9cbe3; color: var(--ta-blu-scuro); }
.en-complete__steps li > a:hover { border-color: var(--ta-blu); color: var(--ta-blu); background: var(--ta-blu-tenue); }
.en-complete__steps small { font-size: 12.5px; font-weight: 600; color: var(--ta-tenue); }
.en-complete .pr-continua .s-btn { margin-top: 0; text-decoration: none; }
.en-complete__note { display: block; margin-top: 10px; font-size: 13px; color: var(--ta-tenue); }
@media (max-width: 520px) {
  .en-complete .pr-continua { padding: 20px 18px; gap: 12px; }
  .en-complete h2 { font-size: 20px; }
  .en-complete .pr-ico { display: none; }
  .en-complete .pr-continua .s-btn { display: flex; justify-content: center; width: 100%; box-sizing: border-box; font-size: 14px; padding: 0 14px; }
}

/* The e-mail box of js/save.js: inside the page flow, on the same axis and with the look of the other cards */
#results-root > #save-slot:empty { display: none; }
#results-root > #save-slot { margin: 36px 0; }
.en-results .ac-save--box { max-width: 760px; margin: 0 auto; box-shadow: var(--ta-ombra-piccola); }

/* Profile rows still to do: "Start · 3 min" reads as a button, so it is clear these are tests to take */
.en-profile .pr-q--fai { text-decoration: none; }
.en-profile .pr-q--fai .pr-q__testa { align-items: center; margin-bottom: 0; }
.en-profile .pr-q--fai .pr-q__fai { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 1px solid #b9cbe3; border-radius: 999px; background: #fff; text-decoration: none; }
.en-profile .pr-q--fai:hover .pr-q__fai { border-color: var(--ta-blu); background: var(--ta-blu-tenue); }

/* Two buttons in the head ("Your next step", "4 more short tests"): on a phone they stack, both as wide as the column */
@media (max-width: 520px) { .ra-bottoni.en-two .ra-cta { flex: 1 1 100%; justify-content: center; text-align: center; box-sizing: border-box; } }
