/*
 * DataVista Newsroom — parallel live page density pass R2.
 * Scoped to the independently served live-next.php only.
 * No changes to SSE, cards/data provenance, filtering or 8891.
 */
.parallel-newsroom{
  --parallel-line:#e1e5e1;
  --parallel-soft:#f8faf8;
  --parallel-text:#202b30;
  --parallel-green:#1c6657;
  color:var(--parallel-text);
}
.parallel-newsroom .shell{
  width:min(1240px,calc(100% - 44px));
}
.parallel-newsroom .site-header{background:rgba(250,250,248,.97);border-color:#e1e5e0;}
.parallel-newsroom .header-inner{min-height:58px;gap:12px}
.parallel-newsroom .brand{gap:8px}
.parallel-newsroom .brand-mark{width:34px;height:34px;border-color:#6c8278;border-radius:5px;font-size:.76rem}
.parallel-newsroom .brand-copy strong{font-size:.9rem;font-weight:760;white-space:nowrap}
.parallel-newsroom .primary-nav{min-height:58px;gap:2px}
.parallel-newsroom .primary-nav>a,
.parallel-newsroom .primary-nav-menu>summary{min-height:58px;padding-inline:11px;font-size:.84rem}
.parallel-newsroom .language-switch{min-height:36px;padding:5px 10px}
.parallel-newsroom .main-shell{padding-block:10px 28px;min-height:0}
.parallel-newsroom .site-header svg{width:15px;height:15px}

/* The two utility panels sit on ONE compact line, not two large rectangles. */
.parallel-newsroom .parallel-status-row{
  display:flex;align-items:flex-start;flex-wrap:wrap;gap:7px;
  margin:0 0 8px;min-height:0;
}
.parallel-newsroom .parallel-status-row>details{
  flex:0 0 auto;min-width:0;width:auto;max-width:100%;margin:0;
  border:1px solid var(--parallel-line);border-radius:7px;
  background:#fff;box-shadow:none;
}
.parallel-newsroom .parallel-status-row>details[open]{flex:1 0 100%;width:100%}
.parallel-newsroom .live-public-counts>summary,
.parallel-newsroom .live-intelligence-fold>.live-intel-summary{
  display:flex;align-items:center;justify-content:center;
  min-height:30px;padding:5px 10px;
  font-size:.7rem;line-height:1.2;font-weight:700;
  color:#556960;cursor:pointer;white-space:nowrap;
  border:0;border-radius:7px;background:transparent;
}
.parallel-newsroom .live-public-counts>summary:hover,
.parallel-newsroom .live-intelligence-fold>.live-intel-summary:hover{background:#eef5f0}
.parallel-newsroom .live-intelligence-fold:not([open])>.live-intel-fold-body,
.parallel-newsroom .live-public-counts:not([open])>.live-counts-grid{display:none!important}
.parallel-newsroom .live-public-counts>.live-counts-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:10px}
.parallel-newsroom .live-public-counts .live-counts-grid>div{padding:7px 9px}
.parallel-newsroom .live-public-counts .live-counts-grid strong{font-size:1rem}
.parallel-newsroom .live-intelligence-fold>.live-intel-fold-body{padding:10px}
.parallel-newsroom .live-intelligence-fold .live-intelligence-hero{
  padding:12px;border:0;box-shadow:none;margin:0;background:#fff;
}

/* Search and FOUR action controls share a single, balanced tool row. */
.parallel-newsroom #live-filter-form{margin:0}
.parallel-newsroom .live-search-row{
  display:flex!important;align-items:center;flex-wrap:nowrap;
  gap:5px;padding:5px;border:1px solid var(--parallel-line);
  border-radius:8px;background:#fff;box-shadow:none;min-width:0;
}
.parallel-newsroom .live-search-row .search-box{
  flex:1 1 auto;min-width:0;min-height:38px;height:38px;
  border-color:#e1e5e1;background:#fbfcfb;padding-inline:11px;
}
.parallel-newsroom .live-search-row .search-box svg{display:none}
.parallel-newsroom .live-search-row .search-box input{
  min-width:0;min-height:0;font-size:.84rem;
}
.parallel-newsroom .live-search-row .button-primary,
.parallel-newsroom .live-search-row .mobile-filter-trigger,
.parallel-newsroom .live-search-row .live-quick-tools>.button{
  width:38px;min-width:38px;height:38px;min-height:38px;
  display:inline-flex;flex:0 0 38px;align-items:center;
  justify-content:center;border-radius:6px;padding:0;
  position:relative;white-space:nowrap;
}
.parallel-newsroom .live-search-row .button-primary{color:#fff;background:#24363b}
.parallel-newsroom .live-search-row .button-primary:hover{background:#163e43}
.parallel-newsroom .live-search-row .button-primary>span,
.parallel-newsroom .live-search-row .mobile-filter-trigger>span{display:none}
.parallel-newsroom .live-search-row .mobile-filter-trigger{
  color:#425d54;background:#fff;border-color:#dbe2dd;
}
.parallel-newsroom .live-search-row .live-quick-tools{
  display:flex;align-items:center;gap:5px;min-width:0;flex:0 0 auto;
}
.parallel-newsroom .live-search-row .live-quick-tools .live-toggle>span.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
.parallel-newsroom .live-search-row .live-quick-tools .live-follow-toggle{
  color:#316a56;border-color:#a7cbbb;background:#e9f5ed;
}
.parallel-newsroom .live-search-row .live-quick-tools .live-follow-toggle:not(.is-following){
  color:#52635a;background:#fff;border-color:#d7dfd8;
}
.parallel-newsroom .live-search-row .queued-items{
  position:absolute;top:calc(100% + 4px);inset-inline-end:2px;
  z-index:8;min-height:27px;max-width:96px;border-radius:6px;
  background:#e7f4ec;color:#235c46;border:1px solid #b8d6c2;
  padding:2px 6px;font-size:.69rem;
}
.parallel-newsroom .live-search-row .queued-items[hidden]{display:none!important}
.parallel-newsroom .live-search-row .button svg{width:17px;height:17px}
.parallel-newsroom .live-search-row .mobile-filter-trigger svg{width:17px;height:17px}
.parallel-newsroom .live-search-row :is(button,input):focus-visible{
  outline:2px solid #1f7668;outline-offset:1px;
}
.parallel-newsroom .live-toolbar{display:none!important}
.parallel-newsroom .live-layout{margin-top:7px;gap:10px}
.parallel-newsroom .live-layout.has-open-filters{grid-template-columns:235px minmax(0,1fr)}
.parallel-newsroom .live-filters[hidden]{display:none!important}
.parallel-newsroom .live-filters{max-height:calc(100dvh - var(--newsroom-header-height,64px) - 16px)}
.parallel-newsroom .live-results>.result-toolbar{display:none}
.parallel-newsroom .live-newest-jump[hidden]{display:none!important}
.parallel-newsroom .live-newest-jump{margin:0 0 6px;min-height:38px;}

/* Newswire card: compact source/time header, readable body, quiet footer. */
.parallel-newsroom .live-feed-list{display:grid;gap:8px;border:0}
.parallel-newsroom .live-card,
.parallel-newsroom .live-card:nth-child(even),
.parallel-newsroom .live-card:nth-child(4n+3){
  background:#fff;border:1px solid #e0e5df;border-radius:8px;
  box-shadow:none;padding:11px 14px 10px;
}
.parallel-newsroom .live-card:hover{border-color:#bccbc0;box-shadow:0 2px 10px #2a3f320a}
.parallel-newsroom .live-card::before{inset-block:10px;width:2px;background:#becdc4}
.parallel-newsroom .live-card-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:0 0 7px;border-bottom:1px solid #edf0ed;min-width:0;
}
.parallel-newsroom .live-source-line{
  min-width:0;flex:1;display:flex;align-items:center;flex-wrap:wrap;
  gap:5px 7px;font-size:.75rem;
}
.parallel-newsroom .live-source-line strong{
  font-size:.78rem;font-weight:800;line-height:1.4;max-width:30ch;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.parallel-newsroom .live-source-avatar{
  width:27px;height:27px;flex:0 0 27px;border-radius:50%;
}
.parallel-newsroom .live-handle{font-size:.67rem;color:#7d8b83}
.parallel-newsroom .country-badge{
  padding:1px 5px;border-color:#e0e5e1;color:#658073;
  font-size:.63rem;border-radius:4px;font-weight:600;
}
.parallel-newsroom .live-time-cluster{gap:4px;flex:0 0 auto}
.parallel-newsroom .relative-time-tag{
  min-height:23px;padding:2px 7px;font-size:.65rem;
}
.parallel-newsroom .live-exact-time{font-size:.63rem;color:#87918b}
.parallel-newsroom .live-exact-time::before{margin-inline-end:4px}
.parallel-newsroom .live-text{
  margin:8px 0 6px;font-size:.92rem;line-height:1.6;
  color:#1f2d33;max-width:110ch;overflow-wrap:anywhere;
}
.parallel-newsroom .live-feed-list.is-compact .live-text{-webkit-line-clamp:4}
.parallel-newsroom .live-badges{margin-top:5px;gap:4px}
.parallel-newsroom .live-badge{
  min-height:21px;padding:2px 6px;gap:3px;
  font-size:.61rem;border-radius:5px;
  background:#f8faf8;color:#687b70;
}
.parallel-newsroom .live-badge svg{width:11px;height:11px}
.parallel-newsroom .live-card-foot{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:6px 12px;
  margin-top:7px;padding-top:6px;border-top:1px solid #edf0ed;
}
.parallel-newsroom .live-metrics{
  display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;
  font-size:.64rem;color:#87918b;width:auto;
}
.parallel-newsroom .live-metrics svg{width:12px;height:12px}
.parallel-newsroom .live-card-actions{gap:5px}
.parallel-newsroom .live-card-actions .text-action{
  min-height:29px;padding:4px 7px;gap:4px;
  border:1px solid transparent;border-radius:5px;
  font-size:.7rem;color:#33685c;
}
.parallel-newsroom .live-card-actions .text-action:hover{
  background:#f2f8f4;border-color:#cfdfd4;
}
.parallel-newsroom .live-card-actions .text-action svg{width:14px;height:14px}

/* Media remains a real bounded thumbnail or actionable pending state. */
.parallel-newsroom .live-card .media-strip{
  display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 3px;
  align-items:flex-start;
}
.parallel-newsroom .live-card .media-card{
  border-color:#e2e7e1;border-radius:6px;background:#fbfcfa;
  box-shadow:none;min-width:0;
}
.parallel-newsroom .live-card .media-card--visual{width:min(100%,286px)}
.parallel-newsroom .live-card .media-card--file{width:min(100%,286px);padding:6px 8px}
.parallel-newsroom .live-card .media-preview{
  flex-basis:84px;width:84px;height:62px;
  border-color:#e3e7e2;background:#f2f4f1;
}
.parallel-newsroom .live-card .media-card-body{
  min-width:0;gap:3px;padding:6px 8px;
}
.parallel-newsroom .live-card .media-card-title{font-size:.68rem}
.parallel-newsroom .live-card .media-card-title strong{font-size:.69rem}
.parallel-newsroom .live-card .media-card-title small{font-size:.61rem}
.parallel-newsroom .live-card .media-card-actions{gap:4px}
.parallel-newsroom .live-card .media-card-actions a,
.parallel-newsroom .live-card .media-card-actions button{min-height:28px}
.parallel-newsroom .live-card .media-card--pending{
  width:auto;max-width:310px;min-height:34px;
  padding:5px 8px;gap:6px;font-size:.68rem;
}
.parallel-newsroom .live-card .media-card--refreshable{max-width:310px;gap:5px}
.parallel-newsroom .live-card .media-status-refresh{
  width:30px;height:30px;border-radius:5px;
}
.parallel-newsroom .live-card .media-pending-tools{min-height:28px;gap:5px}
.parallel-newsroom .live-card .media-pending-tools small{font-size:.65rem}

/* Mobile: compact 2-row nav and a single working toolbar, no horizontal drift. */
@media(max-width:980px){
  .parallel-newsroom .live-layout.has-open-filters{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:680px){
  .parallel-newsroom .shell{width:calc(100% - 22px)}
  .parallel-newsroom .header-inner{
    min-height:0;gap:4px 8px;padding-block:6px;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"brand lang" "nav nav";
  }
  .parallel-newsroom .brand-mark{width:29px;height:29px;font-size:.69rem}
  .parallel-newsroom .brand-copy strong{font-size:.84rem}
  .parallel-newsroom .primary-nav{
    width:100%;min-height:38px;display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;
  }
  .parallel-newsroom .primary-nav>a,
  .parallel-newsroom .primary-nav-menu>summary{
    min-height:38px;height:38px;padding:5px 2px;
    justify-content:center;font-size:.7rem;white-space:nowrap;
  }
  .parallel-newsroom .primary-nav svg{display:none}
  .parallel-newsroom .language-switch{min-height:30px;padding:3px 8px;font-size:.73rem}
  .parallel-newsroom .main-shell{padding-block:7px 20px}
  .parallel-newsroom .parallel-status-row{gap:5px;margin-bottom:6px}
  .parallel-newsroom .live-public-counts>summary,
  .parallel-newsroom .live-intelligence-fold>.live-intel-summary{
    min-height:27px;padding:4px 7px;font-size:.65rem;
  }
  .parallel-newsroom .live-public-counts>.live-counts-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .parallel-newsroom .live-search-row{gap:4px;padding:4px}
  .parallel-newsroom .live-search-row .search-box{height:38px;min-height:38px;padding-inline:8px}
  .parallel-newsroom .live-search-row .search-box input{font-size:.78rem}
  .parallel-newsroom .live-search-row .button-primary,
  .parallel-newsroom .live-search-row .mobile-filter-trigger,
  .parallel-newsroom .live-search-row .live-quick-tools>.button{
    width:37px;min-width:37px;height:38px;min-height:38px;flex-basis:37px;
  }
  .parallel-newsroom .live-search-row .live-quick-tools{gap:4px}
  .parallel-newsroom .live-feed-list{gap:6px}
  .parallel-newsroom .live-card,
  .parallel-newsroom .live-card:nth-child(even),
  .parallel-newsroom .live-card:nth-child(4n+3){padding:10px 10px 8px}
  .parallel-newsroom .live-card-head{flex-wrap:wrap;gap:5px;padding-bottom:6px}
  .parallel-newsroom .live-source-line{flex-basis:auto;min-width:0;gap:4px 5px}
  .parallel-newsroom .live-source-line strong{max-width:22ch;font-size:.76rem}
  .parallel-newsroom .live-time-cluster{margin-inline-start:auto}
  .parallel-newsroom .live-exact-time{font-size:.59rem}
  .parallel-newsroom .live-handle{display:none}
  .parallel-newsroom .live-text{font-size:.88rem;line-height:1.55;margin:6px 0}
  .parallel-newsroom .live-feed-list.is-compact .live-text{-webkit-line-clamp:4}
  .parallel-newsroom .live-card .media-card--visual{width:min(100%,265px)}
  .parallel-newsroom .live-card .media-preview{flex-basis:79px;width:79px;height:59px}
  .parallel-newsroom .live-card-foot{align-items:center;gap:5px}
  .parallel-newsroom .live-metrics{width:auto;gap:6px;font-size:.6rem}
  .parallel-newsroom .live-card-actions{margin-inline-start:auto}
  .parallel-newsroom .live-card-actions .text-action{min-height:29px}
}
@media(max-width:390px){
  .parallel-newsroom .shell{width:calc(100% - 16px)}
  .parallel-newsroom .live-search-row .button-primary,
  .parallel-newsroom .live-search-row .mobile-filter-trigger,
  .parallel-newsroom .live-search-row .live-quick-tools>.button{
    width:34px;min-width:34px;height:36px;min-height:36px;flex-basis:34px;
  }
  .parallel-newsroom .live-search-row .search-box{height:36px;min-height:36px;padding-inline:6px}
  .parallel-newsroom .live-search-row .live-quick-tools{gap:3px}
  .parallel-newsroom .live-search-row{gap:3px}
  .parallel-newsroom .live-source-line strong{max-width:15ch}
  .parallel-newsroom .live-exact-time{display:none}
  .parallel-newsroom .live-card-actions{gap:2px}
}

/* R3 compact live connection + genuinely refreshed hidden counters. */
.parallel-newsroom .parallel-status-row{
  align-items:center;
  min-height:30px;
  gap:6px;
}
.parallel-newsroom .parallel-status-row .parallel-live-status{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  gap:6px;
  min-height:30px;
  margin:0;
  padding:4px 9px;
  border-radius:7px;
  border:1px solid #bbd9c9;
  background:#eff8f1;
  color:#286047;
  font-size:.7rem;
  font-weight:720;
  line-height:1.1;
  white-space:nowrap;
}
.parallel-newsroom .parallel-live-status .status-dot{
  width:7px;
  height:7px;
  flex:0 0 auto;
  box-shadow:0 0 0 2px #cee8d8;
}
.parallel-newsroom .parallel-live-status .status-dot:not(.is-connected){
  background:#8e9691;
  box-shadow:0 0 0 2px #ecefeb;
}
.parallel-newsroom .parallel-counts-state{
  display:block;
  padding:0 10px 7px;
  font-size:.65rem;
  line-height:1.4;
  color:#718078;
}
@media(max-width:680px){
  .parallel-newsroom .parallel-status-row{gap:5px}
  .parallel-newsroom .parallel-status-row .parallel-live-status{
    min-height:27px;
    padding:3px 7px;
    font-size:.65rem;
  }
}

/* Direct public profile for every verified Telegram feed source. */
.parallel-newsroom .live-source-profile-link{
  display:inline-flex;align-items:center;min-width:0;max-width:100%;
  color:inherit;text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color .15s ease,border-color .15s ease;
}
.parallel-newsroom .live-source-profile-link:hover,
.parallel-newsroom .live-source-profile-link:focus-visible{
  color:#17624f;border-bottom-color:#78ad98;
}
.parallel-newsroom .live-source-profile-link:focus-visible{
  outline:2px solid #337b64;outline-offset:2px;
}
