/* Redaction section (redaction.js): "See what the Ai sees". Three panels show what a person writes,
   what the Ai model receives (details swapped for placeholders) and the reply with the real details put
   back. Scenario tabs and the admin setting (Standard / Strict) replay it. */
.rxb { background: #F3EEE4; padding: clamp(88px, 10vw, 140px) 0; }
.rxb-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px clamp(32px, 6vw, 96px); align-items: start; }
.rxb-head h2 { font-size: clamp(38px, 4.4vw, 64px); margin: 0; }
.rxb-head p { margin: 6px 0 0; max-width: 34em; color: var(--adaptum-ink-muted); font-size: 17px; line-height: 1.6; }
.rxb-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin: clamp(40px, 5vw, 64px) 0 18px; }
.rxb-tabs, .rxb-set { display: flex; align-items: center; gap: 6px; }
.rxb-tabs button, .rxb-set button { all: unset; cursor: pointer; height: 32px; padding: 0 14px; border-radius: 999px; font: 500 13px/32px var(--adaptum-font-text); color: var(--adaptum-ink); }
.rxb-tabs button { box-shadow: inset 0 0 0 1px rgb(24 37 59 / .16); background: rgb(255 255 255 / .5); }
.rxb-tabs button[aria-pressed="true"] { background: var(--adaptum-ink); color: #fff; box-shadow: none; }
.rxb-set { padding: 4px 4px 4px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgb(24 37 59 / .1); }
.rxb-set span { font: 500 10.5px/1 var(--adaptum-font-mono); letter-spacing: .06em; color: var(--adaptum-ink-muted); margin-right: 6px; }
.rxb-set button { height: 28px; line-height: 28px; color: var(--adaptum-ink-muted); }
.rxb-set button[aria-pressed="true"] { background: var(--adaptum-viridian); color: #fff; }
.rxb-tabs button:focus-visible, .rxb-set button:focus-visible { outline: 2px solid var(--adaptum-viridian); outline-offset: 2px; }

.rxb-panels { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr); align-items: stretch; }
.rxb-arrow { display: grid; place-items: center; color: var(--adaptum-ink-muted); font-size: 18px; }
.rxb-p { position: relative; display: flex; flex-direction: column; min-height: 248px; padding: 18px 20px 16px; border-radius: 14px; background: #fff; box-shadow: 0 1px 0 rgb(24 37 59 / .04), 0 14px 34px -22px rgb(24 37 59 / .35); }
.rxb-p.ai { background: var(--adaptum-ink); color: #F4EDE1; }
.rxb-lbl { display: flex; justify-content: space-between; font: 500 10.5px/1 var(--adaptum-font-mono); letter-spacing: .04em; color: var(--adaptum-ink-muted); }
.rxb-p.ai .rxb-lbl { color: rgb(244 237 225 / .6); }
.rxb-txt { flex: 1; margin: 16px 0 14px; font-size: 16px; line-height: 1.75; }
.rxb-note { font: 500 10.5px/1.3 var(--adaptum-font-mono); letter-spacing: .02em; color: var(--adaptum-ink-muted); }
.rxb-caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -.18em; background: currentColor; animation: rxbBlink 1s steps(1) infinite; }
@keyframes rxbBlink { 50% { opacity: 0; } }

/* What you write: words can be clicked to hide them; hidden details are underlined and tinted. */
.rxb-w { cursor: pointer; border-radius: 3px; transition: background .2s; }
.rxb-w:hover { background: rgb(18 77 62 / .08); }
.rxb-w:focus-visible { outline: 2px solid var(--adaptum-viridian); outline-offset: 1px; }
.rxb-hid { background: rgb(24 37 59 / .07); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgb(24 37 59 / .55); }
/* What the Ai sees: placeholders */
.rxb-chip { display: inline-block; padding: 0 7px; border-radius: 5px; font: 500 11.5px/1.75 var(--adaptum-font-mono); vertical-align: 1px; background: rgb(244 237 225 / .12); box-shadow: inset 0 0 0 1px rgb(244 237 225 / .22); color: #F4EDE1; animation: rxbChip .6s ease; }
@keyframes rxbChip { from { background: rgb(127 209 180 / .45); box-shadow: inset 0 0 0 1px rgb(127 209 180 / .6); } }
/* Replays fade the text out and back in (redaction.js). */
.rxb-txt { transition: opacity .2s ease; }
.rxb-out .rxb-txt { opacity: 0; }
/* What you get back: restored details */
.rxb-back { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--adaptum-viridian); background: rgb(18 77 62 / .07); border-radius: 3px; }

@media (max-width: 900px) {
  .rxb-head { grid-template-columns: 1fr; }
  .rxb-panels { grid-template-columns: 1fr; }
  .rxb-arrow { height: 28px; transform: rotate(90deg); }
  .rxb-p { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .rxb-caret { display: none; } .rxb-chip { animation: none; } .rxb-txt { transition: none; } }
