/* =========================================================
   Reactor series pages (innovative-reactors.html ... transformative-reactor-design.html)
   All selectors prefixed .rx-
   ========================================================= */

:root {
    --rx-navy: #0d2238;
    --rx-navy-2: #132f4c;
    --rx-ink: #0d2238;
    --rx-muted: #4a5a6e;
    --rx-accent: #f77e1a;
    --rx-accent-2: #ff5e3a;
    --rx-accent-soft: rgba(247, 126, 26, 0.1);
    --rx-line: rgba(13, 34, 56, 0.1);
    --rx-card: #ffffff;
    --rx-bg: #eef5fc;
    --rx-shadow: 0 10px 30px rgba(13, 34, 56, 0.08);
}

.rx-page {
    background: var(--rx-bg);
}

/* content only — a page-wide rule also turned the shared header menu (strong headings) navy */
.rx-main strong {
    color: var(--rx-ink);
    font-weight: 600;
}

/* ---------- Hero ---------- */
.rx-hero {
    position: relative;
    margin-top: 83px;
    min-height: 470px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--rx-navy);
    color: #fff;
}

.rx-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right;
    transform: scale(1.04);
}

.rx-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 15, 28, 0.96) 0%, rgba(6, 15, 28, 0.85) 38%, rgba(6, 15, 28, 0.35) 75%, rgba(6, 15, 28, 0.2) 100%),
        linear-gradient(0deg, rgba(6, 15, 28, 0.7) 0%, transparent 40%);
}

.rx-hero .container {
    position: relative;
    z-index: 2;
    padding-top: 56px;
    padding-bottom: 56px;
}

.rx-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

.rx-crumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.rx-crumbs a:hover {
    color: var(--rx-accent);
}

.rx-crumbs li+li::before {
    content: "/";
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.35);
}

.rx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border: 1px solid rgba(247, 126, 26, 0.45);
    border-radius: 999px;
    background: rgba(247, 126, 26, 0.12);
    color: #ffb27a;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.rx-eyebrow b {
    color: #fff;
    font-weight: 700;
}

.rx-hero h1 {
    margin: 18px 0 16px;
    max-width: 760px;
    font-size: clamp(2rem, 4.4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.08;
    color: #fff;
}

.rx-hero h1 span {
    background: linear-gradient(45deg, #f88b39, #ff5e3a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rx-hero__lead {
    max-width: 640px;
    margin: 0;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

.rx-steps {
    display: flex;
    gap: 6px;
    margin-top: 34px;
    max-width: 360px;
}

.rx-steps a {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.22);
    transition: background .2s ease;
}

.rx-steps a:hover {
    background: rgba(255, 255, 255, 0.5);
}

.rx-steps a.is-done {
    background: rgba(247, 126, 26, 0.55);
}

.rx-steps a.is-active {
    background: var(--rx-accent);
}

/* ---------- Layout ---------- */
.rx-main {
    padding: 64px 0 40px;
}

.rx-side {
    position: sticky;
    top: 110px;
}

.rx-side__label {
    margin: 0 0 14px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--rx-muted);
}

.rx-side ol {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--rx-line);
}

.rx-side li a {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin-left: -2px;
    padding: 10px 0 10px 16px;
    border-left: 2px solid transparent;
    color: var(--rx-muted);
    font-size: 1rem;
    line-height: 1.35;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease;
}

.rx-side li a span {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(13, 34, 56, 0.35);
}

.rx-side li a:hover {
    color: var(--rx-ink);
}

.rx-side li a.is-active {
    border-left-color: var(--rx-accent);
    color: var(--rx-ink);
    font-weight: 600;
}

.rx-side li a.is-active span {
    color: var(--rx-accent);
}

/* ---------- Article blocks ---------- */
.rx-article>*+* {
    margin-top: 28px;
}

.rx-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.rx-kicker__icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    background: linear-gradient(135deg, #f88b39, #ff5e3a);
    box-shadow: 0 10px 22px rgba(247, 126, 26, 0.3);
}

.rx-kicker h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 700;
    color: var(--rx-ink);
    line-height: 1.2;
}

.rx-h3 {
    margin: 48px 0 0;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 700;
    color: var(--rx-ink);
}

.rx-h3::before {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    margin-bottom: 14px;
    border-radius: 3px;
    background: var(--rx-accent);
}

.rx-p {
    margin-bottom: 0;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--rx-muted);
}

.rx-lead {
    margin-bottom: 0;
    font-size: clamp(1.2rem, 1.7vw, 1.4rem);
    line-height: 1.7;
    color: var(--rx-ink);
}

/* Statement / quote card (dark) */
.rx-statement {
    position: relative;
    padding: 40px 44px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(247, 126, 26, 0.28), transparent 45%),
        linear-gradient(135deg, var(--rx-navy) 0%, var(--rx-navy-2) 100%);
    color: rgba(255, 255, 255, 0.86);
    box-shadow: var(--rx-shadow);
    overflow: hidden;
}

.rx-statement::before {
    content: "\201C";
    position: absolute;
    top: -26px;
    right: 26px;
    font-size: 11rem;
    line-height: 1;
    font-family: Georgia, serif;
    color: rgba(255, 255, 255, 0.07);
}

.rx-statement p {
    position: relative;
    margin: 0;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    line-height: 1.7;
}

.rx-statement strong {
    color: #fff;
}

.rx-statement .rx-hl {
    color: #ffb27a;
}

.rx-statement__tag {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--rx-accent);
}

/* Cards grid */
.rx-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.rx-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rx-card {
    position: relative;
    padding: 28px 26px;
    border: 1px solid var(--rx-line);
    border-radius: 18px;
    background: var(--rx-card);
    box-shadow: var(--rx-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

.rx-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(13, 34, 56, 0.12);
}

.rx-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 1.35rem;
    color: var(--rx-accent);
    background: var(--rx-accent-soft);
}

.rx-card__tag {
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--rx-accent);
}

.rx-card h4 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rx-ink);
    line-height: 1.35;
}

.rx-card p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--rx-muted);
}

.rx-card--flaw {
    border-top: 4px solid #e25555;
}

.rx-card--flaw .rx-card__icon {
    color: #d64545;
    background: rgba(226, 85, 85, 0.1);
}

.rx-card--flaw .rx-card__tag {
    color: #d64545;
}

/* Chips */
.rx-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rx-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--rx-line);
    border-radius: 999px;
    background: #fff;
    font-size: 1rem;
    font-weight: 600;
    color: var(--rx-ink);
    box-shadow: 0 4px 12px rgba(13, 34, 56, 0.05);
}

.rx-chip i {
    color: var(--rx-accent);
}

.rx-chip--warn i {
    color: #d64545;
}

/* Callout (light accent) */
.rx-callout {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 26px 28px;
    border: 1px solid rgba(247, 126, 26, 0.25);
    border-left: 4px solid var(--rx-accent);
    border-radius: 14px;
    background: linear-gradient(90deg, #fff4ea 0%, #ffffff 100%);
}

.rx-callout i {
    flex: 0 0 auto;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--rx-accent);
}

.rx-callout p {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--rx-muted);
}

/* Duo: Levenspiel + Kunii */
.rx-duo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.rx-duo__plus {
    align-self: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    background: var(--rx-navy);
}

.rx-person__mono {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--rx-navy), #2a5a8a);
}

.rx-person__field {
    display: inline-block;
    margin-top: 16px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #b85200;
    /* --rx-accent is 2.6:1 at this size */
    background: var(--rx-accent-soft);
}

/* Analogy rows: X did for Y */
.rx-analogy {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.rx-analogy__item {
    padding: 24px 22px;
    border: 1px solid var(--rx-line);
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.rx-analogy__item i {
    display: block;
    margin-bottom: 10px;
    font-size: 1.8rem;
    color: var(--rx-muted);
}

.rx-analogy__what {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rx-ink);
}

.rx-analogy__arrow {
    display: block;
    margin: 6px 0;
    font-size: 0.85rem;
    color: var(--rx-muted);
}

.rx-analogy__for {
    display: block;
    font-size: 1rem;
    color: var(--rx-muted);
}

.rx-analogy__item--us {
    border: 0;
    background: linear-gradient(135deg, #f88b39, #ff5e3a);
    box-shadow: 0 14px 30px rgba(247, 126, 26, 0.3);
}

.rx-analogy__item--us i,
.rx-analogy__item--us .rx-analogy__what,
.rx-analogy__item--us .rx-analogy__arrow,
.rx-analogy__item--us .rx-analogy__for {
    color: #fff;
}

/* Stats */
.rx-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.rx-stat {
    padding: 28px;
    border-radius: 18px;
    background: var(--rx-navy);
    color: rgba(255, 255, 255, 0.78);
}

.rx-stat b {
    display: block;
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1;
    color: var(--rx-accent);
}

.rx-stat span {
    display: block;
    margin-top: 10px;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Prev / next */
.rx-pager {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 56px;
}

.rx-pager a {
    display: block;
    padding: 22px 26px;
    border: 1px solid var(--rx-line);
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}

.rx-pager a:hover {
    border-color: var(--rx-accent);
    transform: translateY(-2px);
}

.rx-pager small {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--rx-accent);
}

.rx-pager span {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--rx-ink);
}

.rx-pager .rx-pager__next {
    grid-column: 2;
    text-align: right;
}

/* CTA band */
.rx-cta {
    padding: 0 0 72px;
}

.rx-cta__box {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding: 40px 44px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 0% 100%, rgba(247, 126, 26, 0.35), transparent 50%),
        linear-gradient(135deg, var(--rx-navy) 0%, var(--rx-navy-2) 100%);
    color: #fff;
}

.rx-cta__box h3 {
    margin: 0 0 6px;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 700;
    color: #fff;
}

.rx-cta__box p {
    margin: 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
}

.rx-cta__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rx-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.rx-btn--primary {
    background: var(--rx-accent);
    color: #fff;
}

.rx-btn--primary:hover {
    background: #df5d06;
    color: #fff;
}

.rx-btn--ghost {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
}

.rx-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .rx-hero {
        min-height: 420px;
    }

    .rx-hero__bg::after {
        background: linear-gradient(0deg, rgba(6, 15, 28, 0.95) 0%, rgba(6, 15, 28, 0.8) 60%, rgba(6, 15, 28, 0.6) 100%);
    }

    .rx-side {
        position: static;
        margin-bottom: 36px;
    }

    .rx-side ol {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        border-left: 0;
        padding: 2px 24px 2px 0;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 32px), transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 32px), transparent 100%);
    }

    .rx-side ol::-webkit-scrollbar {
        display: none;
    }

    .rx-side ol.is-dragging {
        cursor: grabbing;
        user-select: none;
    }

    .rx-side ol.is-dragging a {
        pointer-events: none;
    }

    .rx-side li {
        flex: 0 0 auto;
    }

    .rx-side li:first-child {
        padding-left: 16px;
    }

    .rx-side li a {
        margin-left: 0;
        padding: 8px 14px;
        border: 1px solid var(--rx-line);
        border-radius: 999px;
        background: #fff;
        white-space: nowrap;
        font-size: 0.95rem;
    }

    .rx-side li a.is-active {
        border-color: var(--rx-accent);
        background: var(--rx-accent);
        color: #fff;
    }

    .rx-side li a.is-active span {
        color: #fff;
    }

    .rx-grid--3,
    .rx-analogy {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .rx-main {
        padding-top: 40px;
    }

    .rx-grid,
    .rx-stats,
    .rx-pager {
        grid-template-columns: 1fr;
    }

    .rx-pager .rx-pager__next {
        grid-column: auto;
    }

    .rx-duo {
        grid-template-columns: 1fr;
    }

    .rx-duo__plus {
        justify-self: center;
    }

    .rx-statement,
    .rx-cta__box {
        padding: 30px 24px;
    }

    .rx-callout {
        padding: 22px 20px;
    }

    .rx-kicker {
        justify-content: flex-start;
        text-align: left;
    }

    /* custom.css centres every section p/li (body:not(.index-page) ... :not(#_)) */
    body.rx-page section .rx-article p.rx-lead:not(#_) {
        text-align: left;
    }
}

.rx-duo>.rx-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rx-duo .rx-person__field {
    margin-top: auto;
    padding-top: 5px;
}

.rx-duo .rx-card p {
    margin-bottom: 16px;
}

/* header collapses to ~61px at <=991px (nav switches to the hamburger) */
@media (max-width: 991px) {
    .rx-hero {
        margin-top: 61px;
    }
}

@media (max-width: 991px) {
    .rx-side {
        margin-bottom: 0;
    }
}

/* style.css underlines + recolours every a:hover/focus/active */
.rx-crumbs a:hover,
.rx-crumbs a:focus,
.rx-side a:hover,
.rx-side a:focus,
.rx-pager a:hover,
.rx-pager a:focus,
.rx-steps a:hover,
.rx-steps a:focus,
.rx-btn:hover,
.rx-btn:focus,
.rx-callout a:hover,
.rx-callout a:focus {
    text-decoration: none;
}

.rx-side a:focus {
    color: var(--rx-ink);
}

.rx-callout a:hover strong {
    color: var(--rx-accent);
}