/* /research, the research record. Colours come from the site variables (lab_updates.css, news.css). */
.rr-counts{ display:flex; flex-wrap:wrap; gap:14px 34px; list-style:none; padding:0; margin:22px 0 0; }
.rr-counts li{ display:flex; flex-direction:column; }
.rr-counts b{ font-family:var(--mono); font-size:28px; color:var(--ink); letter-spacing:-.01em; }
.rr-counts span{ font-size:13px; color:var(--ink-dim); }

.rr-ft{ display:flex; flex-direction:column; gap:6px; max-width:820px; margin:8px 0 34px; padding:18px 20px;
  background:linear-gradient(135deg, var(--brand-soft), var(--card)); border:1px solid var(--brand-bd);
  border-radius:var(--radius); box-shadow:var(--shadow); color:var(--ink); text-decoration:none; }
.rr-ft:hover{ transform:translateY(-2px); }
.rr-ft-k{ font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--brand); }
.rr-ft b{ font-size:19px; line-height:1.3; }
.rr-ft span{ font-size:15px; line-height:1.5; color:var(--ink-soft); }
.rr-ft .rr-ft-cta{ color:var(--brand); font-weight:700; }
@media (prefers-reduced-motion: no-preference){ .rr-ft{ transition:transform .15s ease; } }

.rr-h{ font-size:22px; margin:34px 0 14px; color:var(--ink); }
.rr-sub{ max-width:820px; color:var(--ink-soft); margin:-4px 0 14px; }
.rr-sub a{ color:var(--brand); font-weight:600; }

.rr-phases{ display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:12px; list-style:none;
  padding:0; margin:0; }
.rr-phases a{ display:flex; flex-direction:column; gap:4px; height:100%; padding:14px 16px; background:var(--card);
  border:1px solid var(--line); border-radius:var(--radius); color:var(--ink); text-decoration:none; }
.rr-phases a:hover{ border-color:var(--brand-bd); }
.rr-phases b{ font-size:16px; }
.rr-phases span{ font-size:14px; line-height:1.45; color:var(--ink-soft); }
.rr-phases .rr-when{ font-size:12px; color:var(--ink-dim); font-family:var(--mono); }

.rr-filter{ display:flex; flex-wrap:wrap; gap:6px; margin:0 0 10px; }
.rr-filter button{ font:inherit; font-size:13px; padding:5px 11px; border-radius:999px; border:1px solid var(--line);
  background:var(--card); color:var(--ink-soft); cursor:pointer; }
.rr-filter button.on{ border-color:var(--brand); color:var(--brand); font-weight:700; }

.rr-phase{ max-width:860px; margin:26px 0 0; }
.rr-phase h3{ font-size:19px; margin:0 0 6px; color:var(--ink); }
.rr-phase h3 .rr-when{ font-size:13px; font-weight:400; color:var(--ink-dim); font-family:var(--mono); margin-left:8px; }
.rr-learned{ font-size:15px; line-height:1.55; color:var(--ink-soft); margin:0 0 12px; }
.rr-list{ list-style:none; padding:0; margin:0 0 8px; border-left:2px solid var(--line); }
.rr-item{ position:relative; padding:2px 0 20px 24px; }
.rr-item::before{ content:""; position:absolute; left:-7px; top:8px; width:12px; height:12px; border-radius:50%;
  background:var(--card); border:2px solid var(--brand-bd); }
.rr-item-head{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.rr-date{ font-family:var(--mono); font-size:13px; color:var(--ink-dim); }
.rr-tag{ font-size:11.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--brand); }
.rr-tag.rr-k-text{ color:var(--ink-dim); }
.rr-item h4{ font-size:16.5px; margin:4px 0 4px; color:var(--ink); }
.rr-item p{ font-size:15px; line-height:1.55; color:var(--ink-soft); margin:0; }
.rr-item .rr-num{ margin-top:6px; font-family:var(--mono); font-size:13px; color:var(--ink); }
.rr-num span{ font-family:inherit; font-weight:700; color:var(--ink-dim); margin-right:6px; }

.rr-data{ width:100%; max-width:980px; table-layout:fixed; border-collapse:collapse; font-size:14.5px; margin:0 0 20px; }
.rr-data th, .rr-data td{ text-align:left; vertical-align:top; padding:9px 10px; border-bottom:1px solid var(--line); }
.rr-data th{ color:var(--ink); font-weight:600; width:26%; }
.rr-data td{ color:var(--ink-soft); }
.rr-data .rr-size{ font-family:var(--mono); font-size:13px; color:var(--ink); width:30%; overflow-wrap:anywhere; }
.rr-more{ margin:28px 0 48px; }
.rr-more > span{ color:var(--ink-dim); font-weight:400; }

@media (max-width:640px){
  .rr-counts b{ font-size:22px; }
  .rr-data, .rr-data tbody, .rr-data tr, .rr-data th, .rr-data td{ display:block; width:auto; }
  .rr-data tr{ border-bottom:1px solid var(--line); padding:6px 0; }
  .rr-data th, .rr-data td{ border:0; padding:2px 0; }
  .rr-data .rr-size{ white-space:normal; }
}

/* ---- the charts (palette validated: models #257de0, gate #c2410c, fine-tuning #00b894 with labels) ---- */
.rr-viz{ --s-models:#257de0; --s-gate:#c2410c; --s-ft:#00b894; --s-old:#a08b7c; }
.rr-fig{ margin:26px 0 8px; padding:18px 18px 8px; background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius); box-shadow:var(--shadow); }
.rr-fig figcaption{ font-size:13.5px; line-height:1.5; color:var(--ink-dim); margin:6px 2px 4px; }
.rr-fig h3{ font-size:16px; margin:0 0 2px; color:var(--ink); }
.rr-legend{ display:flex; flex-wrap:wrap; gap:6px 18px; list-style:none; padding:0; margin:4px 0 6px; font-size:13.5px; color:var(--ink-soft); }
.rr-legend li{ display:flex; align-items:center; gap:7px; }
.rr-sw{ display:inline-block; width:11px; height:11px; border-radius:3px; background:var(--c); margin-right:5px; vertical-align:-1px; }
.rr-sw.rr-s-gate{ --c:var(--s-gate); } .rr-sw.rr-s-models{ --c:var(--s-models); } .rr-sw.rr-s-ft{ --c:var(--s-ft); } .rr-sw.rr-s-old{ --c:var(--s-old); }
#rr-river, #rr-lanes{ width:100%; }
.rr-viz svg{ display:block; overflow:visible; font-family:var(--font); }
.rr-grid{ stroke:var(--line-2); stroke-width:1; }
.rr-axis{ font-size:11.5px; fill:var(--ink-dim); }
.rr-band-0{ fill:var(--tint-a); } .rr-band-1{ fill:#ffffff; }
.rr-band-t{ font-size:11.5px; font-weight:700; fill:var(--ink-soft); letter-spacing:.02em; }
.rr-area{ stroke:#ffffff; stroke-width:2; stroke-linejoin:round; }
.rr-area.rr-s-models{ fill:var(--s-models); fill-opacity:.82; }
.rr-area.rr-s-gate{ fill:var(--s-gate); fill-opacity:.9; }
.rr-crest{ fill:none; stroke:var(--ink); stroke-width:2; stroke-linejoin:round; opacity:.55; }
.rr-direct{ font-size:12.5px; font-weight:700; fill:#ffffff; paint-order:stroke; stroke:rgba(0,0,0,.25); stroke-width:3px; }
.rr-pin{ stroke:var(--ink); stroke-width:1; stroke-dasharray:2 3; opacity:.45; }
.rr-pin-dot{ fill:var(--ink); stroke:#ffffff; stroke-width:2; cursor:help; }
.rr-pin-dot:hover, .rr-pin-dot:focus{ r:7; fill:var(--brand); outline:none; }
.rr-rel{ stroke:var(--s-gate); stroke-width:2; stroke-linecap:round; cursor:help; }
.rr-rel:hover{ stroke-width:4; }
.rr-hair{ stroke:var(--ink); stroke-width:1; opacity:.5; }
.rr-lane{ stroke:var(--line); stroke-width:1; }
.rr-lane-t{ font-size:12.5px; font-weight:600; fill:var(--ink-soft); }
.rr-lane-t-sm{ font-size:11px; }
.rr-dot{ stroke:#ffffff; stroke-width:2; cursor:pointer; }
.rr-dot:hover, .rr-dot:focus{ r:8.5; outline:none; }
.rr-g-gate{ fill:var(--s-gate); } .rr-g-models{ fill:var(--s-models); } .rr-g-ft{ fill:var(--s-ft); } .rr-g-old{ fill:var(--s-old); }
.rr-tip{ position:fixed; z-index:60; max-width:300px; padding:9px 11px; font-size:13px; line-height:1.45; color:var(--ink);
  background:var(--card); border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow); pointer-events:none; }
.rr-tip .rr-tip-n{ font-family:var(--mono); font-size:12px; color:var(--ink-soft); }
.rr-tablewrap{ margin:4px 0 0; }
.rr-tablewrap summary{ font-size:13px; color:var(--brand); cursor:pointer; margin:4px 2px 8px; }
.rr-wk{ border-collapse:collapse; font-size:13px; margin:0 0 10px; }
.rr-wk th, .rr-wk td{ padding:4px 10px; border-bottom:1px solid var(--line-2); text-align:right; }
.rr-wk th:first-child, .rr-wk td:first-child{ text-align:left; }
.rr-item:target h4, .rr-item.rr-flash h4{ color:var(--brand); }

/* ---- second pass: smooth river, zoom of November, numbered turning points, spread lanes ---- */
.rr-area{ stroke:none; }
.rr-seam{ fill:none; stroke:#ffffff; stroke-width:2; }
.rr-crest{ fill:none; stroke:var(--ink); stroke-width:1.6; opacity:.45; }
.rr-direct{ font-size:13px; font-weight:700; fill:#ffffff; paint-order:stroke; stroke:rgba(28,20,16,.35); stroke-width:3px; letter-spacing:.02em; }
.rr-zoom-mark{ fill:var(--brand); opacity:.85; }
.rr-pin{ stroke:var(--ink); stroke-width:1; stroke-dasharray:2 3; opacity:.4; }
.rr-pin-g{ cursor:help; outline:none; }
.rr-pin-dot{ fill:var(--ink); stroke:#ffffff; stroke-width:2; transition:fill .15s ease; }
.rr-pin-g:hover .rr-pin-dot, .rr-pin-g:focus .rr-pin-dot{ fill:var(--brand); }
.rr-pin-n{ font-size:11px; font-weight:700; fill:#ffffff; pointer-events:none; }
.rr-relbar{ fill:var(--s-gate); }
.rr-relnum{ font-size:10.5px; fill:var(--ink-soft); font-family:var(--mono); }
.rr-sw.rr-s-rel{ --c:var(--s-gate); width:5px; height:13px; border-radius:2px; }
.rr-lane-bg-0{ fill:var(--tint-a); } .rr-lane-bg-1{ fill:#ffffff; }
.rr-pins{ list-style:none; counter-reset:none; padding:0; margin:14px 0 6px; display:grid; gap:8px 26px;
  grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); font-size:14.5px; line-height:1.45; color:var(--ink-soft); }
.rr-pins li{ display:flex; gap:9px; align-items:baseline; }
.rr-pin-b{ flex:none; display:inline-grid; place-items:center; width:21px; height:21px; border-radius:50%; background:var(--ink);
  color:#ffffff; font-size:11px; font-weight:700; transform:translateY(-1px); }
.rr-pins .rr-date{ flex:none; }
.rr-item.rr-flash{ background:var(--brand-soft); border-radius:10px; transition:background .4s ease; }
@media (prefers-reduced-motion: reduce){ .rr-pin-dot, .rr-item.rr-flash{ transition:none; } }
