/* Studio: the site's light look (PP Editorial Old, #e9e9e9, burgundy) set for long reading and for copying.
   Tokens and fonts come from /legal/legal.css; this file only adds the study layout. */
.legal-top { max-width: 1180px; }
.study { max-width: 1180px; margin: 0 auto; padding: 56px 24px 96px; }
.study__head { max-width: 820px; margin-bottom: 40px; }
.study__eyebrow { margin: 0 0 16px; font-size: 17px; font-style: italic; font-weight: 200; }
.study h1 { margin: 0 0 18px; font-size: clamp(40px, 6.2vw, 80px); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; color: var(--accent); }
.study__byline { margin: 0 0 28px; font-size: 20px; font-style: italic; font-weight: 200; }
.study__lead { margin: 0 0 32px; font-size: 25px; line-height: 1.45; font-weight: 400; }
.study__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.study__btn {
  display: inline-block; padding: 13px 26px; border: 1px solid var(--accent); border-radius: 50px;
  background: var(--accent); color: #e9e9e9; font-size: 19px; line-height: 1.2; text-decoration: none;
}
.study__btn:hover, .study__btn:focus-visible { background: #000; border-color: #000; color: #e9e9e9; }
.study__btn-meta { font-size: 16px; font-weight: 200; opacity: .85; }
.study__btn--ghost { background: transparent; color: #000; border-color: rgba(0, 0, 0, .55); }
.study__btn--ghost:hover, .study__btn--ghost:focus-visible { background: #000; color: #e9e9e9; }

.study__grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 24px; font-size: 17px; line-height: 1.35; }
.toc summary { cursor: pointer; margin-bottom: 12px; font-weight: 700; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--rule); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; }
.toc a:hover, .toc a:focus-visible, .toc a[aria-current] { border-left-color: var(--accent); color: var(--accent); }

.study__body { max-width: 740px; font-size: 21px; line-height: 1.6; hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty; }
.study__body p, .study__body li, .study__body dd { font-weight: 400; }
.study__body p { margin: 0 0 18px; }
.study__body strong { font-weight: 700; }
.study__body a { text-decoration-color: rgba(0, 0, 0, .45); }
.study__body a:hover { text-decoration-color: currentColor; }
.study__sec { scroll-margin-top: 20px; }
.study h2 { margin: 64px 0 16px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: clamp(28px, 3.4vw, 38px); font-weight: 400; line-height: 1.15; }
.study h3 { margin: 32px 0 10px; font-size: 21px; font-weight: 700; line-height: 1.3; scroll-margin-top: 20px; }
.anchor { margin-left: .4em; font-size: .6em; font-weight: 200; text-decoration: none; color: rgba(0, 0, 0, .35); opacity: 0; }
.anchor::before { content: "#"; }
.study h2:hover .anchor, .anchor:focus-visible { opacity: 1; }

/* key figures */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 12px; padding: 0; list-style: none; }
.figures li { padding: 18px 20px 16px; border-radius: 14px; background: rgba(215, 215, 215, .74); }
.figures__n { display: block; font-size: 40px; line-height: 1.05; color: var(--accent); }
.figures__t { display: block; margin-top: 6px; font-size: 17px; line-height: 1.35; font-weight: 400; }

/* lists */
.list { margin: 0 0 18px; padding-left: 22px; }
.list li { margin-bottom: 8px; }
.list--summary { padding-left: 0; list-style: none; }
.list--summary li { padding: 0 0 0 18px; position: relative; }
.list--summary li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.list--sources { font-size: 18px; line-height: 1.45; }
.srcurl { display: none; }

/* figure */
.chart { margin: 28px 0 32px; padding: 24px 24px 18px; border-radius: 14px; background: rgba(215, 215, 215, .74); }
.chart__title { margin: 0 0 4px; font-size: 24px; line-height: 1.2; font-weight: 700; }
.chart__sub { margin: 0 0 18px; font-size: 17px; font-weight: 200; }
.chart__list { margin: 0; padding: 0; list-style: none; }
.chart__row { display: grid; grid-template-columns: minmax(150px, 36%) minmax(0, 1fr) 40px; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 17px; line-height: 1.25; }
.chart__label { text-align: right; }
.chart__track { display: block; }
.chart__bar { display: block; height: 22px; background: var(--accent); }
.chart__bar--ok { background: rgba(0, 0, 0, .28); }
.chart__value { font-weight: 700; }
.chart__caption { margin-top: 14px; font-size: 16px; line-height: 1.4; font-weight: 200; font-style: italic; }

/* tables */
.tablewrap { margin: 22px 0 28px; }
.study__table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.4; }
.study__table caption { padding: 0 0 10px; text-align: left; font-size: 17px; font-style: italic; font-weight: 200; }
.study__table th, .study__table td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-weight: 400; }
.study__table thead th { border-bottom: 1px solid #000; font-weight: 700; }
.study__table tbody th { font-weight: 400; }
.study__table--indicatori td { white-space: nowrap; }
.copybtn {
  margin-top: 10px; padding: 7px 16px; border: 1px solid rgba(0, 0, 0, .55); border-radius: 50px; background: transparent;
  color: #000; font: inherit; font-size: 16px; line-height: 1.2; cursor: pointer;
}
.copybtn:hover, .copybtn:focus-visible { background: #000; color: #e9e9e9; }
.copybtn[data-done] { background: var(--accent); border-color: var(--accent); color: #e9e9e9; }

/* glossary */
.glossary { margin: 0 0 24px; }
.glossary div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.glossary dt { font-weight: 700; }
.glossary dd { margin: 2px 0 0; }

/* citation */
.cite { margin: 0 0 14px; padding: 18px 22px; border-left: 3px solid var(--accent); background: rgba(215, 215, 215, .74); }
.cite p { margin: 0; font-size: 19px; line-height: 1.5; }
.cite__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 18px; }
.cite__actions .copybtn { margin-top: 0; }
.contacts { font-size: 20px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 900px) {
  .study { padding: 32px 18px 72px; }
  .study__grid { display: block; }
  .toc { position: static; margin: 0 0 28px; padding: 14px 18px; border-radius: 14px; background: rgba(215, 215, 215, .74); }
  .toc summary { margin: 0; }
  .toc details[open] summary { margin-bottom: 10px; }
  .study__lead { font-size: 22px; }
  .study__body { font-size: 20px; }
  .figures { grid-template-columns: 1fr; }
  .chart { padding: 18px 16px 14px; }
  .chart__row { grid-template-columns: 1fr 34px; row-gap: 4px; }
  .chart__label { grid-column: 1 / -1; text-align: left; }
  .chart__track { grid-column: 1; }
  .chart__value { grid-column: 2; }
  /* the wide tables become stacked cards: the labels stay attached to the values when copied */
  .study__table caption { display: block; width: 100%; }
  .study__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .study__table, .study__table tbody, .study__table tr, .study__table th, .study__table td { display: block; width: 100%; }
  .study__table tr { margin: 0 0 14px; padding: 4px 0 8px; border-bottom: 1px solid #000; }
  .study__table th, .study__table td { padding: 5px 0; border: 0; }
  .study__table tbody th { font-weight: 700; }
  .study__table td::before { content: attr(data-label) ": "; display: block; font-size: 14px; font-style: italic; font-weight: 200; }
  .study__table--indicatori tbody th::before { content: none; }
  .study__table--indicatori td { display: inline-block; width: auto; margin-right: 14px; white-space: normal; }
  .study__table--indicatori td::before { display: inline; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  body { background: #fff; }
  .legal-top, .legal-foot, .toc, .study__actions, .copybtn, .cite__actions, .anchor { display: none !important; }
}

/* chart bars: one class per bar (no inline styles under the CSP) */
.chart__bar--1{width:100.0%}
.chart__bar--2{width:13.9%}
.chart__bar--3{width:9.6%}
.chart__bar--4{width:6.2%}
.chart__bar--5{width:5.7%}
.chart__bar--6{width:2.4%}
