.home-feed-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.home-feed {
    --feed-border: #294959;
    --feed-ink: #e9f8ff;
    --feed-muted: #bbcfdd;
    --feed-accent: #99f4ef;
    min-width: 0;
    margin: 1rem 0 1.45rem;
    padding: 0.85rem clamp(0.65rem, 2vw, 1.35rem) 0.65rem;
    border: 1px solid rgba(104, 196, 230, 0.24);
    border-radius: 1.2rem;
    background:
        radial-gradient(ellipse at 12% 0%, rgba(27, 160, 176, 0.12), transparent 62%),
        linear-gradient(145deg, rgba(10, 26, 35, 0.83), rgba(6, 18, 27, 0.79));
    box-shadow: 0 14px 38px #04101b42, inset 0 1px #a6e7ff14;
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    color: var(--feed-ink);
}

.home-feed [hidden] { display: none !important; }

.home-feed__toolbar,
.home-feed__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

.home-feed__toolbar { margin-bottom: 0.75rem; }

.home-feed__tabs {
    position: relative;
    display: flex;
    max-width: 100%;
    min-width: 0;
    gap: 0.15rem;
    overflow-x: auto;
    scrollbar-width: thin;
    padding: 0.2rem;
    border: 1px solid #345161;
    border-radius: 1.6rem;
    background: #0a1723;
    isolation: isolate;
}

.home-feed__indicator {
    position: absolute;
    z-index: -1;
    inset: 0.2rem auto 0.2rem 0;
    width: var(--feed-tab-width, 0);
    transform: translateX(var(--feed-tab-offset, 0));
    border-radius: 1.3rem;
    background: linear-gradient(115deg, #94f3df, #67c8fa);
    box-shadow: 0 0 12px #6ee0e658, inset 0 1px #e0fff7a0;
    transition: transform 260ms ease, width 260ms ease;
    pointer-events: none;
}

.home-feed button {
    font: inherit;
    color: var(--feed-ink);
    border: 1px solid transparent;
    cursor: pointer;
    touch-action: manipulation;
}

.home-feed__tabs a {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: none;
    min-height: 2.3rem;
    padding: 0.28rem clamp(0.58rem, 1.8vw, 1.15rem);
    border-radius: 1.2rem;
    background: transparent;
    color: var(--feed-ink);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    touch-action: manipulation;
}

.home-feed__tabs a[aria-selected="true"] { color: #102931; }
.home-feed:not([data-enhanced], :has(.home-feed__panel:target)) .home-feed__tabs a:first-of-type {
    background: #87e8ed;
    color: #102931;
}

.home-feed:not([data-enhanced]) .home-feed__panel:not(:first-child, :target),
.home-feed:not([data-enhanced]):has(.home-feed__panel:target) .home-feed__panel:not(:target) { display: none; }

.home-feed__pause,
.home-feed__arrows button {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 2.55rem;
    min-height: 2.55rem;
    padding: 0;
    border-color: var(--feed-border) !important;
    border-radius: 0.75rem;
    background: #112735;
}

.home-feed__pause-icon {
    width: 0.65rem;
    height: 0.78rem;
    border-inline: 0.19rem solid currentColor;
}

.home-feed__pause[aria-pressed="true"] .home-feed__pause-icon {
    width: 0;
    border: 0.39rem solid transparent;
    border-left: 0.65rem solid currentColor;
    border-right: 0;
}

.home-feed__arrows { display: flex; gap: 0.35rem; }
.home-feed__arrows button { font-size: 1.35rem; }
.home-feed__arrows button:disabled { opacity: 0.4; cursor: default; }

.home-feed__header { min-height: 2.55rem; }
.home-feed__header h2 {
    margin: 0;
    color: var(--feed-ink);
    font-size: clamp(1.06rem, 2.5vw, 1.35rem);
    font-weight: 720;
    overflow-wrap: anywhere;
}

.home-feed__viewport {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    border-radius: 0.9rem;
}

.home-feed[data-enhanced] .home-feed__viewport { scrollbar-width: none; }
.home-feed[data-enhanced] .home-feed__viewport::-webkit-scrollbar { display: none; }

.home-feed__track {
    --feed-gap: 0.8rem;
    --feed-width: calc((100% - 3 * var(--feed-gap)) / 4);
    display: flex;
    gap: var(--feed-gap);
    margin: 0;
    padding: 0.6rem 0.18rem 0.8rem;
    list-style: none;
}

.home-feed__item {
    display: flex;
    flex: 0 0 var(--feed-width);
    min-width: 0;
    perspective: 900px;
}

.home-feed__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 11.5rem;
    padding: 0.85rem;
    overflow: hidden;
    border: 1px solid #355d72;
    border-radius: 0.92rem;
    background: linear-gradient(150deg, #203b50, #132738 68%);
    box-shadow: 0 5px 11px #07111a99, inset 0 1px #80cced32;
    color: var(--feed-ink);
    text-decoration: none;
    transform: rotateY(-2deg) rotateX(2deg);
    transition: border-color 180ms ease, background-color 180ms ease;
}

.home-feed__item:nth-child(even) .home-feed__card { transform: rotateY(2deg) rotateX(2deg); }
.home-feed__card:hover, .home-feed__card:focus-visible { border-color: var(--feed-accent); color: white; }
.home-feed :focus-visible { outline: 2px solid #a9fff5; outline-offset: -2px; }

.home-feed__card-title { display: flex; align-items: flex-start; gap: 0.45rem; }
.home-feed__card-title img { flex: none; border-radius: 0.4rem; object-fit: contain; }
.home-feed__card h3,
.home-feed__card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.home-feed__card h3 { margin: 0; font-size: 1rem; line-height: 1.23; font-weight: 750; -webkit-line-clamp: 2; }
.home-feed__card p { margin: 0.44rem 0 0.3rem; color: var(--feed-muted); font-size: 0.875rem; line-height: 1.4; -webkit-line-clamp: 4; }
.home-feed__link {
    align-self: flex-end;
    margin-top: auto;
    padding: 0;
    border-radius: 0;
    background: none;
    color: #7edb2d;
    font-size: 0.84rem;
    font-weight: 700;
}
.home-feed__link span { margin-left: 0.15rem; }

.home-feed__footer { display: flex; justify-content: flex-end; }
.home-feed__footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.5rem;
    color: var(--feed-accent);
    font-size: 0.875rem;
    text-underline-offset: 0.22em;
}

@media (max-width: 1199px) {
    .home-feed__track { --feed-width: calc((100% - 2 * var(--feed-gap)) / 3); }
}

@media (max-width: 991px) {
    .home-feed__track { --feed-width: calc((100% - var(--feed-gap)) / 2); }
    .home-feed .home-feed__item .home-feed__card { transform: rotateX(1deg); }
}

@media (max-width: 575px) {
    .home-feed__track { --feed-width: 87%; --feed-gap: 0.55rem; }
    .home-feed .home-feed__item .home-feed__card { transform: none; }
    .home-feed__tabs a { min-height: 2.65rem; }
    .home-feed__header { min-height: 2.75rem; }
    .home-feed__pause, .home-feed__arrows button { width: 2.75rem; min-height: 2.75rem; }
    .home-feed__card-title img { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .home-feed *, .home-feed *::before, .home-feed *::after { transition: none !important; }
}

/* home-feed toolbar alignment v1 */
.home-feed {
    position: relative;
}

.home-feed__toolbar {
    justify-content: center;
}

.home-feed__pause,
.home-feed__arrows {
    position: absolute;
    top: 0.98rem;
    z-index: 2;
}

.home-feed__arrows {
    right: clamp(0.65rem, 2vw, 1.35rem);
}

.home-feed__pause {
    right: calc(clamp(0.65rem, 2vw, 1.35rem) + 5.8rem);
}

@media (max-width: 700px) {
    .home-feed__toolbar {
        padding-bottom: 3.1rem;
    }

    .home-feed__pause,
    .home-feed__arrows {
        top: 4.1rem;
    }
}

/* home-feed centered heading v2 */
.home-feed__header {
    justify-content: center;
    text-align: center;
}

.home-feed__header h2 {
    width: 100%;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    font-size: clamp(1.15rem, 2.3vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.35;
}

/* home-feed compact top row v3 */
@media (min-width: 1001px) {
    .home-feed__header {
        min-height: 0;
    }

    .home-feed__header h2 {
        position: absolute;
        top: 1.55rem;
        left: clamp(0.65rem, 2vw, 1.35rem);
        width: auto;
        max-width: 30%;
        margin: 0;
        text-align: left;
        font-family: "Segoe UI", "Inter", system-ui, sans-serif;
        font-size: clamp(1rem, 1.35vw, 1.15rem);
        font-weight: 650;
        letter-spacing: 0;
        line-height: 1.4;
    }

    .home-feed__card {
        height: 14rem;
    }
}

@media (max-width: 1000px) {
    .home-feed__header h2 {
        font-family: "Segoe UI", "Inter", system-ui, sans-serif;
        font-weight: 650;
    }
}

/* home-feed card spacing v4 */
@media (min-width: 1001px) {
    .home-feed__toolbar { margin-bottom: 0.35rem; }
    .home-feed__track { padding-top: 0.35rem; }
    .home-feed__card { height: 17.5rem; }
}

/* home-feed logo and title v5 */
.home-feed__card-title {
    align-items: center;
}

.home-feed__card-title img {
    width: 34px;
    height: 34px;
}

.home-feed__card h3 {
    font-size: 1.16rem;
    line-height: 1.25;
}

/* home-feed sharp text v6 */
.home-feed .home-feed__item .home-feed__card {
    transform: none;
}

/* home-feed longer descriptions v7 */
@media (min-width: 1001px) {
    .home-feed__card p {
        -webkit-line-clamp: 9;
    }
}

/* home-feed green neon hover v8 */
.home-feed__card {
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.home-feed__card:hover,
.home-feed__card:focus-visible {
    border-color: #55d315;
    box-shadow: 0 0 0 1px rgba(85,211,21,0.35),
                0 0 18px rgba(85,211,21,0.32);
}

/* home-feed mobile compact header v1 */
@media (max-width: 575px) {
    .home-feed__toolbar {
        justify-content: center;
        padding-bottom: 0;
        margin-bottom: 0.35rem;
    }

    .home-feed__tabs {
        overflow: visible;
        border: none;
        background: transparent;
        padding: 0;
    }

    .home-feed__indicator {
        display: none;
    }

    .home-feed[data-enhanced] .home-feed__tabs a:not([aria-selected="true"]),
    .home-feed:not([data-enhanced]) .home-feed__tabs a:not(:first-of-type) {
        display: none;
    }

    .home-feed__tabs a[aria-selected="true"],
    .home-feed:not([data-enhanced]) .home-feed__tabs a:first-of-type {
        background: linear-gradient(115deg, #94f3df, #67c8fa);
        color: #102931;
        box-shadow: 0 0 12px rgba(110, 224, 230, 0.25);
        padding-inline: 1.25rem;
        border-radius: 2rem;
    }

    .home-feed .home-feed__pause,
    .home-feed .home-feed__arrows {
        display: none !important;
    }

    .home-feed__header {
        min-height: auto;
        margin-bottom: 0.25rem;
    }
}

/* Mobile: show only the active section heading */
@media (max-width: 575px) {
    .home-feed .home-feed__toolbar {
        display: none !important;
    }
}


/* HOME_FEED_DARK_GRADIENT_V1 */
.home-feed {
    background:
        radial-gradient(
            ellipse 75% 90% at 50% 0%,
            rgba(20, 75, 100, 0.22),
            transparent 80%
        ),
        linear-gradient(
            180deg,
            rgba(8, 32, 49, 0.96) 0%,
            rgba(5, 20, 33, 0.88) 38%,
            rgba(2, 8, 16, 0.68) 75%,
            rgba(0, 0, 0, 0.52) 100%
        ) !important;

    border-bottom-color: transparent !important;
    box-shadow: inset 0 1px rgba(166, 231, 255, 0.06) !important;
}


/* HOME_FEED_SOFT_EDGES_V2 */
.home-feed {
    position: relative;
    border-color: transparent !important;
}

.home-feed::before {
    content: "";
    position: absolute;
    inset: -1px;
    border: 1px solid rgba(104, 196, 230, 0.24);
    border-radius: inherit;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 25%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 25%,
        transparent 100%
    );
}


/* HOME_FEED_MOBILE_LOGOS_TALL_CARDS_V1 */
@media (max-width: 600px) {
    .home-feed__card-title img {
        display: block !important;
        width: 34px;
        height: 34px;
        object-fit: contain;
    }

    .home-feed__card {
        height: 22rem !important;
    }

    .home-feed__card p {
        -webkit-line-clamp: 12;
    }
}


/* HOME_FEED_FIXED_LOGO_ROW_V1 */
.home-feed__card-title {
    min-height: 34px;
    align-items: center;
}

@media (max-width: 600px) {
    .home-feed__card {
        height: 23.25rem !important;
    }

    .home-feed__card p {
        -webkit-line-clamp: 13;
    }
}


/* HOME_FEED_MOBILE_COMPACT_HEADER_V2 */
@media (max-width: 575px) {
    .home-feed {
        margin-top: 4px !important;
        padding-top: 6px !important;
    }

    .home-feed__header {
        min-height: 0 !important;
        margin-bottom: 0 !important;
    }

    .home-feed__track {
        padding-top: 2px !important;
    }
}


/* HOME_FEED_MOBILE_TITLE_SPACING_V3 */
@media (max-width: 575px) {
    .home-feed__header {
        margin-bottom: 9px !important;
    }
}


/* HOME_FEED_MOBILE_SHORTER_CARDS_V1 */
@media (max-width: 600px) {
    .home-feed__card {
        height: 22rem !important;
    }

    .home-feed {
        padding-bottom: 0.35rem !important;
    }

    .home-feed__card p {
        -webkit-line-clamp: 13;
    }
}

/* HOME_FEED_MOBILE_FINAL_SPACING_V1 */
@media (max-width: 600px) {
    .home-feed {
        margin-top: 16px !important;
    }

    .home-feed__card {
        height: 20rem !important;
    }

    .home-feed__card p {
        -webkit-line-clamp: 10 !important;
    }
}

/* HOME_FEED_MOBILE_CARD_304PX */
@media (max-width: 600px) {
    .home-feed__card {
        height: 19rem !important;
    }
}


/* HOME_FEED_GLASS_BACKGROUND_V1 */
.home-feed {
    background:
        radial-gradient(
            ellipse 75% 90% at 50% 0%,
            rgba(20, 75, 100, 0.18),
            transparent 80%
        ),
        linear-gradient(
            180deg,
            rgba(8, 32, 49, 0.78) 0%,
            rgba(5, 20, 33, 0.68) 38%,
            rgba(2, 8, 16, 0.48) 75%,
            rgba(0, 0, 0, 0.35) 100%
        ) !important;

    -webkit-backdrop-filter: blur(5px) !important;
    backdrop-filter: blur(5px) !important;
}

/* home-feed more glass v2 */
.home-feed {
    background:
        radial-gradient(ellipse at 50% 8%, rgba(38, 122, 176, 0.16), transparent 58%),
        linear-gradient(
            180deg,
            rgba(8, 28, 44, 0.50) 0%,
            rgba(7, 20, 31, 0.36) 60%,
            rgba(4, 10, 16, 0.20) 100%
        );
    border-color: rgba(116, 205, 238, 0.28);
    box-shadow: 0 14px 38px rgba(4, 16, 27, 0.24), inset 0 1px rgba(220, 245, 255, 0.16);
    -webkit-backdrop-filter: blur(13px) saturate(118%);
    backdrop-filter: blur(13px) saturate(118%);
}

/* HOME_FEED_RECOMMENDED_TITLE_V1 */
.home-feed__header > :first-child,
.home-feed__header > :first-child :is(h2, h3) {
    font-size: 18px !important;
    color: #e3f5ff !important;
}
