/* Content Feed — LOST iN feed design (desktop + mobile) */

.lif {
    --lif-bg: #F0EEE8;
    --lif-ink: #1A1A1A;
    --lif-muted: #5A5651;
    --lif-body: #4A4744;
    --lif-line: #DCD8CF;
    --lif-pill: #CFCAC0;
    --lif-blue: #1F3D5C;
    background: #ffffff;
    color: var(--lif-ink);
    font-family: -apple-system, system-ui, 'Segoe UI', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

.lif a {
    color: var(--lif-ink);
    text-decoration: none;
}

.lif a:hover {
    color: var(--lif-blue);
}

.lif h1,
.lif h2,
.lif h3,
.lif p {
    font-family: inherit;
}

.lif-wrap {
    width: 100%;
    margin: 0 auto;
    padding: 64px 0 96px;
}

.lif-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: var(--lif-blue);
    text-transform: uppercase;
}

.lif-title {
    margin: 12px 0 0;
    font-size: 52px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.lif-sub {
    margin: 12px 0 0;
    font-size: 19px;
    line-height: 1.5;
    color: var(--lif-muted);
}

.lif-filters {
    margin-top: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--lif-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.lif-chips {
    display: flex;
    gap: 8px;
    min-width: 0;
}

.lif-chip {
    height: 44px;
    padding: 0 22px;
    border-radius: 22px;
    border: 1px solid var(--lif-pill);
    background: transparent;
    color: var(--lif-ink);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

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

.lif-chip.is-active {
    background: #000000;
    border-color: #000000;
    color: #fff;
}

.lif-chip.is-active:hover {
    color: #fff;
}

.lif-select {
    width: 170px;
    height: 44px;
    padding: 0 42px 0 20px;
    border-radius: 22px;
    border: 1px solid var(--lif-pill);
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    color: var(--lif-ink);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    flex-shrink: 0;
}

.lif-select option {
    color: var(--lif-ink);
    background: #fff;
}

.lif-img {
    border-radius: 10px;
    background: #D6CABA;
    overflow: hidden;
    display: block;
}

.lif-img img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.lif-hero {
    margin-top: 40px;
    display: flex;
    gap: 56px;
    align-items: center;
}

.lif-hero-media {
    display: block;
    width: min(720px, 60%);
    flex-shrink: 0;
}

.lif-hero-media .lif-img {
    width: 100%;
    height: 480px;
    border-radius: 12px;
    background: #BCC6CC;
}

.lif-hero-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
    min-width: 0;
}

.lif-hero-type {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--lif-blue);
    text-transform: uppercase;
}

.lif-hero-title {
    margin: 0;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.lif-hero-dek {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--lif-body);
}

.lif-hero-foot {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
}

.lif-hero-meta {
    font-size: 14px;
    color: var(--lif-muted);
}

.lif-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lif-tag {
    height: 28px;
    padding: 0 12px;
    border-radius: 14px;
    border: 1px solid var(--lif-pill);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    color: #333;
}

.lif-hero .lif-tags {
    gap: 8px;
}

.lif-hero .lif-tag {
    height: 30px;
    padding: 0 14px;
    border-radius: 15px;
    font-size: 13px;
}

.lif-section {
    margin-top: 80px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.lif-section h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.lif-section span {
    height: 1px;
    flex-grow: 1;
    background: var(--lif-line);
}

.lif-items {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 48px;
}

.lif-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lif-card .lif-img {
    height: 252px;
}

.lif-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lif-meta {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    font-size: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.lif-meta b {
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--lif-blue);
    text-transform: uppercase;
}

.lif-meta time {
    color: var(--lif-muted);
}

.lif-card h3 {
    margin: 8px 0 0;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
}

.lif-card .lif-tags {
    margin-top: 14px;
}

.lif-event {
    grid-column: 1 / -1;
    margin-top: 32px;
    margin-bottom: 16px;
    background: var(--lif-blue);
    border-radius: 16px;
    padding: 48px 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
}

.lif-event-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.lif-event-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: #A9BED3;
    text-transform: uppercase;
}

.lif-event h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.lif-event p {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    color: #C9D5E1;
}

.lif-event-form {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.lif-event-form input {
    width: 300px !important;
    height: 52px;
    border-radius: 26px !important;
    border: 1px solid #3D5A78 !important;
    background: #173049;
    color: #fff;
    padding: 0 22px !important;
    font-size: 16px;
    font-family: inherit;
}

.lif-event-form input::placeholder {
    color: #9FB0C2;
}

.lif-event-form button {
    height: 52px;
    padding: 0 28px;
    border-radius: 26px;
    border: 0;
    background: #fff;
    color: var(--lif-blue);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.lif-event-form button:hover {
    opacity: 0.9;
}

.lif-event-form button:disabled {
    opacity: 0.7;
    cursor: default;
}

.lif-event-msg {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    font-size: 14px;
    color: #FFD9CF;
    white-space: nowrap;
}

.lif-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.lif-more {
    margin-top: 64px;
    display: flex;
    justify-content: center;
}

.lif-more-btn {
    height: 54px;
    padding: 14px 36px;
    border-radius: 30px !important;
    border: none !important;
    background: #000000 !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.lif-more-btn:hover {
    background: #000000 !important;
    border: none !important;
    color: #ffffff !important;
    opacity: 0.9;
}

.lif-more-btn.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.lif-empty {
    text-align: center;
    padding: 80px 20px;
}

.lif-empty h2 {
    margin: 0 0 8px;
    font-size: 24px;
    color: var(--lif-ink);
}

.lif-empty p {
    margin: 0;
    font-size: 16px;
    color: var(--lif-muted);
}

.lif-only-narrow {
    display: none;
}

@media (max-width: 767px) {

    .lif-only-wide {
        display: none !important;
    }

    .lif-only-narrow {
        display: inline;
    }

    .lif-wrap {
        width: 100%;
        padding: 32px 20px 48px;
    }

    .lif-eyebrow {
        font-size: 12px;
        letter-spacing: 1.4px;
    }

    .lif-title {
        margin-top: 8px;
        font-size: 32px;
        line-height: 1.15;
        letter-spacing: -0.3px;
    }

    .lif-sub {
        margin-top: 8px;
        font-size: 16px;
    }

    .lif-filters {
        display: block;
        margin-top: 20px;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .lif-chips {
        margin-top: 0;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 2px;
    }

    .lif-chips::-webkit-scrollbar {
        display: none;
    }

    .lif-chip {
        height: 40px;
        padding: 0 16px;
        border-radius: 20px;
        font-size: 14px;
        flex-shrink: 0;
    }

    .lif-select {
        display: block;
        width: 100%;
        height: 44px;
        margin-top: 10px;
        padding: 0 42px 0 18px;
        font-size: 14px;
        background-position: right 16px center;
    }

    .lif-hero {
        margin-top: 28px;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .lif-hero-media {
        width: 100%;
    }

    .lif-hero-media .lif-img {
        height: 260px;
    }

    .lif-hero-body {
        gap: 0;
    }

    .lif-hero-type {
        margin-top: 16px;
        font-size: 11px;
        letter-spacing: 1.3px;
    }

    .lif-hero-title {
        margin-top: 8px;
        font-size: 28px;
        line-height: 1.18;
    }

    .lif-hero-dek {
        margin-top: 10px;
        font-size: 16px;
        line-height: 1.5;
    }

    .lif-hero-foot {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        margin-top: 12px;
    }

    .lif-hero-meta {
        font-size: 13px;
        white-space: nowrap;
    }

    .lif-hero .lif-tags {
        gap: 6px;
    }

    .lif-hero .lif-tag {
        height: 28px;
        padding: 0 12px;
        border-radius: 14px;
        font-size: 12px;
    }

    .lif-section {
        margin-top: 40px;
        gap: 14px;
    }

    .lif-section h2 {
        font-size: 18px;
    }

    .lif-items {
        margin-top: 4px;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .lif-card {
        flex-direction: row;
        gap: 14px;
        padding: 20px 0;
        border-bottom: 1px solid var(--lif-line);
        align-items: flex-start;
    }

    .lif-card .lif-img {
        width: 108px;
        height: 108px;
        flex-shrink: 0;
    }

    .lif-card-body {
        gap: 6px;
    }

    .lif-card .lif-meta {
        margin-top: 0;
        gap: 8px;
        font-size: 11px;
        flex-wrap: nowrap;
    }

    .lif-card .lif-meta b {
        letter-spacing: 1.1px;
    }

    .lif-card h3 {
        margin: 0;
        font-size: 17px;
        line-height: 1.3;
    }

    .lif-card .lif-tags {
        margin-top: 2px;
    }

    .lif-card .lif-tag {
        height: 24px;
        padding: 0 10px;
        border-radius: 12px;
        font-size: 11px;
    }

    .lif-event {
        margin: 32px 0 8px;
        border-radius: 14px;
        padding: 28px 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .lif-event-eyebrow {
        font-size: 11px;
        letter-spacing: 1.3px;
    }

    .lif-event h2 {
        font-size: 24px;
        line-height: 1.2;
    }

    .lif-event p {
        font-size: 15px;
    }

    .lif-event-form {
        margin-top: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .lif-event-form input {
        width: 100% !important;
        height: 50px;
        border-radius: 25px !important;
        padding: 0 20px !important;
    }

    .lif-event-form button {
        width: 100%;
        height: 50px;
        border-radius: 25px;
    }

    .lif-event-msg {
        position: static;
        margin-top: 0;
        white-space: normal;
    }

    .lif-more {
        margin-top: 32px;
    }

    .lif-more-btn {
        width: 100%;
        height: 50px;
        border-radius: 25px !important;
    }

    .lif-empty {
        padding: 56px 0;
    }
}

/* Signup popup is sticky on the feed: no manual close button. */
#signupModal button[onclick*="modal-hidden"] {
    display: none !important;
}