/* Anchor Home to the centered app without adding a layout row. */
.app {
  position: relative;
}
.app-navigation {
  position: absolute;
  top: var(--home-top, 12px);
  right: var(--home-right, 16px);
  z-index: 100;
}

.app-navigation .home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid #c9cec9;
  border-radius: 8px;
  color: #20372d;
  background: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 12%);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  touch-action: manipulation;
}

.app-navigation .home-link:hover {
  background: #edf2ed;
}

.app-navigation .home-link:active {
  background: #dfe8df;
}

.app-navigation .home-link:focus-visible {
  outline: 2px solid #20372d;
  outline-offset: 3px;
}

/* Keep existing header controls clear of Home at every app width. */
.app > .topbar,
.app > header {
  padding-right: 80px;
}

/* Handheld controls keep a full tap target and an opaque button surface. */
@media (max-width: 600px), (any-pointer: coarse) {
  .app-navigation .home-link {
    min-width: 64px;
    min-height: 44px;
    padding: 10px 12px;
  }
}
