/* ═══════════════════════════════════════════════════════════════════════
   The Briefly Pulse — Premium Dark News Theme v2.1
   ═══════════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────────────────── */
:root {
    --bp-bg:       #0a0a0f;
    --bp-card:     #12121a;
    --bp-surface:  #1a1a24;
    --bp-border:   #2a2a3a;
    --bp-accent:   #ff6b35;
    --bp-accent-hover: #ff8555;
    --bp-accent-glow: rgba(255, 107, 53, 0.15);
    --bp-text:     #e8e8f0;
    --bp-muted:    #8888a0;
    --bp-radius:   12px;
    --bp-radius-sm: 8px;
    --bp-transition: 0.25s ease;
    --font-body:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-head:   'Space Grotesk', var(--font-body);
}

/* Category accent colors */
.cat-world,.cat-world-news { --cat-color: #3b82f6; }
.cat-technology,.cat-tech { --cat-color: #06b6d4; }
.cat-science { --cat-color: #10b981; }
.cat-politics { --cat-color: #8b5cf6; }
.cat-economy { --cat-color: #f59e0b; }
.cat-trending { --cat-color: #ef4444; }
.cat-pokemon { --cat-color: #eab308; }
.cat-ai { --cat-color: #ec4899; }
.cat-crypto { --cat-color: #f97316; }
.cat-sports,.cat-gaming { --cat-color: #22c55e; }

/* ── Base ─────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bp-bg);
    color: var(--bp-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--bp-text);
}

a {
    color: var(--bp-accent);
    text-decoration: none;
    transition: color var(--bp-transition), border-color var(--bp-transition);
}
a:hover { color: var(--bp-accent-hover); }

img { max-width: 100%; height: auto; display: block; }

/* ── Site Header ──────────────────────────────────────────────────────── */
.site-header {
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bp-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
    transition: background var(--bp-transition);
}
.site-header .custom-logo-link img {
    max-height: 40px;
    width: auto;
}

/* ── Breaking News Ticker ─────────────────────────────────────────────── */
.bp-ticker {
    background: linear-gradient(135deg, var(--bp-accent), #e55a2b);
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
}
.bp-ticker-label {
    display: inline-block;
    background: rgba(0,0,0,0.3);
    padding: 3px 12px;
    border-radius: var(--bp-radius-sm);
    margin-right: 16px;
    margin-left: 20px;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.bp-ticker-items {
    display: inline-block;
    animation: bp-ticker-scroll 50s linear infinite;
}
.bp-ticker-items a {
    color: #fff;
    margin: 0 4px;
    font-weight: 500;
}
.bp-ticker-items a:hover { text-decoration: underline; }
.bp-ticker-sep { margin: 0 12px; opacity: 0.5; }
@keyframes bp-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Reading Progress Bar ─────────────────────────────────────────────── */
.bp-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bp-accent), #ff9a6c);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 1px 8px var(--bp-accent-glow);
}

/* ── Container ────────────────────────────────────────────────────────── */
.bp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Hero Section ─────────────────────────────────────────────────────── */
.bp-hero {
    position: relative;
    aspect-ratio: 21 / 9;
    min-height: 380px;
    max-height: 62vh;
    overflow: hidden;
    border-radius: 0 0 var(--bp-radius) var(--bp-radius);
    margin-bottom: 48px;
    display: flex;
    align-items: flex-end;
}
.bp-hero-image {
    position: absolute;
    inset: 0;
}
.bp-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bp-hero-gradient {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, var(--bp-bg) 70%, #ff6b3522 100%);
}
.bp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,10,15,0.95) 0%,
        rgba(10,10,15,0.55) 35%,
        rgba(10,10,15,0.15) 65%,
        rgba(10,10,15,0.05) 100%
    );
}
.bp-hero-content {
    position: relative;
    z-index: 2;
    padding: 56px 48px 48px;
    max-width: 760px;
}
.bp-hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin: 14px 0;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.bp-hero-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 24px;
    line-height: 1.6;
}
.bp-hero-btn {
    display: inline-block;
    background: var(--bp-accent);
    color: #fff !important;
    padding: 13px 32px;
    border-radius: var(--bp-radius-sm);
    font-weight: 700;
    font-size: 1rem;
    transition: background var(--bp-transition), transform var(--bp-transition), box-shadow var(--bp-transition);
    box-shadow: 0 4px 20px var(--bp-accent-glow);
}
.bp-hero-btn:hover {
    background: var(--bp-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255, 107, 53, 0.3);
}

/* ── Section Headers ──────────────────────────────────────────────────── */
.bp-section-title {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--bp-text);
    margin: 48px 0 28px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bp-accent);
    display: inline-block;
}

/* ── Article Cards ────────────────────────────────────────────────────── */
.bp-card {
    background: var(--bp-card);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    overflow: hidden;
    transition: transform var(--bp-transition), border-color var(--bp-transition), box-shadow var(--bp-transition);
}
.bp-card-hover:hover {
    transform: translateY(-4px);
    border-color: var(--bp-accent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.bp-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bp-surface);
}
.bp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.bp-card-hover:hover .bp-card-image img {
    transform: scale(1.06);
}
.bp-card-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(18,18,26,0.7), transparent);
    pointer-events: none;
}
.bp-card-body {
    padding: 20px 22px 22px;
}
.bp-card-body h3 {
    font-size: 1.05rem;
    margin: 0 0 10px;
    line-height: 1.35;
}
.bp-card-body h3 a { color: var(--bp-text); }
.bp-card-body h3 a:hover { color: var(--bp-accent); }

/* Card placeholder (no image fallback) */
.bp-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bp-surface);
    position: absolute;
    inset: 0;
}
.bp-card-placeholder span {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bp-muted);
    opacity: 0.3;
    text-transform: uppercase;
}

/* Play badge on video cards */
.bp-play-badge {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 52px; height: 52px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    z-index: 3;
    border: 2px solid rgba(255,255,255,0.3);
    transition: transform var(--bp-transition), background var(--bp-transition);
}
.bp-card-hover:hover .bp-play-badge {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--bp-accent);
    border-color: var(--bp-accent);
}

/* Category badge */
.bp-cat-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--bp-radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--cat-color, var(--bp-accent));
    color: #fff !important;
}

/* Card meta */
.bp-card-meta {
    font-size: 0.8rem;
    color: var(--bp-muted);
    display: flex;
    gap: 16px;
    margin-top: 14px;
}

/* ── Article Grid ─────────────────────────────────────────────────────── */
.bp-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

/* ── Category Grid ────────────────────────────────────────────────────── */
.bp-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 56px;
}

/* ── Video Row ────────────────────────────────────────────────────────── */
.bp-video-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

/* ── Single Article ───────────────────────────────────────────────────── */
.bp-article-header {
    text-align: center;
    padding: 64px 24px 44px;
    max-width: 800px;
    margin: 0 auto;
}
.bp-article-header h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin: 16px auto;
    line-height: 1.15;
}
.bp-article-meta {
    font-size: 0.9rem;
    color: var(--bp-muted);
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.bp-meta-sep { opacity: 0.4; }

.bp-article-featured {
    max-width: 1200px;
    margin: 0 auto 48px;
    padding: 0 24px;
    border-radius: var(--bp-radius);
    overflow: hidden;
}
.bp-featured-img {
    width: 100%;
    border-radius: var(--bp-radius);
}
.bp-featured-caption {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: var(--bp-muted);
    margin-top: 12px;
    font-style: italic;
}

.bp-article-video-container {
    max-width: 900px;
    margin: 0 auto 48px;
    padding: 0 24px;
}
.bp-article-video {
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--bp-radius);
    overflow: hidden;
}
.bp-article-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.bp-article-content {
    max-width: 740px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.85;
    padding: 0 24px;
}
.bp-article-content p { margin-bottom: 1.6em; }
.bp-article-content h2 {
    font-size: 1.6rem;
    margin: 2.2em 0 0.8em;
    color: #fff;
}
.bp-article-content h3 { font-size: 1.3rem; margin: 1.6em 0 0.6em; }
.bp-article-content blockquote {
    border-left: 3px solid var(--bp-accent);
    margin: 1.6em 0;
    padding: 18px 28px;
    background: var(--bp-surface);
    border-radius: 0 var(--bp-radius) var(--bp-radius) 0;
    font-style: italic;
    color: var(--bp-muted);
}
.bp-article-content figure { margin: 2em 0; }
.bp-article-content figcaption {
    font-size: 0.85rem;
    color: var(--bp-muted);
    text-align: center;
    margin-top: 10px;
}

/* Article footer */
.bp-article-footer {
    max-width: 740px;
    margin: 56px auto 0;
    padding: 36px 24px 0;
    border-top: 1px solid var(--bp-border);
}

/* Share Bar */
.bp-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.bp-share-label {
    font-size: 0.8rem;
    color: var(--bp-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.bp-share-btn {
    width: 40px; height: 40px;
    border-radius: var(--bp-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bp-surface);
    color: var(--bp-muted) !important;
    font-size: 1rem;
    transition: background var(--bp-transition), color var(--bp-transition), transform var(--bp-transition);
    border: none;
    cursor: pointer;
}
.bp-share-btn:hover {
    background: var(--bp-accent);
    color: #fff !important;
    transform: translateY(-2px);
}

/* Tags */
.bp-tags { margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.bp-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--bp-surface);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--bp-muted) !important;
    border: 1px solid var(--bp-border);
    transition: border-color var(--bp-transition), color var(--bp-transition), background var(--bp-transition);
}
.bp-tag:hover {
    border-color: var(--bp-accent);
    color: var(--bp-accent) !important;
    background: var(--bp-card);
}

/* Post Navigation */
.bp-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 740px;
    margin: 56px auto 0;
    padding: 0 24px;
}
.bp-nav-link {
    display: block;
    padding: 24px;
    background: var(--bp-card);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    transition: border-color var(--bp-transition), transform var(--bp-transition);
    color: var(--bp-text) !important;
}
.bp-nav-link:hover {
    border-color: var(--bp-accent);
    transform: translateX(3px);
}
.bp-nav-next .bp-nav-link:hover { transform: translateX(-3px); }
.bp-nav-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bp-muted);
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.bp-nav-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--bp-text);
}

/* ── Newsletter CTA ───────────────────────────────────────────────────── */
.bp-newsletter-cta {
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    padding: 48px 40px;
    text-align: center;
    margin: 56px 0 32px;
    position: relative;
    overflow: hidden;
}
.bp-newsletter-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bp-accent), #ff9a6c, var(--bp-accent));
}
.bp-newsletter-icon { font-size: 2.5rem; margin-bottom: 12px; }
.bp-newsletter-cta h3 { font-size: 1.5rem; margin-bottom: 12px; }
.bp-newsletter-cta p {
    color: var(--bp-muted);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--bp-card);
    border-top: 1px solid var(--bp-border);
    padding: 60px 0 0;
    margin-top: 80px;
}
.bp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 48px;
}
.bp-footer-brand img {
    max-height: 36px;
    margin-bottom: 16px;
}
.bp-footer-brand p {
    color: var(--bp-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
}
.bp-footer-col h4 {
    font-family: var(--font-head);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
    color: var(--bp-text);
}
.bp-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bp-footer-col li { margin-bottom: 10px; }
.bp-footer-col a {
    color: var(--bp-muted);
    font-size: 0.9rem;
    transition: color var(--bp-transition);
}
.bp-footer-col a:hover { color: var(--bp-accent); }

.bp-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.bp-footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bp-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--bp-muted) !important;
    transition: background var(--bp-transition), color var(--bp-transition);
}
.bp-footer-social a:hover {
    background: var(--bp-accent);
    color: #fff !important;
}

.bp-footer-bottom {
    border-top: 1px solid var(--bp-border);
    padding: 20px 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--bp-muted);
}

/* ── Skeleton Loading ─────────────────────────────────────────────────── */
.bp-skeleton {
    background: linear-gradient(90deg, var(--bp-card) 25%, var(--bp-surface) 50%, var(--bp-card) 75%);
    background-size: 200% 100%;
    animation: bp-shimmer 1.5s infinite;
    border-radius: var(--bp-radius);
}
.bp-skeleton-img { aspect-ratio: 16 / 9; width: 100%; }
@keyframes bp-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Search / Archive ─────────────────────────────────────────────────── */
.bp-archive-header {
    padding: 48px 0 32px;
    text-align: center;
}
.bp-archive-header h1 { font-size: 2rem; }
.bp-archive-header p {
    color: var(--bp-muted);
    max-width: 600px;
    margin: 12px auto 0;
}

/* ── Pagination ───────────────────────────────────────────────────────── */
.bp-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 56px 0;
}
.bp-pagination a,
.bp-pagination span {
    padding: 10px 18px;
    background: var(--bp-card);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-sm);
    color: var(--bp-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--bp-transition);
}
.bp-pagination a:hover { border-color: var(--bp-accent); color: #fff; }
.bp-pagination .current {
    background: var(--bp-accent);
    border-color: var(--bp-accent);
    color: #fff;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .site-header { padding: 10px 0; }
    .site-header .custom-logo-link img { max-height: 30px; }

    .bp-hero {
        min-height: 280px;
        border-radius: 0;
        aspect-ratio: auto;
    }
    .bp-hero-content { padding: 32px 20px 28px; }
    .bp-hero-content h1 { font-size: 1.5rem; }
    .bp-hero-content p { font-size: 0.95rem; }
    .bp-hero-btn { padding: 11px 24px; font-size: 0.9rem; }

    .bp-container { padding: 0 16px; }

    .bp-section-title { font-size: 1.3rem; margin: 36px 0 20px; }

    .bp-article-grid,
    .bp-cat-grid,
    .bp-video-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bp-article-header { padding: 40px 16px 28px; }
    .bp-article-header h1 { font-size: 1.6rem; }
    .bp-article-content { font-size: 1.05rem; padding: 0 16px; }

    .bp-post-nav { grid-template-columns: 1fr; padding: 0 16px; gap: 16px; }

    .bp-newsletter-cta { padding: 32px 20px; margin: 40px 0 16px; }

    .bp-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .bp-ticker { font-size: 0.78rem; }
    .bp-ticker-label { margin-left: 8px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .bp-article-grid,
    .bp-video-row { grid-template-columns: repeat(2, 1fr); }
    .bp-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .bp-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1025px) {
    .bp-article-grid { grid-template-columns: repeat(3, 1fr); }
    .bp-cat-grid    { grid-template-columns: repeat(4, 1fr); }
    .bp-video-row   { grid-template-columns: repeat(3, 1fr); }
}

/* ── Light mode override ──────────────────────────────────────────────── */
.bp-light {
    --bp-bg:       #f8f8fa;
    --bp-card:     #ffffff;
    --bp-surface:  #f0f0f5;
    --bp-border:   #e2e2ea;
    --bp-text:     #1a1a2e;
    --bp-muted:    #6b6b80;
}

/* QA visual fix 2026-04-29: prevent ticker/hero overlap on long headlines */
.bp-ticker {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 9px 20px !important;
    margin: 0 auto 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.bp-ticker-label {
    flex: 0 0 auto !important;
    margin: 0 !important;
}
.bp-ticker-items {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}
.bp-hero {
    min-height: 560px !important;
    max-height: none !important;
    margin-top: 0 !important;
}
.bp-hero-content {
    padding-top: 36px !important;
    padding-bottom: 44px !important;
}
.bp-hero-content p:empty {
    display: none !important;
}
@media (max-width: 768px) {
    .bp-ticker { margin-bottom: 18px !important; padding: 8px 12px !important; }
    .bp-hero { min-height: 500px !important; }
    .bp-hero-content h1 { font-size: 1.35rem !important; line-height: 1.2 !important; }
}

/* QA polish: keep ticker headline clear of BREAKING label */
.bp-ticker-items { padding-left: 12px !important; }


/* Enterprise polish 2026-04-29: homepage/newsletter/mobile refinement */
.bp-ticker {
  gap: 20px !important;
  overflow: hidden !important;
}
.bp-ticker-label {
  white-space: nowrap !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 18px rgba(255,107,53,.22) !important;
}
.bp-ticker-items {
  padding-left: 18px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.bp-hero {
  min-height: clamp(420px, 48vw, 560px) !important;
}
.bp-newsletter-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.bp-newsletter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--bp-accent), #ff9a5c);
  color: #fff !important;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none !important;
  box-shadow: 0 14px 34px rgba(255,107,53,.28);
}
.bp-newsletter-button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.bp-card-image img[alt=""] { background: linear-gradient(135deg,#111827,#0b0b12); }
@media (max-width: 768px) {
  .bp-ticker {
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .bp-ticker-items {
    padding-left: 0 !important;
    white-space: normal !important;
    line-height: 1.45 !important;
    max-height: 3.1em !important;
  }
  .bp-hero {
    min-height: 420px !important;
  }
}

/* Briefly Pulse premium polish — 2026-04-30 */
:root { --bp-bg:#070b14; --bp-panel:#0d1424; --bp-cyan:#67e8f9; --bp-orange:#ff8a3d; --bp-muted:#98a7ba; }
.bp-site-hero, .bp-home-hero { padding-top: clamp(18px, 3vw, 38px) !important; padding-bottom: clamp(20px, 3vw, 42px) !important; }
.bp-tagline, .bp-hero-tagline { margin-bottom: 12px !important; }
.bp-ticker { margin: 8px auto 26px !important; border: 1px solid rgba(103,232,249,.22) !important; box-shadow: 0 12px 35px rgba(0,0,0,.28) !important; }
.bp-hero { min-height: clamp(360px, 42vw, 560px) !important; border: 1px solid rgba(103,232,249,.20) !important; box-shadow: 0 30px 90px rgba(0,0,0,.45) !important; overflow:hidden !important; }
.bp-hero::before { background: linear-gradient(90deg, rgba(5,9,18,.94), rgba(5,9,18,.70) 45%, rgba(5,9,18,.32)) !important; }
.bp-hero img { filter: saturate(.92) contrast(1.08) brightness(.78) !important; transform: scale(1.02); }
.bp-hero-title, .bp-hero h1, .bp-hero h2 { text-shadow: 0 4px 24px rgba(0,0,0,.7) !important; letter-spacing: -.045em !important; }
.bp-trending-grid, .bp-category-grid { gap: clamp(18px, 2vw, 28px) !important; }
.bp-card, .bp-post-card, .bp-category-card { background: linear-gradient(180deg, rgba(17,24,39,.98), rgba(8,13,24,.98)) !important; border: 1px solid rgba(255,255,255,.10) !important; box-shadow: 0 18px 44px rgba(0,0,0,.30) !important; }
.bp-card:hover, .bp-post-card:hover, .bp-category-card:hover { transform: translateY(-4px) !important; border-color: rgba(103,232,249,.38) !important; box-shadow: 0 24px 60px rgba(0,0,0,.42) !important; }
.bp-card-image, .bp-post-card .bp-card-image { aspect-ratio: 16/10 !important; background: radial-gradient(circle at 20% 15%, rgba(103,232,249,.20), transparent 32%), #0b1220 !important; }
.bp-card-image img { width:100% !important; height:100% !important; object-fit:cover !important; opacity:.92 !important; }
.bp-card h3, .bp-post-card h3 { font-size: clamp(18px, 1.45vw, 23px) !important; line-height:1.15 !important; letter-spacing:-.02em !important; }
.bp-card-excerpt, .bp-excerpt { color: #b9c8da !important; line-height:1.55 !important; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.bp-category-card { min-height: 190px !important; }
.bp-category-card:empty, .bp-card:empty, .bp-post-card:empty { display:none !important; }
.bp-newsletter { border: 1px solid rgba(255,138,61,.25) !important; background: radial-gradient(circle at 50% 0%, rgba(255,138,61,.16), transparent 38%), linear-gradient(135deg,#101827,#080d18) !important; }
.bp-newsletter-button { font-weight:800 !important; letter-spacing:.01em !important; }
.site-footer, .bp-footer { border-top:1px solid rgba(103,232,249,.14) !important; }
.site-footer li:empty, .bp-footer li:empty { display:none !important; }
.single .entry-content, .bp-single-content { font-size: 18px !important; line-height: 1.78 !important; }
.single .entry-content h2, .bp-single-content h2 { color: var(--bp-cyan) !important; margin-top: 34px !important; }
@media (max-width:768px){
  .bp-ticker { margin-top: 0 !important; }
  .bp-hero { min-height: 390px !important; }
  .bp-hero::before { background: linear-gradient(180deg, rgba(5,9,18,.82), rgba(5,9,18,.96)) !important; }
  .bp-card-excerpt, .bp-excerpt { -webkit-line-clamp:2; }
}


/* Category card polish: preserve branded text/images instead of aggressive crop */
.bp-category-card .bp-category-image {
    background: radial-gradient(circle at top left, rgba(255,107,53,0.12), transparent 45%), var(--bp-surface);
}
.bp-category-card .bp-category-image img {
    object-fit: contain;
    padding: 10px;
    transform: none !important;
}
.bp-category-card .bp-card-image::after {
    background: linear-gradient(to top, rgba(18,18,26,0.32), transparent 50%);
}
.bp-category-card .bp-card-body h3 {
    color: var(--bp-text);
}


/* ──────────────────────────────────────────────────────────────
   Briefly Pulse Premium Redesign v3.0
   Editorial-first layout, cleaner hierarchy, robust fallbacks
────────────────────────────────────────────────────────────── */
:root {
  --bp-bg: #07080d;
  --bp-bg-2: #0d1018;
  --bp-card: rgba(18, 22, 33, 0.92);
  --bp-card-strong: #111827;
  --bp-line: rgba(255,255,255,.10);
  --bp-line-soft: rgba(255,255,255,.06);
  --bp-text: #f8fafc;
  --bp-text-soft: #cbd5e1;
  --bp-muted: #94a3b8;
  --bp-accent: #ff6b35;
  --bp-accent-2: #f59e0b;
  --bp-green: #2dd4bf;
  --bp-radius-lg: 28px;
  --bp-radius: 18px;
  --bp-shadow: 0 24px 80px rgba(0,0,0,.42);
}
html { background: var(--bp-bg); }
body {
  background:
    radial-gradient(circle at 8% -10%, rgba(255,107,53,.16), transparent 32rem),
    radial-gradient(circle at 90% 0%, rgba(45,212,191,.10), transparent 28rem),
    linear-gradient(180deg, #07080d 0%, #0b0d14 42%, #07080d 100%) !important;
  color: var(--bp-text);
}
body.bp-front-page .hero-section,
body.bp-front-page .entry-header,
body.bp-front-page .ct-container > header,
body.bp-front-page .page-title,
body.bp-front-page .ct-breadcrumbs { display: none !important; }
.site-header {
  background: rgba(7,8,13,.82) !important;
  border-bottom: 1px solid var(--bp-line-soft);
  backdrop-filter: blur(18px);
}
.site-header .custom-logo-link img { max-height: 46px; filter: drop-shadow(0 8px 22px rgba(255,107,53,.18)); }
.site-header a { letter-spacing: .04em; }
.bp-page-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 34px 0 72px; }
.bp-masthead-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--bp-line);
  border-radius: var(--bp-radius-lg);
  background:
    linear-gradient(135deg, rgba(17,24,39,.94), rgba(7,8,13,.86)),
    radial-gradient(circle at 75% 20%, rgba(255,107,53,.22), transparent 24rem);
  box-shadow: var(--bp-shadow);
  position: relative; overflow: hidden;
}
.bp-masthead-panel:after { content:""; position:absolute; inset:auto -6% -35% 48%; height:280px; background:linear-gradient(90deg, transparent, rgba(255,107,53,.20)); transform:rotate(-8deg); pointer-events:none; }
.bp-eyebrow { margin: 0 0 14px; color: var(--bp-green); text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 800; }
.bp-masthead-copy h1 { max-width: 850px; margin: 0; color: #fff; font-size: clamp(2.35rem, 6vw, 5.7rem); line-height: .92; letter-spacing: -.07em; }
.bp-masthead-copy p:last-child { max-width: 680px; margin: 20px 0 0; color: var(--bp-text-soft); font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.6; }
.bp-masthead-actions { display:flex; gap:12px; flex-wrap:wrap; justify-content:flex-end; z-index:1; }
.bp-primary-cta, .bp-secondary-cta {
  display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding: 0 20px;
  border-radius:999px; font-weight:800; text-decoration:none !important; transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.bp-primary-cta { color:#0b0d14 !important; background: linear-gradient(135deg, var(--bp-accent), var(--bp-accent-2)); box-shadow: 0 16px 45px rgba(255,107,53,.25); }
.bp-secondary-cta { color:var(--bp-text) !important; border:1px solid var(--bp-line); background:rgba(255,255,255,.04); }
.bp-primary-cta:hover, .bp-secondary-cta:hover { transform: translateY(-2px); }
.bp-news-wire { margin: 22px 0; display:flex; align-items:center; gap:0; border:1px solid var(--bp-line); border-radius:999px; overflow:hidden; background:rgba(255,255,255,.04); }
.bp-wire-label { padding: 12px 18px; background: var(--bp-accent); color:#08090e; font-weight:900; text-transform:uppercase; letter-spacing:.12em; font-size:.72rem; }
.bp-wire-items { display:flex; gap:24px; overflow:hidden; white-space:nowrap; padding: 0 18px; }
.bp-wire-items a { color: var(--bp-text-soft); text-decoration:none; font-size:.92rem; }
.bp-wire-items a:hover { color:#fff; }
.bp-lead-layout { display:grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, .8fr); gap:24px; margin: 24px 0 38px; }
.bp-lead-card, .bp-editorial-rail, .bp-modern-card, .bp-category-strip, .bp-newsletter-modern {
  border:1px solid var(--bp-line); background: var(--bp-card); border-radius: var(--bp-radius-lg); box-shadow: 0 16px 50px rgba(0,0,0,.24); overflow:hidden;
}
.bp-lead-card { display:grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); min-height: 520px; }
.bp-lead-media, .bp-modern-media { display:block; background:#111827; overflow:hidden; }
.bp-lead-media img, .bp-modern-media img { width:100%; height:100%; object-fit:cover; transition: transform .55s ease; }
.bp-lead-card:hover img, .bp-modern-card:hover img { transform: scale(1.035); }
.bp-lead-content { padding: clamp(26px, 4vw, 44px); display:flex; flex-direction:column; justify-content:flex-end; }
.bp-kicker { display:inline-flex; width:max-content; margin-bottom:14px; padding:7px 10px; border-radius:999px; background:rgba(255,107,53,.13); color:#ffb08e !important; border:1px solid rgba(255,107,53,.28); text-transform:uppercase; letter-spacing:.12em; font-size:.68rem; font-weight:900; text-decoration:none !important; }
.bp-lead-content h2 { margin:0; font-size: clamp(2rem, 4vw, 4.15rem); line-height:.98; letter-spacing:-.055em; }
.bp-lead-content h2 a, .bp-modern-body h3 a, .bp-rail-story h3 a { color:#fff !important; text-decoration:none; }
.bp-lead-content p { margin:18px 0 22px; color:var(--bp-text-soft); font-size:1.08rem; line-height:1.62; }
.bp-story-meta { display:flex; gap:12px; align-items:center; color:var(--bp-muted); font-size:.83rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.bp-story-meta span + span:before { content:"•"; margin-right:12px; color:var(--bp-accent); }
.bp-editorial-rail { padding: 24px; }
.bp-rail-header, .bp-section-heading span { color:#fff; font-size:.78rem; text-transform:uppercase; letter-spacing:.16em; font-weight:900; border-bottom:1px solid var(--bp-line); padding-bottom:14px; margin-bottom:4px; }
.bp-rail-story { padding:20px 0; border-bottom:1px solid var(--bp-line-soft); }
.bp-rail-story:last-child { border-bottom:0; padding-bottom:0; }
.bp-rail-story h3 { margin:0 0 12px; font-size:1.08rem; line-height:1.28; letter-spacing:-.025em; }
.bp-section-block { margin: 42px 0; }
.bp-section-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.bp-section-heading a { color:#ffb08e; font-weight:800; text-decoration:none; }
.bp-story-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:20px; }
.bp-modern-card { min-height:100%; }
.bp-modern-media { aspect-ratio: 16 / 10; }
.bp-modern-body { padding:20px; }
.bp-modern-body h3 { margin:0 0 10px; font-size:1.18rem; line-height:1.25; letter-spacing:-.025em; }
.bp-modern-body p { color:var(--bp-muted); margin:0 0 16px; line-height:1.55; }
.bp-image-fallback { min-height:100%; display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.18); font-size:4rem; font-weight:900; background: radial-gradient(circle at 50% 20%, rgba(255,107,53,.18), transparent 45%), #111827; }
.bp-category-strip { display:grid; grid-template-columns: 280px 1fr; gap:24px; padding:30px; margin:42px 0; align-items:center; }
.bp-category-strip h2, .bp-newsletter-modern h2 { margin:0; color:#fff; font-size:clamp(1.7rem,3vw,3rem); letter-spacing:-.05em; line-height:1; }
.bp-category-pills { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:12px; }
.bp-category-pills a { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:16px; border-radius:16px; background:rgba(255,255,255,.045); border:1px solid var(--bp-line-soft); color:#fff !important; text-decoration:none; font-weight:850; }
.bp-category-pills a:hover { border-color:rgba(255,107,53,.45); background:rgba(255,107,53,.09); }
.bp-category-pills em { color:var(--bp-muted); font-style:normal; font-size:.82rem; }
.bp-newsletter-modern { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:34px; background:linear-gradient(135deg, rgba(255,107,53,.14), rgba(17,24,39,.94)); }
.bp-newsletter-modern p:not(.bp-eyebrow) { color:var(--bp-text-soft); margin:12px 0 0; max-width:560px; }
.bp-premium-footer { background:#05060a !important; border-top:1px solid var(--bp-line); margin-top:40px; padding-top:0 !important; }
.bp-footer-topline { height:1px; background:linear-gradient(90deg, transparent, var(--bp-accent), transparent); opacity:.7; }
.bp-premium-footer .bp-footer-grid { width:min(1180px, calc(100% - 36px)); margin:0 auto; padding:48px 0; }
.bp-premium-footer h3 { color:#fff; margin:0 0 14px; }
.bp-footer-company li { color:var(--bp-muted); }
/* Article */
.bp-article-shell { width:min(1120px, calc(100% - 36px)); margin:0 auto; padding:42px 0 72px; }
.bp-premium-article-header { max-width:900px; margin:0 auto 28px; text-align:center; }
.bp-premium-article-header h1 { margin:0; color:#fff; font-size:clamp(2.3rem, 6vw, 5.1rem); line-height:.98; letter-spacing:-.065em; }
.bp-article-dek { margin:20px auto 0; color:var(--bp-text-soft); font-size:1.22rem; line-height:1.58; max-width:760px; }
.bp-article-byline { margin-top:22px; display:flex; gap:12px; justify-content:center; flex-wrap:wrap; color:var(--bp-muted); text-transform:uppercase; letter-spacing:.08em; font-size:.78rem; font-weight:800; }
.bp-article-byline span + span:before { content:"•"; margin-right:12px; color:var(--bp-accent); }
.bp-premium-featured { margin:30px 0; border-radius:var(--bp-radius-lg); overflow:hidden; border:1px solid var(--bp-line); background:var(--bp-card-strong); }
.bp-premium-featured img { width:100%; max-height:620px; object-fit:cover; }
.bp-premium-featured figcaption { color:var(--bp-muted); font-size:.85rem; padding:12px 16px; border-top:1px solid var(--bp-line-soft); }
.bp-article-layout { display:grid; grid-template-columns: 88px minmax(0, 760px); justify-content:center; gap:24px; align-items:start; }
.bp-article-tools { position:sticky; top:96px; display:flex; flex-direction:column; align-items:center; gap:10px; color:var(--bp-muted); text-transform:uppercase; letter-spacing:.12em; font-size:.68rem; font-weight:900; }
.bp-article-tools a, .bp-article-tools button { width:42px; height:42px; border-radius:999px; border:1px solid var(--bp-line); background:rgba(255,255,255,.04); color:#fff; display:flex; align-items:center; justify-content:center; text-decoration:none; cursor:pointer; }
.bp-premium-content { color:#e5e7eb; font-size:1.08rem; line-height:1.82; }
.bp-premium-content h2 { color:#fff; margin:2.1em 0 .55em; font-size:1.65rem; letter-spacing:-.035em; }
.bp-premium-content p { margin:0 0 1.2em; }
.bp-premium-content a { color:#ffb08e; }
.bp-article-tagline { max-width:760px; margin:30px auto; }
.bp-nav-link { border:1px solid var(--bp-line); border-radius:18px; padding:18px; background:rgba(255,255,255,.035); text-decoration:none !important; }
.bp-nav-link span { color:var(--bp-muted); text-transform:uppercase; letter-spacing:.12em; font-size:.72rem; font-weight:900; }
.bp-nav-link strong { display:block; margin-top:6px; color:#fff; line-height:1.3; }
@media (max-width: 980px) {
  .bp-masthead-panel, .bp-lead-layout, .bp-lead-card, .bp-category-strip, .bp-newsletter-modern { grid-template-columns:1fr; }
  .bp-masthead-actions { justify-content:flex-start; }
  .bp-lead-card { min-height:auto; }
  .bp-lead-media { aspect-ratio:16/10; }
  .bp-story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-category-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-article-layout { grid-template-columns:1fr; }
  .bp-article-tools { position:static; flex-direction:row; justify-content:center; }
}
@media (max-width: 640px) {
  .bp-page-shell, .bp-article-shell { width:min(100% - 24px, 1180px); padding-top:18px; }
  .bp-masthead-panel { padding:24px; border-radius:22px; }
  .bp-masthead-copy h1 { font-size:2.5rem; }
  .bp-news-wire { border-radius:18px; align-items:stretch; }
  .bp-wire-label { display:flex; align-items:center; }
  .bp-story-grid, .bp-category-pills { grid-template-columns:1fr; }
  .bp-lead-content, .bp-editorial-rail, .bp-newsletter-modern, .bp-category-strip { padding:22px; }
  .bp-premium-article-header h1 { font-size:2.35rem; }
  .bp-article-byline { font-size:.68rem; }
}


/* Premium v3.1 polish fixes */
body.bp-front-page .tbp-homepage-intro { display: none !important; }
.bp-lead-media img[src*="bp-v2-"],
.bp-modern-media img[src*="bp-v2-"],
.bp-card-image img[src*="bp-v2-"] {
  object-fit: contain !important;
  object-position: center center !important;
  padding: 16px;
  background: radial-gradient(circle at 50% 20%, rgba(255,107,53,.18), transparent 42%), #111827;
}
.bp-lead-media img[src*="bp-v2-"] { padding: 24px; }
.bp-image-fallback {
  color: #ffb08e !important;
  font-size: clamp(3rem, 8vw, 6rem) !important;
  min-height: 100%;
  width: 100%;
}
.bp-modern-media .bp-image-fallback,
.bp-lead-media .bp-image-fallback {
  aspect-ratio: 16 / 10;
}
.bp-modern-card:has(.bp-image-fallback) .bp-modern-media,
.bp-lead-card:has(.bp-image-fallback) .bp-lead-media {
  background: radial-gradient(circle at 50% 20%, rgba(255,107,53,.18), transparent 42%), #111827;
}


/* Premium v3.2 polish: header, ticker, richer fallbacks, excerpt rhythm */
@media (min-width: 900px) {
  header [data-row],
  .site-header [data-row],
  #header [data-row] { min-height: 72px !important; }
  .site-branding, .site-logo-container, [data-id="logo"] { display: flex !important; align-items: center !important; gap: 12px !important; }
  .site-title, .site-title a { font-size: clamp(1.1rem, 1.6vw, 1.55rem) !important; line-height: 1.05 !important; letter-spacing: -0.04em !important; }
  header nav a, .site-header nav a { font-size: .76rem !important; letter-spacing: .09em !important; }
}
.bp-wire-items { mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent 100%); }
.bp-modern-card h3 a, .bp-rail-story h3 a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bp-modern-body p { min-height: 3.4em; }
.bp-image-fallback {
  position: relative;
  overflow: hidden;
  display: flex !important;
  min-height: 100%;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 22px;
  background:
    radial-gradient(circle at 18% 16%, rgba(255,107,53,.42), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(20,184,166,.28), transparent 34%),
    linear-gradient(135deg, #101827 0%, #151221 52%, #261407 100%);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.bp-image-fallback::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
}
.bp-image-fallback::after {
  content: "BRIEFING";
  position: absolute;
  top: 22px;
  left: 22px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
  color: rgba(255,255,255,.72);
  font-size: .64rem;
  font-weight: 800;
}
.bp-image-fallback span { position: relative; z-index: 1; font-size: clamp(1.05rem, 2vw, 1.6rem); font-weight: 900; line-height: 1; }
.bp-image-fallback em { position: relative; z-index: 1; margin-top: 8px; color: rgba(255,255,255,.62); font-size: .68rem; font-style: normal; font-weight: 800; }
@media (max-width: 768px) {
  .bp-image-fallback { min-height: 210px; }
  .bp-wire-items { overflow-x: auto; padding-bottom: 4px; }
}


/* Premium v3.3 mobile/article comfort */
@media (max-width: 768px) {
  .site-header, #header { background: #070b12 !important; }
  .site-header [data-row], #header [data-row] { min-height: 64px !important; }
  .site-title, .site-title a { font-size: 1.18rem !important; line-height: 1.05 !important; }
  .site-logo-container img, [data-id="logo"] img { max-width: 44px !important; height: auto !important; }
  .bp-masthead-panel { padding: 24px 18px !important; }
  .bp-masthead-panel h1 { font-size: clamp(2.05rem, 11vw, 3.15rem) !important; }
  .bp-news-wire { grid-template-columns: auto minmax(0, 1fr) !important; }
  .bp-wire-items a { max-width: 68vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bp-premium-article { padding-inline: 14px !important; }
  .bp-premium-article-header { padding: 28px 18px !important; }
  .bp-premium-article-header h1 { font-size: clamp(2.05rem, 10vw, 3rem) !important; line-height: 1.04 !important; }
  .bp-article-dek { font-size: 1rem !important; }
  .bp-article-byline { gap: 8px !important; font-size: .72rem !important; }
  .bp-premium-content { padding-inline: 18px !important; }
  .bp-premium-content p, .bp-premium-content li { font-size: 1.02rem !important; line-height: 1.75 !important; }
  .bp-article-tools span { font-size: .75rem !important; }
  .bp-article-tools a, .bp-article-tools button { width: 42px !important; height: 42px !important; }
}


/* Premium v3.4: header lockup, ticker affordance, article metadata polish */
.site-header, #header { border-bottom: 1px solid rgba(255,255,255,.07) !important; background: rgba(6,10,18,.92) !important; backdrop-filter: blur(14px); }
.site-header .site-title, #header .site-title { margin: 0 !important; }
.site-header .site-title a, #header .site-title a { font-weight: 900 !important; letter-spacing: -.045em !important; }
.site-logo-container img, [data-id="logo"] img { border-radius: 10px !important; box-shadow: 0 10px 30px rgba(0,0,0,.28) !important; }
.bp-news-wire { overflow: hidden !important; position: relative !important; }
.bp-news-wire::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 70px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(10,14,24,.96)); }
.bp-wire-items { overflow: hidden !important; }
.bp-wire-items a { display: inline-block; max-width: min(38vw, 520px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.bp-wire-items a::after { content: "↗"; margin-left: 8px; color: rgba(255,255,255,.38); font-size: .75em; }
.bp-article-byline { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; align-items: center !important; gap: 8px 14px !important; }
.bp-article-byline span { position: relative; white-space: nowrap; }
.bp-article-byline span + span::before { content: "•"; margin-right: 14px; color: rgba(255,255,255,.28); }
.bp-premium-content .ez-toc-container, .bp-premium-content #ez-toc-container { margin-top: 0 !important; margin-bottom: 30px !important; }
.bp-premium-content p:first-of-type { margin-top: 0 !important; }
@media (max-width: 768px) {
  .site-header, #header { padding-top: 6px !important; }
  .site-header .site-title a, #header .site-title a { font-size: 1.08rem !important; }
  .site-logo-container img, [data-id="logo"] img { max-width: 38px !important; }
  .bp-wire-items a { max-width: 58vw !important; }
  .bp-news-wire::after { width: 34px; }
  .bp-article-byline { gap: 6px 10px !important; }
  .bp-article-byline span + span::before { content: none; }
  .bp-article-byline span { padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.055); }
}


/* Premium v3.5: mobile ticker stability */
@media (max-width: 768px) {
  .bp-news-wire { grid-template-columns: auto minmax(0, 1fr) !important; align-items: center !important; }
  .bp-wire-items { display: block !important; min-width: 0 !important; overflow: hidden !important; mask-image: none !important; -webkit-mask-image: none !important; }
  .bp-wire-items a { display: none !important; }
  .bp-wire-items a:first-child {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }
  .bp-wire-items a:first-child::after { content: "" !important; }
}


/* Premium v3.6: desktop header/ticker/lead-media cleanup */
[data-id="logo"] .site-title-container { display: none !important; }
[data-id="logo"].site-branding { min-height: 0 !important; height: auto !important; align-items: center !important; }
[data-id="logo"] .site-logo-container { display: flex !important; align-items: center !important; }
[data-id="logo"] .site-logo-container img { width: 154px !important; max-width: 154px !important; height: auto !important; object-fit: contain !important; }
@media (max-width: 768px) {
  [data-id="logo"] .site-logo-container img { width: 128px !important; max-width: 128px !important; }
}
@media (min-width: 769px) {
  .bp-wire-items { display: flex !important; gap: 22px !important; align-items: center !important; overflow: hidden !important; }
  .bp-wire-items a { flex: 0 0 auto !important; width: auto !important; max-width: 360px !important; min-width: 0 !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
  .bp-lead-media { display: flex !important; align-items: center !important; justify-content: center !important; min-height: 340px !important; max-height: 460px !important; aspect-ratio: 16 / 10 !important; background: radial-gradient(circle at 50% 50%, rgba(255,107,53,.08), transparent 48%), #090d16 !important; }
  .bp-lead-media img { width: 100% !important; height: 100% !important; object-fit: contain !important; padding: 18px !important; }
}

/* Briefly Pulse Premium v3.7 — richer article reading experience */
.bp-premium-featured-fallback {
  display: block;
  min-height: 360px;
}
.bp-premium-featured .bp-article-fallback {
  min-height: 360px;
  border-radius: 0;
}
.bp-article-brief-card {
  max-width: 960px;
  margin: 22px auto 34px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,107,53,.16), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  box-shadow: 0 20px 60px rgba(0,0,0,.24);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .8fr);
  gap: 20px;
  align-items: center;
}
.bp-brief-label,
.bp-story-map > span,
.bp-source-stack > span,
.bp-related-head > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffb08e;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .68rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.bp-article-brief-card strong {
  display: block;
  color: #fff;
  font-size: clamp(1.08rem, 1.55vw, 1.36rem);
  line-height: 1.35;
  letter-spacing: -.02em;
}
.bp-brief-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.bp-brief-stat-grid span {
  padding: 14px 12px;
  border-radius: 16px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.08);
  min-width: 0;
}
.bp-brief-stat-grid b,
.bp-brief-stat-grid em {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bp-brief-stat-grid b { color: #fff; font-size: .9rem; }
.bp-brief-stat-grid em { color: var(--bp-muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-style: normal; margin-top: 2px; }
.bp-story-map {
  margin: 0 0 28px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
}
.bp-story-map ul {
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}
.bp-story-map li {
  position: relative;
  padding: 11px 12px 11px 34px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  color: #eef2ff;
  font-weight: 800;
  line-height: 1.3;
}
.bp-story-map li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--bp-accent);
  box-shadow: 0 0 0 5px rgba(255,107,53,.13);
}
.bp-source-stack {
  margin: 34px 0 0;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.035);
}
.bp-source-stack div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bp-source-stack a,
.bp-source-stack span {
  display: inline-flex;
  max-width: 100%;
  padding: 10px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,176,142,.35);
  background: rgba(255,107,53,.08);
  color: #ffd7c7 !important;
  font-size: .86rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bp-related-reads {
  max-width: 1080px;
  margin: 48px auto 22px;
  padding: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.bp-related-head h2 {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}
.bp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.bp-related-card {
  display: block;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  color: #fff !important;
  text-decoration: none !important;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.bp-related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,107,53,.42);
  background: rgba(255,255,255,.06);
}
.bp-related-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 12px;
  background: #0f121b;
}
.bp-related-thumb img,
.bp-related-thumb .bp-image-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bp-related-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #fff;
  font-size: 1rem;
  line-height: 1.28;
}
.bp-related-card > span {
  display: block;
  color: var(--bp-muted);
  font-size: .78rem;
  margin-top: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}
@media (max-width: 900px) {
  .bp-article-brief-card { grid-template-columns: 1fr; margin-inline: 16px; }
  .bp-related-grid { grid-template-columns: 1fr; }
  .bp-related-reads { padding: 24px 16px; }
}
@media (max-width: 640px) {
  .bp-premium-featured-fallback,
  .bp-premium-featured .bp-article-fallback { min-height: 230px; }
  .bp-article-brief-card { padding: 18px; border-radius: 20px; margin-top: 16px; }
  .bp-brief-stat-grid { grid-template-columns: 1fr 1fr; }
  .bp-story-map { margin-inline: 18px; padding: 16px; }
  .bp-story-map ul { grid-template-columns: 1fr; }
  .bp-source-stack { margin-inline: 18px; }
}



/* Briefly Pulse Premium v3.7b — mobile article containment fix */
@media (max-width: 768px) {
  .bp-article-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .bp-premium-content,
  .bp-article-tools,
  .bp-story-map,
  .bp-source-stack,
  .bp-premium-content h2,
  .bp-premium-content p,
  .bp-premium-content ul,
  .bp-premium-content ol,
  .bp-premium-content .ez-toc-container,
  .bp-premium-content #ez-toc-container {
    max-width: 100% !important;
    width: auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .bp-premium-content {
    padding-inline: 0 !important;
  }
  .bp-premium-content > *:not(.bp-story-map):not(.bp-source-stack) {
    margin-left: 18px !important;
    margin-right: 18px !important;
  }
  .bp-story-map,
  .bp-source-stack {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


/* Briefly Pulse QA fix: every homepage article card needs a visible image. */
.bp-rail-story {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.bp-rail-media {
  display: block;
  width: 86px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(255,107,53,.22), transparent 46%), #0b1220;
  border: 1px solid var(--bp-line-soft);
}
.bp-rail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bp-rail-media img[src*="bp-v2-"],
.bp-rail-media .bp-image-fallback {
  object-fit: contain;
  padding: 8px;
}
.bp-rail-copy { min-width: 0; }
@media (max-width: 720px) {
  .bp-rail-story { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .bp-rail-media { width: 72px; border-radius: 14px; }
}

/* Premium v3.9: beautiful footer + site-wide visual polish */
:root {
  --bp-premium-bg: #050812;
  --bp-premium-panel: rgba(12, 18, 32, .82);
  --bp-premium-panel-strong: rgba(17, 25, 43, .92);
  --bp-premium-line: rgba(255,255,255,.10);
  --bp-premium-line-soft: rgba(255,255,255,.065);
  --bp-premium-text: #f8fafc;
  --bp-premium-muted: #a8b3c7;
  --bp-premium-accent: #ff6b35;
  --bp-premium-cyan: #22d3ee;
}
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 18% 0%, rgba(255,107,53,.075), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(34,211,238,.07), transparent 30rem),
    #050812 !important;
}
.bp-premium-footer-v8 {
  position: relative !important;
  overflow: hidden !important;
  margin-top: clamp(48px, 8vw, 96px) !important;
  padding: 0 !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,107,53,.18), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(34,211,238,.12), transparent 32%),
    linear-gradient(180deg, #080b16 0%, #050712 100%) !important;
  border-top: 1px solid rgba(255,255,255,.09) !important;
  color: var(--bp-premium-muted) !important;
}
.bp-footer-glow {
  position: absolute;
  inset: -35% -10% auto;
  height: 360px;
  background: radial-gradient(circle, rgba(255,107,53,.14), transparent 58%);
  pointer-events: none;
  filter: blur(8px);
}
.bp-premium-footer-v8 .bp-footer-topline {
  height: 2px !important;
  background: linear-gradient(90deg, transparent, #ff6b35 20%, #22d3ee 50%, #ff6b35 80%, transparent) !important;
  opacity: .9 !important;
}
.bp-footer-inner {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 68px) 0 clamp(26px, 4vw, 42px);
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) repeat(3, minmax(150px, .72fr));
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
}
.bp-footer-brand-panel {
  position: relative;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--bp-premium-line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    rgba(10,15,27,.74);
  box-shadow: 0 24px 70px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}
.bp-footer-brand-panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,107,53,.11), transparent 38%, rgba(34,211,238,.08));
}
.bp-footer-wordmark {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
  color: #fff !important;
}
.bp-footer-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: var(--font-head, inherit);
  font-weight: 950;
  letter-spacing: -.08em;
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.28), transparent 32%),
    linear-gradient(135deg, #ff6b35 0%, #f43f5e 52%, #22d3ee 130%);
  box-shadow: 0 18px 44px rgba(255,107,53,.24), inset 0 1px 0 rgba(255,255,255,.35);
}
.bp-footer-wordmark-text strong {
  display: block;
  color: #fff;
  font-family: var(--font-head, inherit);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1;
  letter-spacing: -.055em;
}
.bp-footer-wordmark-text em {
  display: block;
  margin-top: 6px;
  color: var(--bp-premium-muted);
  font-style: normal;
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.bp-footer-brand-panel p {
  position: relative;
  z-index: 1;
  max-width: 420px !important;
  margin: 22px 0 0 !important;
  color: #c6d0e1 !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}
.bp-footer-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.bp-footer-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 850;
  text-decoration: none !important;
}
.bp-footer-primary { color: #08111f !important; background: linear-gradient(135deg, #fff, #ffd8c6); box-shadow: 0 12px 30px rgba(255,107,53,.18); }
.bp-footer-secondary { color: #fff !important; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.055); }
.bp-footer-social {
  position: relative;
  z-index: 1;
  display: flex !important;
  gap: 12px !important;
  margin-top: 22px !important;
}
.bp-footer-social a {
  width: 46px !important;
  height: 46px !important;
  border-radius: 16px !important;
  display: grid !important;
  place-items: center !important;
  color: #fff !important;
  background: rgba(255,255,255,.065) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease !important;
}
.bp-footer-social a:first-child { background: linear-gradient(135deg, #ff6b35, #ff3b30) !important; border-color: rgba(255,107,53,.7) !important; }
.bp-footer-social a:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(34,211,238,.45) !important;
  box-shadow: 0 16px 36px rgba(0,0,0,.32), 0 0 0 4px rgba(34,211,238,.08) !important;
}
.bp-footer-social a span { transform: translateY(-1px); }
.bp-premium-footer-v8 .bp-footer-col {
  padding-top: 8px;
}
.bp-premium-footer-v8 .bp-footer-col h4 {
  margin: 0 0 16px !important;
  color: #fff !important;
  font-family: var(--font-head, inherit);
  font-size: .78rem !important;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .17em !important;
}
.bp-premium-footer-v8 .bp-footer-col ul { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.bp-premium-footer-v8 .bp-footer-col li {
  margin: 0 0 11px !important;
  color: var(--bp-premium-muted) !important;
  font-size: .94rem !important;
  line-height: 1.55 !important;
}
.bp-premium-footer-v8 .bp-footer-col a {
  position: relative;
  color: #aeb9cc !important;
  text-decoration: none !important;
  font-weight: 650 !important;
  transition: color .2s ease, padding-left .2s ease !important;
}
.bp-premium-footer-v8 .bp-footer-col a:hover {
  color: #fff !important;
  padding-left: 7px;
}
.bp-premium-footer-v8 .bp-footer-col a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: #ff6b35;
  transition: width .2s ease;
}
.bp-premium-footer-v8 .bp-footer-col a:hover::before { width: 4px; }
.bp-premium-footer-v8 .bp-footer-bottom {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 28px !important;
  border-top: 1px solid var(--bp-premium-line-soft) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #738198 !important;
  font-size: .82rem !important;
  text-align: left !important;
}
/* Hide older injected trust footer because trust links now live in the premium footer */
.bp-trust-footer { display: none !important; }
/* General premium polish */
.bp-topic-card,
.bp-modern-card,
.bp-related-topic-links,
.bp-article-trust-strip,
.wp-block-group,
.single .entry-content > .wp-block-group {
  box-shadow: 0 18px 55px rgba(0,0,0,.18);
}
.bp-topic-card,
.bp-modern-card,
.bp-category-pills a,
.bp-related-topic-links,
.bp-newsletter-cta {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.bp-topic-card:hover,
.bp-modern-card:hover,
.bp-category-pills a:hover,
.bp-related-topic-links:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.wp-block-button__link,
button,
input[type="submit"] { border-radius: 999px !important; }
main img,
.entry-content img,
.bp-topic-image img,
.bp-modern-media img {
  filter: saturate(1.04) contrast(1.02);
}
@media (max-width: 980px) {
  .bp-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .bp-footer-brand-panel { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bp-premium-footer-v8 { margin-top: 52px !important; }
  .bp-footer-inner {
    width: min(100% - 32px, 1180px);
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 34px;
  }
  .bp-footer-brand-panel {
    padding: 20px;
    border-radius: 24px;
  }
  .bp-footer-wordmark { align-items: center; }
  .bp-footer-mark { width: 52px; height: 52px; border-radius: 16px; font-size: .95rem; }
  .bp-footer-wordmark-text strong { font-size: 1.25rem; }
  .bp-footer-wordmark-text em { font-size: .68rem; letter-spacing: .08em; }
  .bp-footer-brand-panel p { font-size: .96rem !important; line-height: 1.65 !important; }
  .bp-footer-actions { flex-direction: column; }
  .bp-footer-actions a { justify-content: center; width: 100%; }
  .bp-footer-social { justify-content: space-between; }
  .bp-footer-social a { width: 48px !important; height: 48px !important; }
  .bp-premium-footer-v8 .bp-footer-col {
    padding: 20px;
    border-radius: 22px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.07);
  }
  .bp-premium-footer-v8 .bp-footer-col ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
  }
  .bp-premium-footer-v8 .bp-footer-col li { margin: 0 !important; }
  .bp-footer-company ul { grid-template-columns: 1fr !important; }
  .bp-premium-footer-v8 .bp-footer-bottom {
    width: min(100% - 32px, 1180px);
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 24px !important;
  }
}

/* Premium v4.0: footer readability refinements */
.bp-premium-footer-v8 .bp-footer-company a[href^="mailto:"] {
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.35;
  display: inline-block;
  max-width: 100%;
}
@media (min-width: 981px) {
  .bp-premium-footer-v8 .bp-footer-company { max-width: 230px; }
}
@media (max-width: 640px) {
  .bp-premium-footer-v8 .bp-footer-col a:hover { padding-left: 0; }
  .bp-premium-footer-v8 .bp-footer-col a::before { display: none; }
}

/* Premium v4.1: mobile header brand lockup fix
   The wide JPG logo becomes unreadable on phones, so mobile uses a crisp CSS monogram + wordmark. */
@media (max-width: 768px) {
  #header .ct-header [data-row*="middle"],
  [data-header*="type-1"] .ct-header [data-row*="middle"] {
    --height: 76px !important;
    min-height: 76px !important;
    background:
      radial-gradient(circle at 14% 20%, rgba(34,211,238,.12), transparent 38%),
      linear-gradient(180deg, rgba(7,13,24,.98), rgba(6,10,18,.96)) !important;
    border-bottom: 1px solid rgba(255,255,255,.075) !important;
  }
  #header [data-device="mobile"] .site-branding[data-id="logo"],
  #header [data-device="mobile"] [data-id="logo"].site-branding,
  [data-device="mobile"] [data-id="logo"] {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
  }
  #header [data-device="mobile"] [data-id="logo"] .site-logo-container {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: auto !important;
    max-width: calc(100vw - 96px) !important;
    min-height: 52px !important;
    padding: 7px 13px 7px 7px !important;
    border-radius: 18px !important;
    text-decoration: none !important;
    background:
      linear-gradient(135deg, rgba(255,255,255,.095), rgba(255,255,255,.035)),
      rgba(8,14,26,.72) !important;
    border: 1px solid rgba(255,255,255,.105) !important;
    box-shadow: 0 16px 42px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.10) !important;
    backdrop-filter: blur(14px) !important;
  }
  #header [data-device="mobile"] [data-id="logo"] .site-logo-container img {
    display: none !important;
  }
  #header [data-device="mobile"] [data-id="logo"] .site-logo-container::before {
    content: "BP";
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: var(--font-head, inherit);
    font-weight: 950;
    font-size: .78rem;
    letter-spacing: -.08em;
    background:
      radial-gradient(circle at 28% 18%, rgba(255,255,255,.30), transparent 34%),
      linear-gradient(135deg, #ff6b35 0%, #f43f5e 52%, #22d3ee 132%);
    box-shadow: 0 10px 28px rgba(255,107,53,.26), inset 0 1px 0 rgba(255,255,255,.32);
  }
  #header [data-device="mobile"] [data-id="logo"] .site-logo-container::after {
    content: "The Briefly Pulse";
    color: #f8fafc;
    font-family: var(--font-head, inherit);
    font-size: clamp(.98rem, 4.2vw, 1.16rem);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 8px 24px rgba(0,0,0,.35);
  }
  #header [data-device="mobile"] [data-id="logo"] .site-title-container {
    display: none !important;
  }
  #header [data-device="mobile"] .ct-header-trigger,
  #header [data-device="mobile"] [data-id="trigger"] {
    width: 46px !important;
    height: 46px !important;
    border-radius: 16px !important;
    display: grid !important;
    place-items: center !important;
    background: rgba(255,255,255,.055) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    color: #e5edf8 !important;
  }
  #header [data-device="mobile"] .ct-header-trigger svg,
  #header [data-device="mobile"] [data-id="trigger"] svg {
    width: 21px !important;
    height: 17px !important;
  }
}
@media (max-width: 360px) {
  #header [data-device="mobile"] [data-id="logo"] .site-logo-container::after {
    content: "Briefly Pulse";
    font-size: .98rem;
  }
  #header [data-device="mobile"] [data-id="logo"] .site-logo-container {
    padding-right: 10px !important;
  }
}

/* Premium v4.2: homepage lead-card collision fix */
.bp-lead-card {
  overflow: hidden !important;
}
@media (max-width: 1280px) {
  .bp-lead-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .9fr) !important;
  }
  .bp-lead-card {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }
  .bp-lead-media {
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
  }
  .bp-lead-media img {
    object-fit: cover !important;
    padding: 0 !important;
  }
  .bp-lead-content {
    padding: clamp(24px, 3vw, 34px) !important;
    justify-content: flex-start !important;
  }
  .bp-lead-content h2 {
    font-size: clamp(2rem, 3.5vw, 3.2rem) !important;
    line-height: 1.03 !important;
    letter-spacing: -.055em !important;
    overflow-wrap: anywhere !important;
  }
}
@media (min-width: 1281px) {
  .bp-lead-content h2 {
    font-size: clamp(2.3rem, 3.2vw, 3.65rem) !important;
    line-height: 1.02 !important;
  }
}
@media (max-width: 980px) {
  .bp-lead-layout { grid-template-columns: 1fr !important; }
  .bp-lead-content h2 { font-size: clamp(2rem, 8vw, 3rem) !important; }
}

/* Premium v4.3: article readability/layout fix */
.single .bp-article-layout-simple,
.bp-article-layout.bp-article-layout-simple {
  display: block !important;
  grid-template-columns: none !important;
  max-width: 780px !important;
  width: min(100%, 780px) !important;
  margin: 0 auto !important;
}
.single .bp-premium-content {
  width: 100% !important;
  max-width: 780px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  display: block !important;
  color: #e5edf8 !important;
  font-size: clamp(1.08rem, 1.6vw, 1.18rem) !important;
  line-height: 1.78 !important;
}
.single .bp-premium-content > * {
  max-width: 100% !important;
}
.single .bp-premium-content p,
.single .bp-premium-content li {
  overflow-wrap: break-word !important;
  word-break: normal !important;
}
.single .bp-premium-content h2 {
  margin-top: 34px !important;
  margin-bottom: 12px !important;
  font-size: clamp(1.45rem, 2.3vw, 1.85rem) !important;
  line-height: 1.18 !important;
}
.single .bp-premium-featured {
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 680px) {
  .single .bp-article-layout-simple,
  .bp-article-layout.bp-article-layout-simple {
    width: 100% !important;
    max-width: 100% !important;
  }
  .single .bp-premium-content {
    font-size: 1.05rem !important;
    line-height: 1.72 !important;
  }
  .single .bp-premium-content h2 {
    font-size: 1.42rem !important;
  }
}

/* Premium v4.4: static trust/legal page readability polish */
.bp-static-page:not(.bp-static-page--landing) {
  max-width: 980px !important;
  margin: 0 auto !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  background: rgba(15, 23, 42, .76) !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  box-shadow: 0 26px 80px rgba(0,0,0,.24) !important;
}
.bp-static-page:not(.bp-static-page--landing) .bp-static-page-header {
  padding: clamp(28px, 5vw, 58px) clamp(24px, 5vw, 64px) 24px !important;
  background: radial-gradient(circle at 8% 0%, rgba(255,107,53,.13), transparent 34%), linear-gradient(135deg, rgba(7,11,22,.92), rgba(15,23,42,.72)) !important;
}
.bp-static-page:not(.bp-static-page--landing) .bp-page-kicker {
  margin: 0 0 12px !important;
  color: #22d3ee !important;
  text-transform: uppercase !important;
  letter-spacing: .16em !important;
  font-size: .76rem !important;
  font-weight: 900 !important;
}
.bp-static-page:not(.bp-static-page--landing) .bp-static-page-header h1 {
  margin: 0 !important;
  font-size: clamp(2.4rem, 6vw, 4.4rem) !important;
  line-height: .98 !important;
  letter-spacing: -.06em !important;
}
.bp-static-page:not(.bp-static-page--landing) .bp-static-page-content {
  max-width: 820px !important;
  margin: 0 auto !important;
  padding: clamp(28px, 4vw, 52px) clamp(24px, 5vw, 64px) clamp(42px, 5vw, 70px) !important;
  font-size: clamp(1.02rem, 1.45vw, 1.12rem) !important;
  line-height: 1.78 !important;
}
.bp-static-page:not(.bp-static-page--landing) .bp-static-page-content h2 {
  margin-top: 34px !important;
  margin-bottom: 12px !important;
  font-size: clamp(1.55rem, 3vw, 2.2rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -.035em !important;
  color: #fff !important;
}
.bp-static-page:not(.bp-static-page--landing) .bp-static-page-content p,
.bp-static-page:not(.bp-static-page--landing) .bp-static-page-content li {
  color: #e5edf8 !important;
}
.bp-static-page:not(.bp-static-page--landing) .bp-static-page-content ul,
.bp-static-page:not(.bp-static-page--landing) .bp-static-page-content ol {
  padding-left: 1.35rem !important;
}
@media (max-width: 680px) {
  .bp-static-page:not(.bp-static-page--landing) {
    border-radius: 22px !important;
  }
  .bp-static-page:not(.bp-static-page--landing) .bp-static-page-header,
  .bp-static-page:not(.bp-static-page--landing) .bp-static-page-content {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Premium v4.5: article reading progress + back-to-top controls */
.bp-progress-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  height: 3px !important;
  width: 0;
  z-index: 99999 !important;
  background: linear-gradient(90deg, #ff6b35, #22d3ee, #8b5cf6) !important;
  box-shadow: 0 0 18px rgba(34,211,238,.45) !important;
  transition: width .12s linear !important;
}
.bp-reading-fab {
  position: fixed;
  right: clamp(16px, 2.5vw, 28px);
  bottom: clamp(18px, 3vw, 32px);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: radial-gradient(circle at 30% 18%, rgba(255,255,255,.18), transparent 28%), rgba(7,11,22,.88);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 44px rgba(0,0,0,.28);
  backdrop-filter: blur(16px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(.96);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
  z-index: 9999;
}
.bp-reading-fab.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.bp-reading-fab:hover,
.bp-reading-fab:focus-visible {
  border-color: rgba(34,211,238,.55);
  transform: translateY(-2px) scale(1.02);
  outline: none;
}
@media (max-width: 680px) {
  .bp-reading-fab {
    width: 44px;
    height: 44px;
    right: 14px;
    bottom: 16px;
  }
}
/* ═══════════════════════════════════════════════════════════════════════
   Briefly Pulse — Live News Ticker CSS
   Persistent scrolling headline bar — TV news-reel style
   ═══════════════════════════════════════════════════════════════════════ */

.bp-ticker-bar {
    position: sticky;
    top: 0;
    z-index: 9999;
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 40px;
    background: #0a0a0f;
    border-bottom: 1px solid #1e1e2e;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    line-height: 40px;
    -webkit-font-smoothing: antialiased;
}

/* ── LIVE label ─────────────────────────────────────────────────────── */
.bp-ticker-label {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    background: #d4192c;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
    position: relative;
}

.bp-ticker-label::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    bottom: 0;
    width: 10px;
    background: linear-gradient(to right, #d4192c, transparent);
    z-index: 1;
}

.bp-ticker-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: bp-ticker-pulse 1.2s ease-in-out infinite;
}

@keyframes bp-ticker-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.75); }
}

/* ── Scrolling track ────────────────────────────────────────────────── */
.bp-ticker-track {
    flex: 1 1 auto;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
}

.bp-ticker-scroll {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: bp-ticker-marquee 60s linear infinite;
    width: max-content;
}

@keyframes bp-ticker-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Individual ticker items ────────────────────────────────────────── */
.bp-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c4c4d4;
    text-decoration: none;
    transition: color 0.2s ease;
    flex-shrink: 0;
    padding: 0 2px;
}

.bp-ticker-item:hover {
    color: #fff;
}

.bp-ticker-cat {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    background: #1a1a2e;
    color: #7c8aff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.6;
    flex-shrink: 0;
}

.bp-ticker-headline {
    color: #e8e8f0;
    font-weight: 500;
}

.bp-ticker-brief {
    color: #6b6b80;
    font-size: 12px;
    font-weight: 400;
}

.bp-ticker-sep {
    color: #2a2a3e;
    margin: 0 10px;
    font-size: 6px;
    flex-shrink: 0;
}

/* ── Pause on hover ─────────────────────────────────────────────────── */
.bp-ticker-bar:hover .bp-ticker-scroll {
    animation-play-state: paused;
}

/* ── Mobile adjustments ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .bp-ticker-bar {
        height: 36px;
        font-size: 12px;
        line-height: 36px;
    }

    .bp-ticker-label {
        padding: 0 10px;
        font-size: 10px;
        gap: 4px;
    }

    .bp-ticker-dot {
        width: 6px;
        height: 6px;
    }

    .bp-ticker-cat {
        font-size: 9px;
        padding: 0 4px;
    }

    .bp-ticker-brief {
        display: none; /* Hide excerpts on mobile for cleaner scroll */
    }

    .bp-ticker-sep {
        margin: 0 6px;
    }
}

/* ── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .bp-ticker-scroll {
        animation: none;
    }
    .bp-ticker-dot {
        animation: none;
        opacity: 1;
    }
}
/* ═══════════════════════════════════════════════════════════════════════
   Briefly Pulse — Cross-Category "Also Trending" Cards
   Fills thin category pages with recent posts from other categories
   ═══════════════════════════════════════════════════════════════════════ */

.bp-cross-category-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color, rgba(255,255,255,0.08));
}

.bp-cross-category-header {
    margin-bottom: 1.5rem;
}

.bp-cross-category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color, #fff);
    margin: 0 0 0.25rem;
}

.bp-cross-category-subtitle {
    font-size: 0.85rem;
    color: var(--muted-color, rgba(255,255,255,0.45));
    margin: 0;
}

.bp-cross-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bp-cross-card {
    background: var(--card-bg, rgba(255,255,255,0.04));
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bp-cross-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.bp-cross-card-image {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}

.bp-cross-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bp-cross-card:hover .bp-cross-card-image img {
    transform: scale(1.04);
}

.bp-cross-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.12);
    letter-spacing: 0.05em;
}

.bp-cross-card-body {
    padding: 1rem 1.1rem 1.2rem;
}

.bp-cross-card-cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-color, #e74c3c);
    margin-bottom: 0.4rem;
    text-decoration: none;
}

.bp-cross-card-cat:hover {
    opacity: 0.8;
}

.bp-cross-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.4rem;
}

.bp-cross-card-title a {
    color: var(--heading-color, #fff);
    text-decoration: none;
}

.bp-cross-card-title a:hover {
    color: var(--accent-color, #e74c3c);
}

.bp-cross-card-excerpt {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--muted-color, rgba(255,255,255,0.5));
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile */
@media (max-width: 768px) {
    .bp-cross-category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bp-cross-card {
        display: flex;
        flex-direction: row;
    }

    .bp-cross-card-image {
        width: 120px;
        min-width: 120px;
        aspect-ratio: auto;
        height: auto;
    }

    .bp-cross-card-body {
        padding: 0.75rem 1rem;
    }

    .bp-cross-card-title {
        font-size: 0.85rem;
    }

    .bp-cross-card-excerpt {
        -webkit-line-clamp: 2;
    }
}
/* ═══════════════════════════════════════════════════════════════════════
   Briefly Pulse — Dark Mode Toggle Button
   ═══════════════════════════════════════════════════════════════════════ */

.bp-dark-toggle-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--bp-border, rgba(255,255,255,0.12));
    background: var(--bp-card, rgba(255,255,255,0.06));
    color: var(--bp-text, #fff);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.bp-dark-toggle-btn:hover {
    background: var(--bp-surface, rgba(255,255,255,0.1));
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.bp-dark-toggle-btn:active {
    transform: scale(0.95);
}

.bp-dark-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 18px;
    height: 18px;
}

/* Show sun in dark mode, moon in light mode */
.bp-toggle-sun,
.bp-toggle-moon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Dark mode (default): show moon icon */
.bp-toggle-sun { opacity: 0; transform: rotate(90deg); }
.bp-toggle-moon { opacity: 1; transform: rotate(0); }

/* Light mode: show sun icon */
.bp-light .bp-toggle-sun { opacity: 1; transform: rotate(0); }
.bp-light .bp-toggle-moon { opacity: 0; transform: rotate(-90deg); }

/* Mobile */
@media (max-width: 768px) {
    .bp-dark-toggle-btn {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}
/* ═══════════════════════════════════════════════════════════════════════
   Briefly Pulse — Push Notification Opt-In Prompt
   ═══════════════════════════════════════════════════════════════════════ */

.bp-push-prompt {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    z-index: 9998;
    background: var(--bp-card, #1a1a2e);
    border: 1px solid var(--bp-border, rgba(255,255,255,0.12));
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    max-width: 420px;
    width: calc(100% - 32px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.bp-push-prompt-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.bp-push-prompt-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.bp-push-prompt-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.bp-push-prompt-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bp-push-prompt-text strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bp-text, #fff);
    line-height: 1.3;
}

.bp-push-prompt-text span {
    font-size: 0.78rem;
    color: var(--bp-muted, rgba(255,255,255,0.5));
    line-height: 1.3;
}

.bp-push-prompt-enable {
    flex-shrink: 0;
    background: var(--accent-color, #e74c3c);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.bp-push-prompt-enable:hover {
    background: #c0392b;
    transform: scale(1.04);
}

.bp-push-prompt-dismiss {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--bp-muted, rgba(255,255,255,0.4));
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.bp-push-prompt-dismiss:hover {
    color: var(--bp-text, #fff);
}

/* Mobile */
@media (max-width: 480px) {
    .bp-push-prompt {
        bottom: 72px; /* Above the dark mode toggle */
    }

    .bp-push-prompt-inner {
        padding: 12px 14px;
        gap: 10px;
    }

    .bp-push-prompt-text strong {
        font-size: 0.82rem;
    }

    .bp-push-prompt-enable {
        padding: 7px 12px;
        font-size: 0.78rem;
    }
}
/* ═══════════════════════════════════════════════════════════════════════
   Briefly Pulse — Social Sharing + Related Articles + View Count CSS
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Social Share Bar ─────────────────────────────────────────────────── */
.bp-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 780px;
    margin: 36px auto 0;
    padding: 0 24px;
    flex-wrap: wrap;
}
.bp-share-label {
    font-size: 0.78rem;
    color: var(--bp-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    margin-right: 4px;
}
.bp-share-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #a8b3c7 !important;
    cursor: pointer;
    transition: all 0.22s ease;
    text-decoration: none !important;
}
.bp-share-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.25);
    color: #fff !important;
}
.bp-share-twitter:hover { background: rgba(29,161,242,0.15); border-color: rgba(29,161,242,0.4); }
.bp-share-whatsapp:hover { background: rgba(37,211,102,0.15); border-color: rgba(37,211,102,0.4); }
.bp-share-copy:hover { background: rgba(255,107,53,0.15); border-color: rgba(255,107,53,0.4); }
.bp-share-email:hover { background: rgba(139,92,246,0.15); border-color: rgba(139,92,246,0.4); }
.bp-share-copied {
    font-size: 0.78rem;
    color: #22d3ee;
    font-weight: 700;
    margin-left: 4px;
    animation: bp-fade-in 0.2s ease;
}
@keyframes bp-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Related Articles Section ────────────────────────────────────────── */
.bp-related-reads {
    max-width: 1080px;
    margin: 48px auto 22px;
    padding: 28px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.bp-related-head {
    margin-bottom: 22px;
}
.bp-related-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffb08e;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.68rem;
    font-weight: 900;
    margin-bottom: 8px;
}
.bp-related-head h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    letter-spacing: -0.03em;
}
.bp-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.bp-related-card {
    display: block;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    color: #fff !important;
    text-decoration: none !important;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.bp-related-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,107,53,0.42);
    background: rgba(255,255,255,0.06);
}
.bp-related-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 12px;
    background: #0f121b;
}
.bp-related-thumb img,
.bp-related-thumb .bp-image-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bp-related-thumb .bp-image-fallback {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: 12px;
}
.bp-related-thumb .bp-image-fallback::before,
.bp-related-thumb .bp-image-fallback::after {
    display: none;
}
.bp-related-card strong {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff;
    font-size: 1rem;
    line-height: 1.28;
    font-weight: 700;
}
.bp-related-card > span {
    display: block;
    color: var(--bp-muted);
    font-size: 0.78rem;
    margin-top: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

/* ── View Count in Byline ────────────────────────────────────────────── */
.bp-article-byline span:last-child {
    color: #22d3ee;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .bp-related-grid {
        grid-template-columns: 1fr;
    }
    .bp-related-reads {
        padding: 24px 16px;
    }
    .bp-share-bar {
        padding: 0 16px;
    }
}
@media (max-width: 640px) {
    .bp-share-btn {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
    .bp-related-card strong {
        font-size: 0.92rem;
    }
}
/* ═══════════════════════════════════════════════════════════════════════
   Briefly Pulse — Breadcrumbs + Category Hero + Source Badges CSS
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Breadcrumbs ──────────────────────────────────────────────────────── */
.bp-breadcrumbs {
    max-width: 900px;
    margin: 0 auto 8px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bp-muted);
}
.bp-breadcrumbs a {
    color: #a8b3c7;
    text-decoration: none;
    transition: color 0.2s ease;
}
.bp-breadcrumbs a:hover {
    color: #ffb08e;
}
.bp-breadcrumb-sep {
    color: rgba(255,255,255,0.2);
    font-weight: 400;
}
.bp-breadcrumb-current {
    color: #e5edf8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}
@media (max-width: 640px) {
    .bp-breadcrumbs {
        padding: 0 16px;
        font-size: 0.72rem;
        gap: 6px;
    }
    .bp-breadcrumb-current {
        max-width: 200px;
    }
}

/* ── Category Hero Header ────────────────────────────────────────────── */
.bp-category-hero {
    position: relative;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto 32px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(135deg, rgba(17,24,39,0.94), rgba(7,8,13,0.86));
    box-shadow: 0 24px 80px rgba(0,0,0,0.32);
}
.bp-category-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: center;
    padding: clamp(28px, 5vw, 52px) clamp(24px, 5vw, 48px);
}
.bp-category-hero-content {
    position: relative;
    z-index: 1;
}
.bp-category-hero-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255,107,53,0.15);
    color: #ffb08e;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    font-weight: 900;
    border: 1px solid rgba(255,107,53,0.25);
}
.bp-category-hero-content h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}
.bp-category-hero-content p {
    max-width: 620px;
    margin: 16px 0 0;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
}
.bp-category-hero-meta {
    margin-top: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
}
.bp-category-hero-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(34,211,238,0.12);
    border: 1px solid rgba(34,211,238,0.25);
    color: #22d3ee;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.bp-category-hero-visual {
    position: relative;
    height: 100%;
    min-height: 180px;
    border-radius: 22px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 30%, rgba(255,107,53,0.2), transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(34,211,238,0.12), transparent 50%),
                rgba(15,23,42,0.6);
    border: 1px solid rgba(255,255,255,0.06);
}
.bp-category-hero-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 50% 50%, rgba(255,107,53,0.15), transparent 50%);
    animation: bp-hero-glow-pulse 4s ease-in-out infinite;
}
@keyframes bp-hero-glow-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

/* Category-specific hero accents */
.bp-cat-hero-world-news .bp-category-hero-visual { background: radial-gradient(circle at 50% 30%, rgba(59,130,246,0.2), transparent 60%), radial-gradient(circle at 80% 70%, rgba(59,130,246,0.1), transparent 50%), rgba(15,23,42,0.6); }
.bp-cat-hero-technology .bp-category-hero-visual { background: radial-gradient(circle at 50% 30%, rgba(6,182,212,0.2), transparent 60%), radial-gradient(circle at 80% 70%, rgba(6,182,212,0.1), transparent 50%), rgba(15,23,42,0.6); }
.bp-cat-hero-science .bp-category-hero-visual { background: radial-gradient(circle at 50% 30%, rgba(16,185,129,0.2), transparent 60%), radial-gradient(circle at 80% 70%, rgba(16,185,129,0.1), transparent 50%), rgba(15,23,42,0.6); }
.bp-cat-hero-politics .bp-category-hero-visual { background: radial-gradient(circle at 50% 30%, rgba(139,92,246,0.2), transparent 60%), radial-gradient(circle at 80% 70%, rgba(139,92,246,0.1), transparent 50%), rgba(15,23,42,0.6); }
.bp-cat-hero-economy .bp-category-hero-visual { background: radial-gradient(circle at 50% 30%, rgba(245,158,11,0.2), transparent 60%), radial-gradient(circle at 80% 70%, rgba(245,158,11,0.1), transparent 50%), rgba(15,23,42,0.6); }
.bp-cat-hero-crypto .bp-category-hero-visual { background: radial-gradient(circle at 50% 30%, rgba(249,115,22,0.2), transparent 60%), radial-gradient(circle at 80% 70%, rgba(249,115,22,0.1), transparent 50%), rgba(15,23,42,0.6); }
.bp-cat-hero-gaming .bp-category-hero-visual { background: radial-gradient(circle at 50% 30%, rgba(34,197,94,0.2), transparent 60%), radial-gradient(circle at 80% 70%, rgba(34,197,94,0.1), transparent 50%), rgba(15,23,42,0.6); }

@media (max-width: 900px) {
    .bp-category-hero-inner {
        grid-template-columns: 1fr;
        padding: 28px 24px;
    }
    .bp-category-hero-visual {
        min-height: 120px;
        border-radius: 16px;
    }
}
@media (max-width: 640px) {
    .bp-category-hero {
        width: min(100% - 24px, 1180px);
        border-radius: 22px;
    }
    .bp-category-hero-inner {
        padding: 24px 18px;
    }
    .bp-category-hero-content h1 {
        font-size: 2rem;
    }
    .bp-category-hero-content p {
        font-size: 0.95rem;
    }
}

/* ── Enhanced Source Badges ──────────────────────────────────────────── */
.bp-source-stack {
    max-width: 780px;
    margin: 28px auto 0;
    padding: 0 24px;
}
.bp-source-stack > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffb08e;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.68rem;
    font-weight: 900;
    margin-bottom: 12px;
}
.bp-source-stack > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.bp-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,176,142,0.3);
    background: rgba(255,107,53,0.07);
    color: #ffd7c7 !important;
    text-decoration: none !important;
    font-size: 0.84rem;
    font-weight: 700;
    transition: all 0.22s ease;
    max-width: 100%;
}
.bp-source-badge:hover {
    background: rgba(255,107,53,0.14);
    border-color: rgba(255,176,142,0.5);
    transform: translateY(-1px);
}
.bp-source-badge-plain {
    cursor: default;
}
.bp-source-favicon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
    overflow: hidden;
}
.bp-source-favicon img {
    width: 16px;
    height: 16px;
    display: block;
}
.bp-source-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.62rem;
    font-weight: 900;
    color: #ffb08e;
    letter-spacing: 0.04em;
}
.bp-source-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
@media (max-width: 640px) {
    .bp-source-stack {
        padding: 0 16px;
    }
    .bp-source-badge {
        font-size: 0.78rem;
        padding: 7px 12px 7px 7px;
    }
    .bp-source-label {
        max-width: 140px;
    }
}
/* ═══════════════════════════════════════════════════════════════════════
   Briefly Pulse — TTS Listen Button + Trending Widget + Mobile Nav CSS
   ═══════════════════════════════════════════════════════════════════════ */

/* ── TTS Listen Button ───────────────────────────────────────────────── */
.bp-listen-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 16px auto 0;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(34,211,238,0.3);
    background: rgba(34,211,238,0.08);
    color: #22d3ee;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
    font-family: inherit;
}
.bp-listen-btn:hover {
    background: rgba(34,211,238,0.15);
    border-color: rgba(34,211,238,0.5);
    transform: translateY(-1px);
}
.bp-listen-active {
    background: rgba(34,211,238,0.18);
    border-color: rgba(34,211,238,0.6);
    color: #fff;
    animation: bp-listen-pulse 1.5s ease-in-out infinite;
}
@keyframes bp-listen-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(34,211,238,0); }
}
.bp-listen-btn svg {
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .bp-listen-btn {
        padding: 8px 16px;
        font-size: 0.78rem;
    }
}

/* ── Trending Widget ─────────────────────────────────────────────────── */
.bp-trending-widget {
    width: min(1180px, calc(100% - 36px));
    margin: 42px auto;
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(17,24,39,0.94), rgba(7,8,13,0.86));
    box-shadow: 0 24px 80px rgba(0,0,0,0.28);
}
.bp-trending-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}
.bp-trending-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #ffb08e;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    font-weight: 900;
}
.bp-trending-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: -0.04em;
}
.bp-trending-view-all {
    color: #ffb08e;
    font-weight: 800;
    text-decoration: none;
    font-size: 0.88rem;
    white-space: nowrap;
}
.bp-trending-view-all:hover {
    color: #fff;
}
.bp-trending-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bp-trending-item {
    display: grid;
    grid-template-columns: 32px 64px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    text-decoration: none !important;
    color: inherit !important;
    transition: background 0.2s ease;
}
.bp-trending-item:hover {
    background: rgba(255,255,255,0.04);
}
.bp-trending-rank {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 900;
    color: #a8b3c7;
    background: rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.bp-trending-item:nth-child(1) .bp-trending-rank {
    background: linear-gradient(135deg, #ff6b35, #f43f5e);
    color: #fff;
}
.bp-trending-item:nth-child(2) .bp-trending-rank {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
}
.bp-trending-item:nth-child(3) .bp-trending-rank {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    color: #08111f;
}
.bp-trending-thumb {
    width: 64px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: #0f121b;
    flex-shrink: 0;
}
.bp-trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bp-trending-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    font-size: 0.7rem;
    font-weight: 900;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
}
.bp-trending-body {
    min-width: 0;
}
.bp-trending-body strong {
    display: block;
    color: #e5edf8;
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bp-trending-body p {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bp-trending-meta {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
@media (max-width: 768px) {
    .bp-trending-widget {
        width: min(100% - 24px, 1180px);
        padding: 24px 18px;
        border-radius: 22px;
    }
    .bp-trending-item {
        grid-template-columns: 28px 52px minmax(0, 1fr);
        gap: 12px;
        padding: 12px 10px;
    }
    .bp-trending-thumb {
        width: 52px;
        height: 40px;
    }
    .bp-trending-body strong {
        font-size: 0.88rem;
    }
    .bp-trending-body p {
        display: none;
    }
}

/* ── Mobile Bottom Navigation Bar ────────────────────────────────────── */
.bp-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: rgba(7,11,22,0.94);
    border-top: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.3s ease;
}
.bp-mobile-nav-hidden {
    transform: translateY(100%);
}
.bp-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 56px;
    padding: 6px 10px;
    border-radius: 12px;
    border: none;
    background: none;
    color: #64748b;
    text-decoration: none !important;
    font-size: 0.64rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.bp-mobile-nav-item:hover,
.bp-mobile-nav-active {
    color: #ffb08e;
}
.bp-mobile-nav-active {
    background: rgba(255,107,53,0.1);
}
.bp-mobile-nav-item svg {
    flex-shrink: 0;
}
.bp-mobile-nav-sun,
.bp-mobile-nav-moon {
    position: absolute;
    transition: opacity 0.3s ease;
}
.bp-mobile-nav-sun { opacity: 0; }
.bp-mobile-nav-moon { opacity: 1; }
.bp-light .bp-mobile-nav-sun { opacity: 1; }
.bp-light .bp-mobile-nav-moon { opacity: 0; }
.bp-mobile-nav-theme {
    position: relative;
}
.bp-mobile-nav-theme svg {
    position: static;
}
