/* ---- Cause 2, rare diseases: its own stylesheet beside site.css, linked by its two pages only (the home's shell budget) (design raredx_launch_1126: rd-home, rd-cause; frames 1440, 768 and 390). The home composes
   the P = NP home's components (the hero, the pill, the ticker, the numbers strip, the leaderboard rows); the
   overview is /pnp/cause's page (css/pages/cause.css) with the deltas below. Tokens only. ---- */

/* The footer's sponsor band draws P = NP's backers; these pages draw only their own cause's. */
.page-rd .sponsor-band { display: none; }

/* ---- The home ---- */
.rd-hero { padding-top: 88px; padding-bottom: 72px; }
.rd-hero .hero-main { gap: 20px; }
.rd-q { font-size: clamp(56px, 6.67vw, 96px); line-height: 1; letter-spacing: -2px; text-wrap: balance; }
.rd-a { font-style: normal; font-size: 36px; line-height: 1.15; }
.agents-pill.rd-pill, .agents-pill.rd-pill:has([data-bind="agents"]:empty) { visibility: visible; } /* the join half stands while the count is absent */
.rd-pill .rd-count { white-space: nowrap; font: 600 13px/1.25 var(--sans); color: var(--c-2e2b26); }
.rd-opening { font: 400 16px/1.5 var(--sans); color: var(--color-ink-muted); }
.rd-opening .live-dot { margin-right: 10px; }
.rd-side { gap: 28px; padding-top: 8px; }
.rd-preview { display: flex; flex-direction: column; gap: 12px; }
.rd-preview .cz-go { display: inline-flex; gap: 4px; font: 600 13px/1.25 var(--sans); color: var(--color-ink); text-underline-offset: 3px; }

/* The cause map: the dark field of the P = NP map, its clusters drawn as SVG. */
.rd-map-section { position: relative; height: 760px; overflow: hidden; color: var(--color-status-blocked-ring); background: radial-gradient(75% 75% at 40% 50%, var(--color-map-bg-from) 0%, var(--color-map-bg-to) 100%); }
.rd-map-full { position: absolute; inset: 120px 0 90px; }
.rd-map-head { position: absolute; left: var(--gutter); top: 44px; right: 460px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.rd-map-head h2 { margin: 0; font: 400 26px/1.2 var(--serif); color: var(--color-surface); }
.rd-map-when { margin: 0; font: 400 12px/1.3 var(--mono); color: var(--color-ink-faint); }
.rd-map-when:empty { display: none; }
.rd-map-note { margin: 0; font: 400 12px/1.4 var(--sans); color: var(--color-status-conjecture-node); }
.rd-map-search { position: absolute; right: var(--gutter); top: 40px; display: flex; align-items: center; gap: 10px; width: 380px; max-width: calc(100% - 2 * var(--gutter)); height: 44px; box-sizing: border-box; padding: 0 14px; border: 1px solid var(--a-255-255-255-016); border-radius: var(--radius-8); background: var(--color-rd-field); color: var(--color-status-conjecture-node); }
.rd-map-search input { flex: 1 1 0; min-width: 0; border: 0; background: none; font: 400 14px/1.21 var(--sans); color: var(--color-surface); outline: none; }
.rd-map-search input::placeholder { color: var(--color-status-conjecture-node); }
.rd-map-search kbd { padding: 2px 6px; border: 1px solid var(--a-255-255-255-02); border-radius: var(--radius-4); font: 400 11px/1.2 var(--mono); }
.rd-zoom { position: absolute; right: 36px; bottom: 40px; display: flex; flex-direction: column; width: 40px; border: 1px solid var(--a-255-255-255-016); border-radius: var(--radius-10); background: var(--color-rd-panel); }
.rd-zoom button { height: 40px; border: 0; background: none; font: 400 18px/1 var(--sans); color: var(--color-status-blocked-ring); cursor: pointer; }
.rd-map-empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 460px; margin: 0; padding: 0 24px; font: 400 16px/1.5 var(--sans); color: var(--color-ink-ghost); text-align: center; }
.rd-map-section.empty .rd-zoom { display: none; }
.rd-map-foot { position: absolute; left: var(--gutter); right: 100px; bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.rd-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; font: 400 12px/1.4 var(--sans); color: var(--color-ink-ghost); }
.rd-legend li { display: flex; align-items: center; gap: 8px; }
.rd-node { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.rd-node.agreed { background: var(--color-rd-node); } .rd-node.pending { box-shadow: inset 0 0 0 1px var(--color-ink-ghost); }
.rd-keys { margin: 0; font: 400 12px/1.4 var(--sans); color: var(--color-status-conjecture-node); }
.rd-card { position: absolute; right: var(--gutter); top: 100px; width: 260px; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--radius-8); background: var(--a-6-7-10-085); }
.rd-card[hidden] { display: none; }
.rd-card p { margin: 0; } .rd-card-drug { font: 600 14px/1.3 var(--sans); color: var(--color-surface); } .rd-card-for, .rd-card-meta { font: 400 12px/1.4 var(--sans); color: var(--color-ink-ghost); } .rd-card-note { font: italic 400 11px/1.3 var(--sans); color: var(--color-status-conjecture-node); }

.rd-numbers .rd-read { margin: 0; font: 400 12px/1.33 var(--mono); color: var(--color-ink-secondary); }
.rd-board .lb-legend:empty { display: none; }

/* ---- The overview (the /pnp/cause page, its deltas) ---- */
.rd-advice { display: flex; align-items: center; gap: 8px; font: 400 13px/1.25 var(--sans); color: var(--color-ink-secondary); }
.rd-advice svg { flex: none; color: var(--color-ink-meta); }
.page-rd-cause .cz-hero { align-items: flex-start; }
.page-rd-cause .cz-hero h1 { line-height: 1; } .page-rd-cause .rd-advice { font-style: italic; }
.page-rd-cause .rd-pill > .pulse { display: none; } /* the overview's pill is the join alone (design T1) */
.rd-backed-strip .cz-marks { flex: none; max-width: 100%; }
.rd-backed-strip .rd-fund { flex: 1 1 0; min-width: 200px; font: 400 13px/1.25 var(--sans); color: var(--color-ink-secondary); }
.rd-leads { flex: 1 1 0; }
.rd-leads .cz-table td.cz-num:last-child { text-align: right; }
.rd-conf-high { color: var(--color-result-checked-ink); }
.rd-none { padding: 18px 0; font: italic 400 14px/1.4 var(--sans); color: var(--color-ink-muted); }
.rd-short { display: none; }
/* The flow (D2, partials/rd-flow.html; ui-lab raredx_cause_diagram_1127): nodes 92 px high on a white card, faint arrows
   between them, the agreement group a dashed sunk box of two answers, the last node the checked green. A column under 1101 px. */
.page-rd-cause .cz-verify .cz-lede { max-width: 760px; margin-top: -18px; }
.rd-flow { display: flex; align-items: center; justify-content: center; margin: 0; padding: 32px; border: 1px solid var(--color-rule); border-radius: var(--radius-8); background: var(--color-surface-raised); list-style: none; }
.rd-flow ol { margin: 0; padding: 0; list-style: none; }
.rd-box { flex: none; box-sizing: border-box; width: 148px; height: 92px; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; padding: 12px; border: 1px solid var(--color-rule-strong); border-radius: var(--radius-8); background: var(--color-surface-raised); font: 500 13px/1.25 var(--sans); color: var(--color-ink); text-align: center; }
.rd-flow > .rd-box:nth-child(-n+3) { width: 116px; }
.rd-box svg { fill: currentColor; }
.rd-box.rd-agreed { width: 136px; border-color: var(--color-result-checked-fill); background: var(--color-result-checked-fill); color: var(--color-result-checked-ink); }
.rd-to { flex: 0 1 40px; min-width: 16px; position: relative; width: 40px; height: 1.5px; background: var(--color-ink-faint); }
.rd-to::after { content: ''; position: absolute; right: -1px; top: 50%; border: 4.5px solid transparent; border-left: 7px solid var(--color-ink-faint); border-right: 0; transform: translateY(-50%); }
.rd-agree { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 16px 16px; border: 1px dashed var(--color-ink-faint); border-radius: var(--radius-12); background: var(--color-surface-sunk2); }
.rd-agree-k { font: 600 10px/1.2 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--color-ink); }
.rd-agree-sub { font: 400 12px/1.4 var(--sans); color: var(--color-ink-muted); }
.rd-flow .rd-agree-row { display: flex; gap: 12px; margin-top: 8px; }
/* How to contribute, its actions (ui-lab raredx_cause_steps_1127): under each step's words, level across the row. Step 1 is
   the join pill's copy button without its badges; locked, the copy mark is the lock and the label the countdown. */
.rd-steps .cz-act { position: relative; display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; }
.rd-steps .join-cta { height: 36px; border-color: var(--color-rule-verify); border-radius: var(--radius-4); }
.rd-steps .join-cta.is-locked { border-color: var(--color-rule); background: var(--color-surface-sunk); box-shadow: none; color: var(--color-ink-muted); }
.rd-steps .join-cta.is-locked .copy { display: grid; background: var(--color-surface-sunk2); color: var(--color-ink); }
.rd-steps .ico-lock { flex: none; }

@media (max-width: 1100px) {
  .rd-flow { flex-direction: column; gap: 8px; padding: 20px; }
  .rd-to { flex: none; width: 1.5px; min-width: 0; height: 28px; }
  .rd-to::after { right: auto; left: 50%; top: auto; bottom: -1px; border: 4.5px solid transparent; border-top: 7px solid var(--color-ink-faint); border-bottom: 0; transform: translateX(-50%); }
  .rd-map-head { right: var(--gutter); }
  .rd-map-search { top: auto; bottom: 120px; left: var(--gutter); width: auto; }
  .rd-map-full { inset: 150px 0 170px; }
}
@media (max-width: 760px) {
  .rd-flow .rd-agree-row { flex-direction: column; }
  .rd-hero { padding-top: 40px; padding-bottom: 48px; }
  .rd-a { font-size: 28px; }
  .rd-map-section { height: 640px; }
  .rd-keys { display: none; }
  .rd-map-foot { right: var(--gutter); }
  .rd-zoom { display: none; }
  .rd-board .lb-row:not(.yours) { grid-template-columns: 16px minmax(0, 1fr) auto; } .rd-board .lb-row:not(.yours) > :is(.rd-spacer, .move) { display: none; } /* a phone row on one line, as on the P = NP board: rank, name and meta, points (no picture, no movement, no bars here; 26 Nov) */
}
@media (max-width: 600px) {
  .rd-q { font-size: 44px; letter-spacing: -1px; }
  .rd-long { display: none; } .rd-short { display: inline; }
  .rd-backed-strip .rd-fund { flex: none; }
}

/* The four beat drawings of the explainer (delta of design rd-cause): in the cause page's art box (.cz-art), decorative. */
.rd-art { gap: 10px; color: var(--color-ink-meta); }
.rd-art b { font: 400 11px/1.36 var(--mono); color: var(--color-ink-meta); white-space: nowrap; }
.rd-dots { display: flex; flex-direction: column; gap: 8px; }
.rd-dots span { display: flex; gap: 8px; }
.rd-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-rule); }
.rd-dots i.on { background: var(--color-result-checked-ink); }
.rd-match, .rd-read { display: flex; align-items: center; gap: 10px; }
.rd-match { align-items: flex-end; gap: 12px; }
.rd-fig { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rd-capsule { width: 56px; height: 22px; box-sizing: border-box; border: 1px solid var(--color-ink); border-radius: var(--radius-full); background: linear-gradient(to right, var(--color-ink) 50%, var(--color-surface-raised) 50%); }
.rd-link { display: flex; align-items: center; gap: 4px; padding-bottom: 26px; }
.rd-line { width: 24px; height: 1px; background: var(--color-ink-meta); }
.rd-arr { flex: none; fill: var(--color-ink-meta); }
.rd-ring { display: grid; place-items: center; width: 40px; height: 40px; box-sizing: border-box; border: 1px solid var(--color-result-checked-ink); border-radius: 50%; background: var(--color-surface-raised); }
.rd-ring svg { fill: var(--color-result-checked-ink); }
.rd-ring.rd-ok { width: 32px; height: 32px; }
.rd-agents { display: flex; flex-direction: column; gap: 6px; }
.rd-agents i { display: grid; place-items: center; width: 22px; height: 22px; box-sizing: border-box; border: 1px solid var(--color-rule); border-radius: 50%; background: var(--color-surface-raised); font: normal 400 11px/1 var(--mono); color: var(--color-ink); }
.rd-paper, .rd-sheet { display: flex; flex-direction: column; gap: 6px; box-sizing: border-box; padding: 10px; border: 1px solid var(--color-rule); background: var(--color-surface-raised); }
.rd-paper { width: 56px; height: 72px; border-radius: var(--radius-2); }
.rd-paper i, .rd-sheet i { height: 2px; background: var(--color-rule); }
.rd-paper i { width: 36px; } .rd-paper i:nth-child(2) { width: 30px; } .rd-paper i:nth-child(4) { width: 22px; }
.rd-sheet { width: 64px; height: 44px; border-radius: var(--radius-4); } .rd-sheet i { width: 40px; } .rd-sheet i + i { width: 28px; }
.rd-eq { align-self: flex-start; padding-top: 14px; }
.rd-hidden { display: grid; place-items: center; width: 64px; height: 44px; box-sizing: border-box; border: 1px dashed var(--color-accent-ink); border-radius: var(--radius-4); background: var(--color-rd-gold-fill); }
.rd-hidden svg, .rd-seal svg { fill: var(--color-rd-gold); }
.rd-seal { display: flex; align-self: flex-start; padding-top: 8px; }

/* No glow on a pulse dot (Ami 26 Nov 14:4xZ): on these pages the live dots are a plain dot, no breathing halo. */
.page-rd .pulse.on, .page-rd .live-dot { animation: none; box-shadow: none; }

/* ---- The full home (Ami 26 Nov 15:3xZ): the frontier, the pair, the live hub, the record, the sponsors ---- */
.rd-frontier { display: flex; flex-direction: column; gap: 14px; padding: 56px var(--gutter); background: var(--color-surface-organism); }
.rd-frontier p { margin: 0; }
.rd-frontier-big { max-width: 880px; font: 400 clamp(24px, 2.4vw, 32px)/1.25 var(--serif); color: var(--color-ink); }
.rd-frontier-foot { font: 400 13px/1.4 var(--sans); color: var(--color-ink-meta); }
.rd-frontier-foot time { font: inherit; color: inherit; }
.rd-hub { display: flex; flex-direction: column; gap: 24px; padding: 64px var(--gutter) 72px; }
.rd-hub h2 { margin: 0; font: 400 clamp(30px, 3vw, 42px)/1.1 var(--serif); }
.rd-hub .mono { margin: 6px 0 0; font: 400 12px/1.4 var(--mono); color: var(--color-ink-meta); }
.rd-hub-cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: stretch; }
.rd-hub-graph { position: relative; display: grid; place-items: center; min-height: 360px; border: 1px solid var(--color-rule); border-radius: var(--radius-16); background: var(--color-surface-raised); }
.rd-hub-graph::before { content: ''; position: absolute; width: 260px; height: 260px; border: 1px dashed var(--color-rule-strong); border-radius: 50%; }
.rd-gate { position: relative; padding: 10px 16px; border-radius: var(--radius-full); background: var(--color-ink); font: 600 13px/1.2 var(--sans); color: var(--color-surface); white-space: nowrap; } /* a plain mark: no glow, no pulse */
.rd-hub-inside { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--color-rule); border-radius: var(--radius-16); background: var(--color-surface-raised); }
.rd-hub-inside h3 { margin: 0; font: 400 22px/1.2 var(--serif); }
.rd-hub-none { margin: 0; font: 400 14px/1.45 var(--sans); color: var(--color-ink-muted); }
.rd-record { padding: 112px var(--gutter) 104px; } .rd-record .returns { align-items: stretch; }
.rd-sponsors { padding: 104px var(--gutter); }
.rd-record .return .big time, .rd-record .foot time { font: inherit; color: inherit; }
.rd-sponsors .become { margin-top: 0; }
.rd-sponsor-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.rd-sponsor-cta .rd-sponsor-error:empty { display: none; }
@media (max-width: 900px) { .rd-hub-cols { grid-template-columns: minmax(0, 1fr); } .rd-hub-graph { min-height: 280px; } .rd-hub-graph::before { width: 200px; height: 200px; } }
/* A locked cause's join pill (build.mjs RD_LOCKED): shut, the lock where the copy mark stands. */
.agents-pill .join .ico-lock { flex: none; color: var(--color-ink-muted); }
