/* Adapted from the approved paragraph-reaction board, 27 November 2026. */
.para { position: relative; }
.rx button { font-family: inherit; }
.rx-open, .rx-set button { border-radius: 0; cursor: pointer; }
.rx-hint, .rx-set .c, .rx-open .word { display: none; }
.rx-set { display: none; }
.rx[data-state="open"] .rx-set { display: grid; }
.rx[data-state="open"][data-choice]:not([data-choice=""]) .rx-hint { display: block; }
.rx-set .c { font-variant-numeric: tabular-nums; }


.para > p { margin-bottom: 0; }
.rx { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; min-height: 44px; margin: 0 0 6px; }
.rx-set { width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.4fr) 44px; }
.rx[data-state="open"] .rx-open { display: none; }
.rx-hint { width: 100%; margin: 6px 0 0; font: 400 12px/1.4 var(--mono); color: var(--muted); text-align: right; }


@media (min-width: 1200px) {
  .para > p { margin-bottom: 1em; }
  .rx { position: absolute; left: calc(100% + 28px); top: 3px; display: block; min-height: 0; margin: 0; width: 164px; }
  .rx-set { position: absolute; left: 0; top: 0; width: 164px; grid-template-columns: minmax(0, 1fr); z-index: 2; }
  .rx[data-state="open"] .rx-open { display: inline-flex; visibility: hidden; }
  .rx-hint { position: absolute; left: 0; top: 139px; margin: 0; z-index: 2; background: var(--bg); padding: 6px 0 4px;  text-align: left; width: 164px; }
  .rx .rx-set .rx-close { display: none; }

  .rx:not([data-state="open"]):not([data-quiet]):hover .rx-set { display: grid; }
  .rx:not([data-state="open"]):not([data-quiet]):hover .rx-open { visibility: hidden; }
}
@media (min-width: 1200px) and (hover: none) {
  .rx:not([data-state="open"]):not([data-quiet]):hover .rx-set { display: none; }
  .rx:not([data-state="open"]):not([data-quiet]):hover .rx-open { visibility: visible; }
}


.rx-live { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rx button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (min-width: 1200px) {
 .rx-pinned .rx:not([data-state="open"]):hover .rx-set { display: none; }
 .rx-pinned .rx:not([data-state="open"]):hover .rx-open { visibility: visible; }
 .rx[data-state="open"] { z-index: 3; }
}
