:root {
    --ell-navy-900: #17365f;
    --ell-navy-800: #1f3d7a;
    --ell-navy-700: #284b96;
    --ell-text: #20385f;
    --ell-muted: #52657f;
    --ell-soft: #718198;
    --ell-orange: #ee7d2d;
    --ell-orange-ink: #a94f08;
    --ell-aqua-50: #eef7f7;
    --ell-aqua-100: #dff0f3;
    --ell-cream: #fffdfa;
    --ell-warm: #faf5ec;
    --ell-border: #dfE7e9;
    --ell-warm-border: #eadfcd;
    --ell-shadow: 0 12px 30px rgba(25, 53, 91, 0.07);
    --ell-shadow-hover: 0 24px 52px rgba(25, 53, 91, 0.16);
}

body.easyesl-lessons-library-v2-active {
    background: var(--ell-cream);
}

body.easyesl-lessons-library-v2-active .site-content {
    padding: 0;
}

body.easyesl-lessons-library-v2-active #content > .ast-container {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
}

.ell-library,
.ell-library * {
    box-sizing: border-box;
}

.ell-library {
    width: 100%;
    overflow: clip;
    background: var(--ell-cream);
    color: var(--ell-text);
}

.ell-inner {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.ell-eyebrow {
    margin: 0 0 12px;
    color: var(--ell-orange-ink);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.13em;
    line-height: 1.25;
    text-transform: uppercase;
}

.ell-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(118deg, var(--ell-aqua-50) 0%, var(--ell-aqua-100) 100%);
    border-bottom: 1px solid rgba(31, 61, 122, 0.08);
}

.ell-hero::before,
.ell-hero::after {
    position: absolute;
    z-index: -1;
    content: "";
    border: 1px solid rgba(31, 61, 122, 0.08);
    border-radius: 50%;
}

.ell-hero::before {
    width: 360px;
    height: 360px;
    right: -90px;
    bottom: -260px;
}

.ell-hero::after {
    width: 190px;
    height: 190px;
    right: 19%;
    top: -126px;
}

.ell-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.7fr);
    gap: 70px;
    align-items: end;
    padding-block: 52px 48px;
}

.ell-hero__copy {
    max-width: 780px;
}

.ell-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--ell-navy-800);
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: clamp(42px, 4.3vw, 64px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.ell-hero__copy > p:last-child {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--ell-muted);
    font-size: 18px;
    line-height: 1.58;
}

.ell-hero__guide {
    display: grid;
    gap: 0;
    align-self: center;
    padding-left: 22px;
    border-left: 2px solid rgba(238, 125, 45, 0.72);
    color: var(--ell-navy-800);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.ell-hero__guide span {
    padding-block: 9px;
}

.ell-hero__guide span + span {
    border-top: 1px solid rgba(31, 61, 122, 0.1);
}

.ell-discovery {
    position: relative;
    z-index: 5;
    overflow: visible;
    background: var(--ell-warm);
    border-bottom: 1px solid var(--ell-warm-border);
}

.ell-discovery > .ell-inner {
    padding-block: 24px;
}

.ell-filter-form {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 2.1fr);
    gap: 18px;
    align-items: start;
    width: 100%;
    margin: 0;
}

.ell-search-field {
    min-width: 0;
}

.ell-search-field > label {
    display: block;
    margin: 0 0 7px;
    color: var(--ell-soft);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ell-search-field__control {
    position: relative;
}

.ell-search-field__control svg {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: var(--ell-navy-800);
    stroke-linecap: round;
    stroke-width: 1.8;
    transform: translateY(-50%);
    pointer-events: none;
}

.ell-search-field input {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 0 18px 0 48px;
    border: 1px solid #d6e0e3;
    border-radius: 14px;
    outline: none;
    background: #fff;
    box-shadow: 0 5px 14px rgba(31, 61, 122, 0.03);
    color: var(--ell-text);
    font: inherit;
    font-size: 15px;
}

.ell-search-field input::placeholder {
    color: #8a96a8;
}

.ell-search-field input:focus-visible {
    border-color: var(--ell-navy-700);
    box-shadow: 0 0 0 4px rgba(40, 75, 150, 0.14);
}

.ell-filter-drawer {
    display: none;
    min-width: 0;
}

.ell-filter-drawer > summary {
    display: none;
    list-style: none;
}

.ell-filter-drawer > summary::-webkit-details-marker {
    display: none;
}

.ell-filter-drawer__content {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    grid-template-areas:
        "direct actions"
        "collapsible collapsible";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
    align-items: start;
}

.ell-filter-collapsible-controls {
    display: grid;
    grid-area: collapsible;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

.ell-filter-direct-controls {
    display: grid;
    grid-area: direct;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 16px;
    align-items: center;
    min-width: 0;
}

.ell-filter-direct-group {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.ell-filter-direct-group legend {
    float: none;
    margin: 0 0 8px;
    color: var(--ell-soft);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.09em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ell-filter-pills {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 7px;
}

.ell-filter-pill {
    position: relative;
    display: inline-flex;
    margin: 0;
    cursor: pointer;
}

.ell-filter-pill input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ell-filter-pill span {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid #d3dee2;
    border-radius: 999px;
    background: #fff;
    color: var(--ell-muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ell-filter-pill input:checked + span {
    border-color: var(--ell-navy-800);
    background: var(--ell-navy-800);
    box-shadow: 0 6px 14px rgba(31, 61, 122, 0.16);
    color: #fff;
}

.ell-filter-pill input:focus-visible + span {
    outline: 3px solid rgba(238, 125, 45, 0.48);
    outline-offset: 2px;
}

.ell-filter-group {
    min-width: 0;
    border-top: 1px solid rgba(31, 61, 122, 0.14);
    border-bottom: 1px solid rgba(31, 61, 122, 0.08);
}

.ell-filter-group__toggle {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: var(--ell-navy-800);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.09em;
    line-height: 1;
    text-align: left;
    text-transform: uppercase;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.ell-filter-group__toggle:hover {
    color: var(--ell-orange-ink);
}

.ell-filter-group__toggle:hover,
.ell-filter-group__toggle:focus,
.ell-filter-group__toggle:focus-visible {
    background: rgba(238, 125, 45, 0.06);
    color: var(--ell-navy-800);
}

.ell-filter-group__toggle:focus-visible {
    border-radius: 8px;
    outline: 3px solid rgba(238, 125, 45, 0.48);
    outline-offset: 2px;
}

.ell-filter-group__selection {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ell-orange-ink);
    font-size: 11px;
    letter-spacing: 0.04em;
}

.ell-filter-group__selection[hidden] {
    display: none;
}

.ell-filter-group__icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(31, 61, 122, 0.07);
    color: var(--ell-orange-ink);
    font-size: 23px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.ell-filter-group__toggle[aria-expanded="true"] .ell-filter-group__icon {
    background: var(--ell-navy-800);
    color: #fff;
}

.ell-filter-group__panel {
    position: static;
    width: 100%;
    padding: 3px 2px 10px;
}

.ell-filter-group__panel[hidden] {
    display: none;
}

.ell-filter-group__panel fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.ell-filter-pills--dense {
    gap: 8px;
}

.ell-filter-pill--dense span {
    min-height: 34px;
    padding-inline: 11px;
    font-size: 12px;
}

.ell-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ell-navy-800);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.ell-filter-actions {
    display: flex;
    grid-area: actions;
    min-height: 52px;
    align-items: center;
    gap: 11px;
}

.ell-filter-close {
    display: none;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: var(--ell-navy-800);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ell-filter-close:focus-visible {
    outline: 3px solid rgba(238, 125, 45, 0.48);
    outline-offset: 2px;
}

.ell-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.ell-button--primary {
    border: 1px solid var(--ell-navy-800);
    background: var(--ell-navy-800);
    box-shadow: 0 8px 18px rgba(31, 61, 122, 0.17);
    color: #fff;
    cursor: pointer;
}

.ell-button--primary:hover {
    border-color: var(--ell-navy-700);
    background: var(--ell-navy-700);
    color: #fff;
}

.ell-button:focus-visible,
.ell-clear-link:focus-visible,
.ell-active-filters a:focus-visible {
    outline: 3px solid rgba(40, 75, 150, 0.4);
    outline-offset: 3px;
}

.ell-clear-link {
    color: var(--ell-navy-800);
    font-size: 13px;
    font-weight: 900;
    text-underline-offset: 3px;
}

.ell-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
}

.ell-active-filters__title {
    margin-right: 2px;
    color: var(--ell-soft);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ell-active-filters a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border: 1px solid rgba(31, 61, 122, 0.18);
    border-radius: 999px;
    background: #fff;
    color: var(--ell-navy-800);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.ell-active-filters a:hover {
    border-color: rgba(169, 79, 8, 0.42);
    color: var(--ell-orange-ink);
}

.ell-results {
    background: var(--ell-cream);
}

.ell-results > .ell-inner {
    padding-block: 44px 88px;
}

.ell-results__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
}

.ell-results__header h2 {
    margin: 0;
    color: var(--ell-navy-800);
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.ell-results__header > p {
    max-width: 470px;
    margin: 0 0 2px;
    color: var(--ell-muted);
    font-size: 15px;
    line-height: 1.55;
    text-align: right;
}

.ell-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.ell-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ell-warm-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--ell-shadow);
    transform: translateY(0);
    transition: transform 0.22s cubic-bezier(.22, 1, .36, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.ell-card__link {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.ell-card__link:focus-visible {
    outline: 4px solid var(--ell-orange);
    outline-offset: -4px;
}

.ell-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ell-aqua-100);
}

.ell-card__media::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(13, 34, 62, 0.02), rgba(13, 34, 62, 0.1));
    pointer-events: none;
}

.ell-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.24s cubic-bezier(.22, 1, .36, 1);
}

.ell-tier,
.ell-duration {
    position: absolute;
    z-index: 2;
    top: 13px;
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    box-shadow: 0 5px 14px rgba(17, 39, 70, 0.15);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.ell-tier {
    left: 13px;
    padding: 0 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ell-tier--standard {
    border: 1px solid rgba(31, 61, 122, 0.16);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ell-navy-800);
}

.ell-tier--pro {
    border: 1px solid #d5a744;
    background: #f6d996;
    color: #734400;
}

.ell-tier--ultra {
    border: 1px solid #cc5d12;
    background: var(--ell-orange);
    color: #fff;
}

.ell-duration {
    right: 13px;
    gap: 6px;
    padding: 0 10px;
    background: rgba(23, 54, 95, 0.92);
    color: #fff;
    backdrop-filter: blur(5px);
}

.ell-duration svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.ell-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 18px 20px;
}

.ell-card__meta {
    display: flex;
    min-height: 26px;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.ell-card__meta span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #edf3f8;
    color: #4d6381;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
}

.ell-card__meta span + span {
    background: #fff4e8;
    color: #8b4a16;
}

.ell-card h2 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.42em;
    margin: 0;
    color: var(--ell-text);
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: clamp(20px, 1.7vw, 24px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.21;
    transition: color 0.2s ease;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ell-card__body > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 11px 0 18px;
    color: var(--ell-muted);
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ell-card__action {
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--ell-navy-800);
    font-size: 14px;
    font-weight: 900;
    isolation: isolate;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.ell-card__action::before {
    position: absolute;
    z-index: -1;
    inset: -7px -11px;
    content: "";
    border-radius: 999px;
    background: var(--ell-orange);
    box-shadow: 0 8px 18px rgba(238, 125, 45, 0.25);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(.22, 1, .36, 1);
}

.ell-card__action span {
    color: var(--ell-orange-ink);
    font-size: 19px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.ell-empty {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--ell-warm-border);
    border-radius: 22px;
    background: var(--ell-warm);
}

.ell-empty__icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ell-aqua-100);
    color: var(--ell-navy-800);
    font-size: 24px;
    font-weight: 900;
    transform: rotate(45deg);
}

.ell-empty h3 {
    margin: 0;
    color: var(--ell-navy-800);
    font-size: 24px;
    line-height: 1.2;
}

.ell-empty p {
    margin: 7px 0 0;
    color: var(--ell-muted);
}

.ell-pagination {
    margin-top: 36px;
}

.ell-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ell-pagination a,
.ell-pagination span {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--ell-warm-border);
    border-radius: 999px;
    background: #fff;
    color: var(--ell-navy-800);
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
}

.ell-pagination .current {
    border-color: var(--ell-navy-800);
    background: var(--ell-navy-800);
    color: #fff;
}

@media (hover: hover) and (pointer: fine) {
    .ell-card:hover {
        border-color: rgba(238, 125, 45, 0.45);
        box-shadow: var(--ell-shadow-hover);
        transform: translateY(-7px);
    }

    .ell-card:hover .ell-card__media img {
        transform: scale(1.025);
    }

    .ell-card:hover h2 {
        color: var(--ell-orange);
    }

    .ell-card:hover .ell-card__action {
        color: #fff;
    }

    .ell-card:hover .ell-card__action::before {
        opacity: 1;
        transform: scale(1);
    }

    .ell-card:hover .ell-card__action span {
        color: #fff;
        transform: translateX(3px);
    }

    .ell-filter-pill:hover span {
        border-color: rgba(40, 75, 150, 0.48);
        color: var(--ell-navy-800);
    }

    .ell-filter-pill:hover input:checked + span {
        color: #fff;
    }
}

.ell-card:focus-within {
    border-color: rgba(238, 125, 45, 0.45);
    box-shadow: var(--ell-shadow-hover);
    transform: translateY(-7px);
}

.ell-card:focus-within .ell-card__media img {
    transform: scale(1.025);
}

.ell-card:focus-within h2 {
    color: var(--ell-orange);
}

.ell-card:focus-within .ell-card__action {
    color: #fff;
}

.ell-card:focus-within .ell-card__action::before {
    opacity: 1;
    transform: scale(1);
}

.ell-card:focus-within .ell-card__action span {
    color: #fff;
    transform: translateX(3px);
}

html.easyesl-motion-ready .ell-library .ell-card.easyesl-motion-reveal.is-visible:is(:hover, :focus-within) {
    border-color: rgba(238, 125, 45, 0.45);
    box-shadow: var(--ell-shadow-hover);
    transform: translateY(-7px);
}

@media (max-width: 1180px) {
    .ell-filter-form {
        grid-template-columns: minmax(260px, 0.82fr) minmax(0, 2.18fr);
    }

    .ell-filter-direct-controls {
        grid-template-columns: minmax(0, 1fr) minmax(270px, 0.85fr);
    }

    .ell-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .ell-hero__inner {
        grid-template-columns: minmax(0, 1fr) 220px;
        gap: 38px;
    }

    .ell-filter-form {
        --ell-mobile-filter-trigger: 142px;
        --ell-mobile-filter-gap: 18px;
        grid-template-columns: minmax(0, 1fr) var(--ell-mobile-filter-trigger);
        gap: var(--ell-mobile-filter-gap);
        align-items: end;
    }

    .ell-filter-drawer {
        display: block;
    }

    .ell-filter-drawer > summary {
        display: flex;
        width: 100%;
        min-width: 0;
        min-height: 52px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0 14px 0 16px;
        border: 1px solid var(--ell-navy-800);
        border-radius: 14px;
        background: var(--ell-navy-800);
        color: #fff;
        cursor: pointer;
        font-size: 14px;
        font-weight: 900;
    }

    .ell-filter-drawer__label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .ell-filter-drawer__label svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-width: 1.8;
    }

    .ell-filter-count {
        min-width: 24px;
        height: 24px;
        background: var(--ell-orange);
        color: #fff;
    }

    .ell-filter-drawer__content {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        grid-template-areas: none;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 12px;
        padding: 14px;
        border: 1px solid var(--ell-warm-border);
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--ell-shadow);
    }

    .ell-filter-drawer[open] + .ell-filter-drawer__content {
        display: grid;
    }

    .ell-filter-actions {
        grid-area: auto;
        justify-content: flex-start;
    }

    .ell-filter-collapsible-controls,
    .ell-filter-direct-controls {
        grid-area: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ell-filter-direct-group {
        display: block;
    }

    .ell-filter-direct-group legend {
        float: none;
        margin-bottom: 9px;
    }

    .ell-filter-actions .ell-button {
        flex: 1;
    }

    .ell-library-ready .ell-filter-close {
        display: inline-flex;
    }

    .ell-results__header {
        align-items: flex-start;
    }

    .ell-results__header > p {
        max-width: 360px;
    }

    body.post-type-archive-lesson .cookieadmin_re_consent {
        right: 6px !important;
        left: auto !important;
    }
}

@media (max-width: 820px) {
    .ell-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .ell-hero__inner {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-block: 42px 38px;
    }

    .ell-hero__guide {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 12px 0 0;
        border-top: 2px solid rgba(238, 125, 45, 0.72);
        border-left: 0;
        font-size: 12px;
    }

    .ell-hero__guide span {
        padding: 4px 10px;
    }

    .ell-hero__guide span:first-child {
        padding-left: 0;
    }

    .ell-hero__guide span + span {
        border-top: 0;
        border-left: 1px solid rgba(31, 61, 122, 0.1);
    }

    .ell-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .ell-results__header {
        display: block;
    }

    .ell-results__header > p {
        margin-top: 10px;
        text-align: left;
    }

    .ell-empty {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .ell-empty .ell-button {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .ell-inner {
        width: min(100% - 32px, 1200px);
    }

    .ell-hero {
        background: linear-gradient(118deg, var(--ell-aqua-50) 0%, var(--ell-aqua-100) 100%);
    }

    .ell-hero__inner {
        gap: 0;
        padding-block: 34px 32px;
    }

    .ell-hero h1 {
        font-size: clamp(36px, 10.5vw, 44px);
        line-height: 1.06;
    }

    .ell-hero__copy > p:last-child {
        margin-top: 14px;
        font-size: 16px;
        line-height: 1.5;
    }

    .ell-hero__guide {
        display: none;
    }

    .ell-discovery > .ell-inner {
        padding-block: 18px;
    }

    .ell-filter-form {
        --ell-mobile-filter-trigger: 112px;
        --ell-mobile-filter-gap: 9px;
        grid-template-columns: minmax(0, 1fr) var(--ell-mobile-filter-trigger);
        gap: var(--ell-mobile-filter-gap);
    }

    .ell-search-field > label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .ell-search-field input {
        min-height: 50px;
        padding-left: 43px;
        font-size: 14px;
    }

    .ell-search-field__control svg {
        left: 14px;
        width: 19px;
        height: 19px;
    }

    .ell-filter-drawer > summary {
        min-width: 112px;
        min-height: 50px;
        padding-inline: 13px 10px;
    }

    .ell-filter-drawer__label svg {
        display: none;
    }

    .ell-filter-drawer__content {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .ell-filter-collapsible-controls,
    .ell-filter-direct-controls {
        grid-template-columns: 1fr;
    }

    .ell-filter-pills {
        gap: 8px;
    }

    .ell-filter-pill span {
        min-height: 40px;
        padding-inline: 14px;
    }

    .ell-filter-actions {
        grid-column: auto;
        flex-wrap: wrap;
    }

    .ell-filter-actions .ell-button {
        flex-basis: 100%;
    }

    .ell-active-filters {
        margin-top: 12px;
    }

    .ell-active-filters__title {
        flex-basis: 100%;
    }

    .ell-results > .ell-inner {
        padding-block: 30px 64px;
    }

    .ell-results__header {
        margin-bottom: 18px;
    }

    .ell-results__header .ell-eyebrow {
        margin-bottom: 7px;
    }

    .ell-results__header h2 {
        font-size: 31px;
    }

    .ell-results__header > p {
        display: none;
    }

    .ell-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ell-card__body {
        padding: 17px 17px 19px;
    }

    .ell-card h2 {
        min-height: 0;
        font-size: 24px;
    }

    .ell-card__body > p {
        font-size: 15px;
        -webkit-line-clamp: 3;
    }

    .ell-empty {
        display: block;
        padding: 22px;
    }

    .ell-empty__icon {
        margin-bottom: 15px;
    }

    .ell-empty .ell-button {
        width: 100%;
        margin-top: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ell-library *,
    .ell-library *::before,
    .ell-library *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .ell-card:hover,
    .ell-card:focus-within,
    html.easyesl-motion-ready .ell-library .ell-card.easyesl-motion-reveal.is-visible:is(:hover, :focus-within),
    .ell-card:hover .ell-card__media img,
    .ell-card:focus-within .ell-card__media img,
    .ell-card:hover .ell-card__action span,
    .ell-card:focus-within .ell-card__action span,
    .ell-card:hover .ell-card__action::before,
    .ell-card:focus-within .ell-card__action::before {
        transform: none !important;
    }
}
