/* Research blocks for the Corrective Action Library and Manage Product case studies (24 Oct 2026).
   Replaces the old process, persona and empathy map images with real HTML, same content. */

.rx-block { margin-top: 56px; font-family: var(--font-ui, 'Figtree', system-ui, sans-serif); }
/* intro text sits on the same 680px column as .cs-paragraph; the cards below use the full width */
.rx-eyebrow, .rx-title, .rx-sub { max-width: 680px; margin-left: auto !important; margin-right: auto !important; }
.rx-eyebrow {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #14545E;
}
.rx-title {
    font-family: var(--t-head, 'Bricolage Grotesque', sans-serif);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 8px 0 8px;
    color: #1B1B18;
}
.rx-sub { font-size: 1.05rem; line-height: 1.55; color: #55554F; margin: 0 0 28px; }

/* ----- Process: five numbered stages on one track ----- */
.rx-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: rx-step;
    position: relative;
}
.rx-step {
    position: relative;
    background: #fff;
    border: 1px solid #ECE7DC;
    border-radius: 18px;
    padding: 20px 18px 22px;
    counter-increment: rx-step;
}
.rx-step::before {
    content: counter(rx-step, decimal-leading-zero);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--rx-c, #14545E);
    color: #fff;
    font-family: var(--t-head, 'Bricolage Grotesque', sans-serif);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 16px;
}
/* arrow between cards */
.rx-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 38px;
    right: -11px;
    width: 10px;
    height: 10px;
    border-top: 2px solid #C9C2B4;
    border-right: 2px solid #C9C2B4;
    transform: rotate(45deg);
    z-index: 1;
}
.rx-step h3 {
    font-family: var(--t-head, 'Bricolage Grotesque', sans-serif);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1B1B18;
}
.rx-step p { font-size: 0.85rem; color: #7A776F; margin: 0 0 14px; }
.rx-step ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.rx-step li {
    font-size: 0.86rem;
    line-height: 1.35;
    color: #33332F;
    background: var(--rx-tint, #EEF5F5);
    border-radius: 8px;
    padding: 6px 10px;
}
.rx-step:nth-child(1) { --rx-c: #2F6FB3; --rx-tint: #EAF1F9; }
.rx-step:nth-child(2) { --rx-c: #D9622B; --rx-tint: #FBEEE6; }
.rx-step:nth-child(3) { --rx-c: #6F9A2E; --rx-tint: #F0F5E6; }
.rx-step:nth-child(4) { --rx-c: #C9852A; --rx-tint: #FAF1E2; }
.rx-step:nth-child(5) { --rx-c: #14545E; --rx-tint: #E7F1F2; }
.rx-loop {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 0.9rem;
    color: #7A776F;
}
.rx-loop svg { flex: none; color: #C9852A; }

/* ----- Persona cards ----- */
.rx-personas { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rx-persona {
    background: #fff;
    border: 1px solid #ECE7DC;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.rx-persona-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: var(--rx-head, #E7F1F2);
}
.rx-avatar {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--rx-c, #14545E);
    color: #fff;
    font-family: var(--t-head, 'Bricolage Grotesque', sans-serif);
    font-weight: 700;
    font-size: 1.35rem;
    overflow: hidden;
}
.rx-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rx-persona-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rx-c, #14545E);
}
.rx-persona-head h3 {
    font-family: var(--t-head, 'Bricolage Grotesque', sans-serif);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 2px 0 2px;
    color: #1B1B18;
}
.rx-persona-meta { font-size: 0.9rem; color: #55554F; margin: 0; }
.rx-persona dl { margin: 0; padding: 8px 24px 22px; }
.rx-persona dt {
    margin-top: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8A867C;
}
.rx-persona dd { margin: 4px 0 0; font-size: 0.98rem; line-height: 1.55; color: #33332F; }
.rx-persona.is-field { --rx-c: #2F6FB3; --rx-head: #EAF1F9; }
.rx-persona.is-manager { --rx-c: #D9622B; --rx-head: #FBEEE6; }

/* ----- Persona profile (one person, more detail) ----- */
.rx-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    background: #fff;
    border: 1px solid #ECE7DC;
    border-radius: 20px;
    overflow: hidden;
}
.rx-profile-side { background: #1E3A44; color: #fff; padding: 28px 26px; }
.rx-profile-side .rx-avatar { width: 96px; height: 96px; border: 3px solid rgba(255,255,255,.25); }
.rx-profile-side h3 {
    font-family: var(--t-head, 'Bricolage Grotesque', sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 18px 0 4px;
    color: #fff;
}
.rx-profile-side .rx-persona-meta { color: rgba(255,255,255,.75); }
.rx-quote {
    margin: 24px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255,255,255,.18);
    font-size: 1rem;
    line-height: 1.55;
    font-style: italic;
    color: rgba(255,255,255,.92);
}
.rx-quote::before { content: "“"; display: block; font-size: 2.6rem; line-height: .6; color: #7FD3C5; font-style: normal; margin-bottom: 6px; }
.rx-profile-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.rx-cell { padding: 24px 26px; border-left: 1px solid #F0ECE3; border-top: 1px solid #F0ECE3; }
.rx-cell:nth-child(-n+2) { border-top: 0; }
.rx-cell:nth-child(odd) { border-left: 0; }
.rx-cell h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #14545E;
    margin: 0 0 12px;
}
.rx-cell p { margin: 0; font-size: 0.96rem; line-height: 1.55; color: #33332F; }
.rx-cell ul { margin: 0; padding-left: 18px; font-size: 0.96rem; line-height: 1.5; color: #33332F; }
.rx-cell li + li { margin-top: 6px; }

/* bars (motivation, technology) and two-ended scales (personality) */
.rx-bars { display: flex; flex-direction: column; gap: 12px; }
.rx-bar { font-size: 0.88rem; color: #33332F; }
.rx-bar span { display: flex; justify-content: space-between; margin-bottom: 5px; }
.rx-bar em { font-style: normal; }
.rx-bar i {
    display: block;
    height: 6px;
    border-radius: 6px;
    background: #E4F1EE linear-gradient(90deg, #2BB39A, #2BB39A) no-repeat;
    background-size: var(--v, 50%) 100%;
}
.rx-scale i {
    position: relative;
    background: #E4F1EE;
}
.rx-scale i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: var(--v, 50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1E3A44;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #1E3A44;
    transform: translate(-50%, -50%);
}

/* ----- Empathy map: four quadrants ----- */
.rx-empathy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.rx-quad {
    background: #fff;
    border: 1px solid #ECE7DC;
    border-radius: 18px;
    padding: 22px 24px;
    border-top: 4px solid var(--rx-c);
}
.rx-quad h3 {
    font-family: var(--t-head, 'Bricolage Grotesque', sans-serif);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--rx-c);
}
.rx-quad ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rx-quad li {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #33332F;
    background: var(--rx-tint);
    border-radius: 10px;
    padding: 9px 12px;
}
.rx-quad.is-says { --rx-c: #C9852A; --rx-tint: #FAF1E2; }
.rx-quad.is-does { --rx-c: #2F6FB3; --rx-tint: #EAF1F9; }
.rx-quad.is-thinks { --rx-c: #6F9A2E; --rx-tint: #F0F5E6; }
.rx-quad.is-feels { --rx-c: #14857A; --rx-tint: #E4F3F1; }

@media (max-width: 900px) {
    .rx-steps { grid-template-columns: 1fr; }
    .rx-step { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; }
    .rx-step::before { grid-row: span 3; margin: 0; }
    .rx-step:not(:last-child)::after { top: auto; bottom: -11px; right: auto; left: 37px; transform: rotate(135deg); }
    .rx-personas { grid-template-columns: 1fr; }
    .rx-profile { grid-template-columns: 1fr; }
    .rx-profile-side { display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; align-items: center; }
    .rx-profile-side .rx-avatar { width: 72px; height: 72px; }
    .rx-profile-side h3 { margin-top: 0; }
    .rx-quote { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .rx-block { margin-top: 40px; }
    .rx-profile-main { grid-template-columns: 1fr; }
    .rx-cell { border-left: 0 !important; border-top: 1px solid #F0ECE3 !important; padding: 20px; }
    .rx-cell:first-child { border-top: 0 !important; }
    .rx-empathy { grid-template-columns: 1fr; }
    .rx-persona-head, .rx-persona dl { padding-left: 20px; padding-right: 20px; }
}
