/* Adapted from the approved paragraph-reaction board, 27 November 2026. */
.rx-open { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; background: transparent; color: var(--muted); border: 2px solid var(--rule); font: 700 18px/1 var(--mono); transform: rotate(-4deg); transition: transform 0.12s ease-out, border-color 0.12s, color 0.12s; }
.rx-open::after { content: ""; position: absolute; inset: -8px; }
.rx-open .n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rx-open .plus { line-height: 1; }
.para:hover .rx-open { border-color: var(--muted); }
.rx-open:hover { border-color: var(--signal); color: var(--signal); transform: rotate(3deg) scale(1.08); }


.rx-set { gap: 8px; padding: 6px 4px; }
.rx-set button { --r: -3deg; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 12px; background: var(--bg); color: var(--signal); border: 2px solid var(--signal); font: 700 15px/1 var(--sans); letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap; transform: rotate(var(--r)); transition: transform 0.1s ease-out, background 0.1s, color 0.1s; }
.rx-set button[data-r="disagree"] { --r: 2deg; }
.rx-set button[data-r="tell-me-more"] { --r: -1.5deg; }
.rx-set button:hover { background: var(--signal); color: var(--bg); transform: rotate(0deg) scale(1.04); }
.rx-set button:active { background: var(--ink); border-color: var(--ink); color: var(--bg); transform: rotate(0deg) scale(0.96); }
.rx-set button[aria-pressed="true"] { background: var(--signal); color: var(--bg); }
.rx-set .rx-close { --r: 0deg; border-color: var(--rule); color: var(--muted); font: 400 20px/1 var(--mono); padding: 0; }
.rx-set .rx-close:hover { background: transparent; color: var(--ink); border-color: var(--muted); transform: none; }
.rx-set .c { font: 700 13px/1 var(--mono); }


.rx[data-choice]:not([data-choice=""]):not([data-state="open"]) .rx-open { width: auto; height: auto; min-height: 36px; padding: 0 14px; background: var(--bg); color: var(--signal); border: 3px solid var(--signal); box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px var(--signal); font: 700 17px/1 var(--sans); letter-spacing: -0.01em; text-transform: uppercase; transform: rotate(-4deg); white-space: nowrap; }
.rx[data-choice="disagree"]:not([data-state="open"]) .rx-open { transform: rotate(2.5deg); }
.rx[data-choice="tell-me-more"]:not([data-state="open"]) .rx-open { transform: rotate(-2deg); }
.rx[data-choice]:not([data-choice=""]):not([data-state="open"]) .rx-open .n, .rx[data-choice]:not([data-choice=""]):not([data-state="open"]) .rx-open .plus { display: none; }
.rx[data-choice]:not([data-choice=""]):not([data-state="open"]) .rx-open .word { display: inline; }
.rx[data-choice]:not([data-choice=""]):not([data-state="open"]) .rx-open:hover { opacity: 0.7; }
.rx.just .rx-open { animation: rx-thump 0.32s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
@keyframes rx-thump { from { transform: rotate(9deg) scale(1.7); opacity: 0; } 60% { opacity: 1; } }

@media (max-width: 1199.98px) {
  .rx-set { gap: 6px; padding: 4px 0 4px; }
  .rx-set button { min-height: 48px; padding: 0 8px; font-size: 14px; gap: 6px; }
  .rx-set .rx-close { min-height: 48px; }
  .rx-open { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .rx.just .rx-open, .rx-open, .rx-set button { animation: none; transition: none; }
}

/* Fix v2 (designer, 27 Nov 2026), loaded after rx-base.css and the look's css. Wide page only.
   Fault in v1: the strip opened at top: 0, exactly over the resting control, so a mouse that moved onto the control
   found "Agree" under the pointer and the click chose it. Now the control stays where it is and the strip opens just
   below it, touching it, so nothing is under the pointer when the strip appears and the hover never has a gap. */
@media (min-width: 1200px) {
  .rx-set { top: 28px; }
  .rx-hint { top: 167px; }
  .rx[data-state="open"] .rx-open,
  .rx:not([data-state="open"]):not([data-quiet]):hover .rx-open,
  .rx.force-hover .rx-open { visibility: visible; }
}
@media (min-width: 1200px) and (hover: none) {
  .rx:not([data-state="open"]):hover .rx-set { display: none; }
}
