/*
 * The studies' space (etudes.mjs, /etudes/ and /etudes/statistiques-video-entreprise/), over apple-service.css (the
 * hero, the logo band, the centred section heads), apple-hub.css (the hub's cards) and apple-project-page.css (the
 * large figures). Here: the update line and the notes, each theme's table in the new design's type, the reading
 * texts. The tables keep their four columns on a hairline, their header in small capitals as the PDF's; on phones each
 * figure becomes a card whose cells are named.
 */

/* The hub's four resources, two across on white, after the logo band. */
.etudes-resources{padding-top:clamp(3.5rem,7vw,6rem)}

/* The five figures to remember: the update line under their H2, the note under the figures. */
.etudes-updated{max-width:46rem;margin:0;font-size:1.0625rem;line-height:1.55;color:var(--label-2);text-wrap:pretty}
.etudes-updated strong{font-weight:600;color:var(--label)}
.etudes-note{width:min(100% - 2 * var(--gutter),var(--content,72rem));margin:clamp(2rem,4vw,3rem) auto 0}
/* Five figures: one row of five on a desktop, three then two on a tablet, never four and one left alone (the
   project pages' auto-fit). Phones keep the project pages' rule (apple-project-page.css, 52rem). */
@media (min-width:52.0625rem){.etudes-figures .case-figures-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:72rem){.etudes-figures .case-figures-list{grid-template-columns:repeat(5,minmax(0,1fr))}}
.etudes-note p{max-width:46rem;margin:0;font-size:1rem;line-height:1.55;color:var(--label-2);text-wrap:pretty}

/* Each theme: its head, then its table on the page's measure. */
.etudes-intro{max-width:46rem;color:var(--label-2)}
.etudes-intro p{margin:0}
.etudes-table-frame{width:min(100% - 2 * var(--gutter),var(--content,72rem));margin:0 auto}
.etudes-table{width:100%;border-collapse:collapse;table-layout:fixed;font-variant-numeric:tabular-nums}
.etudes-table th{padding:0 1.25rem .875rem 0;border-bottom:1px solid var(--label);font-size:.75rem;font-weight:600;line-height:1.3;letter-spacing:.08em;text-transform:uppercase;text-align:left;color:var(--label-2)}
.etudes-table th:nth-child(1){width:38%}
.etudes-table th:nth-child(2){width:22%}
.etudes-table th:nth-child(3){width:14%}
.etudes-table td{padding:1.375rem 1.25rem 1.375rem 0;border-bottom:1px solid var(--separator);vertical-align:top;font-size:.9375rem;line-height:1.5;color:var(--label-2);overflow-wrap:anywhere;text-wrap:pretty}
.etudes-table td:first-child{font-size:1.0625rem;line-height:1.45;color:var(--label);overflow-wrap:normal}
.etudes-table th:last-child,.etudes-table td:last-child{padding-right:0}
/* A figure's number, at the head of its sentence, a step larger and heavier. */
.etudes-value{font-size:1.25em;font-weight:600;letter-spacing:-.01em;color:var(--label);white-space:nowrap}
.etudes-table a,.etudes-text-inner a,.etudes-note a{color:var(--button);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
.etudes-table a:hover,.etudes-text-inner a:hover,.etudes-note a:hover{text-decoration-thickness:2px}

/* The method and how to cite the figures: a column of reading text. */
.etudes-text-inner{width:min(100% - 2 * var(--gutter),46rem);margin:0 auto}
.etudes-text-inner h2{margin:0 0 1.25rem;color:var(--label)}
.etudes-text-inner p{margin:0 0 1rem;font-size:1.125rem;line-height:1.6;color:var(--label-2);text-wrap:pretty}
.etudes-text-inner p:last-child{margin-bottom:0}
.etudes-text + .etudes-text{padding-top:0}

/* Tablets: the source and the date share less room, the method more. */
@media (max-width:64rem){
  .etudes-table th:nth-child(1){width:36%}
  .etudes-table th:nth-child(2){width:24%}
  .etudes-table th:nth-child(3){width:15%}
}

/* Phones: each figure a card, its cells named (the header read once by assistive technology, hidden on screen). */
@media (max-width:48rem){
  .etudes-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  .etudes-table,.etudes-table tbody,.etudes-table tr,.etudes-table td{display:block;width:auto}
  .etudes-table tbody{border-top:1px solid var(--label)}
  .etudes-table tr{padding:1.25rem 0 1.375rem;border-bottom:1px solid var(--separator)}
  .etudes-table td{padding:0;border:0}
  .etudes-table td:first-child{margin-bottom:.875rem}
  .etudes-table td + td{margin-top:.625rem}
  .etudes-table td:not(:first-child)::before{content:attr(data-label);display:block;margin-bottom:.125rem;font-size:.6875rem;font-weight:600;line-height:1.3;letter-spacing:.08em;text-transform:uppercase;color:var(--label-2)}
}
