.course-home-link {
  flex: 0 0 auto;
  padding: 5px 11px;
  border: 1px solid #93b7a1;
  border-radius: 999px;
  color: var(--green, #176653) !important;
  font-weight: 750;
}

.course-home-link:hover,
.course-home-link:focus-visible {
  background: var(--mint, #dceee4);
}

.course-neighbor-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.course-neighbor-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid var(--line, #d8e1dd);
  border-radius: 8px;
  background: #fff;
  color: var(--ink, #1d3335);
  text-decoration: none;
}

.course-neighbor-link:hover,
.course-neighbor-link:focus-visible {
  border-color: #7fa697;
  background: var(--mint, #dceee4);
}

.course-neighbor-link.is-disabled,
.course-neighbor-link.is-pending {
  color: var(--muted, #5d7070);
  background: #f2f4f1;
  cursor: default;
  opacity: .72;
}

.course-bottom-navigation {
  width: 100%;
  max-width: none;
  margin: 10px 0 38px;
  padding: 22px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .8fr) minmax(0, 1fr);
  gap: 14px;
  overflow: visible;
  border-top: 1px solid var(--line, #d8e1dd);
  border-bottom: 1px solid var(--line, #d8e1dd);
  white-space: normal;
}

.course-bottom-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 16px;
  border: 1px solid var(--line, #d8e1dd);
  border-radius: 12px;
  background: #fff;
  color: var(--ink, #1d3335);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.course-bottom-link:hover,
.course-bottom-link:focus-visible {
  border-color: #7fa697;
  background: var(--mint, #dceee4);
  color: var(--green, #176653);
}

.course-bottom-home {
  border-color: var(--green, #176653);
  background: var(--green, #176653);
  color: #fff;
}

.course-bottom-home:hover,
.course-bottom-home:focus-visible {
  background: #0f5141;
  color: #fff;
}

.course-bottom-link.is-disabled,
.course-bottom-link.is-pending {
  color: var(--muted, #5d7070);
  background: #f2f4f1;
  cursor: default;
  opacity: .7;
}

@media (max-width: 720px) {
  .nav-wrap nav > .course-home-link { order: -3; }
  .nav-wrap nav > .nav-brand { order: -2; }
  .nav-wrap nav > .course-neighbor-nav {
    order: -1;
    margin-left: 0;
  }

  .course-bottom-navigation {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .course-bottom-home {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media print {
  .course-home-link,
  .course-neighbor-nav,
  .course-bottom-navigation {
    display: none !important;
  }
}

