/* Compact the editorial highlights, including Groups inserted in earlier versions. */
.wp-block-group.exo-panel:has(> .wp-block-columns) {
    padding: clamp(16px, 2.2vw, 28px);
}

.wp-block-group.exo-panel:has(> .wp-block-columns) :is(h2, h3) {
    margin-block: 0 .45em;
}

.wp-block-group.exo-panel > .wp-block-columns {
    align-items: start;
    gap: clamp(16px, 2.5vw, 32px);
    margin-block: 1rem 0;
}

.wp-block-group.exo-panel > .wp-block-columns > .wp-block-column > :last-child {
    margin-block-end: 0;
}

.wp-block-columns:is(.exo-footer-contact,.exo-treatment-lead,.exo-treatment-options,.exo-treatment-research) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.8vw, 36px);
    margin: 0;
}

.wp-block-columns.exo-footer-contact {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .9fr) minmax(0, 1.05fr);
    gap: 12px;
}

.exo-footer-contact > .wp-block-column,
.exo-treatment-options > .wp-block-column,
.exo-treatment-research {
    min-width: 0;
    padding: clamp(20px, 3vw, 40px);
    border-radius: 14px;
    color: var(--ink, #0a4247);
    background: #fbf8f0;
    overflow-wrap: anywhere;
}

.exo-footer-contact > .exo-footer-funding {
    background: #e5efea;
}

.exo-footer-contact > .exo-footer-funding .wp-block-image img {
    max-width: 75%;
}

.exo-footer-contact > .wp-block-column:last-child {
    background: #fff;
}

.exo-footer-contact > .wp-block-column {
    padding: clamp(18px, 2vw, 30px);
}

:is(.exo-footer-contact,.exo-treatment) :is(h2,h3,p,li,a):not(.has-text-color) {
    color: inherit;
}

.exo-footer-contact > .wp-block-column > :is(h2, h3):first-child {
    margin: 0 0 .85rem;
    font-size: clamp(1.375rem, 2.2vw, 1.875rem);
    line-height: 1.2;
}

.exo-footer-contact > .wp-block-column > .wp-block-image {
    margin-block: 0 .8rem;
}

.exo-footer-contact > .wp-block-column > :last-child {
    margin-block-end: 0;
}

.exo-footer-contact > .wp-block-column:nth-child(2) > .wp-block-separator {
    margin: .75rem 0;
    border: 0;
    border-block-start: 1px solid #b9ceca;
    opacity: 1;
}

.exo-footer-contact > .wp-block-column:nth-child(2) {
    --exo-contact-home-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-7 9 7M5 9v12h5v-6h4v6h5V9'/%3E%3C/svg%3E");
    --exo-contact-email-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E");
}

.exo-footer-contact > .wp-block-column:nth-child(2) > :is(p:first-of-type:not(:has(a[href^="mailto:"])), p:has(a[href^="mailto:"])) {
    position: relative;
    padding-inline-start: 1.6rem;
}

.exo-footer-contact > .wp-block-column:nth-child(2) > :is(p:first-of-type:not(:has(a[href^="mailto:"])), p:has(a[href^="mailto:"]))::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: .25em;
    width: 1.1rem;
    height: 1.1rem;
    background: var(--ink, #0a4247);
    mask: var(--exo-contact-icon, var(--exo-contact-home-icon)) center / contain no-repeat;
}

.exo-footer-contact > .wp-block-column:nth-child(2) > p:has(a[href^="mailto:"]) {
    --exo-contact-icon: var(--exo-contact-email-icon);
}

.exo-footer-contact > .wp-block-column:nth-child(2) a:is(
    [href^="https://www.linkedin.com/" i],
    [href^="https://linkedin.com/" i]
)::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-inline-end: .45em;
    vertical-align: -.12em;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M3 0h18a3 3 0 0 1 3 3v18a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3zm5 9H5v10h3V9zm.3-3.2a1.8 1.8 0 1 0-3.6 0 1.8 1.8 0 0 0 3.6 0zM10 9v10h3v-5.3c0-2.6 3.5-2.8 3.5 0V19H20v-6.4c0-4.3-4.7-4.4-7-2.4V9h-3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.exo-footer-contact img {
    height: auto;
    max-width: 100%;
}

.site-footer .exo-footer-contact form :is(button[type=submit],input[type=submit]) {
    background: var(--ink, #0a4247);
    color: #fff;
}

.exo-treatment {
    display: grid;
    gap: clamp(18px, 2.4vw, 30px);
    overflow-wrap: anywhere;
}

.exo-treatment-lead, .exo-treatment-research {
    align-items: center;
}

.exo-treatment h2 {
    margin: 0 0 .5em;
}

.exo-treatment h3 {
    margin: 0 0 .65em;
    font-size: clamp(1.25rem, 2.1vw, 1.7rem);
}

.exo-treatment figure, .exo-treatment p, .exo-treatment ul {
    margin: 0;
}

.exo-treatment img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    height: auto;
    border-radius: 12px;
}

.exo-treatment-options > .wp-block-column {
    padding-block-start: clamp(18px, 2.6vw, 34px);
    border-top: 3px solid var(--accent, #c6993b);
}

.exo-treatment-options > .wp-block-column + .wp-block-column {
    background: #edf4f6;
}

.exo-treatment-options li + li {
    margin-block-start: .4em;
}

.exo-treatment-research {
    background: #e5efea;
}

.exo-treatment .exo-treatment-source {
    font-size: .88rem;
}

@media (max-width: 781px) {
    .wp-block-columns:is(.exo-footer-contact,.exo-treatment-lead,.exo-treatment-options,.exo-treatment-research) {
        grid-template-columns: minmax(0, 1fr);
    }
}

.exo-treatment-tabs {
    gap: clamp(16px, 2vw, 28px);
}

.exo-treatment-tabs > h2 {
    margin: 0;
}

.wp-block-columns.exo-treatment-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(24px, 4vw, 64px);
    margin: 0;
}

.exo-treatment-feature > .wp-block-column {
    min-width: 0;
}

.exo-treatment-visual {
    margin: 0;
}

.exo-treatment-visual img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.exo-treatment-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    width: fit-content;
    max-width: 100%;
    border: 1px solid #c8dada;
    border-radius: 10px;
    background: #edf4f6;
}

.exo-treatment-tablist button {
    min-height: 42px;
    padding: .6rem .9rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink, #0a4247);
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    text-align: start;
    cursor: pointer;
}

.exo-treatment-tablist button[aria-selected="true"] {
    background: var(--ink, #0a4247);
    color: #fff;
    box-shadow: inset 0 -3px var(--accent, #c6993b);
}

.exo-treatment-tablist button:focus-visible,
.exo-treatment-panel:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.exo-treatment-tablist button:focus-visible {
    outline-color: var(--ink, #0a4247);
}

.exo-treatment-tabs .wp-block-columns.exo-treatment-panel {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: clamp(22px, 5vw, 76px);
    margin: 0;
}

.exo-treatment-tabs .exo-treatment-panel[hidden],
.exo-treatment-panel h3[hidden] {
    display: none;
}

.exo-treatment-tabs .exo-treatment-tablist {
    margin-block-end: 1.25rem;
}

.exo-treatment.exo-treatment-tabs > .exo-treatment-tablist {
    margin-block-end: .25rem;
}

.exo-tabs-block .exo-treatment-tablist {
    margin-block-end: clamp(1rem, 2vw, 1.5rem);
}

.exo-treatment-panel > .wp-block-column {
    min-width: 0;
}

.exo-treatment-panel p + ul {
    margin-block-start: 1rem;
}

.exo-treatment-panel p + p {
    margin-block-start: .85rem;
}

.exo-tab-content > * + *,
.exo-treatment-panel :is(ul, ol) + p,
.exo-treatment p + .exo-treatment-tablist,
.exo-treatment p + .exo-tabs-block {
    margin-block-start: 1rem;
}

.exo-tabs-block .exo-tab-content > :first-child {
    margin-block-start: 0;
}

.exo-tabs-block .exo-tab-content > :last-child {
    margin-block-end: 0;
}

.exo-treatment-panel li + li {
    margin-block-start: .5em;
}

.exo-treatment-panel img {
    aspect-ratio: 4 / 3;
    object-position: 85% center;
}

.exo-treatment-panel:last-of-type img {
    object-position: center;
}

@media (max-width: 781px) {
    .wp-block-columns.exo-treatment-feature,
    .exo-treatment-tabs .wp-block-columns.exo-treatment-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .exo-treatment-panel img {
        aspect-ratio: 16 / 10;
    }
}

/* Quotations use the surrounding colours and keep long text at a reading size. */
:is(blockquote, .wp-block-quote, .wp-block-pullquote) {
    margin: 1.5rem 0;
    padding: .5rem 0 .5rem clamp(.85rem, 2vw, 1.25rem);
    border: 0;
    border-inline-start: 2px solid var(--accent, #c6993b);
    background: transparent;
    text-align: start;
    font-size: 1.0625rem;
    font-style: normal;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

:is(blockquote, .wp-block-quote, .wp-block-pullquote) p {
    margin: 0;
    font: inherit;
}

:is(blockquote, .wp-block-quote, .wp-block-pullquote) p + p {
    margin-block-start: .75em;
}

:is(blockquote, .wp-block-quote, .wp-block-pullquote) cite {
    display: block;
    margin-block-start: .65rem;
    font-size: .875rem;
    font-style: normal;
    font-weight: 600;
}

.wp-block-pullquote blockquote {
    margin: 0;
    padding: 0;
    border: 0;
}

/* Preserve earlier article highlights stored as an unattributed quote with a list. */
.wp-block-group.is-style-exo-editorial-highlight,
.exo-article > .exo-article-title + :is(blockquote, .wp-block-quote):has(> :is(ul, ol)):not(:has(cite)) {
    margin-block: 1.5rem;
    padding: .9rem 0;
    border: 0;
    border-block: 1px solid color-mix(in srgb, currentColor 20%, transparent);
    background: transparent;
    font-size: inherit;
    line-height: inherit;
}

.wp-block-group.is-style-exo-editorial-highlight > :first-child {
    margin-block-start: 0;
}

.wp-block-group.is-style-exo-editorial-highlight > :last-child {
    margin-block-end: 0;
}

:is(.wp-block-group.is-style-exo-editorial-highlight, .exo-article > .exo-article-title + :is(blockquote, .wp-block-quote):has(> :is(ul, ol)):not(:has(cite))) > :is(ul, ol) {
    padding-inline-start: 1.35rem;
}

.exo-article > .exo-article-title + :is(blockquote, .wp-block-quote):has(> :is(ul, ol)):not(:has(cite)) > :is(ul, ol) {
    margin: 0;
}

:is(.wp-block-group.is-style-exo-editorial-highlight, .exo-article > .exo-article-title + :is(blockquote, .wp-block-quote):has(> :is(ul, ol)):not(:has(cite))) > :is(ul, ol) > li + li {
    margin-block-start: .65rem;
}

.exo-article > .exo-article-title + :is(blockquote, .wp-block-quote):has(> :is(ul, ol)):not(:has(cite)) > :is(ul, ol) > li::marker {
    color: #8b651f;
    font-weight: 700;
}
