/* ============================================================================
   RRGI · the three workshop pages (resilient-data, modular-science, assessment; 2026-10-05).
   On site.css: one readable column, the workshop's facts under its title, numbered steps,
   and each page's own cards (papers, uploads, credit; the node panel brings its own sheet).
   ========================================================================== */

.page.workshop { max-width: 840px; }
/* a workshop page's head is tighter than the dashboard's: on a laptop, signed in, the first card
   (the ORCID box on the modular science page) stays above the fold */
.workshop .head { padding: 36px 0 22px; }
.workshop .back { margin-bottom: 14px; }
.workshop h1 { font-size: clamp(30px, 4.4vw, 42px); }
.workshop .lede { font-size: 16px; margin-top: 12px; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 20px; margin: 18px 0 0; font-size: 15px; }
.facts dt { font: 500 11px/1.9 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.facts dd { margin: 0; color: var(--text-2); }

/* numbered steps: in a row on a wide screen, one under the other on a phone */
.steps { list-style: none; counter-reset: step; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; font-size: 15px; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; min-height: 28px; color: var(--text-2); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px; width: 28px; height: 28px;
  display: grid; place-items: center; font: 500 13px/1 var(--mono); color: var(--accent); border: 1px solid var(--accent);
}
.steps b { color: var(--text); font-weight: 600; }

/* a section's lead-in */
.section-note { color: var(--text-2); margin: -8px 0 16px; }

/* papers, uploads, reviews and credits: rows inside a card */
.item, .paper { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--rule); }
.item:first-child, .paper:first-child { border-top: none; padding-top: 0; }
.paper-title, .item-title { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.paper-meta, .item-meta { font-size: 14px; color: var(--text-3); overflow-wrap: anywhere; }
.paper-counts { color: var(--text-2); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.acts a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--rule-2); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500; }
.acts a:hover { border-color: var(--text-2); text-decoration: none; }
.acts a.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.acts a.primary:hover { background: var(--accent-2); }
.acts button { min-height: 40px; font-size: 14px; }
.card h3.sub { font: 500 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin: 24px 0 8px; }
.card h3.sub:first-of-type { margin-top: 8px; }
.search-label { display: block; font-weight: 500; margin: 24px 0 8px; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.suggest:empty { display: none; }
.suggest button { min-height: 36px; padding: 6px 10px; font-size: 14px; background: var(--surface-2); border-color: var(--rule); color: var(--text); font-weight: 400; }
.suggest button:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.suggest button span { color: var(--text-3); font-size: 12px; margin-left: 4px; }
.suggest .note { margin: 0; font-size: 14px; }
.stack > .suggest { margin-top: 0; }   /* under the ORCID card's name box: the form's own gap */
/* words for a screen reader only (how many names were suggested) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#papers-mine:focus { outline: none; }   /* focused by Try again, so a reader stays with the list; never a control itself */
#papers-found:empty, #papers-mine:empty { display: none; }
#papers-found > h3, #papers-mine > h3 { font: 500 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin: 20px 0 4px; }
#papers-mine > h3:first-child { margin-top: 0; }

/* links to the workshop's tools */
.tools { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.tools li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.tools a { font-weight: 600; }
.tools span { color: var(--text-2); font-size: 15px; }

/* the big call to action on the assessment page */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 16px; }
.cta .button { min-height: 48px; padding: 12px 22px; font-size: 16px; }

@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dd { margin-bottom: 8px; }
}
