/* 20261203r61: the top bar's second row -- MIP's platform on the public pages, the site's pages on the platform's
   (app/services/site_nav.py puts it in as a page is served) -- in the bar's own colours, one line that slides sideways
   on a narrow screen, and from page to page without a flash where the browser can (not for a person who asked for
   less motion: theme.css stops every animation for them, and the move is not asked for at all). */
.mip-top.mip-top-rows { flex-wrap: wrap; row-gap: 0; }
/* the bar's own links keep the first line, wrapping inside themselves when it is short, as before: what is on the right
   (Sign in, the name signed in as) stays beside them */
@media (min-width: 1280px) { .mip-top.mip-top-rows .mip-nav { flex: 1 1 0%; } }
.mip-row {
  order: 10;
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  gap: 2px 4px;
  min-width: 0;
  margin: 6px 0 -4px;
  padding: 4px 0 0;
  border-top: 1px solid var(--t-bar-line);
  overflow-x: auto;
  scroll-snap-type: x proximity;
}
.mip-top .mip-row a {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--t-radius-sm);
  color: var(--t-bar-ink-2);
  font-size: 17px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
}
.mip-top .mip-row a:hover { color: var(--t-bar-ink); background: rgba(255, 255, 255, .07); }
.mip-top .mip-row a:focus-visible { outline: 3px solid var(--t-focus); outline-offset: -3px; }
.mip-row-end { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding-left: 12px; flex: none; }
.mip-top .mip-row a.mip-row-cta {
  padding: 0 18px;
  border-radius: 999px;
  background: var(--t-brand);
  color: var(--t-on-brand);
  font-weight: 800;
}
.mip-top .mip-row a.mip-row-cta:hover { background: var(--t-accent); color: var(--t-on-brand); }

@media (max-width: 760px) {
  /* a phone: the row slides sideways, its end fading to say there is more; the bar, now three rows, stays at the top
     of the page instead of following it down */
  .mip-row { margin-inline: -6px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .mip-top .mip-row a { padding: 0 10px; }
  .site .mip-top.mip-top-rows { position: static; }
}
@media (max-width: 720px) {
  /* a public page: its row's words start where the links above it start */
  .site .mip-row { margin-inline: -12px; }
  .site .mip-top .mip-row a { padding: 0 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
}
