/* Research hub (/research/). Loaded after dataintell-marketing.css and
   uses its tokens; every rule is scoped under .rh so nothing leaks. */

.rh a { text-decoration: none; }

/* hero */
.rh-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding: 150px 0 56px; }
.rh-hero::before { content: ""; position: absolute; right: -140px; top: -100px; width: 760px; height: 760px; border-radius: 50%; background: radial-gradient(circle, rgba(123,30,122,.45), rgba(23,17,28,0) 65%); pointer-events: none; }
.rh-hero .dm-shell { position: relative; z-index: 1; }
.rh-hero__title { font-family: var(--dm-display); font-weight: 400; font-size: clamp(44px, 6.4vw, 84px); line-height: .98; letter-spacing: -.025em; margin: 0 0 20px; max-width: 760px; }
.rh-hero__title em { font-style: italic; color: var(--orchid); }
.rh-hero__sub { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.5; color: rgba(251,249,252,.72); max-width: 46ch; margin: 0 0 34px; }

.rh-search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 760px; margin: 0 0 22px; }
.rh-search__box { flex: 1 1 360px; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 18px; border: 1px solid rgba(251,249,252,.2); border-radius: 8px; background: rgba(251,249,252,.06); transition: border-color .2s; }
.rh-search__box:focus-within { border-color: var(--orchid); }
.rh-search__box i { color: rgba(251,249,252,.7); }
.rh-search__box input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--paper); font: inherit; font-size: 16px; }
.rh-search__box input::placeholder { color: rgba(251,249,252,.55); }
.rh-search button { min-height: 56px; padding: 0 28px; border: 0; border-radius: 8px; background: var(--plum); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s; }
.rh-search button:hover { background: var(--orchid); }

.rh-chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 920px; }
.rh-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(251,249,252,.18); border-radius: 999px; color: rgba(251,249,252,.82); font-size: 14px; transition: border-color .2s, color .2s; }
.rh-chip:hover { border-color: var(--orchid); color: var(--paper); }
.rh-chip span { font-family: var(--dm-mono); font-size: 11px; color: var(--seal); }

.rh-stats { display: flex; flex-wrap: wrap; margin: 56px 0 0; border-top: 1px solid var(--line-dk); }
.rh-stats div { flex: 1 1 180px; padding: 22px 24px 0 0; }
.rh-stats dt { font-family: var(--dm-mono); font-size: 11px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: rgba(251,249,252,.62); margin: 0 0 6px; }
.rh-stats dd { margin: 0; font-family: var(--dm-display); font-size: 40px; line-height: 1; }

/* section heads */
.rh-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 36px; }
.rh-head .dm-h2 { margin: 0; }
.rh-h3 { font-family: var(--dm-display); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -.015em; margin: 0; }
.rh-h3 em { font-style: italic; color: var(--plum); }
.rh-more { font-weight: 600; font-size: 15px; color: var(--plum); }
.rh-more:hover { color: var(--orchid); }

/* this week */
.rh-week { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; }
.rh-top { display: flex; flex-direction: column; min-height: 380px; padding: clamp(28px, 4vw, 44px); border-radius: 10px; background: var(--ink); color: var(--paper); transition: transform .2s; }
.rh-top:hover { color: var(--paper); transform: translateY(-3px); }
.rh-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.rh-tag { font-family: var(--dm-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px; border-radius: 4px; border: 1px solid rgba(251,249,252,.2); color: rgba(251,249,252,.75); }
.rh-tag--gold { color: var(--seal); border-color: rgba(214,169,74,.45); }
.rh-top h3 { font-family: var(--dm-display); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.06; margin: 0 0 14px; }
.rh-top__by { margin: 0 0 20px; color: rgba(251,249,252,.72); font-size: 15px; }
.rh-top__text { margin: 0 0 28px; color: rgba(251,249,252,.72); font-size: 16px; line-height: 1.55; max-width: 52ch; }
.rh-top__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; font-family: var(--dm-mono); font-size: 12px; color: rgba(251,249,252,.75); }
.rh-top__foot .gold { color: var(--seal); }
.rh-top__go { margin-left: auto; font-family: var(--dm-body); font-size: 15px; font-weight: 600; color: var(--orchid); }

.rh-board { border: 1px solid var(--line); border-radius: 10px; padding: 24px; background: #fff; }
.rh-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.rh-tabs button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(23,17,28,.15); background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.rh-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.rh-rank { list-style: none; margin: 0; padding: 0; }
.rh-rank li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid rgba(23,17,28,.08); }
.rh-rank b { flex: none; width: 28px; font-family: var(--dm-display); font-weight: 400; font-size: 28px; color: var(--plum); }
.rh-rank a { display: block; color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.35; }
.rh-rank a:hover { color: var(--plum); }
.rh-rank small { font-size: 13px; color: var(--slate); }
.rh-empty { color: var(--slate); font-size: 15px; padding: 14px 0; margin: 0; }

/* four ways in */
.rh-ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rh-way { display: flex; flex-direction: column; min-height: 280px; padding: 30px 26px; border: 1px solid var(--line-dk); border-radius: 10px; color: var(--paper); transition: border-color .25s, transform .2s; }
.rh-way:hover { border-color: rgba(194,103,192,.6); color: var(--paper); transform: translateY(-3px); }
.rh-way__tag { font-family: var(--dm-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--seal); margin-bottom: 18px; }
.rh-way__t { font-family: var(--dm-display); font-size: 32px; line-height: 1.05; margin-bottom: 14px; }
.rh-way__d { font-size: 15px; line-height: 1.5; color: rgba(251,249,252,.72); margin-bottom: 24px; }
.rh-way__go { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--orchid); }

/* project cards */
.rh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.rh-card { display: flex; flex-direction: column; min-height: 250px; padding: 24px; border: 1px solid rgba(23,17,28,.08); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .2s, transform .2s; }
.rh-card:hover { color: var(--ink); border-color: rgba(123,30,122,.35); transform: translateY(-3px); }
.rh-card__cat { font-family: var(--dm-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--plum); margin-bottom: 14px; }
.rh-card__t { font-family: var(--dm-display); font-size: 25px; line-height: 1.12; margin-bottom: 12px; }
.rh-card__by { font-size: 14px; color: var(--slate); margin-bottom: 18px; }
.rh-card__foot { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(23,17,28,.08); font-family: var(--dm-mono); font-size: 12px; color: var(--slate); }

/* rails */
.rh-rails { display: flex; flex-direction: column; gap: 64px; }
.rh-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.rh-rail > * { scroll-snap-align: start; }
.rh-mini { display: flex; flex-direction: column; min-height: 190px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .2s; }
.rh-mini:hover { color: var(--ink); border-color: rgba(123,30,122,.35); }
.rh-mini__status { align-self: flex-start; font-family: var(--dm-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: #0A7373; padding: 5px 9px; border-radius: 4px; margin-bottom: 16px; }
.rh-mini__status--beta { background: var(--plum); }
.rh-mini__need { font-family: var(--dm-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #0A7373; margin-bottom: 14px; }
.rh-mini__t { font-weight: 600; font-size: 17px; line-height: 1.3; margin-bottom: 8px; }
.rh-mini__d { font-size: 14px; color: var(--slate); }
.rh-mini__go { margin-top: auto; padding-top: 12px; font-size: 15px; font-weight: 600; color: var(--plum); }

/* activity + registry */
.rh-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.rh-two .rh-h3 { margin-bottom: 24px; }
.rh-live { width: 8px; height: 8px; border-radius: 50%; background: #E5484D; flex: none; }
.dm-eyebrow.rh-eyebrow-live::before { display: none; }
.rh-feed { list-style: none; margin: 0; padding: 0; }
.rh-feed li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(23,17,28,.1); }
.rh-feed i { flex: none; width: 18px; margin-top: 3px; text-align: center; }
.rh-feed div { flex: 1; min-width: 0; font-size: 15px; }
.rh-feed a { display: block; font-size: 14px; color: var(--slate); }
.rh-feed a:hover { color: var(--plum); }
.rh-feed time { flex: none; font-family: var(--dm-mono); font-size: 12px; color: var(--slate); }
.rh-reg { display: flex; flex-direction: column; gap: 12px; }
.rh-reg a { display: block; padding: 18px 20px; border: 1px solid rgba(23,17,28,.08); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .2s; }
.rh-reg a:hover { color: var(--ink); border-color: rgba(123,30,122,.35); }
.rh-reg strong { display: block; font-size: 16px; margin-bottom: 6px; }
.rh-reg span { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--dm-mono); font-size: 12px; color: var(--slate); }
.rh-reg .ok { color: #0A7373; }

/* next event */
.rh-event { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.rh-event__in { flex: 1 1 420px; }
.rh-event h2 { font-family: var(--dm-display); font-weight: 400; font-size: clamp(32px, 4vw, 50px); line-height: 1.04; margin: 0 0 12px; }
.rh-event p { margin: 0; font-family: var(--dm-mono); font-size: 13px; letter-spacing: .04em; line-height: 1.7; color: rgba(251,249,252,.75); }
.rh-event__acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* close */
.rh-close { display: flex; flex-direction: column; align-items: center; text-align: center; }
.rh-close .dm-h2 { max-width: 16ch; }
.rh-close .dm-lede { margin: 0 0 32px; }
.rh-close__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

@media (max-width: 980px) {
  .rh-week, .rh-two { grid-template-columns: 1fr; }
  .rh-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rh-hero { padding-top: 120px; }
}
@media (max-width: 560px) {
  .rh-ways { grid-template-columns: 1fr; }
  .rh-way { min-height: 0; }
  .rh-search button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rh-top, .rh-way, .rh-card { transition: none; }
}
