/* Public Research World: a page-local editorial index. It deliberately inherits
   the shared engine palette instead of defining a second color system. */
.rw-page {
  --rw-ink: var(--re-ink);
  --rw-paper: var(--re-paper);
  --rw-surface: var(--re-surface);
  --rw-muted: var(--re-muted);
  --rw-line: var(--re-line);
  color: var(--rw-ink);
}

.rw-page *, .rw-page *::before, .rw-page *::after { box-sizing: border-box; }
.rw-page a { color: inherit; }
.rw-page :focus-visible { outline: var(--re-focus); outline-offset: 4px; }
.rw-page h1, .rw-page h2, .rw-page h3, .rw-page p, .rw-page dl, .rw-page ol { margin-top: 0; }

.rw-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 0 24px;
  border-bottom: 1px solid var(--rw-line);
}

.rw-hero-main { position: relative; z-index: 1; min-width: 0; padding: 40px 0 28px; }
.rw-eyebrow, .rw-kicker, .rw-section-head>div>p, .rw-ledger-head p, .rw-owner-dock p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--rw-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .13em;
  line-height: 1.3;
}
.rw-eyebrow>span { width: 9px; height: 9px; border: 2px solid currentColor; transform: rotate(45deg); }
.rw-eyebrow b { margin-left: auto; color: var(--rw-ink); font-size: 10px; font-weight: 750; letter-spacing: .1em; }
.rw-hero h1 {
  max-width: none;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 760;
  letter-spacing: -.04em;
  line-height: 1.2;
  text-wrap: balance;
  word-break: keep-all;
}
.rw-hero h1 em { display: inline-block; font-style: normal; }
.rw-hero-lead { max-width: 48rem; margin-bottom: 24px; color: var(--rw-muted); font-size: 1rem; line-height: 1.85; word-break: keep-all; }

.rw-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rw-line); border-bottom: 1px solid var(--rw-line); }
.rw-metrics>div { min-width: 0; min-height: 84px; padding: 14px 18px; }
.rw-metrics>div:first-child { padding-left: 0; }
.rw-metrics>div+div { border-left: 1px solid var(--rw-line); }
.rw-metrics dt { margin-bottom: 10px; color: var(--rw-muted); font-size: 10px; font-weight: 750; letter-spacing: .09em; line-height: 1.25; }
.rw-metrics dd { margin: 0; font-size: 2rem; font-weight: 720; letter-spacing: -.05em; line-height: 1; }
.rw-metrics p { margin: 7px 0 0; color: var(--rw-muted); font-size: 12px; }
.rw-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 20px; }
.rw-primary-link, .rw-text-link, .rw-ledger-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--rw-ink);
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.rw-primary-link { background: var(--rw-ink); color: var(--rw-surface) !important; }
.rw-primary-link:hover { background: var(--rw-surface); color: var(--rw-ink) !important; }
.rw-text-link { border-color: transparent; color: var(--rw-ink); padding-inline: 2px; }
.rw-text-link:hover { border-bottom-color: var(--rw-ink); }

.rw-hero-protocol { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(0, 2fr); align-items: start; gap: 20px 32px; padding: 24px 0; border-top: 1px solid var(--rw-line); }
.rw-hero-protocol h2 { margin-bottom: 0; font-size: 1.5rem; letter-spacing: -.04em; line-height: 1.25; word-break: keep-all; }
.rw-kicker { margin-bottom: 10px; }
.rw-hero-protocol ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 0; padding: 0; list-style: none; }
.rw-hero-protocol li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding: 3px 0; }
.rw-hero-protocol li>span { color: var(--rw-muted); font-size: 11px; font-weight: 730; }
.rw-hero-protocol strong { display: block; margin-bottom: 3px; font-size: 14px; }
.rw-hero-protocol li p, .rw-protocol-note { margin-bottom: 0; color: var(--rw-muted); font-size: 12px; line-height: 1.55; }
.rw-protocol-note { grid-column: 1 / -1; margin-top: 0; padding-top: 0; }

.rw-jump-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; border-top: 1px solid var(--rw-line); border-bottom: 1px solid var(--rw-line); }
.rw-jump-nav a { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-content: center; gap: 3px 8px; min-height: 68px; padding: 12px 16px; border-right: 1px solid var(--rw-line); font-size: 13px; font-weight: 730; line-height: 1.3; text-decoration: none; transition: background-color .18s ease, color .18s ease; }
.rw-jump-nav a:last-child { border-right: 0; }
.rw-jump-nav a>span { grid-row: 1 / 3; color: var(--rw-muted); font-size: 11px; }
.rw-jump-nav i { color: var(--rw-muted); font-size: 11px; font-style: normal; font-weight: 500; line-height: 1.35; }
.rw-jump-nav a:hover { background: var(--rw-ink); color: var(--rw-surface); }
.rw-jump-nav a:hover>span, .rw-jump-nav a:hover i { color: inherit; }

.rw-filter { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:0 0 20px; padding:16px; border:1px solid var(--rw-line); background:var(--rw-paper); }
.rw-filter label { display:grid; gap:7px; min-width:min(230px,100%); color:var(--rw-muted); font-size:12px; }
.rw-filter input,.rw-filter select { min-height:44px; padding:9px 12px; border:1px solid var(--rw-line); border-radius:0; background:var(--rw-surface); color:var(--rw-ink); font:inherit; }
.rw-filter .rw-search { flex:1; }
.rw-requirement { display:block; margin:-5px 0 16px; color:var(--rw-muted); font-size:11px; }
.rw-spec-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr)); gap:1px; border:1px solid var(--rw-line); background:var(--rw-line); }
.rw-spec-grid>article { min-width:0; padding:20px; background:var(--rw-paper); }
.rw-spec-grid h3 { margin:0 0 12px; font-size:14px; }
.rw-participation-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.rw-participation-actions form { margin:0; }
.rw-receipt-code { padding:20px; border:1px solid var(--rw-ink); background:var(--rw-paper); }
.rw-receipt-code code { display:block; margin:12px 0; padding:12px; overflow-wrap:anywhere; background:var(--rw-surface); font-size:clamp(13px,2vw,18px); user-select:all; }
.rw-receipt-code p { margin:0; color:var(--rw-muted); font-size:13px; line-height:1.6; }
.rw-review-events { display:grid; gap:0; padding:0; list-style:none; border-top:1px solid var(--rw-line); }
.rw-review-events li { display:grid; grid-template-columns:minmax(100px,1fr) auto; gap:8px 16px; padding:14px 0; border-bottom:1px solid var(--rw-line); }
.rw-review-events time,.rw-review-line { color:var(--rw-muted); font-size:12px; }
.rw-review-events p { grid-column:1/-1; margin:0; }
.rw-my-contributions { display:grid; gap:14px; }
.rw-my-contributions>.record { padding:20px; }
.rw-my-contributions>.record>header { display:flex; align-items:start; justify-content:space-between; gap:16px; }
.rw-my-contributions h2 { margin:8px 0; font-size:1.35rem; }
.rw-revision { margin-top:18px; padding-top:18px; border-top:1px solid var(--rw-line); }
.rw-review-line { line-height:1.6; }
.rw-filter .button { min-height:44px; }
@media(max-width:700px) { .rw-filter { align-items:stretch; } .rw-filter label,.rw-filter .rw-search { min-width:100%; } .rw-my-contributions>.record>header { flex-direction:column; } }

.rw-section { padding: clamp(36px, 4vw, 56px) 0 0; scroll-margin-top: calc(var(--re-shell-height) + 24px); }
.rw-section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .64fr); gap: 32px; align-items: end; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--rw-ink); }
.rw-section-head>div>p, .rw-ledger-head p { margin-bottom: 8px; font-size: 10px; }
.rw-section-head h2, .rw-ledger-head h2 { margin-bottom: 0; font-size: clamp(1.75rem, 2.8vw, 2.25rem); letter-spacing: -.04em; line-height: 1.2; }
.rw-section-head>p { max-width: 37rem; margin-bottom: 3px; color: var(--rw-muted); font-size: 14px; line-height: 1.68; word-break: keep-all; }

.rw-quest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rw-ink); border-left: 1px solid var(--rw-line); }
.rw-quest-card { display: flex; flex-direction: column; min-width: 0; min-height: 240px; padding: 20px; border-right: 1px solid var(--rw-line); border-bottom: 1px solid var(--rw-line); background: var(--rw-surface); color: var(--rw-ink); text-decoration: none; transition: background-color .18s ease, color .18s ease; }
.rw-card-meta, .rw-problem-top { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.rw-card-meta small, .rw-problem-top small { color: var(--rw-muted); font-size: 10px; font-weight: 730; letter-spacing: .075em; line-height: 1.4; }
.rw-card-meta b, .rw-problem-top b { flex: 0 0 auto; font-size: 11px; letter-spacing: .04em; }
.rw-quest-card h3, .rw-problem-card h3 { margin: 24px 0 13px; font-size: clamp(1.4rem, 2vw, 1.8rem); letter-spacing: -.04em; line-height: 1.2; overflow-wrap: anywhere; }
.rw-quest-card>p, .rw-problem-card>p { margin-bottom: 22px; color: var(--rw-muted); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.rw-card-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rw-line); font-size: 11px; font-weight: 670; line-height: 1.4; }
.rw-card-footer>span:first-child { overflow-wrap: anywhere; }
.rw-quest-card:hover, .rw-problem-card:hover { background: var(--rw-ink); color: var(--rw-surface); }
.rw-quest-card:hover small, .rw-quest-card:hover>p, .rw-problem-card:hover small, .rw-problem-card:hover>p { color: inherit; }
.rw-quest-card:hover .rw-card-footer, .rw-problem-card:hover .rw-card-footer { border-color: currentColor; }

.rw-problem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rw-ink); border-left: 1px solid var(--rw-line); }
.rw-problem-grid>li { min-width: 0; }
.rw-problem-card { display: flex; flex-direction: column; min-width: 0; min-height: 220px; padding: 20px; border-right: 1px solid var(--rw-line); border-bottom: 1px solid var(--rw-line); background: var(--rw-paper); color: var(--rw-ink); text-decoration: none; transition: background-color .18s ease, color .18s ease; }
.rw-problem-card h3 { margin-top: 24px; }

.rw-ledger-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--rw-ink); border-left: 1px solid var(--rw-line); }
.rw-ledger { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--rw-line); border-bottom: 1px solid var(--rw-line); background: var(--rw-surface); scroll-margin-top: calc(var(--re-shell-height) + 24px); }
.rw-ledger-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; min-height: 104px; padding: 20px; border-bottom: 1px solid var(--rw-line); }
.rw-ledger-head>span { max-width: 15ch; margin-bottom: 3px; color: var(--rw-muted); font-size: 11px; line-height: 1.5; text-align: right; }
.rw-experiment-list { border-bottom: 1px solid var(--rw-line); }
.rw-experiment-list>a { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto 24px; align-items: center; gap: 12px; min-height: 82px; padding: 14px 20px; border-bottom: 1px solid var(--rw-line); text-decoration: none; transition: background-color .18s ease, color .18s ease; }
.rw-experiment-list>a:last-child { border-bottom: 0; }
.rw-list-index, .rw-experiment-list small { color: var(--rw-muted); font-size: 10px; font-weight: 720; letter-spacing: .065em; line-height: 1.4; }
.rw-experiment-list strong { min-width: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.4; }
.rw-experiment-list>a:hover { background: var(--rw-ink); color: var(--rw-surface); }
.rw-experiment-list>a:hover .rw-list-index, .rw-experiment-list>a:hover small { color: inherit; }

.rw-page .rw-activity-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rw-line); }
.rw-page .rw-activity-list>li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 17px 20px; border-bottom: 1px solid var(--rw-line); }
.rw-page .rw-activity-list>li:last-child { border-bottom: 0; }
.rw-page .rw-activity-list time, .rw-page .rw-activity-list small { color: var(--rw-muted); font-size: 10px; font-weight: 680; letter-spacing: .045em; line-height: 1.5; }
.rw-page .rw-activity-list div { display: grid; gap: 5px; }
.rw-page .rw-activity-list strong { overflow-wrap: anywhere; font-size: 14px; line-height: 1.48; }
.rw-ledger-link { justify-content: space-between; margin-top: auto; border: 0; border-top: 1px solid var(--rw-ink); background: var(--rw-paper); }
.rw-ledger-link:hover { background: var(--rw-ink); color: var(--rw-surface); }

.rw-empty-state { grid-column: 1 / -1; min-height: 88px; margin: 0; padding: 20px; border-right: 1px solid var(--rw-line); border-bottom: 1px solid var(--rw-line); background: var(--rw-paper); color: var(--rw-muted); font-size: 14px; line-height: 1.7; }
.rw-owner-dock { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 52px; padding: 22px 24px; border: 1px solid var(--rw-ink); background: var(--rw-paper); }
.rw-owner-dock>div { display: grid; gap: 4px; }
.rw-owner-dock p { margin-bottom: 2px; font-size: 10px; }
.rw-owner-dock strong { font-size: 17px; letter-spacing: -.03em; }
.rw-owner-dock span { color: var(--rw-muted); font-size: 13px; line-height: 1.55; }

@media (min-width: 761px) {
  .rw-hero h1 br { display: none; }
  .rw-hero h1 em::before, .rw-hero h1 em::after { content: " "; white-space: pre; }
}

@media (max-width: 1060px) {
  .rw-hero-protocol { grid-template-columns: minmax(160px, .6fr) minmax(0, 2fr); gap: 20px; }
  .rw-hero-protocol ol { gap: 14px; }
  .rw-quest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .rw-hero-main { padding: 24px 0; }
  .rw-hero h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .rw-hero-lead { margin-bottom: 20px; }
  .rw-metrics { grid-template-columns: 1fr; }
  .rw-metrics>div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 0; padding: 12px 0; }
  .rw-metrics>div+div { border-top: 1px solid var(--rw-line); border-left: 0; }
  .rw-metrics dt { margin-bottom: 4px; }
  .rw-metrics dd { grid-row: 1 / 3; grid-column: 2; font-size: 2rem; }
  .rw-metrics p { margin-top: 0; }
  .rw-hero-protocol { grid-template-columns: 1fr; gap: 18px; padding: 20px 0; }
  .rw-hero-protocol ol { grid-template-columns: 1fr; gap: 0; }
  .rw-hero-protocol li { padding: 12px 0; border-top: 1px solid var(--rw-line); }
  .rw-hero-protocol .rw-protocol-note { grid-column: auto; }
  .rw-jump-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rw-jump-nav a { min-height: 68px; padding: 12px; }
  .rw-jump-nav a:nth-child(2n) { border-right: 0; }
  .rw-jump-nav a:nth-child(n+3) { border-top: 1px solid var(--rw-line); }
  .rw-section { padding-top: 36px; }
  .rw-section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 20px; }
  .rw-section-head h2, .rw-ledger-head h2 { font-size: clamp(1.75rem, 7.5vw, 2rem); }
  .rw-quest-grid, .rw-problem-grid, .rw-ledger-grid { grid-template-columns: 1fr; }
  .rw-quest-card { min-height: 220px; }
  .rw-problem-card { min-height: 210px; }
  .rw-ledger-grid { margin-top: 36px; }
  .rw-ledger-head { min-height: 104px; padding: 20px; }
  .rw-experiment-list>a { grid-template-columns: 76px minmax(0, 1fr) 20px; padding: 15px 16px; }
  .rw-experiment-list small { grid-column: 2; }
  .rw-experiment-list>a>span:last-child { grid-column: 3; grid-row: 1 / 3; }
  .rw-page .rw-activity-list>li { grid-template-columns: 1fr; gap: 6px; padding: 16px; }
  .rw-owner-dock { align-items: flex-start; flex-direction: column; padding: 20px; }
  .rw-owner-dock .rw-primary-link { width: 100%; }
}

@media (max-width: 420px) {
  .rw-eyebrow { flex-wrap: wrap; }
  .rw-eyebrow b { width: 100%; margin-left: 18px; }
  .rw-hero-actions { align-items: stretch; flex-direction: column; }
  .rw-hero-actions a { width: 100%; }
  .rw-jump-nav { grid-template-columns: 1fr; }
  .rw-jump-nav a { border-right: 0; }
  .rw-jump-nav a+a { border-top: 1px solid var(--rw-line); }
  .rw-ledger-head { align-items: start; flex-direction: column; gap: 14px; }
  .rw-ledger-head>span { max-width: none; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .rw-page *, .rw-page *::before, .rw-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
