/* Research notes (/research/ and its articles, plus the cards on the Lab
   testing page). Tokens only, from tokens.css: black, silver and gold. */

.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.rcard { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); text-decoration: none; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.rcard:hover, .rcard:focus-visible { border-color: var(--accent-line); background: var(--raised); }
.rcard__eyebrow { font: var(--fw-med) var(--fs-label)/1.3 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.rcard__title { font: var(--fw-bold) 19px/1.3 var(--font-display); color: var(--text); text-wrap: balance; }
.rcard__desc { font-size: 14px; line-height: 1.6; color: var(--text-body); text-wrap: pretty; }
.rcard__meta { margin-top: auto; font-size: 12px; color: var(--text-faint); }

.rruo { text-wrap: balance; margin: 28px 0 0; padding: 12px 16px; border-left: 2px solid var(--accent-line); font-size: var(--fs-small);
  color: var(--text-dim); max-width: 760px; }

/* Centred column (owner, 27 Nov 2026): the article sits in the middle of the
   page, text still left-aligned; the breadcrumb lines up with it. */
.rsch__art { max-width: 820px; margin-inline: auto; }
.rsch .crumbs { max-width: 820px; margin-inline: auto; }
.rsch__art .prose--page { max-width: none; }
.rsch__head h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; margin: 12px 0 16px; text-wrap: balance; max-width: 24ch; }
.rsch__lede { font-size: 17px; line-height: 1.65; color: var(--text-body); margin: 0 0 14px; text-wrap: pretty; max-width: 62ch; }
.rsch__meta { font-size: 13px; color: var(--text-faint); margin: 0; text-wrap: balance; }
.rsch__head + .rruo { margin: 22px 0 8px; }

.rsch__body { margin-top: 26px; }
.rsch__body p, .rsch__body li { font-size: 16px; line-height: 1.8; color: var(--text-body); text-wrap: pretty; }
.rsch__body h2 { font-size: clamp(22px, 2.6vw, 27px); margin: 44px 0 14px; text-wrap: balance; scroll-margin-top: 120px; }
.rsch__body h3 { font-size: 18px; margin: 30px 0 10px; text-wrap: balance; }
.rsch__body ol { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 16px; }
.rsch__body b { color: var(--text); }
.rsch__body code { font-family: var(--font-mono); font-size: .9em; color: var(--silver-bright); background: var(--surface-hover);
  padding: 1px 5px; border-radius: var(--radius-sm); overflow-wrap: anywhere; }
.rsch__body a { overflow-wrap: anywhere; }
.rsch__body .rnote { margin: 22px 0; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent); color: var(--text); font-size: 15px; }

.rtable { overflow-x: auto; margin: 20px 0 22px; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.rtable table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.rtable th, .rtable td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line-faint); line-height: 1.55; }
.rtable th { font: var(--fw-bold) 12px/1.4 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--text); background: var(--panel); }
.rtable td { color: var(--text-body); }
.rtable tr:last-child td { border-bottom: 0; }

.rsch__notice { margin: 40px 0 0; padding: 20px 22px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); }
.rsch__notice p { margin: 8px 0 0; font-size: var(--fs-small); color: var(--text-dim); text-wrap: pretty; }

.rrel, .rmore { margin-top: 64px; max-width: 820px; margin-inline: auto; }  /* centred with the article (owner, 27 Nov 2026) */
.rrel h2, .rmore h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 22px; text-wrap: balance; }
.rrel__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 18px; max-width: 960px; }
.rmore > p { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 600px) {
  .rcard { padding: 20px; }
  .rrel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .rsch__body p, .rsch__body li { font-size: 15.5px; }
  .rsch__lede { font-size: 16px; }
}
.rtable td:first-child a, .rtable td code { white-space: nowrap; }
