/* EllGab Modern v1.0.12 — centered phone identity / paired feature pills.
   Loads after the earlier mobile CSS. Deliberately limited to <=700px:
   no changes to approved desktop header or SMF navigation behaviors. */
@media screen and (max-width: 700px) {
  #top_section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 9px;
  }
  #top_section .ellgab-brand-group {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  #top_section .ellgab-brand-group h1.forumtitle {
    width: 100%;
    text-align: center;
    font-size: clamp(1.12rem, 5.1vw, 1.48rem);
    letter-spacing: -0.035em;
  }
  #top_section .ellgab-brand-group h1.forumtitle a {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  #top_section .ellgab-header-center {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    width: 100%;
    justify-content: stretch;
  }
  #top_section .ellgab-header-actions {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    width: 100%;
    gap: 5px;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
  #top_section #wormhole_header_link,
  #top_section #siteslogan a {
    box-sizing: border-box;
    min-width: 0;
    min-height: 37px;
    padding: 7px 8px;
    border: 1px solid #705b3c;
    border-radius: 999px;
    background: rgba(198,157,94,.08);
    color: var(--eg-gold-bright, #e8c789);
    font-family: inherit;
    font-size: clamp(.61rem, 2.9vw, .76rem);
    font-weight: 700;
    letter-spacing: .025em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
  }
  #top_section #wormhole_header_link {
    width: 100%;
    margin: 0;
  }
  #top_section #siteslogan {
    display: flex !important;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    justify-content: stretch;
    float: none;
    font-size: inherit;
  }
  #top_section #siteslogan a {
    display: inline-flex;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  #top_section #siteslogan a:hover,
  #top_section #wormhole_header_link:hover {
    background: rgba(198,157,94,.19);
    border-color: var(--eg-gold, #c6a166);
  }
  #top_section img#upshrink {
    flex: 0 0 auto;
    max-width: 18px;
    height: auto;
    margin: 0;
  }
}
@media screen and (max-width: 360px) {
  #top_section { column-gap: 5px; }
  #top_section #wormhole_header_link,
  #top_section #siteslogan a {
    padding-left: 5px;
    padding-right: 5px;
    font-size: .61rem;
    letter-spacing: 0;
  }
  #top_section .ellgab-header-actions { gap: 3px; }
}
