.centre-column {
    position: relative;
}

.chatty-breadcrumb {
    position: absolute;
    z-index: 8;
    top: clamp(6px, 0.85vh, 11px);
    left: 0;
    right: 0;
    max-width: 100%;
    color: #fff;
    font-family: inherit;
    font-size: clamp(12px, 1.55vh, 15px);
    line-height: 1.35;
}

.chatty-breadcrumb[hidden] {
    display: none;
}

.chatty-breadcrumb__list {
    display: flex;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
}

.chatty-breadcrumb__item {
    display: inline-flex;
    min-width: 0;
    align-items: center;
}

.chatty-breadcrumb__item + .chatty-breadcrumb__item::before {
    content: "\203A";
    margin: 0 0.48em;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.18em;
    line-height: 1;
}

.chatty-breadcrumb__label,
.chatty-breadcrumb__link {
    color: rgba(255, 255, 255, 0.82);
    font: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.chatty-breadcrumb__link {
    appearance: none;
    margin: -5px;
    padding: 5px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
}

.chatty-breadcrumb__link:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.chatty-breadcrumb__link:focus-visible {
    color: #fff;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.chatty-breadcrumb__item[aria-current="page"] .chatty-breadcrumb__label {
    color: #fff;
    font-weight: 600;
}

.centre-column.chatty-breadcrumb-active > .page_title {
    box-sizing: border-box;
    padding-top: clamp(17px, 2.15vh, 25px);
}

/* Modern activities already contain their own task heading and instruction.
   Keep the header row for the breadcrumb without repeating the old compound title. */
.centre-column.chatty-breadcrumb-active.chatty-breadcrumb-activity > .page_title {
    visibility: hidden;
}

@media (max-width: 760px) {
    .chatty-breadcrumb {
        font-size: 12px;
    }

    .chatty-breadcrumb__list {
        row-gap: 2px;
    }

    .chatty-breadcrumb__item + .chatty-breadcrumb__item::before {
        margin-inline: 0.34em;
    }

    .chatty-breadcrumb__label,
    .chatty-breadcrumb__link {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chatty-breadcrumb__link {
        scroll-behavior: auto;
    }
}
