/* EllGab Modern v1.0.15: one-line, larger desktop NEWS.
   No changes to SMF news content, advertising or desktop navigation.
   Loaded after v1.0.14 so these rules override its stacked NEWS label. */
@media screen and (min-width: 1100px) {
  /* Give the announcement the middle flexible column between account and search. */
  div#upper_section {
    display: grid !important;
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr) minmax(235px, 285px) !important;
    align-items: center !important;
    column-gap: 14px !important;
  }
  div#upper_section > div.user { grid-column: 1 !important; grid-row: 1 !important; }
  div#upper_section > .ellgab-news-center {
    grid-column: 2 !important; grid-row: 1 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    gap: 9px !important; width: 100% !important; min-width: 0 !important;
    padding: 12px 10px !important; margin: 0 !important;
    white-space: nowrap !important;
  }
  div#upper_section > .ellgab-news-center h2 {
    display: inline !important; flex: 0 0 auto !important;
    margin: 0 !important; padding: 0 !important;
    font-size: .85rem !important; line-height: 1.3 !important;
  }
  div#upper_section > .ellgab-news-center p {
    display: block !important; flex: 0 1 auto !important;
    min-width: 0 !important; max-width: 100% !important;
    margin: 0 !important; padding: 0 !important;
    font-size: clamp(1.1rem, 1.42vw, 1.45rem) !important;
    line-height: 1.32 !important; overflow: hidden !important;
    text-overflow: ellipsis !important; white-space: nowrap !important;
  }
  div#upper_section > .ellgab-news-center p *,
  div#upper_section > .ellgab-news-center p a {
    font-size: inherit !important; white-space: nowrap !important;
  }
  div#upper_section > .ellgab-search-side {
    grid-column: 3 !important; grid-row: 1 !important;
    width: 100% !important; min-width: 0 !important;
  }
  div#upper_section > .ellgab-search-side form {
    display: flex !important; flex-wrap: nowrap !important;
    justify-content: flex-end !important; align-items: center !important;
    gap: 8px !important; min-width: 0 !important;
  }
  div#upper_section > .ellgab-search-side input[name="search"] {
    width: 170px !important; min-width: 0 !important; flex: 1 1 auto !important;
  }
  div#upper_section > .ellgab-search-side input[type="submit"] { flex: 0 0 auto !important; }
}
/* Medium desktops/tablets retain the natural, wrapping layout: never cut off news. */
@media screen and (min-width: 861px) and (max-width: 1099px) {
  div#upper_section > .ellgab-news-center { max-width: 100% !important; }
}
