/* KHAVINSON · The Body, Regulated — the library (Fable-Library; reader and boards engine by Opus-Research).
   The reading room. The layout is the earlier Clinical Research Library's (top tabs, a hero with the
   search and six figures, dossier cards in a grid, an explorer of filters · list · reader).
   The setting is open and editorial, with depth where it earns its place:
   · the page is one dark tone; what you pick up or read sits a few steps lighter on a soft raised
     surface (hero, dossier cards, the reading column, board cards): rounded, a faint inner highlight,
     a soft shadow, no drawn borders; a card under the pointer lifts and brightens;
   · lists stay open rows with a hairline between them; the row you are on lifts the same way;
   · three levels of text: bright numerals and titles, body, quiet labels;
   · one accent (--signal): the filled class label, thin lines that lead the eye (the hero's top
     edge, the bar over a section title, the share line on a card), where you are, what is saved.
   Everything is scoped under #research-root / .res-*. */

@font-face { font-family: 'Res Display'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/shared/fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Res Display'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/shared/fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Res Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/shared/fonts/pt-serif-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Res Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/shared/fonts/pt-serif-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Res Serif'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/shared/fonts/pt-serif-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Res Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/shared/fonts/pt-serif-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Res Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/shared/fonts/pt-serif-cyrillic-400-italic.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Res Serif'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/shared/fonts/pt-serif-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Res Mono'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url('/shared/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Res Mono'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url('/shared/fonts/jetbrains-mono-cyrillic-wght-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ───────────────────────────── surface and tokens ───────────────────────────── */

#research-root {
  --res-bg: var(--carbon, #0E0F10);         /* the page */
  --res-raise: #16171A;                     /* a raised surface: hero, cards, the reading column */
  --res-raise-2: #1C1D21;                   /* a raised thing under the pointer; the row you are on */
  --res-well: #090A0B;                      /* fields sit below the page */
  --res-float: #1C1D21;                     /* what floats over everything: popover, toast, dialog */
  --res-bright: #FAF8F2;                    /* numerals and the name under the pointer */
  --res-ink: #ECEAE4;                       /* 16 : 1 on the page */
  --res-ink-2: #B7B6B1;                     /*  9.6 : 1 */
  --res-ink-3: #94938E;                     /*  6.1 : 1 on the page, 5.5 : 1 on the lightest surface: the quietest text */
  --res-ink-4: var(--ash, #6B6B68);         /*  decorative only: glyphs, disabled */
  --res-line: rgba(236, 234, 228, 0.1);
  --res-line-2: rgba(236, 234, 228, 0.18);
  --res-line-3: rgba(236, 234, 228, 0.36);
  --res-sig: var(--signal, #CFE34A);
  --res-sig-14: color-mix(in srgb, var(--res-sig) 14%, transparent);
  --res-sig-55: color-mix(in srgb, var(--res-sig) 55%, transparent);
  /* a raised surface: a faint highlight along the top edge, a barely-there rim, a soft shadow under it */
  --res-lift: inset 0 1px 0 rgba(255, 255, 255, 0.065), inset 0 0 0 1px rgba(236, 234, 228, 0.04), 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 40px -20px rgba(0, 0, 0, 0.85);
  --res-lift-up: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 0 0 1px rgba(236, 234, 228, 0.06), 0 2px 4px rgba(0, 0, 0, 0.5), 0 30px 60px -22px rgba(0, 0, 0, 0.95);
  --res-sunk: inset 0 0 0 1px var(--res-line-2), inset 0 2px 5px rgba(0, 0, 0, 0.55);
  --res-r: 12px;
  --res-r-l: 18px;
  --res-r-s: 8px;
  --res-serif: 'Res Serif', 'PT Serif', Georgia, serif;
  --res-display: 'Res Display', var(--font-serif, 'Instrument Serif', serif);
  --res-mono: 'Res Mono', var(--font-mono, ui-monospace, monospace);
  --res-pad: clamp(16px, 4.4vw, 64px);
  --res-gut: 44px;
  --res-bar-h: 48px;
  --res-h: calc(100svh - var(--nav-h, 64px));
  --res-left: 420px;
  position: relative;
  background: var(--res-bg);
  color: var(--res-ink);
  font-family: var(--font-sans, 'Inter Tight', 'Helvetica Neue', Arial, sans-serif);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.002em;
}
#research-root ::selection { background: var(--res-sig); color: #0A0B0C; }
:where(#research-root) :focus-visible { outline: 1px solid var(--res-ink); outline-offset: 3px; }
:where(#research-root) a { color: inherit; text-decoration: none; }
:where(#research-root) :is(button, input, select, textarea) { font: inherit; color: inherit; letter-spacing: inherit; }
:where(#research-root) :is(input, textarea, select) { background: transparent; border: 0; border-radius: 0; }
:where(#research-root) :is(input, textarea)::placeholder { color: var(--res-ink-3); opacity: 1; }
:where(#research-root) input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
:where(#research-root) kbd { font: inherit; }
:where(#research-root) mark { color: inherit; }
:where(#research-root) :is(h1, h2, h3, p, dl, dd, figure) { margin: 0; }
:where(#research-root) * { scrollbar-width: thin; scrollbar-color: #2B2C2E transparent; }
:where(#research-root) [hidden] { display: none !important; }

.res-ico { flex: none; display: block; }
.res-num { font-family: var(--res-mono); font-variant-numeric: tabular-nums; font-size: 0.9em; letter-spacing: 0; font-weight: 400; }
.res-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.res-dim { color: var(--res-ink-3); }
.res-link { color: var(--res-ink-2); text-decoration: underline !important; text-decoration-color: var(--res-line-3) !important; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.res-link:hover { color: var(--res-ink); text-decoration-color: var(--res-ink-2) !important; }
.res-kbd { display: inline-block; min-width: 1.7em; padding: 1px 5px 2px; border-radius: 4px; background: var(--res-raise-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); font-family: var(--res-mono); font-size: 10.5px; line-height: 1.35; color: var(--res-ink-2); text-align: center; }
.res-term { display: inline; padding: 0; border: 0; background: none; color: inherit; cursor: help; text-decoration: underline dotted; text-decoration-color: var(--res-ink-3); text-underline-offset: 3px; }
.res-term:hover, .res-term[aria-expanded="true"] { color: var(--res-ink); text-decoration-color: var(--res-ink); }
.res-term.res-link { text-decoration-style: dotted !important; }
/* the class of a bioregulator: a small filled label */
.res-label { flex: none; display: inline-block; padding: 3px 7px; border-radius: 4px; background: var(--res-sig); font-family: var(--font-sans, sans-serif); font-size: 10px; font-weight: 650; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: #0C0D0E; white-space: nowrap; }

/* ───────────────────────────── the shell: tabs over  view · reader ───────────────────────────── */

.res-shell { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--res-bar-h) minmax(0, 1fr); height: var(--res-h); overflow: hidden; }
.res-top { grid-column: 1 / -1; grid-row: 1; }
.res-main { grid-column: 1; grid-row: 2; position: relative; min-width: 0; overflow: auto; overscroll-behavior: contain; outline: none; container: res-main / inline-size; scroll-padding-top: 24px; }
.res-stage { grid-column: 2; grid-row: 2; display: none; min-width: 0; overflow: auto; padding: 28px clamp(20px, 3.2vw, 48px) 72px; border-left: 1px solid var(--res-line); }
.res-reader { grid-column: 2; grid-row: 2; }
.res-shell[data-reader="split"] { grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.18fr); }
.res-shell[data-view="studies"] { --res-left: 640px; }
.res-shell[data-panes="on"] { grid-template-columns: var(--res-left) minmax(0, 1fr); }
.res-shell[data-panes="on"][data-reader="none"] .res-stage { display: block; }
.res-shell[data-reader="focus"] { grid-template-columns: minmax(0, 1fr); }
.res-shell[data-reader="focus"] .res-main, .res-shell[data-reader="focus"] .res-stage { display: none; }
.res-shell[data-reader="focus"] .res-reader { grid-column: 1; border-left: 0; }

/* the tab bar: opaque (the site header above it is transparent), a signal line under the current tab, a soft shadow onto the page */
.res-top { position: relative; z-index: 30; display: flex; align-items: stretch; gap: 28px; min-width: 0; padding: 0 var(--res-pad); background: var(--res-bg); border-bottom: 1px solid var(--res-line-2); box-shadow: 0 14px 30px -20px rgba(0, 0, 0, 0.9); }
.res-tabsnav { flex: 1 1 auto; display: flex; align-items: stretch; gap: 28px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.res-tabsnav::-webkit-scrollbar { display: none; }
.res-tabbtn { position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; letter-spacing: 0.005em; color: var(--res-ink-2); white-space: nowrap; outline-offset: -3px; transition: color 0.2s; }
.res-tabbtn .res-num { font-size: 10.5px; color: var(--res-ink-3); }
.res-tabbtn-s { display: none; }
.res-tabbtn:hover { color: var(--res-ink); }
.res-tabbtn[aria-current="page"] { color: var(--res-bright); }
.res-tabbtn[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--res-sig); }
.res-tabbtn.is-own { margin-left: 16px; }
.res-top-tools { flex: none; display: flex; align-items: center; gap: 22px; }
.res-top-search { width: 226px; }
.res-top .res-top-search.res-field { height: 32px; padding: 0 9px 0 11px; border-radius: var(--res-r-s); }
.res-top-link { font-size: 13px; color: var(--res-ink-2); white-space: nowrap; text-decoration: none; }
.res-top-link:hover { color: var(--res-ink); }
.res-top-link[aria-current="page"] { position: relative; align-self: stretch; display: inline-flex; align-items: center; color: var(--res-bright); }
.res-top-link[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--res-sig); }
.res-top .res-top-find { display: none; }
.res-shell[data-view="home"] .res-top-search, .res-shell[data-view="search"] .res-top-search { display: none; }

/* ───────────────────────────── raised surfaces ───────────────────────────── */

.res-hero, .res-lift, .res-sheet, .res-stage-body, .res-rd-article, .res-dcard, .res-card { background: var(--res-raise); border-radius: var(--res-r); box-shadow: var(--res-lift); }

/* ───────────────────────────── the page: heads, figures, sections ───────────────────────────── */

.res-view { max-width: 1320px; margin: 0 auto; padding: 36px var(--res-pad) 128px; }
.res-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 22px; font-size: 12px; color: var(--res-ink-3); }
.res-crumbs a { color: var(--res-ink-2); }
.res-crumbs a:hover { color: var(--res-ink); text-decoration: underline; text-underline-offset: 3px; }
.res-crumbs [aria-current] { color: var(--res-ink-3); }
.res-crumb-sep { color: var(--res-ink-3); }

.res-head { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; margin-bottom: 40px; }
.res-head:has(> .res-head-acts) { grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; }
.res-head-main { min-width: 0; }
.res-head-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; margin-top: -6px; }
.res-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--res-sig); }
.res-eyebrow > .res-label + span { color: var(--res-ink-2); }
.res-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-family: var(--res-display); font-weight: 400; font-size: clamp(40px, 4.2vw, 60px); line-height: 1; letter-spacing: -0.012em; color: var(--res-bright); outline: none; text-wrap: balance; }
.res-title-q { font-style: italic; color: var(--res-ink-2); }
.res-title-sub { font-style: italic; color: var(--res-ink-3); }
.res-kicker { margin-top: 14px; font-size: 13.5px; color: var(--res-ink-2); }
.res-kicker .res-num { color: var(--res-ink); }
.res-lede { max-width: 62ch; margin-top: 18px; font-size: 16px; line-height: 1.55; color: var(--res-ink-2); text-wrap: pretty; }
.res-lede b { font-weight: 500; color: var(--res-ink); }
.res-lede .res-term { color: var(--res-ink); }
.res-prose { font-size: 14px; line-height: 1.6; color: var(--res-ink-2); max-width: 66ch; }

/* figures: bright numerals, quiet labels; a thin rule at the left of each, the first one in the accent */
.res-figs { display: flex; flex-wrap: wrap; gap: 28px 0; }
.res-fig { flex: 1 1 150px; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; padding: 3px 16px 3px 18px; border: 0; border-left: 1px solid var(--res-line-2); background: none; text-align: left; text-decoration: none; }
.res-fig:first-child { border-left-color: var(--res-sig); }
.res-fig-n { font-size: clamp(28px, 2.5vw, 37px); font-weight: 520; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; color: var(--res-bright); transition: color 0.2s; }
.res-fig-l { font-size: 12.5px; line-height: 1.35; color: var(--res-ink-3); }
.res-fig-s { margin-top: -5px; font-size: 11px; color: var(--res-ink-3); }
a.res-fig:hover .res-fig-n { color: var(--res-sig); }
a.res-fig:hover .res-fig-l { color: var(--res-ink); }
.res-fig.res-term { display: flex; text-decoration: none; }
.res-fig.res-term .res-fig-l { text-decoration: underline dotted; text-decoration-color: var(--res-ink-4); text-underline-offset: 3px; }
.res-fig.res-term:hover .res-fig-l, .res-fig.res-term[aria-expanded="true"] .res-fig-l { color: var(--res-ink); text-decoration-color: var(--res-ink); }

/* a section: a lot of air above, a short accent bar, then the title */
.res-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin: 124px 0 28px; }
.res-sec-title { font-family: var(--res-display); font-weight: 400; font-size: 35px; line-height: 1.08; letter-spacing: -0.008em; color: var(--res-bright); }
.res-sec-title::before { content: ''; display: block; width: 30px; height: 2px; margin-bottom: 22px; background: var(--res-sig); }
.res-sec-aside { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 6px 18px; font-size: 12.5px; color: var(--res-ink-3); }
.res-more { margin-top: 26px; }

.res-block { min-width: 0; }
.res-block > :not(:first-child) { margin-top: 14px; }
.res-block-h { font-family: var(--font-sans, sans-serif); font-size: 10.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--res-ink-2); }
.res-block-h .res-term, .res-block-h .res-link { margin-left: 8px; font-size: 11.5px; font-weight: 400; letter-spacing: 0.01em; text-transform: none; color: var(--res-ink-3); }
.res-block-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.res-block-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.res-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.res-pair:has(> .res-part:not(.res-lift)) { gap: 44px 80px; }
.res-part { min-width: 0; }
.res-part > :not(:first-child) { margin-top: 14px; }
.res-lift { padding: 28px 30px 30px; }

/* text links with a count; a list of guides */
.res-linkrow { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.res-clink { display: inline-flex; align-items: baseline; gap: 7px; font-size: 13px; color: var(--res-ink-2); white-space: nowrap; }
.res-clink > span:first-child { text-decoration: underline; text-decoration-color: var(--res-line-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.res-clink .res-num { font-size: 10.5px; color: var(--res-ink-3); }
.res-clink:hover { color: var(--res-ink); }
.res-clink:hover > span:first-child { text-decoration-color: var(--res-sig); }
.res-guides { list-style: none; margin: 0; padding: 0; columns: 2 240px; column-gap: var(--res-gut); font-size: 14px; line-height: 1.4; }
.res-guides li { padding: 5px 0; break-inside: avoid; }
.res-guides .res-link { display: inline; color: var(--res-ink); }

/* key / value */
.res-kv { display: grid; }
.res-kv > div { display: grid; grid-template-columns: minmax(104px, 40%) minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--res-line); }
.res-kv > div:last-child { border-bottom: 1px solid var(--res-line); }
.res-kv dt { font-size: 12px; color: var(--res-ink-3); }
.res-kv dd { min-width: 0; font-size: 13px; color: var(--res-ink); overflow-wrap: anywhere; }
.res-kv dd a { color: var(--res-ink); text-decoration: underline; text-decoration-color: var(--res-line-3); text-underline-offset: 3px; }
.res-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.res-structure { --res-atom-n: #7DB6FF; --res-atom-o: #FF8F8B; margin: 0 0 22px; }
.res-structure svg { display: block; width: 100%; height: auto; max-height: 250px; color: var(--res-bright); overflow: visible; }
.res-structure svg path[style*="fill:none"] { vector-effect: non-scaling-stroke; stroke-width: 1.5px !important; stroke-linecap: round !important; }
.res-structure svg .res-atom { stroke-width: 0.7px; stroke-linejoin: round; }
.res-structure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; margin-top: 14px; font-size: 11.5px; color: var(--res-ink-3); }
.res-structure-key { display: inline-flex; gap: 12px; }
.res-atom-n { color: var(--res-atom-n); }
.res-atom-o { color: var(--res-atom-o); }

/* small charts */
.res-bar { display: block; position: relative; height: 2px; border-radius: 1px; background: rgba(236, 234, 228, 0.09); overflow: hidden; }
.res-bar > i { position: absolute; inset: 0 auto 0 0; background: var(--res-ink-2); }
.res-stack { display: flex; height: 5px; gap: 1px; background: transparent; overflow: hidden; }
.res-stack > i { display: block; min-width: 1px; }
.res-stack .t1, .res-tiers-key .t1 { background: var(--res-sig); }
.res-stack .t2, .res-tiers-key .t2 { background: #D2D0CA; }
.res-stack .t3, .res-tiers-key .t3 { background: #96958F; }
.res-stack .t4, .res-tiers-key .t4 { background: #63635F; }
.res-stack .t5, .res-tiers-key .t5 { background: #3B3B3A; }
.res-tiers { display: grid; gap: 10px; }
.res-tiers .res-stack { height: 6px; border-radius: 3px; }
.res-tiers-key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--res-ink-3); }
.res-tiers-key > span { display: inline-flex; align-items: center; gap: 5px; }
.res-tiers-key i { width: 7px; height: 7px; display: inline-block; }
.res-tiers-key b { color: var(--res-ink); }
.res-minirows { display: grid; gap: 1px; }
.res-minirow { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(24px, 1fr) 42px; align-items: center; gap: 10px; padding: 4px 0; font-size: 12.5px; color: var(--res-ink-2); }
.res-minirow b { text-align: right; color: var(--res-ink); }
a.res-minirow:hover { color: var(--res-ink); }
a.res-minirow:hover .res-bar > i { background: var(--res-sig); }
.res-minirow-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-cols { display: flex; align-items: flex-end; gap: 2px; height: var(--res-cols-h, 56px); }
.res-col { flex: 1 1 0; position: relative; display: flex; align-items: flex-end; height: 100%; min-width: 2px; }
.res-col > i { display: block; width: 100%; min-height: 1px; border-radius: 1px 1px 0 0; background: rgba(236, 234, 228, 0.3); transition: background-color 0.2s; }
a.res-col:hover > i, a.res-col:focus-visible > i { background: var(--res-sig); }
.res-years figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 11px; color: var(--res-ink-3); }
.res-tierlist { display: grid; }
.res-tierrow { display: grid; grid-template-columns: 96px minmax(0, 1.5fr) minmax(40px, 1fr) 46px; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--res-line); font-size: 13.5px; color: var(--res-ink-2); }
.res-tierrow b { text-align: right; font-size: 13px; font-weight: 500; color: var(--res-bright); }
.res-tierrow:hover { color: var(--res-ink); }
.res-tierrow:hover .res-bar > i, .res-tierrow:has(.res-tier[data-tier="1"]) .res-bar > i { background: var(--res-sig); }
.res-decrow { grid-template-columns: 96px minmax(40px, 1fr) 46px; }

/* ───────────────────────────── controls ───────────────────────────── */

.res-search { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--res-ink-3); }
.res-search:focus-within { color: var(--res-ink-2); }
.res-input { flex: 1; min-width: 0; height: 32px; padding: 0; font-size: 13.5px; color: var(--res-ink); outline: none; }
.res-input:focus-visible { outline: none; }
/* a field is a shallow well in the page */
.res-field { height: 38px; padding: 0 10px 0 12px; border-radius: 9px; background: var(--res-well); box-shadow: var(--res-sunk); transition: box-shadow 0.2s; }
.res-field:hover { box-shadow: inset 0 0 0 1px var(--res-line-3), inset 0 2px 5px rgba(0, 0, 0, 0.55); }
.res-field:focus-within { box-shadow: inset 0 0 0 1px var(--res-sig-55), inset 0 2px 5px rgba(0, 0, 0, 0.55), 0 0 0 3px var(--res-sig-14); }
.res-field-lg { flex: 1 1 320px; height: 58px; gap: 14px; padding: 0 16px 0 20px; border-radius: 13px; color: var(--res-ink-2); }
.res-input-lg { height: 56px; font-size: 18px; font-weight: 400; letter-spacing: -0.002em; }
.res-hero-search { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; max-width: 860px; }

.res-toolbar { display: flex; flex-direction: column; gap: 12px; }
.res-toolbar-row { display: flex; align-items: flex-end; gap: 12px; min-width: 0; }
.res-toolbar-row > .res-search { flex: 1 1 auto; }
.res-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }

.res-select { position: relative; display: inline-flex; flex-direction: column; gap: 4px; min-width: 0; cursor: pointer; }
.res-select-k { padding-left: 2px; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--res-ink-3); }
.res-select-v { position: relative; display: flex; align-items: center; height: 32px; border-radius: var(--res-r-s); background: var(--res-well); box-shadow: var(--res-sunk); color: var(--res-ink-3); transition: box-shadow 0.2s; }
.res-select-v .res-ico { position: absolute; right: 9px; pointer-events: none; }
.res-select-el { -webkit-appearance: none; appearance: none; width: 100%; max-width: 230px; height: 32px; padding: 0 26px 0 11px; font-size: 13px; color: var(--res-ink-2); cursor: pointer; outline: none; text-overflow: ellipsis; }
.res-select-el option, .res-select-el optgroup { background: #161719; color: var(--res-ink); }
.res-select:hover .res-select-v { box-shadow: inset 0 0 0 1px var(--res-line-3), inset 0 2px 5px rgba(0, 0, 0, 0.55); }
.res-select:focus-within .res-select-v { box-shadow: inset 0 0 0 1px var(--res-sig-55), inset 0 2px 5px rgba(0, 0, 0, 0.55), 0 0 0 3px var(--res-sig-14); }
.res-select.is-set .res-select-el { color: var(--res-ink); }
.res-select.is-set .res-select-v { box-shadow: inset 0 0 0 1px var(--res-sig-55), inset 0 2px 5px rgba(0, 0, 0, 0.55); }

.res-toggle { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 2px; border: 0; background: none; font-size: 13px; color: var(--res-ink-2); cursor: pointer; white-space: nowrap; }
.res-toggle-box { width: 11px; height: 11px; border: 1px solid var(--res-ink-3); border-radius: 3px; }
.res-toggle:hover { color: var(--res-ink); }
.res-toggle[aria-pressed="true"] { color: var(--res-ink); }
.res-toggle[aria-pressed="true"] .res-toggle-box { border-color: var(--res-sig); background: var(--res-sig); box-shadow: inset 0 0 0 2px var(--res-bg); }
.res-toggle:disabled { opacity: 0.38; cursor: default; }
.res-flagset { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.res-flagset-k { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--res-ink-3); }

.res-tabs { display: flex; flex-wrap: wrap; gap: 2px 24px; border-bottom: 1px solid var(--res-line); }
.res-tab { position: relative; display: inline-flex; align-items: baseline; gap: 7px; padding: 9px 0 10px; font-size: 13px; color: var(--res-ink-3); cursor: pointer; }
.res-tab .res-num { font-size: 10.5px; color: var(--res-ink-3); }
.res-tab:hover { color: var(--res-ink); }
.res-tab[aria-current="true"] { color: var(--res-bright); }
.res-tab[aria-current="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--res-sig); }
.res-dir > .res-tabs { margin-bottom: 30px; }

.res-seg { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.res-seg-a { position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 0 7px; font-size: 13px; color: var(--res-ink-3); white-space: nowrap; }
.res-seg-a .res-num { font-size: 10px; color: var(--res-ink-3); }
.res-seg-a:hover { color: var(--res-ink); }
.res-seg-a[aria-current="true"] { color: var(--res-bright); }
.res-seg-a[aria-current="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--res-sig); }

/* filters in force: small soft chips, "Evidence Tier 1 ×" */
.res-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.res-chip { display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; padding: 4px 8px 4px 10px; border-radius: 7px; background: var(--res-raise-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); font-size: 12.5px; color: var(--res-ink); white-space: nowrap; transition: background-color 0.2s; }
.res-chip > span:last-of-type { overflow: hidden; text-overflow: ellipsis; }
.res-chip-k { color: var(--res-ink-3); }
.res-chip .res-ico { align-self: center; color: var(--res-ink-3); }
a.res-chip:hover { background: #24252A; }
a.res-chip:hover .res-ico { color: var(--res-sig); }
.res-chip-clear, .res-chip-quiet { padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--res-ink-2); text-decoration: underline; text-decoration-color: var(--res-line-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.res-chip-clear { margin-left: 8px; }
a.res-chip-clear:hover, a.res-chip-quiet:hover { background: none; color: var(--res-ink); text-decoration-color: var(--res-ink-2); }
.res-chip.is-static { color: var(--res-ink-3); text-decoration: none; }

/* actions are text links; one filled action per page */
.res-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0; border: 0; background: none; font-size: 13px; color: var(--res-ink-2); cursor: pointer; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--res-line-3); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.res-btn:hover { color: var(--res-ink); text-decoration-color: var(--res-ink-2); }
.res-btn-strong { justify-content: center; height: 38px; padding: 0 17px; border-radius: 9px; background: var(--res-sig); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 26px -12px color-mix(in srgb, var(--res-sig) 70%, transparent); color: #0C0D0E; font-weight: 600; text-decoration: none; transition: background-color 0.2s, transform 0.2s; }
.res-btn-strong:hover { background: color-mix(in srgb, var(--res-sig) 86%, #fff); color: #0C0D0E; transform: translateY(-1px); }
.res-btn-lg { height: 58px; padding: 0 32px; border-radius: 13px; font-size: 15px; }
.res-tool { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 32px; height: 32px; padding: 0 7px; border-radius: var(--res-r-s); color: var(--res-ink-2); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.res-tool:hover { color: var(--res-ink); background: var(--res-raise-2); }
.res-tool:disabled { opacity: 0.3; cursor: default; background: none; }
.res-tool-l { font-size: 12.5px; }
.res-tool-s { min-width: 26px; height: 26px; padding: 0 5px; }

/* the save square: empty outline → filled signal once saved */
.res-save { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 34px; height: 34px; padding: 0; border-radius: var(--res-r-s); color: var(--res-ink-3); cursor: pointer; }
.res-save-sq { flex: none; width: 10px; height: 10px; border: 1px solid currentColor; border-radius: 2px; transition: background-color 0.18s, border-color 0.18s; }
.res-save:hover { color: var(--res-ink); }
.res-save[aria-pressed="true"] { color: var(--res-sig); }
.res-save[aria-pressed="true"] .res-save-sq { background: var(--res-sig); border-color: var(--res-sig); }
.res-save-wide { width: auto; height: 28px; font-family: var(--font-sans, sans-serif); font-size: 13px; color: var(--res-ink-2); }
.res-save-wide .res-save-l { text-decoration: underline; text-decoration-color: var(--res-line-3); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.res-save-wide[aria-pressed="true"] .res-save-l { text-decoration-color: var(--res-sig-55); }

/* tier: five squares, more filled = stronger */
.res-tier { display: inline-flex; align-items: center; gap: 6px; color: var(--res-ink-2); white-space: nowrap; }
.res-tier-sq { display: inline-flex; gap: 2px; }
.res-tier-sq > i { width: 5px; height: 5px; border: 1px solid var(--res-ink-4); }
.res-tier-sq > i.on { background: var(--res-ink-2); border-color: var(--res-ink-2); }
.res-tier[data-tier="1"] .res-tier-sq > i.on { background: var(--res-sig); border-color: var(--res-sig); }
.res-tier[data-tier="1"] { color: var(--res-ink); }
.res-tier-n { font-family: var(--res-mono); font-size: 10.5px; }

/* ───────────────────────────── lists: open rows; the row under the pointer lifts ───────────────────────────── */

.res-results { min-width: 0; }
.res-results > .res-chips { margin-top: 14px; }
.res-count { display: block; min-height: 20px; margin: 16px 0 10px; font-size: 13px; line-height: 1.6; color: var(--res-ink-2); }
.res-count > b { font-size: 13.5px; font-weight: 600; color: var(--res-bright); }
.res-count-range { margin-left: 10px; font-size: 12px; color: var(--res-ink-3); }
.res-count-note { margin-left: 10px; font-size: 12px; color: var(--res-ink-3); }
.res-count-note .res-term { color: var(--res-ink-2); }
.res-count-wait { color: var(--res-ink-3); font-size: 12.5px; }
.res-list { display: flex; flex-direction: column; min-width: 0; }
.res-results.is-loading .res-list { opacity: 0.55; transition: opacity 0.2s 0.15s; }
.res-list-foot { margin-top: 26px; }
.res-list-foot:empty { display: none; }

.res-row { position: relative; min-width: 0; margin: 0 -14px; padding: 0 14px; border-radius: 11px; transition: background-color 0.18s, box-shadow 0.18s; }
.res-row::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 1px; background: var(--res-line); transition: opacity 0.18s; }
.res-row::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: transparent; transition: background-color 0.18s; }
.res-row:hover { background: var(--res-raise); }
.res-row[data-open] { background: var(--res-raise-2); box-shadow: var(--res-lift); }
.res-row:hover::after, .res-row[data-open]::after { opacity: 0; }
.res-row[data-open]::before { background: var(--res-sig); }
.res-row[data-open] .res-row-title { color: var(--res-bright); }
.res-row > .res-save { position: absolute; top: 8px; right: 2px; z-index: 1; }
.res-row-link { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 34px 17px 0; color: inherit; }
.res-row-top { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; min-height: 18px; font-size: 11.5px; color: var(--res-ink-3); }
.res-row-n, .res-row-on { color: var(--res-ink-2); }
.res-row-title { font-size: 15px; line-height: 1.38; font-weight: 520; color: var(--res-ink); text-wrap: pretty; overflow-wrap: anywhere; }
.res-row-link:hover .res-row-title { color: var(--res-bright); }
.res-row-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.4; color: var(--res-ink-3); }
.res-row-file { font-family: var(--res-mono); font-size: 10.5px; overflow-wrap: anywhere; }
.res-row-tags { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; font-size: 12px; color: var(--res-ink-3); }
.res-row-spec, .res-row-pep { color: var(--res-ink-2); }
.res-hit { border-radius: 2px; background: var(--res-sig-14); color: var(--res-bright); }

/* fact sentences: the source's own words, set as reading text */
.res-row-fact { display: flex; align-items: flex-start; gap: 4px; padding: 18px 14px 17px; }
.res-row-fact > .res-save { position: static; margin: -6px -12px 0 0; }
.res-fact { flex: 1; min-width: 0; }
.res-fact-text { font-family: var(--res-serif); font-size: 15.5px; line-height: 1.58; color: var(--res-ink); text-wrap: pretty; }
.res-fact-src { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 16px; margin-top: 8px; font-size: 12px; color: var(--res-ink-3); }
.res-fact-open { color: var(--res-ink-2); text-decoration: underline; text-decoration-color: var(--res-line-3); text-underline-offset: 3px; }
.res-fact-open:hover { color: var(--res-ink); }
.res-fact-flags { font-family: var(--res-mono); font-size: 10.5px; letter-spacing: 0.02em; }

/* bioregulator dossiers: raised cards; under the pointer a card lifts and brightens */
.res-dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(276px, 1fr)); gap: 16px; }
.res-dcard { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 22px 22px 22px; border-radius: var(--res-r); transition: transform 0.3s var(--ease-out, ease-out), background-color 0.2s, box-shadow 0.3s; }
.res-dcard::before, .res-dcard::after { content: none; }
.res-dcard:hover, .res-dcard:has(.res-dcard-name:focus-visible) { background: var(--res-raise-2); box-shadow: var(--res-lift-up); transform: translateY(-3px); }
.res-dcard:has(.res-dcard-name:focus-visible) { outline: 1px solid var(--res-ink); outline-offset: 2px; }
.res-dcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 22px; padding-right: 26px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--res-ink-3); }
.res-dcard-meta .res-num { font-size: 10.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--res-ink-2); }
.res-dcard-meta > .res-save { position: absolute; top: 15px; right: 13px; z-index: 1; width: 30px; height: 30px; }
.res-dcard-name { display: block; margin-top: 2px; padding: 0; font-family: var(--res-display); font-size: 32px; line-height: 1.04; letter-spacing: -0.008em; color: var(--res-ink); outline: none !important; overflow-wrap: break-word; transition: color 0.2s; }
.res-dcard-name::after { content: ''; position: absolute; inset: 0; border-radius: var(--res-r); }
.res-dcard:hover .res-dcard-name { color: var(--res-bright); }
.res-dcard-desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.52; color: var(--res-ink-2); }
/* the counts in two levels: human studies large and bright; the other three small */
.res-dcard-data { display: grid; gap: 11px; margin-top: auto; padding-top: 10px; }
.res-dcard-lead { display: flex; align-items: baseline; gap: 9px; }
.res-dcard-lead b { font-size: 36px; font-weight: 520; line-height: 0.95; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; color: var(--res-bright); }
.res-dcard-lead span { font-size: 12.5px; color: var(--res-ink-2); }
.res-dcard-share { position: relative; display: block; height: 2px; border-radius: 1px; background: var(--res-line); }
.res-dcard-share::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--res-share, 0) * 100%); border-radius: 1px; background: var(--res-sig); }
.res-dcard-more { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 12px; line-height: 1.4; color: var(--res-ink-3); }
.res-dcard-more b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--res-ink); }
.res-dcard-more .is-share b { color: var(--res-sig); }

/* index rows: specialties, body systems; the rule under a row is drawn to its share of the largest */
.res-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); column-gap: var(--res-gut); }
.res-irow { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-width: 0; padding: 16px 0 17px; border-bottom: 1px solid var(--res-line); }
.res-irow::after { content: ''; position: absolute; left: 0; bottom: -1px; width: calc(var(--res-share, 0) * 100%); min-width: 3px; height: 1px; background: var(--res-ink-2); transition: background-color 0.2s, height 0.2s; }
.res-irow:hover::after { height: 2px; background: var(--res-sig); }
.res-irow-l { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 14.5px; font-weight: 520; line-height: 1.3; color: var(--res-ink); }
.res-irow-l small { font-size: 11.5px; font-weight: 400; line-height: 1.35; color: var(--res-ink-3); }
.res-irow > b { flex: none; font-size: 14px; font-weight: 500; color: var(--res-bright); transition: color 0.2s; }
.res-irow:hover .res-irow-l > span { color: var(--res-bright); }
.res-irow:hover > b { color: var(--res-sig); }

/* tables of studies (landmark trials, a dossier's highest-tier studies) */
.res-table { display: flex; flex-direction: column; }
.res-table-spot { --res-tcols: minmax(0, 1fr) 44px 160px 170px 62px 62px; }
.res-table-top { --res-tcols: minmax(0, 1fr) 100px 44px 62px; }
.res-thead { display: grid; grid-template-columns: var(--res-tcols); gap: 0 24px; padding: 0 34px 10px 0; border-bottom: 1px solid var(--res-line-2); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--res-ink-3); }
.res-trow .res-row-link { display: grid; grid-template-columns: var(--res-tcols); align-items: start; gap: 0 24px; }
.res-tc { min-width: 0; font-size: 12.5px; line-height: 1.45; color: var(--res-ink-2); }
.res-tc-study { display: flex; flex-direction: column; gap: 4px; }
.res-tc-study .res-row-sub { -webkit-line-clamp: 1; }
.res-tc-n, .res-tc-year, .res-tc-stats { padding-top: 2px; font-size: 12px; }
.res-tc-n { font-weight: 500; color: var(--res-bright); }

/* pager */
.res-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.res-page { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 30px; height: 30px; padding: 0 7px; border-radius: 7px; font-family: var(--res-mono); font-size: 12px; color: var(--res-ink-2); transition: background-color 0.2s, color 0.2s; }
.res-page:hover { color: var(--res-ink); background: var(--res-raise); }
.res-page[aria-current="page"] { color: var(--res-bright); background: var(--res-raise-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 -2px 0 var(--res-sig); }
.res-page-step { padding: 0 10px; font-family: var(--font-sans, sans-serif); font-size: 13px; }
.res-page-step:first-child { margin-right: 8px; }
.res-page-step:last-child { margin-left: 8px; }
.res-page.is-off { opacity: 0.35; background: none; }
.res-page-gap { color: var(--res-ink-3); }
.res-pager-compact { flex-wrap: nowrap; justify-content: space-between; }
.res-pager-compact .res-page-step { margin: 0 -10px; }
.res-pager-pos { font-size: 11.5px; color: var(--res-ink-3); white-space: nowrap; }

/* states */
.res-skel { display: flex; flex-direction: column; }
.res-skel-row { display: flex; flex-direction: column; gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--res-line); }
.res-skel-row > i { display: block; height: 9px; border-radius: 3px; background: rgba(236, 234, 228, 0.06); }
.res-skel-row > i + i { height: 7px; background: rgba(236, 234, 228, 0.035); }
.res-empty { padding: 40px 0 32px; max-width: 56ch; }
.res-empty-t { font-family: var(--res-display); font-size: 28px; line-height: 1.15; color: var(--res-ink); }
.res-empty-h { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--res-ink-3); }
.res-empty-a { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 22px; }
.res-empty.is-error .res-empty-t::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 12px; border: 1px solid var(--res-ink); vertical-align: 0.18em; transform: rotate(45deg); }
.res-none { padding: 6px 0; font-size: 13px; color: var(--res-ink-3); }

/* ───────────────────────────── panes: filters · list, the reader or its stage beside ───────────────────────────── */

.res-view.res-px { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); max-width: none; height: 100%; margin: 0; padding: 0; }
.res-view.res-px.has-side { grid-template-columns: 240px minmax(0, 1fr); }
.res-px > .res-results { display: flex; flex-direction: column; min-height: 0; }
.res-px .res-toolbar { padding: 18px 26px 0; }
.res-px .res-results > .res-chips, .res-px .res-count { margin-left: 26px; margin-right: 26px; }
.res-px .res-count { margin-bottom: 8px; }
.res-px .res-list-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 4px 26px 26px; border-top: 1px solid var(--res-line); }
.res-px .res-list-foot { flex: none; margin: 0; padding: 7px 26px; border-top: 1px solid var(--res-line-2); }
.res-px .res-filters > .res-select { flex: 1 1 150px; }
.res-px .res-filters .res-select-el { max-width: none; }
.res-px-wide .res-toolbar { padding: 24px 40px 0; }
.res-px-wide .res-toolbar-row { max-width: 640px; }
.res-px-wide .res-results > .res-chips, .res-px-wide .res-count { margin-left: 40px; margin-right: 40px; }
.res-px-wide .res-list-scroll { padding: 4px 40px 32px; }
.res-px-wide .res-list { max-width: 880px; }
.res-px-wide .res-list-foot { padding: 7px 40px; }
.res-px-wide .res-pager-compact { max-width: 880px; }

.res-side { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 16px 48px 22px; border-right: 1px solid var(--res-line); }
.res-side-toggle, .res-side-done { display: none; }
.res-side-toggle .res-num { color: var(--res-sig); }
.res-side-sec { display: flex; flex-direction: column; gap: 1px; }
.res-side-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 26px 0 8px; font-family: var(--font-sans, sans-serif); font-size: 10.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--res-ink-3); }
.res-side-h .res-term, .res-side-h .res-num { font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.res-side-a { position: relative; display: flex; align-items: baseline; gap: 9px; margin: 0 -10px; padding: 5px 10px; border-radius: 7px; font-size: 13px; line-height: 1.3; color: var(--res-ink-2); transition: background-color 0.18s, color 0.18s; }
.res-side-a > .res-tier { align-self: flex-start; margin-top: 6px; }
.res-side-l { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.res-side-l small { font-size: 11px; line-height: 1.3; color: var(--res-ink-3); }
.res-side-a > .res-num { flex: none; font-size: 10.5px; color: var(--res-ink-3); }
.res-side-a:hover { color: var(--res-ink); background: var(--res-raise); }
.res-side-a[aria-current="true"] { color: var(--res-bright); background: var(--res-raise-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.res-side-a[aria-current="true"]::before { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px; border-radius: 1px; background: var(--res-sig); }
.res-side-a[aria-current="true"] > .res-num { color: var(--res-bright); }
.res-side-box { flex: none; align-self: center; width: 11px; height: 11px; border: 1px solid var(--res-ink-3); border-radius: 3px; }
.res-side-a[aria-current="true"] .res-side-box { border-color: var(--res-sig); background: var(--res-sig); box-shadow: inset 0 0 0 2px var(--res-raise-2); }
.res-side-a.is-check[aria-current="true"]::before { content: none; }
.res-side-fields { display: grid; gap: 12px; }
.res-side-fields .res-select { display: flex; }
.res-side-fields .res-select-el { max-width: none; }
.res-side-fields.is-bare .res-select-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.res-side-note { margin-top: 22px; font-size: 11.5px; line-height: 1.5; color: var(--res-ink-3); }

/* the reading pane while nothing is open: the same raised sheet the reader uses */
.res-stage-body { position: relative; display: grid; gap: 24px; max-width: 860px; margin: 0 auto; padding: 48px 52px 44px; border-radius: 16px; overflow: hidden; }
.res-stage-body::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--res-sig) 0, var(--res-sig) 52px, transparent 300px); }
.res-stage-t { font-family: var(--res-display); font-size: clamp(32px, 2.8vw, 42px); line-height: 1.05; letter-spacing: -0.008em; color: var(--res-bright); text-wrap: balance; }
.res-stage-h { max-width: 56ch; margin-top: -8px; font-size: 15.5px; line-height: 1.55; color: var(--res-ink-2); }
.res-stage-body > .res-figs { margin-top: 12px; }
.res-stage-body > .res-block { margin-top: 10px; }
.res-stage-note { font-size: 12.5px; color: var(--res-ink-3); }
.res-stage-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--res-line); font-size: 12px; color: var(--res-ink-3); }
.res-stage-keys .res-kbd:not(:first-child) { margin-left: 14px; }
.res-stage-keys .res-kbd + .res-kbd { margin-left: 0; }
.res-stage-tiers { display: grid; margin-top: 8px; }
.res-stage-tiers > a { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--res-line); }
.res-stage-tiers dd { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 13.5px; color: var(--res-ink-2); }
.res-stage-tiers dd b { font-weight: 500; color: var(--res-bright); }
.res-stage-tiers > a:hover dd { color: var(--res-ink); }
.res-stage-tiers > a:hover dd b { color: var(--res-sig); }

/* ───────────────────────────── overview hub, dossier, search, glossary ───────────────────────────── */

/* the hero: the first thing on the page. A raised surface with a thin accent line along its top edge. */
.res-hero { position: relative; display: grid; gap: 40px; padding: 48px 52px 40px; border-radius: var(--res-r-l); background: linear-gradient(180deg, #1C1D21 0%, var(--res-raise) 62%); overflow: hidden; }
.res-hero::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--res-sig) 0, var(--res-sig) 72px, transparent 380px); }
.res-hero > .res-figs { padding-top: 34px; border-top: 1px solid var(--res-line); }
.res-hero > .res-head { margin-bottom: 0; }
.res-hero-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 30%); align-items: end; gap: 28px 72px; }
.res-hero-copy { display: grid; gap: 22px; min-width: 0; }
.res-hero-copy > .res-eyebrow { margin-bottom: -4px; }
.res-hero-copy > .res-title { font-size: clamp(46px, 5vw, 72px); line-height: 0.96; letter-spacing: -0.016em; }
.res-hero-copy > .res-lede { margin-top: 0; }
.res-hero-search { margin-top: 10px; }
.res-hero-note { display: flex; flex-wrap: wrap; gap: 2px 6px; margin-top: -14px; font-size: 12px; color: var(--res-ink-3); }
.res-hero-note .res-term, .res-hero-note .res-link { color: var(--res-ink-2); }
.res-hero-chart { min-width: 0; padding-bottom: 6px; }
.res-hero-chart-k { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 12px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--res-ink-3); }
.res-hero-chart-k .res-num { font-size: 10.5px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.res-hero-chart .res-years figcaption > span:nth-child(2) { visibility: hidden; }
.res-hero-compact { gap: 20px; padding-top: 40px; padding-bottom: 36px; }
.res-hero-compact > .res-eyebrow { margin-bottom: -6px; }
.res-hero-compact > .res-title { font-size: clamp(40px, 4.2vw, 60px); line-height: 1; }
.res-hero-compact .res-count { margin: 0; }
.res-recent { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-top: -6px; font-size: 12.5px; }
.res-recent-k { display: inline-flex; align-items: center; gap: 7px; align-self: center; font-size: 12px; color: var(--res-ink-3); }
.res-recent .res-link { font-size: 12px; background: none; border: 0; padding: 0; color: var(--res-ink-3); }

.res-plain { list-style: none; margin: 0; padding: 0; }
.res-plain a { display: flex; align-items: baseline; gap: 14px; padding: 11px 0; border-top: 1px solid var(--res-line); font-size: 14px; color: var(--res-ink-2); }
.res-plain a:hover { color: var(--res-bright); }
.res-plain-k { flex: none; width: 54px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--res-ink-3); }
.res-plain-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-plain a > .res-num { color: var(--res-ink-3); font-size: 11px; }
.res-colophon { margin-top: 96px; font-size: 12px; color: var(--res-ink-3); }

/* a dossier: the hero, then the reading column on a raised sheet with the catalogue record beside it on the page tone */
.res-dossier-grid { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 40px 48px; align-items: start; margin-top: 16px; }
.res-sheet { padding: 40px 44px 28px; border-radius: 16px; }
.res-dossier-main { display: grid; gap: 48px; min-width: 0; }
.res-dossier-main .res-table { margin-top: 22px; }
.res-dossier-main .res-row:hover { background: var(--res-raise-2); }
.res-dossier-aside { position: sticky; top: 16px; display: grid; gap: 32px; min-width: 0; max-height: calc(var(--res-h) - var(--res-bar-h) - 32px); padding: 24px 4px 24px 0; overflow: auto; }
.res-organ > .res-results { max-width: 980px; }
.res-organ > .res-results .res-toolbar-row { max-width: 640px; }

.res-search-body { max-width: 980px; }
.res-search-sec .res-sec-head { margin: 76px 0 8px; }
.res-search-sec .res-sec-title { font-size: 28px; }
.res-search-sec .res-sec-title::before { margin-bottom: 16px; }
.res-search-sec .res-sec-aside .res-num { color: var(--res-bright); }

.res-glossary > div { display: grid; grid-template-columns: minmax(160px, 260px) minmax(0, 1fr); gap: 8px 44px; padding: 24px 0; border-top: 1px solid var(--res-line); scroll-margin-top: 20px; }
.res-glossary > div > dt { font-family: var(--res-display); font-size: 25px; line-height: 1.12; color: var(--res-bright); }
.res-glossary > div > dd { max-width: 66ch; }
.res-glossary > div > dd > p { margin: 0 0 10px; font-size: 14px; line-height: 1.6; color: var(--res-ink-2); }
.res-glossary > div > dd > p.res-pop-src { margin-top: 12px; font-size: 10.5px; color: var(--res-ink-3); }
.res-glossary > div > dd > .res-pop-list { margin: 4px 0 12px; }

/* a narrow view column (the reader is open beside it, or a small screen) */
@container res-main (max-width: 1060px) {
  .res-hero-top { grid-template-columns: minmax(0, 1fr); }
  .res-hero-chart .res-cols { --res-cols-h: 72px; }
  .res-dossier-grid { grid-template-columns: minmax(0, 1fr); }
  .res-dossier-aside { position: static; max-height: none; padding: 0; overflow: visible; }
  .res-table-spot { --res-tcols: minmax(0, 1fr) 44px 150px 62px; }
  .res-table-spot :is(.res-tc-spec, .res-tc-stats), .res-table-spot .res-thead > :is(:nth-child(4), :nth-child(6)) { display: none; }
}
@container res-main (max-width: 760px) {
  .res-pair, .res-pair:has(> .res-part:not(.res-lift)) { grid-template-columns: minmax(0, 1fr); }
  .res-head:has(> .res-head-acts) { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .res-head-acts { margin-top: 0; }
  .res-hero { padding: 34px 30px 30px; }
  .res-sheet { padding: 30px 28px 20px; }
  .res-thead { display: none; }
  .res-table { border-top: 1px solid var(--res-line-2); }
  .res-trow .res-row-link { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
  .res-tc-study { flex: 1 1 100%; }
  .res-table-spot .res-tc-spec { display: block; }
  .res-tc[data-th="n"]::before { content: 'n='; font-weight: 400; color: var(--res-ink-3); }
  .res-tc[data-th="Numbers"] { display: none; }
  .res-tierrow:not(.res-decrow) { grid-template-columns: 96px minmax(0, 1fr) 46px; }
  .res-tierrow:not(.res-decrow) .res-bar { display: none; }
  .res-sec-head { margin-top: 88px; }
  .res-sec-aside { justify-content: flex-start; }
}

/* ───────────────────────────── reader: the text on a raised sheet, contents beside it on the page tone ───────────────────────────── */

.res-reader { --res-read: 17px; position: relative; z-index: 2; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--res-bg); border-left: 1px solid var(--res-line); container: res-rd / inline-size; }
.res-rd-bar { position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 14px 0 clamp(20px, 3.6cqw, 48px); border-bottom: 1px solid var(--res-line); box-shadow: 0 12px 26px -20px rgba(0, 0, 0, 0.9); }
.res-rd-nav { display: inline-flex; align-items: center; gap: 2px; margin-left: -9px; }
.res-rd-bar.no-list .res-rd-nav { display: none; }
.res-rd-step { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: var(--res-r-s); color: var(--res-ink-2); transition: background-color 0.2s, color 0.2s; }
.res-rd-step:hover { color: var(--res-ink); background: var(--res-raise-2); }
.res-rd-step[aria-disabled="true"] { opacity: 0.28; pointer-events: none; }
.res-rd-pos { white-space: nowrap; min-width: 64px; text-align: center; font-size: 11px; color: var(--res-ink-3); }
.res-rd-kind { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 10.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--res-ink-3); white-space: nowrap; }
.res-rd-kind .res-num { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--res-ink-2); }
.res-rd-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.res-rd-sizer { display: inline-flex; align-items: center; margin-right: 8px; }
.res-rd-sizer .res-tool { min-width: 28px; padding: 0 4px; }
.res-aa { font-family: var(--res-serif); line-height: 1; }
.res-aa-s { font-size: 12px; }
.res-aa-l { font-size: 17px; }
.res-rd-size { min-width: 20px; text-align: center; font-size: 10.5px; color: var(--res-ink-3); }
.res-rd-save { display: inline-flex; margin: 0 10px; }
.res-rd-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; outline: none; scroll-behavior: auto; }
.res-rd-layout { display: block; padding: 26px clamp(14px, 3.6cqw, 48px) 120px; }
.res-rd-article { position: relative; max-width: 820px; margin: 0 auto; padding: clamp(30px, 6.5cqw, 64px) clamp(22px, 7cqw, 72px) 88px; border-radius: 16px; font-size: var(--res-read); }

/* contents: floats over a narrow reader; in a wide one a sticky column on the page tone */
.res-toc { display: none; position: absolute; z-index: 6; top: 58px; right: 12px; width: min(340px, calc(100% - 24px)); max-height: min(70%, 560px); overflow: auto; padding: 14px 8px 16px; border-radius: var(--res-r); background: var(--res-float); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 1px var(--res-line-2), 0 24px 60px rgba(0, 0, 0, 0.6); }
.res-reader.toc-open .res-toc { display: block; }
.res-toc-h { margin: 0 10px 8px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--res-ink-3); }
.res-toc-list { display: flex; flex-direction: column; }
.res-toc-i { position: relative; display: block; width: 100%; padding: 5px 10px 5px 14px; border-radius: 6px; font-size: 12.5px; line-height: 1.35; color: var(--res-ink-3); text-align: left; cursor: pointer; transition: color 0.18s; }
.res-toc-i:hover { color: var(--res-ink); }
.res-toc-l1 { color: var(--res-ink-2); }
.res-toc-l2 { padding-left: 26px; }
.res-toc-l3 { padding-left: 38px; font-size: 12px; }
.res-toc-i[aria-current] { color: var(--res-bright); }
.res-toc-i[aria-current]::before { content: ''; position: absolute; left: 2px; top: 7px; bottom: 7px; width: 2px; border-radius: 1px; background: var(--res-sig); }
.res-toc-more { margin: 8px 12px 0; font-size: 11.5px; color: var(--res-ink-3); }
.res-toc-pages { margin: 12px 12px 0; }
@container res-rd (min-width: 1020px) {
  .res-reader.has-toc .res-rd-layout { display: grid; grid-template-columns: minmax(0, 820px) 236px; justify-content: center; gap: 44px; }
  .res-reader.has-toc .res-rd-article { margin: 0; font-size: var(--res-read); }
  .res-reader.has-toc .res-toc { display: block; position: sticky; top: 26px; right: auto; width: auto; max-height: calc(var(--res-h) - 160px); align-self: start; padding: 22px 0 0; border-radius: 0; background: none; box-shadow: none; }
  .res-reader.has-toc .res-toc-h { margin-left: 14px; }
  .res-reader.has-toc .res-rd-tools > .res-tool:nth-of-type(1) { display: none; }
}

.res-rd-head { padding-bottom: 6px; }
.res-rd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 18px; font-size: 12px; color: var(--res-ink-3); }
.res-rd-meta .res-term { color: var(--res-ink-2); }
.res-rd-title { margin: 0; font-family: var(--res-display); font-weight: 400; font-size: clamp(30px, 2em, 48px); line-height: 1.06; letter-spacing: -0.01em; color: var(--res-bright); outline: none; text-wrap: balance; overflow-wrap: anywhere; }
.res-rd-orig { margin: 16px 0 0; font-family: var(--res-serif); font-style: italic; font-size: 15px; line-height: 1.5; color: var(--res-ink-3); }
.res-rd-file { margin: 12px 0 0; font-family: var(--res-mono); font-size: 11.5px; color: var(--res-ink-3); overflow-wrap: anywhere; }
.res-rd-by { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 18px 0 0; font-size: 13.5px; color: var(--res-ink-3); }
.res-rd-authors { color: var(--res-ink); }
.res-rd-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 20px; font-size: 13px; color: var(--res-ink-2); }
.res-rd-facts:empty { display: none; }
.res-rd-facts b { color: var(--res-bright); }
.res-rd-chips { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin-top: 14px; font-size: 13px; }
.res-rd-chips:empty { display: none; }
.res-rd-head .res-kv { margin: 22px 0 30px; }
.res-rd-sec { margin-top: 64px; }
.res-rd-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 11px; margin-bottom: 16px; border-bottom: 1px solid var(--res-line-2); }
.res-rd-h { position: relative; margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--res-ink); outline: none; scroll-margin-top: 20px; }
.res-rd-h::after { content: ''; position: absolute; left: 0; bottom: -12px; width: 28px; height: 1px; background: var(--res-sig); }
.res-rd-sec-aside { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 12px; color: var(--res-ink-3); }
.res-rd-h3 { margin: 26px 0 10px; font-family: var(--font-sans, sans-serif); font-size: 0.82em; font-weight: 600; letter-spacing: 0.01em; color: var(--res-ink); }
.res-rd-layer { margin: 10px 0 18px; font-size: 11.5px; color: var(--res-ink-3); }
.res-rd-layer .res-num { color: var(--res-ink-3); }
.res-rd-sec > .res-tabs { margin-bottom: 0; border-bottom: 0; }
.res-rd-sec > .res-kv { margin-bottom: 14px; }
.res-rd-sec > .res-kv > div:first-child { border-top: 0; }
.res-rd-sec .res-flagset { margin-bottom: 6px; }
.res-rd-sec > .res-btn { margin-top: 18px; }
.res-rd-loading { padding-top: 6px; }
.res-truncated { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 32px; padding: 18px 20px; border-radius: var(--res-r); background: var(--res-raise-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); font-size: 13px; color: var(--res-ink-2); }
.res-truncated p { margin: 0; }
.res-truncated b { color: var(--res-ink); font-weight: 400; }
.res-rd-article .res-row:hover { background: var(--res-raise-2); }

/* reading text */
.res-doc, .res-prose-md { font-family: var(--res-serif); font-size: 1em; line-height: 1.68; color: #DDDBD5; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; font-kerning: normal; text-rendering: optimizeLegibility; }
.res-doc p, .res-prose-md p { margin: 0 0 0.92em; }
.res-doc > .res-b:first-child { margin-top: 0; }
.res-doc .res-h, .res-prose-md .res-h { margin: 1.9em 0 0.6em; font-family: var(--font-sans, sans-serif); font-weight: 600; line-height: 1.3; letter-spacing: 0.002em; color: var(--res-bright); hyphens: manual; scroll-margin-top: 24px; }
.res-doc .res-h1, .res-prose-md .res-h1 { font-size: 1.22em; }
.res-doc .res-h2, .res-prose-md .res-h2 { font-size: 1.04em; }
.res-doc .res-h3, .res-prose-md .res-h3 { font-size: 0.9em; }
.res-doc .res-h4, .res-doc .res-h5, .res-doc .res-h6, .res-prose-md .res-h4 { font-size: 0.84em; color: var(--res-ink-2); letter-spacing: 0.02em; }
.res-doc strong, .res-prose-md strong { color: var(--res-bright); font-weight: 700; }
.res-doc em, .res-prose-md em { font-style: italic; }
.res-doc a, .res-prose-md a { color: var(--res-ink); text-decoration: underline; text-decoration-color: var(--res-line-3); text-underline-offset: 3px; }
.res-doc a:hover, .res-prose-md a:hover { text-decoration-color: var(--res-sig); }
.res-wiki { text-decoration-style: dotted !important; }
.res-picto { color: var(--res-ink-3); }
.res-doc code, .res-prose-md code { padding: 0.08em 0.35em; border-radius: 4px; background: rgba(236, 234, 228, 0.07); font-family: var(--res-mono); font-size: 0.8em; color: var(--res-ink); }
.res-doc pre, .res-prose-md pre { margin: 0 0 1em; padding: 14px 16px; overflow: auto; border-radius: var(--res-r-s); background: var(--res-well); box-shadow: var(--res-sunk); font-size: 0.82em; line-height: 1.5; }
.res-doc pre code { padding: 0; background: none; }
.res-doc blockquote, .res-prose-md blockquote { margin: 0 0 1em; padding: 0.1em 0 0.1em 1.1em; border-left: 2px solid var(--res-sig-55); color: var(--res-ink-2); font-style: italic; }
.res-doc hr, .res-prose-md hr { margin: 2em 0; border: 0; border-top: 1px solid var(--res-line-2); }
.res-mdlist { margin: 0 0 1em; padding-left: 1.3em; }
.res-mdlist li { margin: 0.25em 0; padding-left: 0.2em; }
.res-mdlist li::marker { color: var(--res-ink-3); }
.res-tablewrap { margin: 0 0 1.2em; overflow: auto; }
.res-tablewrap table { border-collapse: collapse; min-width: 100%; font-family: var(--font-sans, sans-serif); font-size: 0.76em; line-height: 1.4; hyphens: manual; }
.res-tablewrap th, .res-tablewrap td { padding: 8px 14px 8px 0; border-bottom: 1px solid var(--res-line); text-align: left; vertical-align: top; color: var(--res-ink-2); }
.res-tablewrap th { color: var(--res-ink); font-weight: 600; border-bottom-color: var(--res-line-2); }
.res-pagemark { display: flex; align-items: center; gap: 12px; margin: 2.2em 0 1.4em; font-family: var(--res-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--res-ink-3); hyphens: manual; }
.res-pagemark::after { content: ''; flex: 1; height: 1px; background: var(--res-line); }
.res-doc-more { height: 1px; }
.res-quoted { border-radius: 2px; background: var(--res-sig-14); color: var(--res-bright) !important; box-shadow: 0 1px 0 var(--res-sig); }
.res-doc .is-target, .res-list .is-target { box-shadow: -14px 0 0 -12px var(--res-sig); }
.res-row.is-target::before { background: var(--res-sig); }
.res-prose-md.res-rd-brief .res-rd-h3 { font-size: 0.86em; }
.res-rd-brief { margin-bottom: 0.5em; }
.res-reader .res-list-facts .res-fact-text { font-size: 0.92em; }

.res-mentions { list-style: none; margin: 18px 0 0; padding: 0; }
.res-mention { display: grid; gap: 4px; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--res-line); text-align: left; cursor: pointer; }
.res-mention:hover .res-mention-t { color: var(--res-ink); }
.res-mention-k { display: flex; gap: 10px; font-size: 11.5px; color: var(--res-ink-3); }
.res-mention-k > span:first-child { color: var(--res-ink-2); font-weight: 560; }
.res-mention-t { font-family: var(--res-serif); font-size: 14.5px; line-height: 1.55; color: var(--res-ink-2); }

/* the quote button that follows a selection */
.res-quote-btn { position: absolute; z-index: 7; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px 0 11px; border-radius: 9px; background: var(--res-sig); color: #0C0D0E; font-size: 12.5px; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 30px rgba(0, 0, 0, 0.55); cursor: pointer; }
.res-quote-btn[hidden] { display: none; }
.res-quote-btn:hover { background: color-mix(in srgb, var(--res-sig) 86%, #fff); }

/* ───────────────────────────── what floats: glossary popover, toasts ───────────────────────────── */

.res-pop { position: absolute; z-index: 70; padding: 18px 20px 16px; border-radius: var(--res-r); background: var(--res-float); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px var(--res-line-2), 0 24px 60px rgba(0, 0, 0, 0.65); color: var(--res-ink); font-size: 13px; }
.res-pop[hidden] { display: none; }
.res-pop-term { margin: 0 0 8px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--res-sig); }
.res-pop-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--res-ink); }
.res-pop-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 14px; margin: 12px 0 0; font-size: 12.5px; }
.res-pop-list dt { font-family: var(--res-mono); font-size: 11.5px; color: var(--res-ink); white-space: pre; }
.res-pop-list dd { margin: 0; color: var(--res-ink-2); }
.res-pop-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--res-ink-2); }
.res-pop-src { margin: 12px 0 0; font-family: var(--res-mono); font-size: 10.5px; color: var(--res-ink-3); }

.res-toasts { position: fixed; z-index: 90; left: 50%; bottom: 22px; transform: translateX(-50%); width: max-content; max-width: min(640px, calc(100vw - 24px)); pointer-events: none; }
.res-toast { pointer-events: auto; display: flex; align-items: center; gap: 4px 16px; padding: 11px 8px 11px 18px; border-radius: var(--res-r); background: var(--res-float); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px var(--res-line-2), 0 18px 50px rgba(0, 0, 0, 0.6); font-size: 13px; color: var(--res-ink); animation: res-toast-in 0.32s var(--ease-out, ease) both; }
@keyframes res-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.res-toast-mark { flex: none; width: 9px; height: 9px; border-radius: 2px; background: var(--res-sig); }
.res-toast-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.res-toast-detail { max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--res-ink-3); }
.res-toast-act { flex: none; height: 30px; padding: 0 4px; font-size: 12.5px; font-weight: 520; color: var(--res-ink); text-decoration: underline; text-decoration-color: var(--res-line-3); text-underline-offset: 3px; display: inline-flex; align-items: center; cursor: pointer; }
.res-toast-act:hover { text-decoration-color: var(--res-sig); }
.res-toast-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--res-r-s); color: var(--res-ink-3); cursor: pointer; }
.res-toast-x:hover { color: var(--res-ink); }

/* ───────────────────────────── boards: open columns of raised cards ───────────────────────────── */

.res-boards { max-width: none; }
.res-bd-head { margin-bottom: 30px; }
.res-bd-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.res-bd-h1 { margin: 0; min-width: 0; font-weight: 400; }
.res-editable { display: inline-flex; align-items: baseline; gap: 12px; max-width: 100%; text-align: left; cursor: text; }
.res-editable > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-editable .res-ico { flex: none; color: var(--res-ink-4); opacity: 0; transition: opacity 0.2s; align-self: center; }
.res-editable:hover .res-ico, .res-editable:focus-visible .res-ico { opacity: 1; }
.res-bd-name.res-title { display: inline-flex; flex-wrap: nowrap; }
.res-inline-input { min-width: 6ch; max-width: 100%; border-bottom: 1px solid var(--res-sig-55) !important; color: var(--res-bright); outline: none; }
.res-inline-input.res-title { display: block; width: min(640px, 100%); font-size: clamp(40px, 4.2vw, 60px); }
.res-bd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; padding-bottom: 6px; }
.res-bd-storage { margin: 16px 0 0; font-size: 12.5px; color: var(--res-ink-3); }
.res-bd-storage .res-num { color: var(--res-ink); }
.res-bd-storage strong { color: var(--res-ink); font-weight: 560; }
.res-bd-tabs { margin-top: 28px; }
.res-bd-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; margin-top: 22px; }
.res-bd-filter > .res-search { flex: 0 1 320px; height: 36px; padding: 0 10px 0 12px; border-radius: 9px; background: var(--res-well); box-shadow: var(--res-sunk); transition: box-shadow 0.2s; }
.res-bd-filter > .res-search:focus-within { box-shadow: inset 0 0 0 1px var(--res-sig-55), inset 0 2px 5px rgba(0, 0, 0, 0.55), 0 0 0 3px var(--res-sig-14); }
.res-bd-filter > .res-tabs { border-bottom: 0; }
.res-bd-filter > .res-tabs .res-tab { padding: 6px 0 8px; }
.res-bd-filter > .res-tabs .res-tab[aria-current="true"]::after { bottom: 0; }

.res-bd-cols { display: flex; align-items: flex-start; gap: 26px; min-height: 360px; padding: 6px var(--res-pad) 30px; margin: 0 calc(-1 * var(--res-pad)); overflow-x: auto; overscroll-behavior-x: contain; }
.res-bd-col { flex: 0 0 318px; display: flex; flex-direction: column; min-width: 0; }
.res-bd-colhead { display: flex; align-items: center; gap: 4px; min-height: 42px; padding: 0 2px 6px 4px; border-bottom: 1px solid var(--res-line-2); transition: border-color 0.2s; }
.res-bd-col.is-over .res-bd-colhead { border-bottom-color: var(--res-sig); }
.res-bd-colgrip { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 30px; margin-left: -5px; color: var(--res-ink-4); cursor: grab; touch-action: none; }
.res-bd-colgrip:hover { color: var(--res-ink-2); }
.res-bd-colname { min-width: 0; font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em; color: var(--res-bright); padding: 4px 2px; }
input.res-bd-colname { flex: 1; height: 28px; }
.res-bd-colcount { margin-left: 6px; font-size: 10.5px; color: var(--res-ink-3); white-space: nowrap; }
.res-bd-coltools { display: inline-flex; margin-left: auto; opacity: 0.5; transition: opacity 0.2s; }
.res-bd-col:hover .res-bd-coltools, .res-bd-coltools:focus-within { opacity: 1; }
.res-bd-cards { display: flex; flex-direction: column; gap: 10px; min-height: 86px; padding-top: 14px; }
.res-bd-colempty { margin: -72px 0 0; min-height: 72px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--res-line-2); border-radius: var(--res-r); font-size: 12.5px; color: var(--res-ink-3); pointer-events: none; }
.res-bd-colempty:empty { display: none; }
.res-bd-cards:has(.res-card:not([hidden])) + .res-bd-colempty { display: none; }
.res-bd-addcol { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; font-size: 13px; color: var(--res-ink-2); cursor: pointer; text-decoration: underline; text-decoration-color: var(--res-line-3); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.res-bd-addcol:hover { color: var(--res-ink); text-decoration-color: var(--res-ink-2); }
.res-bd-hint { margin: 8px 0 0; max-width: 90ch; font-size: 12px; line-height: 2.1; color: var(--res-ink-3); }

.res-card { position: relative; display: flex; flex-direction: column; gap: 7px; padding: 13px 16px 11px; border-radius: 11px; outline-offset: 3px; cursor: grab; transition: transform 0.25s var(--ease-out, ease-out), background-color 0.2s, box-shadow 0.25s; }
.res-card[hidden] { display: none; }
.res-card:hover { background: var(--res-raise-2); box-shadow: var(--res-lift-up); transform: translateY(-2px); }
.res-card:focus-visible { outline: 1px solid var(--res-ink); }
.res-card.is-grabbed { background: var(--res-raise-2); box-shadow: 0 0 0 1px var(--res-sig), var(--res-lift-up); }
.res-card.is-dragging { background: none; box-shadow: none; outline: 1px dashed var(--res-line-3); outline-offset: -1px; transform: none; }
.res-card.is-dragging > * { visibility: hidden; }
.res-card-top { display: flex; align-items: center; gap: 5px; margin-left: -6px; }
.res-card-grip { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 24px; color: var(--res-ink-4); cursor: grab; touch-action: none; }
.res-card:hover .res-card-grip { color: var(--res-ink-3); }
.res-card-kind { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--res-ink-3); }
.res-card-x { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: auto; margin-right: -7px; border-radius: 6px; color: var(--res-ink-4); cursor: pointer; }
.res-card-x:hover { color: var(--res-ink); }
.res-card-title { display: block; font-size: 14.5px; line-height: 1.38; font-weight: 520; color: var(--res-ink); cursor: pointer; text-wrap: pretty; }
.res-card-title > .res-ico { display: inline-block; margin-left: 5px; vertical-align: -1px; color: var(--res-ink-3); }
a.res-card-title:hover { color: var(--res-bright); }
a.res-card-title:hover > .res-ico { color: var(--res-sig); }
.res-card-sub { margin: -3px 0 0; font-size: 12px; line-height: 1.4; color: var(--res-ink-3); }
.res-card-q { margin: 1px 0; padding: 1px 0 1px 12px; border-left: 2px solid var(--res-sig-55); font-family: var(--res-serif); font-style: italic; font-size: 14px; line-height: 1.52; color: var(--res-ink); display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }
.res-card-k-fact .res-card-q { font-style: normal; }
.res-card-q + .res-card-title { font-size: 12.5px; font-weight: 440; color: var(--res-ink-2); }
.res-card-meta { margin: 0; font-family: var(--res-mono); font-size: 10.5px; line-height: 1.5; color: var(--res-ink-3); }
.res-card-note { display: block; width: 100%; min-height: 27px; padding: 4px 0; resize: none; border-bottom: 1px solid transparent; font-size: 13px; line-height: 1.45; color: var(--res-ink-2); outline: none; cursor: text; overflow: hidden; }
.res-card-note:hover { border-bottom-color: var(--res-line-2); }
.res-card-note:focus { border-bottom-color: var(--res-sig-55); color: var(--res-ink); }
.res-card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.res-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 2px 0 7px; border-radius: 6px; background: rgba(236, 234, 228, 0.07); font-size: 12px; color: var(--res-ink); }
.res-tag::before { content: '#'; color: var(--res-ink-3); }
.res-tag button { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; color: var(--res-ink-3); cursor: pointer; }
.res-tag button:hover { color: var(--res-ink); }
.res-card-taginput { flex: 1 1 70px; min-width: 60px; height: 22px; border-bottom: 1px solid transparent; font-size: 12px; color: var(--res-ink-2); outline: none; cursor: text; }
.res-card-taginput:focus { border-bottom-color: var(--res-sig-55); }
.res-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.res-card-foot > .res-num { font-size: 10px; color: var(--res-ink-3); }
.res-card-move { -webkit-appearance: none; appearance: none; max-width: 140px; height: 22px; padding: 0; font-size: 11.5px; color: var(--res-ink-3); text-align: right; cursor: pointer; outline: none; }
.res-card-move:hover, .res-card-move:focus-visible { color: var(--res-ink); }
.res-card-move:focus-visible { outline: 1px solid var(--res-ink); }
.res-card-move option, .res-card-move optgroup { background: #161719; color: var(--res-ink); }

/* the thing in your hand while dragging */
.res-ghost { position: fixed; z-index: 95; left: 0; top: 0; margin: 0; pointer-events: none; overflow: hidden; border-radius: 11px; background: #212227; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px var(--res-line-3), 0 34px 80px rgba(0, 0, 0, 0.75); cursor: grabbing; will-change: transform; }
.res-ghost.res-bd-col { padding: 0 12px; }
.res-ghost .res-card-grip { color: var(--res-ink); }
#research-root.is-dnd, #research-root.is-dnd * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
#research-root.is-dnd .res-card:hover { transform: none; }

/* export / import dialog: floats */
.res-veil { position: fixed; inset: 0; z-index: 88; display: grid; place-items: center; padding: 16px; background: rgba(5, 5, 6, 0.74); }
.res-dlg { display: flex; flex-direction: column; gap: 16px; width: min(780px, 100%); max-height: calc(100svh - 32px); padding: 28px 32px 28px; border-radius: 18px; background: var(--res-float); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px var(--res-line-2), 0 40px 100px rgba(0, 0, 0, 0.65); }
.res-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.res-dlg-title { margin: 0; font-family: var(--res-display); font-weight: 400; font-size: 32px; line-height: 1.1; color: var(--res-bright); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-dlg-lede { margin: 0; font-size: 12.5px; color: var(--res-ink-3); }
.res-dlg-lede .res-num { color: var(--res-ink-2); }
.res-dlg-text { flex: 1 1 auto; min-height: 160px; height: 46svh; width: 100%; padding: 14px 16px; resize: vertical; border-radius: var(--res-r); background: var(--res-well); box-shadow: var(--res-sunk); font-family: var(--res-mono); font-size: 12px; line-height: 1.6; color: var(--res-ink-2); white-space: pre; overflow: auto; outline: none; }
.res-dlg-text:focus { box-shadow: inset 0 0 0 1px var(--res-sig-55), inset 0 2px 5px rgba(0, 0, 0, 0.55); }
.res-dlg-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 26px; }
.res-dlg-msg { margin: 0 auto 0 0; font-size: 12.5px; color: var(--res-ink-3); }
.res-dlg-msg.is-error { color: var(--res-ink); }
.res-dlg-msg.is-error::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border: 1px solid var(--res-ink); transform: rotate(45deg); }
.res-dlg .res-tabs { margin-top: -4px; border-bottom: 0; }
.res-dlg .res-tab[aria-current="true"]::after { bottom: 4px; }

/* ───────────────────────────── when the reader is open beside the view ───────────────────────────── */

.res-shell[data-reader="split"] .res-view:not(.res-px) { padding-top: 28px; }

/* ───────────────────────────── medium screens: the reader lies over the view ───────────────────────────── */

@media (max-width: 1279px) {
  .res-shell[data-reader="split"], .res-shell[data-panes="on"] { grid-template-columns: minmax(0, 1fr); }
  .res-shell[data-panes="on"][data-reader="none"] .res-stage { display: none; }
  .res-shell[data-reader="split"] .res-reader { grid-column: 1; border-left: 0; }
  .res-px:not(.has-side) > .res-results { width: 100%; max-width: 880px; margin: 0 auto; }
  .res-px.has-side .res-list { max-width: 900px; }
}
@media (max-width: 1239px) {
  .res-tabbtn:not(.is-own) .res-num { display: none; }
  .res-top-search { width: 190px; }
}
@media (max-width: 1019px) {
  .res-top .res-top-search { display: none; }
  .res-top .res-top-find { display: inline-flex; align-self: center; }
  .res-shell[data-view="search"] .res-top .res-top-find, .res-shell[data-view="home"] .res-top .res-top-find { display: none; }
}

/* ───────────────────────────── phone and small tablet: one column ───────────────────────────── */

@media (max-width: 899px) {
  #research-root { --res-pad: 14px; --res-gut: 0px; --res-bar-h: 46px; --res-r-l: 16px; }
  .res-top { gap: 6px; padding: 0 6px 0 18px; }
  .res-tabsnav { gap: 22px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent); padding-right: 22px; }
  .res-tabbtn.is-own { margin-left: 4px; }
  .res-tabbtn.is-own > .res-ico { display: none; }
  .res-top-tools { gap: 2px; }
  .res-top-link { display: none; }
  .res-view { padding: 16px var(--res-pad) 96px; }
  .res-view:not(.res-home):not(.res-dossier) { padding-left: 18px; padding-right: 18px; }
  .res-crumbs { margin: 6px 4px 18px; }
  .res-head { margin-bottom: 30px; }
  .res-title { font-size: 40px; }
  .res-hero { gap: 30px; padding: 30px 22px 28px; }
  .res-hero-copy > .res-title { font-size: 46px; }
  .res-hero-compact > .res-title { font-size: 40px; }
  .res-hero > .res-figs { padding-top: 28px; }
  .res-lede { font-size: 15.5px; }
  .res-field-lg { flex: 1 1 100%; height: 54px; padding: 0 14px 0 16px; }
  .res-field-lg .res-kbd { display: none; }
  .res-input-lg { height: 52px; font-size: 16.5px; }
  .res-btn-lg { flex: 1 1 100%; height: 52px; }
  .res-figs { gap: 26px 0; }
  .res-fig { flex: 1 1 50%; padding: 2px 10px 2px 14px; }
  .res-fig:nth-child(odd) { border-left-color: var(--res-sig); }
  .res-fig-n { font-size: 32px; }
  .res-sec-head { margin: 84px 4px 24px; }
  .res-sec-title { font-size: 30px; }
  .res-sec-title::before { margin-bottom: 18px; }
  .res-dgrid { gap: 12px; }
  .res-dcard { padding: 20px 20px 20px; }
  .res-index, .res-table, .res-pair:has(> .res-part:not(.res-lift)), .res-more, .res-colophon { margin-left: 4px; margin-right: 4px; }
  .res-lift { padding: 24px 22px 26px; }
  .res-sheet { padding: 28px 22px 18px; }
  .res-dossier-main { gap: 40px; }
  .res-dossier-aside { margin: 0 4px; }
  .res-guides { columns: 1; }
  .res-glossary > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }

  .res-view.res-px, .res-view.res-px.has-side { display: block; height: auto; padding: 0; }
  .res-px > .res-results { display: block; }
  .res-px .res-toolbar, .res-px-wide .res-toolbar { padding: 16px 18px 0; }
  .res-px .res-results > .res-chips, .res-px .res-count { margin-left: 18px; margin-right: 18px; }
  .res-px .res-list-scroll, .res-px-wide .res-list-scroll { overflow: visible; padding: 4px 18px 18px; }
  .res-px .res-list-foot, .res-px-wide .res-list-foot { position: sticky; bottom: 0; z-index: 3; padding: 7px 18px; background: var(--res-bg); box-shadow: 0 -14px 26px -18px rgba(0, 0, 0, 0.9); }
  .res-side { display: none; padding: 0 18px 22px; border-right: 0; border-bottom: 1px solid var(--res-line-2); }
  .res-side[data-open] { display: block; }
  .res-side-toggle { display: inline-flex; flex: none; height: 38px; }
  .res-side-toggle[aria-expanded="true"] { color: var(--res-ink); text-decoration-color: var(--res-sig); }
  .res-side-done { display: inline-flex; margin-top: 20px; }
  .res-px .res-filters > .res-select { flex: 1 1 130px; }

  .res-reader, .res-shell[data-reader="split"] .res-reader { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; top: var(--nav-h, 56px); border-left: 0; }
  .res-shell[data-reader="focus"] .res-main { display: block; }
  .res-rd-bar { height: 50px; gap: 6px; padding: 0 6px 0 20px; }
  .res-rd-pos { min-width: 0; padding: 0 2px; }
  .res-rd-kind .res-num { display: none; }
  .res-rd-sizer { margin-right: 0; }
  .res-rd-sizer .res-rd-size { display: none; }
  .res-tool-l { display: none; }
  .res-rd-save { margin: 0 2px; }
  .res-rd-save .res-save-l { display: none; }
  .res-rd-save .res-save-wide { width: 32px; height: 32px; }
  .res-rd-layout { padding: 10px 8px 100px; }
  .res-rd-article { padding: 30px 20px 64px; border-radius: 14px; }
  .res-pager { gap: 2px 4px; }
  .res-bd-top { align-items: flex-start; flex-direction: column; }
  .res-bd-cols { flex-direction: column; align-items: stretch; gap: 34px; overflow: visible; margin: 0; padding: 6px 0 18px; }
  .res-bd-col { flex: none; width: 100%; }
  .res-bd-addcol { align-self: flex-start; }
  .res-bd-coltools { opacity: 1; }
  .res-bd-filter > .res-search { flex-basis: 100%; }
  .res-toasts { bottom: 12px; }
  .res-toast { flex-wrap: wrap; padding: 10px 6px 8px 14px; }
  .res-toast-text { flex: 1 1 60%; }
  .res-dlg { padding: 20px 18px; border-radius: 16px; }
  .res-dlg-title { font-size: 26px; }
  .res-quote-btn { height: 38px; }
}

@media (max-width: 560px) {
  .res-tabbtn-l { display: none; }
  .res-tabbtn-s { display: inline; }
}

@media (max-width: 420px) {
  .res-rd-tools > a.res-tool:not(.res-rd-close) { display: none; }
  .res-rd-pos { font-size: 10px; }
  .res-tabsnav { gap: 19px; }
  .res-bd-tools { gap: 4px 20px; }
}

@media (hover: none) {
  .res-dcard:hover, .res-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  #research-root *, #research-root *::before, #research-root *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .res-dcard:hover, .res-dcard:has(.res-dcard-name:focus-visible), .res-card:hover, .res-btn-strong:hover { transform: none; }
}

@media print {
  .res-top, .res-rd-bar, .res-toasts, .res-quote-btn, .res-main, .res-stage { display: none !important; }
  .res-shell { display: block; height: auto; }
  .res-reader { position: static; background: #fff; color: #000; }
  .res-rd-article { background: none; box-shadow: none; }
  .res-rd-scroll { overflow: visible; }
}

/* ───────── the library's password (js/research/lock.js) ───────── */
.res-lock-wrap { display: grid; place-items: center; min-height: calc(100vh - 140px); padding: 96px 20px 64px; }
.res-lock { width: min(560px, 100%); padding: 44px 44px 36px; border-top: 2px solid var(--res-sig); }
.res-lock-eyebrow { margin: 0 0 14px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--res-sig); }
.res-lock-h { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; color: var(--res-ink); }
.res-lock-text { margin: 0 0 28px; font-size: 15px; line-height: 1.55; color: var(--res-ink-2); }
.res-lock-form { display: flex; flex-wrap: wrap; gap: 12px; }
.res-lock-form .res-field-lg { display: flex; align-items: center; }
.res-lock-go { height: 58px; padding: 0 24px; border-radius: 13px; font-size: 15px; }
.res-lock-go:disabled { opacity: 0.6; cursor: default; }
.res-lock-error { min-height: 1.4em; margin: 14px 0 0; font-size: 14px; color: #FF8F8B; }
@media (max-width: 520px) {
  .res-lock { padding: 32px 22px 26px; }
  .res-lock-go { flex: 1 1 100%; }
}
