/* Article and secondary-page additions (ported from de-seiten.css). Loaded after en.css. */
body.sito .en-byline { text-decoration: none; color: inherit; font-size: 14px; }
body.sito .en-byline a { color: var(--ta-blu); font-weight: 700; text-decoration: none; }
body.sito .en-byline a:hover { text-decoration: underline; }
body.sito main header p.text-lg a { color: var(--ta-blu); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body.sito .en-brief p { margin: 0 0 8px; }
body.sito .en-brief ul { list-style: disc; padding-left: 1.3rem; margin: 0; }
body.sito .en-brief li { color: var(--ta-blu-scuro); font-size: 16px; line-height: 1.6; font-weight: 500; margin-bottom: 4px; }
body.sito .toc-box ol { list-style: decimal; padding-left: 1.3rem; margin: 0; }
body.sito .toc-box li { margin-bottom: 4px; }
body.sito .toc-box a { text-decoration: none; }
body.sito .toc-box a:hover { text-decoration: underline; }
body.sito main .prose ol li a[target], .prose #sources + ol li { overflow-wrap: anywhere; }
body.sito .prose ul, body.sito .prose ol { margin: 0 0 1rem; }
body.sito .en-more .en-more__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px) { body.sito .en-more .en-more__grid { grid-template-columns: repeat(3, 1fr); } }
body.sito .en-more a { display: block; padding: 16px; background: #fff; border: 1px solid var(--ta-linea); border-radius: 14px; text-decoration: none; }
body.sito .en-more a:hover { border-color: var(--ta-blu); }
body.sito .en-more a small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ta-blu-2); margin-bottom: 6px; }
body.sito .en-more a span { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ta-testo); }
body.sito .en-midcta { background: var(--ta-blu, #00488d); }
.pag-blog .s-h2 { font-size: 28px; font-weight: 800; margin: 0 0 6px; }
.pag-blog .s-h2 em { font-style: normal; color: var(--ta-blu); }
.en-topics { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-weight: 700; }
.en-topics span { display: inline-block; white-space: normal; background: #fff; border: 1px solid var(--ta-linea); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--ta-blu); }
.dc-fonti--seite { border: 1px solid var(--ta-linea); border-radius: 18px; background: #fff; }

/* Text pages (methodology, about, privacy, terms ...): wrap the body in <div class="s-scheda s-doc"> */
.s-doc .en-updated { font-weight: 700; margin: 0 0 14px; }
.s-doc h2 { margin: 2rem 0 .7rem; }
.s-doc p { margin: 0 0 .9rem; }
.s-doc ol { padding-left: 1.4rem; }
.s-doc ol.en-steps { list-style: decimal; display: grid; gap: 8px; }
.s-doc ul, .s-doc ol { margin: 0 0 1rem; }
.s-doc ul { list-style: disc; }
.s-doc table { display: block; max-width: 100%; overflow-x: auto; }
.s-doc table { border-collapse: collapse; width: 100%; margin: 0 0 1.2rem; font-size: 15px; }
.s-doc th, .s-doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--ta-linea); }
.s-doc th { background: var(--ta-blu-tenue); color: var(--ta-blu-scuro); font-weight: 800; }
.s-doc td a { overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; color: var(--ta-blu); }
.s-doc { overflow-wrap: anywhere; }
.en-note { background: var(--ta-blu-tenue); border: 1px solid var(--ta-linea); border-radius: 18px; padding: 16px 20px; margin: 0 0 1.4rem; color: var(--ta-blu-scuro); font-size: 15px; line-height: 1.6; }
.en-note--yellow { background: #fff8e6; color: #5a3a07; margin-top: 1.6rem; }
.pa-pagina { padding: 56px 0; }
.pa-404 { max-width: 640px; margin: 0 auto; text-align: center; align-items: center; padding: 36px 24px; display: flex; flex-direction: column; gap: 6px; }
.pa-ico .material-symbols-outlined { font-size: 48px; color: var(--ta-blu); }
.pa-404__num { font-size: 64px; line-height: 1; font-weight: 800; color: var(--ta-blu-scuro); margin: 0; }
.pa-404__t { font-size: 22px; font-weight: 800; margin: 4px 0 0; color: var(--ta-testo); }
.pa-404__p, .pa-404__nota { color: var(--ta-muto); font-size: 15.5px; line-height: 1.6; margin: 6px 0; }
.pa-404__nota { font-size: 13.5px; }
.pa-404 .s-bottoni { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 14px 0 6px; }
.pag-h1 { overflow-wrap: break-word; hyphens: manual; }  /* English headings are not hyphenated: "assess-ment" in a title looks broken */
@media (max-width: 480px) { .pag-h1 { font-size: 29px; } }
.pag-contatti .s-scheda a.text-primary { color: var(--ta-blu); }
.prose #sources + ol li { overflow-wrap: anywhere; }
main h2, main h3 { hyphens: manual; overflow-wrap: break-word; }
/* Tables in articles on phones: stay inside the screen */
@media (max-width: 640px) {
  body.sito .prose table:not(.fact-table) { display: table; width: 100%; table-layout: auto; border-collapse: separate; border-spacing: 0; }
  body.sito .prose table:not(.fact-table) th, body.sito .prose table:not(.fact-table) td { padding: 9px 8px; font-size: 13.5px; overflow-wrap: break-word; }
  body.sito .prose table:not(.fact-table) td { -webkit-hyphens: auto; hyphens: auto; }
  body.sito .prose table:not(.fact-table) tr > :first-child { min-width: 6.8em; }
}
/* break-word gives every column room for its longest word, so "Estimate" or "55.8%" is not cut in two.
   Measured on every page with a table (4 December 2026): nothing is wider than the screen from 344 px up.
   At 320 px one three-column table would be, so the smallest phones keep "anywhere". */
@media (max-width: 340px) {
  body.sito .prose table:not(.fact-table) th, body.sito .prose table:not(.fact-table) td { overflow-wrap: anywhere; }
}
/* The mini test inside a guide: a sandboxed frame (/embed/mini-test). Its height is reserved here for each width,
   so the text below does not jump when it loads; js/mini-host.js adjusts it if the content needs more. The wide
   layout inside the frame starts at a frame width of 600px, which is a page width of 648px. */
.en-mini { margin: 0 0 2rem; }
/* The height is reserved before the frame loads, so the text below does not jump. Measured 4 Dec 2026 on question 1
   (the tallest screen) with the frame as wide as the page minus 48px; js/mini-host.js then fits it to the pixel. */
.en-mini iframe { display: block; width: 100%; height: 930px; border: 0; background: transparent; color-scheme: light; }
@media (min-width: 360px) { .en-mini iframe { height: 894px; } }
@media (min-width: 390px) { .en-mini iframe { height: 853px; } }
@media (min-width: 430px) { .en-mini iframe { height: 777px; } }
@media (min-width: 520px) { .en-mini iframe { height: 736px; } }
@media (min-width: 648px) { .en-mini iframe { height: 560px; } }
@media (min-width: 768px) { .en-mini iframe { height: 523px; } }
