.ro-what-is,
.ro-diagnostics,
.ro-selection,
.ro-products,
.ro-faq {
    padding: 92px 0;
}

.ro-what-is {
    background: #FFFFFF;
}

.ro-what-is__sequence {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    border: 1px solid var(--fpp-line);
    background: var(--fpp-line);
}

.ro-what-is__sequence article {
    position: relative;
    min-height: 202px;
    padding: 22px;
    background: #FAF9F5;
}

.ro-what-is__sequence article:not(:last-child)::after {
    position: absolute;
    right: -7px;
    bottom: 22px;
    z-index: 1;
    color: var(--fpp-olive);
    content: "\2192";
    font-size: 18px;
}

.ro-what-is__sequence span,
.ro-diagnostics__grid button > span,
.ro-workspace__topics button > span {
    display: block;
    color: #6d8238;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.ro-what-is__sequence h3 {
    margin: 23px 0 8px;
    color: var(--fpp-ink);
    font-size: 1.08rem;
    line-height: 1.25;
}

.ro-what-is__sequence p,
.ro-what-is__note {
    margin: 0;
    color: var(--fpp-muted);
    font-size: .88rem;
    line-height: 1.55;
}

.ro-what-is__note {
    max-width: 930px;
    margin-top: 22px;
}

.ro-chemistry {
    background: #FAF9F5;
}

.ro-chemistry__primary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--fpp-line);
    background: var(--fpp-line);
}

.ro-chemistry__primary button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 18px 19px;
    border: 0;
    border-right: 1px solid var(--fpp-line);
    background: #FFFFFF;
    color: var(--fpp-ink);
    font: inherit;
    font-size: .86rem;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}

.ro-chemistry__primary button:last-child {
    border-right: 0;
}

.ro-chemistry__primary button b {
    color: var(--fpp-olive);
    font-size: 1.1rem;
    transition: transform .18s ease;
}

.ro-chemistry__primary button:hover,
.ro-chemistry__primary button:focus-visible,
.ro-chemistry__primary button.is-active {
    background: var(--fpp-olive);
    color: #FFFFFF;
    outline: 0;
}

.ro-chemistry__primary button:focus-visible {
    box-shadow: inset 0 0 0 3px #FFFFFF;
}

.ro-chemistry__primary button:hover b,
.ro-chemistry__primary button:focus-visible b,
.ro-chemistry__primary button.is-active b {
    color: #FFFFFF;
    transform: translateX(3px);
}

.ro-workspace {
    margin-top: 24px;
}

.ro-workspace__programme {
    display: grid;
    grid-template-columns: minmax(216px, .29fr) minmax(0, .71fr);
    border: 1px solid var(--fpp-line);
    background: var(--fpp-line);
}

/* The programme view uses a grid layout when active; preserve the HTML hidden state for all inactive views. */
.ro-workspace__programme[hidden] {
    display: none !important;
}

.ro-workspace__topics {
    padding: 24px 0;
    background: #FFFFFF;
}

.ro-workspace__category {
    display: block;
    padding: 0 24px 16px;
    color: var(--fpp-ink);
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ro-workspace__topics button {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 9px;
    width: 100%;
    min-height: 52px;
    padding: 13px 24px;
    border: 0;
    border-left: 3px solid transparent;
    background: #FFFFFF;
    color: #526052;
    font: inherit;
    font-size: .86rem;
    font-weight: 750;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.ro-workspace__topics button:hover,
.ro-workspace__topics button:focus-visible,
.ro-workspace__topics button.is-active {
    border-left-color: var(--fpp-olive);
    background: var(--fpp-pale);
    color: var(--fpp-ink);
    outline: 0;
}

.ro-workspace__content {
    min-width: 0;
    padding: clamp(26px, 3.5vw, 46px);
    background: #FFFFFF;
}

.ro-workspace__panel {
    animation: ro-workspace-enter .24s ease both;
}

.ro-workspace__panel h3 {
    max-width: 820px;
    margin: 10px 0 18px;
    color: var(--fpp-ink);
    font-size: clamp(1.9rem, 3.3vw, 3.45rem);
    letter-spacing: 0;
    line-height: 1.02;
}

.ro-workspace__panel > p {
    max-width: 800px;
    margin: 0 0 14px;
    color: var(--fpp-muted);
    font-size: 1rem;
    line-height: 1.68;
}

.ro-workspace__panel > p:last-of-type {
    margin-bottom: 0;
}

.ro-workspace__statement {
    display: inline-flex;
    margin-top: 18px !important;
    padding: 10px 12px;
    background: var(--fpp-pale);
    color: #526a28 !important;
    font-size: .78rem !important;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ro-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.ro-flow li {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--fpp-line);
    background: #FAF9F5;
    color: #4f5d4f;
    font-size: .76rem;
    font-weight: 800;
    line-height: 1.35;
}

.ro-flow li:not(:last-child)::after {
    margin-left: 12px;
    color: var(--fpp-olive);
    content: "\2192";
    font-size: 16px;
}

.ro-flow--secondary {
    margin-top: 10px;
}

.ro-flow--secondary li {
    background: var(--fpp-pale);
}

.ro-content-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 31px;
    border: 1px solid var(--fpp-line);
    background: var(--fpp-line);
}

.ro-content-group {
    min-height: 170px;
    padding: 22px;
    background: #FAF9F5;
}

.ro-content-group h4 {
    margin: 0;
    color: var(--fpp-ink);
    font-size: 1rem;
    line-height: 1.3;
}

.ro-content-group p {
    margin: 11px 0 0;
    color: var(--fpp-muted);
    font-size: .87rem;
    line-height: 1.55;
}

.ro-content-group ul,
.ro-selection__groups ul {
    display: grid;
    gap: 6px;
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
}

.ro-content-group li,
.ro-selection__groups li {
    position: relative;
    padding-left: 14px;
    color: var(--fpp-muted);
    font-size: .83rem;
    line-height: 1.45;
}

.ro-content-group li::before,
.ro-selection__groups li::before {
    position: absolute;
    top: .58em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--fpp-olive);
    content: "";
}

.ro-diagnostics {
    background: #FFFFFF;
}

.ro-diagnostics__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--fpp-line);
    background: var(--fpp-line);
}

.ro-diagnostics__grid button {
    position: relative;
    min-height: 230px;
    padding: 22px;
    border: 0;
    background: #FAF9F5;
    color: var(--fpp-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}

.ro-diagnostics__grid button h3 {
    margin: 24px 0 8px;
    font-size: 1.03rem;
    line-height: 1.25;
}

.ro-diagnostics__grid button p {
    margin: 0;
    color: var(--fpp-muted);
    font-size: .84rem;
    line-height: 1.55;
}

.ro-diagnostics__grid button b {
    position: absolute;
    right: 21px;
    bottom: 18px;
    color: var(--fpp-olive);
    font-size: 1.18rem;
    transition: transform .18s ease;
}

.ro-diagnostics__grid button:hover,
.ro-diagnostics__grid button:focus-visible {
    z-index: 1;
    background: var(--fpp-pale);
    outline: 3px solid var(--fpp-olive);
    outline-offset: -3px;
}

.ro-diagnostics__grid button:hover b,
.ro-diagnostics__grid button:focus-visible b {
    transform: translateX(4px);
}

.ro-diagnostics__logic {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--fpp-line);
}

.ro-selection {
    background: var(--fpp-pale);
}

.ro-selection__groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid rgba(134, 154, 75, .48);
    background: rgba(134, 154, 75, .48);
}

.ro-selection__groups article {
    min-height: 280px;
    padding: 25px;
    background: #FFFFFF;
}

.ro-selection__groups h3 {
    margin: 0;
    color: var(--fpp-ink);
    font-size: 1.1rem;
    line-height: 1.28;
}

.ro-selection__matrix-wrap {
    margin-top: 30px;
    overflow-x: auto;
    border: 1px solid rgba(134, 154, 75, .48);
    background: #FFFFFF;
}

.ro-selection__matrix {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    color: var(--fpp-ink);
    text-align: left;
}

.ro-selection__matrix caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ro-selection__matrix th,
.ro-selection__matrix td {
    padding: 17px 18px;
    border-right: 1px solid var(--fpp-line);
    border-bottom: 1px solid var(--fpp-line);
    font-size: .86rem;
    line-height: 1.5;
    vertical-align: top;
}

.ro-selection__matrix th {
    background: #FAF9F5;
    color: #526a28;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ro-selection__matrix td:nth-child(1),
.ro-selection__matrix td:nth-child(2) {
    font-weight: 800;
}

.ro-selection__note {
    max-width: 800px;
    margin: 17px 0 0;
    color: #526a28;
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.55;
}

.ro-products {
    background: #FFFFFF;
}

.ro-products__groups {
    display: grid;
    gap: 38px;
}

.ro-products__group > h3,
.ro-products__supporting h3 {
    margin: 0 0 16px;
    color: var(--fpp-ink);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.2;
}

.ro-products__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--fpp-line);
    background: var(--fpp-line);
}

.ro-product-card {
    display: flex;
    min-height: 255px;
    flex-direction: column;
    padding: 25px;
    background: #FAF9F5;
}

.ro-product-card h4 {
    margin: 11px 0 0;
    color: var(--fpp-ink);
    font-size: 1.2rem;
    line-height: 1.24;
}

.ro-product-card p {
    margin: 12px 0 0;
    color: var(--fpp-muted);
    font-size: .88rem;
    line-height: 1.58;
}

.ro-product-card__application strong {
    color: var(--fpp-ink);
}

.ro-product-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: auto;
    padding-top: 20px;
}

.ro-product-card__actions a,
.ro-documents__grid a {
    color: #526a28;
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
}

.ro-product-card__actions a:hover,
.ro-product-card__actions a:focus-visible,
.ro-documents__grid a:hover,
.ro-documents__grid a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ro-products__empty {
    margin: 0;
    padding: 22px;
    border: 1px solid var(--fpp-line);
    background: #FAF9F5;
    color: var(--fpp-muted);
    font-size: .91rem;
    line-height: 1.6;
}

.ro-products__supporting {
    display: grid;
    grid-template-columns: minmax(220px, .31fr) minmax(0, .69fr);
    gap: 28px;
    padding-top: 34px;
    border-top: 1px solid var(--fpp-line);
}

.ro-products__supporting p {
    margin: 0;
    color: var(--fpp-muted);
    font-size: .88rem;
    line-height: 1.6;
}

.ro-documents {
    padding: 92px 0;
    background: #FAF9F5;
}

.ro-documents__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid var(--fpp-line);
    background: var(--fpp-line);
}

.ro-documents__grid a {
    position: relative;
    display: flex;
    min-height: 150px;
    flex-direction: column;
    padding: 22px 46px 22px 22px;
    background: #FFFFFF;
}

.ro-documents__grid span {
    color: #6d8238;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ro-documents__grid strong {
    max-width: 190px;
    margin-top: 14px;
    color: var(--fpp-ink);
    font-size: 1rem;
    line-height: 1.32;
}

.ro-documents__grid b {
    position: absolute;
    right: 22px;
    bottom: 20px;
    font-size: 1.18rem;
}

.ro-faq {
    background: #FFFFFF;
}

.ro-faq__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--fpp-line);
    background: var(--fpp-line);
}

.ro-faq details {
    background: #FAF9F5;
}

.ro-faq summary {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    min-height: 76px;
    padding: 21px 22px;
    color: var(--fpp-ink);
    font-size: .94rem;
    font-weight: 800;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}

.ro-faq summary::-webkit-details-marker {
    display: none;
}

.ro-faq summary span {
    color: var(--fpp-olive);
    font-size: 1.2rem;
    font-weight: 500;
}

.ro-faq details[open] summary {
    border-bottom: 1px solid var(--fpp-line);
    background: #FFFFFF;
}

.ro-faq details[open] summary span {
    font-size: 0;
}

.ro-faq details[open] summary span::after {
    content: "\2212";
    font-size: 1.2rem;
}

.ro-faq details p {
    margin: 0;
    padding: 19px 22px 24px;
    color: var(--fpp-muted);
    font-size: .89rem;
    line-height: 1.62;
}

.ro-cta__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 11px;
}

.ro-cta .page-button-secondary {
    border-color: #FFFFFF;
    background: transparent;
    color: #FFFFFF;
}

.ro-cta .page-button-secondary:hover,
.ro-cta .page-button-secondary:focus-visible {
    border-color: #FFFFFF;
    background: #FFFFFF;
    color: var(--fpp-ink);
}

@keyframes ro-workspace-enter {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .ro-what-is__sequence {
        grid-template-columns: repeat(3, 1fr);
    }

    .ro-diagnostics__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ro-diagnostics__grid button:nth-child(4),
    .ro-diagnostics__grid button:nth-child(5) {
        min-height: 200px;
    }

    .ro-chemistry__primary button {
        min-height: 86px;
    }
}

@media (max-width: 820px) {
    .ro-what-is,
    .ro-diagnostics,
    .ro-selection,
    .ro-products,
    .ro-faq,
    .ro-documents {
        padding: 70px 0;
    }

    .ro-chemistry__primary {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }

    .ro-chemistry__primary button {
        min-width: 205px;
        border-right: 1px solid var(--fpp-line);
        scroll-snap-align: start;
    }

    .ro-workspace__programme {
        grid-template-columns: 195px minmax(0, 1fr);
    }

    .ro-workspace__topics {
        padding: 18px 0;
    }

    .ro-workspace__topics button,
    .ro-workspace__category {
        padding-right: 17px;
        padding-left: 17px;
    }

    .ro-selection__groups,
    .ro-documents__grid {
        grid-template-columns: 1fr;
    }

    .ro-products__supporting {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .ro-what-is__sequence,
    .ro-diagnostics__grid,
    .ro-content-groups,
    .ro-products__grid,
    .ro-faq__grid {
        grid-template-columns: 1fr;
    }

    .ro-what-is__sequence article,
    .ro-diagnostics__grid button {
        min-height: 0;
    }

    .ro-what-is__sequence article:not(:last-child)::after {
        right: 20px;
        bottom: -12px;
        transform: rotate(90deg);
    }

    .ro-workspace__programme {
        display: block;
    }

    .ro-workspace__topics {
        overflow-x: auto;
        padding: 0;
        border-bottom: 1px solid var(--fpp-line);
        white-space: nowrap;
    }

    .ro-workspace__category {
        padding: 18px 18px 8px;
    }

    .ro-workspace__topics > div {
        display: flex;
    }

    .ro-workspace__topics button {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        width: auto;
        min-width: max-content;
        min-height: 48px;
        padding: 12px 18px;
        border-left: 0;
        border-bottom: 3px solid transparent;
    }

    .ro-workspace__topics button:hover,
    .ro-workspace__topics button:focus-visible,
    .ro-workspace__topics button.is-active {
        border-bottom-color: var(--fpp-olive);
        border-left-color: transparent;
    }

    .ro-workspace__content {
        padding: 26px 19px;
    }

    .ro-workspace__panel h3 {
        font-size: clamp(1.75rem, 9vw, 2.45rem);
    }

    .ro-flow {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ro-flow li {
        justify-content: space-between;
    }

    .ro-flow li:not(:last-child)::after {
        margin-left: auto;
        transform: rotate(90deg);
    }

    .ro-cta__actions,
    .ro-cta__actions .page-button {
        width: 100%;
    }

    .ro-cta__actions .page-button {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ro-chemistry__primary button,
    .ro-workspace__topics button,
    .ro-diagnostics__grid button,
    .ro-diagnostics__grid button b,
    .ro-chemistry__primary button b,
    .ro-workspace__panel {
        animation: none;
        transition: none;
    }
}
