.matilde-chart-publications-research {
    width: 100%;
    margin: 24px 0;
}

.matilde-chart-publications-research__inner {
    background: transparent;
    border-radius: 14px;
    padding: 24px 20px;
    overflow-x: auto;
}

.matilde-chart-publications-research__chart {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.matilde-chart-publications-research__grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: transparent;
    border-radius: 12px;
}

.matilde-chart-publications-research__mobile-hint {
    display: none;
    margin: 0;
    color: #ffffff;
    font-family: "Source Sans 3", sans-serif;
    font-size: 12px;
    line-height: 1;
    text-align: center;
}

@keyframes matilde-chart-mobile-hint-pulse {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(4px);
    }

    100% {
        transform: translateX(0);
    }
}

.matilde-chart-publications-research__extra-rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.matilde-chart-publications-research__row {
    display: grid;
    grid-template-columns: 150px repeat(7, minmax(82px, 1fr));
    align-items: center;
}

.matilde-chart-publications-research__header {
    margin-bottom: 6px;
    padding-top: 20px;
}

.matilde-chart-publications-research__label,
.matilde-chart-publications-research__stage-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.matilde-chart-publications-research__label {
    color: #ffffff;
    font-size: 2rem;
    font-family: "Source Sans 3", sans-serif;
    font-weight: 500;
    line-height: 1;
    text-align: right;
}

.matilde-chart-publications-research__label--header {
    font-size: 0;
}

.matilde-chart-publications-research__stage-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-family: "Source Sans 3", sans-serif;
    font-weight: 500;
    text-align: center;
}

.matilde-chart-publications-research__stage {
    position: relative;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.matilde-chart-publications-research__stage::before,
.matilde-chart-publications-research__stage::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 50%;
    height: 4px;
    transform: translateY(-50%);
    z-index: 1;
}

.matilde-chart-publications-research__stage::before {
    left: 0;
}

.matilde-chart-publications-research__stage::after {
    right: 0;
}

.matilde-chart-publications-research__stage.is-first::before,
.matilde-chart-publications-research__stage.is-last::after {
    display: none;
}

.matilde-chart-publications-research__stage::before,
.matilde-chart-publications-research__stage::after {
    background: #ffffff;
}

.matilde-chart-publications-research__line {
    position: absolute;
    top: 50%;
    width: 50%;
    height: 4px;
    background: #7d287f;
    transform: translateY(-50%) scaleX(1);
    z-index: 1;
    opacity: 1;
}

.matilde-chart-publications-research__line--left {
    left: -50%;
    width: 100%;
    transform-origin: left center;
}

.matilde-chart-publications-research__line--right {
    left: 50%;
    transform-origin: left center;
}

.matilde-chart-publications-research__line.is-hidden,
.matilde-chart-publications-research__line:not(.is-active) {
    opacity: 0;
}

.matilde-chart-publications-research.is-ready .matilde-chart-publications-research__line.is-active {
    transform: translateY(-50%) scaleX(0);
    transition: transform 420ms ease-out;
    transition-delay: var(--line-delay, 0ms);
}

.matilde-chart-publications-research.is-ready.is-animated .matilde-chart-publications-research__line.is-active {
    transform: translateY(-50%) scaleX(1);
}

.matilde-chart-publications-research__stage .node {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    border: 3px solid #7d287f;
    position: relative;
    z-index: 2;
}

.matilde-chart-publications-research__stage.is-done .node {
    background: #7d287f;
}

.matilde-chart-publications-research__stage.is-done .node::after {
    content: "✓";
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.matilde-chart-publications-research__stage.is-current .node {
    background: #ffffff;
    border-color: #ffffff;
}

.matilde-chart-publications-research__stage.is-current .node::after {
    content: "";
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #7d287f;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.matilde-chart-publications-research__stage.is-pending .node {
    background: #ffffff;
    border-color: #c0c0c0;
}

.matilde-chart-publications-research__rows-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 132px;
    height: 42px;
    margin: 18px auto 0;
    border: 2px solid #c5a95e;
    border-radius: 8px;
    background: #282828;
    color: #c5a95e;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.matilde-chart-publications-research__rows-toggle-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.matilde-chart-publications-research__rows-toggle:hover,
.matilde-chart-publications-research__rows-toggle:focus {
    outline: none;
}

.matilde-chart-publications-research__chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    margin-top: -2px;
}

.matilde-chart-publications-research.is-expanded .matilde-chart-publications-research__chevron {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.matilde-chart-publications-research.has-row-toggle .matilde-chart-publications-research__extra-rows {
    overflow-y: hidden;
    overflow-x: visible;
    opacity: 1;
    will-change: max-height, opacity;
    transition: max-height 0.42s ease, opacity 0.3s ease;
}

.matilde-chart-publications-research.has-row-toggle.is-collapsed .matilde-chart-publications-research__extra-rows {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {

    .matilde-chart-publications-research.is-ready .matilde-chart-publications-research__line.is-active,
    .matilde-chart-publications-research.is-ready.is-animated .matilde-chart-publications-research__line.is-active {
        transform: translateY(-50%) scaleX(1);
        transition: none;
    }

    .matilde-chart-publications-research.has-row-toggle .matilde-chart-publications-research__extra-rows {
        transition: none;
    }

    .matilde-chart-publications-research__chevron {
        transition: none;
    }
}

@media (max-width: 1100px) {
    .matilde-chart-publications-research__rows-toggle {
        display: none;
    }

    .matilde-chart-publications-research__grid{
        background: #262566;
        border-radius: 12px;
        gap: 0;
        padding-bottom: 20px;
    }
    .matilde-chart-publications-research__label {
        font-size: 16px;
    }

    .matilde-chart-publications-research__stage-title {
        font-size: 12px;
        /* transform: rotate(-45deg); */
    }

    .matilde-chart-publications-research__stage .node{
        width: 28px;
        height: 28px;
        border-width: 2px;
    }
    .matilde-chart-publications-research__stage.is-done .node::after{
        font-size: 16px;
    }

    .matilde-chart-publications-research__inner{
        padding: 24px 0;
        background: #262566;
        border-radius: 12px;
    }
}

@media (max-width: 767px) {
    .matilde-chart-publications-research__inner {
        overflow-x: auto;
        padding: 0;
        border-radius: 12px;
        background: #262566;
    }

    .matilde-chart-publications-research__chart {
        min-width: 820px;
    }

    .matilde-chart-publications-research__mobile-hint {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 6px;
        width: fit-content;
        position: sticky;
        left: 20px;
        top: 20px;
        z-index: 10;
        border-radius: 999px;
        /* background: rgba(38, 37, 102, 0.9); */
        animation: matilde-chart-mobile-hint-pulse 2.5s ease-in-out infinite;
    }

    .matilde-chart-publications-research__row {
        grid-template-columns: 130px repeat(7, minmax(82px, 1fr));
    }

    .matilde-chart-publications-research__label {
        font-size: 16px;
        position: sticky;
        left: -1px;
        z-index: 5;
        background: #262566;
        padding-right: 8px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding-left: 20px;
        text-align: left;
    }

    .matilde-chart-publications-research__row--data.is-first-data-row .matilde-chart-publications-research__label {
        border-top-left-radius: 12px;
    }

    .matilde-chart-publications-research__row--data.is-last-data-row .matilde-chart-publications-research__label {
        border-bottom-left-radius: 12px;
    }

    .matilde-chart-publications-research__row--data.is-first-data-row .matilde-chart-publications-research__stage:last-child {
        border-top-right-radius: 12px;
    }

    .matilde-chart-publications-research__row--data.is-last-data-row .matilde-chart-publications-research__stage:last-child {
        border-bottom-right-radius: 12px;
    }

    .matilde-chart-publications-research__label::nth-child(1) {
        background: transparent;
    }

    .matilde-chart-publications-research__label--header {
        z-index: 6;
    }

    .matilde-chart-publications-research__stage {
        height: 40px;
    }

    .matilde-chart-publications-research__stage .node {
        width: 20px;
        height: 20px;
        border-width: 1px;
    }

    .matilde-chart-publications-research__stage.is-done .node::after {
        font-size: 12px;
    }

    .matilde-chart-publications-research__stage::before,
    .matilde-chart-publications-research__stage::after {
        height: 2px;
    }

    .matilde-chart-publications-research__stage.is-current .node::after {
        width: 12px;
        height: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .matilde-chart-publications-research__mobile-hint {
        animation: none;
    }
}