/**
 * EAFPS Videos — front-end styles.
 *
 * Aligned with eafps_directory's design tokens (same Inter font, parme/turquoise palette,
 * combo dropdown pattern). Adds:
 *  - 3-column grid of cards with gradient over cover image
 *  - chip styles for Procedure (light) and Topic (teal)
 *  - dark navy "LOAD MORE VIDEOS" pill
 */

.eafps-videos {
    --eafps-turquoise: #4BC1D0;
    --eafps-turquoise-dark: #08AEC0;
    --eafps-turquoise-darker: #079AAB;
    --eafps-marine: #272E47;
    --eafps-parme-clair: #E3E9F6;
    --eafps-parme-tres-clair: #F6F7FF;
    --eafps-contour-champs: #DCE4F5;
    --eafps-muted: #667085;
    --eafps-procedure-bg: #C4F6FD;
    --eafps-procedure-fg: #128AA2;
    --eafps-topic-bg: #4BC1D0;
    --eafps-topic-fg: #FFFFFF;
    --eafps-pill-bg: #272E47;
    --eafps-pill-fg: #FFFFFF;

    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--eafps-marine);

    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}
.eafps-videos *,
.eafps-videos *::before,
.eafps-videos *::after { box-sizing: border-box; }


/* ── Layout (sidebar + main, JS-driven sticky via transform) ─ */
.eafps-videos__layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 30px;
}
/* No position:fixed games — the JS sticky uses transform:translateY which
   leaves the sidebar in the grid layout, so the main column keeps its 1fr
   width and the cards stay 3 across. */
.eafps-videos__main {
    min-width: 0;                /* allow grid items inside (cards) to shrink */
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ── Sidebar ───────────────────────────────── */
/* No CSS position:sticky here — Salient/VC wrappers tend to set overflow:hidden
   somewhere up the tree which silently breaks sticky. Pinning is driven by JS
   (initStickySidebar in frontend.js) which toggles between static / fixed /
   absolute. */
.eafps-videos__sidebar {
    background: var(--eafps-parme-tres-clair);
    border: 1px solid var(--eafps-parme-clair);
    border-radius: 12px;
    padding: 24px 20px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 1;
}
.eafps-videos__sidebar-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--eafps-marine);
    margin: 0 0 12px;
}

/* Categories checkbox list — bullets aggressively removed. */
.eafps-videos__sidebar-list,
.eafps-videos .eafps-videos__sidebar-list {
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.eafps-videos__sidebar-item,
.eafps-videos .eafps-videos__sidebar-item {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.eafps-videos__sidebar-item::before,
.eafps-videos__sidebar-item::marker {
    content: none !important;
    display: none !important;
}
.eafps-videos__sidebar-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 4px;
    border-radius: 6px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--eafps-marine);
    transition: background .12s ease;
}
.eafps-videos__sidebar-name,
.eafps-videos__sidebar-count {
    line-height: 1.2;
}
.eafps-videos__sidebar-label:hover { background: rgba(255, 255, 255, 0.6); }
.eafps-videos__sidebar-checkbox {
    appearance: auto;
    -webkit-appearance: auto;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    accent-color: var(--eafps-turquoise);
    cursor: pointer;
    margin: 0;
    padding: 0;
    border-radius: 3px;
}
.eafps-videos__sidebar-name { flex: 1 1 auto; }
.eafps-videos__sidebar-count {
    color: var(--eafps-muted);
    font-size: 13px;
    font-weight: 300;
}
.eafps-videos__sidebar-empty {
    color: var(--eafps-muted);
    font-style: italic;
    font-size: 14px;
    margin: 0;
}

/* ── Searchbar ─────────────────────────────── */
.eafps-videos__searchbar {
    display: flex;
    gap: 12px;
    background: var(--eafps-parme-tres-clair);
    border: 1px solid var(--eafps-parme-clair);
    padding: 16px;
    border-radius: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.eafps-videos__field {
    background: #FFF;
    border: 1px solid var(--eafps-contour-champs);
    border-radius: 8px;
    padding: 0 16px;
    height: 48px;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--eafps-marine);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
    transition: border-color .15s ease;
}
.eafps-videos__field:focus-within {
    border-color: var(--eafps-turquoise);
    outline: 0;
    box-shadow: none;
}

.eafps-videos__field--topic     { min-width: 240px; }
.eafps-videos__field--procedure { min-width: 240px; }
.eafps-videos__field--text      { flex: 1 1 320px; padding-right: 44px; }

/* Salient ascend.css ships `.ascend .container-wrap .span_12.light input[type=text] {
   border: 1px solid #ccc; ... }` — specificity (0,3,1,1). To beat it safely we use 4
   chained classes via `body .eafps-videos .eafps-videos__searchbar .eafps-videos__field`
   plus !important — wins on both specificity and importance regardless of source order. */
body .eafps-videos .eafps-videos__searchbar .eafps-videos__field input[type="text"],
body .eafps-videos .eafps-videos__searchbar .eafps-videos__field input[type="text"]:focus,
body .eafps-videos .eafps-videos__searchbar .eafps-videos__field input[type="text"]:focus-visible,
body .eafps-videos .eafps-videos__searchbar .eafps-videos__field input[type="text"]:hover {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-color: transparent !important;
    outline: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    width: 100% !important;
    height: 100% !important;
    font: inherit !important;
    color: inherit !important;
    padding-left: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    border-radius: 0 !important;
}
.eafps-videos__field input::placeholder {
    color: var(--eafps-marine);
    opacity: .85;
}

/* Lock the dropdown arrow with !important too, so no theme rule can wipe the
   background-image off the .eafps-videos__combo wrapper div. */
.eafps-videos .eafps-videos__combo {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='7' viewBox='0 0 14 7' fill='none'><path d='M12.9144 0.184L7.44885 5.56317C7.32959 5.68114 7.16862 5.74731 7.00087 5.74731C6.83312 5.74731 6.67214 5.68114 6.55289 5.56317L1.08615 0.185153C0.966155 0.0672388 0.804652 0.00116707 0.636419 0.00116707C0.468186 0.00116707 0.306682 0.0672388 0.18669 0.185153C0.127602 0.242757 0.0806439 0.311604 0.0485811 0.387639C0.0165183 0.463674 0 0.545358 0 0.627877C0 0.710396 0.0165183 0.792079 0.0485811 0.868115C0.0806439 0.94415 0.127602 1.013 0.18669 1.0706L5.6511 6.44861C6.01102 6.80201 6.49529 7 6.9997 7C7.50412 7 7.98838 6.80201 8.3483 6.44861L13.8127 1.0706C13.872 1.01298 13.9191 0.94406 13.9513 0.867917C13.9834 0.791773 14 0.709953 14 0.627294C14 0.544635 13.9834 0.462814 13.9513 0.386671C13.9191 0.310528 13.872 0.241608 13.8127 0.183987C13.6927 0.0660723 13.5312 0 13.363 0C13.1947 0 13.0332 0.0660723 12.9133 0.183987' fill='%2308AEC0'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 2px center !important;
    background-color: transparent !important;
}

.eafps-videos__icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    pointer-events: none;
}

/* SEARCH button — spec from design system. */
.eafps-videos .eafps-videos__submit,
.eafps-videos button.eafps-videos__submit {
    display: flex !important;
    height: 40px !important;
    padding: 14px 20px !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    border: 0 !important;
    border-radius: 50px !important;
    background: var(--eafps-turquoise) !important;     /* #4BC1D0 */
    color: #FFF !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: background .15s ease;
    box-shadow: none !important;
    min-height: 0 !important;
    text-shadow: none !important;
}
.eafps-videos .eafps-videos__submit:hover,
.eafps-videos button.eafps-videos__submit:hover {
    background: var(--eafps-turquoise-dark) !important;
    color: #FFF !important;
}

/* ── Combo dropdown (topic + procedure) ────── */
.eafps-videos__combo {
    position: relative;
    width: 100%;
    height: 100%;
    /* background-image (the dropdown arrow) is set with !important higher up in the
       file, in the "Lock the dropdown arrow" block, so theme rules cannot wipe it. */
}
.eafps-videos__combo-input {
    cursor: pointer;
    padding-right: 22px !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}
.eafps-videos__combo-list {
    position: absolute;
    top: calc(100% + 8px);
    left: -16px;
    right: -16px;
    background: #FFF;
    border: 1px solid var(--eafps-contour-champs);
    border-radius: 8px;
    max-height: 280px;
    overflow: auto;
    z-index: 30;
    padding: 6px 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.eafps-videos__combo-item {
    padding: 10px 16px;
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--eafps-marine);
}
.eafps-videos__combo-item:hover,
.eafps-videos__combo-item[aria-selected="true"] {
    background: var(--eafps-parme-tres-clair);
}
.eafps-videos__combo-item.is-hidden { display: none; }

/* ── Restricted-content placeholder ───────── */
/* Rendered when the user isn't allowed to see the library (anonymous, or member
   without active surgeon status / executive role). Stays inside .eafps-videos so
   it inherits the design tokens defined at the top of the file. */
.eafps-videos--restricted {
    padding: 0;
}
.eafps-videos__restricted {
    background: var(--eafps-parme-tres-clair);
    border: 1px solid var(--eafps-parme-clair);
    border-radius: 12px;
    padding: 48px 36px;
    text-align: center;
    color: var(--eafps-marine);
}
.eafps-videos__restricted-title {
    font-family: 'Butler', 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 14px;
    color: var(--eafps-marine);
}
.eafps-videos__restricted-desc {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 170%;
    color: var(--eafps-marine);
    max-width: 640px;
    margin: 0 auto;
}
.eafps-videos__restricted-desc p { margin: 0 0 12px; }
.eafps-videos__restricted-desc p:last-child { margin-bottom: 0; }
.eafps-videos__restricted-actions {
    margin: 24px 0 0;
}
.eafps-videos__restricted-btn {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 14px 22px;
    border-radius: 50px;
    background: var(--eafps-turquoise);
    color: #FFF !important;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .15s ease;
}
.eafps-videos__restricted-btn:hover,
.eafps-videos__restricted-btn:focus {
    background: var(--eafps-turquoise-dark);
    color: #FFF !important;
    text-decoration: none;
}

/* ── Filter toggles (under searchbar) ─────── */
.eafps-videos__filter-toggles {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    /* tighten the gap with the searchbar above (which has 50px flex gap on the parent) */
    margin-bottom: 6px;
}
.eafps-videos__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--eafps-marine);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    user-select: none;
}
.eafps-videos__toggle input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: auto;
    width: 18px;
    height: 18px;
    accent-color: var(--eafps-turquoise);
    cursor: pointer;
    margin: 0;
    padding: 0;
    border-radius: 4px;
}

/* ── Grid ─────────────────────────────────── */
.eafps-videos__grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    align-self: stretch;
    position: relative;
}
.eafps-videos__grid > .eafps-videos__card {
    flex: 0 1 calc((100% - (var(--eafps-videos-columns, 3) - 1) * 40px) / var(--eafps-videos-columns, 3));
    /*min-width: 280px;*/
    box-sizing: border-box;
}
.eafps-videos__grid.is-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }
.eafps-videos__empty {
    flex: 1 1 100%;
    text-align: center;
    color: var(--eafps-muted);
    font-style: italic;
    padding: 40px 0;
}

/* ── Card ─────────────────────────────────── */
/* High specificity + !important on visuals because Salient applies button styling
   (pill border-radius, gradient bg, uppercase, transforms…) on every <button>. */
.eafps-videos button.eafps-videos__card,
.eafps-videos button.eafps-videos__card:hover,
.eafps-videos button.eafps-videos__card:focus,
.eafps-videos button.eafps-videos__card:active,
.eafps-videos button.eafps-videos__card:focus-visible {
    border: 0 !important;
    border-radius: 18px !important;
    padding: 0 !important;
    margin: 0 !important;
    background-color: #cfd3dd !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: #fff !important;
    font: inherit !important;
    font-weight: 400 !important;
    text-transform: none !important;
    text-decoration: none !important;
    letter-spacing: normal !important;
    line-height: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    box-shadow: 0 4px 20px rgba(39, 46, 71, 0.10);
    outline: 0;
    transform: none;
}
.eafps-videos button.eafps-videos__card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}
.eafps-videos button.eafps-videos__card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(39, 46, 71, 0.18);
}
.eafps-videos button.eafps-videos__card.is-active {
    box-shadow: 0 0 0 3px var(--eafps-turquoise), 0 10px 30px rgba(39, 46, 71, 0.18);
}
.eafps-videos__card-chips,
.eafps-videos__card-body {
    display: block;
}

/* ── "Viewed" badge ────────────────────────── */
/* Lives inside .eafps-videos__card-chips so it shares the flex-wrap row with the
   procedure/topic chips: pushed to the right via margin-left:auto when there is
   room, wraps to the next row (below the chips) when not. Same 28px height as
   the chips — no overlap, ever. Always in the DOM; CSS shows it only on .is-viewed. */
.eafps-videos__viewed-badge {
    display: none;
    align-items: center;
    height: 28px;
    padding: 0 14px;
    margin-left: auto;          /* push to the right of the row */
    border-radius: 999px;
    background: rgba(39, 46, 71, 0.85);
    color: #FFF;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}
.eafps-videos button.eafps-videos__card.is-viewed .eafps-videos__viewed-badge {
    display: inline-flex;
}
.eafps-videos__card-chips {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.eafps-videos__chip {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 14px;
    border-radius: 999px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    white-space: nowrap;
}
.eafps-videos__chip--procedure {
    background: var(--eafps-procedure-bg);
    color: var(--eafps-procedure-fg);
}
.eafps-videos__chip--topic {
    background: var(--eafps-topic-bg);
    color: var(--eafps-topic-fg);
}
.eafps-videos__card-body {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    color: #fff;
}
.eafps-videos__card-category {
    display: block;
    color: #FFF;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 170%;
    margin: 0;
}
.eafps-videos__card-divider {
    display: block;
    width: 60px;
    height: 1px;
    background: #E3E9F6;
    /* 10px of spacing above and below the 1px line.
       Using margin (not padding) because with box-sizing:border-box, 1px height
       can't contain 20px of padding — the line wouldn't render. Visual result is
       identical to "padding 10px 0" on a non-collapsed element. */
    margin: 10px 0;
}
.eafps-videos__card-title {
    display: block;
    color: #FFF;
    font-family: 'Butler', 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0;
}
/* Authors line — under the title, joined with " - " in PHP. */
.eafps-videos__card-authors {
    display: block;
    color: #FFF;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4;
    margin: 6px 0 0;
    opacity: 0.95;
}

/* ── Inline player panel ──────────────────── */
.eafps-videos__player-panel {
    flex: 0 0 100%;
    width: 100%;
    background: #FFF;
    border: 1px solid var(--eafps-parme-clair);
    border-radius: 18px;
    padding: 24px;
    position: relative;
    box-shadow: 0 8px 30px rgba(39, 46, 71, 0.12);
    order: 0;
}
.eafps-videos__player-panel[hidden] { display: none !important; }
.eafps-videos__player-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--eafps-parme-tres-clair);
    border: 1px solid var(--eafps-parme-clair);
    border-radius: 50%;
    color: var(--eafps-marine);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    z-index: 2;
}
.eafps-videos__player-close:hover {
    background: var(--eafps-turquoise);
    color: #FFF;
    border-color: var(--eafps-turquoise);
}
.eafps-videos__player-frame {
    /* Cap the player height to 75% of the viewport while keeping the 16:9 aspect ratio.
       max-width: 75vh * 16/9 = the width that would produce a 75vh-tall video at 16:9.
       On narrower containers, the video shrinks to fit. Centered horizontally. */
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: calc(75vh * 16 / 9);
    max-height: 75vh;
    margin: 0 auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.eafps-videos__player-frame iframe,
.eafps-videos__player-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}
.eafps-videos__player-title {
    margin: 18px 0 0;
    font-family: 'Butler', 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: 26px;
    font-weight: 400;
    color: var(--eafps-marine);
    line-height: 1.2;
    padding-right: 56px;
}

/* ── Load more ────────────────────────────── */
.eafps-videos__more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}
.eafps-videos .eafps-videos__more-btn,
.eafps-videos button.eafps-videos__more-btn {
    background: var(--eafps-pill-bg) !important;
    color: #FFF !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 16px 36px !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 13px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: normal !important;
    letter-spacing: normal !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
    box-shadow: none !important;
    text-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
}
.eafps-videos__more-btn:hover { background: #1b2236; transform: translateY(-1px); }
.eafps-videos__more-btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ── Responsive ───────────────────────────── */


/* Salient breakpoints: 1300 (laptop) / 1000 (tablet) / 690 (phone).
   Card grid: 3 cols ≥ 1300, 2 cols 1000–1300, 1 col ≤ 1000 (no per-card min-width). */

@media (max-width: 1300px) {
    /* 2-column card grid */
    .eafps-videos__grid > .eafps-videos__card {
        flex-basis: calc((100% - 40px) / 2);
    }
    .eafps-videos__card-title    { font-size: 20px; }
    .eafps-videos__card-category { font-size: 15px; }
}

@media (max-width: 1000px) {
    /* Sidebar stacks above the content */
    .eafps-videos__layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .eafps-videos__sidebar {
        max-height: none;
        overflow: visible;
        transform: none !important; /* kill any leftover sticky transform on resize */
    }
    .eafps-videos__sidebar-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px 16px;
    }
    /* Search fields : 2-up topic/procedure, full-width text */
    .eafps-videos__field--topic,
    .eafps-videos__field--procedure {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }
    .eafps-videos__field--text {
        flex: 1 1 100%;
        min-width: 0;
    }
    .eafps-videos__submit,
    .eafps-videos button.eafps-videos__submit {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    /* 1-column card grid */
    .eafps-videos__grid > .eafps-videos__card { flex-basis: 100%; }
    .eafps-videos__card-title { font-size: 18px; }
}

@media (max-width: 690px) {
    .eafps-videos__grid { gap: 24px; }
    .eafps-videos__card-title { font-size: 16px; }

    .eafps-videos__searchbar {
        flex-direction: column;
        align-items: stretch;
    }
    .eafps-videos__field,
    .eafps-videos__field--topic,
    .eafps-videos__field--procedure,
    .eafps-videos__field--text {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }
    .eafps-videos__submit,
    .eafps-videos button.eafps-videos__submit {
        align-self: center !important;
        width: auto !important;
        margin: 0 !important;
    }
    .eafps-videos__sidebar-list { flex-direction: column; }
}
