/* resources.css: styles used only by this part of the site, loaded after site.css (inc/layout.php). Split from site.css in v61.
   Tokens, base and shared parts stay in site.css. DESIGN.md describes them. */
/* ===== Resources page, since v51 =====
   1. The knowledge base: heading on the left, text on the right from 900 px. The text fills its column.
   2. Three collections as three large keys. Each carries a small screen that previews its page from the live data:
      a level meter (Studies), a dot map (Conferences), a matrix of deadlines by month (Innovation Programs). Nothing moves. */
.res-mission { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4) var(--space-6); }
@media (min-width: 900px) { .res-mission { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; } .res-mission h2 { font-size: var(--step-2); } }
.res-mission-text { display: grid; gap: var(--space-3); }
.res-mission-text p { text-wrap: pretty; }
.res-mission-text p:first-child { font-size: var(--step-1); line-height: 1.4; }
.res-mission-text a { text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.on-paper .res-mission-text a { color: var(--link); }
.res-h { margin-bottom: var(--space-5); }
.res-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5) var(--space-4); padding-left: var(--drop); padding-bottom: var(--drop); }
@media (min-width: 640px) and (max-width: 1099.98px) { .res-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .res-cards li:last-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .res-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.res-cards li { display: flex; }
.res-card { flex: 1; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-4); }
.res-card > :not(.res-screen) { margin-inline: var(--space-2); }
.res-name { font-size: var(--step-2); line-height: 1.1; }
@media (min-width: 1100px) { .res-name { font-size: var(--step-1); } }
.res-figure { font-family: var(--font-body); font-weight: 600; font-stretch: 100%; font-size: var(--step--1); line-height: 1.45; padding-top: var(--space-3); border-top: 2px solid var(--ink); font-variant-numeric: tabular-nums; }
.res-go { margin-top: auto; font-size: var(--step--1); }
/* The screen: a dark display with an ink frame, like the display of an instrument */
.res-screen { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: var(--space-3); background: var(--night); border: var(--line) solid var(--ink); border-radius: var(--radius-s);
  box-shadow: inset 0 0 0 2px var(--night-2); overflow: hidden; }
.res-meter { display: flex; align-items: flex-end; gap: 5%; width: 100%; height: 100%; padding-inline: 4%; background: repeating-linear-gradient(to top, transparent 0 calc(20% - 1px), rgb(255 255 255 / 0.12) calc(20% - 1px) 20%); }
.res-meter i { flex: 1; height: var(--h); min-height: 6%; border: 2px solid var(--ink); border-bottom: 0; border-radius: 4px 4px 0 0; box-shadow: 0 0 0 1px var(--white); }
.res-matrix { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4%; width: 100%; height: 100%; }
.res-col { display: grid; grid-template-rows: repeat(5, minmax(0, 1fr)) auto; gap: 6%; justify-items: center; min-width: 0; }
.res-col i { width: 100%; max-width: 1.1rem; aspect-ratio: 1; align-self: center; border-radius: 3px; background: rgb(255 255 255 / 0.12); }
.res-col i.is-lit { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--white); }
.res-col i.tone-0 { background: var(--tone-0); } .res-col i.tone-1 { background: var(--tone-1); } .res-col i.tone-2 { background: var(--tone-2); } .res-col i.tone-3 { background: var(--tone-3); } .res-col i.tone-4 { background: var(--tone-4); }
.res-col b { font: 600 0.62rem/1 var(--font-body); color: var(--muted-on-night); }
@media (max-width: 380px) { .res-col b { font-size: 0.5rem; } }
