/* Breadcrumbs. Lines up with the mixed-content-2 content edge (86px) so it clears the
   In This Section tab, which sits in the left margin below the hero. 1rem = 10px here. */
.xd-breadcrumbs-module {
    /* The In This Section module above sits at z-index 20 and its wrapper reaches down over this row;
       stay above it, but only the crumbs take the pointer so the tab beside them still works. */
    position: relative;
    z-index: 21;
    width: 100%;
    margin: 0;
    padding: 28px 86px 0;
    text-align: left;
    pointer-events: none;
}

.xd-breadcrumbs-module__list {
    pointer-events: auto;
}

.xd-breadcrumbs-module__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: "Work Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.xd-breadcrumbs-module__item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #6b6475;
}

.xd-breadcrumbs-module__item:not(:first-child)::before {
    content: '';
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-top: 2px solid #c3bcc9;
    border-right: 2px solid #c3bcc9;
    transform: rotate(45deg);
}

.xd-breadcrumbs-module .xd-breadcrumbs-module__item a {
    color: #592b8a;
    text-decoration: none;
}

.xd-breadcrumbs-module .xd-breadcrumbs-module__item a:hover,
.xd-breadcrumbs-module .xd-breadcrumbs-module__item a:focus-visible {
    text-decoration: underline;
}

.xd-breadcrumbs-module__item a:focus-visible {
    outline: 2px solid #4b2a7f;
    outline-offset: 3px;
    border-radius: 2px;
}

.xd-breadcrumbs-module__item--current {
    color: #28123f;
    font-weight: 700;
}

/* Collapsed trail: everything above the parent page hides behind "…", which opens and closes it
   (breadcrumbs.js). Hidden crumbs keep their place in the row at zero width and slide in and out. */
.xd-breadcrumbs-module--collapsible .xd-breadcrumbs-module__item--hidden,
.xd-breadcrumbs-module--collapsible .xd-breadcrumbs-module__item--toggle {
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.35s ease, opacity 0.25s ease, margin-left 0.35s ease, visibility 0s linear;
}

.xd-breadcrumbs-module--collapsible .xd-breadcrumbs-module__item--hidden {
    max-width: 0;
    margin-left: -10px;
    opacity: 0;
    visibility: hidden;
    transition-delay: 0s, 0s, 0s, 0.35s;
}

.xd-breadcrumbs-module--collapsible .xd-breadcrumbs-module__item--toggle {
    max-width: 4em;
}

.xd-breadcrumbs-module--collapsible.is-expanded .xd-breadcrumbs-module__item--hidden {
    max-width: 30em;
    margin-left: 0;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
    .xd-breadcrumbs-module--collapsible .xd-breadcrumbs-module__item,
    .xd-breadcrumbs-module--collapsible .xd-breadcrumbs-module__item::before {
        transition: none !important;
    }
}

.xd-breadcrumbs-module__toggle {
    padding: 0 8px;
    border: 0;
    border-radius: 4px;
    background: #f5f2fb;
    color: #592b8a;
    font: inherit;
    line-height: 1.6;
    cursor: pointer;
}

/* The theme paints a focused button blue; the toggle keeps focus after a click, so restate its own colours. */
.xd-breadcrumbs-module .xd-breadcrumbs-module__toggle,
.xd-breadcrumbs-module .xd-breadcrumbs-module__toggle:focus,
.xd-breadcrumbs-module .xd-breadcrumbs-module__toggle:active {
    border: 0;
    box-shadow: none;
    background: #f5f2fb;
    color: #592b8a;
}


.xd-breadcrumbs-module.is-expanded .xd-breadcrumbs-module__toggle,
.xd-breadcrumbs-module.is-expanded .xd-breadcrumbs-module__toggle:focus,
.xd-breadcrumbs-module.is-expanded .xd-breadcrumbs-module__toggle:active {
    background: #592b8a;
    color: #ffffff;
}

/* Brand gold on hover, open or closed. */
.xd-breadcrumbs-module .xd-breadcrumbs-module__toggle:hover,
.xd-breadcrumbs-module.is-expanded .xd-breadcrumbs-module__toggle:hover {
    background: #efbb47;
    color: #28123f;
}

.xd-breadcrumbs-module__toggle:focus-visible {
    outline: 2px solid #4b2a7f;
    outline-offset: 3px;
}

@media (max-width: 991px) {
    .xd-breadcrumbs-module {
        padding: 22px 28px 0;
    }
}

@media (max-width: 575px) {
    .xd-breadcrumbs-module {
        padding: 18px 20px 0;
    }

    /* Expanded on a phone: one level per line, text lined up past the chevrons, like a small outline. */
    .xd-breadcrumbs-module.is-expanded .xd-breadcrumbs-module__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .xd-breadcrumbs-module__list {
        gap: 8px;
        font-size: 13px;
    }

    .xd-breadcrumbs-module__item {
        gap: 8px;
    }

    /* Hidden crumbs pull back exactly one gap each; at 10px against this 8px gap they dragged the
       next chevron into the "…" button, 2px per hidden level. */
    .xd-breadcrumbs-module--collapsible .xd-breadcrumbs-module__item--hidden {
        margin-left: -8px;
    }
}

/* Trail at the top of a Gutenberg page's content (programs, Level 4 pages): it sits in the content column,
   so it starts at the text's left edge and leaves room before the first heading. After the breakpoints so
   it wins at every width. */
.xd-breadcrumbs-module.xd-breadcrumbs-module--in-content {
    padding: 0 0 28px;
}

/* Phones: the heading right after the trail drops its own top space, so the gap below the trail matches the gap above it. */
@media (max-width: 767px) {
    .xd-breadcrumbs-module--in-content + h2,
    .xd-breadcrumbs-module--in-content + h3 {
        margin-top: 0;
        padding-top: 0;
    }
}
