:root {
    --wfh-ink: #164550;
    --wfh-accent: #186273;
    --wfh-white: #ffffff;
    --wfh-line: #dbe6e4;
    --wfh-line-soft: #e7efed;
    --wfh-line-ink: rgba(22, 69, 80, 0.14);
    --wfh-surface: #f0f5f4;
    --wfh-mobile-bg: #e4edea;
    --wfh-line-strong: #c3d6d2;
    --wfh-media-backdrop: #306171;
    --wfh-tint: #dfece9;
    --wfh-muted: #5f6769;
    --wfh-muted-strong: #3d5f66;
    --wfh-muted-light: #9aa7aa;
    --wfh-disabled: #4a6f77;
    --wfh-google-bg: #f6f9f9;
    --wfh-star: #f5b400;
    --wfh-on-dark-line: rgba(255, 255, 255, 0.35);
    --wfh-on-dark-muted: rgba(255, 255, 255, 0.75);
    --wfh-dim: rgba(22, 69, 80, 0.45);
    --wfh-shadow: 0 24px 48px rgba(22, 69, 80, 0.16);
    --wfh-shadow-dropdown: 0 20px 40px rgba(22, 69, 80, 0.16);
    --wfh-shadow-sticky: 0 2px 10px rgba(22, 69, 80, 0.08);
    --wfh-font: Inter, sans-serif;
    --wfh-font-serif: var(--gp-font--tiempos-fine, Georgia, serif);
    --wfh-pill: 100px;
}

/* Base */

.wf-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: var(--wfh-font);
    color: var(--wfh-ink);
    background: var(--wfh-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-bar .wf-header {
    top: 32px;
}

.wf-header.is-scrolled {
    box-shadow: var(--wfh-shadow-sticky);
}

.wf-header.is-hidden {
    transform: translateY(-100%);
}

.wf-header *,
.wf-header *::before,
.wf-header *::after {
    box-sizing: border-box;
}

.wf-header ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wf-header p {
    margin: 0;
}

.wf-header a {
    color: inherit;
    text-decoration: none;
}

.wf-header button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.wf-header button:hover,
.wf-header button:focus {
    background: none;
}

.wf-header a:hover,
.wf-header button:hover {
    color: var(--wfh-accent);
}

.wf-header :focus-visible {
    outline: 2px solid var(--wfh-accent);
    outline-offset: 2px;
}

.wf-header .wf-icon {
    display: block;
    flex-shrink: 0;
}

.wf-header__container {
    width: min(1280px, 100% - 32px);
    margin-inline: auto;
}

.wf-header-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--wfh-dim);
}

.wf-header-overlay[hidden],
.wf-header [hidden] {
    display: none !important;
}

.wf-eyebrow {
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wf-badge {
    padding: 2px 8px;
    border-radius: var(--wfh-pill);
    background: var(--wfh-tint);
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    white-space: nowrap;
    color: var(--wfh-accent);
}

/* Top bar */

.wf-topbar {
    background: var(--wfh-ink);
    color: var(--wfh-white);
    font-size: 13px;
    line-height: 20px;
}

.wf-header .wf-topbar a,
.wf-header .wf-topbar a:hover {
    color: var(--wfh-white);
}

.wf-topbar__inner {
    height: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
}

.wf-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wf-rating__logo {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--wfh-google-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-rating__logo img {
    display: block;
    width: 13px;
    height: 13px;
}

.wf-rating__value {
    font-weight: 600;
}

.wf-rating__stars {
    display: flex;
    gap: 2px;
    color: var(--wfh-star);
}

.wf-utility {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 20px;
}

.wf-utility__item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wf-utility__item + .wf-utility__item::before {
    content: "";
    width: 1px;
    height: 14px;
    margin-right: 14px;
    background: var(--wfh-on-dark-line);
}

.wf-lang {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wf-header .wf-topbar .wf-lang__link {
    color: var(--wfh-on-dark-muted);
}

.wf-header .wf-topbar .wf-lang__link[aria-current] {
    font-weight: 600;
    color: var(--wfh-white);
}

.wf-topbar .wf-lang__separator {
    opacity: 0.5;
}

/* Main bar */

.wf-mainbar {
    position: relative;
    background: var(--wfh-white);
    border-bottom: 1px solid var(--wfh-line);
}

.wf-mainbar__inner {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.wf-logo {
    display: block;
    flex-shrink: 0;
}

.wf-logo__img {
    display: block;
    width: 262px;
    height: auto;
}

.wf-nav__list {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
}

.wf-header .wf-nav__link {
    height: 79px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 13px 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    color: var(--wfh-ink);
}

.wf-header .wf-nav__item.is-open > .wf-nav__link {
    color: var(--wfh-accent);
    border-bottom-color: var(--wfh-accent);
}

.wf-nav__item.is-open > .wf-nav__link .wf-icon,
.wf-header [aria-expanded="true"] > .wf-icon--chevron-down {
    transform: rotate(180deg);
}

.wf-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.wf-header .wf-icon-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wfh-ink);
}

.wf-cart-icon {
    position: relative;
    display: flex;
}

.wf-cart-count {
    position: absolute;
    top: -7px;
    left: 14px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 8.5px;
    background: var(--wfh-ink);
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    color: var(--wfh-white);
}

.wf-header .wf-cta {
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    margin-left: 4px;
    border-radius: var(--wfh-pill);
    background: var(--wfh-accent);
    box-shadow: 0 0 0 1.5px var(--wfh-white), 0 0 0 2.5px var(--wfh-accent), 0 0 0 4px var(--wfh-white), 0 0 0 5px var(--wfh-accent);
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
    white-space: nowrap;
    color: var(--wfh-white);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.wf-header .wf-cta:hover,
.wf-header .wf-cta:focus-visible,
.wf-header .wf-cta:active {
    background: var(--pt-secondary) !important;
    box-shadow: 0 0 0 1.5px var(--wfh-white), 0 0 0 2.5px var(--pt-secondary), 0 0 0 4px var(--wfh-white), 0 0 0 5px var(--pt-secondary);
    color: var(--pt-text-color);
}

.wf-header .wf-mobile-bar,
.wf-header .wf-mobile,
.wf-header .wf-cta--mobile {
    display: none;
}

/* Panels */

.wf-nav__item.is-dropdown {
    position: relative;
}

.wf-panel {
    position: absolute;
    top: 100%;
    z-index: 2;
    background: var(--wfh-white);
}

.wf-panel--mega {
    left: 50%;
    width: min(1320px, 100vw - 32px);
    padding: 36px 40px;
    border-radius: 0 0 24px 24px;
    box-shadow: var(--wfh-shadow);
    transform: translateX(-50%);
}

.wf-panel--dropdown {
    left: 0;
    width: 300px;
    padding: 10px 0;
    border-radius: 0 0 18px 18px;
    box-shadow: var(--wfh-shadow-dropdown);
}

.wf-mega__columns {
    display: flex;
    gap: 40px;
}

.wf-mega__column {
    flex: 0 1 auto;
    min-width: 150px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
}

.wf-mega__column--grid {
    max-width: none;
}

.wf-mega__heading {
    min-height: 51px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--wfh-line);
}

.wf-mega__description {
    padding-top: 4px;
    font-size: 13px;
    line-height: 18px;
    color: var(--wfh-muted);
}

.wf-link-list {
    font-size: 15px;
    line-height: 22px;
}

.wf-mega__column .wf-link-list {
    padding-top: 10px;
}

.wf-link-list--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(var(--wf-rows), auto);
    grid-auto-flow: column;
    column-gap: 24px;
}

.wf-menu-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 6px 0;
}

.wf-menu-link .wf-icon {
    color: var(--wfh-accent);
}

.wf-menu-link.is-disabled {
    color: var(--wfh-disabled);
}

.wf-menu-item.has-divider::before {
    content: "";
    display: block;
    margin: 4px 20px;
    border-top: 1px solid var(--wfh-line);
}

.wf-dropdown__list {
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
}

.wf-dropdown__list .wf-menu-link {
    gap: 12px;
    padding: 12px 20px;
}

/* Card */

.wf-card {
    flex: 1 0 280px;
    min-width: 0;
    padding: 14px;
    border-radius: 20px;
    background: var(--wfh-surface);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wf-card__media {
    border-radius: 14px;
    overflow: hidden;
}

.wf-card__media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: cover;
}

.wf-card__media--contain {
    background: var(--wfh-media-backdrop);
}

.wf-card__media--contain img {
    max-height: none;
    aspect-ratio: 384 / 160;
    object-fit: contain;
}

.wf-card__body {
    padding: 0 6px 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wf-card__eyebrow {
    color: var(--wfh-accent);
}

.wf-card__title {
    font-family: var(--wfh-font-serif);
    font-size: 26px;
    line-height: 32px;
}

.wf-card__text {
    font-size: 14px;
    line-height: 21px;
}

.wf-header .wf-button-outline {
    align-self: flex-start;
    height: 40px;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border: 1.5px solid var(--wfh-ink);
    border-radius: var(--wfh-pill);
    background: var(--wfh-white);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: var(--wfh-ink);
}

.wf-card .wf-button-outline {
    background: transparent;
}

/* Upcoming courses */

.wf-upcoming {
    margin: 28px 0 -8px;
    padding: 16px 20px 16px 16px;
    border-radius: 16px;
    background: var(--wfh-tint);
    display: flex;
    align-items: center;
    gap: 40px;
}

.wf-calendar-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wf-calendar-tile {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--wfh-accent);
    color: var(--wfh-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-calendar-link__title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
}

.wf-calendar-link__subtitle {
    display: block;
    font-size: 13px;
    line-height: 18px;
    color: var(--wfh-muted-strong);
}

.wf-course-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wf-course-link__text {
    display: flex;
    flex-direction: column;
}

.wf-course-link__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.wf-course-link__meta {
    font-size: 13px;
    line-height: 18px;
    color: var(--wfh-muted);
}

.wf-course-link .wf-icon {
    color: var(--wfh-accent);
}

.wf-header .wf-upcoming__all {
    height: 40px;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border-radius: var(--wfh-pill);
    background: var(--wfh-white);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    white-space: nowrap;
}

/* Longer French labels */

@media (min-width: 1280px) {
    html[lang^="fr"] .wf-logo__img {
        width: 220px;
    }

    html[lang^="fr"] .wf-nav__list {
        font-size: 14px;
    }

    html[lang^="fr"] .wf-header .wf-nav__link {
        padding-right: 8px;
        padding-left: 8px;
    }

    html[lang^="fr"] .wf-actions {
        gap: 12px;
    }

    html[lang^="fr"] .wf-header .wf-cta {
        padding: 0 18px;
    }

    html[lang^="fr"] .wf-mega__column:not(.wf-mega__column--grid) {
        max-width: 300px;
    }
}

/* Mobile and tablet */

@media (max-width: 1279px) {
    .wf-nav,
    .wf-utility,
    .wf-header .wf-cta--desktop,
    .wf-topbar__inner > [aria-hidden="true"] {
        display: none;
    }

    .wf-topbar--no-rating {
        display: none;
    }

    .wf-topbar__inner {
        height: 36px;
        grid-template-columns: auto;
        justify-content: center;
        font-size: 12px;
        line-height: 18px;
    }

    .wf-rating {
        gap: 7px;
    }

    .wf-rating__logo {
        width: 16px;
        height: 16px;
    }

    .wf-rating__logo img {
        width: 12px;
        height: 12px;
    }

    .wf-rating__stars .wf-icon {
        width: 11px;
        height: 11px;
    }

    .wf-header .wf-actions {
        display: none;
    }

    .wf-mainbar {
        background: var(--wfh-mobile-bg);
        border-bottom: 0;
    }

    .wf-mainbar__inner {
        width: 100%;
        height: 76px;
        padding: 0 16px;
        justify-content: center;
    }

    .wf-logo {
        flex-shrink: 1;
        min-width: 0;
    }

    .wf-logo__img {
        width: 292px;
        max-width: 100%;
        mix-blend-mode: multiply;
    }

    .wf-header .wf-mobile-bar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        background: var(--wfh-mobile-bg);
        border-top: 1px solid var(--wfh-line-strong);
        border-bottom: 1px solid var(--wfh-line-strong);
    }

    .wf-mobile-bar > * + * {
        border-left: 1px solid var(--wfh-line-strong);
    }

    .wf-header .wf-mobile-bar__item {
        width: 100%;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 17px;
        font-weight: 500;
        line-height: 24px;
        color: var(--wfh-ink);
    }

    .wf-header .wf-mobile-bar__item[aria-expanded="true"] .wf-icon--chevron-down {
        transform: rotate(180deg);
    }

    .wf-cart-count {
        left: 13px;
    }

    .wf-menu-toggle__open,
    .wf-menu-toggle__close {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .wf-menu-toggle__close,
    .wf-menu-toggle[aria-expanded="true"] .wf-menu-toggle__open {
        display: none;
    }

    .wf-menu-toggle[aria-expanded="true"] .wf-menu-toggle__close {
        display: flex;
    }

    .wf-header .wf-menu-toggle[aria-expanded="true"] {
        background: var(--wfh-white);
        box-shadow: 0 1px 0 var(--wfh-white);
    }

    .wf-lang-menu {
        position: relative;
    }

    .wf-lang-menu__list {
        position: absolute;
        top: 100%;
        left: -1px;
        right: 0;
        z-index: 3;
        padding: 6px 0;
        background: var(--wfh-white);
        border: 1px solid var(--wfh-line-strong);
        border-top: 0;
        box-shadow: var(--wfh-shadow-dropdown);
    }

    .wf-lang-menu__link {
        display: block;
        padding: 12px 20px;
        font-size: 17px;
        font-weight: 500;
        line-height: 24px;
        text-align: center;
    }

    .wf-header .wf-mobile {
        display: block;
        max-height: calc(100dvh - var(--wf-header-bottom, 100px));
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--wfh-white);
    }

    .wf-mobile__utility {
        height: 48px;
        padding: 0 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: var(--wfh-surface);
        border-bottom: 1px solid var(--wfh-line);
        font-size: 15px;
        font-weight: 600;
        line-height: 22px;
    }

    .wf-mobile__utility-label {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .wf-mobile__nav {
        padding: 0 20px 28px;
    }

    .wf-mobile__item + .wf-mobile__item {
        border-top: 1px solid var(--wfh-line);
    }

    .wf-mobile__list {
        border-bottom: 1px solid var(--wfh-line);
    }

    .wf-header .wf-mobile__link {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 0;
        font-size: 18px;
        font-weight: 600;
        line-height: 24px;
    }

    .wf-header .wf-mobile__link[aria-expanded="true"] {
        color: var(--wfh-accent);
    }

    .wf-mobile__label {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .wf-mobile__label .wf-icon {
        color: var(--wfh-accent);
    }

    .wf-mobile__submenu {
        margin-bottom: 16px;
    }

    .wf-mobile__submenu > .wf-link-list {
        padding-left: 12px;
        font-size: 16px;
        line-height: 22px;
    }

    .wf-mobile__submenu > .wf-mobile-calendar {
        margin: 18px 0 0;
    }

    .wf-mobile__submenu .wf-menu-link {
        padding: 9px 0;
    }

    .wf-mobile__submenu .wf-menu-link .wf-icon {
        margin-right: 4px;
    }

    .wf-mobile__submenu .wf-menu-item.has-divider::before {
        margin: 4px 0;
        border-top-color: var(--wfh-line-soft);
    }

    .wf-header .wf-mobile__group-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 20px 0 21px;
        border-top: 1px solid var(--wfh-line-soft);
        font-size: 14px;
        line-height: 20px;
    }

    .wf-header .wf-mobile__group-toggle:first-child {
        padding-top: 16px;
        border-top: 0;
    }

    .wf-header .wf-mobile__group-toggle[aria-expanded="true"] {
        padding-bottom: 12px;
    }

    .wf-mobile__group-text {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .wf-mobile__group-title {
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--wfh-ink);
    }

    .wf-mobile__group-description {
        color: var(--wfh-muted);
    }

    .wf-mobile__submenu > .wf-mobile__group-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-bottom: 16px;
    }

    .wf-mobile__group-list .wf-menu-link {
        row-gap: 5px;
        padding: 13px 16px;
        border-radius: 10px;
        background: var(--wfh-surface);
    }

    .wf-mobile__group-list .wf-badge {
        background: var(--wfh-white);
    }

    .wf-mobile__submenu .wf-card {
        margin-top: 16px;
        padding: 12px;
        border-radius: 18px;
        gap: 14px;
    }

    .wf-mobile__submenu .wf-card__title {
        font-size: 22px;
        line-height: 28px;
    }

    .wf-mobile-calendar {
        margin: 4px 0 16px;
        padding: 14px 16px;
        border-radius: 16px;
        background: var(--wfh-tint);
    }

    .wf-header .wf-mobile-calendar__toggle {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .wf-mobile-calendar__text {
        flex: 1 1 0;
        min-width: 0;
    }

    .wf-mobile-calendar .wf-calendar-link__title {
        font-size: 17px;
    }

    .wf-header .wf-mobile-calendar__label {
        margin: 16px 0 4px;
        font-size: 11px;
        color: var(--wfh-muted-strong);
    }

    .wf-mobile-calendar__list {
        border-top: 1px solid var(--wfh-line-ink);
        border-bottom: 1px solid var(--wfh-line-ink);
    }

    .wf-mobile-calendar__list li + li {
        border-top: 1px solid var(--wfh-line-ink);
    }

    .wf-mobile-calendar .wf-course-link {
        justify-content: space-between;
        padding: 12px 0;
    }

    .wf-mobile-calendar .wf-course-link__title {
        font-size: 15px;
    }

    .wf-header .wf-mobile-calendar__all {
        width: 100%;
        height: 44px;
        margin-top: 16px;
        font-size: 15px;
        line-height: 22px;
    }

    .wf-header .wf-cta--mobile {
        width: calc(100% - 10px);
        height: 52px;
        margin: 24px 5px 0;
        display: flex;
        font-size: 16px;
    }

    .wf-mobile__footer {
        margin-top: 28px;
        padding-top: 18px;
        border-top: 1px solid var(--wfh-line);
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 14px;
        line-height: 20px;
    }

    .wf-mobile__footer .wf-lang {
        margin-left: auto;
    }

    .wf-header .wf-mobile__footer .wf-lang__link {
        color: var(--wfh-muted);
    }

    .wf-header .wf-mobile__footer .wf-lang__link[aria-current] {
        font-weight: 600;
        color: var(--wfh-ink);
    }

    .wf-mobile__footer .wf-lang__separator {
        color: var(--wfh-muted-light);
    }

    body.wf-menu-open {
        overflow: hidden;
    }
}

@media (max-width: 782px) {
    .admin-bar .wf-header {
        top: 46px;
    }
}

@media (max-width: 600px) {
    .admin-bar .wf-header {
        top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wf-header {
        transition: none;
    }
}

body.wf-menu-open #zsiq_float {
    display: none;
}
