/* ---- Resources (resources/, written by build_resources.py, the only pages that load this
   file, so the home page carries none of it): a short dark head under the
   header, then reports (cover beside the words) and posts (a three-column grid, each chart
   whole on its own dark ground, as it was posted). ---- */
.r-head { background: var(--night); color: #ffffff; padding: 152px 0 clamp(56px, 7vw, 88px); }
.r-head .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.dir-c .r-head .c-eyebrow { color: rgb(255 255 255 / 0.62); margin: 0; }
.r-head .c-eyebrow a { color: #ffffff; text-decoration: none; }
.r-head .c-eyebrow a:hover { text-decoration: underline; }
.dir-c .r-head h1 { color: #ffffff; max-width: 20em; font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.75rem); line-height: 1.04; letter-spacing: -0.035em; }
.dir-c .r-head .lede { color: rgb(255 255 255 / 0.78); max-width: 34em; margin-top: calc(-1 * var(--s1)); }
.r-by { font: 500 13px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: rgb(255 255 255 / 0.62); }
.dir-c .r-head .btn-primary { background: #ffffff; color: var(--c-ink); }
.dir-c .r-head .btn-primary:hover { background: #e9ecec; }
.r-head :focus-visible { outline-color: #ffffff; }

.r-body { padding: clamp(40px, 5vw, 64px) 0 clamp(96px, 11vw, 160px); }
.r-filter { margin-bottom: var(--s5); }
.r-filter .c-tab[aria-pressed="true"] { color: var(--c-ink); font-weight: 500; border-bottom-color: var(--c-ink); }
.r-group + .r-group { margin-top: clamp(56px, 6vw, 88px); }
.r-group[hidden] { display: none; }
.dir-c .r-group h2 { font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-mute); padding-bottom: var(--s2); border-bottom: 1px solid var(--c-line); margin-bottom: var(--s4); }
.r-reports, .r-posts { list-style: none; }
.r-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s4); }
.r-reports { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }

.r-card { display: flex; flex-direction: column; gap: var(--s3); height: 100%; text-decoration: none; color: inherit; }
.r-pic { position: relative; border-radius: 10px; overflow: hidden; background: #141618; aspect-ratio: 4 / 3; }
.r-pic img, .r-pic .r-tile { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.r-card:hover .r-pic img { transform: scale(1.02); }
.r-txt { display: flex; flex-direction: column; gap: 10px; }
.r-meta { font: 500 12px/1.3 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-mute); }
.dir-c .r-card h3 { font-size: 1.3125rem; line-height: 1.22; letter-spacing: -0.02em; }
.r-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.r-txt p:not(.r-meta) { color: var(--c-text); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.r-more { font-size: 14px; font-weight: 500; color: var(--c-ink); }
.r-more::after { content: " \2192"; }
/* a report: its cover beside the words, on a grey ground */
.r-card.r-report { flex-direction: row; align-items: center; gap: var(--s4); padding: var(--s4); background: var(--c-grey); border-radius: 12px; }
.r-report .r-pic { flex: none; width: clamp(120px, 14vw, 168px); aspect-ratio: 600 / 776; background: #ffffff; border-radius: 4px; box-shadow: 0 1px 2px rgb(15 17 18 / 0.08), 0 14px 32px -14px rgb(15 17 18 / 0.35); }
.r-report .r-pic img { object-fit: cover; }
.dir-c .r-report h3 { font-size: clamp(1.375rem, 1.2rem + 0.5vw, 1.625rem); }

/* the typographic tile, where an item has no picture of its own */
.r-tile { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 8%; background: radial-gradient(ellipse 80% 70% at 85% 0%, #23384f 0%, transparent 70%), var(--night); }
.r-tile span { color: #ffffff; font-weight: 500; font-size: clamp(1.125rem, 0.9rem + 0.8vw, 1.5rem); line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.r-report .r-tile span { font-size: 15px; }

/* the featured band: large cards above the filter, chosen by `featured:` in a source */
.r-feats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-bottom: clamp(56px, 6vw, 88px); }
.r-feat { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--c-grey); border-radius: 14px; overflow: hidden; }
.r-feat .r-pic { flex: none; aspect-ratio: 1200 / 848; border-radius: 0; background: #f5f5f3; } /* the light ground our posters are drawn on */
.r-feat:hover .r-pic img { transform: scale(1.015); }
.r-feat-video .r-pic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; translate: -50% -50%; border-radius: 50%;
  background: rgb(12 14 15 / 0.84) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") no-repeat 54% 50% / 30px; transition: background-color .15s; }
.r-feat-video:hover .r-pic::after { background-color: var(--c-ink); }
.r-feat .r-txt { flex: 1; gap: 12px; padding: var(--s4); }
.dir-c .r-feat h3 { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); line-height: 1.12; letter-spacing: -0.025em; }
.r-feat:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.r-feat .r-txt p:not(.r-meta) { font-size: 16px; -webkit-line-clamp: 4; margin-bottom: 12px; }
.r-feat .btn { align-self: flex-start; display: inline-flex; align-items: center; margin-top: auto; }
.dir-c .r-feat:hover .btn-primary { background: #2b2f31; }
/* one featured item alone (before an embargo lifts): picture beside the words */
.r-feats:has(> li:only-child) { grid-template-columns: minmax(0, 1fr); }
.r-feats > li:only-child .r-feat { flex-direction: row; }
.r-feats > li:only-child .r-pic { width: 56%; aspect-ratio: 1200 / 848; }
.r-feats > li:only-child .r-txt { justify-content: center; }
.r-feats > li:only-child .btn { margin-top: 0; }

/* an item's page: the words, and its picture beside them */
.r-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s5) clamp(48px, 7vw, 112px); align-items: start; }
.r-prose { max-width: 38em; color: var(--c-text); font-size: 17px; line-height: 1.65; }
.r-prose > * + * { margin-top: 1.1em; }
.r-prose ol, .r-prose ul { padding-left: 1.3em; }
.r-prose li + li { margin-top: 0.5em; }
.r-prose strong { color: var(--c-ink); font-weight: 500; }
.r-prose.r-short { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem); line-height: 1.5; color: var(--c-ink); letter-spacing: -0.01em; }
.r-fig { position: sticky; top: var(--s4); }
.r-img { border-radius: 10px; overflow: hidden; background: #121416; }
.r-fig img, .r-fig video { display: block; width: 100%; height: auto; }
.r-fig.r-report { max-width: 380px; justify-self: center; }
.r-report .r-img { background: #ffffff; border-radius: 4px; box-shadow: 0 1px 2px rgb(15 17 18 / 0.08), 0 24px 48px -20px rgb(15 17 18 / 0.35); }
.r-credit { margin-top: 12px; font-size: var(--t-tiny); line-height: 1.5; color: var(--c-mute); }
.r-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.r-head .c-eyebrow { align-items: flex-start; }
.r-head .c-eyebrow::before { margin-top: 3px; }
.r-head .c-eyebrow > span { line-height: 1.1; }
@media (max-width: 720px) { .r-head .c-eyebrow > span { line-height: 1.6; } .r-head .c-eyebrow::before { margin-top: 6px; } }

@media (max-width: 1080px) {
  .r-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r-reports { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
}
@media (max-width: 720px) {
  .r-head { padding-top: 112px; }
  .r-posts { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .r-card.r-report { padding: var(--s3); gap: var(--s3); align-items: flex-start; }
  .r-report .r-pic { width: 96px; }
  .r-report .r-txt p:not(.r-meta) { -webkit-line-clamp: 4; }
  .r-feats { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .r-feats > li:only-child .r-feat { flex-direction: column; }
  .r-feats > li:only-child .r-pic { width: auto; }
  .r-feat .r-txt { padding: var(--s3); }
  .r-split { grid-template-columns: minmax(0, 1fr); }
  .r-fig { position: static; order: -1; }
  .r-fig.r-report { display: none; } /* the head already carries the title and the download */
  .dir-c .r-filter { width: fit-content; gap: var(--s4); }
  .r-prose { font-size: 16px; }
  .r-head .actions, .r-head .actions .btn { width: 100%; }
}
