.journal-feed-page {
    --journal-orange: #ff5a1f;
    --journal-orange-dark: #ea4b12;
    --journal-ink: #0f172a;
    --journal-text: #26364f;
    --journal-muted: #6b7b93;
    --journal-soft: #f6f8fb;
    --journal-line: rgba(214, 222, 234, .86);
    --journal-shadow: 0 22px 70px rgba(15, 23, 42, .08);
    --journal-card-shadow: 0 16px 42px rgba(15, 23, 42, .06);
    box-sizing: border-box;
    width: min(calc(100% - 32px), 1240px);
    margin: 0 auto;
    padding: 10px 0 24px;
    color: var(--journal-text);
}

.journal-feed-page *,
.journal-feed-page *::before,
.journal-feed-page *::after {
    box-sizing: border-box;
}

body:not(.page-map) #main-content.site-main-offset {
    background:
        radial-gradient(circle at 8% 6%, rgba(255, 90, 31, .06), transparent 28%),
        radial-gradient(circle at 92% 18%, rgba(37, 99, 235, .045), transparent 30%),
        #f7f9fc;
}

.journal-feed-page a {
    color: inherit;
    text-decoration: none;
}

.journal-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    gap: 20px;
    min-height: 304px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, .86);
    border-bottom-color: rgba(226, 232, 240, .72);
    border-radius: 34px 34px 0 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .9)),
        #fff;
    box-shadow: var(--journal-shadow);
    isolation: isolate;
}

.journal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        repeating-radial-gradient(ellipse at 58% 46%, transparent 0 20px, rgba(148, 163, 184, .12) 21px 22px, transparent 23px 44px),
        radial-gradient(circle at 94% 30%, rgba(255, 90, 31, .10), transparent 6%),
        radial-gradient(circle at 62% 75%, rgba(255, 90, 31, .06), transparent 18%);
    opacity: .74;
    mask-image: linear-gradient(90deg, transparent 0, #000 32%, #000 100%);
    animation: journalHeroPattern 12s ease-in-out infinite alternate;
}

.journal-hero__copy {
    align-self: center;
    max-width: 580px;
    padding: 38px 0 38px 38px;
    animation: journalHeroCopyIn .62s cubic-bezier(.22, 1, .36, 1) both;
}

.journal-hero h1 {
    margin: 0;
    color: var(--journal-ink);
    font-size: clamp(42px, 4.6vw, 56px);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
}

.journal-hero__copy > p {
    max-width: 500px;
    margin: 16px 0 0;
    color: #56657d;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.7;
}

.journal-hero__actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 28px;
}

.journal-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(214, 222, 234, .95);
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    padding: 0 19px;
    color: #26364f;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease;
}

.journal-button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 90, 31, .26);
    color: var(--journal-orange);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .075);
}

.journal-button--primary {
    border-color: transparent;
    background: linear-gradient(135deg, #ff6a2a, var(--journal-orange));
    color: #fff !important;
    box-shadow: 0 16px 34px rgba(255, 90, 31, .28);
}

.journal-button--primary:hover {
    background: linear-gradient(135deg, #ff7135, var(--journal-orange-dark));
    color: #fff;
}

.journal-hero__visual {
    position: relative;
    min-height: 260px;
    margin: 22px 28px 22px 0;
    animation: journalHeroVisualIn .72s .08s cubic-bezier(.22, 1, .36, 1) both;
}

.journal-hero__route-line {
    position: absolute;
    inset: 36px 42px 42px 58px;
    border: 2px dashed rgba(255, 90, 31, .72);
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 38px;
    opacity: .9;
    animation: journalRoutePulse 5s ease-in-out infinite;
}

.journal-hero__route-line::before,
.journal-hero__route-line::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid var(--journal-orange);
    border-radius: 999px;
    background: #fff;
}

.journal-hero__route-line::before {
    right: -72px;
    top: 26px;
}

.journal-hero__route-line::after {
    left: 54px;
    top: -5px;
    width: 7px;
    height: 7px;
    background: var(--journal-orange);
}

.journal-hero__shot {
    position: absolute;
    display: block;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, .96);
    border-radius: 19px;
    background: #e2e8f0;
    box-shadow: 0 22px 46px rgba(15, 23, 42, .18);
    transition: transform .22s ease, box-shadow .22s ease;
    animation: journalShotIn .58s cubic-bezier(.22, 1, .36, 1) both;
}

.journal-hero__shot:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 26px 54px rgba(15, 23, 42, .22);
}

.journal-hero__shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    animation: journalCoverDrift 11s ease-in-out infinite alternate;
}

.journal-hero__shot--1 {
    right: 58px;
    top: 10px;
    z-index: 2;
    width: min(300px, 64%);
    aspect-ratio: 16 / 9;
    animation-delay: .12s;
}

.journal-hero__shot--2 {
    left: 10px;
    bottom: 18px;
    z-index: 3;
    width: min(184px, 40%);
    aspect-ratio: 16 / 9;
    animation-delay: .2s;
}

.journal-hero__shot--3 {
    right: 0;
    bottom: 6px;
    z-index: 4;
    width: min(168px, 37%);
    aspect-ratio: 16 / 9;
    animation-delay: .28s;
}

@keyframes journalHeroCopyIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes journalHeroVisualIn {
    from { opacity: 0; transform: translateX(18px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes journalShotIn {
    from { opacity: 0; transform: translateY(16px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes journalCoverDrift {
    from { transform: scale(1.01) translate3d(0, 0, 0); }
    to { transform: scale(1.055) translate3d(-.8%, -.5%, 0); }
}

@keyframes journalRoutePulse {
    0%, 100% { opacity: .55; }
    50% { opacity: .95; }
}

@keyframes journalHeroPattern {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(10px, -4px, 0); }
}

.journal-toolbar {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-top: -1px;
    border: 1px solid rgba(226, 232, 240, .86);
    border-top-color: rgba(226, 232, 240, .72);
    border-radius: 0 0 34px 34px;
    background: rgba(255, 255, 255, .96);
    padding: 20px 28px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .055);
}

.journal-filter-list {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
}

.journal-filter-list::-webkit-scrollbar {
    display: none;
}

.journal-filter {
    display: inline-flex;
    min-height: 42px;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 0 15px;
    color: #3b4a63;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.journal-filter:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 90, 31, .18);
    background: #fff7f3;
    color: var(--journal-orange);
}

.journal-filter.is-active {
    border-color: rgba(255, 90, 31, .16);
    background: #fff1e9;
    color: var(--journal-orange);
}

.journal-filter img {
    width: 17px;
    height: 17px;
    opacity: .74;
}

.journal-filter.is-active img,
.journal-filter:hover img {
    opacity: .95;
}

.journal-sort {
    position: relative;
    flex: 0 0 auto;
}

.journal-sort::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #728199;
    border-bottom: 2px solid #728199;
    pointer-events: none;
    transform: translateY(-65%) rotate(45deg);
}

.journal-sort select {
    min-height: 44px;
    appearance: none;
    border: 1px solid rgba(214, 222, 234, .95);
    border-radius: 14px;
    background: #fff;
    padding: 0 40px 0 16px;
    color: #26364f;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
    cursor: pointer;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 18px;
    margin-top: 24px;
}

.journal-card {
    display: flex;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--journal-card-shadow);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.journal-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 90, 31, .22);
    box-shadow: 0 22px 54px rgba(15, 23, 42, .10);
}

.journal-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

.journal-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.22, 1, .36, 1), filter .35s ease;
}

.journal-card:hover .journal-card__media img {
    transform: scale(1.045);
    filter: saturate(1.06) contrast(1.03);
}

.journal-card__body {
    display: flex;
    min-height: 218px;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 18px 18px 17px;
}

.journal-card__author {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.journal-card__avatar {
    display: block;
    width: 30px;
    height: 30px;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #e2e8f0;
    box-shadow: 0 0 0 2px #fff, 0 6px 18px rgba(15, 23, 42, .10);
}

.journal-card__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.journal-card__avatar span {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff1e9, #ffe2d4);
    color: var(--journal-orange);
    font-size: 12px;
    font-weight: 950;
}

.journal-card__author > div {
    min-width: 0;
}

.journal-card__name {
    display: block;
    overflow: hidden;
    color: #516079;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.journal-card__author time {
    display: block;
    margin-top: 2px;
    color: #7e8aa0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.journal-card__title {
    display: block;
    color: var(--journal-ink);
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -.025em;
    line-height: 1.22;
}

.journal-card__title:hover {
    color: var(--journal-orange);
}

.journal-card__location {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: #617089;
    font-size: 12px;
    font-weight: 780;
}

.journal-card__location img {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.journal-card__location span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.journal-card__meta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: auto;
    padding-top: 22px;
    color: #5f6f87;
}

.journal-card__metric {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: inherit;
    font-size: 12px;
    font-weight: 850;
}

.journal-card__metric img,
.journal-card__save img {
    width: 17px;
    height: 17px;
    opacity: .78;
}

.journal-card__new {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    background: #fff7ed;
    padding: 0 10px;
    color: #ea580c;
    font-size: 11px;
    font-weight: 780;
}

.journal-card__save {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #5f6f87;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.journal-card__save:hover,
.journal-card__save.is-saved {
    border-color: rgba(255, 90, 31, .18);
    background: #fff1e9;
    transform: translateY(-1px);
}

/* Editorial card layout: image-led, compact and easy to scan. */

.journal-card .journal-card__title {
    position: static;
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 16px;
    color: var(--journal-ink);
    font-size: clamp(18px, 1.45vw, 21px);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.25;
    text-wrap: balance;
    text-shadow: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.journal-card .journal-card__title:hover {
    color: var(--journal-orange);
}

.journal-card .journal-card__body {
    min-height: 260px;
    padding: 18px 20px 16px;
}

.journal-card .journal-card__author {
    gap: 11px;
    margin-bottom: 0;
}

.journal-card .journal-card__avatar {
    width: 36px;
    height: 36px;
}

.journal-card__identity {
    min-width: 0;
    flex: 1 1 auto;
}

.journal-card__name-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
}

.journal-card .journal-card__name {
    color: #1c2738;
    font-size: 13px;
    font-weight: 900;
}

.journal-card .journal-card__author time {
    color: #7a879a;
}

.journal-card__verified {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    background: var(--journal-orange);
    -webkit-mask: url('../../img/icons/verification.svg') center / contain no-repeat;
    mask: url('../../img/icons/verification.svg') center / contain no-repeat;
}

.journal-card .journal-card__location {
    max-width: 42%;
    flex: 0 1 42%;
    gap: 6px;
    margin-top: 0;
    margin-left: auto;
}

.journal-card__description {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 18px;
    color: #5e6a7d;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.journal-card__description:hover {
    color: #344158;
}

.journal-card .journal-card__meta {
    padding-top: 20px;
}

.journal-card__metric:is(button) {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    cursor: pointer;
    transition: color .18s ease, transform .18s ease;
}

.journal-card__metric:is(button):hover {
    color: var(--journal-orange);
    transform: translateY(-1px);
}

.journal-card__like .like-icon {
    width: 17px;
    height: 17px;
}

.journal-card__like[aria-pressed="true"],
.journal-card__like.is-liked,
.journal-card__like.text-red-500 {
    color: #ef4444;
}

.journal-card .journal-card__save {
    width: 38px;
    height: 38px;
    border-color: rgba(226, 232, 240, .82);
    border-radius: 11px;
    background: #fff;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.journal-card__save.is-saved img,
.journal-card__save[data-saved="true"] img {
    filter: invert(44%) sepia(89%) saturate(2702%) hue-rotate(347deg) brightness(102%) contrast(103%);
    opacity: 1;
}

.journal-empty {
    grid-column: 1 / -1;
    border: 1px dashed rgba(203, 213, 225, .95);
    border-radius: 28px;
    background: rgba(255, 255, 255, .82);
    padding: 42px 24px;
    text-align: center;
    box-shadow: var(--journal-card-shadow);
}

.journal-empty h2 {
    margin: 0;
    color: var(--journal-ink);
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -.04em;
}

.journal-empty p {
    max-width: 520px;
    margin: 12px auto 22px;
    color: var(--journal-muted);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.6;
}

.journal-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 26px;
}

.journal-page-link {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 12px;
    background: rgba(255, 255, 255, .9);
    color: #243044;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
    transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}

.journal-page-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 90, 31, .28);
    color: var(--journal-orange);
}

.journal-page-link.is-active {
    border-color: rgba(255, 90, 31, .72);
    background: #fff7f3;
    color: var(--journal-orange);
}

.journal-page-link.is-disabled,
.journal-page-link.is-ellipsis {
    pointer-events: none;
}

.journal-page-link.is-disabled {
    opacity: .45;
}

.journal-page-link.is-ellipsis {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: #8a96a8;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

@media (max-width: 1100px) {
    .journal-hero {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
        gap: 24px;
    }

    .journal-hero__shot--1 {
        right: 40px;
        width: 250px;
    }

    .journal-hero__shot--2 {
        left: 0;
        width: 148px;
    }

    .journal-hero__shot--3 {
        width: 142px;
    }

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

@media (max-width: 767px) {
    .journal-feed-page {
        width: min(calc(100% - 20px), 100%);
        padding-top: 8px;
        padding-bottom: calc(var(--mobile-page-bottom-clearance, 96px) + 14px);
    }

    .journal-hero {
        display: block;
        min-height: 0;
        border-radius: 26px;
    }

    .journal-hero::before {
        mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, .46) 100%);
        opacity: .56;
    }

    .journal-hero__copy {
        max-width: none;
        padding: 24px 20px 22px;
    }

    .journal-hero h1 {
        font-size: clamp(34px, 11vw, 44px);
        letter-spacing: 0;
    }

    .journal-hero__copy > p {
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.55;
    }

    .journal-hero__actions {
        display: flex;
        max-width: 100%;
        flex-wrap: nowrap;
        gap: 10px;
        margin-top: 22px;
        overflow-x: auto;
        padding-bottom: 3px;
        scrollbar-width: none;
    }

    .journal-hero__actions::-webkit-scrollbar {
        display: none;
    }

    .journal-button {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 0 12px;
        font-size: 12px;
    }

    .journal-hero__visual {
        display: flex;
        min-height: 0;
        gap: 12px;
        margin: 0;
        overflow-x: auto;
        padding: 0 20px 22px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .journal-hero__visual::-webkit-scrollbar {
        display: none;
    }

    .journal-hero__route-line {
        display: none;
    }

    .journal-hero__shot,
    .journal-hero__shot--1,
    .journal-hero__shot--2,
    .journal-hero__shot--3 {
        position: relative;
        inset: auto;
        width: min(76vw, 300px);
        flex: 0 0 min(76vw, 300px);
        aspect-ratio: 16 / 9;
        scroll-snap-align: start;
    }

    .journal-toolbar {
        display: block;
        margin-top: 12px;
        border-radius: 24px;
        padding: 12px;
    }

    .journal-filter-list {
        margin: 0 -4px;
        padding: 2px 4px 10px;
    }

    .journal-filter {
        min-height: 38px;
        gap: 8px;
        border-color: rgba(226, 232, 240, .7);
        background: rgba(255, 255, 255, .78);
        padding: 0 12px;
        font-size: 12px;
    }

    .journal-filter img {
        width: 15px;
        height: 15px;
    }

    .journal-sort {
        margin-top: 8px;
    }

    .journal-sort select {
        width: 100%;
        min-height: 42px;
        font-size: 12px;
    }

    .journal-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 16px;
    }

    .journal-card {
        border-radius: 22px;
    }

    .journal-card__media {
        aspect-ratio: 16 / 9;
    }

    .journal-card .journal-card__body {
        min-height: 0;
        padding: 16px;
    }

    .journal-card .journal-card__author {
        margin-bottom: 0;
    }

    .journal-card .journal-card__title {
        margin-bottom: 14px;
        font-size: 19px;
        line-height: 1.25;
    }

    .journal-card__description {
        margin-top: 16px;
    }

    .journal-card__meta {
        gap: 16px;
        padding-top: 18px;
    }

    .journal-pagination {
        gap: 7px;
        margin-top: 20px;
    }

    .journal-page-link {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }
}

@media (max-width: 380px) {
    .journal-card .journal-card__title {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .journal-hero::before,
    .journal-hero__copy,
    .journal-hero__visual,
    .journal-hero__route-line,
    .journal-hero__shot,
    .journal-hero__shot img {
        animation: none !important;
    }
}
