/* Approved news polish: Ayarwaddy header and equal neighboring feed cards. */
html body.iml-home .iml-ayarwaddy-news-panel .iml-trending-head {
  grid-template-columns: auto minmax(0,1fr) !important;
  column-gap: 8px !important;
  container-type: inline-size;
  container-name: iml-ayarwaddy-heading;
}
html body.iml-home .iml-ayarwaddy-news-panel .iml-trending-live {
  min-width: 0; white-space: normal !important;
}
html body.iml-home .iml-ayarwaddy-news-panel .iml-trending-title {
  grid-column: 2 !important;
  white-space: normal !important;
}
html body.iml-home .iml-ayarwaddy-news-panel .iml-ayarwaddy-flag {
  grid-column: 1; grid-row: 1 / 3; justify-self: start; align-self: center;
  display: block; width: 54px; height: auto; object-fit: contain;
}
html body.iml-home #live-news-feeds .iml-news-grid-eight {
  align-items: stretch !important;
}
html body.iml-home #live-news-feeds .iml-news-grid-eight > .iml-news-source-card {
  align-self: stretch !important; height: auto !important;
  display: flex !important; flex-direction: column !important;
}
html body.iml-home #live-news-feeds .iml-news-grid-eight > .iml-news-source-card > .iml-news-list {
  flex: 1 1 auto !important;
}

/* Keep both heading lines beside the flag in narrow dashboard columns. */
@container iml-ayarwaddy-heading (max-width:240px) {
  html body.iml-home .iml-ayarwaddy-news-panel .iml-trending-live {
    font-size: clamp(10px,6cqi,12px) !important;
    white-space: nowrap !important;
  }
}

@container iml-ayarwaddy-heading (max-width:240px) {
  html body.iml-home .iml-ayarwaddy-news-panel .iml-trending-title {
    font-size: clamp(9px,5.5cqi,11px) !important; white-space: nowrap !important;
  }
  html body.iml-home .iml-ayarwaddy-news-panel .iml-ayarwaddy-flag { width: 42px; }
}

html body.iml-home .iml-ayarwaddy-news-panel .iml-trending-live { grid-column:2!important; }
html body.iml-home .iml-ayarwaddy-news-panel .iml-trending-title { color:var(--iml-orange,#ff9b22)!important; text-decoration:none!important; }
