/* =============================================================================
   ALPHA VITAL ELITE IV — RESEARCH.CSS
   The reference library. Layers on ../styles.css — tokens, header, menu,
   buttons, rubric, footer and dock all come from there and are NOT redefined.

   THE IDEA — this page's whole argument is that WHAT KIND of study something
   is matters more than what it found. So evidence tier is the loudest visual
   signal on every card: a coloured spine, a rank numeral, and a badge. A
   preclinical mouse study is never allowed to look like a meta-analysis.

     00 TOKENS & SHELL     01 START STATES      02 ATOMS
     03 MASTHEAD           04 THE TIERS         05 FILTER BAR
     06 THE LIBRARY        07 LIMITS            08 BEGIN
     09 MOTION · A11Y · PRINT
============================================================================= */


/* ── 00 TOKENS & SHELL ───────────────────────────────────────────────────── */
.page-research {
    --pad:   clamp(4rem, 9vw, 8rem);
    --rse:   cubic-bezier(.16, 1, .3, 1);

    /* evidence tiers, strongest to weakest — one hue each, used everywhere */
    --t-synthesis:    #2F6B4F;
    --t-clinical:     #35707F;
    --t-review:       #5B7098;
    --t-observation:  #8C6239;
    --t-preclinical:  #B34E37;
    --t-official:     #7A5F98;

    background: var(--cream);
    color: var(--ink-soft);
    -webkit-tap-highlight-color: transparent;
}

.page-research section[id] { scroll-margin-top: calc(var(--head-h) + 5.5rem); }
.page-research :is(h1, h2, h3) { text-wrap: balance; }
.page-research :is(p, li, dd)  { text-wrap: pretty; }

.rs-wrap {
    width: 100%; max-width: var(--maxw);
    margin-inline: auto; padding-inline: var(--gut);
}

.head  { view-transition-name: site-head; }
.foot  { view-transition-name: site-foot; }


/* ── 01 START STATES ─────────────────────────────────────────────────────── */
html.rs-on [data-rs]           { opacity: 0; will-change: transform, opacity; }
html.rs-on [data-rs="rise"]    { transform: translate3d(0, 30px, 0); }
html.rs-on [data-rs="pop"]     { transform: translate3d(0, 22px, 0) scale(.96); }
html.rs-on [data-rs="scale"]   { transform: scale(.94); }
html.rs-on [data-rs-split]     { opacity: 0; }
html.rs-on .rs-line > span     { transform: translate3d(0, 105%, 0); }

.rs-line { display: block; overflow: hidden; }
.rs-line > span { display: block; will-change: transform; }


/* ── 02 ATOMS ────────────────────────────────────────────────────────────── */
.rs-prog {
    position: fixed; inset: 0 0 auto 0; z-index: 1100;
    height: 2px; background: var(--gold);
    transform-origin: 0 50%; transform: scaleX(0);
    pointer-events: none;
}
.rs-skip {
    position: absolute; left: -9999px; top: 0; z-index: 5000;
    padding: .8rem 1.2rem; background: var(--forest); color: var(--cream);
    font-family: var(--micro); font-size: .62rem;
    letter-spacing: .14em; text-transform: uppercase;
}
.rs-skip:focus { left: .5rem; top: .5rem; }

.rs-eyebrow {
    display: flex; align-items: center; gap: .9rem;
    font-family: var(--caps); font-size: .72rem;
    letter-spacing: .26em; text-transform: uppercase;
    color: var(--gold-deep); margin-bottom: 1.4rem;
}
.rs-eyebrow::before {
    content: ''; width: clamp(24px, 5vw, 54px); height: 1px;
    background: var(--rule-gold); flex: none;
}

.rs-h2 {
    font-family: var(--display); font-weight: 400;
    font-size: clamp(1.9rem, 4vw, 3.4rem);
    line-height: 1.08; letter-spacing: -.015em; color: var(--forest);
}
.rs-h2 em { font-family: var(--accent); font-style: italic; font-weight: 500; color: var(--gold-deep); }

.rs-lede {
    max-width: 66ch; margin-top: 1.3rem;
    font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.75;
}


/* ── 03 MASTHEAD ─────────────────────────────────────────────────────────── */
.rs-top {
    position: relative;
    padding: calc(var(--head-h) + clamp(1.5rem, 5vh, 3rem)) 0 clamp(2.5rem, 5vw, 4rem);
    background:
        radial-gradient(90% 60% at 82% 0%, rgba(193,150,63,.13), transparent 62%),
        var(--cream);
    overflow: clip;
}
.rs-folio {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule);
    font-family: var(--micro); font-size: .66rem;
    letter-spacing: .2em; text-transform: uppercase; color: var(--mist);
}
.rs-folio__mid { color: var(--gold-deep); }

.rs-top__grid {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(1.5rem, 4vw, 4rem); align-items: end;
    margin-top: clamp(2rem, 5vh, 3.5rem);
}
.rs-top__title {
    font-family: var(--display); font-weight: 400;
    font-size: clamp(2.3rem, 6vw, 5rem);
    line-height: 1.02; letter-spacing: -.025em; color: var(--forest);
}
.rs-top__title em {
    display: block; font-family: var(--accent); font-style: italic;
    font-weight: 500; color: var(--gold-deep);
}

/* the tally */
.rs-tally {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.4vw, 2rem);
    margin-top: clamp(2.25rem, 5vw, 3.5rem);
    padding-top: clamp(1.4rem, 3vw, 2rem);
    border-top: 1px solid var(--forest);
}
.rs-tally__no {
    display: block; font-family: var(--data); font-weight: 600;
    font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1;
    letter-spacing: -.03em; color: var(--forest);
    font-variant-numeric: tabular-nums;
}
.rs-tally__key {
    display: block; margin-top: .6rem;
    font-size: .8rem; line-height: 1.5; color: var(--mist); max-width: 24ch;
}

@media (max-width: 900px) {
    .rs-top__grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (max-width: 560px) {
    .rs-folio { font-size: .56rem; letter-spacing: .13em; }
    .rs-folio__mid { order: 3; flex-basis: 100%; }
    .rs-tally { grid-template-columns: 1fr; row-gap: 1.4rem; }
    .rs-tally__item { display: flex; align-items: baseline; gap: 1rem; }
    .rs-tally__no { font-size: 1.9rem; min-width: 3ch; }
    .rs-tally__key { margin-top: 0; }
}


/* ── 04 THE TIERS ────────────────────────────────────────────────────────────
   The key to the whole page. Ranked strongest to weakest, and every card
   downstream carries the same hue and numeral. */
.rs-tiers {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background: var(--parchment);
    border-block: 1px solid var(--rule);
}
.rs-tiers__head { max-width: 70ch; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }

.rs-tiers__grid {
    list-style: none;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: clamp(.7rem, 1.4vw, 1.1rem);
}
.rs-tier {
    position: relative; padding: 1.1rem 1rem 1.15rem;
    background: var(--cream); border: 1px solid var(--rule);
    border-top: 3px solid var(--tone);
}
.rs-tier__rank {
    font-family: var(--data); font-weight: 600; font-size: .7rem;
    letter-spacing: .1em; color: var(--tone);
    font-variant-numeric: tabular-nums;
}
.rs-tier__name {
    margin-top: .45rem;
    font-family: var(--caps); font-weight: 400; font-size: .88rem;
    letter-spacing: .04em; color: var(--forest);
}
.rs-tier__kind {
    display: block; margin-top: .3rem;
    font-family: var(--data); font-size: .72rem; letter-spacing: .04em; color: var(--tone);
}
.rs-tiers__note {
    margin-top: 1.25rem; padding: 1rem 1.15rem;
    background: var(--cream); border: 1px solid var(--rule); border-left: 3px solid var(--gold);
    font-size: .92rem; line-height: 1.7; color: var(--ink-soft);
}
.rs-tiers__note strong { color: var(--forest); }
.rs-tier__what { margin-top: .6rem; font-size: .8rem; line-height: 1.6; color: var(--mist); }
.rs-tier__n {
    display: block; margin-top: .85rem; padding-top: .7rem;
    border-top: 1px solid var(--rule);
    font-family: var(--data); font-size: .72rem; color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1000px) { .rs-tiers__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .rs-tiers__grid { grid-template-columns: 1fr; } }


/* ── 04b FEATURED PAPER ──────────────────────────────────────────────────────
   One document, given room. It sits between the tier legend and the library
   because it IS the legend's argument in practice: a report that states what
   the evidence does not show as plainly as what it does. */
.rs-feat {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background:
        radial-gradient(80% 60% at 88% 10%, rgba(193,150,63,.12), transparent 60%),
        var(--cream);
    border-bottom: 1px solid var(--rule);
}
.rs-feat__in {
    perspective: 1200px;
    display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(1.75rem, 4vw, 4rem); align-items: start;
}

/* the document plate — type, not a screenshot, so it never depends on an asset */
.rs-plate {
    position: relative; padding: clamp(1.4rem, 2.4vw, 2rem);
    background: #fff; border: 1px solid var(--rule);
    box-shadow: 0 30px 56px -34px rgba(32,52,33,.42);
    transform-style: preserve-3d;
}
.rs-plate::after {                       /* a turned corner */
    content: ''; position: absolute; right: 0; bottom: 0;
    border-width: 0 0 26px 26px; border-style: solid;
    border-color: transparent transparent var(--parchment) transparent;
    box-shadow: -2px -2px 5px rgba(32,52,33,.09);
}
.rs-plate__org {
    display: block; padding-bottom: .8rem; border-bottom: 1px solid var(--rule);
    font-family: var(--caps); font-size: .62rem;
    letter-spacing: .16em; text-transform: uppercase; color: var(--forest-mid);
}
.rs-plate__kicker {
    display: block; margin-top: 1.1rem;
    font-family: var(--data); font-weight: 600; font-size: .64rem;
    letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep);
}
.rs-plate__title {
    margin-top: .5rem;
    font-family: var(--display); font-weight: 400;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.28; color: var(--forest);
}
.rs-plate__rule { display: block; height: 1px; margin: 1.1rem 0; background: var(--rule); }
.rs-plate__lines { display: grid; gap: .42rem; }
.rs-plate__lines span { display: block; height: 6px; background: var(--parchment); }
.rs-plate__lines span:nth-child(3) { width: 82%; }
.rs-plate__lines span:nth-child(6) { width: 64%; }
.rs-plate__foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; margin-top: 1.4rem; padding-top: .85rem;
    border-top: 1px solid var(--rule);
    font-family: var(--micro); font-size: .56rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--mist);
}

.rs-feat__body .rs-eyebrow { margin-bottom: 1.1rem; }
.rs-feat__title {
    font-family: var(--display); font-weight: 400;
    font-size: clamp(1.7rem, 3.2vw, 2.7rem);
    line-height: 1.1; letter-spacing: -.018em; color: var(--forest);
}
.rs-feat__body > p { max-width: 62ch; margin-top: 1.15rem; font-size: clamp(.96rem, 1.1vw, 1.05rem); line-height: 1.75; }
.rs-feat__ask {
    margin-top: 1.6rem;
    font-family: var(--caps); font-size: .95rem; color: var(--forest);
}
.rs-assoc {
    display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .95rem; list-style: none;
}
.rs-assoc li {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem .85rem;
    border: 1px solid var(--rule); background: var(--parchment);
    font-size: .84rem; color: var(--forest-mid);
}
.rs-assoc li::before {
    content: ''; width: 5px; height: 5px; border-radius: 50%;
    background: var(--gold); flex: none;
}

.rs-meta {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem; margin-top: 1.9rem; padding-top: 1.3rem;
    border-top: 1px solid var(--rule);
}
.rs-meta dt {
    font-family: var(--micro); font-size: .58rem;
    letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep);
}
.rs-meta dd { margin-top: .4rem; font-size: .86rem; line-height: 1.55; color: var(--ink-soft); }

.rs-feat__note {
    max-width: 70ch; margin-top: 1.5rem;
    font-family: var(--accent); font-style: italic;
    font-size: .95rem; line-height: 1.7; color: var(--mist);
}
.rs-feat__acts { margin-top: 1.6rem; }

/* featured report, now a compact note inside the Stress & Brain Wellness group */
.rs-mini {
    max-width: 78ch; margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
    padding: 1.1rem 1.25rem;
    background: var(--parchment); border: 1px solid var(--rule);
    border-left: 3px solid var(--tone, var(--gold));
}
.rs-mini__kicker {
    font-family: var(--micro); font-size: .56rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--mist);
}
.rs-mini__title {
    margin-top: .45rem;
    font-family: var(--caps); font-weight: 400; font-size: 1rem;
    letter-spacing: .03em; color: var(--forest);
}
.rs-mini > p:not([class]) { margin-top: .5rem; font-size: .86rem; line-height: 1.65; }
.rs-mini__btn { margin-top: .85rem; font-size: .78rem; padding: .6rem 1rem; }
.rs-mini__note {
    margin-top: .75rem;
    font-family: var(--accent); font-style: italic;
    font-size: .8rem; line-height: 1.6; color: var(--mist);
}

@media (max-width: 900px) {
    .rs-feat__in { grid-template-columns: 1fr; }
    .rs-plate { max-width: 420px; }
    .rs-meta { grid-template-columns: 1fr; gap: .95rem; }
}


/* ── 04c MISSING-REFERENCE FLAG ──────────────────────────────────────────────
   TEMPORARY REVIEW SCAFFOLDING. Deliberately loud and deliberately off-palette
   so it cannot be mistaken for design — it is there for Dr. Aronov's read-through
   and comes OFF before launch. Delete the two .rs-gap sections in research.html
   and this block to remove it. */
.rs-gap {
    padding-top: clamp(2.5rem, 5vw, 3.75rem);
}
.rs-gap__box {
    border: 2px dashed #C0281F;
    background: rgba(192, 40, 31, .05);
    padding: clamp(1.25rem, 2.4vw, 1.9rem);
}
.rs-gap__tag {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .38rem .75rem; margin-bottom: 1rem;
    background: #C0281F; color: #fff;
    font-family: var(--micro); font-size: .6rem;
    letter-spacing: .16em; text-transform: uppercase;
}
.rs-gap__name {
    font-family: var(--display); font-weight: 400;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.15; color: var(--forest);
}
.rs-gap__tags {
    margin-top: .4rem; font-family: var(--accent); font-style: italic;
    font-size: 1.02rem; color: var(--gold-deep);
}
.rs-gap__msg {
    margin-top: 1rem; max-width: 62ch;
    font-size: .92rem; line-height: 1.7; color: #8E1F18; font-weight: 500;
}
.rs-gap__msg a { color: #8E1F18; text-decoration: underline; }
.rs-gap__go {
    display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem;
    font-family: var(--caps); font-size: .74rem; letter-spacing: .1em; color: var(--forest-mid);
    border-bottom: 1px solid var(--rule-gold); padding-bottom: .2rem;
}


/* ── 05 FILTER BAR ───────────────────────────────────────────────────────────
   Two labelled rows — evidence tier and infusion — because they are separate
   questions and stacking them in one scrolling strip hid half the options.

   The top offset is driven by --rs-bar-top, which research.js keeps in sync
   with the shared header: 78px normally, 64px once condensed, 0 once the
   header has retreated. Without that the bar pins to a header that is no
   longer there and leaves a gap above it. */
.rs-bar {
    position: sticky; top: var(--rs-bar-top, var(--head-h)); z-index: 60;
    background: color-mix(in oklab, var(--cream) 94%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rule);
    transition: top .4s var(--rse), box-shadow .4s var(--rse);
}
.rs-bar.is-pinned { box-shadow: 0 14px 26px -22px rgba(32, 52, 33, .4); }

.rs-bar__row {
    display: flex; align-items: center; gap: clamp(.6rem, 1.4vw, 1rem);
    padding-block: .55rem;
}
.rs-bar__row + .rs-bar__row { border-top: 1px solid var(--rule); }

.rs-bar__lab {
    flex: 0 0 auto; min-width: 92px;
    font-family: var(--micro); font-size: .58rem;
    letter-spacing: .18em; text-transform: uppercase; color: var(--mist);
}
.rs-bar__set {
    flex: 1 1 auto; display: flex; align-items: center; gap: .5rem;
    overflow-x: auto; scrollbar-width: none; padding-block: .15rem;
    -webkit-mask-image: linear-gradient(90deg, #000 96%, transparent);
            mask-image: linear-gradient(90deg, #000 96%, transparent);
}
.rs-bar__set::-webkit-scrollbar { display: none; }

.rs-chip {
    flex: none; display: inline-flex; align-items: center; gap: .45rem;
    padding: .46rem .85rem;
    border: 1px solid var(--rule); background: var(--parchment);
    font-family: var(--caps); font-size: .72rem;
    letter-spacing: .06em; color: var(--ink-soft); white-space: nowrap;
    transition: background .3s var(--rse), color .3s var(--rse), border-color .3s var(--rse);
}
.rs-chip b { font-family: var(--data); font-weight: 600; font-size: .66rem; color: var(--mist); }
.rs-chip:hover { border-color: var(--rule-gold); color: var(--forest); }
.rs-chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.rs-chip[aria-pressed="true"] b { color: var(--gold-lite); }
.rs-chip[data-tier][aria-pressed="true"] { background: var(--tone); border-color: var(--tone); }

/* the reset — only there when there is something to reset */
.rs-clear {
    flex: none; display: inline-flex; align-items: center; gap: .4rem;
    padding: .46rem .8rem;
    border: 1px solid var(--rule-gold); background: transparent;
    font-family: var(--micro); font-size: .58rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep);
    transition: background .3s var(--rse), color .3s var(--rse);
}
.rs-clear:hover { background: var(--gold); color: var(--forest-deep); }
.rs-clear[hidden] { display: none; }

@media (max-width: 700px) {
    .rs-bar__row { flex-wrap: wrap; gap: .35rem .6rem; padding-block: .5rem; }
    .rs-bar__lab { min-width: 0; flex-basis: 100%; }
    .rs-bar__set { width: 100%; }
}

.rs-count {
    padding: clamp(1.5rem, 3vw, 2.25rem) 0 0;
    font-family: var(--data); font-size: .76rem; color: var(--mist);
    font-variant-numeric: tabular-nums;
}


/* ── 06 THE LIBRARY ──────────────────────────────────────────────────────── */
.rs-lib { padding: 0 0 var(--pad); background: var(--cream); }

.rs-group { padding-top: clamp(2.5rem, 5vw, 3.75rem); }
.rs-group[hidden] { display: none; }

/* the treatment header — the reference's parent, always one click away */
.rs-group__head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1rem 2rem; flex-wrap: wrap;
    padding-bottom: 1.1rem; margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
    border-bottom: 2px solid var(--tone);
}
.rs-group__no {
    font-family: var(--data); font-weight: 600; font-size: .72rem;
    letter-spacing: .1em; color: var(--tone);
}
.rs-group__name {
    margin-top: .3rem;
    font-family: var(--display); font-weight: 400;
    font-size: clamp(1.35rem, 2.4vw, 1.95rem);
    line-height: 1.15; letter-spacing: -.015em; color: var(--forest);
}
.rs-group__tags {
    margin-top: .5rem; font-family: var(--accent); font-style: italic;
    font-size: clamp(.95rem, 1.2vw, 1.08rem); color: var(--gold-deep);
}
.rs-group__go {
    display: inline-flex; align-items: center; gap: .5rem; flex: none;
    font-family: var(--caps); font-size: .74rem;
    letter-spacing: .1em; color: var(--forest-mid);
    border-bottom: 1px solid var(--rule-gold); padding-bottom: .2rem;
    transition: gap .3s var(--rse), color .3s var(--rse);
}
.rs-group__go:hover { gap: .85rem; color: var(--gold-deep); }

.rs-group__grid {
    list-style: none;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: clamp(.9rem, 1.6vw, 1.35rem);
}

/* ---------- the reference card ---------- */
.rs-ref { display: flex; }
.rs-ref[hidden] { display: none; }

.rs-ref__in {
    position: relative; isolation: isolate;
    display: flex; flex-direction: column; width: 100%;
    padding: 1.25rem 1.2rem 1.05rem;
    background: #fff; border: 1px solid var(--rule); border-radius: 2px;
    box-shadow: 0 16px 30px -26px rgba(32, 52, 33, .3);
    transition: transform .45s var(--rse), box-shadow .45s var(--rse), border-color .45s var(--rse);
}
/* the evidence tier owns the spine — not the treatment */
.rs-ref__in::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: var(--tier);
}
a.rs-ref__in:hover {
    transform: translateY(-4px);
    border-color: color-mix(in oklab, var(--tier) 36%, transparent);
    box-shadow: 0 28px 48px -28px rgba(32, 52, 33, .36);
}

.rs-ref__type {
    display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
    padding: .28rem .6rem; margin-bottom: .75rem;
    border: 1px solid color-mix(in oklab, var(--tier) 32%, transparent);
    border-radius: 999px;
    background: color-mix(in oklab, var(--tier) 8%, transparent);
    font-family: var(--caps); font-size: .56rem;
    letter-spacing: .12em; text-transform: uppercase; color: var(--tier);
}
.rs-ref__type i { font-style: normal; font-family: var(--data); font-weight: 600; opacity: .75; }

.rs-ref__name {
    font-family: var(--ui); font-weight: 500;
    font-size: .96rem; line-height: 1.42; color: var(--forest);
    transition: color .4s var(--rse);
}
a.rs-ref__in:hover .rs-ref__name { color: var(--gold-deep); }

.rs-ref__take {
    margin-top: .6rem; font-size: .84rem; line-height: 1.62; color: var(--ink-soft);
}

/* A short plain-language note under the title: what the study actually looked
   at, and how far it sits from this infusion. Optional — most cards omit it. */
.rs-ref__note {
    margin: .55rem 0 .2rem;
    font-size: .8rem; line-height: 1.6;
    color: var(--mist);
}

.rs-ref__foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: .75rem; margin-top: auto; padding-top: .95rem;
}
.rs-ref__src {
    font-family: var(--micro); font-size: .6rem;
    letter-spacing: .12em; text-transform: uppercase; color: var(--mist);
}
.rs-ref__go {
    display: inline-flex; align-items: center; gap: .35rem;
    font-family: var(--caps); font-size: .66rem;
    letter-spacing: .08em; color: var(--gold-deep);
}
.rs-ref__go i { font-size: 1.15em; }

/* a reference whose link is not in yet: still readable, plainly not clickable */
.rs-ref__in--flat { box-shadow: none; background: var(--parchment); }
.rs-ref__pending {
    font-family: var(--micro); font-size: .58rem;
    letter-spacing: .12em; text-transform: uppercase; color: var(--mist);
}

.rs-empty {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    text-align: center; color: var(--mist);
    font-family: var(--accent); font-style: italic; font-size: 1.2rem;
}
.rs-empty[hidden] { display: none; }


/* ── 07 LIMITS ───────────────────────────────────────────────────────────── */
.rs-limits {
    padding: var(--pad) 0;
    background: #16241A;
    position: relative; overflow: clip;
}
.rs-limits::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(100% 70% at 22% 0%, rgba(143,190,155,.07), transparent 62%);
}
.rs-limits__in { position: relative; z-index: 2; }
.rs-limits .rs-h2 { color: var(--cream); }
.rs-limits .rs-h2 em { color: var(--gold-lite); }
.rs-limits .rs-eyebrow { color: var(--gold-lite); }

.rs-limits__grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 2.6vw, 2.25rem);
    margin-top: clamp(2.25rem, 5vw, 3.5rem);
}
.rs-limit {
    padding: clamp(1.25rem, 2.2vw, 1.75rem);
    border: 1px solid rgba(246, 241, 231, .14);
    background: rgba(246, 241, 231, .03);
}
.rs-limit i { font-size: 1.5rem; color: var(--gold); }
.rs-limit h3 {
    margin: .9rem 0 .6rem;
    font-family: var(--caps); font-weight: 400; font-size: 1rem;
    letter-spacing: .04em; color: var(--cream);
}
.rs-limit p { font-size: .88rem; line-height: 1.7; color: var(--cream-dim); }

.rs-limits__sub {
    max-width: 70ch; margin-top: 1.1rem;
    font-size: clamp(.96rem, 1.1vw, 1.05rem); line-height: 1.75; color: var(--cream-dim);
}
.rs-limits__important {
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
    padding: clamp(1.1rem, 2vw, 1.4rem) clamp(1.1rem, 2.2vw, 1.6rem);
    border: 1px solid rgba(193,150,63,.55); border-left: 3px solid var(--gold);
    background: rgba(193,150,63,.08);
    font-size: .92rem; line-height: 1.75; color: var(--cream);
}
.rs-limits__important strong {
    font-family: var(--caps); font-weight: 400; letter-spacing: .08em;
    text-transform: uppercase; color: var(--gold-lite); margin-right: .35rem;
}
@media (max-width: 860px) { .rs-limits__grid { grid-template-columns: 1fr; } }


/* ── 08 BEGIN ────────────────────────────────────────────────────────────── */
.rs-begin { padding: var(--pad) 0; background: var(--cream); text-align: center; }
.rs-begin__in { max-width: 60ch; margin-inline: auto; }
.rs-begin__acts {
    display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem;
    margin-top: clamp(1.6rem, 3.5vw, 2.4rem);
}
.rs-begin__fine {
    max-width: 64ch; margin: clamp(2rem, 4vw, 3rem) auto 0;
    padding-top: 1.25rem; border-top: 1px solid var(--rule);
    font-size: .78rem; line-height: 1.75; color: var(--mist);
}
.rs-begin__fine p + p { margin-top: .8rem; }
@media (max-width: 560px) { .rs-begin__acts .btn { flex: 1 1 100%; } }


/* ── 09 MOTION · A11Y · PRINT ────────────────────────────────────────────── */
.page-research :focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    html.rs-on [data-rs],
    html.rs-on [data-rs-split],
    html.rs-on .rs-line > span {
        opacity: 1 !important; transform: none !important;
    }
    .rs-prog { display: none; }
    * { scroll-behavior: auto !important; }
}

@media print {
    .rs-prog, .rs-bar, .head, .menu, .fab, .totop, .rs-group__go { display: none !important; }
    .page-research, .rs-limits { background: #fff; color: #000; }
    .rs-limits .rs-h2, .rs-limit h3, .rs-limit p { color: #000 !important; }
    .rs-group__grid { grid-template-columns: 1fr 1fr; }
    .rs-ref__in { box-shadow: none; break-inside: avoid; }
}
