/* @group Header */

/* The skip link (layouts/application): out of sight until the keyboard
   reaches it, then over the header's corner. */
.skip_link {
  position: absolute;
  inset-block-start: var(--ui-space-2);
  inset-inline-start: var(--ui-space-2);
  z-index: var(--ui-layer-overlay);
  padding: var(--ui-space-2) var(--ui-space-3);
  color: var(--color-text);
  font-size: var(--ui-font-size-control);
  background-color: var(--color-card-background);
  border: 1px solid var(--color-control-border);
  border-radius: var(--ui-radius-control);
  transform: translateY(-200%);
}

.skip_link:focus-visible {
  outline: 2px solid var(--color-input-focus-border);
  outline-offset: 2px;
  transform: none;
}

/* Safari on iOS 26 and later colours the status bar from a sticky header at
   the top (it ignores theme-color). The page never scrolls as a whole, so the
   header does not move; its layer sits just above the navigation's. */
#header {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--ui-layer-header);
  box-sizing: border-box;
  width: 100%;
  padding-inline-end: env(safe-area-inset-right);
  padding-inline-start: env(safe-area-inset-left);
  background-color: var(--color-header-background);
}

#logo {
  z-index: 1;
  align-self: center;
  -webkit-user-select: none;
  user-select: none;
}

/* The wordmark is not a heading: each screen's own title is its h1. */
#logo .logo_wordmark {
  display: block;
  width: 192px;
  height: 28px;
  margin-block-start: var(--ui-space-2);
  margin-block-end: var(--ui-space-2);
  /* Lines up with the first navigation word (navigation.css). */
  margin-inline-start: var(--ui-nav-item-inline);
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  background-image: url("/assets/logos/digitalphotogallery-3b36a87d.png");
  background-repeat: no-repeat;
  background-size: 192px 28px;
}

/* @end */
