/* Kit v3 Research: the ranked field of the approved research feeds. Tokens from v3.css only. Logical properties, so the
   page works right to left. Red marks only the selected record and the selected year. */
@font-face { font-family: "Plex"; src: url(vendor/fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; src: url(vendor/fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* The field: a measured ground edge to edge, the record tiles in its centre */
.rs-stage { background-color: var(--bg); background-image: radial-gradient(circle at 1px 1px, var(--line-2) 1px, transparent 1.4px), linear-gradient(var(--line) 1px, transparent 1px); background-size: 24px 24px, 100% 96px; background-position: 0 0, 0 40px; }
.rs-field { position: absolute; inset: 0; }
.rs-axis { position: absolute; display: flex; justify-content: space-between; font: 500 10.5px/1 var(--m); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; border-block-end: 1px solid var(--line-2); padding-block-end: 6px; }
.rs-col { position: absolute; pointer-events: none; }
.rs-col::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 1px; background: var(--line); }
.rs-col__l { position: absolute; inset-inline: 6px; display: grid; gap: 2px; text-align: center; padding-block-start: 6px; border-block-start: 1.5px solid; border-image: var(--pastel) 1; }
.rs-col__l b { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.2; }
.rs-col.is-narrow .rs-col__l b { font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.rs-col__l em { font-style: normal; font: 500 11px/1 var(--m); color: var(--ink-3); }
.rs-t { position: absolute; padding: 0; border-radius: var(--r); border: 1px solid var(--ink-3); background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--ink-3); display: grid; place-items: center; font: 500 10px/1 var(--m); transition: opacity .15s var(--ease), transform .15s var(--ease); }
.rs-t.is-oa { background: var(--ink-2); border-color: var(--ink-2); color: var(--bg); }
.rs-t:hover { transform: scale(1.12); border-color: var(--ink); z-index: 2; }
.rs-t.is-off { opacity: .14; }
.rs-t.is-mine { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }
.rs-t.is-sel { background: var(--red); border-color: var(--red); color: var(--red-ink); box-shadow: 0 0 0 3px var(--red-soft); opacity: 1; z-index: 3; }

/* Main panel */
.rs-main { inset-block: 76px 120px; inset-inline-start: 76px; width: 412px; }
.rs-main .panel__hd { padding-block-end: 10px; }
.rs-hdrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chip--sm { height: 20px; padding-inline: 7px; font-size: 11px; }
.rs-main .title { font-size: 22px; }
.rs-main .ctx1 { margin-block-start: 8px; }
.rs-main .stats { margin-block-start: 10px; }
.rs-main .stat { padding: 10px 12px; }
.rs-main .stat b { font-size: 24px; }
.rs-main .stat b small { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.rs-main .stat small { display: block; color: var(--ink-3); font-size: 11px; margin-block-start: 2px; }
.rs-q { display: flex; align-items: center; gap: 8px; height: 32px; margin-block-start: 10px; padding-inline: 10px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-3); }
.rs-q:focus-within { border-color: var(--ink-3); }
.rs-q input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12.5px; }
.rs-ftabs { display: flex; gap: 2px; margin-block-start: 10px; border-block-end: 1px solid var(--line); }
.rs-ftabs button { position: relative; border: 0; background: transparent; padding: 6px 8px 8px; color: var(--ink-3); font-size: 12px; font-weight: 500; white-space: nowrap; }
.rs-ftabs button:hover { color: var(--ink); }
.rs-ftabs button[aria-selected="true"] { color: var(--ink); }
.rs-ftabs button[aria-selected="true"]::after { content: ""; position: absolute; inset-inline: 6px; inset-block-end: -1px; height: 1.5px; background: var(--pastel); }
.rs-ftabs button i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--red); margin-inline-start: 4px; vertical-align: 2px; }
.rs-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-block-start: 8px; max-height: 88px; overflow: auto; scrollbar-width: thin; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding-inline: 9px; border-radius: var(--r); border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill em { font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pill:hover { border-color: var(--line-2); color: var(--ink); }
.pill:disabled { opacity: .4; cursor: default; }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill[aria-pressed="true"] em { color: inherit; opacity: .6; }
.rs-fnote { align-self: center; color: var(--ink-3); font-size: 11.5px; }
.group__h small.rs-rk { color: var(--ink-3); font-size: 11px; }
.rs-row { width: calc(100% - 16px); margin-inline: 8px; display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 8px; padding: 9px 8px; border: 0; border-radius: var(--r); background: transparent; text-align: start; }
.rs-row:hover { background: var(--bg-2); }
.rs-row[aria-selected="true"] { background: var(--red-soft); }
.rs-row__r { font: 500 11px/1.6 var(--m); color: var(--ink-3); }
.rs-row[aria-selected="true"] .rs-row__r { color: var(--red); }
.rs-row__b { min-width: 0; }
.rs-row__b b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; font-size: 13px; line-height: 1.35; }
.rs-row__b small { display: block; color: var(--ink-3); font-size: 11.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-block-start: 2px; }
.rs-row__m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-block-start: 5px; color: var(--ink-3); font-size: 11px; }
.rs-k, .rs-oa, .rs-mine { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding-inline: 6px; border-radius: var(--r); border: 1px solid var(--line-2); color: var(--ink-2); }
.rs-oa { background: var(--ink-2); border-color: var(--ink-2); color: var(--bg); }
.rs-mine .fl { width: 14px; height: 9px; }
.rs-empty { margin: 12px 16px; padding: 14px; border-radius: var(--r); border: 1px dashed var(--line-2); display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; }
.rs-empty b { grid-row: span 2; font: 600 34px/1 var(--f); }
.rs-empty span { font-weight: 600; }
.rs-empty small { color: var(--ink-3); }
.rs-empty .btn { grid-column: 1 / -1; justify-content: center; margin-block-start: 8px; }

/* Inspector */
.rs-insp { width: 372px; }
.rs-insp .panel__hd { padding-inline-end: 16px; }
.rs-insp .panel__hd:has(.x) { padding-inline-end: 56px; }
.rs-it { font-size: 18px !important; line-height: 1.3 !important; }
.rs-tabs button { font-size: 12px; }
.rs-kv { margin: 12px 16px 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rs-kv div { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 10px; padding: 8px 12px; border-block-start: 1px solid var(--line); font-size: 12.5px; }
.rs-kv div:first-child { border: 0; }
.rs-kv span { color: var(--ink-3); }
.rs-kv b { font-weight: 500; overflow-wrap: anywhere; }
.rs-sec { padding: 12px 16px 2px; }
.rs-sec + .rs-sec { border-block-start: 1px solid var(--line); margin-block-start: 10px; }
.rs-sec > .eyebrow { display: flex; align-items: center; gap: 6px; margin-block-end: 8px; }
.rs-sec > .eyebrow b { color: var(--ink); }
.rs-sec > .eyebrow .fl { width: 16px; height: 11px; }
.rs-lead { margin: 0 0 4px; color: var(--ink-2); }
.rs-note { margin: 4px 0 6px; color: var(--ink-3); font-size: 12px; }
.rs-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.rs-chips .chip { text-decoration: none; }
.rs-chips .chip:hover { color: var(--ink); border-color: var(--ink-3); }
.rs-feed { padding: 8px 10px; margin-block-end: 6px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); }
.rs-feed b { display: block; font-weight: 600; }
.rs-feed small, .rs-feedrow small { display: block; color: var(--ink-3); font-size: 11.5px; margin-block-start: 2px; }
small.rs-rec { font: 400 10.5px/1.4 var(--m); color: var(--ink-3); }
.rs-feedrow { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; align-items: start; padding: 9px 0; border: 0; border-block-start: 1px solid var(--line); background: transparent; text-align: start; }
.rs-feedrow b { font-weight: 600; }
.rs-feedrow em { font-style: normal; font: 600 15px/1 var(--f); font-variant-numeric: tabular-nums; }
.rs-feedrow .meter { grid-column: 1 / -1; }
.rs-feedrow[aria-pressed="true"] b { color: var(--red); }
.rs-svc { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rs-svc a { display: block; padding: 9px 10px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); color: inherit; text-decoration: none; }
.rs-svc a:hover { border-color: var(--ink-3); }
.rs-svc b { display: block; font-weight: 600; font-size: 12.5px; }
.rs-svc small { display: block; color: var(--ink-3); font-size: 11px; margin-block-start: 3px; line-height: 1.35; }
.rs-off { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-block-start: 1px solid var(--line); color: inherit; text-decoration: none; }
.rs-off:first-of-type { border: 0; }
.rs-off b { display: block; font-weight: 500; font-size: 12.5px; }
.rs-off small { display: block; color: var(--ink-3); font-size: 11px; text-transform: none; }
.rs-off svg { color: var(--ink-3); }
.rs-ev { display: grid; grid-template-columns: 84px 1fr 22px; gap: 10px; align-items: center; padding: 5px 0; font-size: 12.5px; }
.rs-ev em { font-style: normal; text-align: end; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.rs-ev__b { display: flex; gap: 2px; height: 6px; }
.rs-ev__b i, .rs-key i { border-radius: var(--r); }
.rs-ev__b i.v, .rs-key i.v { background: var(--ink); }
.rs-ev__b i.s, .rs-key i.s { background: var(--ink-2); }
.rs-ev__b i.t, .rs-key i.t { background: repeating-linear-gradient(90deg, var(--ink-3) 0 3px, transparent 3px 5px); }
.rs-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-block-start: 6px; color: var(--ink-3); font-size: 11px; }
.rs-key i { display: inline-block; width: 12px; height: 6px; margin-inline-end: 5px; vertical-align: 1px; }
.rs-key i.f { background: var(--pastel); }
.rs-key i.r { background: var(--ink-3); }
.rs-tp { padding: 7px 0; border-block-start: 1px solid var(--line); }
.rs-tp:first-of-type { border: 0; }
.rs-tp b { display: block; font-weight: 600; font-size: 12.5px; }
.rs-tp small { color: var(--ink-3); font-size: 12px; }
.rs-ref { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 8px; align-items: start; padding: 8px 0; border-block-start: 1px solid var(--line); }
.rs-ref.is-yr { background: var(--red-soft); }
.rs-ref__y { font: 500 11.5px/1.5 var(--m); color: var(--ink-3); }
.rs-ref b { display: block; font-weight: 500; font-size: 12.5px; }
.rs-ref small { display: block; color: var(--ink-3); font-size: 11.5px; }
.rs-lab { font-size: 10.5px; padding: 2px 6px; border-radius: var(--r); border: 1px solid var(--line-2); white-space: nowrap; color: var(--ink-2); }
.rs-lab--t { border-style: dashed; color: var(--ink-3); }
.rs-src { margin: 14px 16px 16px; padding-block-start: 10px; border-block-start: 1px solid var(--line); color: var(--ink-3); font: 400 11px/1.45 var(--m); }

/* Layers bar and strip */
@media (min-width: 761px) { .rs-layers, .has-rail-end .rs-layers, .has-rail-end .app:has(#insp[hidden]) .rs-layers { inset-inline-start: 500px; max-width: calc(100% - 500px - 460px); } }
.rs-lk { align-self: center; padding-inline: 8px 4px; font: 500 10.5px/1 var(--f); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.rs-strip { inset-inline: 76px 76px; grid-template-columns: 196px minmax(0,1fr) 250px; }
.rs-yrs { position: absolute; inset: 0; }
.rs-yrs button { position: absolute; inset-block-start: 0; width: 18px; height: calc(100% - 24px); padding: 0; border: 0; background: transparent; border-radius: var(--r); display: flex; align-items: flex-start; justify-content: center; }
.rs-yrs button span { font: 500 10px/1 var(--m); color: var(--ink-2); }
.rs-yrs button:hover { background: var(--bg-2); }
.rs-yrs button[aria-pressed="true"] span { color: var(--red); }
.rs-strip__r { gap: 5px; justify-content: center; }
.rs-strip__r small { color: var(--ink-3); font-size: 11px; }
.rs-strip__r .btn { height: 26px; font-size: 12px; justify-content: center; }
.rs-key--strip { margin: 0; }
.toast { position: absolute; inset-block-end: 130px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 40; padding: 10px 14px; }
.tipcard { position: fixed; white-space: normal; max-width: 320px; }
.tipcard small { display: block; margin: 3px 0 0; }
.rs-pal__n { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

@media (max-width: 760px) {
  .rs-main { max-height: 56vh !important; }
  .rs-main .title { font-size: 18px; margin-block-start: 4px; }
  .rs-main .stats, .rs-main .ctx1 { display: none; }
  .rs-main .panel__hd { padding: 12px 12px 8px; }
  .rs-insp { display: none; }
  .app:has(.rs-insp .x) .rs-insp { display: flex; max-height: 60vh; }
  .rs-pills { max-height: 60px; }
}
