/* ---- 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); }
@media (max-width: 760px) { .rd-pill .rd-count { font-size: inherit; } } /* a phone's pill is 12 px, as /pnp's count */
.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; }
/* The hero's preview: the map shell's frame (partials/home-map-preview.html, css/site.css .latest), the cluster card filling it;
   no label (held for a founder), so its one link stands at the right, where /pnp's does. */
.rd-preview .latest-head { justify-content: flex-end; }
.rd-preview .rd-preview-card { height: 100%; }

/* The cause map: the P = NP map's shell (partials/home-map.html; css/site.css .map, .map-head, .search-field, .map-legend), its
   clusters drawn as SVG (js/causemap.js) in the stage between the head and the legend. */
.rd-map-full { position: absolute; inset: 176px 0 100px; }
.rd-map-section .map-head { display: flex; flex-direction: column; gap: 8px; }
.rd-map-section .map-head > * { max-width: calc(100% - 444px); } /* every head line ends before the search field and the card's column, as the title does (main: the head's right at 460) */
.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-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-section .map-legend { bottom: 56px; } /* the keyboard line under it */
.rd-node { display: inline-block; flex: none; 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 { position: absolute; left: var(--gutter); right: 100px; bottom: 28px; margin: 0; font: 400 12px/1.4 var(--sans); color: var(--color-status-conjecture-node); }
.rd-card { position: absolute; right: var(--gutter); top: 124px; 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; }
  /* The head's lines narrow beside the search field and run to six lines at 768 (28 Nov): a taller frame, the stage under them. */
  .rd-map-section { height: 760px; } .rd-map-full { inset: 240px 0 100px; }
  .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%); }
}
@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-keys { display: none; }
  .rd-map-section .map-head > * { max-width: none; } /* a phone: the search field is at the bottom */
  .rd-map-section .map-legend { bottom: 34px; } /* as /pnp's, no keyboard line on a phone */
  /* A phone: the notice under the title runs to four lines and the pending line wraps the legend to three (28 Nov, live), so the
     frame is 80 px taller than /pnp's, the search field sits above the taller legend and the stage between them. */
  .rd-map-section { height: 700px; } .rd-map-section .map-search { bottom: 120px; } .rd-map-full { inset: 190px 0 176px; }
  .rd-card { top: auto; bottom: 186px; } /* over the stage, clear of the head and above the search field */
  .rd-zoom { display: none; }
  .rd-board [data-lb-rows] > .lb-row:not(.yours) { height: auto; grid-template-columns: 16px minmax(0, 1fr) auto; } .rd-board [data-lb-rows] > .lb-row:not(.yours) .sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .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), over the pair's two-line row (css/home-desk.css) */
}
@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 ---- */
/* The live viewer slot's quiet organism (until this cause's own viewer, /rd/live, lends its ring): the verify
   loop's gate on a dashed ring, the agents at work said under it. */
.live-graph.rd-loop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 360px; background: var(--color-surface-organism); }
.live-graph.rd-loop::before { content: ''; position: absolute; width: 260px; height: 260px; border: 1px dashed var(--color-rule-strong); border-radius: 50%; }
.rd-loop-say { position: relative; font: 400 12px/1.4 var(--mono); color: var(--color-ink-meta); }
.rd-live .inside { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.rd-live .inside .msgs { display: flex; flex-direction: column; } .rd-live .none-yet { margin: 0; font: 400 14px/1.45 var(--sans); color: var(--color-ink-muted); }
.rd-live .held { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: auto 0 0; font: 400 12px/1.4 var(--mono); color: var(--color-ink-meta); }
@media (max-width: 900px) { .live-graph.rd-loop { min-height: 280px; } .live-graph.rd-loop::before { width: 200px; height: 200px; } }
.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-record { padding: 112px var(--gutter) 104px; } .rd-record .returns { align-items: stretch; }
.rd-record .return .big time, .rd-record .foot time { font: inherit; color: inherit; }
.become [data-pay-form]:has(> p) { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; } /* a closed cause wall's line over its way out (js/raredx.js sponsorWay) */
/* 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); }
/* A locked cause's "Agents can already try it:" under the shut pill (build.mjs rdLock, js/raredx.js tryLine): the line in mono, its copy mark. */
.rd-try { display: flex; flex-direction: column; gap: 8px; max-width: 640px; margin: 16px 0 0; }
.rd-try[hidden] { display: none; }
.rd-try p { margin: 0; font: 400 14px/1.45 var(--sans); color: var(--color-ink-muted); }
.rd-try-row { display: flex; align-items: flex-start; gap: 8px; }
.rd-try-line { flex: 1 1 auto; min-width: 0; padding: 8px 12px; border: 1px solid var(--color-rule-strong); border-radius: 8px; background: var(--color-surface); font: 400 12px/1.5 var(--mono); color: var(--color-ink); overflow-wrap: anywhere; user-select: all; }
.rd-try-copy { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--color-rule-strong); border-radius: 8px; background: var(--color-surface); color: var(--color-ink); cursor: pointer; }
.rd-try-copy .ico-check { display: none; } .rd-try-copy.copied .ico-check { display: block; } .rd-try-copy.copied .ico-copy { display: none; }
