/* STMIE V17.5 — verified final mobile header override.
   Keep loaded after homepage.css; cascade order is intentional. */
@media (max-width: 768px) {
  .site-header .header-inner {
    display: grid;
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
      "brand brand brand"
      "auth hamburger .";
    justify-content: start;
    align-items: center;
    column-gap: 10px;
    row-gap: 12px;
    height: auto;
    min-height: 0;
    padding: 12px 16px;
  }

  .site-header .brand {
    grid-area: brand;
    justify-self: start;
    margin: 0;
    min-width: 0;
  }

  .site-header .stmie-logo {
    display: block;
    width: min(306px, 100%);
    max-width: 100%;
    height: auto;
  }

  .site-header .auth-controls {
    grid-area: auth;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    min-width: 0;
  }

  .site-header #hamburger {
    grid-area: hamburger;
    display: flex;
    justify-self: start;
    align-items: center;
    justify-content: center;
    position: static;
    margin: 0;
  }

  .site-header .top-nav {
    grid-column: 1 / -1;
  }
}
