/* v51 — Align interface chrome to the same content grid used by Networkr.
   The hero image, its positioning, and the hero content remain untouched. */
#networkr-view {
  --networkr-page-gutter: max(40px, calc((100% - var(--max)) / 2));
}

/* The logo and the menu share one centered content column. */
#networkr-view .site-header .header-layout {
  width: min(var(--max), calc(100% - 80px));
  margin-inline: auto;
  min-width: 0;
}
#networkr-view .site-header .site-nav {
  min-width: 0;
  max-width: 100%;
  margin-left: auto;
}

/* Align the floating HUD and small hero labels with the main grid. */
#networkr-view .hero-status {
  right: var(--networkr-page-gutter);
}
#networkr-view .hero-id {
  left: var(--networkr-page-gutter);
  right: var(--networkr-page-gutter);
}

@media (max-width: 1300px) {
  #networkr-view { --networkr-page-gutter: 28px; }
  #networkr-view .site-header .header-layout {
    width: calc(100% - 56px);
  }
}

@media (max-width: 1040px) {
  #networkr-view .site-header .site-nav {
    margin-left: 0;
  }
}

@media (max-width: 800px) {
  #networkr-view { --networkr-page-gutter: 17px; }
  #networkr-view .site-header .header-layout {
    width: calc(100% - 34px);
  }
  #networkr-view .site-header .site-nav {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  /* On phones the HUD leaves the illustration's overlay and becomes its own
     contained row, respecting the same left/right padding as every section. */
  #networkr-view .hero-status {
    right: auto;
    left: auto;
    width: calc(100% - 34px);
    margin: 0 auto 16px;
    border: 1px solid #dbd0df70;
    border-radius: 5px;
  }
}
