/* TodayInBrief Public UI v1.2 — Newsroom base + Pulse layer + Article detail */
:root{
  --bb-bg: #0b0d12;
  --bb-surface: #0f1320;
  --bb-card: rgba(255,255,255,0.06);
  --bb-card2: rgba(255,255,255,0.09);
  --bb-border: rgba(255,255,255,0.10);
  --bb-ink: rgba(255,255,255,0.92);
  --bb-muted: rgba(255,255,255,0.65);
  --bb-soft: rgba(255,255,255,0.04);

  --bb-primary: #4f7cff; /* electric blue */
  --bb-teal: #24d3b5;
  --bb-amber: #ffb020;
  --bb-danger: #ff4d6d;

  --bb-radius: 22px;
  --bb-radius-sm: 14px;
  --bb-shadow: 0 20px 80px rgba(0,0,0,0.35);

  --bb-sticky-top: 86px; /* header height + spacing */
}

.bb-body{
  background: radial-gradient(1200px 700px at 25% 10%, rgba(79,124,255,0.22), transparent 55%),
              radial-gradient(900px 600px at 80% 5%, rgba(36,211,181,0.14), transparent 50%),
              radial-gradient(700px 480px at 55% 95%, rgba(255,176,32,0.10), transparent 55%),
              var(--bb-bg);
  color: var(--bb-ink);
}

.bb-wrap{ max-width: 1180px; margin: 0 auto; padding-left: 18px; padding-right: 18px; }
@media (min-width: 640px){ .bb-wrap{ padding-left: 22px; padding-right: 22px; } }

.bb-topbar{
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(11,13,18,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/*.bb-brand{ display:flex; align-items:center; gap:10px; }
.bb-logo{
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(79,124,255,0.95), rgba(36,211,181,0.85));
  box-shadow: 0 18px 40px rgba(79,124,255,0.22);
}
.bb-title{ font-weight: 700; letter-spacing: -0.02em; }
.bb-tagline{ color: var(--bb-muted); font-size: 12px; margin-top: -2px; }*/

.bb-brand{
    display:flex;
    align-items:center;
    gap:10px;
}

.bb-logo{
    display:block;
    line-height:0;
}

.bb-logo-img{
    display:block;
    height:44px;
    width:auto;
}

@media (max-width: 640px){
    .bb-logo-img{
        height:40px;
    }
}

.bb-nav a{
  color: rgba(255,255,255,0.78);
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.bb-nav a:hover{ background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.95); transform: translateY(-1px); }

/* Mobile nav (compact) */

.bb-mnav{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.bb-mnav-tabs{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

.bb-mtab{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px 0;
  border-radius: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  text-align:center;
  user-select:none;
}

.bb-mtab:hover{
  background: rgba(255,255,255,0.05);
}

.bb-mtab.is-active{
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.bb-mtab.is-active::after{
  content:'';
  position:absolute;
  left: 22%;
  right: 22%;
  bottom: 6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(36,211,181,0.95), rgba(79,124,255,0.85));
}

.bb-more{ position: relative; }
.bb-more > summary{ list-style: none; cursor:pointer; }
.bb-more > summary::-webkit-details-marker{ display:none; }
.bb-more[open] > summary{
  background: rgba(255,255,255,0.06);
}

.bb-mnav__filters{
  width: 100%;
}


.bb-more{ position: relative; }
.bb-more > summary{ list-style: none; }
.bb-more > summary::-webkit-details-marker{ display:none; }

.bb-more__menu{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(15,19,32,0.96);
  box-shadow: 0 30px 120px rgba(0,0,0,0.55);
  z-index: 80;
}
.bb-more__menu a{
  display:block;
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(255,255,255,0.90);
}
.bb-more__menu a:hover{
  background: rgba(255,255,255,0.06);
}


.bb-pill{
  display:inline-flex; align-items:center; gap:8px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255,255,255,0.85);
}

.bb-select, .bb-input{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
  border-radius: 14px;
  padding: 10px 12px;
  outline: none;
}
.bb-select option{ background: #0b0d12; color: rgba(255,255,255,0.92); }
.bb-input::placeholder{ color: rgba(255,255,255,0.45); }

.bb-main{ padding: 26px 0 60px; }

.bb-card{
  border: 1px solid var(--bb-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
  border-radius: var(--bb-radius);
  box-shadow: var(--bb-shadow);
}
.bb-card-lite{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  border-radius: var(--bb-radius-sm);
}

.bb-hero{
  border-radius: var(--bb-radius);
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 15% 15%, rgba(79,124,255,0.28), transparent 60%),
    radial-gradient(800px 520px at 95% 20%, rgba(36,211,181,0.18), transparent 55%),
    rgba(255,255,255,0.03);
}
.bb-hero-inner{ padding: 18px; }
@media(min-width: 768px){ .bb-hero-inner{ padding: 22px; } }

.bb-kicker{ display:flex; align-items:center; gap:10px; color: rgba(255,255,255,0.82); font-size: 12px; }
.bb-dot{ width: 8px; height: 8px; border-radius: 999px; background: var(--bb-teal); box-shadow: 0 0 0 6px rgba(36,211,181,0.12); }

.bb-h1{ font-size: 28px; line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
@media(min-width: 768px){ .bb-h1{ font-size: 44px; } }

.bb-sub{ color: rgba(255,255,255,0.72); font-size: 14px; margin-top: 10px; max-width: 62ch; }
@media(min-width: 768px){ .bb-sub{ font-size: 15px; } }

.bb-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  border-radius: 14px;
  padding: 11px 14px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.05);
  transition: transform 160ms ease, background 160ms ease;
}
.bb-btn:hover{ background: rgba(255,255,255,0.08); transform: translateY(-1px); }
.bb-btn-primary{
  background: linear-gradient(135deg, rgba(79,124,255,0.95), rgba(79,124,255,0.55));
  border-color: rgba(79,124,255,0.45);
}
.bb-btn-primary:hover{ background: linear-gradient(135deg, rgba(79,124,255,0.98), rgba(79,124,255,0.62)); }

.bb-chip{
  display:inline-flex; align-items:center; gap:8px;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.86);
}

.bb-chip--clear{ text-decoration:none; cursor:pointer; }
.bb-chip--clear:hover{ background: rgba(255,255,255,0.08); }
.bb-chip-x{ opacity: 0.72; font-weight: 800; }
.bb-chip--add{ cursor:pointer; }
.bb-chip--add:hover{ background: rgba(255,255,255,0.08); }
.bb-chip-plus{ font-weight: 900; opacity: 0.9; }

.bb-meta{ color: var(--bb-muted); font-size: 12px; }

.bb-pulse{
  border-radius: var(--bb-radius);
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(700px 360px at 15% 0%, rgba(255,176,32,0.12), transparent 55%),
    radial-gradient(900px 520px at 85% 0%, rgba(79,124,255,0.12), transparent 60%),
    rgba(255,255,255,0.03);
}
.bb-pulse-dot{
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--bb-amber);
  box-shadow: 0 0 0 0 rgba(255,176,32,0.45);
  animation: bbPulse 1400ms ease-out infinite;
}
@keyframes bbPulse{
  0%{ box-shadow: 0 0 0 0 rgba(255,176,32,0.35); }
  70%{ box-shadow: 0 0 0 10px rgba(255,176,32,0.0); }
  100%{ box-shadow: 0 0 0 0 rgba(255,176,32,0.0); }
}

.bb-meter{
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
}
.bb-meter > span{
  display:block; height:100%;
  width: var(--w, 40%);
  background: linear-gradient(90deg, rgba(36,211,181,0.95), rgba(79,124,255,0.85));
  border-radius: 999px;
}

.bb-sticky-day{
  position: sticky;
  top: var(--bb-sticky-top);
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(11,13,18,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 10px 12px;
}



.bb-divider{ height:1px; background: rgba(255,255,255,0.08); }

.bb-footer{ border-top: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.65); }

.bb-hover-lift{ transition: transform 160ms ease, background 160ms ease, border-color 160ms ease; }
.bb-hover-lift:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); }

/* Article typography */
.bb-article{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius: var(--bb-radius);
  overflow: hidden;
}
.bb-article-head{
  padding: 18px;
  background:
    radial-gradient(900px 520px at 20% 0%, rgba(79,124,255,0.18), transparent 60%),
    radial-gradient(700px 420px at 90% 0%, rgba(36,211,181,0.14), transparent 60%),
    rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media(min-width: 768px){ .bb-article-head{ padding: 22px; } }
.bb-article-title{
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 26px;
  line-height: 1.12;
}
@media(min-width: 768px){ .bb-article-title{ font-size: 38px; } }
.bb-article-lede{ color: rgba(255,255,255,0.74); font-size: 14px; margin-top: 10px; max-width: 72ch; }
@media(min-width: 768px){ .bb-article-lede{ font-size: 15px; } }

.bb-prose{ color: rgba(255,255,255,0.84); font-size: 15px; line-height: 1.75; }
.bb-prose p{ margin-top: 0; margin-bottom: 14px; }
.bb-prose ul{ margin: 10px 0 16px; padding-left: 18px; }
.bb-prose li{ margin: 4px 0; }
.bb-prose a{ color: rgba(79,124,255,0.95); text-decoration: none; }
.bb-prose a:hover{ text-decoration: underline; }

.bb-cite{
  display:inline-flex;
  align-items:center;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.86);
  text-decoration:none;
  transform: translateY(-1px);
}
.bb-cite:hover{ border-color: rgba(79,124,255,0.45); }

.bb-sidebar{
  position: sticky;
  top: calc(var(--bb-sticky-top) + 14px);
}

.bb-source-row{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 12px;
}
.bb-source-row:hover{ border-color: rgba(255,255,255,0.16); background: rgba(255,255,255,0.05); }

/* v1.3 additions — home briefing slider + places modal + panels */
.bb-panel{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius: var(--bb-radius);
  overflow: hidden;
}
.bb-panel-head{
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.bb-panel-body{ padding: 14px 16px; }
.bb-panel--headonly .bb-panel-head{ border-bottom: none; }
.bb-panel--headonly .bb-panel-head{ padding: 12px 14px; }

.bb-flash{
  box-shadow: 0 0 0 8px rgba(79,124,255,0.08);
  outline: 2px solid rgba(79,124,255,0.22);
  outline-offset: 2px;
}


.bb-list-item{
  display:flex;
  gap:12px;
  padding: 10px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.bb-list-item:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); }

.bb-carousel-dots{ display:flex; gap:8px; }
.bb-carousel-dot{
  width: 9px; height: 9px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
}
.bb-carousel-dot.is-active{ background: var(--bb-primary); border-color: rgba(79,124,255,0.55); box-shadow: 0 0 0 6px rgba(79,124,255,0.16); }

.bb-modal-backdrop{
  position: fixed; inset: 0; z-index: 70;
  background: rgba(0,0,0,0.55);
  display:none;
}
.bb-modal-backdrop.is-open{ display:flex; align-items:center; justify-content:center; padding: 18px; }
.bb-modal{
  width: min(980px, 100%);
  max-height: min(82vh, 760px);
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.14);
  background: radial-gradient(900px 520px at 20% 0%, rgba(79,124,255,0.14), transparent 60%),
              radial-gradient(700px 420px at 90% 0%, rgba(36,211,181,0.10), transparent 60%),
              rgba(11,13,18,0.98);
  box-shadow: 0 30px 120px rgba(0,0,0,0.55);
}
.bb-modal-head{
  display:flex; align-items:center; justify-content:space-between; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.bb-modal-body{ padding: 14px 16px; overflow: auto; max-height: calc(82vh - 64px); }

.bb-country-row{
  display:flex; align-items:center; justify-content:space-between; gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.bb-country-row:hover{ border-color: rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); }

.bb-pin{
  display:inline-flex; align-items:center; justify-content:center;
  width: 34px; height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.86);
}
.bb-pin.is-on{ border-color: rgba(36,211,181,0.45); background: rgba(36,211,181,0.10); }



/* Mobile Filters Drawer */
body.bb-no-scroll{ overflow: hidden; }

.bb-drawer-overlay{
  position: fixed;
  inset: 0;
  z-index: 65;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
  background: rgba(0,0,0,0.58);
  backdrop-filter: blur(6px);
}
.bb-drawer{
  width: min(680px, 100%);
  max-height: 88vh;
  border-radius: var(--bb-radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(15,19,32,0.92);
  box-shadow: 0 30px 120px rgba(0,0,0,0.55);
  overflow: hidden;
  transform: translateY(10px);
  animation: bbSheetIn 180ms ease-out forwards;
}
@keyframes bbSheetIn{ to{ transform: translateY(0); } }
.bb-drawer-head{
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.bb-drawer-body{
  padding: 12px 14px;
  overflow: auto;
  max-height: calc(88vh - 56px);
}

/* Ad placeholders (replace with real ads later) */
.bb-ad{
  border: 0;
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
  display:block;
}
.bb-ad.bb-ad--placeholder{
  border: 1px dashed rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,0.58);
  font-size: 12px;
}
.bb-ad ins.adsbygoogle{
  display:block;
  width:100%;
}
/* Empty / loading helpers */
.bb-empty{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius: var(--bb-radius);
  padding: 18px;
}
.bb-kbd{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.86);
  font-size: 11px;
}
.bb-spinner{
  width: 16px; height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: rgba(255,255,255,0.85);
  animation: bbSpin 700ms linear infinite;
}
@keyframes bbSpin{ to{ transform: rotate(360deg); } }


/* Reveal should never block content (SSR + SEO safe). We keep motion on hover, pulse, carousel. */
.bb-reveal{ opacity: 1 !important; transform: none !important; }


/* Media container (show full image without cropping) */
.bb-media-wrap{
    position: relative;
    width: 100%;
    height: 100%;
}
.bb-media-bg{
    position:absolute; inset:0;
    background-size: cover;
    background-position: center;
    filter: blur(18px);
    transform: scale(1.12);
    opacity: 0.55;
}
.bb-media-img{
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.bb-media-wrap .bb-media-fallback{
    position:absolute; inset:0;
    display:flex;
}
.bb-media-wrap:not(.bb-media--broken):not(.bb-media--noimg) .bb-media-fallback{
    display:none;
}
.bb-media-wrap.bb-media--broken .bb-media-bg{
    display:none;
}
.bb-media-wrap.bb-media--broken .bb-media-img{
    display:none;
}
.bb-media-wrap.bb-media--noimg .bb-media-bg{
    display:none;
}
.bb-media-pill .bb-domain{
    display:inline-block;
    max-width: 90px;
    overflow:hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (min-width: 640px){
    .bb-media-pill .bb-domain{
        max-width: 90px;
    }
}

/* Media fallback (no-image URL preview placeholder) */
.bb-media-fallback{
  position: relative;
  width: 100%;
  height: 100%;
  display:flex;
  align-items:flex-end;
  justify-content:flex-start;
  padding: 4px;
  color: rgba(255,255,255,0.92);
}
.bb-media-fallback::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(circle at 20% 20%, rgba(79,124,255,0.35), transparent 55%),
              radial-gradient(circle at 80% 25%, rgba(36,211,181,0.28), transparent 55%),
              radial-gradient(circle at 60% 80%, rgba(255,176,32,0.18), transparent 60%),
              linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
.bb-media-fallback > *{ position: relative; }
.bb-media-pill{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(11,13,18,0.42);
  backdrop-filter: blur(10px);
  font-size: 11px;
}
.bb-media-host{
  display:inline-block;
  max-width: 160px;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bb-site-initial{
  width: 26px; height: 26px;
  border-radius: 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 700;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
}


/* Section separators / day headers */
.bb-section-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 10px;
}
.bb-section-head .bb-title{
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.bb-sep{
  height: 1px;
  width: 100%;
  margin-top: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.00), rgba(255,255,255,0.10), rgba(255,255,255,0.00));
}
.bb-day{
  position: sticky;
  top: 64px; /* under header */
  z-index: 20;
  padding: 8px 0;
  backdrop-filter: blur(10px);
}
.bb-day .bb-day-pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(11,13,18,0.55);
  color: rgba(235,242,255,0.92);
  font-size: 12px;
}
.bb-day .bb-day-pill .bb-dot{
  width: 7px; height: 7px;
  border-radius: 999px;
  background: rgba(79,124,255,0.95);
  box-shadow: 0 0 0 6px rgba(79,124,255,0.10);
}

/* Sticky header highlight (Briefs / Stories / Explore) */
.bb-sticky-day{
  z-index: 25;
  border-radius: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 15% 30%, rgba(79,124,255,0.18), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(36,211,181,0.14), transparent 55%),
    rgba(11,13,18,0.62);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.bb-sticky-day .bb-sticky-title{
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: rgba(240,244,255,0.96);
}

.bb-sticky-day .bb-sticky-sub{
  font-size: 12px;
  color: rgba(200,210,230,0.72);
}

/* Mode header (Trending / Latest) */
.bb-sticky-mode{
  position: sticky;
  top: var(--bb-sticky-top);
  z-index: 30;
  padding: 14px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    linear-gradient(90deg, rgba(79,124,255,0.20), rgba(36,211,181,0.12), rgba(255,176,32,0.10)),
    rgba(11,13,18,0.66);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.40);
}

.bb-sticky-mode .bb-sticky-title{
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.012em;
  color: rgba(245,248,255,0.98);
}

.bb-sticky-mode .bb-sticky-sub{
  font-size: 12px;
  color: rgba(210,220,240,0.75);
}


/* === Stickybar unified system (Briefs / Stories / Explore) === */
.bb-stickybar,
.bb-sticky-day,
.bb-sticky-mode{
  position: sticky;
  top: var(--bb-sticky-top);
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(circle at 15% 30%, rgba(79,124,255,0.18), transparent 55%),
    radial-gradient(circle at 85% 25%, rgba(36,211,181,0.14), transparent 55%),
    linear-gradient(90deg, rgba(255,176,32,0.07), rgba(79,124,255,0.05), rgba(36,211,181,0.04)),
    rgba(11,13,18,0.66);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.40);
}

.bb-stickybar-title{
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.012em;
  color: rgba(245,248,255,0.98);
  line-height: 1.15;
}

.bb-stickybar-sub{
  margin-top: 3px;
  font-size: 12px;
  color: rgba(210,220,240,0.72);
  line-height: 1.2;
}

.bb-stickybar-count{
  font-size: 12px;
  font-weight: 800;
  color: rgba(235,242,255,0.90);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  white-space: nowrap;
}

/* Make sticky bars feel "important" on mobile too */
@media (max-width: 640px){
  .bb-stickybar,
  .bb-sticky-day,
  .bb-sticky-mode{
    padding: 13px 14px;
    border-radius: 20px;
  }
  .bb-stickybar-title{ font-size: 15px; }
}


/* Page fade for tab switches / navigations */
.bb-pagefade{
  transition: opacity 120ms ease, transform 120ms ease;
}
.bb-pagefade.is-fading{
  opacity: 0.55;
  transform: translateY(2px);
}

/* === Morning Briefing (Home) upgrades === */
.bb-hero-slide-media{
  position: relative;
  min-height: 220px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

.bb-hero-slide-media img{
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.03);
}

@media (min-width: 1024px){
  .bb-hero-slide-media{ min-height: 240px; }
  .bb-hero-slide-media img{ height: 240px; }
}

.bb-media-wrap--hero{
  height: 100%;
}

.bb-media-wrap--hero .bb-media-bg{
  opacity: 0.45;
  filter: blur(20px);
}

.bb-media-wrap--hero .bb-media-fallback{
  padding: 18px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.bb-media-wrap--hero .bb-media-fallback::before{
  background:
    radial-gradient(circle at 18% 18%, rgba(79,124,255,0.34), transparent 55%),
    radial-gradient(circle at 82% 24%, rgba(36,211,181,0.24), transparent 55%),
    radial-gradient(circle at 68% 82%, rgba(255,176,32,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.bb-media-hero-lockup{
  max-width: 520px;
}

.bb-media-hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size: 12px;
  color: rgba(235,242,255,0.84);
}

.bb-media-hero-heading{
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(245,248,255,0.96);
}

.bb-media-hero-copy{
  margin-top: 8px;
  max-width: 42ch;
  font-size: 13px;
  color: rgba(220,228,242,0.72);
}

.bb-media-wrap--hero .bb-media-pill{
  padding: 6px 10px;
  gap: 8px;
  background: rgba(11,13,18,0.44);
}

.bb-media-wrap--hero .bb-site-initial{
  width: 30px;
  height: 30px;
}

@media (min-width: 768px){
  .bb-media-wrap--hero .bb-media-fallback{ padding: 22px; }
  .bb-media-hero-heading{ font-size: 28px; }
  .bb-media-hero-copy{ font-size: 14px; }
}

.bb-hero-slide-overlay{
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0,0,0,0.62), rgba(0,0,0,0.05) 55%),
    radial-gradient(circle at 20% 25%, rgba(79,124,255,0.18), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(36,211,181,0.14), transparent 55%);
}

.bb-hero-slide-chips{
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.bb-hero-rank{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 12px;
  color: rgba(245,248,255,0.95);
  text-transform: uppercase;
}

.bb-hero-rank .bb-hero-rank-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(79,124,255,0.20);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.bb-list-item{
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.bb-list-item.is-active{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.16);
  background:
    radial-gradient(circle at 18% 30%, rgba(79,124,255,0.16), transparent 55%),
    rgba(255,255,255,0.05);
  box-shadow: 0 14px 28px rgba(0,0,0,0.32);
}

.bb-list-rank{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: rgba(210,220,240,0.72);
  text-transform: uppercase;
}


/* Morning Briefing: chips at top + sources right */
.bb-hero-slide-chips{
  top: 12px;
  bottom: auto;
  align-items: flex-start;
  justify-content: space-between;
}

.bb-hero-slide-chips--top{
  top: 12px;
  bottom: auto;
}

.bb-numbadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(235,242,255,0.92);
  font-weight: 900;
  font-size: 11px;
  margin-right: 8px;
}

.bb-list-item.is-active .bb-numbadge{
  background: rgba(79,124,255,0.25);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 0 0 6px rgba(79,124,255,0.08);
}

/* Morning Briefing: tighten badge->title spacing */
.bb-list-rank{ margin-bottom: 6px; line-height: 1; }

/* Pinned chip icon */
.bb-chip--pinned{ padding-left: 10px; }


/* Pinned chip icon (consistent outline pin) */
.bb-chip--pinned{
  padding-left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bb-chip--pinned .bb-chip-icon{
  width: 14px;
  height: 14px;
  display: inline-block;
  opacity: 0.92;
}

.bb-chip--pinned .bb-chip-icon svg{
  width: 14px;
  height: 14px;
  display: block;
}

.bb-chip--pinned .bb-chip-icon path{
  fill: none;
  stroke: rgba(235,242,255,0.88);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bb-chip--ai{
  background: rgba(79,124,255,0.22);
  border: 1px solid rgba(79,124,255,0.50);
  color: rgba(255,255,255,0.98);
  font-weight: 800;
}

.bb-chip--ai::before {
  content: "✦";
}

/* --- AI brief readability --- */
.bb-section-title{
  margin: 26px 0 6px;
  font-size: 20px;
  /*letter-spacing: 0.08em;*/
  /*text-transform: uppercase;*/
  font-weight: 700;
  color: rgba(255,255,255,0.78);
}

.bb-prose ul{
  list-style: disc;
}

.bb-cites{
  display: none;
  gap: 6px;
  margin-left: 8px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0.85;
}

/* Show citations on hover, or when explicitly enabled */
.bb-prose li:hover .bb-cites,
.bb-prose p:hover .bb-cites{
  display: inline-flex;
}

.bb-prose.show-cites .bb-cites{
  display: inline-flex;
}

.bb-cite-inline{
  font-size: 11px;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,0.22);
  padding: 0 2px;
}

.bb-cite-inline:hover{
  color: rgba(255,255,255,0.90);
  border-bottom-color: rgba(255,255,255,0.45);
}

.bb-cites-more{
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}


/* Browse terms: make them look like clickable chips */
.bb-term{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.bb-term:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
}
.bb-term-name{ line-height: 1; }
.bb-term-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 2px 8px;
  min-height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(235,242,255,0.82);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
}

/* Pin button on country pages */
.bb-pinbtn{ gap: 8px; }
.bb-pinbtn-icon{ display:inline-flex; opacity: 0.92; }
.bb-pinbtn.is-on{
  border-color: rgba(36,211,181,0.45);
  background: rgba(36,211,181,0.10);
}


/* Mobile polish */
@media (max-width: 768px){
  :root{ --bb-sticky-top: 64px; }
  .bb-sidebar{ position: static; top:auto; }
}

@media (max-width: 640px){
  .bb-btn{ padding: 9px 12px; border-radius: 12px; gap:8px; }
  .bb-select, .bb-input{ padding: 10px 12px; }
  .bb-topbar{ padding-top: 10px; padding-bottom: 10px; }
}
