/* GIS R5: contain the existing long brand without covering header controls.
   Only the verified site-header row is affected; no content is hidden. */
header.site-header > div.container-x {
  column-gap: 0.75rem;
  min-height: 4rem;
  height: auto;
  padding-block: 0.5rem;
}

header.site-header > div.container-x > a:first-child {
  flex-shrink: 1;
  min-width: 0;
}

/* The second span is the title. Do not restyle the first, square brand icon. */
header.site-header > div.container-x > a:first-child > span + span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

header.site-header > div.container-x > nav {
  flex-shrink: 0;
}

/* U4 mobile article pass (2026-09-18): contain wide tables and code blocks in
   article bodies on phones. Additive, mobile-only (max-width: 768px).
   Landing pages have no <table>/<pre> in <main> and are unaffected;
   desktop rendering unchanged. */
@media (max-width: 768px) {
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-wrap table {
    display: table;
  }
  main table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  main pre {
    max-width: 100%;
    overflow-x: auto;
  }
  main code {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}