/* NOTE(cursor): Dedicated banking-news formatting — bold titles, small body, justified text, high-contrast images. */
.bn-shell {
    --bn-title: #0b1f3a;
    --bn-text: #334155;
    --bn-meta: #64748b;
    --bn-line: #d7e2f2;
    --bn-panel: #ffffff;
    --bn-soft: #f4f7fc;
    --bn-primary: #0d47a1;
    --bn-accent: #e64a19;
    width: 100%;
    background: #eef2f7;
    padding: 1.15rem 0 2.5rem;
    color: var(--bn-text);
    font-size: 15px;
    line-height: 1.5;
}

.bn-shell *,
.bn-shell *::before,
.bn-shell *::after {
    box-sizing: border-box;
}

.bn-wrap {
    width: min(1200px, calc(100% - 1.5rem));
    margin: 0 auto;
}

/* Typography system */
.bn-shell .bn-title {
    margin: 0 0 0.4rem;
    color: var(--bn-title);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.35;
    text-align: left;
    text-wrap: pretty;
}

.bn-shell .bn-text {
    margin: 0;
    color: var(--bn-text);
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: justify;
    hyphens: auto;
}

.bn-shell .bn-meta,
.bn-shell .bn-meta-line {
    margin: 0;
    color: var(--bn-meta);
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: left;
}

.bn-shell .bn-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--bn-line);
}

.bn-shell .bn-section-title {
    margin: 0;
    color: var(--bn-title);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.3;
    text-align: left;
}

.bn-shell .bn-section-label {
    margin: 0 0 0.2rem;
    color: var(--bn-accent);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
}

.bn-shell a {
    text-decoration: none;
    color: inherit;
}

.bn-shell a:hover .bn-title {
    color: var(--bn-primary);
}

/* Header */
.bn-header {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.85fr);
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
    padding: 1.25rem 1.35rem;
    border-radius: 14px;
    background: linear-gradient(125deg, #082a5e, #0d47a1);
    color: #fff;
    box-shadow: 0 10px 24px rgba(8, 42, 94, 0.22);
}

.bn-eyebrow {
    margin: 0 0 0.3rem;
    color: #ffccbc;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bn-header h1 {
    margin: 0 0 0.4rem;
    color: #fff;
    font-size: clamp(1.4rem, 2.3vw, 1.95rem);
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
}

.bn-subtitle {
    margin: 0 0 0.8rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.55;
    text-align: left;
    max-width: 40rem;
}

.bn-chips,
.bn-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.bn-filters {
    justify-content: flex-end;
}

.bn-chip,
.bn-filter {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.bn-chip-link:hover,
.bn-filter:hover,
.bn-filter.is-active {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

/* Panels */
.bn-panel {
    background: var(--bn-panel);
    border: 1px solid var(--bn-line);
    border-radius: 14px;
    padding: 1rem 1.1rem 1.15rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.bn-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid #e8eef8;
}

.bn-muted {
    color: var(--bn-meta);
    font-size: 0.8rem;
    font-weight: 500;
}

.bn-empty {
    text-align: center;
    padding: 2rem 1rem;
}

.bn-badge {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.35rem;
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
    background: #e8f0fb;
    color: var(--bn-primary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.bn-read {
    margin-left: auto;
    color: var(--bn-accent);
    font-weight: 700;
    font-size: 0.78rem;
}

/* Images — framed, high contrast, never stretched */
.bn-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #9db4d6;
    background: #0b2f66;
    flex-shrink: 0;
}

.bn-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #0b2f66;
}

.bn-media.is-placeholder {
    background: linear-gradient(145deg, #071a3a 0%, #0b2f66 55%, #123f8a 100%);
    border-color: #6f8fbf;
}

.bn-media.is-placeholder img {
    object-fit: cover;
    padding: 0;
    filter: contrast(1.08) saturate(1.05);
}

/* NOTE(cursor): High-contrast caption over image covers — dark navy title on warm light panel. */
.bn-media-caption {
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.55rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    background: #fff8f1;
    border-left: 4px solid #ff5722;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.bn-media-caption-label {
    color: #e64a19;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
}

.bn-media-caption-title {
    color: #0b1f3a;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bn-media.bn-vmedia-sm .bn-media-caption {
    left: 0.3rem;
    right: 0.3rem;
    bottom: 0.3rem;
    padding: 0.35rem 0.45rem;
}

.bn-media.bn-vmedia-sm .bn-media-caption-title {
    font-size: 0.68rem;
    -webkit-line-clamp: 1;
}

.bn-media.bn-vmedia-sm .bn-media-caption-label {
    font-size: 0.6rem;
}

/* Top: featured + spotlight */
.bn-top {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
    gap: 1rem;
    align-items: stretch;
}

.bn-featured {
    display: grid;
    grid-template-columns: minmax(220px, 44%) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.bn-featured-media {
    aspect-ratio: 16 / 10;
}

.bn-featured-body .bn-title {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    margin-bottom: 0.5rem;
}

.bn-featured-body .bn-text {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Vertical list */
.bn-vlist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bn-vitem {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 0.7rem;
    border: 1px solid var(--bn-line);
    border-radius: 12px;
    background: var(--bn-soft);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bn-vitem:hover {
    border-color: #9db4d6;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.bn-vmedia {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
}

.bn-vmedia-sm {
    aspect-ratio: 1 / 1;
}

.bn-vitem-compact {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.55rem;
}

.bn-vbody {
    min-width: 0;
}

.bn-vbody .bn-title {
    font-size: 0.98rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bn-vbody .bn-text {
    font-size: 0.84rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bn-vitem-compact .bn-title {
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
}

/* Horizontal rail */
.bn-hrail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 270px);
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.45rem;
    scroll-snap-type: x mandatory;
}

.bn-hcard {
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    border: 1px solid var(--bn-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    min-height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bn-hcard:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.bn-hmedia {
    aspect-ratio: 16 / 10;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
}

.bn-hbody {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.8rem 0.85rem 0.9rem;
    flex: 1;
    background: #fff;
}

.bn-hbody .bn-title {
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bn-hbody .bn-text {
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Bottom */
.bn-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.8fr);
    gap: 1rem;
    align-items: start;
}

.bn-guide-list {
    margin: 0 0 0.9rem;
    padding-left: 1.15rem;
    color: var(--bn-text);
    font-size: 0.88rem;
    font-weight: 400;
    text-align: left;
}

.bn-guide-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.bn-guide-list strong {
    color: var(--bn-title);
    font-weight: 700;
}

.bn-guide-note {
    border-top: 1px solid var(--bn-line);
    padding-top: 0.8rem;
}

.bn-guide-note strong {
    display: block;
    color: var(--bn-title);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.bn-guide-note p {
    margin: 0;
    color: var(--bn-text);
    font-size: 0.86rem;
    font-weight: 400;
    text-align: justify;
    line-height: 1.55;
}

/* Article */
.bn-reader {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bn-back {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: #e8f0fb;
    color: var(--bn-primary);
    font-weight: 700;
    font-size: 0.86rem;
}

.bn-back:hover {
    background: #d7e6fa;
}

.bn-article {
    padding: 0;
    overflow: hidden;
}

.bn-article-media {
    aspect-ratio: 16 / 9;
    max-height: 400px;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid #9db4d6;
}

.bn-article-content {
    padding: clamp(1.1rem, 2.4vw, 1.9rem);
    max-width: 800px;
    margin: 0 auto;
}

.bn-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    align-items: center;
    margin-bottom: 0.7rem;
    color: var(--bn-meta);
    font-size: 0.8rem;
    font-weight: 500;
}

.bn-article-title {
    margin: 0 0 0.7rem;
    color: var(--bn-title);
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.25;
    text-align: left;
}

.bn-article-summary {
    margin: 0 0 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--bn-line);
    color: var(--bn-text);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.65;
    text-align: justify;
}

.bn-article-body p {
    margin: 0 0 0.95rem;
    color: var(--bn-text);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.75;
    text-align: justify;
}

.bn-article-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 1.1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--bn-line);
}

.bn-article-onsite-note {
    margin: 0;
    color: var(--bn-meta);
    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
}

@media (max-width: 991.98px) {
    .bn-header,
    .bn-top,
    .bn-bottom,
    .bn-featured {
        grid-template-columns: 1fr;
    }

    .bn-filters {
        justify-content: flex-start;
    }

    .bn-read {
        margin-left: 0;
    }

    .bn-vitem {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .bn-article-media {
        max-height: none;
    }
}

@media (max-width: 575.98px) {
    .bn-wrap {
        width: min(100% - 1rem, 1200px);
    }

    .bn-vitem,
    .bn-vitem-compact {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .bn-hrail {
        grid-auto-columns: minmax(220px, 80vw);
    }

    .bn-shell .bn-text,
    .bn-article-summary,
    .bn-article-body p {
        text-align: left;
    }
}
