/* DreamCode Legend Header 1.0.0 — all selectors scoped to the widget root. */
.dc-lg-header {
    --dc-lg-background: #f2e5d4;
    --dc-lg-ink: #2e1e0f;
    --dc-lg-brand-color: var(--dc-lg-ink);
    --dc-lg-brand-hover: #755336;
    --dc-lg-context-color: var(--dc-lg-ink);
    --dc-lg-link-color: var(--dc-lg-ink);
    --dc-lg-link-hover: #755336;
    --dc-lg-link-active: var(--dc-lg-ink);
    --dc-lg-dropdown-bg: #f2e5d4;
    --dc-lg-mobile-bg: #f2e5d4;
    --dc-lg-toggle-color: var(--dc-lg-ink);
    --dc-lg-toggle-hover: #755336;
    --dc-lg-cta-bg: #2e1e0f;
    --dc-lg-cta-bg-hover: #513521;
    --dc-lg-cta-bg-active: #1c1109;
    --dc-lg-cta-color: #e9dccb;
    --dc-lg-cta-color-hover: #fff4e4;
    --dc-lg-cta-color-active: #fff4e4;
    --dc-lg-header-height: 88px;
    --dc-lg-max-width: 1600px;
    --dc-lg-cta-height: 40px;
    --dc-lg-cta-icon-gap: 8px;
    --dc-lg-nav-gap: 26px;
    --dc-lg-segment-gap: 24px;
    --dc-lg-menu-icon-size: 16px;
    position: relative;
    isolation: isolate;
    z-index: 20;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    color: var(--dc-lg-ink);
    background: var(--dc-lg-background);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.4;
    box-sizing: border-box;
}
.dc-lg-header *,
.dc-lg-header *::before,
.dc-lg-header *::after { box-sizing: border-box; }
.dc-lg-header--coffee,
.dc-lg-header--internal {
    --dc-lg-background: #e9dccb;
    --dc-lg-dropdown-bg: #e9dccb;
    --dc-lg-mobile-bg: #e9dccb;
}
.dc-lg-header--coffee { --dc-lg-nav-gap: 16px; }
.dc-lg-header--internal {
    --dc-lg-nav-gap: 24px;
    --dc-lg-cta-height: 48px;
}
.dc-lg-header--sticky { position: sticky; top: 0; z-index: 100; }
.dc-lg-header__inner {
    display: grid;
    grid-template-columns: var(--dc-lg-brand-column, 140px) minmax(0, 1fr);
    align-items: center;
    width: 100%;
    max-width: var(--dc-lg-max-width);
    min-height: var(--dc-lg-header-height);
    min-width: 0;
    margin-inline: auto;
    padding: 0 clamp(16px, 5.5556vw, 80px);
    gap: 0;
}
.dc-lg-header__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.dc-lg-header a.dc-lg-header__brand {
    display: inline-flex;
    flex: 0 0 auto;
    justify-self: start;
    align-items: center;
    width: auto;
    min-height: 44px;
    max-width: 100%;
    color: var(--dc-lg-brand-color);
    text-decoration: none;
    background: none;
    transition: color 180ms ease;
}
.dc-lg-header a.dc-lg-header__brand:hover,
.dc-lg-header a.dc-lg-header__brand:focus-visible { color: var(--dc-lg-brand-hover); }
.dc-lg-header__wordmark {
    display: block;
    flex: 0 0 auto;
    width: 96px;
    height: 12px;
    max-width: 100%;
    background-color: currentColor;
    -webkit-mask: url('../svg/legend-group-wordmark.svg') center / contain no-repeat;
    mask: url('../svg/legend-group-wordmark.svg') center / contain no-repeat;
}
.dc-lg-header--coffee .dc-lg-header__wordmark {
    width: 101px;
    -webkit-mask-image: url('../svg/legend-coffee-wordmark.svg');
    mask-image: url('../svg/legend-coffee-wordmark.svg');
}
.dc-lg-header__logo-image {
    display: block;
    width: auto;
    max-width: min(210px, 100%);
    max-height: 60px;
    height: auto;
    object-fit: contain;
}
.dc-lg-header__brand-text {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .01em;
    overflow-wrap: anywhere;
}
.dc-lg-header__context {
    display: none;
    color: var(--dc-lg-context-color);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    line-height: 1.45;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.dc-lg-header__navigation {
    min-width: 0;
    justify-self: center;
    display: flex;
    align-items: center;
    width: 100%;
}
.dc-lg-header__menu,
.dc-lg-header__dropdown-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.dc-lg-header__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    margin-inline: auto;
    gap: var(--dc-lg-nav-gap);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}
.dc-lg-header--internal .dc-lg-header__menu { font-size: 15.5px; }
.dc-lg-header__menu-item { min-width: 0; flex: 0 1 auto; }
.dc-lg-header .dc-lg-header__menu-link,
.dc-lg-header .dc-lg-header__menu-label,
.dc-lg-header .dc-lg-header__dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    max-width: 100%;
    padding: 0;
    background: none;
    background-image: none;
    border: 0;
    color: var(--dc-lg-link-color);
    font: inherit;
    line-height: inherit;
    text-decoration: none;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: color 180ms ease;
}
.dc-lg-header .dc-lg-header__menu-link:hover,
.dc-lg-header .dc-lg-header__menu-link:focus-visible,
.dc-lg-header .dc-lg-header__dropdown-trigger:hover,
.dc-lg-header .dc-lg-header__dropdown-trigger:focus-visible,
.dc-lg-header .dc-lg-header__dropdown[open] > .dc-lg-header__dropdown-trigger {
    color: var(--dc-lg-link-hover);
}
.dc-lg-header .dc-lg-header__menu-link:active,
.dc-lg-header .dc-lg-header__dropdown-trigger:active,
.dc-lg-header .dc-lg-header__menu-link.is-current,
.dc-lg-header .dc-lg-header__menu-link[aria-current="page"] {
    color: var(--dc-lg-link-active);
}
.dc-lg-header .dc-lg-header__menu-link.is-current,
.dc-lg-header .dc-lg-header__menu-link[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.dc-lg-header--internal .dc-lg-header__menu-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.dc-lg-header__menu-icon,
.dc-lg-header__cta-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: inherit;
    line-height: 1;
}
.dc-lg-header__menu-icon,
.dc-lg-header__menu-icon svg,
.dc-lg-header__menu-icon i { width: var(--dc-lg-menu-icon-size); height: var(--dc-lg-menu-icon-size); font-size: var(--dc-lg-menu-icon-size); }
.dc-lg-header__menu-icon svg,
.dc-lg-header__cta-icon svg { display: block; }
.dc-lg-header__dropdown { position: relative; }
.dc-lg-header .dc-lg-header__dropdown-trigger {
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}
.dc-lg-header__dropdown-trigger::-webkit-details-marker { display: none; }
.dc-lg-header__dropdown-trigger::marker { content: ''; }
.dc-lg-header__chevron {
    display: block;
    flex: 0 0 auto;
    width: var(--dc-lg-menu-icon-size);
    height: var(--dc-lg-menu-icon-size);
    transition: transform 180ms ease;
}
.dc-lg-header__dropdown[open] .dc-lg-header__chevron { transform: rotate(180deg); }
.dc-lg-header__dropdown-list {
    position: absolute;
    z-index: 30;
    top: 100%;
    left: -16px;
    min-width: max(260px, 100%);
    max-width: min(380px, 80vw);
    padding: 9px;
    background: var(--dc-lg-dropdown-bg);
    box-shadow: 0 8px 24px rgb(46 30 15 / 15%);
    border: 1px solid rgb(46 30 15 / 10%);
    animation: dc-lg-disclose-in 180ms ease both;
}
.dc-lg-header__dropdown-list li { min-width: 0; }
.dc-lg-header .dc-lg-header__dropdown-link,
.dc-lg-header .dc-lg-header__dropdown-label {
    display: block;
    padding: 12px 14px;
    color: var(--dc-lg-link-color);
    background: none;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: normal;
    transition: color 180ms ease, background-color 180ms ease;
}
.dc-lg-header .dc-lg-header__dropdown-link:hover,
.dc-lg-header .dc-lg-header__dropdown-link:focus-visible {
    color: var(--dc-lg-link-hover);
    background: rgb(46 30 15 / 7%);
}
.dc-lg-header__nav-cta { display: flex; align-items: center; justify-content: end; flex: 0 0 auto; }
.dc-lg-header__toggle { display: none; }
.dc-lg-header .dc-lg-header__cta,
.dc-lg-header a.dc-lg-header__cta,
.dc-lg-header span.dc-lg-header__cta {
    appearance: none;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: var(--dc-lg-cta-icon-gap);
    min-height: var(--dc-lg-cta-height);
    max-width: min(100%, 320px);
    padding: 0 20px;
    background: var(--dc-lg-cta-bg);
    background-image: none;
    border: 0 solid transparent;
    border-radius: 0;
    box-shadow: none;
    color: var(--dc-lg-cta-color);
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.4;
    text-decoration: none;
    text-transform: none;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.dc-lg-header .dc-lg-header__cta:not(.dc-lg-header__cta--unlinked):hover,
.dc-lg-header .dc-lg-header__cta:not(.dc-lg-header__cta--unlinked):focus-visible {
    color: var(--dc-lg-cta-color-hover);
    background: var(--dc-lg-cta-bg-hover);
    background-image: none;
    text-decoration: none;
}
.dc-lg-header .dc-lg-header__cta:not(.dc-lg-header__cta--unlinked):active {
    color: var(--dc-lg-cta-color-active);
    background: var(--dc-lg-cta-bg-active);
    background-image: none;
    transform: translateY(1px);
}
.dc-lg-header .dc-lg-header__cta--unlinked { cursor: default; }
.dc-lg-header__cta-icon svg { width: 1em; height: 1em; }
.dc-lg-header--internal .dc-lg-header__inner {
    display: flex;
    justify-content: flex-start;
    gap: 0;
}
.dc-lg-header--internal .dc-lg-header__brand { flex: 0 0 auto; }
.dc-lg-header--internal .dc-lg-header__context {
    display: block;
    flex: 0 0 auto;
    width: var(--dc-lg-context-width, 174px);
    margin-left: 64px;
    margin-right: 50px;
}
.dc-lg-header--wellness .dc-lg-header__context {
    width: var(--dc-lg-context-width, 136px);
    margin-right: 88px;
}
.dc-lg-header--internal .dc-lg-header__navigation { flex: 0 1 auto; width: auto; }
.dc-lg-header--internal .dc-lg-header__menu { margin-inline: 0; }
.dc-lg-header--internal .dc-lg-header__nav-cta { flex: 0 0 auto; margin-left: var(--dc-lg-segment-gap); }
.dc-lg-header--internal .dc-lg-header__cta { padding-inline: 24px; }
.dc-lg-header--academy { --dc-lg-segment-gap: 23px; }
.dc-lg-header--wellness { --dc-lg-segment-gap: 25px; }
.dc-lg-header--academy a.dc-lg-header__cta, .dc-lg-header--academy span.dc-lg-header__cta { padding-inline: 21.5px; }
.dc-lg-header--wellness a.dc-lg-header__cta, .dc-lg-header--wellness span.dc-lg-header__cta { padding-inline: 25px; }
.dc-lg-header :is(a,button,summary):focus-visible { outline: 2px solid var(--dc-lg-link-hover); outline-offset: 4px; }
@keyframes dc-lg-disclose-in {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1439px) and (min-width: 1200px) {
    .dc-lg-header--coffee { --dc-lg-nav-gap: clamp(11px, 1.25vw, 18px); }
    .dc-lg-header--coffee .dc-lg-header__inner { grid-template-columns: clamp(108px, 10.3vw, 140px) minmax(0, 1fr); }
    .dc-lg-header--coffee .dc-lg-header__menu { font-size: clamp(14px, 1.12vw, 16px); }
}
@media (max-width: 1199px) {
    .dc-lg-header,
    .dc-lg-header--internal { --dc-lg-header-height: 72px; }
    .dc-lg-header__inner,
    .dc-lg-header--internal .dc-lg-header__inner {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        min-height: var(--dc-lg-header-height);
        padding-inline: clamp(18px, 4vw, 38px);
    }
    .dc-lg-header--internal .dc-lg-header__context,
    .dc-lg-header--wellness .dc-lg-header__context {
        display: block;
        flex: 0 1 280px;
        width: auto;
        max-width: 280px;
        margin: 0 auto 0 0;
        font-size: 12px;
    }

    .dc-lg-header .dc-lg-header__toggle {
        display: inline-flex;
        position: relative;
        align-items: center;
        justify-content: center;
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        min-width: 48px;
        margin-left: auto;
        padding: 0;
        appearance: none;
        border: 1px solid transparent;
        border-radius: 0;
        background: none;
        background-image: none;
        box-shadow: none;
        color: var(--dc-lg-toggle-color);
        cursor: pointer;
        transition: color 180ms ease, background-color 180ms ease;
    }
    .dc-lg-header .dc-lg-header__toggle:hover,
    .dc-lg-header .dc-lg-header__toggle:focus-visible,
    .dc-lg-header .dc-lg-header__toggle[aria-expanded="true"] { color: var(--dc-lg-toggle-hover); background: rgb(46 30 15 / 6%); }
    .dc-lg-header__toggle svg { width: 24px; height: 24px; }
    .dc-lg-header .dc-lg-header__navigation {
        position: absolute;
        z-index: 40;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        width: 100%;
        max-height: min(calc(100dvh - 72px), 720px);
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        padding: 12px clamp(18px, 4vw, 38px) 24px;
        background: var(--dc-lg-mobile-bg);
        box-shadow: 0 12px 20px rgb(46 30 15 / 14%);
        border-top: 1px solid rgb(46 30 15 / 10%);
    }
    .dc-lg-header.dc-lg-header--open .dc-lg-header__navigation {
        display: block;
        animation: dc-lg-disclose-in 180ms ease both;
    }
    .dc-lg-header__menu,
    .dc-lg-header--internal .dc-lg-header__menu { display: flex; flex-direction: column; align-items: stretch; justify-content: start; gap: 0; width:100%; margin:0; font-size: 16px; }
    .dc-lg-header__menu-item { flex: 0 1 auto; width: 100%; max-width: 100%; border-bottom: 1px solid rgb(46 30 15 / 11%); }
    .dc-lg-header .dc-lg-header__menu-link,
    .dc-lg-header .dc-lg-header__menu-label,
    .dc-lg-header .dc-lg-header__dropdown-trigger {
        display: flex;
        width: 100%;
        min-height: 52px;
        padding-block: 10px;
        font-size: inherit;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .dc-lg-header .dc-lg-header__dropdown-trigger { justify-content: space-between; }
    .dc-lg-header__dropdown-list {
        position: static;
        min-width: 0;
        max-width: 100%;
        margin-bottom: 9px;
        padding: 2px 0 8px 12px;
        border: none;
        border-left: 2px solid rgb(46 30 15 / 20%);
        box-shadow: none;
    }
    .dc-lg-header__nav-cta,
    .dc-lg-header--internal .dc-lg-header__nav-cta { display: flex; justify-content: flex-start; margin: 20px 0 0; }
    .dc-lg-header .dc-lg-header__nav-cta .dc-lg-header__cta { min-height: 48px; width: auto; max-width: 100%; padding-inline: 24px; white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 767px) {
    .dc-lg-header,
    .dc-lg-header--internal { --dc-lg-header-height: 68px; }
    .dc-lg-header__inner,
    .dc-lg-header--internal .dc-lg-header__inner { padding-inline: clamp(16px, 4vw, 24px); }
    .dc-lg-header--internal .dc-lg-header__inner {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0 12px;
        padding-block: 10px;
    }
    .dc-lg-header--internal .dc-lg-header__brand { order: 0; }
    .dc-lg-header--internal .dc-lg-header__toggle { order: 1; }
    .dc-lg-header--internal .dc-lg-header__context,
    .dc-lg-header--wellness .dc-lg-header__context {
        order: 2;
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0;
        padding: 3px 0 0;
        font-size: 11px;
        letter-spacing: .085em;
        line-height: 1.4;
    }
    .dc-lg-header__navigation { max-height: min(calc(100dvh - 68px), 720px); }
    .dc-lg-header--internal .dc-lg-header__navigation { max-height: min(calc(100dvh - 95px), 720px); }
    .dc-lg-header__menu-item { min-width: 0; }
}
@media (max-width: 359px) {
    .dc-lg-header__wordmark { max-width: 96px; }
    .dc-lg-header__logo-image { max-width: 160px; }
    .dc-lg-header__menu { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .dc-lg-header *,
    .dc-lg-header *::before,
    .dc-lg-header *::after {
        animation-duration: .01ms;
        animation-iteration-count: 1;
        transition-duration: .01ms;
        scroll-behavior: auto;
    }
}
/* Faithfully retain typography outlines from the two supplied compact reference SVGs. */
.dc-lg-header__context-mark {
    display: block;
    width: 100%;
    height: 28px;
    background-color: currentColor;
    -webkit-mask: url('../svg/legend-academy-context.svg') left center / contain no-repeat;
    mask: url('../svg/legend-academy-context.svg') left center / contain no-repeat;
}
.dc-lg-header--wellness .dc-lg-header__context-mark {
    -webkit-mask-image: url('../svg/legend-wellness-context.svg');
    mask-image: url('../svg/legend-wellness-context.svg');
}
.dc-lg-header__context-image {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 54px;
    object-fit: contain;
    object-position: left center;
}
@media (max-width: 1199px) {
    .dc-lg-header__context-mark { max-width: 174px; }
    .dc-lg-header--wellness .dc-lg-header__context-mark { max-width: 136px; }
}
@media (max-width: 767px) {
    .dc-lg-header__context-mark { height: 28px; }
}

/* A deliberate opt-in for monochrome icon replacements. Original multicolor SVGs stay untouched. */
.dc-lg-header__icon--mono svg [fill]:not([fill="none"]) { fill: currentColor; }
.dc-lg-header__icon--mono svg [stroke]:not([stroke="none"]) { stroke: currentColor; }
.dc-lg-header__icon--mono svg path:not([fill]):not([stroke]),
.dc-lg-header__icon--mono svg circle:not([fill]):not([stroke]) { fill: currentColor; }

.dc-lg-header__cta-icon svg, .dc-lg-header__cta-icon i {
    width: var(--dc-lg-cta-icon-size, 16px);
    height: var(--dc-lg-cta-icon-size, 16px);
    font-size: var(--dc-lg-cta-icon-size, 16px);
}
/* Long editor content must shrink/wrap instead of forcing the document wider. */
@media (min-width: 1200px) {
    .dc-lg-header__navigation { min-width: 0; max-width: 100%; }
    .dc-lg-header__menu { flex: 1 1 auto; min-width: 0; }
    .dc-lg-header__menu-item { min-width: 0; max-width: 100%; }
    .dc-lg-header__menu-link > span,
    .dc-lg-header__menu-label > span,
    .dc-lg-header__dropdown-trigger > span { min-width: 0; overflow-wrap: anywhere; }
    .dc-lg-header__nav-cta { flex: 0 1 auto; min-width: 0; max-width: min(320px, 30%); }
    .dc-lg-header .dc-lg-header__cta { min-width: 0; }
    .dc-lg-header__cta > span { min-width: 0; overflow-wrap: anywhere; }
    .dc-lg-header--internal .dc-lg-header__menu { flex: 1 1 auto; }
}
