/* cocode-apps shared navigation and footer. Site-neutral: links inherit colour and font. */
/* Hidden by clipping, not by moving it off to one side: a far-off position widens right-to-left pages. */
.skip {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  z-index: 1000;
  padding: 0.5rem 1rem;
}

.cocode-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
}

.cocode-nav .brand {
  flex: 1 0 100%;
  justify-content: flex-start;
  gap: 0.5rem;
}

/* Wide screens: one row, the name first and the links after it (either direction). */
@media (min-width: 48em) {
  .cocode-nav .brand {
    flex: 0 1 auto;
    margin-inline-end: auto;
  }
}

.cocode-nav a,
.cocode-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  color: inherit;
}

.cocode-nav a:focus-visible,
.cocode-footer a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
