/* Journal listing — matches the rider join visual system */

body.blog-page {
    --bj-ember: #ff6a3d;
    --bj-ember-deep: #e85a2f;
    --bj-ink: #14161b;
    --bj-steel: #5d6573;
    --bj-line: #eadfd6;
    --bj-paper: #fff8f3;
    --bj-white: #ffffff;
    --bj-asphalt: #101114;
    overflow-x: clip;
    background: var(--bj-white);
}

.bj-page {
    background: var(--bj-white);
    color: var(--bj-ink);
}

.bj-page a:focus-visible,
.bj-page button:focus-visible,
.bj-page input:focus-visible,
.bj-page select:focus-visible {
    outline: 2px solid var(--bj-ember);
    outline-offset: 3px;
}

/* ——— Banner ——— */

.bj-banner {
    position: relative;
    min-height: clamp(420px, 62vh, 640px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--bj-asphalt);
    color: #fff;
    isolation: isolate;
}

.bj-banner-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.bj-banner-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(16, 17, 20, 0.72) 0%, rgba(16, 17, 20, 0.38) 48%, rgba(16, 17, 20, 0.18) 100%),
        linear-gradient(180deg, rgba(16, 17, 20, 0.16) 0%, transparent 38%, rgba(16, 17, 20, 0.62) 100%);
    pointer-events: none;
}

.bj-banner-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 0 clamp(88px, 12vw, 124px);
}

.bj-banner-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: #ffb89a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.bj-banner-kicker i {
    color: var(--bj-ember);
}

.bj-banner h1 {
    margin: 0 0 16px;
    max-width: 14ch;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(2.4rem, 6.2vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.98;
    text-wrap: balance;
}

.bj-banner h1 span {
    color: var(--bj-ember);
}

.bj-banner-lead {
    margin: 0 0 28px;
    max-width: 44ch;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(15px, 2vw, 17px);
    font-weight: 500;
    line-height: 1.65;
}

.bj-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.bj-btn:hover {
    transform: translateY(-1px);
    color: inherit;
    text-decoration: none;
}

.bj-btn-primary {
    background: var(--bj-ember);
    color: #fff;
    box-shadow: 0 12px 28px rgba(255, 106, 61, 0.32);
}

.bj-btn-primary:hover {
    background: var(--bj-ember-deep);
    color: #fff;
}

.bj-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

.bj-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

/* ——— Dispatch strip ——— */

.bj-dispatch {
    position: relative;
    z-index: 3;
    margin-top: -64px;
    margin-bottom: 8px;
}

.bj-dispatch-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.bj-dispatch-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 18px 16px;
    border: 1px solid var(--bj-line);
    border-radius: 18px;
    background: var(--bj-white);
    box-shadow: 0 18px 40px rgba(16, 17, 20, 0.1);
}

.bj-dispatch-card i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #fff1ea;
    color: var(--bj-ember);
    font-size: 15px;
}

.bj-dispatch-card strong {
    display: block;
    margin-bottom: 2px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.bj-dispatch-card span {
    color: var(--bj-steel);
    font-size: 12.5px;
    line-height: 1.45;
}

/* ——— Listing ——— */

.bj-section {
    padding: clamp(48px, 7vw, 80px) 0;
}

.bj-section-soft {
    /* background: radial-gradient(ellipse 70% 80% at 100% 0%, rgba(255, 106, 61, 0.08), transparent 55%), var(--bj-paper); */
}

#journal-stories {
    scroll-margin-top: 110px;
}

.bj-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(22px, 3vw, 32px);
}

.bj-section-head {
    max-width: 620px;
    margin: 0;
}

.bj-kicker,
.bj-grid-kicker {
    display: inline-block;
    margin: 0 0 10px;
    color: var(--bj-ember);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.bj-section-head h2 {
    margin: 0 0 10px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.bj-section-head p {
    margin: 0;
    color: var(--bj-steel);
    font-size: 15px;
    line-height: 1.7;
}

.bj-search {
    display: flex;
    width: min(340px, 100%);
    height: 52px;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid var(--bj-line);
    border-radius: 999px;
    background: var(--bj-white);
}

.bj-search:focus-within {
    border-color: #e0cfc3;
    box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.12);
}

.bj-search i {
    color: #9aa0aa;
}

.bj-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--bj-ink);
    font-size: 14px;
}

.bj-search-clear {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--bj-steel);
    font-size: 12px;
}

.bj-search-clear:hover {
    background: var(--bj-paper);
    color: var(--bj-ink);
}

.bj-filter-rail {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 0 28px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.bj-filter {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--bj-line);
    border-radius: 999px;
    background: var(--bj-white);
    color: var(--bj-ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.bj-filter:hover {
    color: var(--bj-ink);
    text-decoration: none;
    background: #fff;
    border-color: #dccfc4;
}

.bj-filter.is-active {
    border-color: var(--bj-ember);
    background: var(--bj-ember);
    color: #fff;
}

.bj-more {
    flex: 0 0 auto;
}

.bj-more-select {
    appearance: none;
    min-height: 40px;
    padding: 0 32px 0 16px;
    border: 1px solid var(--bj-line);
    border-radius: 999px;
    background: var(--bj-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235d6573' d='M1.2 1.3L6 6.1l4.8-4.8'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: var(--bj-ink);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.bj-more.is-active .bj-more-select {
    border-color: var(--bj-ember);
    background-color: var(--bj-ember);
    color: #fff;
}

/* ——— Featured ——— */

.bj-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid var(--bj-line);
    border-radius: 24px;
    background: var(--bj-white);
    box-shadow: 0 22px 50px rgba(16, 17, 20, 0.07);
}

.bj-featured-media {
    display: block;
    min-height: 420px;
    height: 100%;
    overflow: hidden;
    background: var(--bj-paper);
}

.bj-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.bj-featured:hover .bj-featured-media img {
    transform: scale(1.03);
}

.bj-featured-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4vw, 48px);
}

.bj-chip {
    display: inline-flex;
    width: max-content;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff1ea;
    color: var(--bj-ember);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.bj-chip:hover {
    color: var(--bj-ember-deep);
    background: #ffe4d6;
}

.bj-featured-copy h3 {
    margin: 14px 0 12px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.bj-featured-copy h3 a {
    color: var(--bj-ink);
    text-decoration: none;
}

.bj-featured-copy h3 a:hover {
    color: var(--bj-ember);
}

.bj-featured-copy p {
    margin: 0;
    color: var(--bj-steel);
    font-size: 15px;
    line-height: 1.7;
}

.bj-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 16px 0 22px;
    color: var(--bj-steel);
    font-size: 13px;
    font-weight: 600;
}

.bj-featured-copy .bj-btn {
    width: max-content;
}

.bj-grid-kicker {
    display: block;
    margin: 0 0 18px;
}

.bj-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.bj-story-grid .blog-post-item {
    min-width: 0;
}

.bj-story-card {
    height: 100%;
    overflow: hidden;
    padding: 0 0 18px;
    border: 1px solid var(--bj-line);
    border-radius: 20px;
    background: var(--bj-white);
}

.bj-story-card .blog-card-image {
    margin: 0 0 16px;
    aspect-ratio: 16 / 10.4;
    border-radius: 0;
}

.bj-story-card .blog-card-category {
    left: 12px;
    bottom: 12px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--bj-ink);
    box-shadow: none;
}

.bj-story-card .blog-card-body {
    padding: 0 18px;
}

.bj-story-card .blog-card-body h3 {
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 1.05rem;
    letter-spacing: -0.025em;
}

.bj-story-card .blog-card-body h3 a:hover {
    color: var(--bj-ember);
}

.bj-story-card .blog-card-excerpt {
    color: var(--bj-steel);
}

.bj-story-card .blog-card-meta {
    color: #8a847c;
}

.bj-empty {
    padding: 64px 24px;
    border: 1px dashed var(--bj-line);
    border-radius: 20px;
    background: var(--bj-white);
    text-align: center;
    color: var(--bj-steel);
}

.bj-empty i {
    margin-bottom: 16px;
    color: var(--bj-ember);
    font-size: 32px;
}

.bj-empty h3 {
    margin: 0 0 8px;
    color: var(--bj-ink);
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
}

.bj-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.bj-pagination a {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--bj-line);
    border-radius: 999px;
    background: var(--bj-white);
    color: var(--bj-ink);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.bj-pagination a.is-active,
.bj-pagination a:hover {
    border-color: var(--bj-ember);
    background: var(--bj-ember);
    color: #fff;
}

.bj-pagination a.is-disabled {
    pointer-events: none;
    opacity: 0.4;
}

@media (max-width: 991.98px) {
    .bj-banner {
        min-height: clamp(380px, 56vh, 520px);
    }

    .bj-banner-copy {
        padding-bottom: 96px;
    }

    .bj-banner h1 {
        max-width: 12ch;
    }

    .bj-dispatch {
        margin-top: -48px;
    }

    .bj-dispatch-grid,
    .bj-story-grid,
    .bj-featured {
        grid-template-columns: 1fr 1fr;
    }

    .bj-featured-media {
        min-height: 280px;
        grid-column: 1 / -1;
    }

    .bj-featured-copy {
        grid-column: 1 / -1;
        padding: 24px;
    }
}

@media (max-width: 767.98px) {
    .bj-banner {
        min-height: 400px;
    }

    .bj-banner-copy {
        padding-bottom: 72px;
    }

    .bj-banner h1 {
        max-width: none;
        font-size: clamp(2rem, 9vw, 2.6rem);
    }

    .bj-banner-actions {
        width: 100%;
    }

    .bj-banner-actions .bj-btn {
        flex: 1 1 160px;
    }

    .bj-dispatch-grid,
    .bj-story-grid {
        grid-template-columns: 1fr;
    }

    .bj-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .bj-search {
        width: 100%;
    }

    .bj-section {
        padding: 44px 0;
    }

    .bj-featured {
        border-radius: 18px;
    }
}

@media (max-width: 575.98px) {
    .bj-banner {
        min-height: 360px;
    }

    .bj-dispatch-card {
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bj-btn,
    .bj-filter,
    .bj-featured-media img {
        transition: none;
    }

    .bj-featured:hover .bj-featured-media img {
        transform: none;
    }
}
