/* EllGab Modern v1.0.17 — NEWS alignment only.
   Layered after v1.0.16. No changes to Classic, links, scripts or SMF News content. */

/* Desktop: match NEWS panel and search field height exactly. */
@media screen and (min-width: 1100px) {
  #upper_section .ellgab-search-side input[name="search"],
  #upper_section > .ellgab-news-center {
    box-sizing: border-box !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
  }
  #upper_section > .ellgab-news-center {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 12px !important;
    overflow: hidden !important;
  }
  #upper_section > .ellgab-news-center h2,
  #upper_section > .ellgab-news-center p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
}

/* Phones and tablets: NEWS and announcement share one row; very long
   announcements truncate rather than causing sideways scrolling. */
@media screen and (max-width: 1099px) {
  #upper_section .ellgab-news-center {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 8px 9px !important;
    overflow: hidden !important;
    overflow-wrap: normal !important;
    white-space: nowrap !important;
  }
  #upper_section .ellgab-news-center h2 {
    display: block !important;
    flex: 0 0 auto !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: clamp(.66rem, 2.5vw, .79rem) !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }
  #upper_section .ellgab-news-center p {
    display: block !important;
    flex: 0 1 auto !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: clamp(.74rem, 3vw, 1rem) !important;
    line-height: 1.25 !important;
  }
  #upper_section .ellgab-news-center p *,
  #upper_section .ellgab-news-center p a {
    font-size: inherit !important;
    white-space: nowrap !important;
  }
}
