/* /research in two panes (24 Nov 2026, the owner chose example E of design/site-mockups/research-page-2026-11-24/).
   View app/views/research.php; loaded by that page only (render(..., 'css' => ['feat-research.css'])).
   Every class starts .rsp-, and every rule is tied to .rsp so that it also holds in the dark look.
   Colours: the site's variables (style.css :root), and the page's own set below on .rsp with its dark-look values
   under :root[data-theme="dark"] .rsp (the way feat-atlas.css does it). No colour is written in a rule itself, so
   tools/build_dark_css.php has nothing to turn; rerun it all the same after a change here.
   No script: the left list is links, and the phone view is decided by .is-open (a country or series is chosen). */

.rsp {
  --rsp-mat: #e2e8f2; --rsp-hair: #e2e8f1; --rsp-text: #4a5873; --rsp-faint: #738098;
  --rsp-frame: rgba(30,47,77,.12); --rsp-note-shadow: rgba(20,30,50,.28);
  --rsp-soft: 0 1px 2px rgba(30,47,77,.04), 0 12px 32px rgba(30,47,77,.06);
  --rsp-lift: 0 2px 4px rgba(30,47,77,.05), 0 18px 40px rgba(30,47,77,.11);
  padding-top: 1.8rem;
}
:root[data-theme="dark"] .rsp {
  --rsp-mat: #1d2839; --rsp-hair: #273347; --rsp-text: #b4c0d3; --rsp-faint: #8c9ab0;
  --rsp-frame: rgba(255,255,255,.12); --rsp-note-shadow: rgba(0,0,0,.5);
  --rsp-soft: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.28);
  --rsp-lift: 0 2px 4px rgba(0,0,0,.35), 0 18px 40px rgba(0,0,0,.4);
}
.rsp *, .rsp *::before, .rsp *::after { min-width: 0; }
.rsp a { text-decoration: none; }
.rsp a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.rsp ul, .rsp ol { list-style: none; margin: 0; padding: 0; }
.rsp .rsp-head h1 { color: var(--navy); font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.rsp .rsp-head p { color: var(--rsp-text); font-size: 1.02rem; line-height: 1.55; margin-top: .55rem; max-width: 62ch; }
.rsp .rsp-head .rsp-sum { color: var(--rsp-faint); font-size: .86rem; margin-top: .7rem; }
.rsp .rsp-label { color: var(--rsp-faint); font-size: .74rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.rsp .rsp-meta { color: var(--rsp-faint); font-size: .82rem; line-height: 1.45; }
.rsp .rsp-excerpt { color: var(--rsp-text); font-size: .93rem; line-height: 1.58; }
.rsp .rsp-t { color: var(--ink); font-weight: 700; }
.rsp .rsp-t i { font-style: normal; font-weight: 500; color: var(--rsp-text); }
.rsp a.rsp-t:hover { color: var(--accent); }
.rsp .rsp-more { display: inline-block; padding: .5rem 0; font-weight: 700; font-size: .93rem; }
.rsp .rsp-more:hover { text-decoration: underline; }
.rsp .rsp-draft { display: inline-block; margin-left: .45rem; color: var(--amber-ink); font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; opacity: .85; vertical-align: .08em; }
.rsp .rsp-flag { display: inline-block; width: 26px; height: 17px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px var(--rsp-frame); flex-shrink: 0; vertical-align: -.16em; }

/* the picture box: always 2:1. A cover close to that shape fills it; any other cover and every banknote is shown whole */
.rsp .rsp-pic { display: block; position: relative; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 10px; background: var(--rsp-mat); }
.rsp .rsp-pic img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; box-sizing: border-box; }
.rsp .rsp-pic.is-note img, .rsp .rsp-pic.is-fit img { object-fit: contain; padding: 6% 7%; filter: drop-shadow(0 2px 5px var(--rsp-note-shadow)); }
.rsp .rsp-pic.is-none::before { content: ""; position: absolute; inset: 14% 9%; border: 1px solid var(--rsp-frame); border-radius: 3px; box-shadow: inset 0 0 0 4px var(--rsp-mat), inset 0 0 0 5px var(--rsp-frame); }
.rsp .rsp-pic.is-none::after { content: "Research"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--rsp-faint); font-size: .62rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }

.rsp .rsp-cta { max-width: 68ch; margin-top: 3.2rem; padding-top: 2rem; border-top: 1px solid var(--rsp-hair); }
.rsp .rsp-cta p { color: var(--rsp-text); font-size: .93rem; line-height: 1.6; margin: .7rem 0 .3rem; }
.rsp .rsp-cta .rsp-label { color: var(--rsp-faint); font-size: .74rem; margin: 0; }
.rsp .rsp-empty { color: var(--rsp-text); margin-top: 2rem; }
@media (prefers-reduced-motion: no-preference) { .rsp a, .rsp .rsp-card { transition: color .15s, background-color .15s, box-shadow .2s; } }

/* the two panes */
.rsp .rsp-wrap { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 3rem; align-items: start; margin-top: 2.4rem; }
.rsp .rsp-nav { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding: 2px 6px 2rem 2px; scrollbar-width: thin; }
.rsp .rsp-nav .rsp-label { margin: 1.5rem 0 .4rem .75rem; }
.rsp .rsp-nav .rsp-label:first-child { margin-top: .3rem; }
.rsp .rsp-item { display: flex; align-items: center; gap: .65rem; width: 100%; min-height: 2.6rem; padding: .45rem .75rem; border-radius: 10px; text-align: left; color: var(--rsp-text); font-size: .95rem; font-weight: 600; line-height: 1.25; }
.rsp .rsp-item b { margin-left: auto; color: var(--rsp-faint); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.rsp .rsp-item:hover { color: var(--navy); background: var(--rsp-mat); }
.rsp .rsp-item[aria-current="true"] { background: var(--card); color: var(--navy); font-weight: 800; box-shadow: var(--rsp-soft); }
.rsp .rsp-rest { margin: 1.4rem .75rem 0; color: var(--rsp-faint); font-size: .84rem; line-height: 1.5; }
.rsp .rsp-rest a { text-decoration: underline; }
.rsp .rsp-main { scroll-margin-top: 1rem; }
.rsp .rsp-back { display: none; }
.rsp .rsp-hero { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 2rem; align-items: center; padding-bottom: 1.6rem; }
.rsp .rsp-hero.rsp-hero-plain { grid-template-columns: minmax(0, 1fr); }
.rsp .rsp-hero h2 { display: flex; align-items: center; gap: .75rem; color: var(--navy); font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.rsp .rsp-hero h2 .rsp-flag { width: 40px; height: 27px; border-radius: 3px; }
.rsp .rsp-hero p { color: var(--rsp-text); font-size: .95rem; margin-top: .5rem; max-width: 52ch; }
.rsp .rsp-hero .rsp-more { margin-top: .2rem; font-size: .9rem; }
.rsp .rsp-hero .rsp-pic { border-radius: 12px; }
.rsp .rsp-list li { margin-top: 1.2rem; }
.rsp .rsp-list li:first-child { margin-top: 0; }
.rsp .rsp-card { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 1.6rem; align-items: start; background: var(--card); border-radius: 16px; box-shadow: var(--rsp-soft); padding: 1.3rem 1.5rem 1.3rem 1.3rem; }
.rsp .rsp-card:hover { box-shadow: var(--rsp-lift); }
.rsp .rsp-kick { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; margin-bottom: .35rem; color: var(--rsp-faint); font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.rsp .rsp-kick .rsp-flag { width: 21px; height: 14px; }
.rsp .rsp-card h3 { font-size: 1.08rem; line-height: 1.34; letter-spacing: -.005em; }
.rsp .rsp-card .rsp-excerpt { margin-top: .4rem; }
.rsp .rsp-card .rsp-meta { margin-top: .5rem; }
@media (max-width: 980px) {
  .rsp .rsp-wrap { grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; }
  .rsp .rsp-card { grid-template-columns: 168px minmax(0, 1fr); gap: 1.2rem; }
  .rsp .rsp-hero { grid-template-columns: minmax(0, 1fr) 190px; }
}

/* a phone: the list is the page, with Newest under it; a chosen country or series is a screen of its own with a back link */
@media (max-width: 760px) {
  .rsp .rsp-wrap { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; margin-top: 1.6rem; }
  .rsp .rsp-nav { position: static; max-height: none; overflow: visible; padding: 0; }
  .rsp.is-open .rsp-nav { display: none; }
  .rsp.is-open .rsp-head p { display: none; }
  .rsp.is-open .rsp-head h1 { font-size: 1.3rem; }
  .rsp.is-open .rsp-wrap { margin-top: .6rem; }
  .rsp .rsp-item { min-height: 3rem; padding: .5rem .6rem; font-size: 1rem; border-radius: 0; border-bottom: 1px solid var(--rsp-hair); }
  .rsp .rsp-item[aria-current="true"] { box-shadow: none; background: none; }
  .rsp .rsp-item::after { content: "›"; color: var(--rsp-faint); font-size: 1.2rem; line-height: 1; margin-left: .2rem; }
  .rsp .rsp-nav .rsp-label { margin: 1.7rem 0 .3rem .6rem; }
  .rsp .rsp-back { display: inline-flex; align-items: center; min-height: 2.75rem; margin-bottom: .6rem; font-weight: 700; font-size: .95rem; }
  .rsp .rsp-hero { grid-template-columns: minmax(0, 1fr) 112px; gap: 1rem; padding-bottom: 1.2rem; }
  .rsp .rsp-hero h2 .rsp-flag { width: 32px; height: 21px; }
  .rsp .rsp-hero .rsp-pic { border-radius: 8px; }
  .rsp .rsp-card { grid-template-columns: minmax(0, 1fr); gap: .9rem; padding: 1rem 1rem 1.1rem; }
  .rsp .rsp-card.is-same > a { display: none; }
  .rsp .rsp-list li { margin-top: .9rem; }
}
