/**
 * EditorialFootage — homepage (wire-service redesign, 2026)
 * Loaded only by frontend/index.blade.php. All rules scoped under .ef.
 *
 * Palette
 *   ink      #101820  newsroom ink (hero, contribute band)
 *   ink-2    #1B2530  raised ink panels
 *   paper    #FFFFFF
 *   wash     #F2F4F6  cool section wash
 *   signal   #C8102E  wire red — "latest" signal only
 *   action   #0F5FC4  interactive (derived from brand #1887F2, darkened for AA)
 *   slate    #55616E  secondary text
 *   hairline #D9DEE3
 *
 * Type
 *   display/body  Archivo
 *   utility       IBM Plex Mono (timecodes, datelines, clip IDs, figures)
 */

/* Tokens live on :root so components outside the .ef wrapper
   (site header ef-nav, site footer ef-sitefooter) resolve them too. */
:root {
    --ink: #101820;
    --ink-2: #1B2530;
    --paper: #ffffff;
    --wash: #F2F4F6;
    --signal: #C8102E;
    --action: #0F5FC4;
    --action-bright: #1887F2;
    --slate: #55616E;
    --hairline: #D9DEE3;
    --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
}

.ef {
    font-family: var(--font-display);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.5;
}

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

.ef a {
    color: var(--action);
    text-decoration: none;
}

.ef a:hover {
    color: var(--action-bright);
}

.ef :focus-visible {
    outline: 2px solid var(--action-bright);
    outline-offset: 2px;
}

/* Mono metadata: datelines, timecodes, IDs */
.ef-meta {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--slate);
}

/* ============================================================
   Hero — full-bleed ink masthead, left-set type
   ============================================================ */
.ef-hero {
    position: relative;
    background: var(--ink);
    overflow: hidden;
}

.ef-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ef-hero__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.ef-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(16, 24, 32, 0.94) 0%, rgba(16, 24, 32, 0.72) 48%, rgba(16, 24, 32, 0.35) 100%);
}

.ef-hero__inner {
    position: relative;
    z-index: 1;
    padding: clamp(64px, 9vw, 128px) 0 clamp(36px, 5vw, 56px);
    max-width: 780px;
}

.ef-hero__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #9FB4C8;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.ef-hero__eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--signal);
}

.ef-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.5vw, 3.35rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 18px;
}

.ef-hero__sub {
    font-size: clamp(0.98rem, 1.4vw, 1.12rem);
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    max-width: 560px;
    margin: 0 0 30px;
}

/* Search desk */
.ef-search {
    display: flex;
    max-width: 620px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.ef-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    padding: 17px 20px;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--ink);
}

.ef-search input::placeholder {
    color: #8894A0;
}

.ef-search button {
    border: 0;
    cursor: pointer;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0 30px;
    transition: background 0.2s ease;
}

.ef-search button:hover {
    background: var(--action);
}

.ef-hero__trending {
    margin-top: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.ef-hero__trending a {
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    margin: 0 4px;
    padding-bottom: 1px;
    transition: border-color 0.2s ease;
}

.ef-hero__trending a:hover {
    color: #fff;
    border-color: var(--signal);
}

/* Stat rail along the hero base */
.ef-hero__stats {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin-top: clamp(40px, 6vw, 72px);
}

.ef-hero__stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.ef-stat {
    padding: 20px 24px 22px 0;
}

.ef-stat + .ef-stat {
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.ef-stat strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
}

.ef-stat span {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   Wire ticker — the signature element
   ============================================================ */
.ef-ticker {
    display: flex;
    align-items: stretch;
    background: var(--ink-2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.ef-ticker__label {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--signal);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 13px 22px;
    white-space: nowrap;
    z-index: 1;
}

.ef-ticker__label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: ef-pulse 1.6s ease-in-out infinite;
}

.ef-ticker__viewport {
    flex: 1;
    min-width: 0;
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 60px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 60px), transparent 100%);
}

.ef-ticker__track {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 100%;
    animation: ef-wire 70s linear infinite;
}

.ef-ticker:hover .ef-ticker__track,
.ef-ticker:focus-within .ef-ticker__track {
    animation-play-state: paused;
}

.ef .ef-ticker__item {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding: 0 34px;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.86rem;
}

.ef .ef-ticker__item:hover {
    color: #fff;
}

.ef-ticker__item time,
.ef-ticker__item .ef-ticker__place {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #8FA3B8;
}

.ef-ticker__item .ef-ticker__place {
    color: var(--action-bright);
}

@keyframes ef-wire {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

@keyframes ef-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

/* ============================================================
   Section shells
   ============================================================ */
.ef-section {
    padding: clamp(52px, 7vw, 84px) 0;
}

.ef-section--wash {
    background: var(--wash);
}

.ef-sechead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 14px;
    margin-bottom: 30px;
}

.ef-sechead h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin: 0;
    color: var(--ink);
}

.ef-sechead p {
    margin: 6px 0 0;
    font-size: 0.92rem;
    color: var(--slate);
}

.ef-sechead .ef-viewall {
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.ef-sechead .ef-viewall:hover {
    color: var(--action);
    border-color: var(--action);
}

/* ============================================================
   Consumer-ready packages — lead story + list
   ============================================================ */
.ef-packages {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 34px;
}

.ef-lead {
    display: block;
    position: relative;
    background: var(--ink);
    overflow: hidden;
    min-height: 380px;
}

/* Covers the full grid item, whose height follows the package list column */
.ef-lead img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease, transform 0.4s ease;
}

.ef-lead:hover img {
    opacity: 0.85;
    transform: scale(1.015);
}

.ef-lead__body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 90px 26px 24px;
    background: linear-gradient(180deg, rgba(16, 24, 32, 0) 0%, rgba(16, 24, 32, 0.88) 62%);
}

.ef-lead__dateline {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: var(--signal);
    display: inline-block;
    padding: 4px 9px;
    margin-bottom: 12px;
}

.ef-lead h3 {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.015em;
    color: #fff;
    margin: 0 0 10px;
}

.ef-lead .ef-meta {
    color: rgba(255, 255, 255, 0.65);
}

.ef-pkglist {
    display: flex;
    flex-direction: column;
}

.ef-pkg {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--hairline);
    align-items: center;
}

.ef-pkg:first-child {
    padding-top: 0;
}

.ef-pkg img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--ink-2);
}

.ef-pkg h3 {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 6px;
    transition: color 0.15s ease;
}

.ef-pkg:hover h3 {
    color: var(--action);
}

/* ============================================================
   Coverage desks
   ============================================================ */
.ef-desks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ef-desk {
    display: block;
    background: var(--ink);
    overflow: hidden;
}

.ef-desk img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: opacity 0.25s ease, transform 0.4s ease;
}

.ef-desk:hover img {
    opacity: 0.8;
    transform: scale(1.03);
}

.ef-desk__bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    background: var(--ink);
    color: #fff;
    padding: 12px 14px;
    border-top: 2px solid var(--signal);
}

.ef-desk__bar strong {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
}

.ef-desk__bar code {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #8FA3B8;
}

/* ============================================================
   Latest footage — archive grid
   ============================================================ */
.ef-archive {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px 18px;
}

.ef-clip {
    display: block;
}

.ef-clip__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--ink-2);
    overflow: hidden;
}

.ef-clip__frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* hover preview video injected by frontend.partials.preload */
.ef-clip__frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ef-clip:hover .ef-clip__frame video {
    opacity: 1;
}

.ef-clip__quality {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    padding: 3px 7px;
}

.ef-clip__duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #fff;
    background: rgba(16, 24, 32, 0.85);
    padding: 3px 7px;
}

.ef-clip h3 {
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.32;
    letter-spacing: -0.005em;
    color: var(--ink);
    margin: 10px 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.ef-clip:hover h3 {
    color: var(--action);
}

.ef-clip .ef-meta {
    font-size: 0.66rem;
}

/* ============================================================
   Working with the agency
   ============================================================ */
.ef-agency {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.ef-agency__col {
    border-top: 2px solid var(--ink);
    padding-top: 18px;
}

.ef-agency__col .ef-meta {
    color: var(--signal);
}

.ef-agency__col h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 10px 0 10px;
    color: var(--ink);
}

.ef-agency__col p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--slate);
    margin: 0;
}

/* ============================================================
   Contribute band
   ============================================================ */
.ef-contribute {
    background: var(--ink);
    border-top: 3px solid var(--signal);
    padding: clamp(56px, 7vw, 88px) 0;
}

.ef-contribute__inner {
    max-width: 640px;
}

.ef-contribute h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #fff;
    margin: 14px 0 16px;
}

.ef-contribute p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 28px;
}

.ef-contribute .ef-meta {
    color: #8FA3B8;
}

.ef .ef-btn {
    display: inline-block;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 15px 32px;
    border: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.ef .ef-btn:hover {
    background: var(--action-bright);
    color: #fff;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
    .ef-packages {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ef-lead {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .ef-desks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .ef-agency {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 575px) {
    .ef-hero__stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .ef-stat {
        padding: 14px 14px 16px 0;
    }

    .ef-stat:nth-child(3) {
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        padding-left: 0;
        border-left: 0;
    }

    .ef-stat:nth-child(4) {
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .ef-search button {
        padding: 0 18px;
    }

    .ef-archive {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ef-pkg {
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .ef-ticker__label {
        padding: 12px 14px;
    }

    .ef-sechead {
        flex-wrap: wrap;
    }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .ef-ticker__track {
        animation: none;
    }

    .ef-ticker__viewport {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .ef-ticker__track[aria-hidden="true"] {
        display: none;
    }

    .ef-lead img,
    .ef-desk img,
    .ef-lead:hover img,
    .ef-desk:hover img {
        transition: none;
        transform: none;
    }

    .ef-ticker__label::before {
        animation: none;
    }
}

/* ============================================================
   SHARED PAGE COMPONENTS (all frontend pages)
   ============================================================ */

/* ---- Page header band (ink) ---- */
.ef-pagehead {
    position: relative;
    background: var(--ink);
    overflow: hidden;
}

.ef-pagehead__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
}

.ef-pagehead__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.ef-pagehead__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(16, 24, 32, 0.94) 0%, rgba(16, 24, 32, 0.7) 55%, rgba(16, 24, 32, 0.4) 100%);
}

.ef-pagehead__inner {
    position: relative;
    z-index: 1;
    padding: clamp(44px, 6vw, 76px) 0 clamp(36px, 5vw, 60px);
    max-width: 860px;
}

.ef-pagehead__inner--wide {
    max-width: none;
}

.ef-pagehead h1 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.6vw, 2.7rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 12px;
}

.ef-pagehead__sub {
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.8);
    max-width: 640px;
    margin: 0;
}

.ef-pagehead__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 18px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9FB4C8;
}

.ef-pagehead__meta strong {
    color: #fff;
    font-weight: 600;
}

.ef-pagehead .ef-search {
    margin-top: 26px;
}

/* ---- Breadcrumbs ---- */
.ef-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ef-crumbs li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #9FB4C8;
}

.ef-crumbs li + li::before {
    content: "/";
    color: #55616E;
}

.ef .ef-crumbs a {
    color: #C9D4DE;
}

.ef .ef-crumbs a:hover {
    color: #fff;
}

/* light variant on paper */
.ef-crumbs--light li {
    color: var(--slate);
}

.ef-crumbs--light li + li::before {
    color: var(--hairline);
}

.ef .ef-crumbs--light a {
    color: var(--ink);
}

.ef .ef-crumbs--light a:hover {
    color: var(--action);
}

/* ---- Filter chips ---- */
.ef-chipbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
}

.ef-chipbar__label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--slate);
    margin-right: 6px;
}

.ef .ef-chip {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid var(--hairline);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.ef .ef-chip:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.ef .ef-chip.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

/* ---- Generic grid ---- */
.ef-grid {
    display: grid;
    gap: 20px 18px;
}

.ef-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ef-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ef-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ef-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

@media (max-width: 991px) {
    .ef-grid--3, .ef-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ef-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
    .ef-grid--2, .ef-grid--3, .ef-grid--4 { grid-template-columns: 1fr; }
    .ef-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Collection / gallery card ---- */
.ef-card {
    display: block;
    background: var(--ink);
    overflow: hidden;
}

.ef-card__frame {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--ink-2);
    overflow: hidden;
}

.ef-card__frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease, transform 0.4s ease;
}

.ef-card:hover .ef-card__frame img {
    opacity: 0.8;
    transform: scale(1.03);
}

.ef-card__frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ef-card:hover .ef-card__frame video {
    opacity: 1;
}

.ef-card__count {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    padding: 3px 8px;
}

.ef-card__bar {
    display: block;
    background: var(--ink);
    color: #fff;
    padding: 12px 14px 13px;
    border-top: 2px solid var(--signal);
}

.ef-card__bar strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ef-card__bar span {
    display: block;
    margin-top: 5px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8FA3B8;
}

/* ---- Pagination (styles the shared pagination.custom partial) ---- */
.ef .pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 40px 0 0;
    padding: 0;
}

.ef .pagination .page-link {
    display: block;
    min-width: 38px;
    text-align: center;
    padding: 9px 12px;
    border: 1px solid var(--hairline);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.ef .pagination .page-link:hover {
    border-color: var(--ink);
}

.ef .pagination .page-item.active .page-link {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.ef .pagination .page-item.disabled .page-link {
    color: #9AA5B0;
    pointer-events: none;
}

/* ---- Prose (static pages) ---- */
.ef-prose {
    max-width: 720px;
    font-size: 1rem;
    line-height: 1.7;
    color: #2A343E;
}

.ef-prose h2 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink);
    border-top: 2px solid var(--ink);
    padding-top: 16px;
    margin: 44px 0 14px;
}

.ef-prose h2:first-child {
    margin-top: 0;
}

.ef-prose p {
    margin: 0 0 16px;
}

.ef-prose ul {
    margin: 0 0 16px;
    padding-left: 20px;
}

.ef-prose li {
    margin-bottom: 6px;
}

/* ---- Stat band ---- */
.ef-statband {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--hairline);
}

.ef-statband > div {
    padding: 26px 26px 28px 0;
}

.ef-statband > div + div {
    padding-left: 26px;
    border-left: 1px solid var(--hairline);
}

.ef-statband strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.ef-statband span {
    display: block;
    margin-top: 6px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--slate);
}

.ef-statband--grid4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 767px) {
    .ef-statband,
    .ef-statband--grid4 {
        grid-template-columns: 1fr;
    }

    .ef-statband > div {
        padding: 18px 0;
    }

    .ef-statband > div + div {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--hairline);
    }
}

/* ---- Split section (text + media) ---- */
.ef-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.ef-split__media img,
.ef-split__media video {
    display: block;
    width: 100%;
}

@media (max-width: 991px) {
    .ef-split {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ---- Forms ---- */
.ef-form {
    max-width: 720px;
}

.ef-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}

@media (max-width: 575px) {
    .ef-form__row {
        grid-template-columns: 1fr;
    }
}

.ef-field {
    margin-bottom: 18px;
}

.ef-field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 7px;
}

.ef-field input[type="text"],
.ef-field input[type="email"],
.ef-field input[type="password"],
.ef-field input[type="tel"],
.ef-field input[type="url"],
.ef-field textarea,
.ef-field select {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--hairline);
    background: var(--paper);
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--ink);
    outline: none;
    border-radius: 0;
    transition: border-color 0.15s ease;
}

.ef-field input:focus,
.ef-field textarea:focus,
.ef-field select:focus {
    border-color: var(--action);
}

.ef-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 22px;
    font-size: 0.88rem;
    color: var(--slate);
}

.ef-check input {
    margin-top: 3px;
    accent-color: var(--action);
}

.ef .ef-btn--ink {
    background: var(--ink);
    color: #fff;
}

.ef .ef-btn--ink:hover {
    background: var(--action);
    color: #fff;
}

/* ---- Alerts ---- */
.ef-alert {
    padding: 14px 16px;
    margin-bottom: 22px;
    font-size: 0.9rem;
    line-height: 1.5;
    border-left: 3px solid var(--slate);
    background: var(--wash);
    color: var(--ink);
}

.ef-alert strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ef-alert--success { border-left-color: #1E7B44; }
.ef-alert--success strong { color: #1E7B44; }
.ef-alert--error { border-left-color: var(--signal); }
.ef-alert--error strong { color: var(--signal); }
.ef-alert--warning { border-left-color: #B07A00; }
.ef-alert--warning strong { color: #B07A00; }

/* ---- Auth: full-viewport editorial split over register_bg.jpg.
   The usersession layout's header is position:absolute (main.min.css) and
   footer.custom is absolutely pinned to the body bottom — this section must
   be min-height:100vh with enough top/bottom padding to clear both. ---- */
.ef-authwrap {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--ink) url("../img/register_bg.jpg") no-repeat center center;
    background-size: cover;
    padding: 140px 0 130px;
}

.ef-authwrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(16, 24, 32, 0.96) 0%, rgba(16, 24, 32, 0.88) 42%, rgba(16, 24, 32, 0.62) 100%);
}

.ef-authwrap > .container {
    position: relative;
    z-index: 1;
}

.ef-authgrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.ef-authgrid--wide {
    grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
}

/* Left brand panel */
.ef-authbrand {
    color: #fff;
}

.ef-authbrand__eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--signal);
    margin-bottom: 18px;
}

.ef .ef-authbrand__eyebrow::before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 2px;
    background: var(--signal);
    vertical-align: middle;
    margin-right: 10px;
}

.ef-authbrand__title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 16px;
    max-width: 15ch;
}

.ef-authbrand__sub {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    max-width: 44ch;
    margin: 0 0 34px;
}

.ef-authbrand__points {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    max-width: 420px;
}

.ef-authbrand__points li {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
}

.ef-authbrand__points li strong {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    flex: 0 0 96px;
}

/* Right form card */
.ef-auth {
    background: var(--paper);
    border-top: 3px solid var(--signal);
    padding: 38px 40px 34px;
    box-shadow: 0 30px 70px rgba(4, 8, 12, 0.45);
}

.ef-auth h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 6px 0 22px;
}

.ef-auth .ef-meta {
    color: var(--signal);
}

.ef-auth__after {
    display: block;
    margin: 18px 0 0;
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.72);
}

.ef .ef-auth__after a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ef .ef-auth__after a:hover {
    color: var(--action-bright);
}

@media (max-width: 991px) {
    .ef-authwrap {
        padding: 120px 0 130px;
        align-items: flex-start;
    }
    .ef-authgrid,
    .ef-authgrid--wide {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        max-width: 560px;
        margin: 0 auto;
    }
    .ef-authbrand__sub {
        margin-bottom: 0;
    }
    .ef-authbrand__points {
        display: none;
    }
}

@media (max-width: 575px) {
    .ef-auth {
        padding: 28px 22px;
    }
    .ef-authbrand__title {
        max-width: none;
    }
}

/* ---- Video detail ---- */
.ef-watch {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 36px;
    align-items: start;
}

@media (max-width: 991px) {
    .ef-watch {
        grid-template-columns: 1fr;
    }
}

.ef-player {
    background: #000;
}

.ef-player video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.ef-specs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--hairline);
    border-top: 0;
}

.ef-specs > div {
    padding: 12px 14px;
}

.ef-specs > div + div {
    border-left: 1px solid var(--hairline);
}

.ef-specs dt {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate);
    margin: 0 0 3px;
}

.ef-specs dd {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink);
    margin: 0;
}

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

    .ef-specs > div:nth-child(3) {
        border-left: 0;
    }

    .ef-specs > div:nth-child(n+3) {
        border-top: 1px solid var(--hairline);
    }
}

.ef-watch h1 {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 10px 0 12px;
}

.ef-watch__caption {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #2A343E;
    margin: 0 0 18px;
}

.ef-watch__block {
    margin: 0 0 18px;
}

.ef-watch__block h4 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate);
    margin: 0 0 6px;
}

.ef-watch__block p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #2A343E;
    margin: 0;
    white-space: pre-line;
}

.ef-note {
    display: block;
    border-left: 3px solid var(--signal);
    background: var(--wash);
    padding: 12px 14px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: 20px;
}

.ef-note strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--signal);
    margin-bottom: 3px;
}

/* ---- Licensing box ---- */
.ef-license {
    border: 1px solid var(--hairline);
    padding: 20px;
}

.ef-license__title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--slate);
    margin: 0 0 14px;
}

.ef-license__opt {
    display: block;
    border: 1px solid var(--hairline);
    padding: 13px 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ef-license__opt input {
    position: absolute;
    opacity: 0;
}

.ef-license__opt.active {
    border-color: var(--ink);
    background: var(--wash);
    box-shadow: inset 3px 0 0 var(--ink);
}

.ef-license__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.ef-license__row strong {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
}

.ef-license__row .ef-price {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

.ef-license__opt small {
    display: block;
    margin-top: 3px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    color: var(--slate);
}

.ef-license__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-top: 2px solid var(--ink);
    padding-top: 14px;
    margin-top: 16px;
}

.ef-license__total span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate);
}

.ef-license__total strong {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
}

.ef-license .ef-btn {
    width: 100%;
    text-align: center;
    margin-top: 14px;
}

/* ---- Steps (real sequence) ---- */
.ef-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    counter-reset: efstep;
}

.ef-steps > div {
    border-top: 2px solid var(--ink);
    padding-top: 16px;
    counter-increment: efstep;
}

.ef-steps > div::before {
    content: "0" counter(efstep);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--signal);
    margin-bottom: 10px;
}

.ef-steps h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 8px;
}

.ef-steps p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--slate);
    margin: 0;
}

@media (max-width: 767px) {
    .ef-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ---- FAQ ---- */
.ef-faq {
    max-width: 760px;
}

.ef-faq details {
    border-bottom: 1px solid var(--hairline);
}

.ef-faq details:first-child {
    border-top: 2px solid var(--ink);
}

.ef-faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 2px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}

.ef-faq summary::-webkit-details-marker {
    display: none;
}

.ef-faq summary::after {
    content: "+";
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--slate);
}

.ef-faq details[open] summary::after {
    content: "\2212";
}

.ef-faq details p {
    padding: 0 2px 18px;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--slate);
    max-width: 640px;
}

/* ---- Logo strip ---- */
.ef-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px 44px;
}

.ef-logos img {
    height: 30px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.65;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.ef-logos img:hover {
    filter: none;
    opacity: 1;
}

/* ---- Credit plans ---- */
.ef-plans {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ef-plan {
    border: 1px solid var(--hairline);
    border-top: 2px solid var(--ink);
    padding: 22px 20px 24px;
    text-align: left;
    background: var(--paper);
}

.ef-plan--featured {
    border-color: var(--ink);
    background: var(--ink);
}

.ef-plan__label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate);
}

.ef-plan--featured .ef-plan__label {
    color: #8FA3B8;
}

.ef-plan strong.ef-plan__price {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--ink);
    margin: 10px 0 16px;
}

.ef-plan--featured strong.ef-plan__price {
    color: #fff;
}

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

@media (max-width: 575px) {
    .ef-plans {
        grid-template-columns: 1fr;
    }
}

/* ---- Empty state ---- */
.ef-empty {
    border: 1px dashed var(--hairline);
    padding: 56px 24px;
    text-align: center;
}

.ef-empty h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 8px;
}

.ef-empty p {
    font-size: 0.92rem;
    color: var(--slate);
    margin: 0;
}

/* ---- Share links ---- */
.ef-share {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ef-share span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9FB4C8;
}

.ef .ef-share a {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #C9D4DE;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1px;
}

.ef .ef-share a:hover {
    color: #fff;
    border-color: var(--signal);
}

/* ---- Desk tile description (categories page) ---- */
.ef-desk__desc {
    display: block;
    background: var(--ink);
    color: #8FA3B8;
    font-size: 0.8rem;
    line-height: 1.45;
    padding: 0 14px 13px;
}

/* Auth layout footer (footer.custom, main.min.css) is absolutely pinned to
   the body bottom and floats over .ef-authwrap's dark photo — keep it
   transparent, just refine the link treatment. */
footer.custom {
    z-index: 2;
}

footer.custom nav a {
    font-family: var(--font-display);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.15s ease;
}

footer.custom nav a:hover,
footer.custom nav a:focus {
    color: #fff;
    text-decoration: none;
}

/* ============================================================
   Site header (header.ef-nav) — replaces the 2019 navbar.
   main.min.css keeps `header` absolute (overlay) on the homepage
   and auth layout, and relative on body.static pages; we restyle
   everything inside with our own class names so the old
   .navbar/.buttons rules never match.
   ============================================================ */
header.ef-nav {
    background: #0E141B;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--font-display);
}

body:not(.static) header.ef-nav {
    background: rgba(14, 20, 27, 0.88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.ef-nav__inner {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 72px;
    padding: 0 clamp(18px, 3vw, 44px);
}

.ef-nav__brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ef-nav__brand img {
    display: block;
    height: 34px;
    width: auto;
}

.ef-nav__menu {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: 1;
    min-width: 0;
}

.ef-nav__links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
}

.ef-nav__links a {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    padding: 26px 12px;
    position: relative;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.ef-nav__links a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 16px;
    height: 2px;
    background: var(--signal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.18s ease;
}

.ef-nav__links a:hover,
.ef-nav__links a:focus,
.ef-nav__links li.is-active a {
    color: #fff;
    text-decoration: none;
}

.ef-nav__links a:hover::after,
.ef-nav__links li.is-active a::after {
    transform: scaleX(1);
}

.ef-nav__search {
    position: relative;
    flex: 1;
    max-width: 400px;
    margin-left: auto;
}

.ef-nav__search input {
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.86rem;
    padding: 0 44px 0 14px;
    border-radius: 0;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ef-nav__search input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.ef-nav__search input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
}

.ef-nav__search button {
    position: absolute;
    right: 0;
    top: 0;
    width: 42px;
    height: 40px;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ef-nav__search button:hover {
    color: #fff;
}

.ef-nav__search button svg {
    width: 17px;
    height: 17px;
    display: block;
}

.ef-nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ef-nav__actions form {
    margin: 0;
}

.ef-nav__btn {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: none;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 0;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ef-nav__btn:hover,
.ef-nav__btn:focus {
    color: #fff;
    border-color: #fff;
    text-decoration: none;
}

.ef-nav__btn--solid {
    background: var(--signal);
    border-color: var(--signal);
}

.ef-nav__btn--solid:hover,
.ef-nav__btn--solid:focus {
    background: #A90D27;
    border-color: #A90D27;
}

.ef-nav__btn--plain {
    border-color: transparent;
    color: rgba(255, 255, 255, 0.7);
    padding-left: 10px;
    padding-right: 10px;
}

.ef-nav__btn--plain:hover,
.ef-nav__btn--plain:focus {
    color: #fff;
    border-color: transparent;
}

.ef-nav__count {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--action-bright);
}

.ef-nav__toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: none;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.ef-nav__toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

@media (max-width: 1279px) {
    .ef-nav__links a {
        padding-left: 9px;
        padding-right: 9px;
    }
    .ef-nav__search {
        max-width: 280px;
    }
}

@media (max-width: 991px) {
    .ef-nav__inner {
        min-height: 62px;
        flex-wrap: wrap;
    }
    .ef-nav__brand img {
        height: 28px;
    }
    .ef-nav__toggle {
        display: flex;
    }
    .ef-nav__menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        flex-basis: 100%;
        gap: 0;
        padding: 6px 0 22px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
    .ef-nav__menu.is-open {
        display: flex;
    }
    .ef-nav__links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .ef-nav__links a {
        padding: 14px 2px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .ef-nav__links a::after {
        display: none;
    }
    .ef-nav__search {
        max-width: none;
        margin: 16px 0 14px;
    }
    .ef-nav__actions {
        flex-wrap: wrap;
    }
    header.ef-nav:has(.ef-nav__menu.is-open) {
        background: #0E141B;
    }
}

/* ============================================================
   Site footer (footer.ef-sitefooter) — replaces the 2019 widget
   footer on layout2019 / layoutstatic2019.
   ============================================================ */
footer.ef-sitefooter {
    background: #0E141B;
    border-top: 3px solid var(--signal);
    padding: 0;
    font-family: var(--font-display);
}

.ef-sitefooter__grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr);
    gap: clamp(28px, 4vw, 64px);
    padding: 58px 0 48px;
}

.ef-sitefooter__brand img {
    display: block;
    height: 32px;
    width: auto;
    margin-bottom: 18px;
}

.ef-sitefooter__brand p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.6);
    max-width: 34ch;
    margin: 0 0 20px;
}

.ef-sitefooter__wire {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--signal);
}

.ef-sitefooter__title {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 4px 0 16px;
}

footer.ef-sitefooter ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer.ef-sitefooter ul li {
    margin: 0 0 10px;
}

footer.ef-sitefooter ul li a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.15s ease;
}

footer.ef-sitefooter ul li a:hover,
footer.ef-sitefooter ul li a:focus {
    color: #fff;
    text-decoration: none;
}

.ef-sitefooter__cta p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 16px;
}

.ef-sitefooter__cta .ef-nav__btn {
    border-color: rgba(255, 255, 255, 0.35);
}

.ef-sitefooter__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.ef-sitefooter__copy {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

.ef-sitefooter__legal {
    display: flex;
    gap: 20px;
}

.ef-sitefooter__legal a {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.ef-sitefooter__legal a:hover,
.ef-sitefooter__legal a:focus {
    color: #fff;
    text-decoration: none;
}

.ef-sitefooter__social {
    display: flex;
    gap: 18px;
}

.ef-sitefooter__social a {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.ef-sitefooter__social a:hover,
.ef-sitefooter__social a:focus {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 991px) {
    .ef-sitefooter__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 44px 0 36px;
    }
    .ef-sitefooter__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575px) {
    .ef-sitefooter__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
    .ef-sitefooter__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
