.mk-ed-video-summary,
.mk-ed-video-topics,
.mk-ed-video-search-row,
.mk-ed-video-sort,
.mk-ed-video-products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}
.mk-ed-video-summary > span {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .65rem 1rem;
    font-size: .9375rem;
    background: linear-gradient(115deg, var(--mk-panel) 45%, var(--ed-tint));
}
.mk-ed-video-summary strong { padding-inline-start: .25rem; }
.mk-ed-video-summary svg,
.mk-ed-video-topics svg,
.mk-ed-series-copy svg,
.mk-ed-video-product svg {
    width: 1.15rem;
    height: 1.15rem;
    flex: none;
    color: var(--mk-purple);
}
.mk-ed-video-topics { margin-bottom: .85rem; }
.mk-ed-video-topics a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    min-width: 5.5rem;
    min-height: 3.65rem;
    padding: .5rem .9rem;
    border: 1px solid var(--ed-stroke);
    border-radius: .65rem;
    background: var(--mk-panel);
    font-size: .9rem;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}
.mk-ed-video-topics a[aria-current] { color: #1c2405; border-color: var(--mk-lime); background: var(--mk-lime); }
.mk-ed-video-topics a[aria-current] svg { color: inherit; }
.mk-ed-video-search-row { align-items: center; }
.mk-ed-video-search-row .mk-ed-search { flex: 1 1 17rem; max-width: 40rem; }
.mk-ed-video-sort { gap: .2rem; padding: .125rem; border: 1px solid var(--ed-stroke); border-radius: .65rem; }
.mk-ed-video-sort a {
    display: inline-grid;
    place-items: center;
    min-height: 2.6rem;
    padding-inline: .7rem;
    border-radius: .5rem;
    font-size: .9rem;
    text-decoration: none;
}
.mk-ed-video-sort a[aria-current] { background: var(--ed-tint); font-weight:var(--mk-weight-strong); }
.mk-ed-video-series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
    gap: clamp(10px, 1vw, 16px);
}
.mk-ed-video-series-card {
    display: flex;
    flex-direction: column;
    padding: .5rem;
    color: var(--mk-ink);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.mk-ed-video-series-card:hover,
.mk-ed-video-topics a:hover { border-color: var(--mk-purple); }
.mk-ed-series-art {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 2.55;
    border-radius: .45rem;
    background: linear-gradient(120deg, var(--ed-tint), var(--mk-panel));
}
.mk-ed-series-art svg { width: 2.1rem; height: 2.1rem; color: var(--mk-purple); }
.mk-ed-series-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mk-ed-series-copy { display: grid; flex: 1; gap: .4rem; align-content: start; padding: .7rem .35rem .25rem; }
.mk-ed-series-copy > span { font-size: .9rem; line-height: 1.45; color: var(--mk-muted); }
.mk-ed-series-copy small { display: inline-flex; align-items: center; gap: .45rem; font-size: .875rem; font-weight:var(--mk-weight-strong); }
.mk-ed-video-products-grid > div { flex: 1 1 14rem; padding: clamp(12px, 1.4vw, 21px); }
.mk-ed-video-product h3 a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.mk-ed-video-product ul { list-style: none; margin: .7rem 0 0; padding: 0; }
.mk-ed-video-product li + li { border-top: 1px solid var(--ed-stroke); }
.mk-ed-video-product li a { display: flex; align-items: center; min-height: 44px; padding-block: .35rem; }
.mk-ed-video-product a { text-decoration: none; }
.mk-ed-video-product a:hover { text-decoration: underline; }
@media (max-width: 600px) {
    .mk-ed-video-topics a { min-width: 4.75rem; }
    /* Keep the submit target clear of the floating support launcher on small screens. */
    .mk-ed-video-search-row .mk-ed-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: .4rem;
        flex-basis: 100%;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }
    .mk-ed-video-search-row .mk-ed-search input[type="search"] {
        grid-area: 1 / 1;
        min-height: 46px;
        padding-inline: 2.4rem 1rem;
        border: 1px solid var(--ed-stroke);
        border-radius: 999px;
        background: var(--mk-panel);
    }
    .mk-ed-video-search-row .mk-ed-search > svg {
        grid-area: 1 / 1;
        z-index: 1;
        margin-inline-start: .8rem;
        pointer-events: none;
    }
    .mk-ed-video-search-row .mk-ed-search button { grid-area: 2 / 1; justify-self: start; }
    .mk-ed-video-series-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); }
}
